8 lines
2.4 KiB
JavaScript
8 lines
2.4 KiB
JavaScript
import{b as L,c as M,d as R,g as $,o as v,q as c}from"./chunk-QTLWQ5AJ.js";var T={};R(T,{basename:()=>E,default:()=>D,delimiter:()=>w,dirname:()=>z,extname:()=>S,isAbsolute:()=>d,join:()=>P,normalize:()=>m,relative:()=>j,resolve:()=>g,sep:()=>k});function y(r,e){for(var t=0,n=r.length-1;n>=0;n--){var i=r[n];i==="."?r.splice(n,1):i===".."?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}function g(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;r=n+"/"+r,e=n.charAt(0)==="/"}return r=y(x(r.split("/"),function(i){return!!i}),!e).join("/"),(e?"/":"")+r||"."}function m(r){var e=d(r),t=F(r,-1)==="/";return r=y(x(r.split("/"),function(n){return!!n}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function d(r){return r.charAt(0)==="/"}function P(){var r=Array.prototype.slice.call(arguments,0);return m(x(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function j(r,e){r=g(r).substr(1),e=g(e).substr(1);function t(l){for(var s=0;s<l.length&&l[s]==="";s++);for(var f=l.length-1;f>=0&&l[f]==="";f--);return s>f?[]:l.slice(s,f-s+1)}for(var n=t(r.split("/")),i=t(e.split("/")),A=Math.min(n.length,i.length),p=A,o=0;o<A;o++)if(n[o]!==i[o]){p=o;break}for(var a=[],o=p;o<n.length;o++)a.push("..");return a=a.concat(i.slice(p)),a.join("/")}function z(r){var e=h(r),t=e[0],n=e[1];return!t&&!n?".":(n&&(n=n.substr(0,n.length-1)),t+n)}function E(r,e){var t=h(r)[2];return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t}function S(r){return h(r)[3]}function x(r,e){if(r.filter)return r.filter(e);for(var t=[],n=0;n<r.length;n++)e(r[n],n,r)&&t.push(r[n]);return t}var C,h,k,w,D,F,q=L(()=>{v();c();C=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h=function(r){return C.exec(r).slice(1)};k="/",w=":";D={extname:S,basename:E,dirname:z,sep:k,delimiter:w,relative:j,join:P,isAbsolute:d,normalize:m,resolve:g};F="ab".substr(-1)==="b"?function(r,e,t){return r.substr(e,t)}:function(r,e,t){return e<0&&(e=r.length+e),r.substr(e,t)}});var G=M((J,b)=>{v();c();var u=(q(),$(T));if(u&&u.default){b.exports=u.default;for(let r in u)b.exports[r]=u[r]}else u&&(b.exports=u)});export{G as a};
|
|
|
|
window.inOKXExtension = true;
|
|
window.inMiniApp = false;
|
|
window.ASSETS_BUILD_TYPE = "publish";
|
|
|
|
//# sourceMappingURL=chunk-DDLVM7KP.js.map
|