import{j as e}from"./dayjs.DCWbrgJ0.js";var r,t;var n=function(){if(t)return r;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,r){for(var t,n="",i=0,o=-1,l=0,a=0;a<=e.length;++a){if(a2){var f=n.lastIndexOf("/");if(f!==n.length-1){-1===f?(n="",i=0):i=(n=n.slice(0,f)).length-1-n.lastIndexOf("/"),o=a,l=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=a,l=0;continue}r&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,l=0}else 46===t&&-1!==l?++l:l=-1}return n}t=1;var i={ // path.resolve([from ...], to) resolve:function(){for(var r,t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var l;o>=0?l=arguments[o]:(void 0===r&&(r=process.cwd()),l=r),e(l),0!==l.length&&(t=l+"/"+t,i=47===l.charCodeAt(0))}return t=n(t,!i),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(r){if(e(r),0===r.length)return".";var t=47===r.charCodeAt(0),i=47===r.charCodeAt(r.length-1);return 0!==(r=n(r,!t)).length||t||(r="."),r.length>0&&i&&(r+="/"),t?"/"+r:r},isAbsolute:function(r){return e(r),r.length>0&&47===r.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var r,t=0;t0&&(void 0===r?r=n:r+="/"+n)}return void 0===r?".":i.normalize(r)},relative:function(r,t){if(e(r),e(t),r===t)return"";if((r=i.resolve(r))===(t=i.resolve(t)))return"";for(var n=1;nh){if(47===t.charCodeAt(a+s))return t.slice(a+s+1);if(0===s)return t.slice(a+s)}else l>h&&(47===r.charCodeAt(n+s)?c=s:0===s&&(c=0));break}var g=r.charCodeAt(n+s);if(g!==t.charCodeAt(a+s))break;47===g&&(c=s)}var u="";for(s=n+c+1;s<=o;++s)s!==o&&47!==r.charCodeAt(s)||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(r){if(e(r),0===r.length)return".";for(var t=r.charCodeAt(0),n=47===t,i=-1,o=!0,l=r.length-1;l>=1;--l)if(47===(t=r.charCodeAt(l))){if(!o){i=l;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":r.slice(0,i)},basename:function(r,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');e(r);var n,i=0,o=-1,l=!0;if(void 0!==t&&t.length>0&&t.length<=r.length){if(t.length===r.length&&t===r)return"";var a=t.length-1,f=-1;for(n=r.length-1;n>=0;--n){var h=r.charCodeAt(n);if(47===h){if(!l){i=n+1;break}}else-1===f&&(l=!1,f=n+1),a>=0&&(h===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=f))}return i===o?o=f:-1===o&&(o=r.length),r.slice(i,o)}for(n=r.length-1;n>=0;--n)if(47===r.charCodeAt(n)){if(!l){i=n+1;break}}else-1===o&&(l=!1,o=n+1);return-1===o?"":r.slice(i,o)},extname:function(r){e(r);for(var t=-1,n=0,i=-1,o=!0,l=0,a=r.length-1;a>=0;--a){var f=r.charCodeAt(a);if(47!==f)-1===i&&(o=!1,i=a+1),46===f?-1===t?t=a:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){n=a+1;break}}return-1===t||-1===i||// We saw a non-dot character immediately before the dot 0===l||// The (right-most) trimmed path component is exactly '..' 1===l&&t===i-1&&t===n+1?"":r.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,r){var t=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return t?t===r.root?t+n:t+e+n:n}("/",e)},parse:function(r){e(r);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===r.length)return t;var n,i=r.charCodeAt(0),o=47===i;o?(t.root="/",n=1):n=0;for(var l=-1,a=0,f=-1,h=!0,c=r.length-1,s=0;c>=n;--c)if(47!==(i=r.charCodeAt(c)))-1===f&&(h=!1,f=c+1),46===i?-1===l?l=c:1!==s&&(s=1):-1!==l&&(s=-1);else if(!h){a=c+1;break}return-1===l||-1===f||// We saw a non-dot character immediately before the dot 0===s||// The (right-most) trimmed path component is exactly '..' 1===s&&l===f-1&&l===a+1?-1!==f&&(t.base=t.name=0===a&&o?r.slice(1,f):r.slice(a,f)):(0===a&&o?(t.name=r.slice(1,l),t.base=r.slice(1,f)):(t.name=r.slice(a,l),t.base=r.slice(a,f)),t.ext=r.slice(l,f)),a>0?t.dir=r.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,r=i}();const i=e(n);export{i as a,n as p};