web-documentation 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/deploy.js +71 -0
- package/package.json +336 -0
- package/readme.md +37 -0
- package/source/deploy.ts +721 -0
- package/source/dummyDistributionBundle.zip +0 -0
- package/source/dummyReadme.md +266 -0
- package/source/image/arrowDown.png +0 -0
- package/source/image/blacktocat.png +0 -0
- package/source/image/favicon.png +0 -0
- package/source/image/folderBlue.png +0 -0
- package/source/image/folderGray.png +0 -0
- package/source/index.css +492 -0
- package/source/index.html.ejs +303 -0
- package/source/index.ts +431 -0
- package/source/renderMarkdown.mjs +31 -0
- package/source/test.ts +35 -0
- package/source/type.ts +39 -0
package/build/deploy.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}(()=>{var __webpack_modules__=[e=>{e.exports=require("buffer")},e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var a,l=[],c=!1,u=-1;function f(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new d(e,t)),1!==l.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},e=>{e.exports=require("events")},e=>{e.exports=require("path")},e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},e=>{const{AbortController:t,AbortSignal:r}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=r,e.exports.default=t},(e,t)=>{t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{t.push(((e,t)=>null!=e?n(e):r(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>r(null,e)),r)}),"name",{value:e.name})}},e=>{e.exports=require("util")},(e,t,r)=>{const n=r(9).fromCallback,i=r(21),o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.assign(t,i),o.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,o,s){return"function"==typeof s?i.read(e,t,r,n,o,s):new Promise(((s,a)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return a(e);s({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))},t.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?i.readv(e,t,...r):new Promise(((n,o)=>{i.readv(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesRead:t,buffers:r})}))}))},t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))},"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},(e,t,r)=>{const{format:n,inspect:i,AggregateError:o}=r(17),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u={};function f(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function h(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function d(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return f(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,u[e]=i}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class b extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((e,t,r)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?o.push(e.toLowerCase()):c.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();n+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();n+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!==(u=r.constructor)&&void 0!==u&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n}),TypeError),d("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((e,t,r)=>{var n;return`Expected ${e} to be returned from the "${t}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),d("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((e,t,r)=>{let n;return f(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32?n=h(String(r)):"bigint"==typeof r?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=h(n)),n+="n"):n=i(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:b,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new s([t,e],t.message);return r.code=t.code,r}return e||t})),hideStackFrames:p,codes:u}},(e,t,r)=>{const{format:n,inspect:i,AggregateError:o}=r(18),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u={};function f(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function h(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function d(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return f(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,u[e]=i}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class b extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((e,t,r)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?o.push(e.toLowerCase()):c.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();n+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();n+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!==(u=r.constructor)&&void 0!==u&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n}),TypeError),d("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((e,t,r)=>{var n;return`Expected ${e} to be returned from the "${t}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),d("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((e,t,r)=>{let n;return f(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32?n=h(String(r)):"bigint"==typeof r?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=h(n)),n+="n"):n=i(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:b,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new s([t,e],t.message);return r.code=t.code,r}return e||t})),hideStackFrames:p,codes:u}},(e,t,r)=>{const{format:n,inspect:i,AggregateError:o}=r(19),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u={};function f(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function h(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function d(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return f(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,u[e]=i}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class b extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((e,t,r)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?o.push(e.toLowerCase()):c.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();n+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();n+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!==(u=r.constructor)&&void 0!==u&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n}),TypeError),d("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((e,t,r)=>{var n;return`Expected ${e} to be returned from the "${t}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),d("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((e,t,r)=>{let n;return f(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32?n=h(String(r)):"bigint"==typeof r?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=h(n)),n+="n"):n=i(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:b,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new s([t,e],t.message);return r.code=t.code,r}return e||t})),hideStackFrames:p,codes:u}},(e,t,r)=>{const{format:n,inspect:i,AggregateError:o}=r(20),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u={};function f(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function h(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function d(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(function(e,t,r){if("function"==typeof t)return f(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length?t:n(t,...r)}(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,u[e]=i}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class b extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}d("ERR_ASSERTION","%s",Error),d("ERR_INVALID_ARG_TYPE",((e,t,r)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?o.push(e.toLowerCase()):c.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();n+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();n+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!==(u=r.constructor)&&void 0!==u&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{n+=`. Received ${i(r,{depth:-1})}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n}),TypeError),d("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`}),TypeError),d("ERR_INVALID_RETURN_VALUE",((e,t,r)=>{var n;return`Expected ${e} to be returned from the "${t}" function but got ${null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:"type "+typeof r}.`}),TypeError),d("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`}),TypeError),d("ERR_OUT_OF_RANGE",((e,t,r)=>{let n;return f(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>2**32?n=h(String(r)):"bigint"==typeof r?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=h(n)),n+="n"):n=i(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`}),RangeError),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),d("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),d("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),d("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),d("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),d("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),d("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),d("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),d("ERR_STREAM_WRITE_AFTER_END","write after end",Error),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:b,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new s([t,e],t.message);return r.code=t.code,r}return e||t})),hideStackFrames:p,codes:u}},e=>{e.exports=require("stream")},(e,t,r)=>{const n=r(0),{kResistStopPropagation:i,SymbolDispose:o}=r(4),s=globalThis.AbortSignal||r(8).AbortSignal,a=globalThis.AbortController||r(8).AbortController,l=Object.getPrototypeOf((async function(){})).constructor,c=globalThis.Blob||n.Blob,u=void 0!==c?function(e){return e instanceof c}:function(e){return!1},f=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)};class h extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:h,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}},promisify:e=>new Promise(((t,r)=>{e(((e,...n)=>e?r(e):t(...n)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,r]){const n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof l,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:u,deprecate:(e,t)=>e,addAbortListener:r(2).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);let r;return f(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)})(t,"listener"),e.aborted?queueMicrotask((()=>t())):(e.addEventListener("abort",t,{__proto__:null,once:!0,[i]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;null===(e=r)||void 0===e||e()}}},AbortSignalAny:s.any||function(e){if(1===e.length)return e[0];const t=new a,r=()=>t.abort();return e.forEach((e=>{f(e,"signals"),e.addEventListener("abort",r,{once:!0})})),t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",r)))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},(e,t,r)=>{const n=r(0),{kResistStopPropagation:i,SymbolDispose:o}=r(5),s=globalThis.AbortSignal||r(8).AbortSignal,a=globalThis.AbortController||r(8).AbortController,l=Object.getPrototypeOf((async function(){})).constructor,c=globalThis.Blob||n.Blob,u=void 0!==c?function(e){return e instanceof c}:function(e){return!1},f=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)};class h extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:h,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}},promisify:e=>new Promise(((t,r)=>{e(((e,...n)=>e?r(e):t(...n)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,r]){const n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof l,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:u,deprecate:(e,t)=>e,addAbortListener:r(2).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);let r;return f(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)})(t,"listener"),e.aborted?queueMicrotask((()=>t())):(e.addEventListener("abort",t,{__proto__:null,once:!0,[i]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;null===(e=r)||void 0===e||e()}}},AbortSignalAny:s.any||function(e){if(1===e.length)return e[0];const t=new a,r=()=>t.abort();return e.forEach((e=>{f(e,"signals"),e.addEventListener("abort",r,{once:!0})})),t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",r)))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},(e,t,r)=>{const n=r(0),{kResistStopPropagation:i,SymbolDispose:o}=r(6),s=globalThis.AbortSignal||r(8).AbortSignal,a=globalThis.AbortController||r(8).AbortController,l=Object.getPrototypeOf((async function(){})).constructor,c=globalThis.Blob||n.Blob,u=void 0!==c?function(e){return e instanceof c}:function(e){return!1},f=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)};class h extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:h,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}},promisify:e=>new Promise(((t,r)=>{e(((e,...n)=>e?r(e):t(...n)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,r]){const n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof l,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:u,deprecate:(e,t)=>e,addAbortListener:r(2).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);let r;return f(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)})(t,"listener"),e.aborted?queueMicrotask((()=>t())):(e.addEventListener("abort",t,{__proto__:null,once:!0,[i]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;null===(e=r)||void 0===e||e()}}},AbortSignalAny:s.any||function(e){if(1===e.length)return e[0];const t=new a,r=()=>t.abort();return e.forEach((e=>{f(e,"signals"),e.addEventListener("abort",r,{once:!0})})),t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",r)))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},(e,t,r)=>{const n=r(0),{kResistStopPropagation:i,SymbolDispose:o}=r(7),s=globalThis.AbortSignal||r(8).AbortSignal,a=globalThis.AbortController||r(8).AbortController,l=Object.getPrototypeOf((async function(){})).constructor,c=globalThis.Blob||n.Blob,u=void 0!==c?function(e){return e instanceof c}:function(e){return!1},f=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)};class h extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:h,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}},promisify:e=>new Promise(((t,r)=>{e(((e,...n)=>e?r(e):t(...n)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,r]){const n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"===r&&"object"==typeof n){return`${n.constructor!==Object?n.constructor.name:""} {}`.trim()}return n.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof l,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:u,deprecate:(e,t)=>e,addAbortListener:r(2).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);let r;return f(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)})(t,"listener"),e.aborted?queueMicrotask((()=>t())):(e.addEventListener("abort",t,{__proto__:null,once:!0,[i]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;null===(e=r)||void 0===e||e()}}},AbortSignalAny:s.any||function(e){if(1===e.length)return e[0];const t=new a,r=()=>t.abort();return e.forEach((e=>{f(e,"signals"),e.addEventListener("abort",r,{once:!0})})),t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",r)))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},(e,t,r)=>{var n,i,o=r(39),s=r(217),a=r(218),l=r(219),c=r(10);function u(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var f,h=function(){};if(c.debuglog?h=c.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[n]){var d=r.g[n]||[];u(o,d),o.close=function(e){function t(t,r){return e.call(o,t,(function(e){e||_(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),_()}return Object.defineProperty(t,i,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){h(o[n]),r(366).equal(o[n].length,0)}))}function p(e){s(e),e.gracefulify=p,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):b([e,[r,n,i],t,o||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,o,s){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):b([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o,s){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):b([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,o,s){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):b([e,[t,r,n,o],i,s||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=l.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,o,s)):b([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var l=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var c=a(e);_=c.ReadStream,y=c.WriteStream}var u=e.ReadStream;u&&(_.prototype=Object.create(u.prototype),_.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var f=e.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return _},set:function(e){_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var h=_;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=y;function _(e,t){return this instanceof _?(u.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function y(e,t){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=e.open;function g(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return m(t,r,n,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):b([e,[t,r,n,i],s,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=g,e}function b(e){h("ENQUEUE",e[0].name,e[1]),o[n].push(e),y()}function _(){for(var e=Date.now(),t=0;t<o[n].length;++t)o[n][t].length>2&&(o[n][t][3]=e,o[n][t][4]=e);y()}function y(){if(clearTimeout(f),f=void 0,0!==o[n].length){var e=o[n].shift(),t=e[0],r=e[1],i=e[2],s=e[3],a=e[4];if(void 0===s)h("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-s>=6e4){h("TIMEOUT",t.name,r);var l=r.pop();"function"==typeof l&&l.call(null,i)}else{var c=Date.now()-a,u=Math.max(a-s,1);c>=Math.min(1.2*u,100)?(h("RETRY",t.name,r),t.apply(null,r.concat([s]))):o[n].push(e)}void 0===f&&(f=setTimeout(y,0))}}r.g[n]||u(r.g,o[n]),e.exports=p(l(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=p(o),o.__patched=!0)},e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},(e,t,r)=>{const n=r(9).fromPromise,{makeDir:i,makeDirSync:o}=r(387),s=n(i);e.exports={mkdirs:s,mkdirsSync:o,mkdirp:s,mkdirpSync:o,ensureDir:s,ensureDirSync:o}},(e,t,r)=>{const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=r(4),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),l=o("nodejs.stream.readable"),c=o("nodejs.stream.writable"),u=o("nodejs.stream.disturbed"),f=o("nodejs.webstream.isClosedPromise"),h=o("nodejs.webstream.controllerErrorFunction");function d(e,t=!1){var r;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(r=e._readableState)||void 0===r?void 0:r.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function b(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function _(e){return!(!e||b(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function y(e){return!(!e||b(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||b(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function g(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[s]||null!=n&&n.destroyed)}function w(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function v(e,t){if(!d(e))return null;const r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function S(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!g(e)&&(d(e)&&e.readable&&!v(e))}function E(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!g(e)&&(p(e)&&e.writable&&!w(e))}function x(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function R(e){return"boolean"==typeof e._sent100&&x(e)}e.exports={isDestroyed:g,kIsDestroyed:s,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,o,s,l,c,u,f;return!(!e||!(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(s=e[a])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:f,kControllerErrorFunction:h,kIsWritable:c,isClosed:function(e){if(!b(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&x(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return b(e)?!!g(e)||(!1===(null==t?void 0:t.readable)||!S(e))&&(!1===(null==t?void 0:t.writable)||!E(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])},isReadableNodeStream:d,isReadableStream:_,isReadableEnded:function(e){if(!d(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,r;return b(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isNodeStream:b,isWebStream:function(e){return _(e)||y(e)||m(e)},isWritable:E,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:w,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))},isWritableErrored:function(e){var t,r;return b(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:R,willEmitClose:function(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&R(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:m}},(e,t,r)=>{const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=r(5),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),l=o("nodejs.stream.readable"),c=o("nodejs.stream.writable"),u=o("nodejs.stream.disturbed"),f=o("nodejs.webstream.isClosedPromise"),h=o("nodejs.webstream.controllerErrorFunction");function d(e,t=!1){var r;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(r=e._readableState)||void 0===r?void 0:r.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function b(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function _(e){return!(!e||b(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function y(e){return!(!e||b(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||b(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function g(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[s]||null!=n&&n.destroyed)}function w(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function v(e,t){if(!d(e))return null;const r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function S(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!g(e)&&(d(e)&&e.readable&&!v(e))}function E(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!g(e)&&(p(e)&&e.writable&&!w(e))}function x(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function R(e){return"boolean"==typeof e._sent100&&x(e)}e.exports={isDestroyed:g,kIsDestroyed:s,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,o,s,l,c,u,f;return!(!e||!(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(s=e[a])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:f,kControllerErrorFunction:h,kIsWritable:c,isClosed:function(e){if(!b(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&x(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return b(e)?!!g(e)||(!1===(null==t?void 0:t.readable)||!S(e))&&(!1===(null==t?void 0:t.writable)||!E(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])},isReadableNodeStream:d,isReadableStream:_,isReadableEnded:function(e){if(!d(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,r;return b(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isNodeStream:b,isWebStream:function(e){return _(e)||y(e)||m(e)},isWritable:E,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:w,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))},isWritableErrored:function(e){var t,r;return b(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:R,willEmitClose:function(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&R(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:m}},(e,t,r)=>{const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=r(6),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),l=o("nodejs.stream.readable"),c=o("nodejs.stream.writable"),u=o("nodejs.stream.disturbed"),f=o("nodejs.webstream.isClosedPromise"),h=o("nodejs.webstream.controllerErrorFunction");function d(e,t=!1){var r;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(r=e._readableState)||void 0===r?void 0:r.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function b(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function _(e){return!(!e||b(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function y(e){return!(!e||b(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||b(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function g(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[s]||null!=n&&n.destroyed)}function w(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function v(e,t){if(!d(e))return null;const r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function S(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!g(e)&&(d(e)&&e.readable&&!v(e))}function E(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!g(e)&&(p(e)&&e.writable&&!w(e))}function x(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function R(e){return"boolean"==typeof e._sent100&&x(e)}e.exports={isDestroyed:g,kIsDestroyed:s,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,o,s,l,c,u,f;return!(!e||!(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(s=e[a])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:f,kControllerErrorFunction:h,kIsWritable:c,isClosed:function(e){if(!b(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&x(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return b(e)?!!g(e)||(!1===(null==t?void 0:t.readable)||!S(e))&&(!1===(null==t?void 0:t.writable)||!E(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])},isReadableNodeStream:d,isReadableStream:_,isReadableEnded:function(e){if(!d(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,r;return b(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isNodeStream:b,isWebStream:function(e){return _(e)||y(e)||m(e)},isWritable:E,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:w,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))},isWritableErrored:function(e){var t,r;return b(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:R,willEmitClose:function(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&R(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:m}},(e,t,r)=>{const{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=r(7),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),l=o("nodejs.stream.readable"),c=o("nodejs.stream.writable"),u=o("nodejs.stream.disturbed"),f=o("nodejs.webstream.isClosedPromise"),h=o("nodejs.webstream.controllerErrorFunction");function d(e,t=!1){var r;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(r=e._readableState)||void 0===r?void 0:r.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function b(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function _(e){return!(!e||b(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function y(e){return!(!e||b(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||b(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function g(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[s]||null!=n&&n.destroyed)}function w(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function v(e,t){if(!d(e))return null;const r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function S(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!g(e)&&(d(e)&&e.readable&&!v(e))}function E(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!g(e)&&(p(e)&&e.writable&&!w(e))}function x(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function R(e){return"boolean"==typeof e._sent100&&x(e)}e.exports={isDestroyed:g,kIsDestroyed:s,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,o,s,l,c,u,f;return!(!e||!(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(s=e[a])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:a,isReadable:S,kIsReadable:l,kIsClosedPromise:f,kControllerErrorFunction:h,kIsWritable:c,isClosed:function(e){if(!b(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&x(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return b(e)?!!g(e)||(!1===(null==t?void 0:t.readable)||!S(e))&&(!1===(null==t?void 0:t.writable)||!E(e)):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])},isReadableNodeStream:d,isReadableStream:_,isReadableEnded:function(e){if(!d(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,r;return b(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isNodeStream:b,isWebStream:function(e){return _(e)||y(e)||m(e)},isWritable:E,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:w,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))},isWritableErrored:function(e){var t,r;return b(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:R,willEmitClose:function(e){if(!b(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&R(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)},isTransformStream:m}},(e,t,r)=>{const n=r(1),{AbortError:i,codes:o}=r(12),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:l,once:c}=r(17),{validateAbortSignal:u,validateFunction:f,validateObject:h,validateBoolean:d}=r(47),{Promise:p,PromisePrototypeThen:b,SymbolDispose:_}=r(4),{isClosed:y,isReadable:m,isReadableNodeStream:g,isReadableStream:w,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:R,isWritableFinished:A,isWritableErrored:O,isNodeStream:k,willEmitClose:T,kIsClosedPromise:P}=r(24);let M;const L=()=>{};function C(e,t,o){var d,p;if(2===arguments.length?(o=t,t=l):null==t?t=l:h(t,"options"),f(o,"callback"),u(t.signal,"options.signal"),o=c(o),w(e)||R(e))return function(e,t,o){let s=!1,a=L;if(t.signal)if(a=()=>{s=!0,o.call(e,new i(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(a);else{M=M||r(17).addAbortListener;const n=M(t.signal,a),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}const l=(...t)=>{s||n.nextTick((()=>o.apply(e,t)))};return b(e[P].promise,l,l),L}(e,t,o);if(!k(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);const C=null!==(d=t.readable)&&void 0!==d?d:g(e),I=null!==(p=t.writable)&&void 0!==p?p:x(e),D=e._writableState,N=e._readableState,j=()=>{e.writable||B()};let F=T(e)&&g(e)===C&&x(e)===I,W=A(e,!1);const B=()=>{W=!0,e.destroyed&&(F=!1),(!F||e.readable&&!C)&&(C&&!U||o.call(e))};let U=v(e,!1);const $=()=>{U=!0,e.destroyed&&(F=!1),(!F||e.writable&&!I)&&(I&&!W||o.call(e))},z=t=>{o.call(e,t)};let G=y(e);const H=()=>{G=!0;const t=O(e)||S(e);return t&&"boolean"!=typeof t?o.call(e,t):C&&!U&&g(e,!0)&&!v(e,!1)?o.call(e,new a):!I||W||A(e,!1)?void o.call(e):o.call(e,new a)},V=()=>{G=!0;const t=O(e)||S(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},q=()=>{e.req.on("finish",B)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?I&&!D&&(e.on("end",j),e.on("close",j)):(e.on("complete",B),F||e.on("abort",H),e.req?q():e.on("request",q)),F||"boolean"!=typeof e.aborted||e.on("aborted",H),e.on("end",$),e.on("finish",B),!1!==t.error&&e.on("error",z),e.on("close",H),G?n.nextTick(H):null!=D&&D.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(C||F&&!m(e)||!W&&!1!==E(e))&&(I||F&&!E(e)||!U&&!1!==m(e))?N&&e.req&&e.aborted&&n.nextTick(V):n.nextTick(V);const K=()=>{o=L,e.removeListener("aborted",H),e.removeListener("complete",B),e.removeListener("abort",H),e.removeListener("request",q),e.req&&e.req.removeListener("finish",B),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",B),e.removeListener("end",$),e.removeListener("error",z),e.removeListener("close",H)};if(t.signal&&!G){const s=()=>{const r=o;K(),r.call(e,new i(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(s);else{M=M||r(17).addAbortListener;const n=M(t.signal,s),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}}return K}e.exports=C,e.exports.finished=function(e,t){var r;let n=!1;return null===t&&(t=l),null!==(r=t)&&void 0!==r&&r.cleanup&&(d(t.cleanup,"cleanup"),n=t.cleanup),new p(((r,i)=>{const o=C(e,t,(e=>{n&&o(),e?i(e):r()}))}))}},(e,t,r)=>{const n=r(1),{AbortError:i,codes:o}=r(13),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:l,once:c}=r(18),{validateAbortSignal:u,validateFunction:f,validateObject:h,validateBoolean:d}=r(48),{Promise:p,PromisePrototypeThen:b,SymbolDispose:_}=r(5),{isClosed:y,isReadable:m,isReadableNodeStream:g,isReadableStream:w,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:R,isWritableFinished:A,isWritableErrored:O,isNodeStream:k,willEmitClose:T,kIsClosedPromise:P}=r(25);let M;const L=()=>{};function C(e,t,o){var d,p;if(2===arguments.length?(o=t,t=l):null==t?t=l:h(t,"options"),f(o,"callback"),u(t.signal,"options.signal"),o=c(o),w(e)||R(e))return function(e,t,o){let s=!1,a=L;if(t.signal)if(a=()=>{s=!0,o.call(e,new i(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(a);else{M=M||r(18).addAbortListener;const n=M(t.signal,a),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}const l=(...t)=>{s||n.nextTick((()=>o.apply(e,t)))};return b(e[P].promise,l,l),L}(e,t,o);if(!k(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);const C=null!==(d=t.readable)&&void 0!==d?d:g(e),I=null!==(p=t.writable)&&void 0!==p?p:x(e),D=e._writableState,N=e._readableState,j=()=>{e.writable||B()};let F=T(e)&&g(e)===C&&x(e)===I,W=A(e,!1);const B=()=>{W=!0,e.destroyed&&(F=!1),(!F||e.readable&&!C)&&(C&&!U||o.call(e))};let U=v(e,!1);const $=()=>{U=!0,e.destroyed&&(F=!1),(!F||e.writable&&!I)&&(I&&!W||o.call(e))},z=t=>{o.call(e,t)};let G=y(e);const H=()=>{G=!0;const t=O(e)||S(e);return t&&"boolean"!=typeof t?o.call(e,t):C&&!U&&g(e,!0)&&!v(e,!1)?o.call(e,new a):!I||W||A(e,!1)?void o.call(e):o.call(e,new a)},V=()=>{G=!0;const t=O(e)||S(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},q=()=>{e.req.on("finish",B)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?I&&!D&&(e.on("end",j),e.on("close",j)):(e.on("complete",B),F||e.on("abort",H),e.req?q():e.on("request",q)),F||"boolean"!=typeof e.aborted||e.on("aborted",H),e.on("end",$),e.on("finish",B),!1!==t.error&&e.on("error",z),e.on("close",H),G?n.nextTick(H):null!=D&&D.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(C||F&&!m(e)||!W&&!1!==E(e))&&(I||F&&!E(e)||!U&&!1!==m(e))?N&&e.req&&e.aborted&&n.nextTick(V):n.nextTick(V);const K=()=>{o=L,e.removeListener("aborted",H),e.removeListener("complete",B),e.removeListener("abort",H),e.removeListener("request",q),e.req&&e.req.removeListener("finish",B),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",B),e.removeListener("end",$),e.removeListener("error",z),e.removeListener("close",H)};if(t.signal&&!G){const s=()=>{const r=o;K(),r.call(e,new i(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(s);else{M=M||r(18).addAbortListener;const n=M(t.signal,s),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}}return K}e.exports=C,e.exports.finished=function(e,t){var r;let n=!1;return null===t&&(t=l),null!==(r=t)&&void 0!==r&&r.cleanup&&(d(t.cleanup,"cleanup"),n=t.cleanup),new p(((r,i)=>{const o=C(e,t,(e=>{n&&o(),e?i(e):r()}))}))}},(e,t,r)=>{const n=r(1),{AbortError:i,codes:o}=r(14),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:l,once:c}=r(19),{validateAbortSignal:u,validateFunction:f,validateObject:h,validateBoolean:d}=r(49),{Promise:p,PromisePrototypeThen:b,SymbolDispose:_}=r(6),{isClosed:y,isReadable:m,isReadableNodeStream:g,isReadableStream:w,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:R,isWritableFinished:A,isWritableErrored:O,isNodeStream:k,willEmitClose:T,kIsClosedPromise:P}=r(26);let M;const L=()=>{};function C(e,t,o){var d,p;if(2===arguments.length?(o=t,t=l):null==t?t=l:h(t,"options"),f(o,"callback"),u(t.signal,"options.signal"),o=c(o),w(e)||R(e))return function(e,t,o){let s=!1,a=L;if(t.signal)if(a=()=>{s=!0,o.call(e,new i(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(a);else{M=M||r(19).addAbortListener;const n=M(t.signal,a),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}const l=(...t)=>{s||n.nextTick((()=>o.apply(e,t)))};return b(e[P].promise,l,l),L}(e,t,o);if(!k(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);const C=null!==(d=t.readable)&&void 0!==d?d:g(e),I=null!==(p=t.writable)&&void 0!==p?p:x(e),D=e._writableState,N=e._readableState,j=()=>{e.writable||B()};let F=T(e)&&g(e)===C&&x(e)===I,W=A(e,!1);const B=()=>{W=!0,e.destroyed&&(F=!1),(!F||e.readable&&!C)&&(C&&!U||o.call(e))};let U=v(e,!1);const $=()=>{U=!0,e.destroyed&&(F=!1),(!F||e.writable&&!I)&&(I&&!W||o.call(e))},z=t=>{o.call(e,t)};let G=y(e);const H=()=>{G=!0;const t=O(e)||S(e);return t&&"boolean"!=typeof t?o.call(e,t):C&&!U&&g(e,!0)&&!v(e,!1)?o.call(e,new a):!I||W||A(e,!1)?void o.call(e):o.call(e,new a)},V=()=>{G=!0;const t=O(e)||S(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},q=()=>{e.req.on("finish",B)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?I&&!D&&(e.on("end",j),e.on("close",j)):(e.on("complete",B),F||e.on("abort",H),e.req?q():e.on("request",q)),F||"boolean"!=typeof e.aborted||e.on("aborted",H),e.on("end",$),e.on("finish",B),!1!==t.error&&e.on("error",z),e.on("close",H),G?n.nextTick(H):null!=D&&D.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(C||F&&!m(e)||!W&&!1!==E(e))&&(I||F&&!E(e)||!U&&!1!==m(e))?N&&e.req&&e.aborted&&n.nextTick(V):n.nextTick(V);const K=()=>{o=L,e.removeListener("aborted",H),e.removeListener("complete",B),e.removeListener("abort",H),e.removeListener("request",q),e.req&&e.req.removeListener("finish",B),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",B),e.removeListener("end",$),e.removeListener("error",z),e.removeListener("close",H)};if(t.signal&&!G){const s=()=>{const r=o;K(),r.call(e,new i(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(s);else{M=M||r(19).addAbortListener;const n=M(t.signal,s),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}}return K}e.exports=C,e.exports.finished=function(e,t){var r;let n=!1;return null===t&&(t=l),null!==(r=t)&&void 0!==r&&r.cleanup&&(d(t.cleanup,"cleanup"),n=t.cleanup),new p(((r,i)=>{const o=C(e,t,(e=>{n&&o(),e?i(e):r()}))}))}},(e,t,r)=>{const n=r(1),{AbortError:i,codes:o}=r(15),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:l,once:c}=r(20),{validateAbortSignal:u,validateFunction:f,validateObject:h,validateBoolean:d}=r(50),{Promise:p,PromisePrototypeThen:b,SymbolDispose:_}=r(7),{isClosed:y,isReadable:m,isReadableNodeStream:g,isReadableStream:w,isReadableFinished:v,isReadableErrored:S,isWritable:E,isWritableNodeStream:x,isWritableStream:R,isWritableFinished:A,isWritableErrored:O,isNodeStream:k,willEmitClose:T,kIsClosedPromise:P}=r(27);let M;const L=()=>{};function C(e,t,o){var d,p;if(2===arguments.length?(o=t,t=l):null==t?t=l:h(t,"options"),f(o,"callback"),u(t.signal,"options.signal"),o=c(o),w(e)||R(e))return function(e,t,o){let s=!1,a=L;if(t.signal)if(a=()=>{s=!0,o.call(e,new i(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(a);else{M=M||r(20).addAbortListener;const n=M(t.signal,a),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}const l=(...t)=>{s||n.nextTick((()=>o.apply(e,t)))};return b(e[P].promise,l,l),L}(e,t,o);if(!k(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);const C=null!==(d=t.readable)&&void 0!==d?d:g(e),I=null!==(p=t.writable)&&void 0!==p?p:x(e),D=e._writableState,N=e._readableState,j=()=>{e.writable||B()};let F=T(e)&&g(e)===C&&x(e)===I,W=A(e,!1);const B=()=>{W=!0,e.destroyed&&(F=!1),(!F||e.readable&&!C)&&(C&&!U||o.call(e))};let U=v(e,!1);const $=()=>{U=!0,e.destroyed&&(F=!1),(!F||e.writable&&!I)&&(I&&!W||o.call(e))},z=t=>{o.call(e,t)};let G=y(e);const H=()=>{G=!0;const t=O(e)||S(e);return t&&"boolean"!=typeof t?o.call(e,t):C&&!U&&g(e,!0)&&!v(e,!1)?o.call(e,new a):!I||W||A(e,!1)?void o.call(e):o.call(e,new a)},V=()=>{G=!0;const t=O(e)||S(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},q=()=>{e.req.on("finish",B)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?I&&!D&&(e.on("end",j),e.on("close",j)):(e.on("complete",B),F||e.on("abort",H),e.req?q():e.on("request",q)),F||"boolean"!=typeof e.aborted||e.on("aborted",H),e.on("end",$),e.on("finish",B),!1!==t.error&&e.on("error",z),e.on("close",H),G?n.nextTick(H):null!=D&&D.errorEmitted||null!=N&&N.errorEmitted?F||n.nextTick(V):(C||F&&!m(e)||!W&&!1!==E(e))&&(I||F&&!E(e)||!U&&!1!==m(e))?N&&e.req&&e.aborted&&n.nextTick(V):n.nextTick(V);const K=()=>{o=L,e.removeListener("aborted",H),e.removeListener("complete",B),e.removeListener("abort",H),e.removeListener("request",q),e.req&&e.req.removeListener("finish",B),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",B),e.removeListener("end",$),e.removeListener("error",z),e.removeListener("close",H)};if(t.signal&&!G){const s=()=>{const r=o;K(),r.call(e,new i(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(s);else{M=M||r(20).addAbortListener;const n=M(t.signal,s),i=o;o=c(((...t)=>{n[_](),i.apply(e,t)}))}}return K}e.exports=C,e.exports.finished=function(e,t){var r;let n=!1;return null===t&&(t=l),null!==(r=t)&&void 0!==r&&r.cleanup&&(d(t.cleanup,"cleanup"),n=t.cleanup),new p(((r,i)=>{const o=C(e,t,(e=>{n&&o(),e?i(e):r()}))}))}},(e,t,r)=>{const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=r(4);e.exports=c;const a=r(61),l=r(91);s(c.prototype,a.prototype),s(c,a);{const e=o(l.prototype);for(let t=0;t<e.length;t++){const r=e[t];c.prototype[r]||(c.prototype[r]=l.prototype[r])}}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),l.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,f;function h(){return void 0===u&&(u={}),u}n(c.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return h().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return h().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=r(250)),f(e,"body")}},(e,t,r)=>{const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=r(5);e.exports=c;const a=r(68),l=r(95);s(c.prototype,a.prototype),s(c,a);{const e=o(l.prototype);for(let t=0;t<e.length;t++){const r=e[t];c.prototype[r]||(c.prototype[r]=l.prototype[r])}}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),l.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,f;function h(){return void 0===u&&(u={}),u}n(c.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return h().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return h().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=r(292)),f(e,"body")}},(e,t,r)=>{const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=r(6);e.exports=c;const a=r(71),l=r(100);s(c.prototype,a.prototype),s(c,a);{const e=o(l.prototype);for(let t=0;t<e.length;t++){const r=e[t];c.prototype[r]||(c.prototype[r]=l.prototype[r])}}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),l.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,f;function h(){return void 0===u&&(u={}),u}n(c.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return h().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return h().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=r(298)),f(e,"body")}},(e,t,r)=>{const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=r(7);e.exports=c;const a=r(74),l=r(104);s(c.prototype,a.prototype),s(c,a);{const e=o(l.prototype);for(let t=0;t<e.length;t++){const r=e[t];c.prototype[r]||(c.prototype[r]=l.prototype[r])}}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),l.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,f;function h(){return void 0===u&&(u={}),u}n(c.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return h().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return h().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=r(303)),f(e,"body")}},(e,t,r)=>{const n=r(9).fromPromise,i=r(11);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const i=n(r(82)),o=r(369),s=r(354),a=r(355),l=r(203);t.minimatch=(e,t,r={})=>((0,o.assertValidPattern)(t),!(!r.nocomment&&"#"===t.charAt(0))&&new I(t,r).match(e));const c=/^\*+([^+@!?\*\[\(]*)$/,u=e=>t=>!t.startsWith(".")&&t.endsWith(e),f=e=>t=>t.endsWith(e),h=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),d=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),p=/^\*+\.\*+$/,b=e=>!e.startsWith(".")&&e.includes("."),_=e=>"."!==e&&".."!==e&&e.includes("."),y=/^\.\*+$/,m=e=>"."!==e&&".."!==e&&e.startsWith("."),g=/^\*+$/,w=e=>0!==e.length&&!e.startsWith("."),v=e=>0!==e.length&&"."!==e&&".."!==e,S=/^\?+([^+@!?\*\[\(]*)?$/,E=([e,t=""])=>{const r=O([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},x=([e,t=""])=>{const r=k([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},R=([e,t=""])=>{const r=k([e]);return t?e=>r(e)&&e.endsWith(t):r},A=([e,t=""])=>{const r=O([e]);return t?e=>r(e)&&e.endsWith(t):r},O=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},k=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},T="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",P={sep:"\\"},M={sep:"/"};t.sep="win32"===T?P.sep:M.sep,t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,r={})=>n=>(0,t.minimatch)(n,e,r),t.minimatch.filter=t.filter;const L=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;const r=t.minimatch;return Object.assign(((t,n,i={})=>r(t,n,L(e,i))),{Minimatch:class extends r.Minimatch{constructor(t,r={}){super(t,L(e,r))}static defaults(t){return r.defaults(L(e,t)).Minimatch}},AST:class extends r.AST{constructor(t,r,n={}){super(t,r,L(e,n))}static fromGlob(t,n={}){return r.AST.fromGlob(t,L(e,n))}},unescape:(t,n={})=>r.unescape(t,L(e,n)),escape:(t,n={})=>r.escape(t,L(e,n)),filter:(t,n={})=>r.filter(t,L(e,n)),defaults:t=>r.defaults(L(e,t)),makeRe:(t,n={})=>r.makeRe(t,L(e,n)),braceExpand:(t,n={})=>r.braceExpand(t,L(e,n)),match:(t,n,i={})=>r.match(t,n,L(e,i)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults;t.braceExpand=(e,t={})=>((0,o.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,i.default)(e)),t.minimatch.braceExpand=t.braceExpand;t.makeRe=(e,t={})=>new I(e,t).makeRe(),t.minimatch.makeRe=t.makeRe;t.match=(e,t,r={})=>{const n=new I(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;const C=/[?*]|[+@!]\(.*?\)|\[|\]/;class I{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,o.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||T,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&C.test(e[2])||C.test(e[3])),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))];if(r)return[e[0],...e.slice(1).map((e=>this.parse(e)))]}return e.map((e=>this.parse(e)))}));if(this.debug(this.pattern,n),this.set=n.filter((e=>-1===e.indexOf(!1))),this.isWindows)for(let e=0;e<this.set.length;e++){const t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let r=0;r<e[t].length;r++)"**"===e[t][r]&&(e[t][r]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e}))}levelOneOptimize(e){return e.map((e=>0===(e=e.reduce(((e,t)=>{const r=e[e.length-1];return"**"===t&&"**"===r?e:".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?(e.pop(),e):(e.push(t),e)}),[])).length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){const n=e[r];1===r&&""===n&&""===e[0]||("."!==n&&""!==n||(t=!0,e.splice(r,1),r--))}"."!==e[0]||2!==e.length||"."!==e[1]&&""!==e[1]||(t=!0,e.pop())}let r=0;for(;-1!==(r=e.indexOf("..",r+1));){const n=e[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let o=r[n+1];const s=r[n+2],a=r[n+3];if(".."!==o)continue;if(!s||"."===s||".."===s||!a||"."===a||".."===a)continue;t=!0,r.splice(n,1);const l=r.slice(0);l[n]="**",e.push(l),n--}if(!this.preserveMultipleSlashes){for(let e=1;e<r.length-1;e++){const n=r[e];1===e&&""===n&&""===r[0]||("."!==n&&""!==n||(t=!0,r.splice(e,1),e--))}"."!==r[0]||2!==r.length||"."!==r[1]&&""!==r[1]||(t=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){const e=r[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;const e=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...e),0===r.length&&r.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){const n=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);n&&(e[t]=n,e[r]=[])}return e.filter((e=>e.length))}partsMatch(e,t,r=!1){let n=0,i=0,o=[],s="";for(;n<e.length&&i<t.length;)if(e[n]===t[i])o.push("b"===s?t[i]:e[n]),n++,i++;else if(r&&"**"===e[n]&&t[i]===e[n+1])o.push(e[n]),n++;else if(r&&"**"===t[i]&&e[n]===t[i+1])o.push(t[i]),i++;else if("*"!==e[n]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i]){if("*"!==t[i]||!e[n]||!this.options.dot&&e[n].startsWith(".")||"**"===e[n])return!1;if("a"===s)return!1;s="b",o.push(t[i]),n++,i++}else{if("b"===s)return!1;s="a",o.push(e[n]),n++,i++}return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,r,n=!1){const i=this.options;if(this.isWindows){const t="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),n=!t&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),i="string"==typeof r[0]&&/^[a-z]:$/i.test(r[0]),o=n?3:t?0:void 0,s=!i&&""===r[0]&&""===r[1]&&"?"===r[2]&&"string"==typeof r[3]&&/^[a-z]:$/i.test(r[3])?3:i?0:void 0;if("number"==typeof o&&"number"==typeof s){const[t,n]=[e[o],r[s]];t.toLowerCase()===n.toLowerCase()&&(r[s]=t,s>o?r=r.slice(s):o>s&&(e=e.slice(o)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var s=0,a=0,l=e.length,c=r.length;s<l&&a<c;s++,a++){this.debug("matchOne loop");var u=r[a],f=e[s];if(this.debug(r,u,f),!1===u)return!1;if(u===t.GLOBSTAR){this.debug("GLOBSTAR",[r,u,f]);var h=s,d=a+1;if(d===c){for(this.debug("** at the end");s<l;s++)if("."===e[s]||".."===e[s]||!i.dot&&"."===e[s].charAt(0))return!1;return!0}for(;h<l;){var p=e[h];if(this.debug("\nglobstar while",e,h,r,d,p),this.matchOne(e.slice(h),r.slice(d),n))return this.debug("globstar found match!",h,l,p),!0;if("."===p||".."===p||!i.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",e,h,r,d),h!==l))}let o;if("string"==typeof u?(o=f===u,this.debug("string match",u,f,o)):(o=u.test(f),this.debug("pattern match",u,f,o)),!o)return!1}if(s===l&&a===c)return!0;if(s===l)return n;if(a===c)return s===l-1&&""===e[s];throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,o.assertValidPattern)(e);const r=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let n,i=null;(n=e.match(g))?i=r.dot?v:w:(n=e.match(c))?i=(r.nocase?r.dot?d:h:r.dot?f:u)(n[1]):(n=e.match(S))?i=(r.nocase?r.dot?x:E:r.dot?R:A)(n):(n=e.match(p))?i=r.dot?_:b:(n=e.match(y))&&(i=m);const a=s.AST.fromGlob(e,this.options).toMMPattern();return i?Object.assign(a,{test:i}):a}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]);let o=e.map((e=>{const r=e.map((e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src}));return r.forEach(((e,i)=>{const o=r[i+1],s=r[i-1];e===t.GLOBSTAR&&s!==t.GLOBSTAR&&(void 0===s?void 0!==o&&o!==t.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+o:r[i]=n:void 0===o?r[i-1]=s+"(?:\\/|"+n+")?":o!==t.GLOBSTAR&&(r[i-1]=s+"(?:\\/|\\/"+n+"\\/)"+o,r[i+1]=t.GLOBSTAR))})),r.filter((e=>e!==t.GLOBSTAR)).join("/")})).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];o="^"+s+o+a+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const n=this.slashSplit(e);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let e=n.length-2;!o&&e>=0;e--)o=n[e];for(let e=0;e<i.length;e++){const s=i[e];let a=n;r.matchBase&&1===s.length&&(a=[o]);if(this.matchOne(a,s,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=I;var D=r(354);Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return D.AST}});var N=r(355);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return N.escape}});var j=r(203);Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return j.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=I,t.minimatch.escape=a.escape,t.minimatch.unescape=l.unescape},function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const i=n(r(82)),o=r(378),s=r(359),a=r(360),l=r(209);t.minimatch=(e,t,r={})=>((0,o.assertValidPattern)(t),!(!r.nocomment&&"#"===t.charAt(0))&&new I(t,r).match(e));const c=/^\*+([^+@!?\*\[\(]*)$/,u=e=>t=>!t.startsWith(".")&&t.endsWith(e),f=e=>t=>t.endsWith(e),h=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),d=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),p=/^\*+\.\*+$/,b=e=>!e.startsWith(".")&&e.includes("."),_=e=>"."!==e&&".."!==e&&e.includes("."),y=/^\.\*+$/,m=e=>"."!==e&&".."!==e&&e.startsWith("."),g=/^\*+$/,w=e=>0!==e.length&&!e.startsWith("."),v=e=>0!==e.length&&"."!==e&&".."!==e,S=/^\?+([^+@!?\*\[\(]*)?$/,E=([e,t=""])=>{const r=O([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},x=([e,t=""])=>{const r=k([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},R=([e,t=""])=>{const r=k([e]);return t?e=>r(e)&&e.endsWith(t):r},A=([e,t=""])=>{const r=O([e]);return t?e=>r(e)&&e.endsWith(t):r},O=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},k=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},T="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",P={sep:"\\"},M={sep:"/"};t.sep="win32"===T?P.sep:M.sep,t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,r={})=>n=>(0,t.minimatch)(n,e,r),t.minimatch.filter=t.filter;const L=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;const r=t.minimatch;return Object.assign(((t,n,i={})=>r(t,n,L(e,i))),{Minimatch:class extends r.Minimatch{constructor(t,r={}){super(t,L(e,r))}static defaults(t){return r.defaults(L(e,t)).Minimatch}},AST:class extends r.AST{constructor(t,r,n={}){super(t,r,L(e,n))}static fromGlob(t,n={}){return r.AST.fromGlob(t,L(e,n))}},unescape:(t,n={})=>r.unescape(t,L(e,n)),escape:(t,n={})=>r.escape(t,L(e,n)),filter:(t,n={})=>r.filter(t,L(e,n)),defaults:t=>r.defaults(L(e,t)),makeRe:(t,n={})=>r.makeRe(t,L(e,n)),braceExpand:(t,n={})=>r.braceExpand(t,L(e,n)),match:(t,n,i={})=>r.match(t,n,L(e,i)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults;t.braceExpand=(e,t={})=>((0,o.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,i.default)(e)),t.minimatch.braceExpand=t.braceExpand;t.makeRe=(e,t={})=>new I(e,t).makeRe(),t.minimatch.makeRe=t.makeRe;t.match=(e,t,r={})=>{const n=new I(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;const C=/[?*]|[+@!]\(.*?\)|\[|\]/;class I{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,o.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||T,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&C.test(e[2])||C.test(e[3])),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))];if(r)return[e[0],...e.slice(1).map((e=>this.parse(e)))]}return e.map((e=>this.parse(e)))}));if(this.debug(this.pattern,n),this.set=n.filter((e=>-1===e.indexOf(!1))),this.isWindows)for(let e=0;e<this.set.length;e++){const t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let r=0;r<e[t].length;r++)"**"===e[t][r]&&(e[t][r]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e}))}levelOneOptimize(e){return e.map((e=>0===(e=e.reduce(((e,t)=>{const r=e[e.length-1];return"**"===t&&"**"===r?e:".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?(e.pop(),e):(e.push(t),e)}),[])).length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){const n=e[r];1===r&&""===n&&""===e[0]||("."!==n&&""!==n||(t=!0,e.splice(r,1),r--))}"."!==e[0]||2!==e.length||"."!==e[1]&&""!==e[1]||(t=!0,e.pop())}let r=0;for(;-1!==(r=e.indexOf("..",r+1));){const n=e[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let o=r[n+1];const s=r[n+2],a=r[n+3];if(".."!==o)continue;if(!s||"."===s||".."===s||!a||"."===a||".."===a)continue;t=!0,r.splice(n,1);const l=r.slice(0);l[n]="**",e.push(l),n--}if(!this.preserveMultipleSlashes){for(let e=1;e<r.length-1;e++){const n=r[e];1===e&&""===n&&""===r[0]||("."!==n&&""!==n||(t=!0,r.splice(e,1),e--))}"."!==r[0]||2!==r.length||"."!==r[1]&&""!==r[1]||(t=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){const e=r[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;const e=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...e),0===r.length&&r.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){const n=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);n&&(e[t]=n,e[r]=[])}return e.filter((e=>e.length))}partsMatch(e,t,r=!1){let n=0,i=0,o=[],s="";for(;n<e.length&&i<t.length;)if(e[n]===t[i])o.push("b"===s?t[i]:e[n]),n++,i++;else if(r&&"**"===e[n]&&t[i]===e[n+1])o.push(e[n]),n++;else if(r&&"**"===t[i]&&e[n]===t[i+1])o.push(t[i]),i++;else if("*"!==e[n]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i]){if("*"!==t[i]||!e[n]||!this.options.dot&&e[n].startsWith(".")||"**"===e[n])return!1;if("a"===s)return!1;s="b",o.push(t[i]),n++,i++}else{if("b"===s)return!1;s="a",o.push(e[n]),n++,i++}return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,r,n=!1){const i=this.options;if(this.isWindows){const t="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),n=!t&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),i="string"==typeof r[0]&&/^[a-z]:$/i.test(r[0]),o=n?3:t?0:void 0,s=!i&&""===r[0]&&""===r[1]&&"?"===r[2]&&"string"==typeof r[3]&&/^[a-z]:$/i.test(r[3])?3:i?0:void 0;if("number"==typeof o&&"number"==typeof s){const[t,n]=[e[o],r[s]];t.toLowerCase()===n.toLowerCase()&&(r[s]=t,s>o?r=r.slice(s):o>s&&(e=e.slice(o)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var s=0,a=0,l=e.length,c=r.length;s<l&&a<c;s++,a++){this.debug("matchOne loop");var u=r[a],f=e[s];if(this.debug(r,u,f),!1===u)return!1;if(u===t.GLOBSTAR){this.debug("GLOBSTAR",[r,u,f]);var h=s,d=a+1;if(d===c){for(this.debug("** at the end");s<l;s++)if("."===e[s]||".."===e[s]||!i.dot&&"."===e[s].charAt(0))return!1;return!0}for(;h<l;){var p=e[h];if(this.debug("\nglobstar while",e,h,r,d,p),this.matchOne(e.slice(h),r.slice(d),n))return this.debug("globstar found match!",h,l,p),!0;if("."===p||".."===p||!i.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",e,h,r,d),h!==l))}let o;if("string"==typeof u?(o=f===u,this.debug("string match",u,f,o)):(o=u.test(f),this.debug("pattern match",u,f,o)),!o)return!1}if(s===l&&a===c)return!0;if(s===l)return n;if(a===c)return s===l-1&&""===e[s];throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,o.assertValidPattern)(e);const r=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let n,i=null;(n=e.match(g))?i=r.dot?v:w:(n=e.match(c))?i=(r.nocase?r.dot?d:h:r.dot?f:u)(n[1]):(n=e.match(S))?i=(r.nocase?r.dot?x:E:r.dot?R:A)(n):(n=e.match(p))?i=r.dot?_:b:(n=e.match(y))&&(i=m);const a=s.AST.fromGlob(e,this.options).toMMPattern();return i?Object.assign(a,{test:i}):a}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]);let o=e.map((e=>{const r=e.map((e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src}));return r.forEach(((e,i)=>{const o=r[i+1],s=r[i-1];e===t.GLOBSTAR&&s!==t.GLOBSTAR&&(void 0===s?void 0!==o&&o!==t.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+o:r[i]=n:void 0===o?r[i-1]=s+"(?:\\/|"+n+")?":o!==t.GLOBSTAR&&(r[i-1]=s+"(?:\\/|\\/"+n+"\\/)"+o,r[i+1]=t.GLOBSTAR))})),r.filter((e=>e!==t.GLOBSTAR)).join("/")})).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];o="^"+s+o+a+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const n=this.slashSplit(e);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let e=n.length-2;!o&&e>=0;e--)o=n[e];for(let e=0;e<i.length;e++){const s=i[e];let a=n;r.matchBase&&1===s.length&&(a=[o]);if(this.matchOne(a,s,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=I;var D=r(359);Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return D.AST}});var N=r(360);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return N.escape}});var j=r(209);Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return j.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=I,t.minimatch.escape=a.escape,t.minimatch.unescape=l.unescape},e=>{e.exports=require("fs")},(e,t,r)=>{const n=r(1),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=r(12),{Symbol:a}=r(4),{kIsDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:f}=r(24),h=a("kDestroy"),d=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function b(e,t,r){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(_,e,t):n.nextTick(y,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function _(e,t){m(e,t),y(e)}function y(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function g(e,t,r){const i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(m,e,t):m(e,t))}function w(e){let t=!1;function r(r){if(t)return void g(e,null!=r?r:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(h,r):r?g(e,r,!0):n.nextTick(v,e)}try{e._construct((e=>{n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function v(e){e.emit(d)}function S(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function E(e){e.emit("close")}function x(e,t){e.emit("error",t),n.nextTick(E,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(d,t),e.listenerCount(d)>1||n.nextTick(w,e)},destroyer:function(e,t){e&&!c(e)&&(t||u(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):S(e)?e.abort():S(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(x,e,t):n.nextTick(E,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){const r=this._readableState,n=this._writableState,o=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof t&&t(),this):(p(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?b(this,e,t):this.once(h,(function(r){b(this,i(r,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:g}},(e,t,r)=>{const n=r(1),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=r(13),{Symbol:a}=r(5),{kIsDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:f}=r(25),h=a("kDestroy"),d=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function b(e,t,r){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(_,e,t):n.nextTick(y,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function _(e,t){m(e,t),y(e)}function y(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function g(e,t,r){const i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(m,e,t):m(e,t))}function w(e){let t=!1;function r(r){if(t)return void g(e,null!=r?r:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(h,r):r?g(e,r,!0):n.nextTick(v,e)}try{e._construct((e=>{n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function v(e){e.emit(d)}function S(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function E(e){e.emit("close")}function x(e,t){e.emit("error",t),n.nextTick(E,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(d,t),e.listenerCount(d)>1||n.nextTick(w,e)},destroyer:function(e,t){e&&!c(e)&&(t||u(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):S(e)?e.abort():S(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(x,e,t):n.nextTick(E,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){const r=this._readableState,n=this._writableState,o=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof t&&t(),this):(p(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?b(this,e,t):this.once(h,(function(r){b(this,i(r,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:g}},(e,t,r)=>{const n=r(1),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=r(14),{Symbol:a}=r(6),{kIsDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:f}=r(26),h=a("kDestroy"),d=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function b(e,t,r){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(_,e,t):n.nextTick(y,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function _(e,t){m(e,t),y(e)}function y(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function g(e,t,r){const i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(m,e,t):m(e,t))}function w(e){let t=!1;function r(r){if(t)return void g(e,null!=r?r:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(h,r):r?g(e,r,!0):n.nextTick(v,e)}try{e._construct((e=>{n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function v(e){e.emit(d)}function S(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function E(e){e.emit("close")}function x(e,t){e.emit("error",t),n.nextTick(E,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(d,t),e.listenerCount(d)>1||n.nextTick(w,e)},destroyer:function(e,t){e&&!c(e)&&(t||u(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):S(e)?e.abort():S(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(x,e,t):n.nextTick(E,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){const r=this._readableState,n=this._writableState,o=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof t&&t(),this):(p(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?b(this,e,t):this.once(h,(function(r){b(this,i(r,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:g}},(e,t,r)=>{const n=r(1),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=r(15),{Symbol:a}=r(7),{kIsDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:f}=r(27),h=a("kDestroy"),d=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function b(e,t,r){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(_,e,t):n.nextTick(y,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function _(e,t){m(e,t),y(e)}function y(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function g(e,t,r){const i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(m,e,t):m(e,t))}function w(e){let t=!1;function r(r){if(t)return void g(e,null!=r?r:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(h,r):r?g(e,r,!0):n.nextTick(v,e)}try{e._construct((e=>{n.nextTick(r,e)}))}catch(e){n.nextTick(r,e)}}function v(e){e.emit(d)}function S(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function E(e){e.emit("close")}function x(e,t){e.emit("error",t),n.nextTick(E,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(d,t),e.listenerCount(d)>1||n.nextTick(w,e)},destroyer:function(e,t){e&&!c(e)&&(t||u(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):S(e)?e.abort():S(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(x,e,t):n.nextTick(E,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){const r=this._readableState,n=this._writableState,o=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?("function"==typeof t&&t(),this):(p(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?b(this,e,t):this.once(h,(function(r){b(this,i(r,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:g}},(e,t,r)=>{const n=r(11),i=r(3),o=r(9).fromPromise;function s(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function a(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.every(((e,t)=>n[t]===e))}function l(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:o((async function(e,t,r,o){const{srcStat:c,destStat:u}=await function(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(e,t,o);if(u){if(s(c,u)){const n=i.basename(e),o=i.basename(t);if("move"===r&&n!==o&&n.toLowerCase()===o.toLowerCase())return{srcStat:c,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!c.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(c.isDirectory()&&a(e,t))throw new Error(l(e,t,r));return{srcStat:c,destStat:u}})),checkPathsSync:function(e,t,r,o){const{srcStat:c,destStat:u}=function(e,t,r){let i;const o=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),s=o(e);try{i=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}(e,t,o);if(u){if(s(c,u)){const n=i.basename(e),o=i.basename(t);if("move"===r&&n!==o&&n.toLowerCase()===o.toLowerCase())return{srcStat:c,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(c.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!c.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(c.isDirectory()&&a(e,t))throw new Error(l(e,t,r));return{srcStat:c,destStat:u}},checkParentPaths:o((async function e(t,r,o,a){const c=i.resolve(i.dirname(t)),u=i.resolve(i.dirname(o));if(u===c||u===i.parse(u).root)return;let f;try{f=await n.stat(u,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(r,f))throw new Error(l(t,o,a));return e(t,r,u,a)})),checkParentPathsSync:function e(t,r,o,a){const c=i.resolve(i.dirname(t)),u=i.resolve(i.dirname(o));if(u===c||u===i.parse(u).root)return;let f;try{f=n.statSync(u,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(r,f))throw new Error(l(t,o,a));return e(t,r,u,a)},isSrcSubdir:a,areIdentical:s}},(e,t,r)=>{var n=r(135),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},(e,t,r)=>{const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:f,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:_}=r(4),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(12),{normalizeEncoding:E}=r(17),{isAsyncFunction:x,isArrayBufferView:R}=r(17).types,A={};const O=/^[0-7]+$/;const k=y(((e,t,r=u,n=c)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),T=y(((e,t,r=-2147483648,n=2147483647)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),P=y(((e,t,r=!1)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);const n=r?1:0,i=4294967295;if(e<n||e>i)throw new v(t,`>= ${n} && <= ${i}`,e)}));function M(e,t){if("string"!=typeof e)throw new g(t,"string",e)}const L=y(((e,t,r)=>{if(!i(r,e)){const n=o(s(r,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new w(t,e,"must be one of: "+n)}}));function C(e,t){if("boolean"!=typeof e)throw new g(t,"boolean",e)}function I(e,t,r){return null!=e&&h(e,t)?e[t]:r}const D=y(((e,t,r=null)=>{const i=I(r,"allowArray",!1),o=I(r,"allowFunction",!1);if(!I(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new g(t,"Object",e)})),N=y(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new g(t,"a dictionary",e)})),j=y(((e,t,r=0)=>{if(!n(e))throw new g(t,"Array",e);if(e.length<r){throw new w(t,e,`must be longer than ${r}`)}}));const F=y(((e,t="buffer")=>{if(!R(e))throw new g(t,["Buffer","TypedArray","DataView"],e)}));const W=y(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new g(t,"AbortSignal",e)})),B=y(((e,t)=>{if("function"!=typeof e)throw new g(t,"Function",e)})),U=y(((e,t)=>{if("function"!=typeof e||x(e))throw new g(t,"Function",e)})),$=y(((e,t)=>{if(void 0!==e)throw new g(t,"undefined",e)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(e,t){if(void 0===e||!d(z,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===d(O,e))throw new w(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return P(e,t),e},validateArray:j,validateStringArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)M(e[r],`${t}[${r}]`)},validateBooleanArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)C(e[r],`${t}[${r}]`)},validateAbortSignalArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++){const n=e[r],i=`${t}[${r}]`;if(null==n)throw new g(i,"AbortSignal",n);W(n,i)}},validateBoolean:C,validateBuffer:F,validateDictionary:N,validateEncoding:function(e,t){const r=E(t),n=e.length;if("hex"===r&&n%2!=0)throw new w("encoding",t,`is invalid for data of length ${n}`)},validateFunction:B,validateInt32:T,validateInteger:k,validateNumber:function(e,t,r=void 0,n){if("number"!=typeof e)throw new g(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new v(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)},validateObject:D,validateOneOf:L,validatePlainFunction:U,validatePort:function(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===_(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new m(t,e,r);return 0|e},validateSignalName:function(e,t="signal"){if(M(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new S(e+" (signals must use all capital letters)");throw new S(e)}},validateString:M,validateUint32:P,validateUndefined:$,validateUnion:function(e,t,r){if(!i(r,e))throw new g(t,`('${o(r,"|")}')`,e)},validateAbortSignal:W,validateLinkHeaderValue:function(e){if("string"==typeof e)return G(e,"hints"),e;if(n(e)){const t=e.length;let r="";if(0===t)return r;for(let n=0;n<t;n++){const i=e[n];G(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},(e,t,r)=>{const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:f,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:_}=r(5),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(13),{normalizeEncoding:E}=r(18),{isAsyncFunction:x,isArrayBufferView:R}=r(18).types,A={};const O=/^[0-7]+$/;const k=y(((e,t,r=u,n=c)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),T=y(((e,t,r=-2147483648,n=2147483647)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),P=y(((e,t,r=!1)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);const n=r?1:0,i=4294967295;if(e<n||e>i)throw new v(t,`>= ${n} && <= ${i}`,e)}));function M(e,t){if("string"!=typeof e)throw new g(t,"string",e)}const L=y(((e,t,r)=>{if(!i(r,e)){const n=o(s(r,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new w(t,e,"must be one of: "+n)}}));function C(e,t){if("boolean"!=typeof e)throw new g(t,"boolean",e)}function I(e,t,r){return null!=e&&h(e,t)?e[t]:r}const D=y(((e,t,r=null)=>{const i=I(r,"allowArray",!1),o=I(r,"allowFunction",!1);if(!I(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new g(t,"Object",e)})),N=y(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new g(t,"a dictionary",e)})),j=y(((e,t,r=0)=>{if(!n(e))throw new g(t,"Array",e);if(e.length<r){throw new w(t,e,`must be longer than ${r}`)}}));const F=y(((e,t="buffer")=>{if(!R(e))throw new g(t,["Buffer","TypedArray","DataView"],e)}));const W=y(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new g(t,"AbortSignal",e)})),B=y(((e,t)=>{if("function"!=typeof e)throw new g(t,"Function",e)})),U=y(((e,t)=>{if("function"!=typeof e||x(e))throw new g(t,"Function",e)})),$=y(((e,t)=>{if(void 0!==e)throw new g(t,"undefined",e)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(e,t){if(void 0===e||!d(z,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===d(O,e))throw new w(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return P(e,t),e},validateArray:j,validateStringArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)M(e[r],`${t}[${r}]`)},validateBooleanArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)C(e[r],`${t}[${r}]`)},validateAbortSignalArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++){const n=e[r],i=`${t}[${r}]`;if(null==n)throw new g(i,"AbortSignal",n);W(n,i)}},validateBoolean:C,validateBuffer:F,validateDictionary:N,validateEncoding:function(e,t){const r=E(t),n=e.length;if("hex"===r&&n%2!=0)throw new w("encoding",t,`is invalid for data of length ${n}`)},validateFunction:B,validateInt32:T,validateInteger:k,validateNumber:function(e,t,r=void 0,n){if("number"!=typeof e)throw new g(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new v(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)},validateObject:D,validateOneOf:L,validatePlainFunction:U,validatePort:function(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===_(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new m(t,e,r);return 0|e},validateSignalName:function(e,t="signal"){if(M(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new S(e+" (signals must use all capital letters)");throw new S(e)}},validateString:M,validateUint32:P,validateUndefined:$,validateUnion:function(e,t,r){if(!i(r,e))throw new g(t,`('${o(r,"|")}')`,e)},validateAbortSignal:W,validateLinkHeaderValue:function(e){if("string"==typeof e)return G(e,"hints"),e;if(n(e)){const t=e.length;let r="";if(0===t)return r;for(let n=0;n<t;n++){const i=e[n];G(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},(e,t,r)=>{const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:f,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:_}=r(6),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(14),{normalizeEncoding:E}=r(19),{isAsyncFunction:x,isArrayBufferView:R}=r(19).types,A={};const O=/^[0-7]+$/;const k=y(((e,t,r=u,n=c)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),T=y(((e,t,r=-2147483648,n=2147483647)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),P=y(((e,t,r=!1)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);const n=r?1:0,i=4294967295;if(e<n||e>i)throw new v(t,`>= ${n} && <= ${i}`,e)}));function M(e,t){if("string"!=typeof e)throw new g(t,"string",e)}const L=y(((e,t,r)=>{if(!i(r,e)){const n=o(s(r,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new w(t,e,"must be one of: "+n)}}));function C(e,t){if("boolean"!=typeof e)throw new g(t,"boolean",e)}function I(e,t,r){return null!=e&&h(e,t)?e[t]:r}const D=y(((e,t,r=null)=>{const i=I(r,"allowArray",!1),o=I(r,"allowFunction",!1);if(!I(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new g(t,"Object",e)})),N=y(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new g(t,"a dictionary",e)})),j=y(((e,t,r=0)=>{if(!n(e))throw new g(t,"Array",e);if(e.length<r){throw new w(t,e,`must be longer than ${r}`)}}));const F=y(((e,t="buffer")=>{if(!R(e))throw new g(t,["Buffer","TypedArray","DataView"],e)}));const W=y(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new g(t,"AbortSignal",e)})),B=y(((e,t)=>{if("function"!=typeof e)throw new g(t,"Function",e)})),U=y(((e,t)=>{if("function"!=typeof e||x(e))throw new g(t,"Function",e)})),$=y(((e,t)=>{if(void 0!==e)throw new g(t,"undefined",e)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(e,t){if(void 0===e||!d(z,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===d(O,e))throw new w(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return P(e,t),e},validateArray:j,validateStringArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)M(e[r],`${t}[${r}]`)},validateBooleanArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)C(e[r],`${t}[${r}]`)},validateAbortSignalArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++){const n=e[r],i=`${t}[${r}]`;if(null==n)throw new g(i,"AbortSignal",n);W(n,i)}},validateBoolean:C,validateBuffer:F,validateDictionary:N,validateEncoding:function(e,t){const r=E(t),n=e.length;if("hex"===r&&n%2!=0)throw new w("encoding",t,`is invalid for data of length ${n}`)},validateFunction:B,validateInt32:T,validateInteger:k,validateNumber:function(e,t,r=void 0,n){if("number"!=typeof e)throw new g(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new v(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)},validateObject:D,validateOneOf:L,validatePlainFunction:U,validatePort:function(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===_(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new m(t,e,r);return 0|e},validateSignalName:function(e,t="signal"){if(M(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new S(e+" (signals must use all capital letters)");throw new S(e)}},validateString:M,validateUint32:P,validateUndefined:$,validateUnion:function(e,t,r){if(!i(r,e))throw new g(t,`('${o(r,"|")}')`,e)},validateAbortSignal:W,validateLinkHeaderValue:function(e){if("string"==typeof e)return G(e,"hints"),e;if(n(e)){const t=e.length;let r="";if(0===t)return r;for(let n=0;n<t;n++){const i=e[n];G(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},(e,t,r)=>{const{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:f,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:d,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:_}=r(7),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:S}}=r(15),{normalizeEncoding:E}=r(20),{isAsyncFunction:x,isArrayBufferView:R}=r(20).types,A={};const O=/^[0-7]+$/;const k=y(((e,t,r=u,n=c)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),T=y(((e,t,r=-2147483648,n=2147483647)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<r||e>n)throw new v(t,`>= ${r} && <= ${n}`,e)})),P=y(((e,t,r=!1)=>{if("number"!=typeof e)throw new g(t,"number",e);if(!a(e))throw new v(t,"an integer",e);const n=r?1:0,i=4294967295;if(e<n||e>i)throw new v(t,`>= ${n} && <= ${i}`,e)}));function M(e,t){if("string"!=typeof e)throw new g(t,"string",e)}const L=y(((e,t,r)=>{if(!i(r,e)){const n=o(s(r,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new w(t,e,"must be one of: "+n)}}));function C(e,t){if("boolean"!=typeof e)throw new g(t,"boolean",e)}function I(e,t,r){return null!=e&&h(e,t)?e[t]:r}const D=y(((e,t,r=null)=>{const i=I(r,"allowArray",!1),o=I(r,"allowFunction",!1);if(!I(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new g(t,"Object",e)})),N=y(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new g(t,"a dictionary",e)})),j=y(((e,t,r=0)=>{if(!n(e))throw new g(t,"Array",e);if(e.length<r){throw new w(t,e,`must be longer than ${r}`)}}));const F=y(((e,t="buffer")=>{if(!R(e))throw new g(t,["Buffer","TypedArray","DataView"],e)}));const W=y(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new g(t,"AbortSignal",e)})),B=y(((e,t)=>{if("function"!=typeof e)throw new g(t,"Function",e)})),U=y(((e,t)=>{if("function"!=typeof e||x(e))throw new g(t,"Function",e)})),$=y(((e,t)=>{if(void 0!==e)throw new g(t,"undefined",e)}));const z=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(e,t){if(void 0===e||!d(z,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===d(O,e))throw new w(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return P(e,t),e},validateArray:j,validateStringArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)M(e[r],`${t}[${r}]`)},validateBooleanArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++)C(e[r],`${t}[${r}]`)},validateAbortSignalArray:function(e,t){j(e,t);for(let r=0;r<e.length;r++){const n=e[r],i=`${t}[${r}]`;if(null==n)throw new g(i,"AbortSignal",n);W(n,i)}},validateBoolean:C,validateBuffer:F,validateDictionary:N,validateEncoding:function(e,t){const r=E(t),n=e.length;if("hex"===r&&n%2!=0)throw new w("encoding",t,`is invalid for data of length ${n}`)},validateFunction:B,validateInt32:T,validateInteger:k,validateNumber:function(e,t,r=void 0,n){if("number"!=typeof e)throw new g(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new v(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)},validateObject:D,validateOneOf:L,validatePlainFunction:U,validatePort:function(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===_(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new m(t,e,r);return 0|e},validateSignalName:function(e,t="signal"){if(M(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new S(e+" (signals must use all capital letters)");throw new S(e)}},validateString:M,validateUint32:P,validateUndefined:$,validateUnion:function(e,t,r){if(!i(r,e))throw new g(t,`('${o(r,"|")}')`,e)},validateAbortSignal:W,validateLinkHeaderValue:function(e){if("string"==typeof e)return G(e,"hints"),e;if(n(e)){const t=e.length;let r="";if(0===t)return r;for(let n=0;n<t;n++){const i=e[n];G(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},e=>{var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s,a;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},(e,t,r)=>{var n=r(54),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=Object.create(r(57));o.inherits=r(22);var s=r(127),a=r(129);o.inherits(f,s);for(var l=i(a.prototype),c=0;c<l.length;c++){var u=l[c];f.prototype[u]||(f.prototype[u]=a.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},(e,t,r)=>{var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(177),o=r(180);r(22)(c,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||process.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},e=>{"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(s-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick((function(){e.apply(null,i)}))}}}:e.exports=process},(e,t,r)=>{var n=r(0),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},(e,t,r)=>{var n=r(21),i=r(3),o=r(83),s=r(126),a=r(84),l=r(132),c=(r(16).Stream,r(202).PassThrough),u=e.exports={};u.file=r(251),u.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",(function(e){r.push(e),n+=e.length})),e.on("end",(function(){var e=Buffer.alloc(n),i=0;r.forEach((function(t){t.copy(e,i),i+=t.length})),t(null,e)}))},u.dateify=function(e){return(e=e||new Date)instanceof Date||(e="string"==typeof e?new Date(e):new Date),e},u.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},l(...n)},u.isStream=function(e){return o(e)},u.lazyReadStream=function(e){return new s.Readable((function(){return n.createReadStream(e)}))},u.normalizeInputSource=function(e){return null===e?Buffer.alloc(0):"string"==typeof e?Buffer.from(e):u.isStream(e)?e.pipe(new c):e},u.sanitizePath=function(e){return a(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},u.trailingSlashIt=function(e){return"/"!==e.slice(-1)?e+"/":e},u.unixifyPath=function(e){return a(e,!1).replace(/^\w+:/,"")},u.walkdir=function(e,t,r){var o=[];"function"==typeof t&&(r=t,t=e),n.readdir(e,(function(s,a){var l,c,f=0;if(s)return r(s);!function s(){if(!(l=a[f++]))return r(null,o);c=i.join(e,l),n.stat(c,(function(e,n){o.push({path:c,relative:i.relative(t,c).replace(/\\/g,"/"),stats:n}),n&&n.isDirectory()?u.walkdir(c,t,(function(e,t){if(e)return r(e);t.forEach((function(e){o.push(e)})),s()})):s()}))}()}))}},(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(0).Buffer.isBuffer},(e,t,r)=>{var n=r(229),i=r(235);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},(e,t,r)=>{var n=r(86),i=r(230),o=r(231),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},(e,t,r)=>{const n=r(1),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:f,SafeSet:h,SymbolAsyncDispose:d,SymbolAsyncIterator:p,Symbol:b}=r(4);e.exports=q,q.ReadableState=V;const{EventEmitter:_}=r(2),{Stream:y,prependListener:m}=r(90),{Buffer:g}=r(0),{addAbortSignal:w}=r(62),v=r(28);let S=r(17).debuglog("stream",(e=>{S=e}));const E=r(249),x=r(40),{getHighWaterMark:R,getDefaultHighWaterMark:A}=r(63),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:L},AbortError:C}=r(12),{validateObject:I}=r(47),D=b("kPaused"),{StringDecoder:N}=r(64),j=r(142);u(q.prototype,y.prototype),u(q,y);const F=()=>{},{errorOrDestroy:W}=x,B=1,U=16,$=32,z=2048,G=4096;function H(e){return{enumerable:!1,get(){return!!(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function V(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(32)),this.state=z|G|U|$,e&&e.objectMode&&(this.state|=B),n&&e&&e.readableObjectMode&&(this.state|=B),this.highWaterMark=e?R(this,e,"readableHighWaterMark",n):A(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[D]=null,e&&!1===e.emitClose&&(this.state&=~z),e&&!1===e.autoDestroy&&(this.state&=~G),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new N(e.encoding),this.encoding=e.encoding)}function q(e){if(!(this instanceof q))return new q(e);const t=this instanceof r(32);this._readableState=new V(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&w(e.signal,this)),y.call(this,e),x.construct(this,(()=>{this._readableState.needReadable&&J(this,this._readableState)}))}function K(e,t,r,n){S("readableAddChunk",t);const i=e._readableState;let o;if(i.state&B||("string"==typeof t?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=g.from(t,r).toString(i.encoding):(t=g.from(t,r),r=""))):t instanceof g?r="":y._isUint8Array(t)?(t=y._uint8ArrayToBuffer(t),r=""):null!=t&&(o=new k("chunk",["string","Buffer","Uint8Array"],t))),o)W(e,o);else if(null===t)i.state&=-9,function(e,t){if(S("onEofChunk"),t.ended)return;if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Q(e):(t.needReadable=!1,t.emittedReadable=!0,X(e))}(e,i);else if(i.state&B||t&&t.length>0)if(n)if(4&i.state)W(e,new L);else{if(i.destroyed||i.errored)return!1;Y(e,i,t,!0)}else if(i.ended)W(e,new M);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?Y(e,i,t,!1):J(e,i)):Y(e,i,t,!1)}else n||(i.state&=-9,J(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function Y(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(65536&t.state?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),64&t.state&&Q(e)),J(e,t)}l(V.prototype,{objectMode:H(B),ended:H(2),endEmitted:H(4),reading:H(8),constructed:H(U),sync:H($),needReadable:H(64),emittedReadable:H(128),readableListening:H(256),resumeScheduled:H(512),errorEmitted:H(1024),emitClose:H(z),autoDestroy:H(G),destroyed:H(8192),closed:H(16384),closeEmitted:H(32768),multiAwaitDrain:H(65536),readingMore:H(1<<17),dataEmitted:H(1<<18)}),q.prototype.destroy=x.destroy,q.prototype._undestroy=x.undestroy,q.prototype._destroy=function(e,t){t(e)},q.prototype[_.captureRejectionSymbol]=function(e){this.destroy(e)},q.prototype[d]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new C,this.destroy(e)),new f(((t,r)=>v(this,(n=>n&&n!==e?r(n):t(null)))))},q.prototype.push=function(e,t){return K(this,e,t,!1)},q.prototype.unshift=function(e,t){return K(this,e,t,!0)},q.prototype.isPaused=function(){const e=this._readableState;return!0===e[D]||!1===e.flowing},q.prototype.setEncoding=function(e){const t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function Z(e,t){return e<=0||0===t.length&&t.ended?0:t.state&B?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Q(e){const t=e._readableState;S("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(S("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(X,e))}function X(e){const t=e._readableState;S("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function J(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(ee,e,t))}function ee(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const r=t.length;if(S("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function te(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[D]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function re(e){S("readable nexttick read 0"),e.read(0)}function ne(e,t){S("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(S("flow",t.flowing);t.flowing&&null!==e.read(););}function oe(e,t){"function"!=typeof e.read&&(e=q.wrap(e,{objectMode:!0}));const r=async function*(e,t){let r,n=F;function i(t){this===e?(n(),n=F):n=t}e.on("readable",i);const o=v(e,{writable:!1},(e=>{r=e?O(r,e):null,n(),n=F}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(r)throw r;if(null===r)return;await new f(i)}}}catch(e){throw r=O(r,e),r}finally{!r&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==r&&!e._readableState.autoDestroy?(e.off("readable",i),o()):x.destroyer(e,null)}}(e,t);return r.stream=e,r}function se(e,t){if(0===t.length)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ae(e){const t=e._readableState;S("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(le,t,e))}function le(e,t){if(S("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(ce,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function ce(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ue;function fe(){return void 0===ue&&(ue={}),ue}q.prototype.read=function(e){S("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new P("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return S("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ae(this):Q(this),null;if(0===(e=Z(e,t))&&t.ended)return 0===t.length&&ae(this),null;let n,i=!!(64&t.state);if(S("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,S("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),t.state|=8|$,0===t.length&&(t.state|=64);try{this._read(t.highWaterMark)}catch(e){W(this,e)}t.state&=~$,t.reading||(e=Z(r,t))}return n=e>0?se(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ae(this)),null===n||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",n)),n},q.prototype._read=function(e){throw new T("_read()")},q.prototype.pipe=function(e,t){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new h(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),S("pipe count=%d opts=%j",i.pipes.length,t);const o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?a:_;function s(t,n){S("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),l&&e.removeListener("drain",l);e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",f),c=!0,l&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l()}())}function a(){S("onend"),e.end()}let l;i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);let c=!1;function u(){c||(1===i.pipes.length&&i.pipes[0]===e?(S("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),l||(l=function(e,t){return function(){const r=e._readableState;r.awaitDrainWriters===t?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(r,e),e.on("drain",l))}function f(t){S("ondata");const r=e.write(t);S("dest.write",r),!1===r&&u()}function d(t){if(S("onerror",t),_(),e.removeListener("error",d),0===e.listenerCount("error")){const r=e._writableState||e._readableState;r&&!r.errorEmitted?W(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",b),_()}function b(){S("onfinish"),e.removeListener("close",p),_()}function _(){S("unpipe"),r.unpipe(e)}return r.on("data",f),m(e,"error",d),e.once("close",p),e.once("finish",b),e.emit("pipe",r),!0===e.writableNeedDrain?u():i.flowing||(S("pipe resume"),r.resume()),e},q.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(t.pipes,e);return-1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},q.prototype.on=function(e,t){const r=y.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Q(this):i.reading||n.nextTick(re,this))),r},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(e,t){const r=y.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(te,this),r},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(e){const t=y.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(te,this),t},q.prototype.resume=function(){const e=this._readableState;return e.flowing||(S("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}(this,e)),e[D]=!1,this},q.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[D]=!0,this},q.prototype.wrap=function(e){let t=!1;e.on("data",(r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{W(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const r=c(e);for(let t=1;t<r.length;t++){const n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},q.prototype[p]=function(){return oe(this)},q.prototype.iterator=function(e){return void 0!==e&&I(e,"options"),oe(this,e)},l(q.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[D]},set(e){this[D]=!!e}}}),q._fromList=se,q.from=function(e,t){return j(q,e,t)},q.fromWeb=function(e,t){return fe().newStreamReadableFromReadableStream(e,t)},q.toWeb=function(e,t){return fe().newReadableStreamFromStreamReadable(e,t)},q.wrap=function(e,t){var r,n;return new q({objectMode:null===(r=null!==(n=e.readableObjectMode)&&void 0!==n?n:e.objectMode)||void 0===r||r,...t,destroy(t,r){x.destroyer(e,t),r(t)}}).wrap(e)}},(e,t,r)=>{const{SymbolDispose:n}=r(4),{AbortError:i,codes:o}=r(12),{isNodeStream:s,isWebStream:a,kControllerErrorFunction:l}=r(24),c=r(28),{ERR_INVALID_ARG_TYPE:u}=o;let f;e.exports.addAbortSignal=function(t,r){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new u(t,"AbortSignal",e)})(t,"signal"),!s(r)&&!a(r))throw new u("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const o=s(t)?()=>{t.destroy(new i(void 0,{cause:e.reason}))}:()=>{t[l](new i(void 0,{cause:e.reason}))};if(e.aborted)o();else{f=f||r(17).addAbortListener;const i=f(e,o);c(t,i[n])}return t}},(e,t,r)=>{const{MathFloor:n,NumberIsInteger:i}=r(4),{validateInteger:o}=r(47),{ERR_INVALID_ARG_VALUE:s}=r(12).codes;let a=16384,l=16;function c(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,o){const a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=a){if(!i(a)||a<0){throw new s(o?`options.${r}`:"options.highWaterMark",a)}return n(a)}return c(e.objectMode)},getDefaultHighWaterMark:c,setDefaultHighWaterMark:function(e,t){o(t,"value",0),e?l=t:a=t}}},e=>{e.exports=require("string_decoder")},(e,t,r)=>{var n=r(58)(Object,"create");e.exports=n},(e,t,r)=>{var n=r(87);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},(e,t,r)=>{var n=r(271);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},(e,t,r)=>{const n=r(1),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:f,SafeSet:h,SymbolAsyncDispose:d,SymbolAsyncIterator:p,Symbol:b}=r(5);e.exports=q,q.ReadableState=V;const{EventEmitter:_}=r(2),{Stream:y,prependListener:m}=r(94),{Buffer:g}=r(0),{addAbortSignal:w}=r(69),v=r(29);let S=r(18).debuglog("stream",(e=>{S=e}));const E=r(291),x=r(41),{getHighWaterMark:R,getDefaultHighWaterMark:A}=r(70),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:L},AbortError:C}=r(13),{validateObject:I}=r(48),D=b("kPaused"),{StringDecoder:N}=r(64),j=r(158);u(q.prototype,y.prototype),u(q,y);const F=()=>{},{errorOrDestroy:W}=x,B=1,U=16,$=32,z=2048,G=4096;function H(e){return{enumerable:!1,get(){return!!(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function V(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(33)),this.state=z|G|U|$,e&&e.objectMode&&(this.state|=B),n&&e&&e.readableObjectMode&&(this.state|=B),this.highWaterMark=e?R(this,e,"readableHighWaterMark",n):A(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[D]=null,e&&!1===e.emitClose&&(this.state&=~z),e&&!1===e.autoDestroy&&(this.state&=~G),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new N(e.encoding),this.encoding=e.encoding)}function q(e){if(!(this instanceof q))return new q(e);const t=this instanceof r(33);this._readableState=new V(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&w(e.signal,this)),y.call(this,e),x.construct(this,(()=>{this._readableState.needReadable&&J(this,this._readableState)}))}function K(e,t,r,n){S("readableAddChunk",t);const i=e._readableState;let o;if(i.state&B||("string"==typeof t?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=g.from(t,r).toString(i.encoding):(t=g.from(t,r),r=""))):t instanceof g?r="":y._isUint8Array(t)?(t=y._uint8ArrayToBuffer(t),r=""):null!=t&&(o=new k("chunk",["string","Buffer","Uint8Array"],t))),o)W(e,o);else if(null===t)i.state&=-9,function(e,t){if(S("onEofChunk"),t.ended)return;if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Q(e):(t.needReadable=!1,t.emittedReadable=!0,X(e))}(e,i);else if(i.state&B||t&&t.length>0)if(n)if(4&i.state)W(e,new L);else{if(i.destroyed||i.errored)return!1;Y(e,i,t,!0)}else if(i.ended)W(e,new M);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?Y(e,i,t,!1):J(e,i)):Y(e,i,t,!1)}else n||(i.state&=-9,J(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function Y(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(65536&t.state?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),64&t.state&&Q(e)),J(e,t)}l(V.prototype,{objectMode:H(B),ended:H(2),endEmitted:H(4),reading:H(8),constructed:H(U),sync:H($),needReadable:H(64),emittedReadable:H(128),readableListening:H(256),resumeScheduled:H(512),errorEmitted:H(1024),emitClose:H(z),autoDestroy:H(G),destroyed:H(8192),closed:H(16384),closeEmitted:H(32768),multiAwaitDrain:H(65536),readingMore:H(1<<17),dataEmitted:H(1<<18)}),q.prototype.destroy=x.destroy,q.prototype._undestroy=x.undestroy,q.prototype._destroy=function(e,t){t(e)},q.prototype[_.captureRejectionSymbol]=function(e){this.destroy(e)},q.prototype[d]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new C,this.destroy(e)),new f(((t,r)=>v(this,(n=>n&&n!==e?r(n):t(null)))))},q.prototype.push=function(e,t){return K(this,e,t,!1)},q.prototype.unshift=function(e,t){return K(this,e,t,!0)},q.prototype.isPaused=function(){const e=this._readableState;return!0===e[D]||!1===e.flowing},q.prototype.setEncoding=function(e){const t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function Z(e,t){return e<=0||0===t.length&&t.ended?0:t.state&B?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Q(e){const t=e._readableState;S("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(S("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(X,e))}function X(e){const t=e._readableState;S("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function J(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(ee,e,t))}function ee(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const r=t.length;if(S("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function te(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[D]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function re(e){S("readable nexttick read 0"),e.read(0)}function ne(e,t){S("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(S("flow",t.flowing);t.flowing&&null!==e.read(););}function oe(e,t){"function"!=typeof e.read&&(e=q.wrap(e,{objectMode:!0}));const r=async function*(e,t){let r,n=F;function i(t){this===e?(n(),n=F):n=t}e.on("readable",i);const o=v(e,{writable:!1},(e=>{r=e?O(r,e):null,n(),n=F}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(r)throw r;if(null===r)return;await new f(i)}}}catch(e){throw r=O(r,e),r}finally{!r&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==r&&!e._readableState.autoDestroy?(e.off("readable",i),o()):x.destroyer(e,null)}}(e,t);return r.stream=e,r}function se(e,t){if(0===t.length)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ae(e){const t=e._readableState;S("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(le,t,e))}function le(e,t){if(S("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(ce,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function ce(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ue;function fe(){return void 0===ue&&(ue={}),ue}q.prototype.read=function(e){S("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new P("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return S("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ae(this):Q(this),null;if(0===(e=Z(e,t))&&t.ended)return 0===t.length&&ae(this),null;let n,i=!!(64&t.state);if(S("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,S("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),t.state|=8|$,0===t.length&&(t.state|=64);try{this._read(t.highWaterMark)}catch(e){W(this,e)}t.state&=~$,t.reading||(e=Z(r,t))}return n=e>0?se(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ae(this)),null===n||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",n)),n},q.prototype._read=function(e){throw new T("_read()")},q.prototype.pipe=function(e,t){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new h(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),S("pipe count=%d opts=%j",i.pipes.length,t);const o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?a:_;function s(t,n){S("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),l&&e.removeListener("drain",l);e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",f),c=!0,l&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l()}())}function a(){S("onend"),e.end()}let l;i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);let c=!1;function u(){c||(1===i.pipes.length&&i.pipes[0]===e?(S("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),l||(l=function(e,t){return function(){const r=e._readableState;r.awaitDrainWriters===t?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(r,e),e.on("drain",l))}function f(t){S("ondata");const r=e.write(t);S("dest.write",r),!1===r&&u()}function d(t){if(S("onerror",t),_(),e.removeListener("error",d),0===e.listenerCount("error")){const r=e._writableState||e._readableState;r&&!r.errorEmitted?W(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",b),_()}function b(){S("onfinish"),e.removeListener("close",p),_()}function _(){S("unpipe"),r.unpipe(e)}return r.on("data",f),m(e,"error",d),e.once("close",p),e.once("finish",b),e.emit("pipe",r),!0===e.writableNeedDrain?u():i.flowing||(S("pipe resume"),r.resume()),e},q.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(t.pipes,e);return-1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},q.prototype.on=function(e,t){const r=y.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Q(this):i.reading||n.nextTick(re,this))),r},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(e,t){const r=y.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(te,this),r},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(e){const t=y.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(te,this),t},q.prototype.resume=function(){const e=this._readableState;return e.flowing||(S("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}(this,e)),e[D]=!1,this},q.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[D]=!0,this},q.prototype.wrap=function(e){let t=!1;e.on("data",(r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{W(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const r=c(e);for(let t=1;t<r.length;t++){const n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},q.prototype[p]=function(){return oe(this)},q.prototype.iterator=function(e){return void 0!==e&&I(e,"options"),oe(this,e)},l(q.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[D]},set(e){this[D]=!!e}}}),q._fromList=se,q.from=function(e,t){return j(q,e,t)},q.fromWeb=function(e,t){return fe().newStreamReadableFromReadableStream(e,t)},q.toWeb=function(e,t){return fe().newReadableStreamFromStreamReadable(e,t)},q.wrap=function(e,t){var r,n;return new q({objectMode:null===(r=null!==(n=e.readableObjectMode)&&void 0!==n?n:e.objectMode)||void 0===r||r,...t,destroy(t,r){x.destroyer(e,t),r(t)}}).wrap(e)}},(e,t,r)=>{const{SymbolDispose:n}=r(5),{AbortError:i,codes:o}=r(13),{isNodeStream:s,isWebStream:a,kControllerErrorFunction:l}=r(25),c=r(29),{ERR_INVALID_ARG_TYPE:u}=o;let f;e.exports.addAbortSignal=function(t,r){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new u(t,"AbortSignal",e)})(t,"signal"),!s(r)&&!a(r))throw new u("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const o=s(t)?()=>{t.destroy(new i(void 0,{cause:e.reason}))}:()=>{t[l](new i(void 0,{cause:e.reason}))};if(e.aborted)o();else{f=f||r(18).addAbortListener;const i=f(e,o);c(t,i[n])}return t}},(e,t,r)=>{const{MathFloor:n,NumberIsInteger:i}=r(5),{validateInteger:o}=r(48),{ERR_INVALID_ARG_VALUE:s}=r(13).codes;let a=16384,l=16;function c(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,o){const a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=a){if(!i(a)||a<0){throw new s(o?`options.${r}`:"options.highWaterMark",a)}return n(a)}return c(e.objectMode)},getDefaultHighWaterMark:c,setDefaultHighWaterMark:function(e,t){o(t,"value",0),e?l=t:a=t}}},(e,t,r)=>{const n=r(1),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:f,SafeSet:h,SymbolAsyncDispose:d,SymbolAsyncIterator:p,Symbol:b}=r(6);e.exports=q,q.ReadableState=V;const{EventEmitter:_}=r(2),{Stream:y,prependListener:m}=r(99),{Buffer:g}=r(0),{addAbortSignal:w}=r(72),v=r(30);let S=r(19).debuglog("stream",(e=>{S=e}));const E=r(297),x=r(42),{getHighWaterMark:R,getDefaultHighWaterMark:A}=r(73),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:L},AbortError:C}=r(14),{validateObject:I}=r(49),D=b("kPaused"),{StringDecoder:N}=r(64),j=r(167);u(q.prototype,y.prototype),u(q,y);const F=()=>{},{errorOrDestroy:W}=x,B=1,U=16,$=32,z=2048,G=4096;function H(e){return{enumerable:!1,get(){return!!(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function V(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(34)),this.state=z|G|U|$,e&&e.objectMode&&(this.state|=B),n&&e&&e.readableObjectMode&&(this.state|=B),this.highWaterMark=e?R(this,e,"readableHighWaterMark",n):A(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[D]=null,e&&!1===e.emitClose&&(this.state&=~z),e&&!1===e.autoDestroy&&(this.state&=~G),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new N(e.encoding),this.encoding=e.encoding)}function q(e){if(!(this instanceof q))return new q(e);const t=this instanceof r(34);this._readableState=new V(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&w(e.signal,this)),y.call(this,e),x.construct(this,(()=>{this._readableState.needReadable&&J(this,this._readableState)}))}function K(e,t,r,n){S("readableAddChunk",t);const i=e._readableState;let o;if(i.state&B||("string"==typeof t?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=g.from(t,r).toString(i.encoding):(t=g.from(t,r),r=""))):t instanceof g?r="":y._isUint8Array(t)?(t=y._uint8ArrayToBuffer(t),r=""):null!=t&&(o=new k("chunk",["string","Buffer","Uint8Array"],t))),o)W(e,o);else if(null===t)i.state&=-9,function(e,t){if(S("onEofChunk"),t.ended)return;if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Q(e):(t.needReadable=!1,t.emittedReadable=!0,X(e))}(e,i);else if(i.state&B||t&&t.length>0)if(n)if(4&i.state)W(e,new L);else{if(i.destroyed||i.errored)return!1;Y(e,i,t,!0)}else if(i.ended)W(e,new M);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?Y(e,i,t,!1):J(e,i)):Y(e,i,t,!1)}else n||(i.state&=-9,J(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function Y(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(65536&t.state?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),64&t.state&&Q(e)),J(e,t)}l(V.prototype,{objectMode:H(B),ended:H(2),endEmitted:H(4),reading:H(8),constructed:H(U),sync:H($),needReadable:H(64),emittedReadable:H(128),readableListening:H(256),resumeScheduled:H(512),errorEmitted:H(1024),emitClose:H(z),autoDestroy:H(G),destroyed:H(8192),closed:H(16384),closeEmitted:H(32768),multiAwaitDrain:H(65536),readingMore:H(1<<17),dataEmitted:H(1<<18)}),q.prototype.destroy=x.destroy,q.prototype._undestroy=x.undestroy,q.prototype._destroy=function(e,t){t(e)},q.prototype[_.captureRejectionSymbol]=function(e){this.destroy(e)},q.prototype[d]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new C,this.destroy(e)),new f(((t,r)=>v(this,(n=>n&&n!==e?r(n):t(null)))))},q.prototype.push=function(e,t){return K(this,e,t,!1)},q.prototype.unshift=function(e,t){return K(this,e,t,!0)},q.prototype.isPaused=function(){const e=this._readableState;return!0===e[D]||!1===e.flowing},q.prototype.setEncoding=function(e){const t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function Z(e,t){return e<=0||0===t.length&&t.ended?0:t.state&B?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Q(e){const t=e._readableState;S("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(S("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(X,e))}function X(e){const t=e._readableState;S("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function J(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(ee,e,t))}function ee(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const r=t.length;if(S("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function te(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[D]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function re(e){S("readable nexttick read 0"),e.read(0)}function ne(e,t){S("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(S("flow",t.flowing);t.flowing&&null!==e.read(););}function oe(e,t){"function"!=typeof e.read&&(e=q.wrap(e,{objectMode:!0}));const r=async function*(e,t){let r,n=F;function i(t){this===e?(n(),n=F):n=t}e.on("readable",i);const o=v(e,{writable:!1},(e=>{r=e?O(r,e):null,n(),n=F}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(r)throw r;if(null===r)return;await new f(i)}}}catch(e){throw r=O(r,e),r}finally{!r&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==r&&!e._readableState.autoDestroy?(e.off("readable",i),o()):x.destroyer(e,null)}}(e,t);return r.stream=e,r}function se(e,t){if(0===t.length)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ae(e){const t=e._readableState;S("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(le,t,e))}function le(e,t){if(S("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(ce,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function ce(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ue;function fe(){return void 0===ue&&(ue={}),ue}q.prototype.read=function(e){S("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new P("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return S("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ae(this):Q(this),null;if(0===(e=Z(e,t))&&t.ended)return 0===t.length&&ae(this),null;let n,i=!!(64&t.state);if(S("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,S("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),t.state|=8|$,0===t.length&&(t.state|=64);try{this._read(t.highWaterMark)}catch(e){W(this,e)}t.state&=~$,t.reading||(e=Z(r,t))}return n=e>0?se(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ae(this)),null===n||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",n)),n},q.prototype._read=function(e){throw new T("_read()")},q.prototype.pipe=function(e,t){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new h(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),S("pipe count=%d opts=%j",i.pipes.length,t);const o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?a:_;function s(t,n){S("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),l&&e.removeListener("drain",l);e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",f),c=!0,l&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l()}())}function a(){S("onend"),e.end()}let l;i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);let c=!1;function u(){c||(1===i.pipes.length&&i.pipes[0]===e?(S("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),l||(l=function(e,t){return function(){const r=e._readableState;r.awaitDrainWriters===t?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(r,e),e.on("drain",l))}function f(t){S("ondata");const r=e.write(t);S("dest.write",r),!1===r&&u()}function d(t){if(S("onerror",t),_(),e.removeListener("error",d),0===e.listenerCount("error")){const r=e._writableState||e._readableState;r&&!r.errorEmitted?W(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",b),_()}function b(){S("onfinish"),e.removeListener("close",p),_()}function _(){S("unpipe"),r.unpipe(e)}return r.on("data",f),m(e,"error",d),e.once("close",p),e.once("finish",b),e.emit("pipe",r),!0===e.writableNeedDrain?u():i.flowing||(S("pipe resume"),r.resume()),e},q.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(t.pipes,e);return-1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},q.prototype.on=function(e,t){const r=y.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Q(this):i.reading||n.nextTick(re,this))),r},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(e,t){const r=y.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(te,this),r},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(e){const t=y.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(te,this),t},q.prototype.resume=function(){const e=this._readableState;return e.flowing||(S("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}(this,e)),e[D]=!1,this},q.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[D]=!0,this},q.prototype.wrap=function(e){let t=!1;e.on("data",(r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{W(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const r=c(e);for(let t=1;t<r.length;t++){const n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},q.prototype[p]=function(){return oe(this)},q.prototype.iterator=function(e){return void 0!==e&&I(e,"options"),oe(this,e)},l(q.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[D]},set(e){this[D]=!!e}}}),q._fromList=se,q.from=function(e,t){return j(q,e,t)},q.fromWeb=function(e,t){return fe().newStreamReadableFromReadableStream(e,t)},q.toWeb=function(e,t){return fe().newReadableStreamFromStreamReadable(e,t)},q.wrap=function(e,t){var r,n;return new q({objectMode:null===(r=null!==(n=e.readableObjectMode)&&void 0!==n?n:e.objectMode)||void 0===r||r,...t,destroy(t,r){x.destroyer(e,t),r(t)}}).wrap(e)}},(e,t,r)=>{const{SymbolDispose:n}=r(6),{AbortError:i,codes:o}=r(14),{isNodeStream:s,isWebStream:a,kControllerErrorFunction:l}=r(26),c=r(30),{ERR_INVALID_ARG_TYPE:u}=o;let f;e.exports.addAbortSignal=function(t,r){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new u(t,"AbortSignal",e)})(t,"signal"),!s(r)&&!a(r))throw new u("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const o=s(t)?()=>{t.destroy(new i(void 0,{cause:e.reason}))}:()=>{t[l](new i(void 0,{cause:e.reason}))};if(e.aborted)o();else{f=f||r(19).addAbortListener;const i=f(e,o);c(t,i[n])}return t}},(e,t,r)=>{const{MathFloor:n,NumberIsInteger:i}=r(6),{validateInteger:o}=r(49),{ERR_INVALID_ARG_VALUE:s}=r(14).codes;let a=16384,l=16;function c(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,o){const a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=a){if(!i(a)||a<0){throw new s(o?`options.${r}`:"options.highWaterMark",a)}return n(a)}return c(e.objectMode)},getDefaultHighWaterMark:c,setDefaultHighWaterMark:function(e,t){o(t,"value",0),e?l=t:a=t}}},(e,t,r)=>{const n=r(1),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:l,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:f,SafeSet:h,SymbolAsyncDispose:d,SymbolAsyncIterator:p,Symbol:b}=r(7);e.exports=q,q.ReadableState=V;const{EventEmitter:_}=r(2),{Stream:y,prependListener:m}=r(103),{Buffer:g}=r(0),{addAbortSignal:w}=r(75),v=r(31);let S=r(20).debuglog("stream",(e=>{S=e}));const E=r(302),x=r(43),{getHighWaterMark:R,getDefaultHighWaterMark:A}=r(76),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:L},AbortError:C}=r(15),{validateObject:I}=r(50),D=b("kPaused"),{StringDecoder:N}=r(64),j=r(173);u(q.prototype,y.prototype),u(q,y);const F=()=>{},{errorOrDestroy:W}=x,B=1,U=16,$=32,z=2048,G=4096;function H(e){return{enumerable:!1,get(){return!!(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function V(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(35)),this.state=z|G|U|$,e&&e.objectMode&&(this.state|=B),n&&e&&e.readableObjectMode&&(this.state|=B),this.highWaterMark=e?R(this,e,"readableHighWaterMark",n):A(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this[D]=null,e&&!1===e.emitClose&&(this.state&=~z),e&&!1===e.autoDestroy&&(this.state&=~G),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new N(e.encoding),this.encoding=e.encoding)}function q(e){if(!(this instanceof q))return new q(e);const t=this instanceof r(35);this._readableState=new V(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&w(e.signal,this)),y.call(this,e),x.construct(this,(()=>{this._readableState.needReadable&&J(this,this._readableState)}))}function K(e,t,r,n){S("readableAddChunk",t);const i=e._readableState;let o;if(i.state&B||("string"==typeof t?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=g.from(t,r).toString(i.encoding):(t=g.from(t,r),r=""))):t instanceof g?r="":y._isUint8Array(t)?(t=y._uint8ArrayToBuffer(t),r=""):null!=t&&(o=new k("chunk",["string","Buffer","Uint8Array"],t))),o)W(e,o);else if(null===t)i.state&=-9,function(e,t){if(S("onEofChunk"),t.ended)return;if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Q(e):(t.needReadable=!1,t.emittedReadable=!0,X(e))}(e,i);else if(i.state&B||t&&t.length>0)if(n)if(4&i.state)W(e,new L);else{if(i.destroyed||i.errored)return!1;Y(e,i,t,!0)}else if(i.ended)W(e,new M);else{if(i.destroyed||i.errored)return!1;i.state&=-9,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?Y(e,i,t,!1):J(e,i)):Y(e,i,t,!1)}else n||(i.state&=-9,J(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function Y(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(65536&t.state?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),64&t.state&&Q(e)),J(e,t)}l(V.prototype,{objectMode:H(B),ended:H(2),endEmitted:H(4),reading:H(8),constructed:H(U),sync:H($),needReadable:H(64),emittedReadable:H(128),readableListening:H(256),resumeScheduled:H(512),errorEmitted:H(1024),emitClose:H(z),autoDestroy:H(G),destroyed:H(8192),closed:H(16384),closeEmitted:H(32768),multiAwaitDrain:H(65536),readingMore:H(1<<17),dataEmitted:H(1<<18)}),q.prototype.destroy=x.destroy,q.prototype._undestroy=x.undestroy,q.prototype._destroy=function(e,t){t(e)},q.prototype[_.captureRejectionSymbol]=function(e){this.destroy(e)},q.prototype[d]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new C,this.destroy(e)),new f(((t,r)=>v(this,(n=>n&&n!==e?r(n):t(null)))))},q.prototype.push=function(e,t){return K(this,e,t,!1)},q.prototype.unshift=function(e,t){return K(this,e,t,!0)},q.prototype.isPaused=function(){const e=this._readableState;return!0===e[D]||!1===e.flowing},q.prototype.setEncoding=function(e){const t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};function Z(e,t){return e<=0||0===t.length&&t.ended?0:t.state&B?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Q(e){const t=e._readableState;S("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(S("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(X,e))}function X(e){const t=e._readableState;S("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function J(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(ee,e,t))}function ee(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const r=t.length;if(S("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function te(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[D]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function re(e){S("readable nexttick read 0"),e.read(0)}function ne(e,t){S("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(S("flow",t.flowing);t.flowing&&null!==e.read(););}function oe(e,t){"function"!=typeof e.read&&(e=q.wrap(e,{objectMode:!0}));const r=async function*(e,t){let r,n=F;function i(t){this===e?(n(),n=F):n=t}e.on("readable",i);const o=v(e,{writable:!1},(e=>{r=e?O(r,e):null,n(),n=F}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(r)throw r;if(null===r)return;await new f(i)}}}catch(e){throw r=O(r,e),r}finally{!r&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==r&&!e._readableState.autoDestroy?(e.off("readable",i),o()):x.destroyer(e,null)}}(e,t);return r.stream=e,r}function se(e,t){if(0===t.length)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ae(e){const t=e._readableState;S("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(le,t,e))}function le(e,t){if(S("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(ce,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function ce(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ue;function fe(){return void 0===ue&&(ue={}),ue}q.prototype.read=function(e){S("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new P("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return S("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ae(this):Q(this),null;if(0===(e=Z(e,t))&&t.ended)return 0===t.length&&ae(this),null;let n,i=!!(64&t.state);if(S("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,S("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,S("reading, ended or constructing",i);else if(i){S("do read"),t.state|=8|$,0===t.length&&(t.state|=64);try{this._read(t.highWaterMark)}catch(e){W(this,e)}t.state&=~$,t.reading||(e=Z(r,t))}return n=e>0?se(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ae(this)),null===n||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",n)),n},q.prototype._read=function(e){throw new T("_read()")},q.prototype.pipe=function(e,t){const r=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new h(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),S("pipe count=%d opts=%j",i.pipes.length,t);const o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?a:_;function s(t,n){S("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){S("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),l&&e.removeListener("drain",l);e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",f),c=!0,l&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l()}())}function a(){S("onend"),e.end()}let l;i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",s);let c=!1;function u(){c||(1===i.pipes.length&&i.pipes[0]===e?(S("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(S("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),l||(l=function(e,t){return function(){const r=e._readableState;r.awaitDrainWriters===t?(S("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(S("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),r.awaitDrainWriters&&0!==r.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(r,e),e.on("drain",l))}function f(t){S("ondata");const r=e.write(t);S("dest.write",r),!1===r&&u()}function d(t){if(S("onerror",t),_(),e.removeListener("error",d),0===e.listenerCount("error")){const r=e._writableState||e._readableState;r&&!r.errorEmitted?W(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",b),_()}function b(){S("onfinish"),e.removeListener("close",p),_()}function _(){S("unpipe"),r.unpipe(e)}return r.on("data",f),m(e,"error",d),e.once("close",p),e.once("finish",b),e.emit("pipe",r),!0===e.writableNeedDrain?u():i.flowing||(S("pipe resume"),r.resume()),e},q.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const r=i(t.pipes,e);return-1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},q.prototype.on=function(e,t){const r=y.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,S("on readable",i.length,i.reading),i.length?Q(this):i.reading||n.nextTick(re,this))),r},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(e,t){const r=y.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(te,this),r},q.prototype.off=q.prototype.removeListener,q.prototype.removeAllListeners=function(e){const t=y.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(te,this),t},q.prototype.resume=function(){const e=this._readableState;return e.flowing||(S("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}(this,e)),e[D]=!1,this},q.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[D]=!0,this},q.prototype.wrap=function(e){let t=!1;e.on("data",(r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{W(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const r=c(e);for(let t=1;t<r.length;t++){const n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},q.prototype[p]=function(){return oe(this)},q.prototype.iterator=function(e){return void 0!==e&&I(e,"options"),oe(this,e)},l(q.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),l(V.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[D]},set(e){this[D]=!!e}}}),q._fromList=se,q.from=function(e,t){return j(q,e,t)},q.fromWeb=function(e,t){return fe().newStreamReadableFromReadableStream(e,t)},q.toWeb=function(e,t){return fe().newReadableStreamFromStreamReadable(e,t)},q.wrap=function(e,t){var r,n;return new q({objectMode:null===(r=null!==(n=e.readableObjectMode)&&void 0!==n?n:e.objectMode)||void 0===r||r,...t,destroy(t,r){x.destroyer(e,t),r(t)}}).wrap(e)}},(e,t,r)=>{const{SymbolDispose:n}=r(7),{AbortError:i,codes:o}=r(15),{isNodeStream:s,isWebStream:a,kControllerErrorFunction:l}=r(27),c=r(31),{ERR_INVALID_ARG_TYPE:u}=o;let f;e.exports.addAbortSignal=function(t,r){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new u(t,"AbortSignal",e)})(t,"signal"),!s(r)&&!a(r))throw new u("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const o=s(t)?()=>{t.destroy(new i(void 0,{cause:e.reason}))}:()=>{t[l](new i(void 0,{cause:e.reason}))};if(e.aborted)o();else{f=f||r(20).addAbortListener;const i=f(e,o);c(t,i[n])}return t}},(e,t,r)=>{const{MathFloor:n,NumberIsInteger:i}=r(7),{validateInteger:o}=r(50),{ERR_INVALID_ARG_VALUE:s}=r(15).codes;let a=16384,l=16;function c(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,o){const a=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=a){if(!i(a)||a<0){throw new s(o?`options.${r}`:"options.highWaterMark",a)}return n(a)}return c(e.objectMode)},getDefaultHighWaterMark:c,setDefaultHighWaterMark:function(e,t){o(t,"value",0),e?l=t:a=t}}},e=>{const t=function(e,t,r){let n;switch(r){case 1:n=e.readUInt8(t);break;case 2:n=e.readUInt16LE(t);break;case 4:n=e.readUInt32LE(t);break;case 8:n=Number(e.readBigUInt64LE(t));break;default:throw new Error("Unsupported UInt LE size!")}return n};e.exports={parse:function(e,r){const n={};let i=0;for(const[o,s]of r)e.length>=i+s?n[o]=t(e,i,s):n[o]=null,i+=s;return n}}},(e,t,r)=>{const n=r(21),i=r(9).fromCallback;e.exports={remove:i((function(e,t){n.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){n.rmSync(e,{recursive:!0,force:!0})}}},function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Minipass=t.isWritable=t.isReadable=t.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},o=r(2),s=n(r(16)),a=r(64);t.isStream=e=>!!e&&"object"==typeof e&&(e instanceof z||e instanceof s.default||(0,t.isReadable)(e)||(0,t.isWritable)(e));t.isReadable=e=>!!e&&"object"==typeof e&&e instanceof o.EventEmitter&&"function"==typeof e.pipe&&e.pipe!==s.default.Writable.prototype.pipe;t.isWritable=e=>!!e&&"object"==typeof e&&e instanceof o.EventEmitter&&"function"==typeof e.write&&"function"==typeof e.end;const l=Symbol("EOF"),c=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),f=Symbol("emittingEnd"),h=Symbol("emittedError"),d=Symbol("closed"),p=Symbol("read"),b=Symbol("flush"),_=Symbol("flushChunk"),y=Symbol("encoding"),m=Symbol("decoder"),g=Symbol("flowing"),w=Symbol("paused"),v=Symbol("resume"),S=Symbol("buffer"),E=Symbol("pipes"),x=Symbol("bufferLength"),R=Symbol("bufferPush"),A=Symbol("bufferShift"),O=Symbol("objectMode"),k=Symbol("destroyed"),T=Symbol("error"),P=Symbol("emitData"),M=Symbol("emitEnd"),L=Symbol("emitEnd2"),C=Symbol("async"),I=Symbol("abort"),D=Symbol("aborted"),N=Symbol("signal"),j=Symbol("dataListeners"),F=Symbol("discarded"),W=e=>Promise.resolve().then(e),B=e=>e();class U{src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[v](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class $ extends U{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class z extends o.EventEmitter{[g]=!1;[w]=!1;[E]=[];[S]=[];[O];[y];[C];[m];[l]=!1;[u]=!1;[f]=!1;[d]=!1;[h]=null;[x]=0;[k]=!1;[N];[D]=!1;[j]=0;[F]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[O]=!0,this[y]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[y]=t.encoding,this[O]=!1):(this[O]=!1,this[y]=null),this[C]=!!t.async,this[m]=this[y]?new a.StringDecoder(this[y]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[E]});const{signal:r}=t;r&&(this[N]=r,r.aborted?this[I]():r.addEventListener("abort",(()=>this[I]())))}get bufferLength(){return this[x]}get encoding(){return this[y]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[C]}set async(e){this[C]=this[C]||!!e}[I](){this[D]=!0,this.emit("abort",this[N]?.reason),this.destroy(this[N]?.reason)}get aborted(){return this[D]}set aborted(e){}write(e,t,r){if(this[D])return!1;if(this[l])throw new Error("write after end");if(this[k])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(r=t,t="utf8"),t||(t="utf8");const n=this[C]?W:B;if(!this[O]&&!Buffer.isBuffer(e))if(i=e,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[O]?(this[g]&&0!==this[x]&&this[b](!0),this[g]?this.emit("data",e):this[R](e),0!==this[x]&&this.emit("readable"),r&&n(r),this[g]):e.length?("string"!=typeof e||t===this[y]&&!this[m]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[y]&&(e=this[m].write(e)),this[g]&&0!==this[x]&&this[b](!0),this[g]?this.emit("data",e):this[R](e),0!==this[x]&&this.emit("readable"),r&&n(r),this[g]):(0!==this[x]&&this.emit("readable"),r&&n(r),this[g])}read(e){if(this[k])return null;if(this[F]=!1,0===this[x]||0===e||e&&e>this[x])return this[c](),null;this[O]&&(e=null),this[S].length>1&&!this[O]&&(this[S]=[this[y]?this[S].join(""):Buffer.concat(this[S],this[x])]);const t=this[p](e||null,this[S][0]);return this[c](),t}[p](e,t){if(this[O])this[A]();else{const r=t;e===r.length||null===e?this[A]():"string"==typeof r?(this[S][0]=r.slice(e),t=r.slice(0,e),this[x]-=e):(this[S][0]=r.subarray(e),t=r.subarray(0,e),this[x]-=e)}return this.emit("data",t),this[S].length||this[l]||this.emit("drain"),t}end(e,t,r){return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t="utf8"),void 0!==e&&this.write(e,t),r&&this.once("end",r),this[l]=!0,this.writable=!1,!this[g]&&this[w]||this[c](),this}[v](){this[k]||(this[j]||this[E].length||(this[F]=!0),this[w]=!1,this[g]=!0,this.emit("resume"),this[S].length?this[b]():this[l]?this[c]():this.emit("drain"))}resume(){return this[v]()}pause(){this[g]=!1,this[w]=!0,this[F]=!1}get destroyed(){return this[k]}get flowing(){return this[g]}get paused(){return this[w]}[R](e){this[O]?this[x]+=1:this[x]+=e.length,this[S].push(e)}[A](){return this[O]?this[x]-=1:this[x]-=this[S][0].length,this[S].shift()}[b](e=!1){do{}while(this[_](this[A]())&&this[S].length);e||this[S].length||this[l]||this.emit("drain")}[_](e){return this.emit("data",e),this[g]}pipe(e,t){if(this[k])return e;this[F]=!1;const r=this[u];return t=t||{},e===i.stdout||e===i.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[E].push(t.proxyErrors?new $(this,e,t):new U(this,e,t)),this[C]?W((()=>this[v]())):this[v]()),e}unpipe(e){const t=this[E].find((t=>t.dest===e));t&&(1===this[E].length?(this[g]&&0===this[j]&&(this[g]=!1),this[E]=[]):this[E].splice(this[E].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const r=super.on(e,t);if("data"===e)this[F]=!1,this[j]++,this[E].length||this[g]||this[v]();else if("readable"===e&&0!==this[x])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[u])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[h]){const e=t;this[C]?W((()=>e.call(this,this[h]))):e.call(this,this[h])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){const r=super.off(e,t);return"data"===e&&(this[j]=this.listeners("data").length,0!==this[j]||this[F]||this[E].length||(this[g]=!1)),r}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[j]=0,this[F]||this[E].length||(this[g]=!1)),t}get emittedEnd(){return this[u]}[c](){this[f]||this[u]||this[k]||0!==this[S].length||!this[l]||(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[d]&&this.emit("close"),this[f]=!1)}emit(e,...t){const r=t[0];if("error"!==e&&"close"!==e&&e!==k&&this[k])return!1;if("data"===e)return!(!this[O]&&!r)&&(this[C]?(W((()=>this[P](r))),!0):this[P](r));if("end"===e)return this[M]();if("close"===e){if(this[d]=!0,!this[u]&&!this[k])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[h]=r,super.emit(T,r);const e=!(this[N]&&!this.listeners("error").length)&&super.emit("error",r);return this[c](),e}if("resume"===e){const e=super.emit("resume");return this[c](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const n=super.emit(e,...t);return this[c](),n}[P](e){for(const t of this[E])!1===t.dest.write(e)&&this.pause();const t=!this[F]&&super.emit("data",e);return this[c](),t}[M](){return!this[u]&&(this[u]=!0,this.readable=!1,this[C]?(W((()=>this[L]())),!0):this[L]())}[L](){if(this[m]){const e=this[m].end();if(e){for(const t of this[E])t.dest.write(e);this[F]||super.emit("data",e)}}for(const e of this[E])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[O]||(e.dataLength=0);const t=this.promise();return this.on("data",(t=>{e.push(t),this[O]||(e.dataLength+=t.length)})),await t,e}async concat(){if(this[O])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[y]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(k,(()=>t(new Error("stream destroyed")))),this.on("error",(e=>t(e))),this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[F]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[l])return t();let n,i;const o=e=>{this.off("data",s),this.off("end",a),this.off(k,c),t(),i(e)},s=e=>{this.off("error",o),this.off("end",a),this.off(k,c),this.pause(),n({value:e,done:!!this[l]})},a=()=>{this.off("error",o),this.off("data",s),this.off(k,c),t(),n({done:!0,value:void 0})},c=()=>o(new Error("stream destroyed"));return new Promise(((e,t)=>{i=t,n=e,this.once(k,c),this.once("error",o),this.once("end",a),this.once("data",s)}))},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[F]=!1;let e=!1;const t=()=>(this.pause(),this.off(T,t),this.off(k,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(T,t),this.once(k,t),{next:()=>{if(e)return t();const r=this.read();return null===r?t():{done:!1,value:r}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[k])return e?this.emit("error",e):this.emit(k),this;this[k]=!0,this[F]=!0,this[S].length=0,this[x]=0;return"function"!=typeof this.close||this[d]||this.close(),e?this.emit("error",e):this.emit(k),this}static get isStream(){return t.isStream}}t.Minipass=z},(e,t,r)=>{(t=e.exports=r(127)).Stream=t,t.Readable=t,t.Writable=r(129),t.Duplex=r(52),t.Transform=r(131),t.PassThrough=r(222)},(e,t,r)=>{const n=r(318),i=r(319),o=r(320),s=r(321),a=r(322),l=255===new Uint8Array(Uint16Array.of(255).buffer)[0];function c(e){switch(e){case"ascii":return n;case"base64":return i;case"hex":return o;case"utf8":case"utf-8":case void 0:return s;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a;default:throw new Error(`Unknown encoding: ${e}`)}}function u(e){return e instanceof Uint8Array}function f(e,t,r){return"string"==typeof e?function(e,t){const r=c(t),n=new Uint8Array(r.byteLength(e));return r.write(n,e,0,n.byteLength),n}(e,t):Array.isArray(e)?function(e){const t=new Uint8Array(e.length);return t.set(e),t}(e):ArrayBuffer.isView(e)?function(e){const t=new Uint8Array(e.byteLength);return t.set(e),t}(e):function(e,t,r){return new Uint8Array(e,t,r)}(e,t,r)}function h(e,t,r,n,i){if(0===e.byteLength)return-1;if("string"==typeof r?(n=r,r=0):void 0===r?r=i?0:e.length-1:r<0&&(r+=e.byteLength),r>=e.byteLength){if(i)return-1;r=e.byteLength-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t)t=f(t,n);else if("number"==typeof t)return t&=255,i?e.indexOf(t,r):e.lastIndexOf(t,r);if(0===t.byteLength)return-1;if(i){let n=-1;for(let i=r;i<e.byteLength;i++)if(e[i]===t[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===t.byteLength)return n}else-1!==n&&(i-=i-n),n=-1}else{r+t.byteLength>e.byteLength&&(r=e.byteLength-t.byteLength);for(let n=r;n>=0;n--){let r=!0;for(let i=0;i<t.byteLength;i++)if(e[n+i]!==t[i]){r=!1;break}if(r)return n}}return-1}function d(e,t,r,n){return h(e,t,r,n,!0)}function p(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}e.exports=t={isBuffer:u,isEncoding:function(e){try{return c(e),!0}catch{return!1}},alloc:function(e,r,n){const i=new Uint8Array(e);return void 0!==r&&t.fill(i,r,0,i.byteLength,n),i},allocUnsafe:function(e){return new Uint8Array(e)},allocUnsafeSlow:function(e){return new Uint8Array(e)},byteLength:function(e,t){return c(t).byteLength(e)},compare:function(e,t){if(e===t)return 0;const r=Math.min(e.byteLength,t.byteLength);e=new DataView(e.buffer,e.byteOffset,e.byteLength),t=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=0;for(let i=r-r%4;n<i;n+=4){if(e.getUint32(n,l)!==t.getUint32(n,l))break}for(;n<r;n++){const r=e.getUint8(n),i=t.getUint8(n);if(r<i)return-1;if(r>i)return 1}return e.byteLength>t.byteLength?1:e.byteLength<t.byteLength?-1:0},concat:function(e,t){void 0===t&&(t=e.reduce(((e,t)=>e+t.byteLength),0));const r=new Uint8Array(t);let n=0;for(const t of e){if(n+t.byteLength>r.byteLength){const e=t.subarray(0,r.byteLength-n);return r.set(e,n),r}r.set(t,n),n+=t.byteLength}return r},copy:function(e,t,r=0,n=0,i=e.byteLength){if(i>0&&i<n)return 0;if(i===n)return 0;if(0===e.byteLength||0===t.byteLength)return 0;if(r<0)throw new RangeError("targetStart is out of range");if(n<0||n>=e.byteLength)throw new RangeError("sourceStart is out of range");if(i<0)throw new RangeError("sourceEnd is out of range");r>=t.byteLength&&(r=t.byteLength),i>e.byteLength&&(i=e.byteLength),t.byteLength-r<i-n&&(i=t.length-r+n);const o=i-n;return e===t?t.copyWithin(r,n,i):t.set(e.subarray(n,i),r),o},equals:function(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;const r=e.byteLength;e=new DataView(e.buffer,e.byteOffset,e.byteLength),t=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=0;for(let i=r-r%4;n<i;n+=4)if(e.getUint32(n,l)!==t.getUint32(n,l))return!1;for(;n<r;n++)if(e.getUint8(n)!==t.getUint8(n))return!1;return!0},fill:function(e,t,r,n,i){if("string"==typeof t?"string"==typeof r?(i=r,r=0,n=e.byteLength):"string"==typeof n&&(i=n,n=e.byteLength):"number"==typeof t?t&=255:"boolean"==typeof t&&(t=+t),r<0||e.byteLength<r||e.byteLength<n)throw new RangeError("Out of range index");if(void 0===r&&(r=0),void 0===n&&(n=e.byteLength),n<=r)return e;if(t||(t=0),"number"==typeof t)for(let i=r;i<n;++i)e[i]=t;else{const o=(t=u(t)?t:f(t,i)).byteLength;for(let i=0;i<n-r;++i)e[i+r]=t[i%o]}return e},from:f,includes:function(e,t,r,n){return-1!==d(e,t,r,n)},indexOf:d,lastIndexOf:function(e,t,r,n){return h(e,t,r,n,!1)},swap16:function(e){const t=e.byteLength;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)p(e,r,r+1);return e},swap32:function(e){const t=e.byteLength;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)p(e,r,r+3),p(e,r+1,r+2);return e},swap64:function(e){const t=e.byteLength;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)p(e,r,r+7),p(e,r+1,r+6),p(e,r+2,r+5),p(e,r+3,r+4);return e},toBuffer:function(e){return e},toString:function(e,t,r=0,n=e.byteLength){const i=e.byteLength;return r>=i||n<=r?"":(r<0&&(r=0),n>i&&(n=i),(0!==r||n<i)&&(e=e.subarray(r,n)),c(t).toString(e))},write:function(e,t,r,n,i){return void 0===r?i="utf8":void 0===n&&"string"==typeof r?(i=r,r=void 0):void 0===i&&"string"==typeof n&&(i=n,n=void 0),c(i).write(e,t,r,n)},writeDoubleLE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(r,t,!0),r+8},writeFloatLE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(r,t,!0),r+4},writeUInt32LE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setUint32(r,t,!0),r+4},writeInt32LE:function(e,t,r){return void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setInt32(r,t,!0),r+4},readDoubleLE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},readFloatLE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},readUInt32LE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(t,!0)},readInt32LE:function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getInt32(t,!0)}}},(e,t,r)=>{var n=r(216);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return _(function(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(s).split("\\,").join(a).split("\\.").join(l)}(e),!0).map(u)};var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(i).join("\\").split(o).join("{").split(s).join("}").split(a).join(",").split(l).join(".")}function f(e){if(!e)return[""];var t=[],r=n("{","}",e);if(!r)return e.split(",");var i=r.pre,o=r.body,s=r.post,a=i.split(",");a[a.length-1]+="{"+o+"}";var l=f(s);return s.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),t.push.apply(t,a),t}function h(e){return"{"+e+"}"}function d(e){return/^-?0\d/.test(e)}function p(e,t){return e<=t}function b(e,t){return e>=t}function _(e,t){var r=[],i=n("{","}",e);if(!i)return[e];var o=i.pre,a=i.post.length?_(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<a.length;l++){var u=o+"{"+i.body+"}"+a[l];r.push(u)}else{var y,m,g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),v=g||w,S=i.body.indexOf(",")>=0;if(!v&&!S)return i.post.match(/,.*\}/)?_(e=i.pre+"{"+i.body+s+i.post):[e];if(v)y=i.body.split(/\.\./);else if(1===(y=f(i.body)).length&&1===(y=_(y[0],!1).map(h)).length)return a.map((function(e){return i.pre+y[0]+e}));if(v){var E=c(y[0]),x=c(y[1]),R=Math.max(y[0].length,y[1].length),A=3==y.length?Math.abs(c(y[2])):1,O=p;x<E&&(A*=-1,O=b);var k=y.some(d);m=[];for(var T=E;O(T,x);T+=A){var P;if(w)"\\"===(P=String.fromCharCode(T))&&(P="");else if(P=String(T),k){var M=R-P.length;if(M>0){var L=new Array(M+1).join("0");P=T<0?"-"+L+P.slice(1):L+P}}m.push(P)}}else{m=[];for(var C=0;C<y.length;C++)m.push.apply(m,_(y[C],!1))}for(C=0;C<m.length;C++)for(l=0;l<a.length;l++){u=o+m[C]+a[l];(!t||v||u)&&r.push(u)}}return r}},e=>{const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},e=>{
|
|
3
|
+
/*!
|
|
4
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
7
|
+
* Released under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&"\\"===e[3]){var i=e[2];"?"!==i&&"."!==i||"\\\\"!==e.slice(0,2)||(e=e.slice(2),n="//")}var o=e.split(/[/\\]+/);return!1!==t&&""===o[o.length-1]&&o.pop(),n+o.join("/")}},(e,t,r)=>{var n=r(133),i=r(223),o=r(225);e.exports=function(e,t){return o(i(e,t,n),e+"")}},(e,t,r)=>{var n=r(45).Symbol;e.exports=n},e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},(e,t,r)=>{var n=r(134),i=r(136);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},(e,t,r)=>{const n=r(1),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s,SymbolDispose:a}=r(4),l=r(28),{once:c}=r(17),u=r(40),f=r(32),{aggregateTwoErrors:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:_,ERR_STREAM_PREMATURE_CLOSE:y},AbortError:m}=r(12),{validateFunction:g,validateAbortSignal:w}=r(47),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:R,isWebStream:A,isReadableStream:O,isReadableFinished:k}=r(24),T=globalThis.AbortController||r(8).AbortController;let P,M,L;function C(e,t,r){let n=!1;e.on("close",(()=>{n=!0}));return{destroy:t=>{n||(n=!0,u.destroyer(e,t||new _("pipe")))},cleanup:l(e,{readable:t,writable:r},(e=>{n=!e}))}}function I(e){if(v(e))return e;if(E(e))return async function*(e){M||(M=r(61));yield*M.prototype[s].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function D(e,t,r,{end:n}){let i,s=null;const a=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},c=()=>new o(((e,t)=>{i?t(i):s=()=>{i?t(i):e()}}));t.on("drain",a);const u=l(t,{readable:!1},a);try{t.writableNeedDrain&&await c();for await(const r of e)t.write(r)||await c();n&&(t.end(),await c()),r()}catch(e){r(i!==e?h(i,e):e)}finally{u(),t.off("drain",a)}}async function N(e,t,r,{end:n}){R(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function j(e,t,o){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new b("streams");const s=new T,l=s.signal,c=null==o?void 0:o.signal,u=[];function h(){B(new m)}let _,y,g;w(c,"options.signal"),L=L||r(17).addAbortListener,c&&(_=L(c,h));const k=[];let M,j=0;function W(e){B(e,0==--j)}function B(e,r){var i;if(!e||y&&"ERR_STREAM_PREMATURE_CLOSE"!==y.code||(y=e),y||r){for(;k.length;)k.shift()(y);null===(i=_)||void 0===i||i[a](),s.abort(),r&&(y||u.forEach((e=>e())),n.nextTick(t,y,g))}}for(let z=0;z<e.length;z++){const G=e[z],H=z<e.length-1,V=z>0,q=H||!1!==(null==o?void 0:o.end),K=z===e.length-1;if(x(G)){if(q){const{destroy:Z,cleanup:Q}=C(G,H,V);k.push(Z),S(G)&&K&&u.push(Q)}function Y(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&W(e)}G.on("error",Y),S(G)&&K&&u.push((()=>{G.removeListener("error",Y)}))}if(0===z)if("function"==typeof G){if(M=G({signal:l}),!v(M))throw new p("Iterable, AsyncIterable or Stream","source",M)}else M=v(G)||E(G)||R(G)?G:f.from(G);else if("function"==typeof G){var U;if(R(M))M=I(null===(U=M)||void 0===U?void 0:U.readable);else M=I(M);if(M=G(M,{signal:l}),H){if(!v(M,!0))throw new p("AsyncIterable",`transform[${z-1}]`,M)}else{var $;P||(P=r(143));const X=new P({objectMode:!0}),J=null===($=M)||void 0===$?void 0:$.then;if("function"==typeof J)j++,J.call(M,(e=>{g=e,null!=e&&X.write(e),q&&X.end(),n.nextTick(W)}),(e=>{X.destroy(e),n.nextTick(W,e)}));else if(v(M,!0))j++,D(M,X,W,{end:q});else{if(!O(M)&&!R(M))throw new p("AsyncIterable or Promise","destination",M);{const re=M.readable||M;j++,D(re,X,W,{end:q})}}M=X;const{destroy:ee,cleanup:te}=C(M,!1,!0);k.push(ee),K&&u.push(te)}}else if(x(G)){if(E(M)){j+=2;const ne=F(M,G,W,{end:q});S(G)&&K&&u.push(ne)}else if(R(M)||O(M)){const ie=M.readable||M;j++,D(ie,G,W,{end:q})}else{if(!v(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,D(M,G,W,{end:q})}M=G}else if(A(G)){if(E(M))j++,N(I(M),G,W,{end:q});else if(O(M)||v(M))j++,N(M,G,W,{end:q});else{if(!R(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,N(M.readable,G,W,{end:q})}M=G}else M=f.from(G)}return(null!=l&&l.aborted||null!=c&&c.aborted)&&n.nextTick(h),M}function F(e,t,r,{end:i}){let o=!1;if(t.on("close",(()=>{o||r(new y)})),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}k(e)?n.nextTick(s):e.once("end",s)}else r();return l(e,{readable:!0,writable:!1},(t=>{const n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)})),l(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl:j,pipeline:function(...e){return j(e,c(function(e){return g(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},(e,t,r)=>{const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(4),{EventEmitter:o}=r(2);function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",c));let s=!1;function l(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return a(r,"error",u),a(e,"error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:a}},(e,t,r)=>{const n=r(1),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:f,SymbolHasInstance:h}=r(4);e.exports=I,I.WritableState=L;const{EventEmitter:d}=r(2),p=r(90).Stream,{Buffer:b}=r(0),_=r(40),{addAbortSignal:y}=r(62),{getHighWaterMark:m,getDefaultHighWaterMark:g}=r(63),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:k}=r(12).codes,{errorOrDestroy:T}=_;function P(){}c(I.prototype,p.prototype),c(I,p);const M=f("kOnFinished");function L(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(32)),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",n):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,C(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function C(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function I(e){const t=this instanceof r(32);if(!t&&!s(I,this))return new I(e);this._writableState=new L(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),p.call(this,e),_.construct(this,(()=>{const e=this._writableState;e.writing||$(this,e),H(this,e)}))}function D(e,t,r,i){const o=e._writableState;if("function"==typeof r)i=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!b.isEncoding(r))throw new k(r)}else r=o.defaultEncoding;"function"!=typeof i&&(i=P)}if(null===t)throw new A;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=b.from(t,r),r="buffer");else if(t instanceof b)r="buffer";else{if(!p._isUint8Array(t))throw new w("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}let s;return o.ending?s=new O:o.destroyed&&(s=new x("write")),s?(n.nextTick(i,s),T(e,s,!0),s):(o.pendingcb++,function(e,t,r,n,i){const o=t.objectMode?1:r.length;t.length+=o;const s=t.length<t.highWaterMark;s||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==P&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1);return s&&!t.errored&&!t.destroyed}(e,o,t,r,i))}function N(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,n){--t.pendingcb,n(r),U(t),T(e,r)}function F(e,t){const r=e._writableState,i=r.sync,o=r.writecb;"function"==typeof o?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(j,e,r,t,o):j(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&$(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(W,r.afterWriteTickInfo)):B(e,r,1,o))):T(e,new S)}function W({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,B(e,t,r,n)}function B(e,t,r,n){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&U(t),H(e,t)}function U(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;const{chunk:n,callback:i}=e.buffered[r],o=e.objectMode?1:n.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new x("write"))}const r=e[M].splice(0);for(let t=0;t<r.length;t++){var n;r[t](null!==(n=e.errored)&&void 0!==n?n:new x("end"))}C(e)}function $(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:o}=t,s=r.length-n;if(!s)return;let a=n;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const n=t.allNoop?P:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},o=t.allNoop&&0===a?r:i(r,a);o.allBuffers=t.allBuffers,N(e,t,!0,t.length,o,"",n),C(t)}else{do{const{chunk:n,encoding:i,callback:s}=r[a];r[a++]=null;N(e,t,!1,o?1:n.length,n,i,s)}while(a<r.length&&!t.writing);a===r.length?C(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function z(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function G(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function i(i){if(r)T(e,null!=i?i:S());else if(r=!0,t.pendingcb--,i){const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e](i);T(e,i,t.sync)}else z(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(V,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}function H(e,t,r){z(t)&&(G(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick(((e,t)=>{z(t)?V(e,t):t.pendingcb--}),e,t)):z(t)&&(t.pendingcb++,V(e,t))))}function V(e,t){t.pendingcb--,t.finished=!0;const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}L.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(I,h,{__proto__:null,value:function(e){return!!s(this,e)||this===I&&(e&&e._writableState instanceof L)}}),I.prototype.pipe=function(){T(this,new E)},I.prototype.write=function(e,t,r){return!0===D(this,e,t,r)},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||$(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!b.isEncoding(e))throw new k(e);return this._writableState.defaultEncoding=e,this},I.prototype._write=function(e,t,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],r)},I.prototype._writev=null,I.prototype.end=function(e,t,r){const i=this._writableState;let s;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){const r=D(this,e,t);r instanceof o&&(s=r)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new R("end"):i.destroyed&&(s=new x("end")):(i.ending=!0,H(this,i,!0),i.ended=!0)),"function"==typeof r&&(s||i.finished?n.nextTick(r,s):i[M].push(r)),this},l(I.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=_.destroy;let K;function Y(){return void 0===K&&(K={}),K}I.prototype.destroy=function(e,t){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[M].length)&&n.nextTick(U,r),q.call(this,e,t),this},I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(e,t){t(e)},I.prototype[d.captureRejectionSymbol]=function(e){this.destroy(e)},I.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},I.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}},(e,t,r)=>{var n=r(252),i=r(253);e.exports=function e(t,r,o,s,a){var l=-1,c=t.length;for(o||(o=i),a||(a=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,s,a):n(a,u):s||(a[a.length]=u)}return a}},(e,t,r)=>{const n=r(1),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s,SymbolDispose:a}=r(5),l=r(29),{once:c}=r(18),u=r(41),f=r(33),{aggregateTwoErrors:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:_,ERR_STREAM_PREMATURE_CLOSE:y},AbortError:m}=r(13),{validateFunction:g,validateAbortSignal:w}=r(48),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:R,isWebStream:A,isReadableStream:O,isReadableFinished:k}=r(25),T=globalThis.AbortController||r(8).AbortController;let P,M,L;function C(e,t,r){let n=!1;e.on("close",(()=>{n=!0}));return{destroy:t=>{n||(n=!0,u.destroyer(e,t||new _("pipe")))},cleanup:l(e,{readable:t,writable:r},(e=>{n=!e}))}}function I(e){if(v(e))return e;if(E(e))return async function*(e){M||(M=r(68));yield*M.prototype[s].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function D(e,t,r,{end:n}){let i,s=null;const a=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},c=()=>new o(((e,t)=>{i?t(i):s=()=>{i?t(i):e()}}));t.on("drain",a);const u=l(t,{readable:!1},a);try{t.writableNeedDrain&&await c();for await(const r of e)t.write(r)||await c();n&&(t.end(),await c()),r()}catch(e){r(i!==e?h(i,e):e)}finally{u(),t.off("drain",a)}}async function N(e,t,r,{end:n}){R(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function j(e,t,o){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new b("streams");const s=new T,l=s.signal,c=null==o?void 0:o.signal,u=[];function h(){B(new m)}let _,y,g;w(c,"options.signal"),L=L||r(18).addAbortListener,c&&(_=L(c,h));const k=[];let M,j=0;function W(e){B(e,0==--j)}function B(e,r){var i;if(!e||y&&"ERR_STREAM_PREMATURE_CLOSE"!==y.code||(y=e),y||r){for(;k.length;)k.shift()(y);null===(i=_)||void 0===i||i[a](),s.abort(),r&&(y||u.forEach((e=>e())),n.nextTick(t,y,g))}}for(let z=0;z<e.length;z++){const G=e[z],H=z<e.length-1,V=z>0,q=H||!1!==(null==o?void 0:o.end),K=z===e.length-1;if(x(G)){if(q){const{destroy:Z,cleanup:Q}=C(G,H,V);k.push(Z),S(G)&&K&&u.push(Q)}function Y(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&W(e)}G.on("error",Y),S(G)&&K&&u.push((()=>{G.removeListener("error",Y)}))}if(0===z)if("function"==typeof G){if(M=G({signal:l}),!v(M))throw new p("Iterable, AsyncIterable or Stream","source",M)}else M=v(G)||E(G)||R(G)?G:f.from(G);else if("function"==typeof G){var U;if(R(M))M=I(null===(U=M)||void 0===U?void 0:U.readable);else M=I(M);if(M=G(M,{signal:l}),H){if(!v(M,!0))throw new p("AsyncIterable",`transform[${z-1}]`,M)}else{var $;P||(P=r(159));const X=new P({objectMode:!0}),J=null===($=M)||void 0===$?void 0:$.then;if("function"==typeof J)j++,J.call(M,(e=>{g=e,null!=e&&X.write(e),q&&X.end(),n.nextTick(W)}),(e=>{X.destroy(e),n.nextTick(W,e)}));else if(v(M,!0))j++,D(M,X,W,{end:q});else{if(!O(M)&&!R(M))throw new p("AsyncIterable or Promise","destination",M);{const re=M.readable||M;j++,D(re,X,W,{end:q})}}M=X;const{destroy:ee,cleanup:te}=C(M,!1,!0);k.push(ee),K&&u.push(te)}}else if(x(G)){if(E(M)){j+=2;const ne=F(M,G,W,{end:q});S(G)&&K&&u.push(ne)}else if(R(M)||O(M)){const ie=M.readable||M;j++,D(ie,G,W,{end:q})}else{if(!v(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,D(M,G,W,{end:q})}M=G}else if(A(G)){if(E(M))j++,N(I(M),G,W,{end:q});else if(O(M)||v(M))j++,N(M,G,W,{end:q});else{if(!R(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,N(M.readable,G,W,{end:q})}M=G}else M=f.from(G)}return(null!=l&&l.aborted||null!=c&&c.aborted)&&n.nextTick(h),M}function F(e,t,r,{end:i}){let o=!1;if(t.on("close",(()=>{o||r(new y)})),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}k(e)?n.nextTick(s):e.once("end",s)}else r();return l(e,{readable:!0,writable:!1},(t=>{const n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)})),l(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl:j,pipeline:function(...e){return j(e,c(function(e){return g(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},(e,t,r)=>{const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(5),{EventEmitter:o}=r(2);function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",c));let s=!1;function l(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return a(r,"error",u),a(e,"error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:a}},(e,t,r)=>{const n=r(1),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:f,SymbolHasInstance:h}=r(5);e.exports=I,I.WritableState=L;const{EventEmitter:d}=r(2),p=r(94).Stream,{Buffer:b}=r(0),_=r(41),{addAbortSignal:y}=r(69),{getHighWaterMark:m,getDefaultHighWaterMark:g}=r(70),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:k}=r(13).codes,{errorOrDestroy:T}=_;function P(){}c(I.prototype,p.prototype),c(I,p);const M=f("kOnFinished");function L(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(33)),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",n):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,C(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function C(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function I(e){const t=this instanceof r(33);if(!t&&!s(I,this))return new I(e);this._writableState=new L(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),p.call(this,e),_.construct(this,(()=>{const e=this._writableState;e.writing||$(this,e),H(this,e)}))}function D(e,t,r,i){const o=e._writableState;if("function"==typeof r)i=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!b.isEncoding(r))throw new k(r)}else r=o.defaultEncoding;"function"!=typeof i&&(i=P)}if(null===t)throw new A;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=b.from(t,r),r="buffer");else if(t instanceof b)r="buffer";else{if(!p._isUint8Array(t))throw new w("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}let s;return o.ending?s=new O:o.destroyed&&(s=new x("write")),s?(n.nextTick(i,s),T(e,s,!0),s):(o.pendingcb++,function(e,t,r,n,i){const o=t.objectMode?1:r.length;t.length+=o;const s=t.length<t.highWaterMark;s||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==P&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1);return s&&!t.errored&&!t.destroyed}(e,o,t,r,i))}function N(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,n){--t.pendingcb,n(r),U(t),T(e,r)}function F(e,t){const r=e._writableState,i=r.sync,o=r.writecb;"function"==typeof o?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(j,e,r,t,o):j(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&$(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(W,r.afterWriteTickInfo)):B(e,r,1,o))):T(e,new S)}function W({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,B(e,t,r,n)}function B(e,t,r,n){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&U(t),H(e,t)}function U(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;const{chunk:n,callback:i}=e.buffered[r],o=e.objectMode?1:n.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new x("write"))}const r=e[M].splice(0);for(let t=0;t<r.length;t++){var n;r[t](null!==(n=e.errored)&&void 0!==n?n:new x("end"))}C(e)}function $(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:o}=t,s=r.length-n;if(!s)return;let a=n;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const n=t.allNoop?P:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},o=t.allNoop&&0===a?r:i(r,a);o.allBuffers=t.allBuffers,N(e,t,!0,t.length,o,"",n),C(t)}else{do{const{chunk:n,encoding:i,callback:s}=r[a];r[a++]=null;N(e,t,!1,o?1:n.length,n,i,s)}while(a<r.length&&!t.writing);a===r.length?C(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function z(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function G(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function i(i){if(r)T(e,null!=i?i:S());else if(r=!0,t.pendingcb--,i){const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e](i);T(e,i,t.sync)}else z(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(V,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}function H(e,t,r){z(t)&&(G(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick(((e,t)=>{z(t)?V(e,t):t.pendingcb--}),e,t)):z(t)&&(t.pendingcb++,V(e,t))))}function V(e,t){t.pendingcb--,t.finished=!0;const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}L.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(I,h,{__proto__:null,value:function(e){return!!s(this,e)||this===I&&(e&&e._writableState instanceof L)}}),I.prototype.pipe=function(){T(this,new E)},I.prototype.write=function(e,t,r){return!0===D(this,e,t,r)},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||$(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!b.isEncoding(e))throw new k(e);return this._writableState.defaultEncoding=e,this},I.prototype._write=function(e,t,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],r)},I.prototype._writev=null,I.prototype.end=function(e,t,r){const i=this._writableState;let s;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){const r=D(this,e,t);r instanceof o&&(s=r)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new R("end"):i.destroyed&&(s=new x("end")):(i.ending=!0,H(this,i,!0),i.ended=!0)),"function"==typeof r&&(s||i.finished?n.nextTick(r,s):i[M].push(r)),this},l(I.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=_.destroy;let K;function Y(){return void 0===K&&(K={}),K}I.prototype.destroy=function(e,t){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[M].length)&&n.nextTick(U,r),q.call(this,e,t),this},I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(e,t){t(e)},I.prototype[d.captureRejectionSymbol]=function(e){this.destroy(e)},I.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},I.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}},e=>{var t=e.exports=function(){};t.prototype.getName=function(){},t.prototype.getSize=function(){},t.prototype.getLastModifiedDate=function(){},t.prototype.isDirectory=function(){}},e=>{var t=e.exports={};t.dateToDos=function(e,t){var r=(t=t||!1)?e.getFullYear():e.getUTCFullYear();return r<1980?2162688:r>=2044?2141175677:r-1980<<25|(t?e.getMonth():e.getUTCMonth())+1<<21|(t?e.getDate():e.getUTCDate())<<16|(t?e.getHours():e.getUTCHours())<<11|(t?e.getMinutes():e.getUTCMinutes())<<5|(t?e.getSeconds():e.getUTCSeconds())/2},t.dosToDate=function(e){return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)},t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))},t.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t},t.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((65535&e)>>>0,0),t},t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},t.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((4294967295&e)>>>0,0),t},t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},(e,t,r)=>{const n=r(1),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s,SymbolDispose:a}=r(6),l=r(30),{once:c}=r(19),u=r(42),f=r(34),{aggregateTwoErrors:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:_,ERR_STREAM_PREMATURE_CLOSE:y},AbortError:m}=r(14),{validateFunction:g,validateAbortSignal:w}=r(49),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:R,isWebStream:A,isReadableStream:O,isReadableFinished:k}=r(26),T=globalThis.AbortController||r(8).AbortController;let P,M,L;function C(e,t,r){let n=!1;e.on("close",(()=>{n=!0}));return{destroy:t=>{n||(n=!0,u.destroyer(e,t||new _("pipe")))},cleanup:l(e,{readable:t,writable:r},(e=>{n=!e}))}}function I(e){if(v(e))return e;if(E(e))return async function*(e){M||(M=r(71));yield*M.prototype[s].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function D(e,t,r,{end:n}){let i,s=null;const a=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},c=()=>new o(((e,t)=>{i?t(i):s=()=>{i?t(i):e()}}));t.on("drain",a);const u=l(t,{readable:!1},a);try{t.writableNeedDrain&&await c();for await(const r of e)t.write(r)||await c();n&&(t.end(),await c()),r()}catch(e){r(i!==e?h(i,e):e)}finally{u(),t.off("drain",a)}}async function N(e,t,r,{end:n}){R(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function j(e,t,o){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new b("streams");const s=new T,l=s.signal,c=null==o?void 0:o.signal,u=[];function h(){B(new m)}let _,y,g;w(c,"options.signal"),L=L||r(19).addAbortListener,c&&(_=L(c,h));const k=[];let M,j=0;function W(e){B(e,0==--j)}function B(e,r){var i;if(!e||y&&"ERR_STREAM_PREMATURE_CLOSE"!==y.code||(y=e),y||r){for(;k.length;)k.shift()(y);null===(i=_)||void 0===i||i[a](),s.abort(),r&&(y||u.forEach((e=>e())),n.nextTick(t,y,g))}}for(let z=0;z<e.length;z++){const G=e[z],H=z<e.length-1,V=z>0,q=H||!1!==(null==o?void 0:o.end),K=z===e.length-1;if(x(G)){if(q){const{destroy:Z,cleanup:Q}=C(G,H,V);k.push(Z),S(G)&&K&&u.push(Q)}function Y(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&W(e)}G.on("error",Y),S(G)&&K&&u.push((()=>{G.removeListener("error",Y)}))}if(0===z)if("function"==typeof G){if(M=G({signal:l}),!v(M))throw new p("Iterable, AsyncIterable or Stream","source",M)}else M=v(G)||E(G)||R(G)?G:f.from(G);else if("function"==typeof G){var U;if(R(M))M=I(null===(U=M)||void 0===U?void 0:U.readable);else M=I(M);if(M=G(M,{signal:l}),H){if(!v(M,!0))throw new p("AsyncIterable",`transform[${z-1}]`,M)}else{var $;P||(P=r(168));const X=new P({objectMode:!0}),J=null===($=M)||void 0===$?void 0:$.then;if("function"==typeof J)j++,J.call(M,(e=>{g=e,null!=e&&X.write(e),q&&X.end(),n.nextTick(W)}),(e=>{X.destroy(e),n.nextTick(W,e)}));else if(v(M,!0))j++,D(M,X,W,{end:q});else{if(!O(M)&&!R(M))throw new p("AsyncIterable or Promise","destination",M);{const re=M.readable||M;j++,D(re,X,W,{end:q})}}M=X;const{destroy:ee,cleanup:te}=C(M,!1,!0);k.push(ee),K&&u.push(te)}}else if(x(G)){if(E(M)){j+=2;const ne=F(M,G,W,{end:q});S(G)&&K&&u.push(ne)}else if(R(M)||O(M)){const ie=M.readable||M;j++,D(ie,G,W,{end:q})}else{if(!v(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,D(M,G,W,{end:q})}M=G}else if(A(G)){if(E(M))j++,N(I(M),G,W,{end:q});else if(O(M)||v(M))j++,N(M,G,W,{end:q});else{if(!R(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,N(M.readable,G,W,{end:q})}M=G}else M=f.from(G)}return(null!=l&&l.aborted||null!=c&&c.aborted)&&n.nextTick(h),M}function F(e,t,r,{end:i}){let o=!1;if(t.on("close",(()=>{o||r(new y)})),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}k(e)?n.nextTick(s):e.once("end",s)}else r();return l(e,{readable:!0,writable:!1},(t=>{const n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)})),l(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl:j,pipeline:function(...e){return j(e,c(function(e){return g(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},(e,t,r)=>{const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(6),{EventEmitter:o}=r(2);function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",c));let s=!1;function l(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return a(r,"error",u),a(e,"error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:a}},(e,t,r)=>{const n=r(1),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:f,SymbolHasInstance:h}=r(6);e.exports=I,I.WritableState=L;const{EventEmitter:d}=r(2),p=r(99).Stream,{Buffer:b}=r(0),_=r(42),{addAbortSignal:y}=r(72),{getHighWaterMark:m,getDefaultHighWaterMark:g}=r(73),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:k}=r(14).codes,{errorOrDestroy:T}=_;function P(){}c(I.prototype,p.prototype),c(I,p);const M=f("kOnFinished");function L(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(34)),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",n):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,C(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function C(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function I(e){const t=this instanceof r(34);if(!t&&!s(I,this))return new I(e);this._writableState=new L(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),p.call(this,e),_.construct(this,(()=>{const e=this._writableState;e.writing||$(this,e),H(this,e)}))}function D(e,t,r,i){const o=e._writableState;if("function"==typeof r)i=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!b.isEncoding(r))throw new k(r)}else r=o.defaultEncoding;"function"!=typeof i&&(i=P)}if(null===t)throw new A;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=b.from(t,r),r="buffer");else if(t instanceof b)r="buffer";else{if(!p._isUint8Array(t))throw new w("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}let s;return o.ending?s=new O:o.destroyed&&(s=new x("write")),s?(n.nextTick(i,s),T(e,s,!0),s):(o.pendingcb++,function(e,t,r,n,i){const o=t.objectMode?1:r.length;t.length+=o;const s=t.length<t.highWaterMark;s||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==P&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1);return s&&!t.errored&&!t.destroyed}(e,o,t,r,i))}function N(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,n){--t.pendingcb,n(r),U(t),T(e,r)}function F(e,t){const r=e._writableState,i=r.sync,o=r.writecb;"function"==typeof o?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(j,e,r,t,o):j(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&$(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(W,r.afterWriteTickInfo)):B(e,r,1,o))):T(e,new S)}function W({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,B(e,t,r,n)}function B(e,t,r,n){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&U(t),H(e,t)}function U(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;const{chunk:n,callback:i}=e.buffered[r],o=e.objectMode?1:n.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new x("write"))}const r=e[M].splice(0);for(let t=0;t<r.length;t++){var n;r[t](null!==(n=e.errored)&&void 0!==n?n:new x("end"))}C(e)}function $(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:o}=t,s=r.length-n;if(!s)return;let a=n;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const n=t.allNoop?P:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},o=t.allNoop&&0===a?r:i(r,a);o.allBuffers=t.allBuffers,N(e,t,!0,t.length,o,"",n),C(t)}else{do{const{chunk:n,encoding:i,callback:s}=r[a];r[a++]=null;N(e,t,!1,o?1:n.length,n,i,s)}while(a<r.length&&!t.writing);a===r.length?C(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function z(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function G(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function i(i){if(r)T(e,null!=i?i:S());else if(r=!0,t.pendingcb--,i){const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e](i);T(e,i,t.sync)}else z(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(V,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}function H(e,t,r){z(t)&&(G(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick(((e,t)=>{z(t)?V(e,t):t.pendingcb--}),e,t)):z(t)&&(t.pendingcb++,V(e,t))))}function V(e,t){t.pendingcb--,t.finished=!0;const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}L.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(I,h,{__proto__:null,value:function(e){return!!s(this,e)||this===I&&(e&&e._writableState instanceof L)}}),I.prototype.pipe=function(){T(this,new E)},I.prototype.write=function(e,t,r){return!0===D(this,e,t,r)},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||$(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!b.isEncoding(e))throw new k(e);return this._writableState.defaultEncoding=e,this},I.prototype._write=function(e,t,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],r)},I.prototype._writev=null,I.prototype.end=function(e,t,r){const i=this._writableState;let s;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){const r=D(this,e,t);r instanceof o&&(s=r)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new R("end"):i.destroyed&&(s=new x("end")):(i.ending=!0,H(this,i,!0),i.ended=!0)),"function"==typeof r&&(s||i.finished?n.nextTick(r,s):i[M].push(r)),this},l(I.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=_.destroy;let K;function Y(){return void 0===K&&(K={}),K}I.prototype.destroy=function(e,t){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[M].length)&&n.nextTick(U,r),q.call(this,e,t),this},I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(e,t){t(e)},I.prototype[d.captureRejectionSymbol]=function(e){this.destroy(e)},I.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},I.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}},(e,t)=>{
|
|
10
|
+
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
11
|
+
var r;r=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),r=function(e){var t=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[255&r];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return o}(t),n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],c=r[6],u=r[7],f=r[8],h=r[9],d=r[10],p=r[11],b=r[12],_=r[13],y=r[14];e.table=t,e.bstr=function(e,r){for(var n=~r,i=0,o=e.length;i<o;)n=n>>>8^t[255&(n^e.charCodeAt(i++))];return~n},e.buf=function(e,r){for(var m=~r,g=e.length-15,w=0;w<g;)m=y[e[w++]^255&m]^_[e[w++]^m>>8&255]^b[e[w++]^m>>16&255]^p[e[w++]^m>>>24]^d[e[w++]]^h[e[w++]]^f[e[w++]]^u[e[w++]]^c[e[w++]]^l[e[w++]]^a[e[w++]]^s[e[w++]]^o[e[w++]]^i[e[w++]]^n[e[w++]]^t[e[w++]];for(g+=15;w<g;)m=m>>>8^t[255&(m^e[w++])];return~m},e.str=function(e,r){for(var n=~r,i=0,o=e.length,s=0,a=0;i<o;)(s=e.charCodeAt(i++))<128?n=n>>>8^t[255&(n^s)]:s<2048?n=(n=n>>>8^t[255&(n^(192|s>>6&31))])>>>8^t[255&(n^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),a=1023&e.charCodeAt(i++),n=(n=(n=(n=n>>>8^t[255&(n^(240|s>>8&7))])>>>8^t[255&(n^(128|s>>2&63))])>>>8^t[255&(n^(128|a>>6&15|(3&s)<<4))])>>>8^t[255&(n^(128|63&a))]):n=(n=(n=n>>>8^t[255&(n^(224|s>>12&15))])>>>8^t[255&(n^(128|s>>6&63))])>>>8^t[255&(n^(128|63&s))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?r(t):r({})},(e,t,r)=>{const n=r(1),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s,SymbolDispose:a}=r(7),l=r(31),{once:c}=r(20),u=r(43),f=r(35),{aggregateTwoErrors:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:_,ERR_STREAM_PREMATURE_CLOSE:y},AbortError:m}=r(15),{validateFunction:g,validateAbortSignal:w}=r(50),{isIterable:v,isReadable:S,isReadableNodeStream:E,isNodeStream:x,isTransformStream:R,isWebStream:A,isReadableStream:O,isReadableFinished:k}=r(27),T=globalThis.AbortController||r(8).AbortController;let P,M,L;function C(e,t,r){let n=!1;e.on("close",(()=>{n=!0}));return{destroy:t=>{n||(n=!0,u.destroyer(e,t||new _("pipe")))},cleanup:l(e,{readable:t,writable:r},(e=>{n=!e}))}}function I(e){if(v(e))return e;if(E(e))return async function*(e){M||(M=r(74));yield*M.prototype[s].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function D(e,t,r,{end:n}){let i,s=null;const a=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},c=()=>new o(((e,t)=>{i?t(i):s=()=>{i?t(i):e()}}));t.on("drain",a);const u=l(t,{readable:!1},a);try{t.writableNeedDrain&&await c();for await(const r of e)t.write(r)||await c();n&&(t.end(),await c()),r()}catch(e){r(i!==e?h(i,e):e)}finally{u(),t.off("drain",a)}}async function N(e,t,r,{end:n}){R(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function j(e,t,o){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new b("streams");const s=new T,l=s.signal,c=null==o?void 0:o.signal,u=[];function h(){B(new m)}let _,y,g;w(c,"options.signal"),L=L||r(20).addAbortListener,c&&(_=L(c,h));const k=[];let M,j=0;function W(e){B(e,0==--j)}function B(e,r){var i;if(!e||y&&"ERR_STREAM_PREMATURE_CLOSE"!==y.code||(y=e),y||r){for(;k.length;)k.shift()(y);null===(i=_)||void 0===i||i[a](),s.abort(),r&&(y||u.forEach((e=>e())),n.nextTick(t,y,g))}}for(let z=0;z<e.length;z++){const G=e[z],H=z<e.length-1,V=z>0,q=H||!1!==(null==o?void 0:o.end),K=z===e.length-1;if(x(G)){if(q){const{destroy:Z,cleanup:Q}=C(G,H,V);k.push(Z),S(G)&&K&&u.push(Q)}function Y(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&W(e)}G.on("error",Y),S(G)&&K&&u.push((()=>{G.removeListener("error",Y)}))}if(0===z)if("function"==typeof G){if(M=G({signal:l}),!v(M))throw new p("Iterable, AsyncIterable or Stream","source",M)}else M=v(G)||E(G)||R(G)?G:f.from(G);else if("function"==typeof G){var U;if(R(M))M=I(null===(U=M)||void 0===U?void 0:U.readable);else M=I(M);if(M=G(M,{signal:l}),H){if(!v(M,!0))throw new p("AsyncIterable",`transform[${z-1}]`,M)}else{var $;P||(P=r(174));const X=new P({objectMode:!0}),J=null===($=M)||void 0===$?void 0:$.then;if("function"==typeof J)j++,J.call(M,(e=>{g=e,null!=e&&X.write(e),q&&X.end(),n.nextTick(W)}),(e=>{X.destroy(e),n.nextTick(W,e)}));else if(v(M,!0))j++,D(M,X,W,{end:q});else{if(!O(M)&&!R(M))throw new p("AsyncIterable or Promise","destination",M);{const re=M.readable||M;j++,D(re,X,W,{end:q})}}M=X;const{destroy:ee,cleanup:te}=C(M,!1,!0);k.push(ee),K&&u.push(te)}}else if(x(G)){if(E(M)){j+=2;const ne=F(M,G,W,{end:q});S(G)&&K&&u.push(ne)}else if(R(M)||O(M)){const ie=M.readable||M;j++,D(ie,G,W,{end:q})}else{if(!v(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,D(M,G,W,{end:q})}M=G}else if(A(G)){if(E(M))j++,N(I(M),G,W,{end:q});else if(O(M)||v(M))j++,N(M,G,W,{end:q});else{if(!R(M))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);j++,N(M.readable,G,W,{end:q})}M=G}else M=f.from(G)}return(null!=l&&l.aborted||null!=c&&c.aborted)&&n.nextTick(h),M}function F(e,t,r,{end:i}){let o=!1;if(t.on("close",(()=>{o||r(new y)})),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}k(e)?n.nextTick(s):e.once("end",s)}else r();return l(e,{readable:!0,writable:!1},(t=>{const n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)})),l(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl:j,pipeline:function(...e){return j(e,c(function(e){return g(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},(e,t,r)=>{const{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(7),{EventEmitter:o}=r(2);function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",c));let s=!1;function l(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return a(r,"error",u),a(e,"error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:a}},(e,t,r)=>{const n=r(1),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:l,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:f,SymbolHasInstance:h}=r(7);e.exports=I,I.WritableState=L;const{EventEmitter:d}=r(2),p=r(103).Stream,{Buffer:b}=r(0),_=r(43),{addAbortSignal:y}=r(75),{getHighWaterMark:m,getDefaultHighWaterMark:g}=r(76),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:E,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:k}=r(15).codes,{errorOrDestroy:T}=_;function P(){}c(I.prototype,p.prototype),c(I,p);const M=f("kOnFinished");function L(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(35)),this.objectMode=!(!e||!e.objectMode),n&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",n):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=F.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,C(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function C(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function I(e){const t=this instanceof r(35);if(!t&&!s(I,this))return new I(e);this._writableState=new L(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),p.call(this,e),_.construct(this,(()=>{const e=this._writableState;e.writing||$(this,e),H(this,e)}))}function D(e,t,r,i){const o=e._writableState;if("function"==typeof r)i=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!b.isEncoding(r))throw new k(r)}else r=o.defaultEncoding;"function"!=typeof i&&(i=P)}if(null===t)throw new A;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=b.from(t,r),r="buffer");else if(t instanceof b)r="buffer";else{if(!p._isUint8Array(t))throw new w("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),r="buffer"}let s;return o.ending?s=new O:o.destroyed&&(s=new x("write")),s?(n.nextTick(i,s),T(e,s,!0),s):(o.pendingcb++,function(e,t,r,n,i){const o=t.objectMode?1:r.length;t.length+=o;const s=t.length<t.highWaterMark;s||(t.needDrain=!0);t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==P&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1);return s&&!t.errored&&!t.destroyed}(e,o,t,r,i))}function N(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,n){--t.pendingcb,n(r),U(t),T(e,r)}function F(e,t){const r=e._writableState,i=r.sync,o=r.writecb;"function"==typeof o?(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(j,e,r,t,o):j(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&$(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(W,r.afterWriteTickInfo)):B(e,r,1,o))):T(e,new S)}function W({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,B(e,t,r,n)}function B(e,t,r,n){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&U(t),H(e,t)}function U(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;const{chunk:n,callback:i}=e.buffered[r],o=e.objectMode?1:n.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new x("write"))}const r=e[M].splice(0);for(let t=0;t<r.length;t++){var n;r[t](null!==(n=e.errored)&&void 0!==n?n:new x("end"))}C(e)}function $(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:r,bufferedIndex:n,objectMode:o}=t,s=r.length-n;if(!s)return;let a=n;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const n=t.allNoop?P:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},o=t.allNoop&&0===a?r:i(r,a);o.allBuffers=t.allBuffers,N(e,t,!0,t.length,o,"",n),C(t)}else{do{const{chunk:n,encoding:i,callback:s}=r[a];r[a++]=null;N(e,t,!1,o?1:n.length,n,i,s)}while(a<r.length&&!t.writing);a===r.length?C(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function z(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function G(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let r=!1;function i(i){if(r)T(e,null!=i?i:S());else if(r=!0,t.pendingcb--,i){const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e](i);T(e,i,t.sync)}else z(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(V,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}function H(e,t,r){z(t)&&(G(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick(((e,t)=>{z(t)?V(e,t):t.pendingcb--}),e,t)):z(t)&&(t.pendingcb++,V(e,t))))}function V(e,t){t.pendingcb--,t.finished=!0;const r=t[M].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}L.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(I,h,{__proto__:null,value:function(e){return!!s(this,e)||this===I&&(e&&e._writableState instanceof L)}}),I.prototype.pipe=function(){T(this,new E)},I.prototype.write=function(e,t,r){return!0===D(this,e,t,r)},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||$(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!b.isEncoding(e))throw new k(e);return this._writableState.defaultEncoding=e,this},I.prototype._write=function(e,t,r){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],r)},I.prototype._writev=null,I.prototype.end=function(e,t,r){const i=this._writableState;let s;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){const r=D(this,e,t);r instanceof o&&(s=r)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new R("end"):i.destroyed&&(s=new x("end")):(i.ending=!0,H(this,i,!0),i.ended=!0)),"function"==typeof r&&(s||i.finished?n.nextTick(r,s):i[M].push(r)),this},l(I.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&(!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const q=_.destroy;let K;function Y(){return void 0===K&&(K={}),K}I.prototype.destroy=function(e,t){const r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[M].length)&&n.nextTick(U,r),q.call(this,e,t),this},I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(e,t){t(e)},I.prototype[d.captureRejectionSymbol]=function(e){this.destroy(e)},I.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},I.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}},e=>{e.exports=require("zlib")},(e,t,r)=>{var n=r(51).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){a=!1,c=!0,s||o.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){s=!1,f=!0,a||o.call(t)},d=function(e){o.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",u),t.on("abort",p),t.req?b():t.on("request",b)),t.on("end",h),t.on("finish",u),!1!==r.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",b),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},(e,t,r)=>{const n=r(10),i=r(105),o=r(16),s=r(108),a=r(327),l=r(109),c=r(110),u=r(111),f=o.pipeline,h=r(77),d=Buffer.alloc(4);function p(e){if(!(this instanceof p))return new p(e);const t=this;t._opts=e||{verbose:!1},s.call(t,t._opts),t.on("finish",(function(){t.emit("end"),t.emit("close")})),t._readRecord().catch((function(e){t.__emittedError&&t.__emittedError===e||t.emit("error",e)}))}d.writeUInt32LE(101010256,0),n.inherits(p,s),p.prototype._readRecord=function(){const e=this;return e.pull(4).then((function(t){if(0===t.length)return;const r=t.readUInt32LE(0);if(875721283===r)return e._readCrxHeader();if(67324752===r)return e._readFile();if(33639248===r)return e.reachedCD=!0,e._readCentralDirectoryFileHeader();if(101010256===r)return e._readEndOfCentralDirectoryRecord();if(e.reachedCD){const t=!0;return e.pull(d,t).then((function(){return e._readEndOfCentralDirectoryRecord()}))}e.emit("error",new Error("invalid signature: 0x"+r.toString(16)))})).then((function(t){if(t)return e._readRecord()}))},p.prototype._readCrxHeader=function(){const e=this;return e.pull(12).then((function(t){return e.crxHeader=h.parse(t,[["version",4],["pubKeyLength",4],["signatureLength",4]]),e.pull(e.crxHeader.pubKeyLength+e.crxHeader.signatureLength)})).then((function(t){return e.crxHeader.publicKey=t.slice(0,e.crxHeader.pubKeyLength),e.crxHeader.signature=t.slice(e.crxHeader.pubKeyLength),e.emit("crx-header",e.crxHeader),!0}))},p.prototype._readFile=function(){const e=this;return e.pull(26).then((function(t){const r=h.parse(t,[["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2]]);return r.lastModifiedDateTime=u(r.lastModifiedDate,r.lastModifiedTime),e.crxHeader&&(r.crxHeader=e.crxHeader),e.pull(r.fileNameLength).then((function(t){const n=t.toString("utf8"),s=o.PassThrough();let u=!1;return s.autodrain=function(){u=!0;const e=s.pipe(a());return e.promise=function(){return new Promise((function(t,r){e.on("finish",t),e.on("error",r)}))},e},s.buffer=function(){return l(s)},s.path=n,s.props={},s.props.path=n,s.props.pathBuffer=t,s.props.flags={isUnicode:!!(2048&r.flags)},s.type=0===r.uncompressedSize&&/[/\\]$/.test(n)?"Directory":"File",e._opts.verbose&&("Directory"===s.type?console.log(" creating:",n):"File"===s.type&&(0===r.compressionMethod?console.log(" extracting:",n):console.log(" inflating:",n))),e.pull(r.extraFieldLength).then((function(t){const a=c(t,r);s.vars=r,s.extra=a,e._opts.forceStream?e.push(s):(e.emit("entry",s),(e._readableState.pipesCount||e._readableState.pipes&&e._readableState.pipes.length)&&e.push(s)),e._opts.verbose&&console.log({filename:n,vars:r,extra:a});const l=!(8&r.flags)||r.compressedSize>0;let h;s.__autodraining=u;const d=r.compressionMethod&&!u?i.createInflateRaw():o.PassThrough();return l?(s.size=r.uncompressedSize,h=r.compressedSize):(h=Buffer.alloc(4),h.writeUInt32LE(134695760,0)),new Promise((function(t,r){f(e.stream(h),d,s,(function(n){return n?r(n):l?t(l):e._processDataDescriptor(s).then(t).catch(r)}))}))}))}))}))},p.prototype._processDataDescriptor=function(e){return this.pull(16).then((function(t){const r=h.parse(t,[["dataDescriptorSignature",4],["crc32",4],["compressedSize",4],["uncompressedSize",4]]);return e.size=r.uncompressedSize,!0}))},p.prototype._readCentralDirectoryFileHeader=function(){const e=this;return e.pull(42).then((function(t){const r=h.parse(t,[["versionMadeBy",2],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2],["fileCommentLength",2],["diskNumber",2],["internalFileAttributes",2],["externalFileAttributes",4],["offsetToLocalFileHeader",4]]);return e.pull(r.fileNameLength).then((function(t){return r.fileName=t.toString("utf8"),e.pull(r.extraFieldLength)})).then((function(){return e.pull(r.fileCommentLength)})).then((function(){return!0}))}))},p.prototype._readEndOfCentralDirectoryRecord=function(){const e=this;return e.pull(18).then((function(t){const r=h.parse(t,[["diskNumber",2],["diskStart",2],["numberOfRecordsOnDisk",2],["numberOfRecords",2],["sizeOfCentralDirectory",4],["offsetToStartOfCentralDirectory",4],["commentLength",2]]);return e.pull(r.commentLength).then((function(){e.end(),e.push(null)}))}))},p.prototype.promise=function(){const e=this;return new Promise((function(t,r){e.on("finish",t),e.on("error",r)}))},e.exports=p},(e,t,r)=>{const n=r(16),i=r(10);function o(){if(!(this instanceof o))return new o;n.Duplex.call(this,{decodeStrings:!1,objectMode:!0}),this.buffer=Buffer.from("");const e=this;e.on("finish",(function(){e.finished=!0,e.emit("chunk",!1)}))}i.inherits(o,n.Duplex),o.prototype._write=function(e,t,r){this.buffer=Buffer.concat([this.buffer,e]),this.cb=r,this.emit("chunk")},o.prototype.stream=function(e,t){const r=n.PassThrough();let i;const o=this;function s(){if("function"==typeof o.cb){const e=o.cb;return o.cb=void 0,e()}}function a(){let n;if(o.buffer&&o.buffer.length){if("number"==typeof e)n=o.buffer.slice(0,e),o.buffer=o.buffer.slice(e),e-=n.length,i=i||!e;else{let r=o.buffer.indexOf(e);if(-1!==r)o.match=r,t&&(r+=e.length),n=o.buffer.slice(0,r),o.buffer=o.buffer.slice(r),i=!0;else{const t=o.buffer.length-e.length;t<=0?s():(n=o.buffer.slice(0,t),o.buffer=o.buffer.slice(t))}}n&&r.write(n,(function(){(0===o.buffer.length||e.length&&o.buffer.length<=e.length)&&s()}))}if(i)o.removeListener("chunk",a),r.end();else if(o.finished)return o.removeListener("chunk",a),void o.emit("error",new Error("FILE_ENDED"))}return o.on("chunk",a),a(),r},o.prototype.pull=function(e,t){if(0===e)return Promise.resolve("");if(!isNaN(e)&&this.buffer.length>e){const t=this.buffer.slice(0,e);return this.buffer=this.buffer.slice(e),Promise.resolve(t)}let r=Buffer.from("");const i=this,o=new n.Transform;let s,a;return o._transform=function(e,t,n){r=Buffer.concat([r,e]),n()},new Promise((function(n,l){if(s=l,a=function(e){i.__emittedError=e,l(e)},i.finished)return l(new Error("FILE_ENDED"));i.once("error",a),i.stream(e,t).on("error",l).pipe(o).on("finish",(function(){n(r)})).on("error",l)})).finally((function(){i.removeListener("error",s),i.removeListener("error",a)}))},o.prototype._read=function(){},e.exports=o},(e,t,r)=>{const n=r(16);e.exports=function(e){return new Promise((function(t,r){const i=[],o=n.Transform().on("finish",(function(){t(Buffer.concat(i))})).on("error",r);o._transform=function(e,t,r){i.push(e),r()},e.on("error",r).pipe(o)}))}},(e,t,r)=>{const n=r(77);e.exports=function(e,t){let r;for(;!r&&e&&e.length;){const i=n.parse(e,[["signature",2],["partSize",2]]);if(1===i.signature){const i=[];4294967295===t.uncompressedSize&&i.push(["uncompressedSize",8]),4294967295===t.compressedSize&&i.push(["compressedSize",8]),4294967295===t.offsetToLocalFileHeader&&i.push(["offsetToLocalFileHeader",8]),r=n.parse(e.slice(4),i)}else e=e.slice(i.partSize+4)}return r=r||{},4294967295===t.compressedSize&&(t.compressedSize=r.compressedSize),4294967295===t.uncompressedSize&&(t.uncompressedSize=r.uncompressedSize),4294967295===t.offsetToLocalFileHeader&&(t.offsetToLocalFileHeader=r.offsetToLocalFileHeader),r}},e=>{e.exports=function(e,t){const r=31&e,n=e>>5&15,i=1980+(e>>9&127),o=t?2*(31&t):0,s=t?t>>5&63:0,a=t?t>>11:0;return new Date(Date.UTC(i,n-1,r,a,s,o))}},(e,t,r)=>{const n=r(9).fromPromise;e.exports={copy:n(r(330)),copySync:r(331)}},e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},(e,t,r)=>{const n=r(9).fromPromise,i=r(11),o=r(3),s=r(23),a=r(36).pathExists;e.exports={outputFile:n((async function(e,t,r="utf-8"){const n=o.dirname(e);return await a(n)||await s.mkdirs(n),i.writeFile(e,t,r)})),outputFileSync:function(e,...t){const r=o.dirname(e);i.existsSync(r)||s.mkdirsSync(r),i.writeFileSync(e,...t)}}},function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PathScurry=t.Path=t.PathScurryDarwin=t.PathScurryPosix=t.PathScurryWin32=t.PathScurryBase=t.PathPosix=t.PathWin32=t.PathBase=t.ChildrenCache=t.ResolveCache=void 0;const s=r(371),a=r(3),l=r(156),c=o(r(39)),u=r(39),f=u.realpathSync.native,h=r(288),d=r(79),p={lstatSync:u.lstatSync,readdir:u.readdir,readdirSync:u.readdirSync,readlinkSync:u.readlinkSync,realpathSync:f,promises:{lstat:h.lstat,readdir:h.readdir,readlink:h.readlink,realpath:h.realpath}},b=e=>e&&e!==p&&e!==c?{...p,...e,promises:{...p.promises,...e.promises||{}}}:p,_=/^\\\\\?\\([a-z]:)\\?$/i,y=/[\\\/]/,m=10,g=15,w=-16,v=128,S=256,E=512,x=e=>e.isFile()?8:e.isDirectory()?4:e.isSymbolicLink()?m:e.isCharacterDevice()?2:e.isBlockDevice()?6:e.isSocket()?12:e.isFIFO()?1:0,R=new Map,A=e=>{const t=R.get(e);if(t)return t;const r=e.normalize("NFKD");return R.set(e,r),r},O=new Map,k=e=>{const t=O.get(e);if(t)return t;const r=A(e.toLowerCase());return O.set(e,r),r};class T extends s.LRUCache{constructor(){super({max:256})}}t.ResolveCache=T;class P extends s.LRUCache{constructor(e=16384){super({maxSize:e,sizeCalculation:e=>e.length+1})}}t.ChildrenCache=P;const M=Symbol("PathScurry setAsCwd");class L{name;root;roots;parent;nocase;#e;#t;get dev(){return this.#t}#r;get mode(){return this.#r}#n;get nlink(){return this.#n}#i;get uid(){return this.#i}#o;get gid(){return this.#o}#s;get rdev(){return this.#s}#a;get blksize(){return this.#a}#l;get ino(){return this.#l}#c;get size(){return this.#c}#u;get blocks(){return this.#u}#f;get atimeMs(){return this.#f}#h;get mtimeMs(){return this.#h}#d;get ctimeMs(){return this.#d}#p;get birthtimeMs(){return this.#p}#b;get atime(){return this.#b}#_;get mtime(){return this.#_}#y;get ctime(){return this.#y}#m;get birthtime(){return this.#m}#g;#w;#v;#S;#E;#x;#R;#A;#O;#k;get path(){return(this.parent||this).fullpath()}constructor(e,t=0,r,n,i,o,s){this.name=e,this.#g=i?k(e):A(e),this.#R=1023&t,this.nocase=i,this.roots=n,this.root=r||this,this.#A=o,this.#v=s.fullpath,this.#E=s.relative,this.#x=s.relativePosix,this.parent=s.parent,this.parent?this.#e=this.parent.#e:this.#e=b(s.fs)}depth(){return void 0!==this.#w?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#A}resolve(e){if(!e)return this;const t=this.getRootString(e),r=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#T(r):this.#T(r)}#T(e){let t=this;for(const r of e)t=t.child(r);return t}children(){const e=this.#A.get(this);if(e)return e;const t=Object.assign([],{provisional:0});return this.#A.set(this,t),this.#R&=-17,t}child(e,t){if(""===e||"."===e)return this;if(".."===e)return this.parent||this;const r=this.children(),n=this.nocase?k(e):A(e);for(const e of r)if(e.#g===n)return e;const i=this.parent?this.sep:"",o=this.#v?this.#v+i+e:void 0,s=this.newChild(e,0,{...t,parent:this,fullpath:o});return this.canReaddir()||(s.#R|=v),r.push(s),s}relative(){if(void 0!==this.#E)return this.#E;const e=this.name,t=this.parent;if(!t)return this.#E=this.name;const r=t.relative();return r+(r&&t.parent?this.sep:"")+e}relativePosix(){if("/"===this.sep)return this.relative();if(void 0!==this.#x)return this.#x;const e=this.name,t=this.parent;if(!t)return this.#x=this.fullpathPosix();const r=t.relativePosix();return r+(r&&t.parent?"/":"")+e}fullpath(){if(void 0!==this.#v)return this.#v;const e=this.name,t=this.parent;if(!t)return this.#v=this.name;const r=t.fullpath()+(t.parent?this.sep:"")+e;return this.#v=r}fullpathPosix(){if(void 0!==this.#S)return this.#S;if("/"===this.sep)return this.#S=this.fullpath();if(!this.parent){const e=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(e)?this.#S=`//?/${e}`:this.#S=e}const e=this.parent,t=e.fullpathPosix(),r=t+(t&&e.parent?"/":"")+this.name;return this.#S=r}isUnknown(){return!(this.#R&g)}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#R&g)}isDirectory(){return 4==(this.#R&g)}isCharacterDevice(){return 2==(this.#R&g)}isBlockDevice(){return 6==(this.#R&g)}isFIFO(){return 1==(this.#R&g)}isSocket(){return 12==(this.#R&g)}isSymbolicLink(){return(this.#R&m)===m}lstatCached(){return 32&this.#R?this:void 0}readlinkCached(){return this.#O}realpathCached(){return this.#k}readdirCached(){const e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#O)return!0;if(!this.parent)return!1;const e=this.#R&g;return!(0!==e&&e!==m||this.#R&S||this.#R&v)}calledReaddir(){return!!(16&this.#R)}isENOENT(){return!!(this.#R&v)}isNamed(e){return this.nocase?this.#g===k(e):this.#g===A(e)}async readlink(){const e=this.#O;if(e)return e;if(this.canReadlink()&&this.parent)try{const e=await this.#e.promises.readlink(this.fullpath()),t=this.parent.resolve(e);if(t)return this.#O=t}catch(e){return void this.#P(e.code)}}readlinkSync(){const e=this.#O;if(e)return e;if(this.canReadlink()&&this.parent)try{const e=this.#e.readlinkSync(this.fullpath()),t=this.parent.resolve(e);if(t)return this.#O=t}catch(e){return void this.#P(e.code)}}#M(e){this.#R|=16;for(let t=e.provisional;t<e.length;t++)e[t].#L()}#L(){this.#R&v||(this.#R=(this.#R|v)&w,this.#C())}#C(){const e=this.children();e.provisional=0;for(const t of e)t.#L()}#I(){this.#R|=E,this.#D()}#D(){if(64&this.#R)return;let e=this.#R;4==(e&g)&&(e&=w),this.#R=64|e,this.#C()}#N(e=""){"ENOTDIR"===e||"EPERM"===e?this.#D():"ENOENT"===e?this.#L():this.children().provisional=0}#j(e=""){if("ENOTDIR"===e){this.parent.#D()}else"ENOENT"===e&&this.#L()}#P(e=""){let t=this.#R;t|=S,"ENOENT"===e&&(t|=v),"EINVAL"!==e&&"UNKNOWN"!==e||(t&=w),this.#R=t,"ENOTDIR"===e&&this.parent&&this.parent.#D()}#F(e,t){return this.#W(e,t)||this.#B(e,t)}#B(e,t){const r=x(e),n=this.newChild(e.name,r,{parent:this}),i=n.#R&g;return 4!==i&&i!==m&&0!==i&&(n.#R|=64),t.unshift(n),t.provisional++,n}#W(e,t){for(let r=t.provisional;r<t.length;r++){const n=t[r];if((this.nocase?k(e.name):A(e.name))===n.#g)return this.#U(e,n,r,t)}}#U(e,t,r,n){const i=t.name;return t.#R=t.#R&w|x(e),i!==e.name&&(t.name=e.name),r!==n.provisional&&(r===n.length-1?n.pop():n.splice(r,1),n.unshift(t)),n.provisional++,t}async lstat(){if(!(this.#R&v))try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#j(e.code)}}lstatSync(){if(!(this.#R&v))try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#j(e.code)}}#$(e){const{atime:t,atimeMs:r,birthtime:n,birthtimeMs:i,blksize:o,blocks:s,ctime:a,ctimeMs:l,dev:c,gid:u,ino:f,mode:h,mtime:d,mtimeMs:p,nlink:b,rdev:_,size:y,uid:g}=e;this.#b=t,this.#f=r,this.#m=n,this.#p=i,this.#a=o,this.#u=s,this.#y=a,this.#d=l,this.#t=c,this.#o=u,this.#l=f,this.#r=h,this.#_=d,this.#h=p,this.#n=b,this.#s=_,this.#c=y,this.#i=g;const v=x(e);this.#R=this.#R&w|v|32,0!==v&&4!==v&&v!==m&&(this.#R|=64)}#z=[];#G=!1;#H(e){this.#G=!1;const t=this.#z.slice();this.#z.length=0,t.forEach((t=>t(null,e)))}readdirCB(e,t=!1){if(!this.canReaddir())return void(t?e(null,[]):queueMicrotask((()=>e(null,[]))));const r=this.children();if(this.calledReaddir()){const n=r.slice(0,r.provisional);return void(t?e(null,n):queueMicrotask((()=>e(null,n))))}if(this.#z.push(e),this.#G)return;this.#G=!0;const n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},((e,t)=>{if(e)this.#N(e.code),r.provisional=0;else{for(const e of t)this.#F(e,r);this.#M(r)}this.#H(r.slice(0,r.provisional))}))}#V;async readdir(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();if(this.#V)await this.#V;else{let r=()=>{};this.#V=new Promise((e=>r=e));try{for(const r of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#F(r,e);this.#M(e)}catch(t){this.#N(t.code),e.provisional=0}this.#V=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();try{for(const r of this.#e.readdirSync(t,{withFileTypes:!0}))this.#F(r,e);this.#M(e)}catch(t){this.#N(t.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(704&this.#R)return!1;const e=g&this.#R;return 0===e||4===e||e===m}shouldWalk(e,t){return!(4&~this.#R)&&!(704&this.#R)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#k)return this.#k;if(!(896&this.#R))try{const e=await this.#e.promises.realpath(this.fullpath());return this.#k=this.resolve(e)}catch(e){this.#I()}}realpathSync(){if(this.#k)return this.#k;if(!(896&this.#R))try{const e=this.#e.realpathSync(this.fullpath());return this.#k=this.resolve(e)}catch(e){this.#I()}}[M](e){if(e===this)return;const t=new Set([]);let r=[],n=this;for(;n&&n.parent;)t.add(n),n.#E=r.join(this.sep),n.#x=r.join("/"),n=n.parent,r.push("..");for(n=e;n&&n.parent&&!t.has(n);)n.#E=void 0,n.#x=void 0,n=n.parent}}t.PathBase=L;class C extends L{sep="\\";splitSep=y;constructor(e,t=0,r,n,i,o,s){super(e,t,r,n,i,o,s)}newChild(e,t=0,r={}){return new C(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return a.win32.parse(e).root}getRoot(e){if((e=(e=>e.replace(/\//g,"\\").replace(_,"$1\\"))(e.toUpperCase()))===this.root.name)return this.root;for(const[t,r]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=r;return this.roots[e]=new N(e,this).root}sameRoot(e,t=this.root.name){return(e=e.toUpperCase().replace(/\//g,"\\").replace(_,"$1\\"))===t}}t.PathWin32=C;class I extends L{splitSep="/";sep="/";constructor(e,t=0,r,n,i,o,s){super(e,t,r,n,i,o,s)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=0,r={}){return new I(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}}t.PathPosix=I;class D{root;rootPath;roots;cwd;#q;#K;#A;nocase;#e;constructor(e=process.cwd(),t,r,{nocase:n,childrenCacheSize:i=16384,fs:o=p}={}){this.#e=b(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,l.fileURLToPath)(e));const s=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(s),this.#q=new T,this.#K=new T,this.#A=new P(i);const a=s.substring(this.rootPath.length).split(r);if(1!==a.length||a[0]||a.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#e),this.roots[this.rootPath]=this.root;let c=this.root,u=a.length-1;const f=t.sep;let h=this.rootPath,d=!1;for(const e of a){const t=u--;c=c.child(e,{relative:new Array(t).fill("..").join(f),relativePosix:new Array(t).fill("..").join("/"),fullpath:h+=(d?"":f)+e}),d=!0}this.cwd=c}depth(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#A}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){const n=e[r];if(n&&"."!==n&&(t=t?`${n}/${t}`:n,this.isAbsolute(n)))break}const r=this.#q.get(t);if(void 0!==r)return r;const n=this.cwd.resolve(t).fullpath();return this.#q.set(t,n),n}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){const n=e[r];if(n&&"."!==n&&(t=t?`${n}/${t}`:n,this.isAbsolute(n)))break}const r=this.#K.get(t);if(void 0!==r)return r;const n=this.cwd.resolve(t).fullpathPosix();return this.#K.set(t,n),n}relative(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r}=t;if(e.canReaddir()){const t=await e.readdir();return r?t:t.map((e=>e.name))}return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map((e=>e.name)):[]}async lstat(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e.withFileTypes,e=this.cwd);const r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e.withFileTypes,e=this.cwd);const r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e.withFileTypes,e=this.cwd);const r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e.withFileTypes,e=this.cwd);const r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=t,s=[];i&&!i(e)||s.push(r?e:e.fullpath());const a=new Set,l=(e,t)=>{a.add(e),e.readdirCB(((e,c)=>{if(e)return t(e);let u=c.length;if(!u)return t();const f=()=>{0==--u&&t()};for(const e of c)i&&!i(e)||s.push(r?e:e.fullpath()),n&&e.isSymbolicLink()?e.realpath().then((e=>e?.isUnknown()?e.lstat():e)).then((e=>e?.shouldWalk(a,o)?l(e,f):f())):e.shouldWalk(a,o)?l(e,f):f()}),!0)},c=e;return new Promise(((e,t)=>{l(c,(r=>{if(r)return t(r);e(s)}))}))}walkSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=t,s=[];i&&!i(e)||s.push(r?e:e.fullpath());const a=new Set([e]);for(const e of a){const t=e.readdirSync();for(const e of t){i&&!i(e)||s.push(r?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(a,o)&&a.add(t)}}return s}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=t;i&&!i(e)||(yield r?e:e.fullpath());const s=new Set([e]);for(const e of s){const t=e.readdirSync();for(const e of t){i&&!i(e)||(yield r?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,o)&&s.add(t)}}}stream(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=t,s=new d.Minipass({objectMode:!0});i&&!i(e)||s.write(r?e:e.fullpath());const a=new Set,l=[e];let c=0;const u=()=>{let e=!1;for(;!e;){const t=l.shift();if(!t)return void(0===c&&s.end());c++,a.add(t);const f=(t,d,p=!1)=>{if(t)return s.emit("error",t);if(n&&!p){const e=[];for(const t of d)t.isSymbolicLink()&&e.push(t.realpath().then((e=>e?.isUnknown()?e.lstat():e)));if(e.length)return void Promise.all(e).then((()=>f(null,d,!0)))}for(const t of d)!t||i&&!i(t)||s.write(r?t:t.fullpath())||(e=!0);c--;for(const e of d){const t=e.realpathCached()||e;t.shouldWalk(a,o)&&l.push(t)}e&&!s.flowing?s.once("drain",u):h||u()};let h=!0;t.readdirCB(f,!0),h=!1}};return u(),s}streamSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof L||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:o}=t,s=new d.Minipass({objectMode:!0}),a=new Set;i&&!i(e)||s.write(r?e:e.fullpath());const l=[e];let c=0;const u=()=>{let e=!1;for(;!e;){const t=l.shift();if(!t)return void(0===c&&s.end());c++,a.add(t);const u=t.readdirSync();for(const t of u)i&&!i(t)||s.write(r?t:t.fullpath())||(e=!0);c--;for(const e of u){let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(a,o)&&l.push(t)}}e&&!s.flowing&&s.once("drain",u)};return u(),s}chdir(e=this.cwd){const t=this.cwd;this.cwd="string"==typeof e?this.cwd.resolve(e):e,this.cwd[M](t)}}t.PathScurryBase=D;class N extends D{sep="\\";constructor(e=process.cwd(),t={}){const{nocase:r=!0}=t;super(e,a.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let e=this.cwd;e;e=e.parent)e.nocase=this.nocase}parseRootPath(e){return a.win32.parse(e).root.toUpperCase()}newRoot(e){return new C(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}}t.PathScurryWin32=N;class j extends D{sep="/";constructor(e=process.cwd(),t={}){const{nocase:r=!1}=t;super(e,a.posix,"/",{...t,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new I(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}}t.PathScurryPosix=j;class F extends j{constructor(e=process.cwd(),t={}){const{nocase:r=!0}=t;super(e,{...t,nocase:r})}}t.PathScurryDarwin=F,t.Path="win32"===process.platform?C:I,t.PathScurry="win32"===process.platform?N:"darwin"===process.platform?F:j},e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{var n=r(118);function i(){
|
|
12
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
13
|
+
var t,r,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(e,i,o,s){var a=i&&i.prototype instanceof u?i:u,l=Object.create(a.prototype);return n(l,"_invoke",function(e,n,i){var o,s,a,l=0,u=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,s=0,a=t,h.n=r,c}};function d(e,n){for(s=e,a=n,r=0;!f&&l&&!i&&r<u.length;r++){var i,o=u[r],d=h.p,p=o[2];e>3?(i=p===n)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=e<2&&d<o[1])?(s=0,h.v=n,h.n=o[1]):d<p&&(i=e<3||o[0]>n||n>p)&&(o[4]=e,o[5]=n,h.n=p,s=0))}if(i||e>1)return c;throw f=!0,n}return function(i,u,p){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,p),s=u,a=p;(r=s<2?t:a)||!f;){o||(s?s<3?(s>1&&(h.n=-1),d(s,a)):h.n=a:h.v=a);try{if(l=2,o){if(s||(i="next"),r=o[i]){if(!(r=r.call(o,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,s<2&&(s=0)}else 1===s&&(r=o.return)&&r.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((r=(f=h.n<0)?a:e.call(n,h))!==c)break}catch(e){o=t,s=1,a=e}finally{l=1}}return{value:r,done:f}}}(e,o,s),!0),l}var c={};function u(){}function f(){}function h(){}r=Object.getPrototypeOf;var d=[][s]?r(r([][s]())):(n(r={},s,(function(){return this})),r),p=h.prototype=u.prototype=Object.create(d);function b(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,n(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return f.prototype=h,n(p,"constructor",h),n(h,"constructor",f),f.displayName="GeneratorFunction",n(h,a,"GeneratorFunction"),n(p),n(p,a,"Generator"),n(p,s,(function(){return this})),n(p,"toString",(function(){return"[object Generator]"})),(e.exports=i=function(){return{w:l,m:b}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},e=>{function t(r,n,i,o){var s=Object.defineProperty;try{s({},"",{})}catch(r){s=0}e.exports=t=function(e,r,n,i){function o(r,n){t(e,r,(function(e){return this._invoke(r,n,e)}))}r?s?s(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},e=>{function t(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var s=e.apply(r,n);function a(e){t(s,i,o,a,l,"next",e)}function l(e){t(s,i,o,a,l,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{var n=r(117),i=r(122);e.exports=function(e,t,r,o,s){return new i(n().w(e,t,r,o),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{var n=r(120),i=r(118);e.exports=function e(t,r){function o(e,i,s,a){try{var l=t[e](i),c=l.value;return c instanceof n?r.resolve(c.v).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):r.resolve(c).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,a)}))}catch(e){a(e)}}var s;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),i(this,"_invoke",(function(e,t,n){function i(){return new r((function(t,r){o(e,n,t,r)}))}return s=s?s.then(i,i):i()}),!0)},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{const n=r(290),i=r(161),o=n.Readable.destroy;e.exports=n.Readable,e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.destroy=o,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=n.Stream,e.exports.default=e.exports},(e,t,r)=>{const n=r(296),i=r(170),o=n.Readable.destroy;e.exports=n.Readable,e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.destroy=o,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=n.Stream,e.exports.default=e.exports},(e,t,r)=>{var n=r(192)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},(e,t,r)=>{var n=r(10),i=r(367);function o(e,t,r){e[t]=function(){return delete e[t],r.apply(this,arguments),this[t].apply(this,arguments)}}function s(e,t){if(!(this instanceof s))return new s(e,t);i.call(this,t),o(this,"_read",(function(){var r=e.call(this,t),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this)})),this.emit("readable")}function a(e,t){if(!(this instanceof a))return new a(e,t);i.call(this,t),o(this,"_write",(function(){var r=e.call(this,t),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)})),this.emit("writable")}e.exports={Readable:s,Writable:a},n.inherits(s,i),n.inherits(a,i)},(e,t,r)=>{var n=r(54);e.exports=m;var i,o=r(220);m.ReadableState=y;r(2).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=r(221),l=r(55).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u=Object.create(r(57));u.inherits=r(22);var f=r(10),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p=r(201),b=r(128);u.inherits(m,a);var _=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(52));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(353).I),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function m(e){if(i=i||r(52),!(this instanceof m))return new m(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function g(e,t,r,n,i){var o,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,s)):(i||(o=function(e,t){var r;n=t,l.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):R(e,s)):w(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E(e)),R(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=b.destroy,m.prototype._undestroy=b.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),g(this,e,t,!1,r)},m.prototype.unshift=function(e){return g(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return d||(d=r(353).I),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var v=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=v?e=v:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),T(e)}function R(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function O(e){h("readable nexttick read 0"),e.read(0)}function k(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=l.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):E(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(r,t))),null===(n=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?c:m;function l(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",_),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",b),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){h("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",u);var f=!1;var d=!1;function p(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==C(i.pipes,e))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++,d=!0),r.pause())}function b(t){h("onerror",t),m(),e.removeListener("error",b),0===s(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",y),m()}function y(){h("onfinish"),e.removeListener("close",_),m()}function m(){h("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",b),e.once("close",_),e.once("finish",y),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=C(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},m.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&E(this):n.nextTick(O,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(k,e,t))}(this,e)),this},m.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=P},(e,t,r)=>{var n=r(54);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},(e,t,r)=>{var n=r(54);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=_;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;_.WritableState=b;var a=Object.create(r(57));a.inherits=r(22);var l={deprecate:r(130)},c=r(221),u=r(55).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var h,d=r(128);function p(){}function b(e,t){o=o||r(52),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var l=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:a&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),S(e,t))}(e,r,i,t,o);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||g(e,r),i?s(m,e,r,a,o):m(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function _(e){if(o=o||r(52),!(h.call(_,this)||this instanceof o))return new _(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function y(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function g(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,y(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function v(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=w(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(v,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}a.inherits(_,c),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===_&&(e&&e._writableState instanceof b)}})):h=function(e){return e instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(e,t,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof f);return a&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=p),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),n.nextTick(i,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,a,n,i,o);return l}(this,o,a,e,t,r)),s},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||g(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=d.destroy,_.prototype._undestroy=d.undestroy,_.prototype._destroy=function(e,t){this.end(),t(e)}},(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},(e,t,r)=>{e.exports=s;var n=r(52),i=Object.create(r(57));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){l(e,t,r)})):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(22),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},(e,t,r)=>{var n=r(85),i=r(87),o=r(237),s=r(238),a=Object.prototype,l=a.hasOwnProperty,c=n((function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&o(t[0],t[1],c)&&(n=1);++r<n;)for(var u=t[r],f=s(u),h=-1,d=f.length;++h<d;){var p=f[h],b=e[p];(void 0===b||i(b,a[p])&&!l.call(e,p))&&(e[p]=u[p])}return e}));e.exports=c},e=>{e.exports=function(e){return e}},(e,t,r)=>{var n=r(59),i=r(60);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},(e,t,r)=>{var n=r(241),i=r(46),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},e=>{var t=Array.isArray;e.exports=t},e=>{e.exports=function(e){return function(t){return e(t)}}},(e,t,r)=>{const{pipeline:n}=r(89),i=r(32),{destroyer:o}=r(40),{isNodeStream:s,isReadable:a,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:f,isReadableStream:h}=r(24),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r(12),_=r(28);e.exports=function(...e){if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let r=0;r<e.length;++r)if(s(e[r])||c(e[r])){if(r<e.length-1&&!(a(e[r])||h(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be readable");if(r>0&&!(l(e[r])||f(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be writable")}let r,y,m,g,w;const v=e[0],S=n(e,(function(e){const t=g;g=null,t?t(e):e?w.destroy(e):x||E||w.destroy()})),E=!!(l(v)||f(v)||u(v)),x=!!(a(S)||h(S)||u(S));if(w=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(s(v))w._write=function(e,t,n){v.write(e,t)?n():r=n},w._final=function(e){v.end(),y=e},v.on("drain",(function(){if(r){const e=r;r=null,e()}}));else if(c(v)){const e=(u(v)?v.writable:v).getWriter();w._write=async function(t,r,n){try{await e.ready,e.write(t).catch((()=>{})),n()}catch(e){n(e)}},w._final=async function(t){try{await e.ready,e.close().catch((()=>{})),y=t}catch(e){t(e)}}}const e=u(S)?S.readable:S;_(e,(()=>{if(y){const e=y;y=null,e()}}))}if(x)if(s(S))S.on("readable",(function(){if(m){const e=m;m=null,e()}})),S.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=S.read();if(null===e)return void(m=w._read);if(!w.push(e))return}};else if(c(S)){const e=(u(S)?S.readable:S).getReader();w._read=async function(){for(;;)try{const{value:t,done:r}=await e.read();if(!w.push(t))return;if(r)return void w.push(null)}catch{return}}}return w._destroy=function(e,t){e||null===g||(e=new d),m=null,r=null,y=null,null===g?t(e):(g=t,s(S)&&o(S,e))},w}},(e,t,r)=>{const n=r(1),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=r(4),{Buffer:a}=r(0),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=r(12).codes;e.exports=function(e,t,r){let u,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,u=t[o]();else{if(!t||!t[s])throw new l("iterable",["Iterable"],t);f=!1,u=t[s]()}const h=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;return h._read=function(){d||(d=!0,async function(){for(;;){try{const{value:e,done:t}=f?await u.next():u.next();if(t)h.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw d=!1,new c;if(h.push(t))continue;d=!1}}catch(e){h.destroy(e)}break}}())},h._destroy=function(e,t){i(async function(e){const t=null!=e,r="function"==typeof u.throw;if(t&&r){const{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>n.nextTick(t,e)),(r=>n.nextTick(t,r||e)))},h}},(e,t,r)=>{const{ObjectSetPrototypeOf:n}=r(4);e.exports=o;const i=r(144);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},(e,t,r)=>{const{ObjectSetPrototypeOf:n,Symbol:i}=r(4);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:o}=r(12).codes,s=r(32),{getHighWaterMark:a}=r(63);n(c.prototype,s.prototype),n(c,s);const l=i("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())}))}function f(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,r){throw new o("_transform()")},c.prototype._write=function(e,t,r){const n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,((e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},c.prototype._read=function(){if(this[l]){const e=this[l];this[l]=null,e()}}},(e,t,r)=>{const{ArrayPrototypePop:n,Promise:i}=r(4),{isIterable:o,isNodeStream:s,isWebStream:a}=r(24),{pipelineImpl:l}=r(89),{finished:c}=r(28);r(248),e.exports={finished:c,pipeline:function(...e){return new i(((t,r)=>{let i,c;const u=e[e.length-1];if(u&&"object"==typeof u&&!s(u)&&!o(u)&&!a(u)){const t=n(e);i=t.signal,c=t.end}l(e,((e,n)=>{e?r(e):t(n)}),{signal:i,end:c})}))}}},(e,t,r)=>{var n=r(92);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},(e,t,r)=>{var n=r(254),i=r(92),o=r(85),s=r(152),a=o((function(e,t){return s(e)?n(e,i(t,1,s,!0)):[]}));e.exports=a},(e,t,r)=>{var n=r(255),i=r(275),o=r(276);function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},(e,t,r)=>{var n=r(277);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},e=>{e.exports=function(e,t){return e.has(t)}},(e,t,r)=>{var n=r(88),i=r(46);e.exports=function(e){return i(e)&&n(e)}},(e,t,r)=>{var n=r(92),i=r(85),o=r(282),s=r(152),a=i((function(e){return o(n(e,1,s,!0))}));e.exports=a},e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},(e,t,r)=>{var n=r(59),i=r(286),o=r(46),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},e=>{e.exports=require("url")},(e,t,r)=>{const{pipeline:n}=r(93),i=r(33),{destroyer:o}=r(41),{isNodeStream:s,isReadable:a,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:f,isReadableStream:h}=r(25),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r(13),_=r(29);e.exports=function(...e){if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let r=0;r<e.length;++r)if(s(e[r])||c(e[r])){if(r<e.length-1&&!(a(e[r])||h(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be readable");if(r>0&&!(l(e[r])||f(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be writable")}let r,y,m,g,w;const v=e[0],S=n(e,(function(e){const t=g;g=null,t?t(e):e?w.destroy(e):x||E||w.destroy()})),E=!!(l(v)||f(v)||u(v)),x=!!(a(S)||h(S)||u(S));if(w=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(s(v))w._write=function(e,t,n){v.write(e,t)?n():r=n},w._final=function(e){v.end(),y=e},v.on("drain",(function(){if(r){const e=r;r=null,e()}}));else if(c(v)){const e=(u(v)?v.writable:v).getWriter();w._write=async function(t,r,n){try{await e.ready,e.write(t).catch((()=>{})),n()}catch(e){n(e)}},w._final=async function(t){try{await e.ready,e.close().catch((()=>{})),y=t}catch(e){t(e)}}}const e=u(S)?S.readable:S;_(e,(()=>{if(y){const e=y;y=null,e()}}))}if(x)if(s(S))S.on("readable",(function(){if(m){const e=m;m=null,e()}})),S.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=S.read();if(null===e)return void(m=w._read);if(!w.push(e))return}};else if(c(S)){const e=(u(S)?S.readable:S).getReader();w._read=async function(){for(;;)try{const{value:t,done:r}=await e.read();if(!w.push(t))return;if(r)return void w.push(null)}catch{return}}}return w._destroy=function(e,t){e||null===g||(e=new d),m=null,r=null,y=null,null===g?t(e):(g=t,s(S)&&o(S,e))},w}},(e,t,r)=>{const n=r(1),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=r(5),{Buffer:a}=r(0),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=r(13).codes;e.exports=function(e,t,r){let u,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,u=t[o]();else{if(!t||!t[s])throw new l("iterable",["Iterable"],t);f=!1,u=t[s]()}const h=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;return h._read=function(){d||(d=!0,async function(){for(;;){try{const{value:e,done:t}=f?await u.next():u.next();if(t)h.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw d=!1,new c;if(h.push(t))continue;d=!1}}catch(e){h.destroy(e)}break}}())},h._destroy=function(e,t){i(async function(e){const t=null!=e,r="function"==typeof u.throw;if(t&&r){const{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>n.nextTick(t,e)),(r=>n.nextTick(t,r||e)))},h}},(e,t,r)=>{const{ObjectSetPrototypeOf:n}=r(5);e.exports=o;const i=r(160);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},(e,t,r)=>{const{ObjectSetPrototypeOf:n,Symbol:i}=r(5);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:o}=r(13).codes,s=r(33),{getHighWaterMark:a}=r(70);n(c.prototype,s.prototype),n(c,s);const l=i("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())}))}function f(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,r){throw new o("_transform()")},c.prototype._write=function(e,t,r){const n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,((e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},c.prototype._read=function(){if(this[l]){const e=this[l];this[l]=null,e()}}},(e,t,r)=>{const{ArrayPrototypePop:n,Promise:i}=r(5),{isIterable:o,isNodeStream:s,isWebStream:a}=r(25),{pipelineImpl:l}=r(93),{finished:c}=r(29);r(290),e.exports={finished:c,pipeline:function(...e){return new i(((t,r)=>{let i,c;const u=e[e.length-1];if(u&&"object"==typeof u&&!s(u)&&!o(u)&&!a(u)){const t=n(e);i=t.signal,c=t.end}l(e,((e,n)=>{e?r(e):t(n)}),{signal:i,end:c})}))}}},(e,t,r)=>{var n=r(10).inherits,i=r(84),o=r(96),s=r(163),a=r(295),l=r(164),c=r(97),u=e.exports=function(e){if(!(this instanceof u))return new u(e);o.call(this),this.platform=l.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new s,this.crc=0,this.time=-1,this.minver=l.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};n(u,o),u.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},u.prototype.getComment=function(){return null!==this.comment?this.comment:""},u.prototype.getCompressedSize=function(){return this.csize},u.prototype.getCrc=function(){return this.crc},u.prototype.getExternalAttributes=function(){return this.exattr},u.prototype.getExtra=function(){return null!==this.extra?this.extra:l.EMPTY},u.prototype.getGeneralPurposeBit=function(){return this.gpb},u.prototype.getInternalAttributes=function(){return this.inattr},u.prototype.getLastModifiedDate=function(){return this.getTime()},u.prototype.getLocalFileDataExtra=function(){return this.getExtra()},u.prototype.getMethod=function(){return this.method},u.prototype.getName=function(){return this.name},u.prototype.getPlatform=function(){return this.platform},u.prototype.getSize=function(){return this.size},u.prototype.getTime=function(){return-1!==this.time?c.dosToDate(this.time):-1},u.prototype.getTimeDos=function(){return-1!==this.time?this.time:0},u.prototype.getUnixMode=function(){return this.platform!==l.PLATFORM_UNIX?0:this.getExternalAttributes()>>l.SHORT_SHIFT&l.SHORT_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},u.prototype.setCompressedSize=function(e){if(e<0)throw new Error("invalid entry compressed size");this.csize=e},u.prototype.setCrc=function(e){if(e<0)throw new Error("invalid entry crc32");this.crc=e},u.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},u.prototype.setExtra=function(e){this.extra=e},u.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof s))throw new Error("invalid entry GeneralPurposeBit");this.gpb=e},u.prototype.setInternalAttributes=function(e){this.inattr=e},u.prototype.setMethod=function(e){if(e<0)throw new Error("invalid entry compression method");this.method=e},u.prototype.setName=function(e,t=!1){e=i(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},u.prototype.setPlatform=function(e){this.platform=e},u.prototype.setSize=function(e){if(e<0)throw new Error("invalid entry size");this.size=e},u.prototype.setTime=function(e,t){if(!(e instanceof Date))throw new Error("invalid entry time");this.time=c.dateToDos(e,t)},u.prototype.setUnixMode=function(e){var t=0;t|=(e|=this.isDirectory()?l.S_IFDIR:l.S_IFREG)<<l.SHORT_SHIFT|(this.isDirectory()?l.S_DOS_D:l.S_DOS_A),this.setExternalAttributes(t),this.mode=e&l.MODE_MASK,this.platform=l.PLATFORM_UNIX},u.prototype.setVersionNeededToExtract=function(e){this.minver=e},u.prototype.isDirectory=function(){return"/"===this.getName().slice(-1)},u.prototype.isUnixSymlink=function(){return(this.getUnixMode()&a.FILE_TYPE_FLAG)===a.LINK_FLAG},u.prototype.isZip64=function(){return this.csize>l.ZIP64_MAGIC||this.size>l.ZIP64_MAGIC}},(e,t,r)=>{var n=r(97),i=e.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return n.getShortBytes((this.descriptor?8:0)|(this.utf8?2048:0)|(this.encryption?1:0)|(this.strongEncryption?64:0))},i.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t),o=new i;return o.useDataDescriptor(!!(8&r)),o.useUTF8ForNames(!!(2048&r)),o.useStrongEncryption(!!(64&r)),o.useEncryption(!!(1&r)),o.setSlidingDictionarySize(2&r?8192:4096),o.setNumberOfShannonFanoTrees(4&r?3:2),o},i.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(e){this.descriptor=e},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(e){this.encryption=e},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(e){this.strongEncryption=e},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(e){this.utf8=e},i.prototype.usesUTF8ForNames=function(){return this.utf8}},e=>{e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},(e,t,r)=>{var n=r(10).inherits,i=r(83),o=r(124).Transform,s=r(96),a=r(171),l=e.exports=function(e){if(!(this instanceof l))return new l(e);o.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(l,o),l.prototype._appendBuffer=function(e,t,r){},l.prototype._appendStream=function(e,t,r){},l.prototype._emitErrorCallback=function(e){e&&this.emit("error",e)},l.prototype._finish=function(e){},l.prototype._normalizeEntry=function(e){},l.prototype._transform=function(e,t,r){r(null,e)},l.prototype.entry=function(e,t,r){if(t=t||null,"function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),e instanceof s)if(this._archive.finish||this._archive.finished)r(new Error("unacceptable entry after finish"));else{if(!this._archive.processing){if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=a.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,r);else{if(!i(t))return this._archive.processing=!1,void r(new Error("input source must be valid Stream or Buffer instance"));this._appendStream(e,t,r)}return this}r(new Error("already processing an entry"))}else r(new Error("not a valid instance of ArchiveEntry"))},l.prototype.finish=function(){this._archive.processing?this._archive.finish=!0:this._finish()},l.prototype.getBytesWritten=function(){return this.offset},l.prototype.write=function(e,t){return e&&(this.offset+=e.length),o.prototype.write.call(this,e,t)}},(e,t,r)=>{const{pipeline:n}=r(98),i=r(34),{destroyer:o}=r(42),{isNodeStream:s,isReadable:a,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:f,isReadableStream:h}=r(26),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r(14),_=r(30);e.exports=function(...e){if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let r=0;r<e.length;++r)if(s(e[r])||c(e[r])){if(r<e.length-1&&!(a(e[r])||h(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be readable");if(r>0&&!(l(e[r])||f(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be writable")}let r,y,m,g,w;const v=e[0],S=n(e,(function(e){const t=g;g=null,t?t(e):e?w.destroy(e):x||E||w.destroy()})),E=!!(l(v)||f(v)||u(v)),x=!!(a(S)||h(S)||u(S));if(w=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(s(v))w._write=function(e,t,n){v.write(e,t)?n():r=n},w._final=function(e){v.end(),y=e},v.on("drain",(function(){if(r){const e=r;r=null,e()}}));else if(c(v)){const e=(u(v)?v.writable:v).getWriter();w._write=async function(t,r,n){try{await e.ready,e.write(t).catch((()=>{})),n()}catch(e){n(e)}},w._final=async function(t){try{await e.ready,e.close().catch((()=>{})),y=t}catch(e){t(e)}}}const e=u(S)?S.readable:S;_(e,(()=>{if(y){const e=y;y=null,e()}}))}if(x)if(s(S))S.on("readable",(function(){if(m){const e=m;m=null,e()}})),S.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=S.read();if(null===e)return void(m=w._read);if(!w.push(e))return}};else if(c(S)){const e=(u(S)?S.readable:S).getReader();w._read=async function(){for(;;)try{const{value:t,done:r}=await e.read();if(!w.push(t))return;if(r)return void w.push(null)}catch{return}}}return w._destroy=function(e,t){e||null===g||(e=new d),m=null,r=null,y=null,null===g?t(e):(g=t,s(S)&&o(S,e))},w}},(e,t,r)=>{const n=r(1),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=r(6),{Buffer:a}=r(0),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=r(14).codes;e.exports=function(e,t,r){let u,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,u=t[o]();else{if(!t||!t[s])throw new l("iterable",["Iterable"],t);f=!1,u=t[s]()}const h=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;return h._read=function(){d||(d=!0,async function(){for(;;){try{const{value:e,done:t}=f?await u.next():u.next();if(t)h.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw d=!1,new c;if(h.push(t))continue;d=!1}}catch(e){h.destroy(e)}break}}())},h._destroy=function(e,t){i(async function(e){const t=null!=e,r="function"==typeof u.throw;if(t&&r){const{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>n.nextTick(t,e)),(r=>n.nextTick(t,r||e)))},h}},(e,t,r)=>{const{ObjectSetPrototypeOf:n}=r(6);e.exports=o;const i=r(169);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},(e,t,r)=>{const{ObjectSetPrototypeOf:n,Symbol:i}=r(6);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:o}=r(14).codes,s=r(34),{getHighWaterMark:a}=r(73);n(c.prototype,s.prototype),n(c,s);const l=i("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())}))}function f(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,r){throw new o("_transform()")},c.prototype._write=function(e,t,r){const n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,((e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},c.prototype._read=function(){if(this[l]){const e=this[l];this[l]=null,e()}}},(e,t,r)=>{const{ArrayPrototypePop:n,Promise:i}=r(6),{isIterable:o,isNodeStream:s,isWebStream:a}=r(26),{pipelineImpl:l}=r(98),{finished:c}=r(30);r(296),e.exports={finished:c,pipeline:function(...e){return new i(((t,r)=>{let i,c;const u=e[e.length-1];if(u&&"object"==typeof u&&!s(u)&&!o(u)&&!a(u)){const t=n(e);i=t.signal,c=t.end}l(e,((e,n)=>{e?r(e):t(n)}),{signal:i,end:c})}))}}},(e,t,r)=>{r(16).Stream;var n=r(124).PassThrough,i=r(83);(e.exports={}).normalizeInputSource=function(e){if(null===e)return Buffer.alloc(0);if("string"==typeof e)return Buffer.from(e);if(i(e)&&!e._readableState){var t=new n;return e.pipe(t),t}return e}},(e,t,r)=>{const{pipeline:n}=r(102),i=r(35),{destroyer:o}=r(43),{isNodeStream:s,isReadable:a,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:f,isReadableStream:h}=r(27),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r(15),_=r(31);e.exports=function(...e){if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let r=0;r<e.length;++r)if(s(e[r])||c(e[r])){if(r<e.length-1&&!(a(e[r])||h(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be readable");if(r>0&&!(l(e[r])||f(e[r])||u(e[r])))throw new p(`streams[${r}]`,t[r],"must be writable")}let r,y,m,g,w;const v=e[0],S=n(e,(function(e){const t=g;g=null,t?t(e):e?w.destroy(e):x||E||w.destroy()})),E=!!(l(v)||f(v)||u(v)),x=!!(a(S)||h(S)||u(S));if(w=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==S||!S.readableObjectMode),writable:E,readable:x}),E){if(s(v))w._write=function(e,t,n){v.write(e,t)?n():r=n},w._final=function(e){v.end(),y=e},v.on("drain",(function(){if(r){const e=r;r=null,e()}}));else if(c(v)){const e=(u(v)?v.writable:v).getWriter();w._write=async function(t,r,n){try{await e.ready,e.write(t).catch((()=>{})),n()}catch(e){n(e)}},w._final=async function(t){try{await e.ready,e.close().catch((()=>{})),y=t}catch(e){t(e)}}}const e=u(S)?S.readable:S;_(e,(()=>{if(y){const e=y;y=null,e()}}))}if(x)if(s(S))S.on("readable",(function(){if(m){const e=m;m=null,e()}})),S.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=S.read();if(null===e)return void(m=w._read);if(!w.push(e))return}};else if(c(S)){const e=(u(S)?S.readable:S).getReader();w._read=async function(){for(;;)try{const{value:t,done:r}=await e.read();if(!w.push(t))return;if(r)return void w.push(null)}catch{return}}}return w._destroy=function(e,t){e||null===g||(e=new d),m=null,r=null,y=null,null===g?t(e):(g=t,s(S)&&o(S,e))},w}},(e,t,r)=>{const n=r(1),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=r(7),{Buffer:a}=r(0),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=r(15).codes;e.exports=function(e,t,r){let u,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,u=t[o]();else{if(!t||!t[s])throw new l("iterable",["Iterable"],t);f=!1,u=t[s]()}const h=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;return h._read=function(){d||(d=!0,async function(){for(;;){try{const{value:e,done:t}=f?await u.next():u.next();if(t)h.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw d=!1,new c;if(h.push(t))continue;d=!1}}catch(e){h.destroy(e)}break}}())},h._destroy=function(e,t){i(async function(e){const t=null!=e,r="function"==typeof u.throw;if(t&&r){const{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>n.nextTick(t,e)),(r=>n.nextTick(t,r||e)))},h}},(e,t,r)=>{const{ObjectSetPrototypeOf:n}=r(7);e.exports=o;const i=r(175);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},(e,t,r)=>{const{ObjectSetPrototypeOf:n,Symbol:i}=r(7);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:o}=r(15).codes,s=r(35),{getHighWaterMark:a}=r(76);n(c.prototype,s.prototype),n(c,s);const l=i("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())}))}function f(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,r){throw new o("_transform()")},c.prototype._write=function(e,t,r){const n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,((e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[l]=r)}))},c.prototype._read=function(){if(this[l]){const e=this[l];this[l]=null,e()}}},(e,t,r)=>{const{ArrayPrototypePop:n,Promise:i}=r(7),{isIterable:o,isNodeStream:s,isWebStream:a}=r(27),{pipelineImpl:l}=r(102),{finished:c}=r(31);r(301),e.exports={finished:c,pipeline:function(...e){return new i(((t,r)=>{let i,c;const u=e[e.length-1];if(u&&"object"==typeof u&&!s(u)&&!o(u)&&!a(u)){const t=n(e);i=t.signal,c=t.end}l(e,((e,n)=>{e?r(e):t(n)}),{signal:i,end:c})}))}}},(e,t,r)=>{var n;e.exports=x,x.ReadableState=E;r(2).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(306),s=r(0).Buffer,a=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,c=r(10);l=c&&c.debuglog?c.debuglog("stream"):function(){};var u,f,h,d=r(307),p=r(178),b=r(179).getHighWaterMark,_=r(51).F,y=_.ERR_INVALID_ARG_TYPE,m=_.ERR_STREAM_PUSH_AFTER_EOF,g=_.ERR_METHOD_NOT_IMPLEMENTED,w=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(22)(x,o);var v=p.errorOrDestroy,S=["error","close","destroy","pause","resume"];function E(e,t,i){n=n||r(53),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=r(358).I),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(53),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function R(e,t,r,n,i){l("readableAddChunk",t);var o,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}(e,c);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(c,t)),o)v(e,o);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)c.endEmitted?v(e,new w):A(e,c,t,!0);else if(c.ended)v(e,new m);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?A(e,c,t,!1):M(e,c)):A(e,c,t,!1)}else n||(c.reading=!1,M(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),M(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=p.destroy,x.prototype._undestroy=p.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},x.prototype.unshift=function(e){return R(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){u||(u=r(358).I);var t=new u(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(l("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function C(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){l("readable nexttick read 0"),e.read(0)}function D(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(W,t,e))}function W(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){v(this,new g("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:b;function s(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",f),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function a(){l("onend"),e.end()}n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(r);e.on("drain",c);var u=!1;function f(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==B(n.pipes,e))&&!u&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){l("onerror",t),b(),e.removeListener("error",h),0===i(e,"error")&&v(e,t)}function d(){e.removeListener("finish",p),b()}function p(){l("onfinish"),e.removeListener("close",d),b()}function b(){l("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=B(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},x.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?T(this):n.reading||process.nextTick(I,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(C,this),r},x.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(C,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(D,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(308)),f(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=j,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===h&&(h=r(309)),h(x,e,t)})},e=>{function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},(e,t,r)=>{var n=r(51).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},(e,t,r)=>{function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=x,x.WritableState=E;var o={deprecate:r(130)},s=r(306),a=r(0).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=r(178),f=r(179).getHighWaterMark,h=r(51).F,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,_=h.ERR_STREAM_CANNOT_PIPE,y=h.ERR_STREAM_DESTROYED,m=h.ERR_STREAM_NULL_VALUES,g=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,v=u.errorOrDestroy;function S(){}function E(e,t,o){i=i||r(53),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new b;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(P,e,t),e._writableState.errorEmitted=!0,v(e,n)):(i(n),e._writableState.errorEmitted=!0,v(e,n),P(e,t))}(e,r,n,t,i);else{var o=k(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?process.nextTick(A,e,r,o,i):A(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(i=i||r(53));if(!t&&!c.call(x,this))return new x(e);this._writableState=new E(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function R(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),P(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,R(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(R(e,t,!1,t.objectMode?1:c.length,c,u,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var r=k(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(22)(x,s),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===x&&(e&&e._writableState instanceof E)}})):c=function(e){return e instanceof this},x.prototype.pipe=function(){v(this,new _)},x.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,a.isBuffer(n)||n instanceof l);return s&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?function(e,t){var r=new g;v(e,r),process.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i;return null===r?i=new m:"string"==typeof r||t.objectMode||(i=new d("chunk",["string","Buffer"],r)),!i||(v(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,l,n,i,o);return c}(this,i,s,e,t,r)),o},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new p("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=u.destroy,x.prototype._undestroy=u.undestroy,x.prototype._destroy=function(e,t){t(e)}},(e,t,r)=>{e.exports=u;var n=r(51).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(53);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(22)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},(e,t,r)=>{const{EventEmitter:n}=r(2),i=new Error("Stream was destroyed"),o=new Error("Premature close"),s=r(316),a=r(183),l=268435455,c=1^l,u=2^l,f=64,h=128,d=256,p=1024,b=2048,_=4096,y=8192,m=16384,g=32768,w=131072,v=131328,S=16^l,E=768^l,x=268402687,R=32^l,A=268304383,O=2<<18,k=4<<18,T=8<<18,P=16<<18,M=32<<18,L=64<<18,C=128<<18,I=256<<18,D=512<<18,N=201064447,j=267386879,F=234881023,W=262160,B=268173295,U=8404992,$=14,z=15,G=8405006,H=33587200,V=33587215,q=2359296,K=2359311,Y=Symbol.asyncIterator||Symbol("asyncIterator");class Z{constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||ge,this.map=n||r,this.afterWrite=ne.bind(this),this.afterUpdateNextTick=se.bind(this)}get ended(){return!!(this.stream._duplexState&M)}push(e){return null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=T,!0):(this.stream._duplexState|=6291456,!1)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=266338303),e}end(e){"function"==typeof e?this.stream.once("finish",e):null!=e&&this.push(e),this.stream._duplexState=(this.stream._duplexState|D)&j}autoBatch(e,t){const r=[],n=this.stream;for(r.push(e);(n._duplexState&K)===q;)r.push(n._writableState.shift());if(n._duplexState&z)return t(null);n._writev(r,t)}update(){const e=this.stream;e._duplexState|=O;do{for(;(e._duplexState&K)===T;){const t=this.shift();e._duplexState|=67371008,e._write(t,this.afterWrite)}1310720&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=267911167}updateNonPrimary(){const e=this.stream;if((144965647&e._duplexState)===D)return e._duplexState=134217727&e._duplexState|262144,void e._final(te.bind(this));4!=(e._duplexState&$)?1==(e._duplexState&V)&&(e._duplexState=(e._duplexState|W)&c,e._open(ae.bind(this))):e._duplexState&H||(e._duplexState|=W,e._destroy(re.bind(this)))}continueUpdate(){return!!(this.stream._duplexState&C)&&(this.stream._duplexState&=F,!0)}updateCallback(){(35127311&this.stream._duplexState)===k?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&C||(this.stream._duplexState|=C,this.stream._duplexState&O||s(this.afterUpdateNextTick))}}class Q{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=0===t?1:t,this.buffered=0,this.readAhead=t>0,this.error=null,this.pipeline=null,this.byteLength=o||i||ge,this.map=n||r,this.pipeTo=null,this.afterRead=ie.bind(this),this.afterUpdateNextTick=oe.bind(this)}get ended(){return!!(this.stream._duplexState&m)}pipe(e,t){if(null!==this.pipeTo)throw new Error("Can only pipe to one destination");if("function"!=typeof t&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new J(this.stream,e,t),t&&this.stream.on("error",we),me(e))e._writableState.pipeline=this.pipeline,t&&e.on("error",we),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{const t=this.pipeline.done.bind(this.pipeline,e),r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t),e.on("close",r),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",ee.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){const t=this.stream;return null===e?(this.highWaterMark=0,t._duplexState=268369855&t._duplexState|1024,!1):(null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),t._duplexState=268369919&t._duplexState|128,this.buffered<this.highWaterMark)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=268427135),e}unshift(e){const t=[null!==this.map?this.map(e):e];for(;this.buffered>0;)t.push(this.shift());for(let e=0;e<t.length-1;e++){const r=t[e];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(t[t.length-1])}read(){const e=this.stream;if((16527&e._duplexState)===h){const t=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=E),e._duplexState&b&&e.emit("data",t),t}return!1===this.readAhead&&(e._duplexState|=w,this.updateNextTick()),null}drain(){const e=this.stream;for(;(16527&e._duplexState)===h&&768&e._duplexState;){const t=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=E),e._duplexState&b&&e.emit("data",t)}}update(){const e=this.stream;e._duplexState|=32;do{for(this.drain();this.buffered<this.highWaterMark&&(214047&e._duplexState)===w;)e._duplexState|=65552,e._read(this.afterRead),this.drain();4224==(12431&e._duplexState)&&(e._duplexState|=y,e.emit("readable")),80&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=R}updateNonPrimary(){const e=this.stream;(1167&e._duplexState)===p&&(e._duplexState=268434431&e._duplexState|16384,e.emit("end"),(e._duplexState&G)===U&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!=(e._duplexState&$)?1==(e._duplexState&V)&&(e._duplexState=(e._duplexState|W)&c,e._open(ae.bind(this))):e._duplexState&H||(e._duplexState|=W,e._destroy(re.bind(this)))}continueUpdate(){return!!(this.stream._duplexState&g)&&(this.stream._duplexState&=x,!0)}updateCallback(){(32879&this.stream._duplexState)===f?this.update():this.updateNextTick()}updateNextTick(){this.stream._duplexState&g||(this.stream._duplexState|=g,32&this.stream._duplexState||s(this.afterUpdateNextTick))}}class X{constructor(e){this.data=null,this.afterTransform=le.bind(e),this.afterFinal=null}}class J{constructor(e,t,r){this.from=e,this.to=t,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,t){t&&(this.error=t),e!==this.to||(this.to=null,null===this.from)?e!==this.from||(this.from=null,null===this.to)?(null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null):e._duplexState&m||this.to.destroy(this.error||new Error("Readable stream closed before ending")):this.from._duplexState&m&&this.pipeToFinished||this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}}function ee(){this.stream._duplexState|=512,this.updateCallback()}function te(e){const t=this.stream;e&&t.destroy(e),t._duplexState&$||(t._duplexState|=M,t.emit("finish")),(t._duplexState&G)===U&&(t._duplexState|=4),t._duplexState&=N,t._duplexState&O?this.updateNextTick():this.update()}function re(e){const t=this.stream;e||this.error===i||(e=this.error),e&&t.emit("error",e),t._duplexState|=8,t.emit("close");const r=t._readableState,n=t._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(t,e),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(t,e)}}function ne(e){const t=this.stream;e&&t.destroy(e),t._duplexState&=N,null!==this.drains&&function(e){for(let t=0;t<e.length;t++)0==--e[t].writes&&(e.shift().resolve(!0),t--)}(this.drains),(6553615&t._duplexState)===P&&(t._duplexState&=264241151,(t._duplexState&L)===L&&t.emit("drain")),this.updateCallback()}function ie(e){e&&this.stream.destroy(e),this.stream._duplexState&=S,!1!==this.readAhead||this.stream._duplexState&d||(this.stream._duplexState&=A),this.updateCallback()}function oe(){32&this.stream._duplexState||(this.stream._duplexState&=x,this.update())}function se(){this.stream._duplexState&O||(this.stream._duplexState&=F,this.update())}function ae(e){const t=this.stream;e&&t.destroy(e),4&t._duplexState||(17423&t._duplexState||(t._duplexState|=f),142606351&t._duplexState||(t._duplexState|=k),t.emit("open")),t._duplexState&=B,null!==t._writableState&&t._writableState.updateCallback(),null!==t._readableState&&t._readableState.updateCallback()}function le(e,t){null!=t&&this.push(t),this._writableState.afterWrite(e)}function ce(e){null!==this._readableState&&("data"===e&&(this._duplexState|=133376,this._readableState.updateNextTick()),"readable"===e&&(this._duplexState|=_,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===e&&(this._duplexState|=L,this._writableState.updateNextTick())}class ue extends n{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",ve.bind(this))),this.on("newListener",ce)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return null!==this._readableState||void 0}get writable(){return null!==this._writableState||void 0}get destroyed(){return!!(8&this._duplexState)}get destroying(){return!!(this._duplexState&$)}destroy(e){this._duplexState&$||(e||(e=i),this._duplexState=267386815&this._duplexState|4,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=e),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=2,this._predestroy(),this._duplexState&=u,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}}class fe extends ue{constructor(e){super(e),this._duplexState|=8519681,this._readableState=new Q(this,e),e&&(!1===this._readableState.readAhead&&(this._duplexState&=A),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=v,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=!1===this._readableState.readAhead?268304127:268435199,this}static _fromAsyncIterator(e,t){let r;const n=new fe({...t,read(t){e.next().then(i).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return n;function i(e){e.done?n.push(null):n.push(e.value)}}static from(e,t){if(me(r=e)&&r.readable)return e;var r;if(e[Y])return this._fromAsyncIterator(e[Y](),t);Array.isArray(e)||(e=void 0===e?[]:[e]);let n=0;return new fe({...t,read(t){this.push(n===e.length?null:e[n++]),t(null)}})}static isBackpressured(e){return!!(17422&e._duplexState)||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return!(e._duplexState&d)}[Y](){const e=this;let t=null,r=null,n=null;return this.on("error",(e=>{t=e})),this.on("readable",(function(){null!==r&&o(e.read())})),this.on("close",(function(){null!==r&&o(null)})),{[Y](){return this},next:()=>new Promise((function(t,i){r=t,n=i;const s=e.read();null!==s?o(s):8&e._duplexState&&o(null)})),return:()=>s(null),throw:e=>s(e)};function o(o){null!==n&&(t?n(t):null!==o||e._duplexState&m?r({value:o,done:null===o}):n(i),n=r=null)}function s(t){return e.destroy(t),new Promise(((r,n)=>{if(8&e._duplexState)return r({value:void 0,done:!0});e.once("close",(function(){t?n(t):r({value:void 0,done:!0})}))}))}}}class he extends ue{constructor(e){super(e),this._duplexState|=16385,this._writableState=new Z(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return!!(146800654&e._duplexState)}static drained(e){if(e.destroyed)return Promise.resolve(!1);const t=e._writableState;var r;const n=((r=e)._writev!==he.prototype._writev&&r._writev!==de.prototype._writev?Math.min(1,t.queue.length):t.queue.length)+(e._duplexState&I?1:0);return 0===n?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise((e=>{t.drains.push({writes:n,resolve:e})})))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class de extends fe{constructor(e){super(e),this._duplexState=1|this._duplexState&w,this._writableState=new Z(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class pe extends de{constructor(e){super(e),this._transformState=new X(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){const t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),null!==this._transformState.data&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(be.bind(this))}}function be(e,t){const r=this._transformState.afterFinal;if(e)return r(e);null!=t&&this.push(t),this.push(null),r(null)}function _e(e,...t){const r=Array.isArray(e)?[...e,...t]:[e,...t],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,a=null;for(let e=1;e<r.length;e++)s=r[e],me(i)?i.pipe(s,c):(l(i,!0,e>1,c),i.pipe(s)),i=s;if(n){let e=!1;const t=me(s)||!(!s._writableState||!s._writableState.autoDestroy);s.on("error",(e=>{null===a&&(a=e)})),s.on("finish",(()=>{e=!0,t||n(a)})),t&&s.on("close",(()=>n(a||(e?null:o))))}return s;function l(e,t,r,n){e.on("error",n),e.on("close",(function(){if(t&&e._readableState&&!e._readableState.ended)return n(o);if(r&&e._writableState&&!e._writableState.ended)return n(o)}))}function c(e){if(e&&!a){a=e;for(const t of r)t.destroy(e)}}}function ye(e){return!!e._readableState||!!e._writableState}function me(e){return"number"==typeof e._duplexState&&ye(e)}function ge(e){return function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength}(e)?e.byteLength:1024}function we(){}function ve(){this.destroy(new Error("Stream aborted."))}e.exports={pipeline:_e,pipelinePromise:function(...e){return new Promise(((t,r)=>_e(...e,(e=>{if(e)return r(e);t()}))))},isStream:ye,isStreamx:me,getStreamError:function(e){const t=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t===i?null:t},Stream:ue,Writable:he,Readable:fe,Duplex:de,Transform:pe,PassThrough:class extends pe{}}},(e,t,r)=>{const n=r(317);e.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){const t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;const e=this.tail.shift();if(void 0===e&&this.tail.next){const e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){const e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},(e,t,r)=>{var n=r(80);function i(e,t,r){void 0===r&&(r=t,t=e,e=null),n.Duplex.call(this,e),"function"!=typeof r.read&&(r=new n.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var i=this;t.once("finish",(function(){i.end()})),this.once("finish",(function(){t.end()})),r.on("readable",(function(){i._waiting&&(i._waiting=!1,i._read())})),r.once("end",(function(){i.push(null)})),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",(function(e){i.emit("error",e)})),r.on("error",(function(e){i.emit("error",e)})))}i.prototype=Object.create(n.Duplex.prototype,{constructor:{value:i}}),i.prototype._write=function(e,t,r){this._writable.write(e,t,r)},i.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},e.exports=function(e,t,r){return new i(e,t,r)},e.exports.DuplexWrapper=i},(e,t,r)=>{e.exports={...r(11),...r(112),...r(332),...r(333),...r(339),...r(23),...r(344),...r(114),...r(36),...r(78)}},(e,t,r)=>{const n=r(11),i=r(9).fromPromise;e.exports={utimesMillis:i((async function(e,t,r){const i=await n.open(e,"r+");let o=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){o=e}}if(o)throw o})),utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},(e,t,r)=>{e=r.nmd(e);var n=r(45),i=r(242),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},(e,t,r)=>{e=r.nmd(e);var n=r(135),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;r=function(__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__13__){return function(){var __webpack_modules__=[function(e,t,r){r.d(t,{ABBREVIATIONS:function(){return u},ANIMATION_END_EVENT_NAMES:function(){return f},CLASS_TO_TYPE_MAPPING:function(){return h},CLOSE_EVENT_NAMES:function(){return s},CONSOLE_METHODS:function(){return a},DEFAULT_ENCODING:function(){return o},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return c},KEYBOARD_CODES:function(){return p},KEY_CODES:function(){return d},LOCALES:function(){return b},Lock:function(){return n.Lock},PLAIN_OBJECT_PROTOTYPES:function(){return _},SPECIAL_REGEX_SEQUENCES:function(){return y},Semaphore:function(){return i.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return m},VALUE_COPY_SYMBOL:function(){return l}});var n=r(9),i=r(10),o="utf8",s=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"],a=["debug","error","info","log","warn"],l=Symbol.for("clientnodeValue"),c=Symbol.for("clientnodeIgnoreNullAndUndefined"),u=["html","id","url","us","de","api","href"],f="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",h={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},d={BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39},p={BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"},b=[],_=[Object.prototype],y=["-","[","]","(",")","^","$","*","+",".","{","}"],m="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"},function(e,t,r){r.d(t,{MAXIMAL_NUMBER_OF_ITERATIONS:function(){return f},NOOP:function(){return h},determineGlobalContext:function(){return l},globalContext:function(){return c},mockConsole:function(){return d},setGlobalContext:function(){return u}});var n,i,o=r(0),s=r(5);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e=r.hmd(e);var l=function(){return"undefined"==typeof globalThis?void 0===window?void 0===r.g?e:Object.prototype.hasOwnProperty.call(r.g,"window")?r.g.window:r.g:window:globalThis},c=l(),u=function(e){c=e};c.fetch=c.fetch?c.fetch.bind(c):null!==(n=null==(i=(0,s.optionalRequire)("node-fetch"))?void 0:i.default)&&void 0!==n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.currentImport?(0,s.currentImport)("node-fetch").then((function(e){var r;return(r=e).default.apply(r,t)})):null};var f={value:100},h=function(){},d=function(){Object.prototype.hasOwnProperty.call(c,"console")||(c.console={}),c.console||(c.console={});for(var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.CONSOLE_METHODS);!(e=t()).done;){var r=e.value;r in c.console||(c.console[r]=h)}}},function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_5862__){__nested_webpack_require_5862__.r(__nested_webpack_exports__),__nested_webpack_require_5862__.d(__nested_webpack_exports__,{addDynamicGetterAndSetter:function(){return _addDynamicGetterAndSetter},convertCircularObjectToJSON:function(){return convertCircularObjectToJSON},convertMapToPlainObject:function(){return _convertMapToPlainObject},convertPlainObjectToMap:function(){return _convertPlainObjectToMap},convertSubstringInPlainObject:function(){return _convertSubstringInPlainObject},copy:function(){return _copy},determineType:function(){return determineType},equals:function(){return _equals},evaluateDynamicData:function(){return evaluateDynamicData},extend:function(){return _extend},getProxyHandler:function(){return getProxyHandler},mask:function(){return _mask},modifyObject:function(){return _modifyObject},removeKeyPrefixes:function(){return _removeKeyPrefixes},removeKeysInEvaluation:function(){return _removeKeysInEvaluation},represent:function(){return _represent},sort:function(){return sort},unwrapProxy:function(){return _unwrapProxy}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_5862__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_5862__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_5862__(0),_indicators__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_5862__(3),_number__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_5862__(8),_string__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_5862__(7);function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _addDynamicGetterAndSetter=function(e,t,r,n,i,o){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n={}),void 0===i&&(i=!0),void 0===o&&(o=[Object]),i&&"object"==typeof e)if(Array.isArray(e))for(var s,a=0,l=_createForOfIteratorHelperLoose(e);!(s=l()).done;){var c=s.value;e[a]=_addDynamicGetterAndSetter(c,t,r,n,i),a+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var u,f=_createForOfIteratorHelperLoose(e);!(u=f()).done;){var h=u.value,d=h[0],p=h[1];e.set(d,_addDynamicGetterAndSetter(p,t,r,n,i))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var b,_=[],y=_createForOfIteratorHelperLoose(e);!(b=y()).done;){var m=b.value;e.delete(m),_.push(_addDynamicGetterAndSetter(m,t,r,n,i))}for(var g=0,w=_;g<w.length;g++){var v=w[g];e.add(v)}}else if(null!==e)for(var S=0,E=Object.entries(e);S<E.length;S++){var x=E[S],R=x[0],A=x[1];e[R]=_addDynamicGetterAndSetter(A,t,r,n,i)}if(t||r)for(var O,k,T=function(){var i=k.value;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)&&e instanceof i){var o=getProxyHandler(e,n),s=getProxyHandler(e,n);t&&(s.get=function(r,n){return"__target__"===n?e:"__revoke__"===n?function(){return c(),e}:"function"==typeof e[n]?e[n]:t(o.get(l,n),n,e)}),r&&(s.set=function(t,n,i){return o.set(l,n,r(n,i,e))});var a=Proxy.revocable({},s),l=a.proxy,c=a.revoke;return{v:l}}},P=_createForOfIteratorHelperLoose(o);!(k=P()).done;)if(O=T())return O.v;return e},convertCircularObjectToJSON=function(e,t,r){void 0===t&&(t=function(e){return null!=e?e:"__circularReference__"}),void 0===r&&(r=0);var n=new Map;return function(e){var i=function(e,r){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)){var o,s;if(n.has(r))return t(null!==(o=n.get(r))&&void 0!==o?o:null,e,r,n);if(n.set(r,null),Array.isArray(r)){s=[];for(var a,l=_createForOfIteratorHelperLoose(r);!(a=l()).done;){var c=a.value;s.push(i(null,c))}}else{s={};for(var u=0,f=Object.entries(r);u<f.length;u++){var h=f[u],d=h[0],p=h[1];s[d]=i(d,p)}}return n.set(r,s),s}return r};return JSON.stringify(e,i,r)}(e)},_convertMapToPlainObject=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)){for(var r,n={},i=_createForOfIteratorHelperLoose(e);!(r=i()).done;){var o=r.value,s=o[0],a=o[1];t&&(a=_convertMapToPlainObject(a,t)),["number","string"].includes(typeof s)&&(n[String(s)]=a)}return n}if(t)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e))for(var l=0,c=Object.entries(e);l<c.length;l++){var u=c[l],f=u[0],h=u[1];e[f]=_convertMapToPlainObject(h,t)}else if(Array.isArray(e))for(var d=0,p=0,b=e;p<b.length;p++){var _=b[p];e[d]=_convertMapToPlainObject(_,t),d+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var y,m=[],g=_createForOfIteratorHelperLoose(e);!(y=g()).done;){var w=y.value;e.delete(w),m.push(_convertMapToPlainObject(w,t))}for(var v=0,S=m;v<S.length;v++){var E=S[v];e.add(E)}}}return e},_convertPlainObjectToMap=function(e,t){if(void 0===t&&(t=!0),"object"==typeof e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)){for(var r=new Map,n=0,i=Object.entries(e);n<i.length;n++){var o=i[n],s=o[0],a=o[1];t&&(e[s]=_convertPlainObjectToMap(a,t)),r.set(s,e[s])}return r}if(t)if(Array.isArray(e))for(var l=0,c=0,u=e;c<u.length;c++){var f=u[c];e[l]=_convertPlainObjectToMap(f,t),l+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var h,d=_createForOfIteratorHelperLoose(e);!(h=d()).done;){var p=h.value,b=p[0],_=p[1];e.set(b,_convertPlainObjectToMap(_,t))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var y,m=[],g=_createForOfIteratorHelperLoose(e);!(y=g()).done;){var w=y.value;e.delete(w),m.push(_convertPlainObjectToMap(w,t))}for(var v=0,S=m;v<S.length;v++){var E=S[v];e.add(E)}}}return e},_convertSubstringInPlainObject=function(e,t,r){for(var n=0,i=Object.entries(e);n<i.length;n++){var o=i[n],s=o[0],a=o[1];(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(a)?e[s]=_convertSubstringInPlainObject(a,t,r):"string"==typeof a&&(e[s]=a.replace(t,r))}return e},_copy=function(e,t,r,n,i,o,s,a){if(void 0===t&&(t=!1),void 0===r&&(r=-1),void 0===n&&(n=_constants__WEBPACK_IMPORTED_MODULE_1__.VALUE_COPY_SYMBOL),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===s&&(s=[]),void 0===a&&(a=0),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if(!i){if(Array.isArray(e))return _copy(e,t,r,n,[],o,s,a);if(e instanceof Map)return _copy(e,t,r,n,new Map,o,s,a);if(e instanceof Set)return _copy(e,t,r,n,new Set,o,s,a);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var l=/[^/]*$/.exec(e.toString());return(i=new RegExp(e.source,l?l[0]:void 0)).lastIndex=e.lastIndex,i}return"undefined"!=typeof Blob&&e instanceof Blob?t?e.slice(0,e.size,e.type):e:_copy(e,t,r,n,{},o,s,a)}if(e===i)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var c=s.indexOf(e);if(-1!==c)return s[c];s.push(e)}var u=function(e){if(-1!==r&&r<a+1)return n===_constants__WEBPACK_IMPORTED_MODULE_1__.VALUE_COPY_SYMBOL?e:n;var i=_copy(e,t,r,n,null,o,s,a+1);return o||[void 0,null].includes(e)||"object"!=typeof e||s.push(e),i};if(Array.isArray(e))for(var f,h=_createForOfIteratorHelperLoose(e);!(f=h()).done;){var d=f.value;i.push(u(d))}else if(e instanceof Map)for(var p,b=_createForOfIteratorHelperLoose(e);!(p=b()).done;){var _=p.value,y=_[0],m=_[1];i.set(y,u(m))}else if(e instanceof Set)for(var g,w=_createForOfIteratorHelperLoose(e);!(g=w()).done;){var v=g.value;i.add(u(v))}else for(var S=0,E=Object.entries(e);S<E.length;S++){var x=E[S],R=x[0],A=x[1];try{i[R]=u(A)}catch(e){throw new Error('Failed to copy property value object "'+R+'": '+_represent(e),{cause:e})}}}return i||e},determineType=function(e){if([null,void 0].includes(e))return String(e);var t=typeof e;if(["function","object"].includes(t)&&"toString"in e){var r=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,r))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[r]}return t},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(secondValue)||firstValue===secondValue||(0,_number__WEBPACK_IMPORTED_MODULE_3__.isNotANumber)(firstValue)&&(0,_number__WEBPACK_IMPORTED_MODULE_3__.isNotANumber)(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()&&firstValue.flags.split("").sort().join("")===secondValue.flags.split("").sort().join("")||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var t=[],r=0,n=[firstValue,secondValue];r<n.length;r++){var i=n[r],o=new FileReader;o.onload=function(r){null===r.target?t.push(null):t.push(r.target.result),2===t.length&&(t[0]===t[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(t[0])+") !== Blob("+_represent(t[1])+")"))},o.readAsDataURL(i)}}));if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_arr4[_i11],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(first);if(firstIsMap&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(first);if(firstIsSet&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i12];if(0!==options.deep){var t=_equals(e,second[index],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!t)return{v:!1};var r=index,n=function(e){var t;return"string"==typeof e?"["+String(r)+"]"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(t,"then")&&promises.push(t.then(n)),"string"==typeof t)return{v:n(t)}}index+=1},_ret2,_i12=0,_arr5=first;_i12<_arr5.length;_i12++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step11.value,t=e[0],r=e[1];if(0!==options.deep){var n=_equals(r,second.get(t),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!n)return{v:!1};var i=function(e){var r;return"string"==typeof e?"get("+_represent(t)+")"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(n,"then")&&promises.push(n.then(i)),"string"==typeof n)return{v:i(n)}}},_ret3,_iterator11=_createForOfIteratorHelperLoose(first),_step11;!(_step11=_iterator11()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step12.value;if(0!==options.deep){for(var t,r=!1,n=[],i=_createForOfIteratorHelperLoose(second);!(t=i()).done;){var o=t.value,s=_equals(e,o,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if("boolean"==typeof s){if(s){r=!0;break}}else n.push(s)}var a=function(t){return!!t||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return r?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(t){e(a(t.some((function(e){return e}))))}),(function(){}))}))),{v:a(!1)})}},_ret4,_iterator12=_createForOfIteratorHelperLoose(first),_step12;!(_step12=_iterator12()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i13],t=e[0],r=e[1];if(options.properties&&!options.properties.includes(t))return 0;for(var n,i=!1,o=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=o()).done;){var s=n.value;if(t.startsWith(s)){i=!0;break}}if(i)return 0;if(0!==options.deep){var a=_equals(r,second[t],_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},options,{deep:options.deep-1}));if(!a)return{v:!1};var l=function(e){var r;return"string"==typeof e?t+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(a,"then")&&promises.push(a.then(l)),"string"==typeof a)return{v:l(a)}}},_ret5,_i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i13++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(t){for(var r,n=_createForOfIteratorHelperLoose(t);!(r=n()).done;){var i=r.value;if(!i||"string"==typeof i){e(i);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,t,r,n,i){if(void 0===t&&(t={}),void 0===r&&(r="self"),void 0===n&&(n="__evaluate__"),void 0===i&&(i="__execute__"),"object"!=typeof e||null===e)return e;r in t||(t[r]=e);var o=function(e,r){void 0===r&&(r=n);var o=(0,_string__WEBPACK_IMPORTED_MODULE_4__.evaluate)(e,t,r===i);if(o.error)throw new Error(o.error);return o.result},s=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var t=0,r=Object.entries(e);t<r.length;t++){var l=r[t],c=l[0],u=l[1];if("__target__"!==c&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(u)){var f=u;if(s(f),Object.prototype.hasOwnProperty.call(f,n)||Object.prototype.hasOwnProperty.call(f,i)){var h=f;e[c]=new Proxy(f,{get:function(e,t){if("__target__"===t)return e;if("hasOwnProperty"===t)return e[t];for(var r=0,s=[n,i];r<s.length;r++){var l=s[r];if(t===l&&"string"==typeof e[t])return a(o(e[t],l))}var c=a(e);if("toString"===t){var u=o(c);return u[t].bind(u)}if("string"!=typeof t){var f,h=o(c);return null!=(f=h[t])&&f.bind?h[t].bind(h):h[t]}for(var d=0,p=[n,i];d<p.length;d++){var b=p[d];if(Object.prototype.hasOwnProperty.call(e,b))return o(c,b)[t]}return c[t]},ownKeys:function(e){for(var t=0,r=[n,i];t<r.length;t++){var s=r[t];if(Object.prototype.hasOwnProperty.call(e,s))return Object.getOwnPropertyNames(a(o(e[s],s)))}return Object.getOwnPropertyNames(e)}}),e[c].__target__||(e[c].__target__=h)}}}return e},a=function(e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isProxy)(e)){for(var t=0,r=[n,i];t<r.length;t++){var s=r[t];if(Object.prototype.hasOwnProperty.call(e,s))return e[s]}e=e.__target__}for(var l=0,c=Object.entries(e);l<c.length;l++){var u=c[l],f=u[0],h=u[1];if([n,i].includes(f))return"undefined"==typeof Proxy?a(o(h)):h;e[f]=a(h)}}return e};t.resolve=a;var l=function(e){if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var t=0,r=Object.entries(e);t<r.length;t++){var n=r[t],i=n[0],o=n[1];if("__target__"!==i&&null!==o&&["function","undefined"].includes(typeof o)){var s=o.__target__;void 0!==s&&(e[i]=s),l(o)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?o(e[n]):Object.prototype.hasOwnProperty.call(e,i)?o(e[i],i):l(a(s(e)))},_removeKeysInEvaluation=function(e,t){void 0===t&&(t=["__evaluate__","__execute__"]);for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],s=i[1];!t.includes(o)&&t.some((function(t){return Object.prototype.hasOwnProperty.call(e,t)}))?delete e[o]:(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(s)&&_removeKeysInEvaluation(s,t)}return e},_extend=function(e,t){for(var r=!1,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var s,a=i;e===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(r=e,s=t):(s=e,(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(t)?a=[t].concat(a):void 0!==t&&(s=t));for(var l,c=function(e,t){return t===e?e:r&&t&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(t)||(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t))?(n=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)?e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)?e:new Map:e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)?e:{},_extend(r,n,t)):t;var n},u=_createForOfIteratorHelperLoose(a);!(l=u()).done;){var f=l.value,h=typeof s,d=typeof f;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(s)&&(h+=" Map"),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(f)&&(d+=" Map"),h===d&&s!==f)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(s)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(f))for(var p,b=_createForOfIteratorHelperLoose(f);!(p=b()).done;){var _=p.value,y=_[0],m=_[1];s.set(y,c(s.get(y),m))}else if(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(s)||Array.isArray(s)||"undefined"!=typeof Blob&&s instanceof Blob||!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(f)||Array.isArray(f)||"undefined"!=typeof Blob&&f instanceof Blob)s=f;else for(var g=0,w=Object.entries(f);g<w.length;g++){var v=w[g],S=v[0],E=v[1];r===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(E)||(s[S]=c(s[S],E))}else s=f}return s},getProxyHandler=function(e,t){return void 0===t&&(t={}),t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({delete:"[]",get:"[]",has:"[]",set:"[]"},t),{deleteProperty:function(r,n){return"[]"!==t.delete||"string"!=typeof n?e[t.delete](n):(delete e[n],!0)},get:function(r,n){return"[]"===t.get&&"string"==typeof n?e[n]:e[t.get](n)},has:function(r,n){return"[]"===t.has?n in e:e[t.has](n)},set:function(r,n,i){return"[]"!==t.set||"string"!=typeof n?e[t.set](n,i):(e[n]=i,!0)}}},_mask=function(e,t){if(!0===(t=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({exclude:!1,include:!0},t)).exclude||Array.isArray(t.exclude)&&0===t.exclude.length||!1===t.include||"object"!=typeof e)return{};var r=Array.isArray(t.exclude)?t.exclude.reduce((function(e,t){var r;return _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},e,((r={})[t]=!0,r))}),{}):t.exclude,n=Array.isArray(t.include)?t.include.reduce((function(e,t){var r;return _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},e,((r={})[t]=!0,r))}),{}):t.include,i={};if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(n))for(var o=0,s=Object.entries(n);o<s.length;o++){var a=s[o],l=a[0],c=a[1];Object.prototype.hasOwnProperty.call(e,l)&&(!0===c?i[l]=e[l]:((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(c)||Array.isArray(c)&&c.length)&&"object"==typeof e[l]&&(i[l]=_mask(e[l],{include:c})))}else i=e;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(r)){for(var u=!1,f=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({},i),h=0,d=Object.entries(r);h<d.length;h++){var p=d[h],b=p[0],_=p[1];if(Object.prototype.hasOwnProperty.call(f,b))if(!0===_)u=!0,delete f[b];else if(((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(_)||Array.isArray(_)&&_.length)&&"object"==typeof f[b]){var y=f[b];f[b]=_mask(f[b],{exclude:_}),f[b]!==y&&(u=!0)}}u&&(i=f)}return i},_modifyObject=function(e,t,r,n,i,o,s,a,l){if(void 0===r&&(r="__remove__"),void 0===n&&(n="__prepend__"),void 0===i&&(i="__append__"),void 0===o&&(o="__"),void 0===s&&(s="__"),void 0===a&&(a=null),void 0===l&&(l=null),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var c,u=_createForOfIteratorHelperLoose(t);!(c=u()).done;){var f=c.value,h=f[0],d=f[1];e.has(h)&&_modifyObject(e.get(h),d,r,n,i,o,s,t,h)}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(t)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var p=0,b=Object.entries(t);p<b.length;p++){var _=b[p],y=_[0],m=_[1],g=NaN;if(Array.isArray(e)&&y.startsWith(o)&&y.endsWith(s)&&((g=parseInt(y.substring(o.length,y.length-s.length),10))<0||g>=e.length)&&(g=NaN),[r,n,i].includes(y)||!isNaN(g)){if(Array.isArray(e))if(y===r)for(var w,v=_createForOfIteratorHelperLoose([].concat(m));!(w=v()).done;){var S=w.value;"string"==typeof S&&S.startsWith(o)&&S.endsWith(s)?e.splice(parseInt(S.substring(o.length,S.length-s.length),10),1):e.includes(S)?e.splice(e.indexOf(S),1):"number"==typeof S&&S<e.length&&e.splice(S,1)}else y===i?e=e.concat(m):y===n?e=[].concat(m).concat(e):(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e[g])&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(m)?_extend(!0,_modifyObject(e[g],m,r,n,i,o,s),e[g],m):e[g]=m;else if(y===r)for(var E,x=_createForOfIteratorHelperLoose([].concat(m));!(E=x()).done;){var R=E.value;"string"==typeof R&&Object.prototype.hasOwnProperty.call(e,R)&&delete e[R]}delete t[y],a&&"string"==typeof l&&delete a[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,y)&&(e[y]=_modifyObject(e[y],m,r,n,i,o,s,t,y))}return e},_removeKeyPrefixes=function(e,t){void 0===t&&(t="#");var r=[].concat(t);if(Array.isArray(e))for(var n,i=0,o=_createForOfIteratorHelperLoose(e.slice());!(n=o()).done;){var s=n.value,a=!1;if("string"==typeof s){for(var l,c=_createForOfIteratorHelperLoose(r);!(l=c()).done;){var u=l.value;if(s.startsWith(u+":")){e.splice(i,1),a=!0;break}}if(a)continue}e[i]=_removeKeyPrefixes(s,r),i+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e))for(var f,h=_createForOfIteratorHelperLoose(new Set(e));!(f=h()).done;){var d=f.value,p=!1;if("string"==typeof d){for(var b,_=_createForOfIteratorHelperLoose(r);!(b=_()).done;){var y=b.value;if(d.startsWith(y+":")){e.delete(d),p=!0;break}}if(p)continue}_removeKeyPrefixes(d,r)}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var m,g=_createForOfIteratorHelperLoose(new Map(e));!(m=g()).done;){var w=m.value,v=w[0],S=w[1],E=!1;if("string"==typeof v){for(var x,R=_createForOfIteratorHelperLoose(r);!(x=R()).done;){var A=x.value,O=(0,_string__WEBPACK_IMPORTED_MODULE_4__.escapeRegularExpressions)(A);if(new RegExp("^"+O+"[0-9]*$").test(v)){e.delete(v),E=!0;break}}if(E)continue}e.set(v,_removeKeyPrefixes(S,r))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e))for(var k=0,T=Object.entries(Object.assign({},e));k<T.length;k++){for(var P,M=T[k],L=M[0],C=M[1],I=!1,D=_createForOfIteratorHelperLoose(r);!(P=D()).done;){var N=P.value,j=(0,_string__WEBPACK_IMPORTED_MODULE_4__.escapeRegularExpressions)(N);if(new RegExp("^"+j+"[0-9]*$").test(L)){delete e[L],I=!0;break}}I||(e[L]=_removeKeyPrefixes(C,r))}return e},_represent=function(e,t,r,n,i,o){if(void 0===t&&(t=30),void 0===r&&(r=" "),void 0===n&&(n=""),void 0===i&&(i="__maximum_number_of_levels_reached__"),void 0===o&&(o=8),0===o)return String(i);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+n)+'"';if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isNumeric)(e)||"boolean"==typeof e)return String(e);if(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var s,a="[",l=!1,c=1,u=_createForOfIteratorHelperLoose(e);!(s=u()).done;){var f=s.value;if(c>t){a+="\n"+n+"...";break}l&&(a+=","),a+="\n"+n+r+_represent(f,t,r,""+n+r,i,o-1),l=!0,c+=1}return l&&(a+="\n"+n),a+"]"}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)){for(var h,d="",p=!1,b=1,_=_createForOfIteratorHelperLoose(e);!(h=_()).done;){var y=h.value,m=y[0],g=y[1];if(b>t){d+=",\n"+n+"...";break}p&&(d+=",\n"+n+r),d+=_represent(m,t,r,""+n+r,i,o-1)+" -> "+_represent(g,t,r,""+n+r,i,o-1),p=!0,b+=1}return p||(d="EmptyMap"),d}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var w,v="{",S=!1,E=1,x=_createForOfIteratorHelperLoose(e);!(w=x()).done;){var R=w.value;if(E>t){v+=",\n"+n+"...";break}S&&(v+=","),v+="\n"+n+r+_represent(R,t,r,""+n+r,i,o-1),S=!0,E+=1}return S?v+="\n"+n+"}":v="EmptySet",v}if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e))return"__function__";for(var A,O="{",k=!1,T=1,P=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(A=P()).done;){var M=A.value;if(T>t){O+=",\n"+n+"...";break}k&&(O+=","),O+="\n"+n+r+M+": "+_represent(e[M],t,r,""+n+r,i,o-1),k=!0,T+=1}return k&&(O+="\n"+n),O+"}"},sort=function(e){var t=[];if(Array.isArray(e))for(var r=0;r<e.length;r++)t.push(r);else if("object"==typeof e)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var n,i=_createForOfIteratorHelperLoose(e);!(n=i()).done;){var o=n.value;t.push(o[0])}else if(null!==e)for(var s=0,a=Object.keys(e);s<a.length;s++){var l=a[s];t.push(l)}return t.sort()},_unwrapProxy=function(e,t){if(void 0===t&&(t=new Set),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(e)){if(t.has(e))return e;try{(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isFunction)(e.__revoke__)&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isProxy)(e)&&(e=e.__target__),e.__revoke__())}catch(t){return e}finally{t.add(e)}if(Array.isArray(e))for(var r,n=0,i=_createForOfIteratorHelperLoose(e);!(r=i()).done;){var o=r.value;e[n]=_unwrapProxy(o,t),n+=1}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e))for(var s,a=_createForOfIteratorHelperLoose(e);!(s=a()).done;){var l=s.value,c=l[0],u=l[1];e.set(c,_unwrapProxy(u,t))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isSet)(e)){for(var f,h=[],d=_createForOfIteratorHelperLoose(e);!(f=d()).done;){var p=f.value;e.delete(p),h.push(_unwrapProxy(p,t))}for(var b=0,_=h;b<_.length;b++){var y=_[b];e.add(y)}}else for(var m=0,g=Object.entries(e);m<g.length;m++){var w=g[m],v=w[0],S=w[1];e[v]=_unwrapProxy(S,t)}}return e}},function(e,t,r){r.r(t),r.d(t,{isAnyMatching:function(){return c},isArrayLike:function(){return l},isFunction:function(){return b},isMap:function(){return d},isNumeric:function(){return s},isObject:function(){return u},isPlainObject:function(){return f},isProxy:function(){return p},isSet:function(){return h},isWindow:function(){return a}});var n=r(0),i=r(2);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e){var t=(0,i.determineType)(e);return["number","string"].includes(t)&&!isNaN(e-parseFloat(e))},a=function(e){return![null,void 0].includes(e)&&"object"==typeof e&&e===(null==e?void 0:e.window)},l=function(e){var t;try{t=Boolean(e)&&e.length}catch(e){return!1}var r=(0,i.determineType)(e);if("function"===r||a(e))return!1;if("array"===r||0===t)return!0;if("number"==typeof t&&t>0)try{return e[t-1],!0}catch(e){}return!1},c=function(e,t){for(var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=n()).done;){var i=r.value;if("string"==typeof i){if(i===e)return!0}else if(i.test(e))return!0}return!1},u=function(e){return null!==e&&"object"==typeof e},f=function(e){return u(e)&&n.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},h=function(e){return"set"===(0,i.determineType)(e)},d=function(e){return"map"===(0,i.determineType)(e)},p=function(e){return Boolean(e.__target__)},b=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(module,__nested_webpack_exports__,__nested_webpack_require_35314__){__nested_webpack_require_35314__.r(__nested_webpack_exports__),__nested_webpack_require_35314__.d(__nested_webpack_exports__,{clearRequireCache:function(){return clearRequireCache},currentImport:function(){return currentImport},currentRequire:function(){return currentRequire},isolatedRequire:function(){return isolatedRequire},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}},clearRequireCache=function(e){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__nested_webpack_require_35314__.c);for(var t={},r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s,delete e[o]}return t},restoreRequireCache=function(e,t){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__nested_webpack_require_35314__.c),clearRequireCache();for(var r=0,n=Object.entries(t);r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}},isolatedRequire=function(e,t){void 0===t&&(t=currentRequire||__nested_webpack_require_35314__(6));var r=clearRequireCache(t.cache);try{return t(e)}catch(e){throw e}finally{restoreRequireCache(t.cache,r)}}},function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=6,e.exports=t},function(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_36873__){__nested_webpack_require_36873__.r(__nested_webpack_exports__),__nested_webpack_require_36873__.d(__nested_webpack_exports__,{ALLOWED_STARTING_VARIABLE_SYMBOLS:function(){return ALLOWED_STARTING_VARIABLE_SYMBOLS},ALLOWED_VARIABLE_SYMBOLS:function(){return ALLOWED_VARIABLE_SYMBOLS},FIX_ENCODING_ERROR_MAPPING:function(){return FIX_ENCODING_ERROR_MAPPING},POLYFILL_TEMPLATES:function(){return POLYFILL_TEMPLATES},addSeparatorToPath:function(){return addSeparatorToPath},camelCaseToDelimited:function(){return camelCaseToDelimited},capitalize:function(){return capitalize},compile:function(){return compile},compressStyleValue:function(){return compressStyleValue},convertToValidVariableName:function(){return convertToValidVariableName},decodeHTMLEntities:function(){return decodeHTMLEntities},delimitedToCamelCase:function(){return delimitedToCamelCase},encodeURIComponentExtended:function(){return encodeURIComponentExtended},escapeRegularExpressions:function(){return escapeRegularExpressions},evaluate:function(){return evaluate},findNormalizedMatchRange:function(){return findNormalizedMatchRange},fixKnownEncodingErrors:function(){return fixKnownEncodingErrors},format:function(){return format},getDomainName:function(){return getDomainName},getEditDistance:function(){return getEditDistance},getPortNumber:function(){return getPortNumber},getProtocolName:function(){return getProtocolName},getURLParameter:function(){return getURLParameter},hasPathPrefix:function(){return hasPathPrefix},limit:function(){return limit},lowerCase:function(){return lowerCase},mark:function(){return mark},maskForRegularExpression:function(){return maskForRegularExpression},normalizeDomNodeSelector:function(){return normalizeDomNodeSelector},normalizePhoneNumber:function(){return normalizePhoneNumber},normalizeURL:function(){return normalizeURL},normalizeZipCode:function(){return normalizeZipCode},parseEncodedObject:function(){return parseEncodedObject},representPhoneNumber:function(){return representPhoneNumber},representURL:function(){return representURL},serviceURLEquals:function(){return serviceURLEquals},sliceAllExceptNumberAndLastSeparator:function(){return sliceAllExceptNumberAndLastSeparator}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_36873__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__nested_webpack_require_36873__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__nested_webpack_require_36873__(13),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__nested_webpack_require_36873__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_constants__WEBPACK_IMPORTED_MODULE_2__=__nested_webpack_require_36873__(0),_context__WEBPACK_IMPORTED_MODULE_3__=__nested_webpack_require_36873__(1),_filesystem__WEBPACK_IMPORTED_MODULE_5__=__nested_webpack_require_36873__(14),_object__WEBPACK_IMPORTED_MODULE_4__=__nested_webpack_require_36873__(2);function _createForOfIteratorHelperLoose(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var POLYFILL_TEMPLATES={value:!1},ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$",ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$",FIX_ENCODING_ERROR_MAPPING=[["Ã\\x84","Ä"],["Ã\\x96","Ö"],["Ã\\x9c","Ü"],["ä","ä"],["ö","ö"],["ü","ü"],["\\x96","-"],["é","é"],["è","e"],["ô","o"],["à ","á"],["ø","ø"],["Ã\\x9f","ß"],["Ã","ß"]],escapeRegularExpressions=function(e,t){if(void 0===t&&(t=[]),1===e.length&&!_constants__WEBPACK_IMPORTED_MODULE_2__.SPECIAL_REGEX_SEQUENCES.includes(e))return e;t.includes("\\")||e.replace(/\\/g,"\\\\");for(var r,n=_createForOfIteratorHelperLoose(_constants__WEBPACK_IMPORTED_MODULE_2__.SPECIAL_REGEX_SEQUENCES);!(r=n()).done;){var i=r.value;t.includes(i)||(e=e.replace(new RegExp("\\"+i,"g"),"\\"+i))}return e},convertToValidVariableName=function(e){return["class","default"].includes(e)?"_"+e:e.replace(new RegExp("^[^"+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]+"),"").replace(new RegExp("[^"+ALLOWED_VARIABLE_SYMBOLS+"]+([a-zA-Z])","g"),(function(e,t){return t.toUpperCase()}))},encodeURIComponentExtended=function(e,t){return void 0===t&&(t=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")},addSeparatorToPath=function(e,t){return void 0===t&&(t="/"),(e=e.trim()).substring(e.length-1)!==t&&e.length?e+t:e},hasPathPrefix=function(e,t,r){var n;return void 0===e&&(e="/admin"),void 0===t&&(t=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:n.pathname)||""),void 0===r&&(r="/"),"string"==typeof e&&(e.endsWith(r)||(e+=r),t===e.substring(0,e.length-r.length)||t.startsWith(e))},getDomainName=function(e,t){var r,n;void 0===e&&(e=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:r.href)||""),void 0===t&&(t=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:n.hostname)||"");var i=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return i&&i.length>2&&i[1]&&i[2]?i[2]:t},getPortNumber=function(e,t){var r,n,i;void 0===e&&(e=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:n.href)||""),void 0===t&&(t=null!=(i=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)&&i.port?parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location.port):null);var o=/^(?:[a-z]*:?\/\/[^/]+?)?[^/]+?:([0-9]+)/i.exec(e);return o&&o.length>1?parseInt(o[1],10):null!==t?t:null!=(r=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)&&r.port&&parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location.port,10)?parseInt(_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location.port,10):"https"===getProtocolName(e)?443:80},getProtocolName=function(e,t){var r,n;void 0===e&&(e=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:r.href)||""),void 0===t&&(t=(null==(n=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:n.protocol)&&_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location.protocol.substring(0,_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location.protocol.length-1)||"");var i=/^([a-z]+):\/\//i.exec(e);return i&&i.length>1&&i[1]?i[1]:t},getURLParameter=function(e,t,r,n,i,o,s){var a,l,c;void 0===e&&(e=null),void 0===t&&(t=!1),void 0===r&&(r=null),void 0===n&&(n="$"),void 0===i&&(i="!"),void 0===o&&(o=null),void 0===s&&(s=null!==(l=null==(c=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:c.hash)&&void 0!==l?l:"");var u=null!==(a=s)&&void 0!==a?a:"#",f="";if(o)f=o;else if(i&&u.startsWith(i)){var h,d=u.indexOf("#");-1===d?(h=u.substring(i.length),u=""):(h=u.substring(i.length,d),u=u.substring(d));var p=h.indexOf("?");-1!==p&&(f=h.substring(p))}else _context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location&&(f=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location.search||"");var b=r||f,_="&"===b;if(_||"#"===b){var y="";try{y=decodeURIComponent(u)}catch(e){}var m=y.indexOf(n);-1===m?b="":(b=y.substring(m)).startsWith(n)&&(b=b.substring(n.length))}else b.startsWith("?")&&(b=b.substring(1));var g=b?b.split("&"):[];f=f.substring(1),_&&f&&(g=g.concat(f.split("&")));for(var w,v=[],S=_createForOfIteratorHelperLoose(g);!(w=S()).done;){var E=w.value,x=E.split("="),R=void 0;try{R=decodeURIComponent(x[0])}catch(e){R=""}try{E=decodeURIComponent(x[1])}catch(e){E=""}v.push(R),t?Object.prototype.hasOwnProperty.call(v,R)&&Array.isArray(v[R])?v[R].push(E):v[R]=[E]:v[R]=E}return e?Object.prototype.hasOwnProperty.call(v,e)?v[e]:null:v},serviceURLEquals=function(e,t){var r;void 0===t&&(t=(null==(r=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.location)?void 0:r.href)||"");var n=getDomainName(e,""),i=getProtocolName(e,""),o=getPortNumber(e);return!(""!==n&&n!==getDomainName(t)||""!==i&&i!==getProtocolName(t)||null!==o&&o!==getPortNumber(t))},normalizeURL=function(e){if("string"==typeof e){var t=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim();return t.startsWith("http")?t:"http://"+t}return""},representURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},camelCaseToDelimited=function(e,t,r){void 0===t&&(t="-"),void 0===r&&(r=null),r||(r=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);var n=maskForRegularExpression(t);if(r.length){for(var i,o="",s=_createForOfIteratorHelperLoose(r);!(i=s()).done;)o&&(o+="|"),o+=i.value.toUpperCase();e=e.replace(new RegExp("("+o+")("+o+")","g"),"$1"+t+"$2")}return(e=e.replace(new RegExp("([^"+n+"])([A-Z][a-z]+)","g"),"$1"+t+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+t+"$2").toLowerCase()},capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},compressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},decodeHTMLEntities=function(e){if(_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.document){var t=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.document.createElement("textarea");return t.innerHTML=e,t.value}return null},delimitedToCamelCase=function(e,t,r,n,i){void 0===t&&(t="-"),void 0===r&&(r=null),void 0===n&&(n=!1),void 0===i&&(i=!1);var o,s=maskForRegularExpression(t);if(r||(r=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS),n)o=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.join("|");else{o="";for(var a,l=_createForOfIteratorHelperLoose(r);!(a=l()).done;){var c=a.value;o&&(o+="|"),o+=capitalize(c)+"|"+c}}var u=e.startsWith(t);return u&&(e=e.substring(t.length)),e=e.replace(new RegExp("("+s+")("+o+")("+s+"|$)","g"),(function(e,t,r,n){return t+r.toUpperCase()+n})),i&&(s="(?:"+s+")+"),e=e.replace(new RegExp(s+"([a-zA-Z0-9])","g"),(function(e,t){return t.toUpperCase()})),u&&(e=t+e),e},compile=function(e,t,r,n,i){var o;void 0===t&&(t=[]),void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===i&&(i={});for(var s,a,l=Object.keys(globalThis).concat("globalThis").filter((function(e){return new RegExp("^["+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]["+ALLOWED_VARIABLE_SYMBOLS+"]*$").test(e)})),c={error:null,globalNames:l,globalNamesUndefinedList:l.map((function(){})),originalScopeNames:Array.isArray(t)?t:"string"==typeof t?[t]:Object.keys(t),scopeNameMapping:{},scopeNames:[],templateFunction:function(){}},u=_createForOfIteratorHelperLoose(c.originalScopeNames);!(s=u()).done;){var f=s.value,h=convertToValidVariableName(f);c.scopeNameMapping[f]=h,c.scopeNames.push(h)}if(POLYFILL_TEMPLATES.value)if(null!=(o=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.Babel)&&o.transform)e=_context__WEBPACK_IMPORTED_MODULE_3__.globalContext.Babel.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var d="####",p="`"===(e=e.replace(/\\\$/g,d).replace(/^`\$\{([\s\S]+)}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,p+"+($1)+"+p).replace(/^`([\s\S]+)`$/,p+"$1"+p).replace(/\n+/g,"").replace(new RegExp(d,"g"),"\\$")}try{a=_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default()(Function,(n?c.globalNames:[]).concat(c.scopeNames,[(r?"":"return ")+e]))}catch(t){c.error='Given expression "'+e+'" could not be compiled width given scope names "'+c.scopeNames.join('", "')+'": '+(0,_object__WEBPACK_IMPORTED_MODULE_4__.represent)(t)}if(a){var b=a.bind(i);c.templateFunction=n?function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.apply(void 0,c.globalNamesUndefinedList.concat(t))}:b}return c},evaluate=function(e,t,r,n,i){void 0===t&&(t={}),void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===i&&(i={});var o=compile(e,t,r,n,i),s=o.error,a=o.originalScopeNames,l=o.scopeNames,c=o.templateFunction,u={compileError:null,runtimeError:null,error:"Not yet evaluated.",result:void 0};if(s)return u.compileError=u.error=s,u;try{u={compileError:null,runtimeError:null,error:null,result:c.apply(void 0,a.map((function(e){return t[e]})))}}catch(s){u.error=u.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+l.join('", "')+'": '+(0,_object__WEBPACK_IMPORTED_MODULE_4__.represent)(s)}return u},findNormalizedMatchRange=function(e,t,r,n){void 0===r&&(r=function(e){return String(e).toLowerCase()}),void 0===n&&(n=["<",">"]);var i=r(t),o=r(e),s="string"==typeof e?e:o;if(o&&i)for(var a=!1,l=0;l<s.length;l+=1)if(a)Array.isArray(n)&&s.charAt(l)===n[1]&&(a=!1);else if(Array.isArray(n)&&s.charAt(l)===n[0])a=!0;else if(r(s.substring(l)).startsWith(i)){if(1===i.length)return[l,l+1];for(var c=s.length;c>l;c-=1)if(!r(s.substring(l,c)).startsWith(i))return[l,c+1]}return null},fixKnownEncodingErrors=function(e){for(var t=0,r=FIX_ENCODING_ERROR_MAPPING;t<r.length;t++){var n=r[t],i=n[0],o=n[1];e=e.replace(new RegExp(i,"g"),o)}return e},format=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r.unshift(e);for(var i=0,o=0,s=r;o<s.length;o++){var a=s[o];e=e.replace(new RegExp("\\{"+String(i)+"\\}","gm"),String(a)),i+=1}return e},getEditDistance=function(e,t){for(var r=Array(t.length+1).fill(null).map((function(){return Array(e.length+1).fill(null)})),n=0;n<=e.length;n++)r[0][n]=n;for(var i=0;i<=t.length;i++)r[i][0]=i;for(var o=1;o<=t.length;o++)for(var s=1;s<=e.length;s++){var a=e[s-1]===t[o-1]?0:1;r[o][s]=Math.min(r[o][s-1]+1,r[o-1][s]+1,r[o-1][s-1]+a)}return r[t.length][e.length]},maskForRegularExpression=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},lowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},mark=function(e,t,r){if(void 0===r&&(r={}),"string"==typeof e&&null!=t&&t.length){var n=_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:["<",">"]},r);e=e.trim();for(var i,o=[],s=[].concat(t),a=0,l=_createForOfIteratorHelperLoose(s);!(i=l()).done;){var c=i.value;s[a]=n.normalizer(c).trim(),a+=1}for(var u=e,f=0,h=0;h<_context__WEBPACK_IMPORTED_MODULE_3__.MAXIMAL_NUMBER_OF_ITERATIONS.value;h++){for(var d,p=null,b=void 0,_=_createForOfIteratorHelperLoose(s);!(d=_()).done;){var y=d.value;(b=findNormalizedMatchRange(u,y,n.normalizer,n.skipTagDelimitedParts))&&(!p||b[0]<p[0])&&(p=b)}if(!p){u.length&&o.push(u);break}p[0]>0&&o.push(e.substring(f,f+p[0])),o.push("string"==typeof n.marker?format(n.marker,e.substring(f+p[0],f+p[1])):n.marker(e.substring(f+p[0],f+p[1]),o)),f+=p[1],u=e.substring(f)}return"string"==typeof n.marker?o.join(""):o}return e},normalizePhoneNumber=function(e,t){if(void 0===t&&(t=!0),"string"==typeof e||"number"==typeof e){var r=String(e).trim();if(r=(r=r.replace(/^[^0-9]*\+/,"00")).replace(/([0-9].*?) *(,|o[rd]?)\.? ?-?[0-9]+$/,"$1"),t)return r.replace(/[^0-9]+/g,"");var n="(?:[ /\\-]+)";r=(r=r.replace(new RegExp("^(.+?)"+n+"?\\(0\\)"+n+"?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)"+n+"?\\((.+)\\)"+n+"?(.+)$"),"$1-$2-$3");var i=new RegExp("^(00[0-9]+)"+n+"([0-9]+)"+n+"(.+)$");if(i.test(r))r=r.replace(i,(function(e,t,r,n){return t+"-"+r+"-"+sliceAllExceptNumberAndLastSeparator(n)}));else{var o=function(e,t,r){return t.replace(/ +/,"")+"-"+sliceAllExceptNumberAndLastSeparator(r)};r=(i=/^([0-9 ]+)[/-](.+)$/).test(r)?r.replace(i,o):r.replace(new RegExp("^([0-9]+)"+n+"(.+)$"),o)}return r.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""},normalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?String(e).trim().replace(/^([^0-9]*[a-zA-Z]-)?(.+)$/,(function(e,t,r){var n;return t&&(t=t.substring(t.length-2).charAt(0).toUpperCase()+"-"),(null!==(n=t)&&void 0!==n?n:"")+(null!=r?r:"").trim().replace(/[^0-9]+/g,"")})):""},parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _evaluate;if(void 0===scope&&(scope={}),void 0===name&&(name="scope"),!_filesystem__WEBPACK_IMPORTED_MODULE_5__.readFileSync)throw new Error("File system api could not be loaded.");serializedObject.endsWith(".json")&&(0,_filesystem__WEBPACK_IMPORTED_MODULE_5__.isFileSync)(serializedObject)&&(serializedObject=(0,_filesystem__WEBPACK_IMPORTED_MODULE_5__.readFileSync)(serializedObject,{encoding:_constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ENCODING})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString(_constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ENCODING));var result=evaluate(serializedObject,(_evaluate={},_evaluate[name]=scope,_evaluate));return"object"==typeof result.result?result.result:null},representPhoneNumber=function(e){if(["number","string"].includes((0,_object__WEBPACK_IMPORTED_MODULE_4__.determineType)(e))&&e){var t=String(e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(t=(t=t.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,(function(e,t,r,n){return t+(r.length%2==0?r.replace(/([0-9]{2})/g,"$1 "):r.replace(/^([0-9]{3})([0-9]+)$/,(function(e,t,r){return t+" "+r.replace(/([0-9]{2})/g,"$1 ").trim()}))+n).trim()})).trim()}return""},sliceAllExceptNumberAndLastSeparator=function(e){var t=/^(.*[0-9].*)-([0-9]+)$/;return t.test(e)?e.replace(t,(function(e,t,r){return t.replace(/[^0-9]+/g,"")+"-"+r})):e.replace(/[^0-9]+/g,"")},normalizeDomNodeSelector=function(e,t){void 0===t&&(t="");var r="";return t&&(r=t+" "),e.startsWith(r)||e.trim().startsWith("<")||(e=r+e),e.trim()},limit=function(e,t){return void 0===t&&(t=100),e.length<=t?e:e.substring(0,t-3)+"..."}},function(e,t,r){r.r(t),r.d(t,{ceil:function(){return a},floor:function(){return l},getUTCTimestamp:function(){return i},isNotANumber:function(){return o},round:function(){return s}});var n=r(2),i=function(e,t){void 0===t&&(t=!1);var r=[null,void 0].includes(e)?new Date:new Date(e);return Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())/(t?1:1e3)},o=function(e){return"number"===(0,n.determineType)(e)&&isNaN(e)},s=function(e,t){return void 0===t&&(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},a=function(e,t){return void 0===t&&(t=0),Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)},l=function(e,t){return void 0===t&&(t=0),Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,r){r.d(t,{Lock:function(){return a}});var n=r(11),i=r.n(n),o=r(12),s=r.n(o),a=function(){function e(e){void 0===e&&(e={}),this.locks=void 0,this.locks=e}var t=e.prototype;return t.acquire=function(e,t,r){var n=this;return void 0===r&&(r=!1),new Promise((function(i){var o=function(e){var o,s;t&&(s=t(e));var a=function(t){return r&&n.release(e),i(t),t};return null!=(o=s)&&o.then?s.then(a):(a(s),s)};Object.prototype.hasOwnProperty.call(n.locks,e)?n.locks[e].push(o):(n.locks[e]=[],o(e))}))},t.release=function(){var e=i()(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object.prototype.hasOwnProperty.call(this.locks,t)){e.next=3;break}if(void 0!==(r=this.locks[t].shift())){e.next=1;break}delete this.locks[t],e.next=3;break;case 1:return e.next=2,r(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}()},function(e,t,r){r.d(t,{Semaphore:function(){return n}});var n=function(){function e(e){void 0===e&&(e=2),this.queue=[],this.numberOfResources=void 0,this.numberOfFreeResources=void 0,this.numberOfResources=e,this.numberOfFreeResources=e}var t=e.prototype;return t.acquire=function(){var e=this;return new Promise((function(t){e.numberOfFreeResources<=0?e.queue.push(t):(e.numberOfFreeResources-=1,t(e.numberOfFreeResources))}))},t.release=function(){var e=this.queue.shift();void 0===e?this.numberOfFreeResources+=1:e(this.numberOfFreeResources)},e}()},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},function(e,t,r){r.r(t),r.d(t,{copyDirectoryRecursive:function(){return z},copyDirectoryRecursiveSync:function(){return G},copyFile:function(){return H},copyFileSync:function(){return V},isDirectory:function(){return q},isDirectorySync:function(){return K},isFile:function(){return Y},isFileSync:function(){return Z},mkdirSync:function(){return _},readFileSync:function(){return w},readdirSync:function(){return m},statSync:function(){return S},walkDirectoryRecursively:function(){return Q},walkDirectoryRecursivelySync:function(){return X},writeFileSync:function(){return x}});var n=r(4),i=r.n(n),o=r(11),s=r.n(o),a=r(12),l=r.n(a),c=r(0),u=r(1),f=r(5);function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var p=(0,f.optionalRequire)("fs")||{},b=p.mkdirSync,_=void 0===b?null:b,y=p.readdirSync,m=void 0===y?null:y,g=p.readFileSync,w=void 0===g?null:g,v=p.statSync,S=void 0===v?null:v,E=p.writeFileSync,x=void 0===E?null:E,R=(0,f.optionalRequire)("fs/promises")||{},A=R.mkdir,O=void 0===A?null:A,k=R.readdir,T=void 0===k?null:k,P=R.readFile,M=void 0===P?null:P,L=R.stat,C=void 0===L?null:L,I=R.writeFile,D=void 0===I?null:I,N=(0,f.optionalRequire)("path")||{},j=N.basename,F=void 0===j?null:j,W=N.join,B=void 0===W?null:W,U=N.resolve,$=void 0===U?null:U,z=function(){var e=s()(l().mark((function e(t,r,n,i,o){var s,a,f,d,p,b,_,y;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n=u.NOOP),void 0===i&&(i={encoding:null,flag:"r"}),void 0===o&&(o={encoding:c.DEFAULT_ENCODING,flag:"w",mode:438}),F&&B&&O&&$){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return t=$(t),e.next=2,q(r);case 2:if(!e.sent){e.next=3;break}r=$(r,F(t));case 3:return e.prev=3,e.next=4,O(r);case 4:e.next=6;break;case 5:if(e.prev=5,"EEXIST"===(b=e.catch(3)).code){e.next=6;break}throw b;case 6:return _=h,e.next=7,Q(t,n);case 7:s=_(e.sent);case 8:if((a=s()).done){e.next=15;break}if(d=a.value,p=B(r,d.path.substring(t.length)),null==(f=d.stats)||!f.isDirectory()){e.next=13;break}return e.prev=9,e.next=10,O(p);case 10:e.next=12;break;case 11:if(e.prev=11,"EEXIST"===(y=e.catch(9)).code){e.next=12;break}throw y;case 12:e.next=14;break;case 13:return e.next=14,H(d.path,p,i,o);case 14:e.next=8;break;case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}}),e,null,[[3,5],[9,11]])})));return function(t,r,n,i,o){return e.apply(this,arguments)}}(),G=function(e,t,r,n,i){if(void 0===r&&(r=u.NOOP),void 0===n&&(n={encoding:null,flag:"r"}),void 0===i&&(i={encoding:c.DEFAULT_ENCODING,flag:"w",mode:438}),!(F&&B&&_&&$))throw new Error("Could not load filesystem functions.");e=$(e),K(t)&&(t=$(t,F(e)));try{_(t)}catch(e){if("EEXIST"!==e.code)throw e}for(var o=0,s=X(e,r);o<s.length;o++){var a,l=s[o],f=B(t,l.path.substring(e.length));if(null!=(a=l.stats)&&a.isDirectory())try{_(f)}catch(e){if("EEXIST"!==e.code)throw e}else V(l.path,f,n,i)}return t},H=function(){var e=s()(l().mark((function e(t,r,n,i){var o,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={encoding:null,flag:"r"}),void 0===i&&(i={encoding:c.DEFAULT_ENCODING,flag:"w",mode:438}),F&&M&&$&&D){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.next=2,q(r);case 2:if(!e.sent){e.next=3;break}r=$(r,F(t));case 3:return o=D,s=r,e.next=4,M(t,n);case 4:return e.next=5,o(s,e.sent,i);case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),V=function(e,t,r,n){if(void 0===r&&(r={encoding:null,flag:"r"}),void 0===n&&(n={encoding:c.DEFAULT_ENCODING,flag:"w",mode:438}),!(F&&w&&$&&x))throw new Error("Could not load filesystem functions.");return K(t)&&(t=$(t,F(e))),x(t,w(e,r),n),t},q=function(){var e=s()(l().mark((function e(t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.prev=1,e.next=2,C(t);case 2:return e.abrupt("return",e.sent.isDirectory());case 3:if(e.prev=3,r=e.catch(1),!Object.prototype.hasOwnProperty.call(r,"code")||!["ENOENT","ENOTDIR"].includes(r.code)){e.next=4;break}return e.abrupt("return",!1);case 4:throw r;case 5:case"end":return e.stop()}}),e,null,[[1,3]])})));return function(t){return e.apply(this,arguments)}}(),K=function(e){if(!S)throw new Error("Could not load filesystem functions.");try{return S(e).isDirectory()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},Y=function(){var e=s()(l().mark((function e(t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return e.prev=1,e.next=2,C(t);case 2:return e.abrupt("return",e.sent.isFile());case 3:if(e.prev=3,r=e.catch(1),!Object.prototype.hasOwnProperty.call(r,"code")||!["ENOENT","ENOTDIR"].includes(r.code)){e.next=4;break}return e.abrupt("return",!1);case 4:throw r;case 5:case"end":return e.stop()}}),e,null,[[1,3]])})));return function(t){return e.apply(this,arguments)}}(),Z=function(e){if(!S)throw new Error("Could not load filesystem functions.");try{return S(e).isFile()}catch(e){if(Object.prototype.hasOwnProperty.call(e,"code")&&["ENOENT","ENOTDIR"].includes(e.code))return!1;throw e}},Q=function(){var e=s()(l().mark((function e(t,r,n){var o,s,a,u,f,d,p,b,_,y,m,g,w,v,S;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r=null),void 0===n&&(n=c.DEFAULT_ENCODING),T&&$&&C){e.next=1;break}throw new Error("Could not load filesystem functions.");case 1:return o=[],w=h,e.next=2,T(t,"string"==typeof n?{encoding:n,withFileTypes:!0}:i()({},n,{withFileTypes:!0}));case 2:s=w(e.sent);case 3:if((a=s()).done){e.next=9;break}return u=a.value,f=$(t,u.name),d={directoryPath:t,directoryEntry:u,error:null,name:u.name,path:f,stats:null},e.prev=4,e.next=5,C(f);case 5:d.stats=e.sent,e.next=7;break;case 6:e.prev=6,v=e.catch(4),d.error=v;case 7:o.push(d);case 8:e.next=3;break;case 9:r&&o.sort((function(e,t){var r,n,i;return null!=(r=e.stats)&&r.isDirectory()?null!=(i=t.stats)&&i.isDirectory()?0:-1:null!=(n=t.stats)&&n.isDirectory()?1:0})),p=[],b=0,_=o;case 10:if(!(b<_.length)){e.next=17;break}if(m=_[b],p.push(m),null!==(g=r?r(m):void 0)){e.next=11;break}return e.abrupt("continue",17);case 11:if("object"!=typeof g||!("then"in g)){e.next=13;break}return e.next=12,g;case 12:g=e.sent;case 13:if(null!==g){e.next=14;break}return e.abrupt("continue",17);case 14:if(!1===g||null==(y=m.stats)||!y.isDirectory()){e.next=16;break}return S=p,e.next=15,Q(m.path,r,n);case 15:p=S.concat.call(S,e.sent);case 16:b++,e.next=10;break;case 17:return e.abrupt("return",p);case 18:case"end":return e.stop()}}),e,null,[[4,6]])})));return function(t,r,n){return e.apply(this,arguments)}}(),X=function(e,t,r){if(void 0===t&&(t=u.NOOP),void 0===r&&(r=c.DEFAULT_ENCODING),!(m&&$&&S))throw new Error("Could not load filesystem functions.");for(var n,o=[],s=h(m(e,"string"==typeof r?{encoding:r,withFileTypes:!0}:i()({},r,{withFileTypes:!0})));!(n=s()).done;){var a=n.value,l=$(e,a.name),f={directoryPath:e,directoryEntry:a,error:null,name:a.name,path:l,stats:null};try{f.stats=S(l)}catch(e){f.error=e}o.push(f)}var d=[];if(t){o.sort((function(e,t){var r,n,i;return null!=(r=e.stats)&&r.isDirectory()?null!=(i=t.stats)&&i.isDirectory()?0:-1:null!=(n=t.stats)&&n.isDirectory()?1:0}));for(var p,b=h(o);!(p=b()).done;){var _,y=p.value;d.push(y);var g=t(y);if(null===g)break;!1!==g&&null!=(_=y.stats)&&_.isDirectory()&&(d=d.concat(X(y.path,t,r)))}}return d}},function(e,t,r){r.r(t),r.d(t,{debounce:function(){return o},preventDefault:function(){return a},stopPropagation:function(){return l},timeout:function(){return s}});var n=r(1),i=r(3),o=function(e,t){void 0===t&&(t=600);for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var o,a,l=new Promise((function(e){a=e}));return function(){for(var r,i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];return c=c.concat(n),null==(r=o)||r.clear(),o=s((function(){a(e.apply(void 0,c)),l=new Promise((function(e){a=e}))}),t),l}},s=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var o,s,a=n.NOOP,l=0,c=!1,u=0,f=t;u<f.length;u++){var h=f[u];"number"!=typeof h||isNaN(h)?"boolean"==typeof h?c=h:(0,i.isFunction)(h)&&(a=h):l=h}var d=new Promise((function(e,t){o=t,s=e})),p=function(){var e;(e=a).call.apply(e,[d].concat(t)),s(!1)},b=2147483647;if(l<=b)d.timeoutID=setTimeout(p,l);else{var _=Math.floor(l/b),y=l%b,m=function(){_>0?(_-=1,d.timeoutID=setTimeout(m,b)):d.timeoutID=setTimeout(p,y)};m()}return d.clear=function(){Object.prototype.hasOwnProperty.call(d,"timeoutID")&&(clearTimeout(d.timeoutID),(c?o:s)(!0))},d},a=function(e){e.preventDefault()},l=function(e){e.stopPropagation()}},function(e,t,r){r.d(t,{isAndExpression:function(){return l},isArrayContainsExpression:function(){return y},isConcatExpression:function(){return u},isCondition:function(){return a},isIfExpression:function(){return p},isMappingExpression:function(){return f},isOperation:function(){return h},isOrExpression:function(){return c},isSelector:function(){return _},isSpecificExpression:function(){return s},isSwitchExpression:function(){return b},isUnaryOperation:function(){return d},isValue:function(){return m}});var n=r(3);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e,t,r){if(void 0===r&&(r=[]),!(0,n.isPlainObject)(e)||!Object.prototype.hasOwnProperty.call(e,t))return!1;for(var o,s=i(r);!(o=s()).done;){var a=o.value;if(!Object.prototype.hasOwnProperty.call(e,a))return!1}return!0},a=function(e){return s(e,"$comparator",["value1","value2"])},l=function(e){return s(e,"$and")},c=function(e){return s(e,"$or")},u=function(e){return s(e,"$concat")},f=function(e){return s(e,"$mapping",["data"])},h=function(e){return s(e,"$operator",["operand1","operand2"])},d=function(e){return s(e,"$operator",["operand"])},p=function(e){return s(e,"$if")},b=function(e){return s(e,"$switch")},_=function(e){return s(e,"$select")},y=function(e){return s(e,"$arrayContains")},m=function(e){return!(_(e)||a(e)||d(e)||h(e)||l(e)||c(e)||u(e)||f(e)||p(e)||b(e)||y(e))}},function(e,t,r){r.d(t,{CLI_COLOR:function(){return n}});var n={black:"[30m",blink:"[5m",blue:"[0;34m",bold:"[1m",cyan:"[36m",darkGray:"[0;90m",default:"[0m",dim:"[2m",green:"[32m",invert:"[7m",invisible:"[8m",lightBlue:"[0;94m",lightCyan:"[0;96m",lightGray:"[0;37m",lightGreen:"[0;92m",lightMagenta:"[0;95m",lightRed:"[0;91m",lightYellow:"[0;93m",magenta:"[35m",nodim:"[22m",noblink:"[25m",nobold:"[21m",noinvert:"[27m",noinvisible:"[28m",nounderline:"[24m",red:"[31m",underline:"[4m",white:"[37m",yellow:"[33m"}},function(e,t,r){r.r(t),r.d(t,{LEVELS:function(){return l},LEVELS_COLOR:function(){return c},Logger:function(){return u}});var n,i=r(17),o=r(1),s=r(3),a=r(2),l=["error","critical","warn","info","debug"],c=[i.CLI_COLOR.red,i.CLI_COLOR.magenta,i.CLI_COLOR.yellow,i.CLI_COLOR.green,i.CLI_COLOR.blue],u=function(){function e(t){void 0===t&&(t={}),this.level=e.defaultLevel,this.name=e.defaultName,this.configure(t),e.instances[this.name]=this}e.configureAllInstances=function(t){void 0===t&&(t={}),t.level&&(e.defaultLevel=t.level),t.name&&(e.defaultName=t.name);for(var r=0,n=Object.values(e.instances);r<n.length;r++)n[r].configure(t)};var t=e.prototype;return t.configure=function(t){var r=t.name,n=t.level;this.level=n||e.defaultLevel,this.name=r||e.defaultName},t.log=function(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1),void 0===n&&(n="info");var a=l.indexOf(this.level),u=l.indexOf(n);if(t||a>=u){for(var f,h=[],d=""+c[u]+n+i.CLI_COLOR.default+":"+this.name+":"+(new Date).toISOString()+":",p=arguments.length,b=new Array(p>4?p-4:0),_=4;_<p;_++)b[_-4]=arguments[_];if(r)h.push(e);else if("string"==typeof e)h.push.apply(h,[d,e].concat(b));else if((0,s.isNumeric)(e)||"boolean"==typeof e)h.push.apply(h,[d,e.toString()].concat(b));else{var y=d.substring(0,d.length-1),m=77+c[u].length+i.CLI_COLOR.default.length-y.length,g=Math.floor(m/2);this.log(","+"-".repeat(g)+y+"-".repeat(g)+"-".repeat(m%2)+",",t,!0,n),this.log(e,t,!0,n),this.log("'"+"-".repeat(77)+"'",t,!0,n)}if(h.length)if(o.globalContext.console&&n in o.globalContext.console&&o.globalContext.console[n]!==o.NOOP)(f=o.globalContext.console)[n].apply(f,h);else{var w;Object.prototype.hasOwnProperty.call(o.globalContext,"window")&&Object.prototype.hasOwnProperty.call(o.globalContext.window,"alert")&&(null==(w=o.globalContext.window)||w.alert(h.join(" ")))}}},t.info=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"info"].concat(r))},t.debug=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"debug"].concat(r))},t.error=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log.apply(this,[e,!0,!1,"error"].concat(r))},t.critical=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log.apply(this,[e,!0,!1,"warn"].concat(r))},t.warn=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"warn"].concat(r))},e.show=function(t,r,n){void 0===r&&(r=3),void 0===n&&(n=0);var i="";if("object"===(0,a.determineType)(t)){for(var o=0,s=Object.entries(t);o<s.length;o++){var l=s[o],c=l[0],u=l[1];i+=c+": ",i+=n<=r?e.show(u,r,n+1):String(u),i+="\n"}return i.trim()}return(i=String(t).trim())+' (Type: "'+(0,a.determineType)(t)+'")'},e}();n=u,u.defaultLevel="warn",u.defaultName="app",u.selfClass=n,u.instances={},u.runtimeVersion=Math.random(),t.default=u},function(e,t,r){r.r(t),r.d(t,{aggregatePropertyIfEqual:function(){return l},deleteEmptyItems:function(){return c},extract:function(){return u},extractIfMatches:function(){return f},extractIfPropertyExists:function(){return h},extractIfPropertyMatches:function(){return d},intersect:function(){return p},makeArray:function(){return b},makeRange:function(){return _},merge:function(){return y},paginate:function(){return m},permute:function(){return g},permuteLength:function(){return w},removeArrayItem:function(){return S},sortTopological:function(){return E},sumUpProperty:function(){return v},unique:function(){return x}});var n=r(4),i=r.n(n),o=r(3);function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e,t,r){void 0===r&&(r="");var n=r;if(Array.isArray(e)&&e.length&&Object.prototype.hasOwnProperty.call(e[0],t)){n=e[0][t];for(var i=0,o=b(e);i<o.length;i++)if(o[i][t]!==n)return r}return n},c=function(e,t){void 0===t&&(t=[]);for(var r=[],n=0,i=b(e);n<i.length;n++){for(var o=i[n],s=!0,a=0,l=Object.entries(o);a<l.length;a++){var c=l[a],u=c[0],f=c[1];if(!["",null,void 0].includes(f)&&(!t.length||b(t).includes(u))){s=!1;break}}s||r.push(o)}return r},u=function(e,t){for(var r=[],n=0,i=b(e);n<i.length;n++){for(var o=i[n],s={},a=0,l=b(t);a<l.length;a++){var c=l[a];Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])}r.push(s)}return r},f=function(e,t){if(!t)return b(e);for(var r=[],n=0,i=b(e);n<i.length;n++){var o=i[n];("string"==typeof t?new RegExp(t):t).test(o)&&r.push(o)}return r},h=function(e,t){if(e&&t){for(var r=[],n=0,i=b(e);n<i.length;n++){for(var o=i[n],s=!1,a=0,l=Object.entries(o);a<l.length;a++){var c=l[a],u=c[0],f=c[1];if(u===t&&![null,void 0].includes(f)){s=!0;break}}s&&r.push(o)}return r}return e},d=function(e,t){if(e){for(var r=[],n=0,i=b(e);n<i.length;n++){var o=i[n],s=!0;for(var a in t)if(!t[a]||!("string"==typeof t[a]?new RegExp(t[a]):t[a]).test(o[a])){s=!1;break}s&&r.push(o)}return r}return e},p=function(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=!0);var i=[];t=b(t);for(var a=function(e,t,r,i,o,s){if(s?o&&(r=i):i=r,t[i]!==e[r]&&(n||![null,void 0].includes(t[i])||![null,void 0].includes(e[r])))return!1},l=0,c=b(e);l<c.length;l++){var u=c[l];if((0,o.isPlainObject)(u))for(var f=0,h=t;f<h.length;f++){var d=h[f],p=!0,_=void 0,y=Array.isArray(r);if((0,o.isPlainObject)(r)||y&&r.length?_=!0:(_=!1,r=u),Array.isArray(r))for(var m,g=0,w=s(r);!(m=w()).done;){if(!1===a(u,d,g,m.value,y,_)){p=!1;break}g+=1}else for(var v=0,S=Object.entries(r);v<S.length;v++){var E=S[v];if(!1===a(u,d,E[0],E[1],y,_)){p=!1;break}}if(p){i.push(u);break}}else t.includes(u)&&i.push(u)}return i},b=function(e){var t=[];return[null,void 0].includes(e)||((0,o.isArrayLike)(Object(e))?y(t,"string"==typeof e?[e]:e):t.push(e)),t},_=function(e,t,r){var n,i;if(void 0===t&&(t=1),void 0===r&&(r=!1),1===(e=[].concat(e)).length)n=0,i=parseInt(String(e[0]),10);else{if(2!==e.length)return e;n=parseInt(String(e[0]),10),i=parseInt(String(e[1]),10)}if(i<n)return[];for(var o=[n];n<=i-t;)n+=t,(!r||n<=i-t)&&o.push(n);return o},y=function(e,t){Array.isArray(t)||(t=Array.prototype.slice.call(t));for(var r,n=s(t);!(r=n()).done;){var i=r.value;e.push(i)}return e},m=function(e){void 0===e&&(e={});var t=e,r=t.boundaryCount,n=void 0===r?1:r,o=t.disabled,s=void 0!==o&&o,a=t.hideNextButton,l=void 0!==a&&a,c=t.hidePrevButton,u=void 0!==c&&c,f=t.page,h=void 0===f?1:f,d=t.pageSize,p=void 0===d?5:d,b=t.showFirstButton,y=void 0!==b&&b,m=t.showLastButton,g=void 0!==m&&m,w=t.siblingCount,v=void 0===w?4:w,S=t.total,E=void 0===S?100:S,x="number"!=typeof p||isNaN(p)?E:Math.ceil(E/p),R=_([1,Math.min(n,x)]),A=_([Math.max(x-n+1,n+1),x]),O=Math.max(Math.min(h-v,x-n-2*v-1),n+2),k=Math.min(Math.max(h+v,n+2*v+2),A.length>0?A[0]-2:x-1);return[].concat(y?["first"]:[],u?[]:["previous"],R,O>n+2?["start-ellipsis"]:n+1<x-n?[n+1]:[],_([O,k]),k<x-n-1?["end-ellipsis"]:x-n>n?[x-n]:[],A,l?[]:["next"],g?["last"]:[]).map((function(e){var t;return"number"==typeof e?{disabled:s,page:e,selected:e===h,type:"page"}:i()({disabled:s||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?h>=x:h<=1),selected:!1,type:e},e.endsWith("-ellipsis")?{}:{page:(null!==(t={first:1,last:x}[e])&&void 0!==t?t:"next"===e)?Math.min(h+1,x):Math.max(h-1,1)})}))},g=function(e){var t=[],r=function(e,n){if(void 0===n&&(n=[]),0===e.length)t.push(n);else for(var i=0;i<e.length;i++){var o=e.slice();r(o,n.concat(o.splice(i,1)))}};return r(e),t},w=function(e,t){void 0===t&&(t=1);var r=[];if(0===e.length)return r;for(var n=function(e,t,i){if(0!==e)for(var o=0;o<t.length;o++)n(e-1,t.slice(o+1),i.concat([t[o]]));else i.length>0&&(r[r.length]=i)},i=t;i<e.length;i++)n(i,e,[]);return r.push(e),r},v=function(e,t){var r=0;if(Array.isArray(e)&&e.length)for(var n,i=s(e);!(n=i()).done;){var o=n.value;Object.prototype.hasOwnProperty.call(o,t)&&(r+=parseFloat(o[t]||0))}return r},S=function(e,t,r){void 0===r&&(r=!1);var n=e.indexOf(t);if(-1===n){if(r)throw new Error("Given target doesn't exists in given list.")}else e.splice(n,1);return e},E=function(e){for(var t=[],r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],a=i[1];if(e[o]=[].concat(a),a.length>0)for(var l,c=s(b(a));!(l=c()).done;){var u=l.value;t.push([o,u])}else t.push([o])}for(var f=[],h=0,d=t;h<d.length;h++)for(var p,_=s(d[h]);!(p=_()).done;){var y=p.value;f.includes(y)||f.push(y)}for(var m=[],g=function(e,r){if(0!==r.length&&r.includes(e))throw new Error('Cyclic dependency found. "'+e+'" is dependent of itself.\nDependency chain: "'+r.join('" -> "')+'" => "'+e+'".');var n=f.indexOf(e);if(-1!==n){var i;f[n]=null;for(var o=0,s=t;o<s.length;o++){var a=s[o];a[0]===e&&(i=i||r.concat([e]),g(a[1],i))}m.push(e)}},w=0;w<f.length;w++){var v=f[w];if(v){f[w]=null;for(var S,E=s(t);!(S=E()).done;){var x=S.value;x[0]===v&&g(x[1],[v])}m.push(v)}}return m},x=function(e){for(var t,r=[],n=s(b(e));!(t=n()).done;){var i=t.value;r.includes(i)||r.push(i)}return r}},function(e,t,r){r.r(t),r.d(t,{DATE_TIME_PATTERN_CACHE:function(){return f},dateTimeFormat:function(){return h},interpretDateTime:function(){return d},normalizeDateTime:function(){return p},sliceWeekday:function(){return b}});var n=r(13),i=r.n(n),o=r(4),s=r.n(o),a=r(0),l=r(7);function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var f=[],h=function(e,t,r,n){void 0===e&&(e="full"),void 0===t&&(t=new Date),void 0===r&&(r={}),void 0===n&&(n=a.LOCALES),"number"==typeof t&&(t*=1e3);var i=new Date(t);if(["full","long","medium","short"].includes(e))return new Intl.DateTimeFormat([].concat(n,"en-US"),s()({dateStyle:e,timeStyle:e},r)).format(i);for(var o,u={},f=c(["full","long","medium","short"]);!(o=f()).done;){var h=o.value;u[h+"Literals"]=[];var d=new Intl.DateTimeFormat([].concat(n,"en-US"),s()({dateStyle:h,timeStyle:h},r));u[h]=d.format(i);for(var p,b=c(d.formatToParts(i));!(p=b()).done;){var _=p.value;"literal"===_.type?u[h+"Literals"].push(_.value):u[""+h+(0,l.capitalize)(_.type)]=_.value}}var y=(0,l.evaluate)("`"+e+"`",u);if(y.error)throw new Error(y.error);return y.result.replace(/\s/g," ")},d=function(e,t){var r=Boolean(t),n="[0-2][0-9]:[0-6][0-9]",o="^[0-9]{4}-[01][0-9]-[0-3][0-9](?<time>(?:T"+n+"(?::[0-6][0-9](?:\\.[0-9]+)?)?(?<dateTimeTimezone>Z|(?:[+-]"+n+"))?)|(?<dateTimezone>Z|(?:[+-]"+n+")))?$",s=e.match(new RegExp(o,"i"));if(s){var a,u,h,p,_,y=new Date(e);return isNaN(y.getDate())?null:(null!==(a=null==(u=s.groups)?void 0:u.dateTimeTimezone)&&void 0!==a?a:null==(h=s.groups)?void 0:h.dateTimezone)?y:([null,void 0].includes(t)&&(r=!1),r?null!=(_=s.groups)&&_.time?new Date(y.getTime()-60*y.getTimezoneOffset()*1e3):y:null!=(p=s.groups)&&p.time?y:new Date(y.getTime()+60*y.getTimezoneOffset()*1e3))}if(e=e.replace(/^(-?)-*0*([1-9][0-9]*)$/,"$1$2"),String(parseInt(e))===e){[null,void 0].includes(t)&&(r=!0);var m=new Date(1e3*parseInt(e));return new Date(1e3*(parseInt(e)+(r?0:60*m.getTimezoneOffset())))}if(!f.length)for(var g,w="(?:0?[0-9])|(?:[1-5][0-9])|(?:60)",v="(?<second>"+w+")",S="(?<minute>"+w+")",E="(?<hour>(?:0?[0-9])|(?:1[0-9])|(?:2[0-4]))",x="(?<noonIndicator> *(?:(?:a\\.?m\\.?)|(?:p\\.?m\\.?)))?",R="(?<day>(?:0?[1-9])|(?:[1-2][0-9])|(?:3[01]))",A="(?<month>(?:0?[1-9])|(?:1[0-2]))",O="(?<year>(?:0?[1-9])|(?:[1-9][0-9]+))",k={},T=c(["t"," "]);!(g=T()).done;)for(var P,M=g.value,L=c([":","/","-"," "]);!(P=L()).done;)for(var C=P.value,I=0,D=[E+(C+"+")+S+x,E+(C+"+")+S+C+"+"+v+x,E+(C+"+")+S+C+"+"+v+C+"+(?<millisecond>(?:0{0,3}[0-9])|(?:0{0,2}[1-9]{2})|(?:0?[1-9]{3})|(?:1[1-9]{3}))"+x,E+x];I<D.length;I++)for(var N=D[I],j=0,F=[{delimiter:["/","-"," "],pattern:[A+"${delimiter}"+R+"${delimiter}"+O,A+"${delimiter}"+R+" +"+O,O+"${delimiter}"+A+"${delimiter}"+R,O+" +"+A+"${delimiter}"+R,A+"${delimiter}"+R+"${delimiter}"+O+M+"+"+N,A+"${delimiter}"+R+" +"+O+M+"+"+N,N+(M+"+")+A+"${delimiter}"+R+"${delimiter}"+O,N+(M+"+")+A+"${delimiter}"+R+" +"+O,O+"${delimiter}"+A+"${delimiter}"+R+M+"+"+N,O+" +"+A+"${delimiter}"+R+M+"+"+N,N+(M+"+")+O+"${delimiter}"+A+"${delimiter}"+R,N+(M+"+")+O+" +"+A+"${delimiter}"+R]},{delimiter:"\\.",pattern:[R+"${delimiter}"+A+"${delimiter}"+O,R+"${delimiter}"+A+" +"+O,O+"${delimiter}"+R+"${delimiter}"+A,O+" +"+R+"${delimiter}"+A,R+"${delimiter}"+A+"${delimiter}"+O+M+"+"+N,R+"${delimiter}"+A+" +"+O+M+"+"+N,N+(M+"+")+R+"${delimiter}"+A+"${delimiter}"+O,N+(M+"+")+R+"${delimiter}"+A+" +"+O,O+"${delimiter}"+R+"${delimiter}"+A+M+"+"+N,O+" +"+R+"${delimiter}"+A+M+"+"+N,N+(M+"+")+O+"${delimiter}"+R+"${delimiter}"+A,N+(M+"+")+O+" +"+R+"${delimiter}"+A]},{pattern:N}];j<F.length;j++)for(var W,B=F[j],U=c([].concat(Object.prototype.hasOwnProperty.call(B,"delimiter")?B.delimiter:"-"));!(W=U()).done;)for(var $,z=W.value,G=c([].concat(B.pattern));!($=G()).done;){var H=$.value,V=(0,l.evaluate)("`^"+H+"$`",{delimiter:z+"+"}).result;V&&!Object.prototype.hasOwnProperty.call(k,V)&&(k[V]=!0,f.push(new RegExp(V)))}e=(e=e.toLowerCase()).replace(/([^0-9a-z])[^0-9a-z]+/g,"$1");for(var q=1,K=0,Y=[["jan","january?","janvier"],["feb","february?","février"],["m(?:a|ae|ä)r","m(?:a|ae|ä)r(?:ch|s|z)"],["ap[rv]","a[pv]ril"],["ma[iy]"],["ju[ein]","jui?n[ei]?"],["jul","jul[iy]","juillet"],["aug","august","août"],["sep","septemb(?:er|re)"],["o[ck]t","o[ck]tob(?:er|re)"],["nov","novemb(?:er|re)"],["de[cz]","d[eé][cz]emb(?:er|re)"]];K<Y.length;K++){for(var Z,Q=!1,X=c(Y[K]);!(Z=X()).done;){var J=Z.value,ee=new RegExp("(^|[^a-z])"+J+"([^a-z]|$)");if(ee.test(e)){e=e.replace(ee,"$1"+String(q)+"$2"),Q=!0;break}}if(Q)break;q+=1}e=b(e);var te=/(.+)\+(.+)$/,re=te.exec(e);re&&(e=e.replace(te,"$1"));for(var ne,ie=c(["","Uhr","o'clock"]);!(ne=ie()).done;){var oe=ne.value;e=e.replace(oe,"")}e=e.trim();for(var se,ae=function(){var t=ce[le],n=null;try{n=e.match(t)}catch(e){}if(n){var o,s=function(e,t){return void 0===t&&(t=0),n.groups&&e in n.groups?parseInt(n.groups[e],10):t},a=[s("year",1970),s("month",1)-1,s("day",1),s("hour"),s("minute"),s("second"),s("millisecond")];null!=(o=n.groups)&&o.noonIndicator&&"pm"===n.groups.noonIndicator.trim().replace(/\./g,"")&&a[3]<=12&&(a[3]+=12);var l=null;if(re){var c=d(re[2],!0);c&&(l=new Date(Date.UTC.apply(Date,a)-c.getTime()))}return l||(l=r?new Date(Date.UTC.apply(Date,a)):i()(Date,a)),isNaN(l.getDate())?{v:null}:{v:l}}},le=0,ce=f;le<ce.length;le++)if(se=ae())return se.v;return null},p=function(e,t){void 0===e&&(e=null);var r=Boolean(t);if(null===e)return new Date;if("string"==typeof e){if(/^.*(?:(?:[0-9]{1,4}[^0-9]){2}|[0-9]{1,4}[^0-9.]).*$/.test(e))return d(e,r);var n=parseFloat(e);String(n)===e&&(e=n)}if("number"==typeof e){[null,void 0].includes(t)&&(r=!0);var i=new Date(1e3*e);return new Date(1e3*(e+(r?0:60*i.getTimezoneOffset())))}var o=new Date(e);return isNaN(o.getDate())?null:o},b=function(e){var t=/[a-z]{2}\.+ *([^ ].*)$/i;return t.exec(e)?e.replace(t,"$1"):e}},function(e,t,r){function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{getParameterNames:function(){return o},identity:function(){return s},invertArrayFilter:function(){return a}});var o=function(e){var t=("string"==typeof e?e:e.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,"");if(t.startsWith("class"))return o("function "+t.replace(/.*(constructor\([^)]+\))/m,"$1"));var r=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(t);null===r&&(r=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(t)),null===r&&(r=/([^= ]+) *=>.*/m.exec(t));var i=[];if(r&&r.length>1&&r[1].trim().length){for(var s,a=n(r[1].split(","));!(s=a()).done;){var l=s.value;i.push(l.replace(/=.+$/g,"").trim())}return i}return i},s=function(e){return e},a=function(e){return function(t){if(Array.isArray(t)){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var s=e.apply(void 0,[t].concat(i)),a=[];if(s.length)for(var l,c=n(t);!(l=c()).done;){var u=l.value;s.includes(u)||a.push(u)}else a=t;return a}return t}}},function(e,t,r){r.d(t,{DEFAULT_OPTIONS:function(){return h},NO_ITEM_FOUND_SYMBOL:function(){return f},SELECTOR_KEY_NAMES:function(){return u},evaluateAnd:function(){return x},evaluateArrayContains:function(){return k},evaluateConcat:function(){return A},evaluateCondition:function(){return m},evaluateIf:function(){return S},evaluateMapping:function(){return O},evaluateOperation:function(){return w},evaluateOptionalThen:function(){return v},evaluateOr:function(){return R},evaluateSelector:function(){return y},evaluateSelectorUntilLastObject:function(){return _},evaluateSwitch:function(){return E},evaluateUnaryOperation:function(){return g},normalizeSelector:function(){return p},selectArrayItem:function(){return b}});var n=r(4),i=r.n(n),o=r(3),s=r(2),a=r(16);function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=new Set(["name"]),f=Symbol.for("EXPRESSION_EVALUATOR_NO_ITEM_FOUND"),h={skipMissingLevel:!1,contextReplacements:{},delimiter:"."},d=function(e){for(var t,r=[],n=l(e);!(t=n()).done;){var i=t.value,o=i.indexOf("[");o>0&&r.push(i.substring(0,o)),r.push(i.substring(o+1,i.length-1))}return r},p=function(e,t){void 0===t&&(t={});for(var r,n=i()({},h,{scope:{}},t),s=[],a=l([].concat(e));!(r=a()).done;){var c=r.value;if("string"==typeof c)for(var u,f=l(c.split(n.delimiter));!(u=f()).done;){var b=u.value;if(b)if((0,o.isFunction)(b))s.push(b);else{var _=b.indexOf("["),y=b;if(-1!==_&&(y=b.substring(_),b=b.substring(0,_)),Object.prototype.hasOwnProperty.call(n.contextReplacements,b)?s.push.apply(s,p(n.contextReplacements[b],n)):s.push(b),y!==b){var m=y.match(/[^[]*\[\d+]/g);s.push.apply(s,d(m))}}}else s.push(T(c,n.scope,n))}return s},b=function(e,t){for(var r,n=l(e);!(r=n()).done;)for(var i,o=r.value,s=l(u);!(i=s()).done;){var a=i.value;if(Object.prototype.hasOwnProperty.call(o,a)&&o[a]===t)return o}return f},_=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r={});for(var n,s=i()({},h,r),a=p(e,i()({},s,{scope:t})),c=t,u=0,d=l(a);!(n=d()).done;){var _=n.value,y=u===a.length-1;if((0,o.isObject)(c))if(Array.isArray(c)&&"string"==typeof _&&isNaN(parseInt(_))){var m=b(c,_);if(m!==f){if(y)return"number"==typeof _?[c,_]:[c,c.indexOf(m)];c=m}}else{if(y)return[c,_];if((0,o.isFunction)(_))c=_(c);else if(Object.prototype.hasOwnProperty.call(c,_))c=c[_];else if(!s.skipMissingLevel)return[c,_]}else{if(y)return[c,_];if(!s.skipMissingLevel)return[c,_]}u+=1}return[{},""]},y=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r={});var n=_(e,t,r),i=n[0],s=n[1];return""===s?t:(0,o.isFunction)(s)?s(i):Object.prototype.hasOwnProperty.call(i,s)?i[s]:void 0},m=function(e,t,r){var n=T(e.value1,t,r),i=T(e.value2,t,r);switch(e.$comparator){case"==":return(0,s.equals)(n,i);case"!=":return!(0,s.equals)(n,i);case"<":return n<i;case"<=":return n<=i;case">":return n>i;case">=":return n>=i}},g=function(e,t,r){var n=T(e.operand,t,r);switch(e.$operator){case"!":return!n;case"!!":return Boolean(n)}},w=function(e,t,r){var n=T(e.operand1,t,r),i=T(e.operand2,t,r);switch(e.$operator){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"**":return Math.pow(n,i);case"/":return n/i}},v=function(e,t,r){if(void 0!==e.then)return T(e.then,t,r)},S=function(e,t,r){return T(e.$if,t,r)?v(e,t,r):void 0===e.else?void 0:T(e.else,t)},E=function(e,t,r){for(var n,i=T(e.$switch,t),o=l(e.caseExpressions);!(n=o()).done;){var s=n.value;if(i===T(s.$case,t,r))return v(s,t,r)}if(void 0!==e.default)return T(e.default,t,r)},x=function(e,t,r){for(var n,i=l(e.$and);!(n=i()).done;)if(!T(n.value,t,r))return!1;return!0},R=function(e,t,r){for(var n,i=l(e.$or);!(n=i()).done;)if(T(n.value,t,r))return!0;return!1},A=function(e,t,r){for(var n,i=[],o=!1,s=l(e.$concat);!(n=s()).done;){var a=T(n.value,t,r);Array.isArray(a)&&(o=!0),i=i.concat(a)}return o?i:i.join("")},O=function(e,t,r){var n=T(e.data,t,r),o=[];if(Array.isArray(n))o=n;else for(var s=0,a=Object.entries(n);s<a.length;s++){var c=a[s],u=c[0],f=c[1];o.push(i()({},f,{$key:u}))}for(var h,d=[],p=l(o);!(h=p()).done;){for(var b=h.value,_={},y=0,m=Object.entries(e.$mapping);y<m.length;y++){var g=m[y],w=g[0],v=g[1];Object.prototype.hasOwnProperty.call(b,w)&&(_[v]=b[w])}d.push(_)}return d},k=function(e,t,r){var n=t;null!=e.$arrayContains.target&&(n=T(e.$arrayContains.target,t,r));var i=T(e.$arrayContains.value,t,r),s=T(e.$arrayContains.key,t,r);return!!Array.isArray(n)&&n.some((function(e){return"string"==typeof s&&(0,o.isPlainObject)(e)&&Object.prototype.hasOwnProperty.call(e,s)?e[s]===i:e===i}))};function T(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,a.isSelector)(e)?y(e.$select,t,r):(0,a.isCondition)(e)?m(e,t,r):(0,a.isUnaryOperation)(e)?g(e,t,r):(0,a.isOperation)(e)?w(e,t,r):(0,a.isOrExpression)(e)?R(e,t,r):(0,a.isAndExpression)(e)?x(e,t,r):(0,a.isConcatExpression)(e)?A(e,t,r):(0,a.isMappingExpression)(e)?O(e,t,r):(0,a.isIfExpression)(e)?S(e,t,r):(0,a.isSwitchExpression)(e)?E(e,t,r):(0,a.isArrayContainsExpression)(e)?k(e,t,r):e}t.default=T},function(e,t,r){function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{viewArrayAsScope:function(){return o},viewObjectAsScope:function(){return s}});var o=function(e,t,r){return new Proxy(e,{ownKeys:function(e){return Reflect.ownKeys(e)},get:function(e,i){for(var o,a=n(e);!(o=a()).done;)for(var l,c=o.value,u=n(r);!(l=u()).done;)if(c[l.value]===i)return s(c,t,r)},set:function(e,t,i){for(var o,s=0,a=n(e);!(o=a()).done;){for(var l,c=o.value,u=n(r);!(l=u()).done;)if(c[l.value]===t)return e[s]=i,!0;s+=1}return!1}})},s=function(e,t,r){return void 0===t&&(t=["children"]),void 0===r&&(r=["name"]),new Proxy(e,{ownKeys:function(e){return Reflect.ownKeys(e)},get:function(e,n){var i=e[n];if(Object.prototype.hasOwnProperty.call(e,n))return t.includes(n)&&Array.isArray(i)?o(i,t,r):null!==i&&"object"==typeof i?s(i,t,r):i},set:function(e,t,r){return!(!Object.prototype.hasOwnProperty.call(e,t)||!Object.prototype.hasOwnProperty.call(e,t)||(e[t]=r,0))}})}},function(e,t,r){r.d(t,{DEFAULT_OPTIONS:function(){return n.DEFAULT_OPTIONS},NO_ITEM_FOUND_SYMBOL:function(){return n.NO_ITEM_FOUND_SYMBOL},SELECTOR_KEY_NAMES:function(){return n.SELECTOR_KEY_NAMES},evaluateAnd:function(){return n.evaluateAnd},evaluateArrayContains:function(){return n.evaluateArrayContains},evaluateConcat:function(){return n.evaluateConcat},evaluateCondition:function(){return n.evaluateCondition},evaluateExpression:function(){return s},evaluateIf:function(){return n.evaluateIf},evaluateMapping:function(){return n.evaluateMapping},evaluateOperation:function(){return n.evaluateOperation},evaluateOptionalThen:function(){return n.evaluateOptionalThen},evaluateOr:function(){return n.evaluateOr},evaluateSelector:function(){return n.evaluateSelector},evaluateSelectorUntilLastObject:function(){return n.evaluateSelectorUntilLastObject},evaluateSwitch:function(){return n.evaluateSwitch},evaluateUnaryOperation:function(){return n.evaluateUnaryOperation},isAndExpression:function(){return o.isAndExpression},isArrayContainsExpression:function(){return o.isArrayContainsExpression},isConcatExpression:function(){return o.isConcatExpression},isCondition:function(){return o.isCondition},isIfExpression:function(){return o.isIfExpression},isMappingExpression:function(){return o.isMappingExpression},isOperation:function(){return o.isOperation},isOrExpression:function(){return o.isOrExpression},isSelector:function(){return o.isSelector},isSpecificExpression:function(){return o.isSpecificExpression},isSwitchExpression:function(){return o.isSwitchExpression},isUnaryOperation:function(){return o.isUnaryOperation},isValue:function(){return o.isValue},normalizeSelector:function(){return n.normalizeSelector},selectArrayItem:function(){return n.selectArrayItem},viewArrayAsScope:function(){return i.viewArrayAsScope},viewObjectAsScope:function(){return i.viewObjectAsScope}});var n=r(22),i=r(23),o=r(16),s=n.default},function(e,t,r){r.d(t,{deleteCookie:function(){return a},getCookie:function(){return l},setCookie:function(){return c}});var n=r(4),i=r.n(n),o=r(1);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e){o.globalContext.document&&(o.globalContext.document.cookie=e+"=; Max-Age=-99999999;")},l=function(e){if(o.globalContext.document){for(var t,r=e+"=",n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(decodeURIComponent(o.globalContext.document.cookie).split(";"));!(t=n()).done;){for(var i=t.value;i.startsWith(" ");)i=i.substring(1);if(i.startsWith(r))return i.substring(r.length,i.length)}return""}return null},c=function(e,t,r){if(void 0===r&&(r={}),o.globalContext.document){var n,s=i()({domain:"",httpOnly:!1,minimal:!1,numberOfDaysUntilExpiration:365,path:"/",sameSite:"Lax",secure:!0},r),a=new Date;return a.setTime(a.getTime()+24*s.numberOfDaysUntilExpiration*60*60*1e3),""===s.domain&&null!=(n=o.globalContext.location)&&n.hostname&&(s.domain=o.globalContext.location.hostname),o.globalContext.document.cookie=e+"="+t+(s.minimal?"":';Expires="'+a.toUTCString()+";Path="+s.path+";Domain="+s.domain+(s.sameSite?";SameSite="+s.sameSite:"")+(s.secure?";Secure":"")+(s.httpOnly?";HttpOnly":"")),!0}return!1}},function(e,t,r){r.d(t,{cacheImage:function(){return d},checkReachability:function(){return f},checkUnreachability:function(){return h}});var n=r(11),i=r.n(n),o=r(12),s=r.n(o),a=r(3),l=r(1),c=r(2),u=r(15),f=function(){var e=i()(s().mark((function e(t,r){var n,o,a,f,h,d,p,b;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r={}),l.globalContext.fetch){e.next=1;break}throw new Error("Missing fetch implementation available.");case 1:if(o=null!==(n=r.abortController)&&void 0!==n?n:new AbortController,a=(0,c.extend)(!0,{expectedIntermediateStatusCodes:[],options:{signal:o.signal},pollIntervallInSeconds:.1,statusCodes:200,timeoutInSeconds:10,wait:!1},r),f=[].concat(a.statusCodes),h=[].concat(a.expectedIntermediateStatusCodes),d=function(e,t){return"status"in e&&t.includes(e.status)},p=function(e){if(!d(e,f))throw new Error("Given status code "+String(e.status)+" differs from "+f.join(", ")+".");return e},!a.wait){e.next=2;break}return e.abrupt("return",new Promise((function(e,r){var n=!1,c=(0,u.timeout)(1e3*a.timeoutInSeconds),f=function(e){return n||(_=(0,u.timeout)(1e3*a.pollIntervallInSeconds,b)).catch((function(){})),e},b=function(){var n=i()(s().mark((function n(){var i,o,u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=1,l.globalContext.fetch(t,a.options);case 1:i=n.sent,n.next=3;break;case 2:return n.prev=2,o=n.catch(0),n.abrupt("return",f(o));case 3:n.prev=3,e(p(i)),c.clear(),n.next=6;break;case 4:if(n.prev=4,u=n.catch(3),!d(i,h)){n.next=5;break}return n.abrupt("return",f(u));case 5:r(u),c.clear();case 6:return n.abrupt("return",i);case 7:case"end":return n.stop()}}),n,null,[[0,2],[3,4]])})));return function(){return n.apply(this,arguments)}}(),_=(0,u.timeout)(b);c.then((function(){n=!0,_.clear(),r(new Error("Timeout of "+String(a.timeoutInSeconds)+" seconds reached.")),o.abort()}),(function(){}))})));case 2:return b=p,e.next=3,l.globalContext.fetch(t,a.options);case 3:return e.abrupt("return",b(e.sent));case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),h=function(){var e=i()(s().mark((function e(t,r){var n,o,f,h,d,p,b;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r&&(r={}),l.globalContext.fetch){e.next=1;break}throw new Error("Missing fetch implementation available.");case 1:if(o=null!==(n=r.abortController)&&void 0!==n?n:new AbortController,f=(0,c.extend)(!0,{options:{signal:o.signal},pollIntervallInSeconds:.1,statusCodes:[],timeoutInSeconds:10,wait:!1},r),h=function(e){var r=[].concat(f.statusCodes);if(r.length){if((0,a.isObject)(e)&&"status"in e&&r.includes(e.status))throw new Error('Given url "'+t+'" is reachable and responses with status code "'+String(e.status)+'".');return new Error('Given status code is not "'+r.join(", ")+'".')}return null},!f.wait){e.next=2;break}return e.abrupt("return",new Promise((function(e,r){var n=!1,a=function(){var r=i()(s().mark((function r(){var i,o,p;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=1,l.globalContext.fetch(t,f.options);case 1:if(i=r.sent,!n){r.next=2;break}return r.abrupt("return",i);case 2:if(!(o=h(i))){r.next=3;break}return d.clear(),e(o),r.abrupt("return",o);case 3:(c=(0,u.timeout)(1e3*f.pollIntervallInSeconds,a)).catch((function(){})),r.next=5;break;case 4:return r.prev=4,p=r.catch(0),d.clear(),e(p),r.abrupt("return",p);case 5:return r.abrupt("return",null);case 6:case"end":return r.stop()}}),r,null,[[0,4]])})));return function(){return r.apply(this,arguments)}}(),c=(0,u.timeout)(a),d=(0,u.timeout)(1e3*f.timeoutInSeconds);d.then((function(){n=!0,c.clear(),r(new Error("Timeout of "+String(f.timeoutInSeconds)+" seconds reached.")),o.abort()}),(function(){}))})));case 2:return e.prev=2,p=h,e.next=3,l.globalContext.fetch(t,f.options);case 3:if(!(d=p(e.sent))){e.next=4;break}return e.abrupt("return",d);case 4:e.next=6;break;case 5:return e.prev=5,b=e.catch(2),e.abrupt("return",b);case 6:throw new Error('Given url "'+t+'" is reachable.');case 7:case"end":return e.stop()}}),e,null,[[2,5]])})));return function(t,r){return e.apply(this,arguments)}}(),d=function(e){return new Promise((function(t,r){var n=document.createElement("img");n.onload=function(){var e=n.complete;n.remove(),e?t():r(new Error("Image could not be loaded."))},n.src=e}))}},function(e,t,r){r.d(t,{createDomNodes:function(){return f},fade:function(){return h},fadeIn:function(){return d},fadeOut:function(){return p},getAll:function(){return b},getParents:function(){return _},getText:function(){return y},isEquivalent:function(){return m},isHidden:function(){return g},onDocumentReady:function(){return w},wrap:function(){return v}});var n=r(11),i=r.n(n),o=r(12),s=r.n(o),a=r(1),l=r(15);function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var f=function(e){var t=document.createElement("div");return t.innerHTML=e,1===t.childNodes.length?t.childNodes[0].cloneNode(!0):t},h=function(e,t,r){void 0===t&&(t=200),void 0===r&&(r=!0),r?(e.style.visibility="hidden",e.style.opacity="0",e.style.transition="visibility 0s "+String(t)+"ms, opacity "+String(t)+"ms linear"):(e.style.visibility="visible",e.style.opacity="1",e.style.transition="opacity "+String(t)+"ms linear");var n=a.NOOP,i=!1,o=new Promise((function(e){n=function(){i=!0,e()},(0,l.timeout)(t).then(n)}));return o.clear=function(){i||(e.style.transition="none",n())},o},d=function(e,t){return void 0===t&&(t=200),h(e,t,!1)},p=function(e,t){return void 0===t&&(t=200),h(e,t)},b=function(e){for(var t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ALL,null),n=r.currentNode;n;)t.push(n),n=r.nextNode();return t},_=function(e){for(var t=[];null!=(r=e)&&r.parentNode;){var r;t.unshift(e.parentNode),e=e.parentNode}return t},y=function(e,t){if(void 0===t&&(t=!1),e.nodeType===Node.TEXT_NODE){var r,n=null==(r=e.nodeValue)?void 0:r.trim();if(n)return[n]}for(var i,o=[],s=c(e.childNodes);!(i=s()).done;){var a=i.value;(t||a.nodeType===Node.TEXT_NODE)&&o.push.apply(o,y(a))}return o},m=function(e,t,r){if(void 0===r&&(r=!1),e===t)return!0;if(!e||!t)return!1;if(!a.globalContext.document)throw new Error("Missing document in global context.");for(var n=a.globalContext.document.createElement.bind(a.globalContext.document),i=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,o={first:e,second:t},s={first:n("dummy"),second:n("dummy")},l=0,c=Object.entries(o);l<c.length;l++){var u=c[l],h=u[0],d=u[1];if("string"==typeof d)if(r||d.startsWith("<")&&d.endsWith(">")&&d.length>=3||i.test(d))s[h]=f(d);else{var p=document.querySelector(d);if(!p)return!1;s[h]=p.cloneNode(!0)}else{if(!("cloneNode"in d))return!1;s[h]=d.cloneNode(!0)}}return s.first.normalize(),s.second.normalize(),s.first.isEqualNode(s.second)},g=function(e){var t;return!(null!=(t=a.globalContext.document)&&t.contains(e))||"none"===e.style.display||"INPUT"===e.nodeName&&"hidden"===e.getAttribute("type")||["contents","inline"].includes(e.style.display)&&(!("innerHTML"in e)||""===e.innerHTML.trim())||"0px"===e.style.height&&"0px"===e.style.width||Boolean(e.parentElement)&&g(e.parentElement)},w=function(e){return new Promise((function(t){i()(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!["complete","interactive"].includes(document.readyState)){r.next=2;break}return r.next=1,(0,l.timeout)();case 1:t(),null==e||e(),r.next=3;break;case 2:document.addEventListener("DOMContentLoaded",(function(){t(),null==e||e()}));case 3:case"end":return r.stop()}}),r)})))()}))},v=function(e,t){var r=e.length?Array.from(e):[e],n=r[0];n.parentNode&&n.parentNode.insertBefore(t,n);for(var i,o=c(r);!(i=o()).done;){var s=i.value;t.appendChild(s)}}},function(e,t,r){r.d(t,{getProcessCloseHandler:function(){return i},handleChildProcess:function(){return o}});var n=r(1),i=function(e,t,r,i){void 0===r&&(r=null),void 0===i&&(i=n.NOOP);var o=!1;return function(n){if(o)o=!0;else{o=!0;for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];if("number"!=typeof n||0===n)i(),e({reason:r,parameters:a});else{var c=new Error("Task exited with error code "+String(n));c.returnCode=n,c.parameters=a,t(c)}}}},o=function(e){return e.stdout&&e.stdout.pipe(process.stdout),e.stderr&&e.stderr.pipe(process.stderr),e.on("close",(function(e){0!==e&&console.error("Task exited with error code "+String(e))})),e}},function(e,t,r){r.d(t,{UTILITY_SCOPE:function(){return b},UTILITY_SCOPE_NAMES:function(){return _},UTILITY_SCOPE_VALUES:function(){return y},determineUniqueScopeName:function(){return g},isolateScope:function(){return m}});var n=r(1),i=r(19),o=r(20),s=r(14),a=r(21),l=r(3),c=r(18),u=r(8),f=r(2),h=r(5),d=r(7),p=r(15),b={array:i,datetime:o,filesystem:s,functions:a,indicators:l,logger:c,number:u,object:f,require:h,string:d,utility:p},_=["array","datetime","filesystem","functions","indicators","logger","number","object","require","string","utility"],y=[i,o,s,a,l,c,u,f,h,d,p],m=function(e,t){for(var r in void 0===t&&(t=[]),e)t.includes(r.charAt(0))||["constructor","prototype","this"].includes(r)||Object.prototype.hasOwnProperty.call(e,r)||(e[r]=void 0);return e},g=function(e,t,r,i){if(void 0===e&&(e="callback"),void 0===t&&(t=""),void 0===r&&(r=n.globalContext),void 0===i&&(i=""),i.length&&!(i in r))return i;for(var o=e+t,s=0;s<n.MAXIMAL_NUMBER_OF_ITERATIONS.value&&(o=e+String(Math.round(Math.random()*Math.pow(10,10)))+t)in r;s++);return o}},,function(e,t,r){r.r(t),r.d(t,{ABBREVIATIONS:function(){return s.ABBREVIATIONS},ALLOWED_STARTING_VARIABLE_SYMBOLS:function(){return w.ALLOWED_STARTING_VARIABLE_SYMBOLS},ALLOWED_VARIABLE_SYMBOLS:function(){return w.ALLOWED_VARIABLE_SYMBOLS},ANIMATION_END_EVENT_NAMES:function(){return s.ANIMATION_END_EVENT_NAMES},CLASS_TO_TYPE_MAPPING:function(){return s.CLASS_TO_TYPE_MAPPING},CLI_COLOR:function(){return o.CLI_COLOR},CLOSE_EVENT_NAMES:function(){return s.CLOSE_EVENT_NAMES},CONSOLE_METHODS:function(){return s.CONSOLE_METHODS},DATE_TIME_PATTERN_CACHE:function(){return u.DATE_TIME_PATTERN_CACHE},DEFAULT_ENCODING:function(){return s.DEFAULT_ENCODING},DEFAULT_OPTIONS:function(){return f.DEFAULT_OPTIONS},FIX_ENCODING_ERROR_MAPPING:function(){return w.FIX_ENCODING_ERROR_MAPPING},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return s.IGNORE_NULL_AND_UNDEFINED_SYMBOL},KEYBOARD_CODES:function(){return s.KEYBOARD_CODES},KEY_CODES:function(){return s.KEY_CODES},LEVELS:function(){return v.LEVELS},LEVELS_COLOR:function(){return v.LEVELS_COLOR},LOCALES:function(){return s.LOCALES},Lock:function(){return s.Lock},Logger:function(){return v.Logger},MAXIMAL_NUMBER_OF_ITERATIONS:function(){return a.MAXIMAL_NUMBER_OF_ITERATIONS},NOOP:function(){return a.NOOP},NO_ITEM_FOUND_SYMBOL:function(){return f.NO_ITEM_FOUND_SYMBOL},PLAIN_OBJECT_PROTOTYPES:function(){return s.PLAIN_OBJECT_PROTOTYPES},POLYFILL_TEMPLATES:function(){return w.POLYFILL_TEMPLATES},SELECTOR_KEY_NAMES:function(){return f.SELECTOR_KEY_NAMES},SPECIAL_REGEX_SEQUENCES:function(){return s.SPECIAL_REGEX_SEQUENCES},Semaphore:function(){return s.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return s.TRANSITION_END_EVENT_NAMES},UTILITY_SCOPE:function(){return g.UTILITY_SCOPE},UTILITY_SCOPE_NAMES:function(){return g.UTILITY_SCOPE_NAMES},UTILITY_SCOPE_VALUES:function(){return g.UTILITY_SCOPE_VALUES},VALUE_COPY_SYMBOL:function(){return s.VALUE_COPY_SYMBOL},addDynamicGetterAndSetter:function(){return _.addDynamicGetterAndSetter},addSeparatorToPath:function(){return w.addSeparatorToPath},aggregatePropertyIfEqual:function(){return n.aggregatePropertyIfEqual},cacheImage:function(){return c.cacheImage},camelCaseToDelimited:function(){return w.camelCaseToDelimited},capitalize:function(){return w.capitalize},ceil:function(){return b.ceil},checkReachability:function(){return c.checkReachability},checkUnreachability:function(){return c.checkUnreachability},clearRequireCache:function(){return m.clearRequireCache},compile:function(){return w.compile},compressStyleValue:function(){return w.compressStyleValue},convertCircularObjectToJSON:function(){return _.convertCircularObjectToJSON},convertMapToPlainObject:function(){return _.convertMapToPlainObject},convertPlainObjectToMap:function(){return _.convertPlainObjectToMap},convertSubstringInPlainObject:function(){return _.convertSubstringInPlainObject},convertToValidVariableName:function(){return w.convertToValidVariableName},copy:function(){return _.copy},copyDirectoryRecursive:function(){return h.copyDirectoryRecursive},copyDirectoryRecursiveSync:function(){return h.copyDirectoryRecursiveSync},copyFile:function(){return h.copyFile},copyFileSync:function(){return h.copyFileSync},createDomNodes:function(){return i.createDomNodes},currentImport:function(){return m.currentImport},currentRequire:function(){return m.currentRequire},dateTimeFormat:function(){return u.dateTimeFormat},debounce:function(){return S.debounce},decodeHTMLEntities:function(){return w.decodeHTMLEntities},deleteCookie:function(){return l.deleteCookie},deleteEmptyItems:function(){return n.deleteEmptyItems},delimitedToCamelCase:function(){return w.delimitedToCamelCase},determineGlobalContext:function(){return a.determineGlobalContext},determineType:function(){return _.determineType},determineUniqueScopeName:function(){return g.determineUniqueScopeName},encodeURIComponentExtended:function(){return w.encodeURIComponentExtended},equals:function(){return _.equals},escapeRegularExpressions:function(){return w.escapeRegularExpressions},evaluate:function(){return w.evaluate},evaluateAnd:function(){return f.evaluateAnd},evaluateArrayContains:function(){return f.evaluateArrayContains},evaluateConcat:function(){return f.evaluateConcat},evaluateCondition:function(){return f.evaluateCondition},evaluateDynamicData:function(){return _.evaluateDynamicData},evaluateExpression:function(){return f.evaluateExpression},evaluateIf:function(){return f.evaluateIf},evaluateMapping:function(){return f.evaluateMapping},evaluateOperation:function(){return f.evaluateOperation},evaluateOptionalThen:function(){return f.evaluateOptionalThen},evaluateOr:function(){return f.evaluateOr},evaluateSelector:function(){return f.evaluateSelector},evaluateSelectorUntilLastObject:function(){return f.evaluateSelectorUntilLastObject},evaluateSwitch:function(){return f.evaluateSwitch},evaluateUnaryOperation:function(){return f.evaluateUnaryOperation},extend:function(){return _.extend},extract:function(){return n.extract},extractIfMatches:function(){return n.extractIfMatches},extractIfPropertyExists:function(){return n.extractIfPropertyExists},extractIfPropertyMatches:function(){return n.extractIfPropertyMatches},fade:function(){return i.fade},fadeIn:function(){return i.fadeIn},fadeOut:function(){return i.fadeOut},findNormalizedMatchRange:function(){return w.findNormalizedMatchRange},fixKnownEncodingErrors:function(){return w.fixKnownEncodingErrors},floor:function(){return b.floor},format:function(){return w.format},getAll:function(){return i.getAll},getCookie:function(){return l.getCookie},getDomainName:function(){return w.getDomainName},getEditDistance:function(){return w.getEditDistance},getParameterNames:function(){return d.getParameterNames},getParents:function(){return i.getParents},getPortNumber:function(){return w.getPortNumber},getProcessCloseHandler:function(){return y.getProcessCloseHandler},getProtocolName:function(){return w.getProtocolName},getProxyHandler:function(){return _.getProxyHandler},getText:function(){return i.getText},getURLParameter:function(){return w.getURLParameter},getUTCTimestamp:function(){return b.getUTCTimestamp},globalContext:function(){return a.globalContext},handleChildProcess:function(){return y.handleChildProcess},hasPathPrefix:function(){return w.hasPathPrefix},identity:function(){return d.identity},interpretDateTime:function(){return u.interpretDateTime},intersect:function(){return n.intersect},invertArrayFilter:function(){return d.invertArrayFilter},isAndExpression:function(){return f.isAndExpression},isAnyMatching:function(){return p.isAnyMatching},isArrayContainsExpression:function(){return f.isArrayContainsExpression},isArrayLike:function(){return p.isArrayLike},isConcatExpression:function(){return f.isConcatExpression},isCondition:function(){return f.isCondition},isDirectory:function(){return h.isDirectory},isDirectorySync:function(){return h.isDirectorySync},isEquivalent:function(){return i.isEquivalent},isFile:function(){return h.isFile},isFileSync:function(){return h.isFileSync},isFunction:function(){return p.isFunction},isHidden:function(){return i.isHidden},isIfExpression:function(){return f.isIfExpression},isMap:function(){return p.isMap},isMappingExpression:function(){return f.isMappingExpression},isNotANumber:function(){return b.isNotANumber},isNumeric:function(){return p.isNumeric},isObject:function(){return p.isObject},isOperation:function(){return f.isOperation},isOrExpression:function(){return f.isOrExpression},isPlainObject:function(){return p.isPlainObject},isProxy:function(){return p.isProxy},isSelector:function(){return f.isSelector},isSet:function(){return p.isSet},isSpecificExpression:function(){return f.isSpecificExpression},isSwitchExpression:function(){return f.isSwitchExpression},isUnaryOperation:function(){return f.isUnaryOperation},isValue:function(){return f.isValue},isWindow:function(){return p.isWindow},isolateScope:function(){return g.isolateScope},isolatedRequire:function(){return m.isolatedRequire},limit:function(){return w.limit},lowerCase:function(){return w.lowerCase},makeArray:function(){return n.makeArray},makeRange:function(){return n.makeRange},mark:function(){return w.mark},mask:function(){return _.mask},maskForRegularExpression:function(){return w.maskForRegularExpression},merge:function(){return n.merge},mkdirSync:function(){return h.mkdirSync},mockConsole:function(){return a.mockConsole},modifyObject:function(){return _.modifyObject},normalizeDateTime:function(){return u.normalizeDateTime},normalizeDomNodeSelector:function(){return w.normalizeDomNodeSelector},normalizePhoneNumber:function(){return w.normalizePhoneNumber},normalizeSelector:function(){return f.normalizeSelector},normalizeURL:function(){return w.normalizeURL},normalizeZipCode:function(){return w.normalizeZipCode},onDocumentReady:function(){return i.onDocumentReady},optionalRequire:function(){return m.optionalRequire},paginate:function(){return n.paginate},parseEncodedObject:function(){return w.parseEncodedObject},permute:function(){return n.permute},permuteLength:function(){return n.permuteLength},preventDefault:function(){return S.preventDefault},readFileSync:function(){return h.readFileSync},readdirSync:function(){return h.readdirSync},removeArrayItem:function(){return n.removeArrayItem},removeKeyPrefixes:function(){return _.removeKeyPrefixes},removeKeysInEvaluation:function(){return _.removeKeysInEvaluation},represent:function(){return _.represent},representPhoneNumber:function(){return w.representPhoneNumber},representURL:function(){return w.representURL},round:function(){return b.round},selectArrayItem:function(){return f.selectArrayItem},serviceURLEquals:function(){return w.serviceURLEquals},setCookie:function(){return l.setCookie},setGlobalContext:function(){return a.setGlobalContext},sliceAllExceptNumberAndLastSeparator:function(){return w.sliceAllExceptNumberAndLastSeparator},sliceWeekday:function(){return u.sliceWeekday},sort:function(){return _.sort},sortTopological:function(){return n.sortTopological},statSync:function(){return h.statSync},stopPropagation:function(){return S.stopPropagation},sumUpProperty:function(){return n.sumUpProperty},timeout:function(){return S.timeout},unique:function(){return n.unique},unwrapProxy:function(){return _.unwrapProxy},viewArrayAsScope:function(){return f.viewArrayAsScope},viewObjectAsScope:function(){return f.viewObjectAsScope},walkDirectoryRecursively:function(){return h.walkDirectoryRecursively},walkDirectoryRecursivelySync:function(){return h.walkDirectoryRecursivelySync},wrap:function(){return i.wrap},writeFileSync:function(){return h.writeFileSync}});var n=r(19),i=r(27),o=r(17),s=r(0),a=r(1),l=r(25),c=r(26),u=r(20),f=r(24),h=r(14),d=r(21),p=r(3),b=r(8),_=r(2),y=r(28),m=r(5),g=r(29),w=r(7),v=r(18),S=r(15)}],__webpack_module_cache__={};function __nested_webpack_require_120035__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](r,r.exports,__nested_webpack_require_120035__),r.loaded=!0,r.exports}__nested_webpack_require_120035__.c=__webpack_module_cache__,__nested_webpack_require_120035__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __nested_webpack_require_120035__.d(t,{a:t}),t},__nested_webpack_require_120035__.d=function(e,t){for(var r in t)__nested_webpack_require_120035__.o(t,r)&&!__nested_webpack_require_120035__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__nested_webpack_require_120035__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_120035__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__nested_webpack_require_120035__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__nested_webpack_require_120035__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__=__nested_webpack_require_120035__(31);return __nested_webpack_exports__}()},module.exports=r(__webpack_require__(116),__webpack_require__(119),__webpack_require__(125),__webpack_require__(211))},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.hasMagic=t.Glob=t.unescape=t.escape=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.globIterate=t.globIterateSync=t.globSync=t.globStream=t.globStreamSync=void 0;const n=r(37),i=r(356),o=r(357);function s(e,t={}){return new i.Glob(e,t).streamSync()}function a(e,t={}){return new i.Glob(e,t).stream()}function l(e,t={}){return new i.Glob(e,t).walkSync()}async function c(e,t={}){return new i.Glob(e,t).walk()}function u(e,t={}){return new i.Glob(e,t).iterateSync()}function f(e,t={}){return new i.Glob(e,t).iterate()}t.globStreamSync=s,t.globStream=a,t.globSync=l,t.globIterateSync=u,t.globIterate=f,t.streamSync=s,t.stream=Object.assign(a,{sync:s}),t.iterateSync=u,t.iterate=Object.assign(f,{sync:u}),t.sync=Object.assign(l,{stream:s,iterate:u});var h=r(37);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return h.escape}}),Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return h.unescape}});var d=r(356);Object.defineProperty(t,"Glob",{enumerable:!0,get:function(){return d.Glob}});var p=r(357);Object.defineProperty(t,"hasMagic",{enumerable:!0,get:function(){return p.hasMagic}}),t.glob=Object.assign(c,{glob:c,globSync:l,sync:t.sync,globStream:a,stream:t.stream,globStreamSync:s,streamSync:t.streamSync,globIterate:f,iterate:t.iterate,globIterateSync:u,iterateSync:t.iterateSync,Glob:i.Glob,hasMagic:o.hasMagic,escape:n.escape,unescape:n.unescape}),t.glob.glob=t.glob},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.hasMagic=t.Glob=t.unescape=t.escape=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.globIterate=t.globIterateSync=t.globSync=t.globStream=t.globStreamSync=void 0;const n=r(38),i=r(361),o=r(362);function s(e,t={}){return new i.Glob(e,t).streamSync()}function a(e,t={}){return new i.Glob(e,t).stream()}function l(e,t={}){return new i.Glob(e,t).walkSync()}async function c(e,t={}){return new i.Glob(e,t).walk()}function u(e,t={}){return new i.Glob(e,t).iterateSync()}function f(e,t={}){return new i.Glob(e,t).iterate()}t.globStreamSync=s,t.globStream=a,t.globSync=l,t.globIterateSync=u,t.globIterate=f,t.streamSync=s,t.stream=Object.assign(a,{sync:s}),t.iterateSync=u,t.iterate=Object.assign(f,{sync:u}),t.sync=Object.assign(l,{stream:s,iterate:u});var h=r(38);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return h.escape}}),Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return h.unescape}});var d=r(361);Object.defineProperty(t,"Glob",{enumerable:!0,get:function(){return d.Glob}});var p=r(362);Object.defineProperty(t,"hasMagic",{enumerable:!0,get:function(){return p.hasMagic}}),t.glob=Object.assign(c,{glob:c,globSync:l,sync:t.sync,globStream:a,stream:t.stream,globStreamSync:s,streamSync:t.streamSync,globIterate:f,iterate:t.iterate,globIterateSync:u,iterateSync:t.iterateSync,Glob:i.Glob,hasMagic:o.hasMagic,escape:n.escape,unescape:n.unescape}),t.glob.glob=t.glob},(e,t,r)=>{var n=r(120),i=r(117),o=r(197),s=r(121),a=r(122),l=r(198),c=r(199);function u(){var t=i(),r=t.m(u),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function p(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,d[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,c(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,r,n,i){return t.w(p(e),r,n,i&&i.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:a,async:function(e,t,r,n,i){return(h(t)?s:o)(p(e),t,r,n,i)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},e=>{function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{(t=e.exports=r(177)).Stream=t,t.Readable=t,t.Writable=r(180),t.Duplex=r(53),t.Transform=r(181),t.PassThrough=r(310),t.finished=r(106),t.pipeline=r(311)},(e,t,r)=>{var n=r(121);e.exports=function(e,t,r,i,o){var s=n(e,t,r,i,o);return s.next().then((function(e){return e.done?e.value:s.next()}))},e.exports.__esModule=!0,e.exports.default=e.exports},e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{var n=r(193).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{const n=e.exports=(e,t,r={})=>(_(t),!(!r.nocomment&&"#"===t.charAt(0))&&new g(t,r).match(e));e.exports=n;const i=r(215);n.sep=i.sep;const o=Symbol("globstar **");n.GLOBSTAR=o;const s=r(82),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",c=l+"*?",u=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),f=u("().*{}+?[]^$\\!"),h=u("[.("),d=/\/+/;n.filter=(e,t={})=>(r,i,o)=>n(r,e,t);const p=(e,t={})=>{const r={};return Object.keys(e).forEach((t=>r[t]=e[t])),Object.keys(t).forEach((e=>r[e]=t[e])),r};n.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return n;const t=n,r=(r,n,i)=>t(r,n,p(e,i));return(r.Minimatch=class extends t.Minimatch{constructor(t,r){super(t,p(e,r))}}).defaults=r=>t.defaults(p(e,r)).Minimatch,r.filter=(r,n)=>t.filter(r,p(e,n)),r.defaults=r=>t.defaults(p(e,r)),r.makeRe=(r,n)=>t.makeRe(r,p(e,n)),r.braceExpand=(r,n)=>t.braceExpand(r,p(e,n)),r.match=(r,n,i)=>t.match(r,n,p(e,i)),r},n.braceExpand=(e,t)=>b(e,t);const b=(e,t={})=>(_(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:s(e)),_=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},y=Symbol("subparse");n.makeRe=(e,t)=>new g(e,t||{}).makeRe(),n.match=(e,t,r={})=>{const n=new g(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e};const m=e=>e.replace(/[[\]\\]/g,"\\$&");class g{constructor(e,t){_(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(d))),this.debug(this.pattern,r),r=r.map(((e,t,r)=>e.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,a=e.length,l=t.length;i<a&&s<l;i++,s++){this.debug("matchOne loop");var c,u=t[s],f=e[i];if(this.debug(t,u,f),!1===u)return!1;if(u===o){this.debug("GLOBSTAR",[t,u,f]);var h=i,d=s+1;if(d===l){for(this.debug("** at the end");i<a;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;h<a;){var p=e[h];if(this.debug("\nglobstar while",e,h,t,d,p),this.matchOne(e.slice(h),t.slice(d),r))return this.debug("globstar found match!",h,a,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,h,t,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!r||(this.debug("\n>>> no match, partial?",e,h,t,d),h!==a))}if("string"==typeof u?(c=f===u,this.debug("string match",u,f,c)):(c=f.match(u),this.debug("pattern match",u,f,c)),!c)return!1}if(i===a&&s===l)return!0;if(i===a)return r;if(s===l)return i===a-1&&""===e[i];throw new Error("wtf?")}braceExpand(){return b(this.pattern,this.options)}parse(e,t){_(e);const r=this.options;if("**"===e){if(!r.noglobstar)return o;e="*"}if(""===e)return"";let n="",i=!1,s=!1;const u=[],d=[];let p,b,g,w,v=!1,S=-1,E=-1,x="."===e.charAt(0),R=r.dot||x;const A=e=>"."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",O=()=>{if(p){switch(p){case"*":n+=c,i=!0;break;case"?":n+=l,i=!0;break;default:n+="\\"+p}this.debug("clearStateChar %j %j",p,n),p=!1}};for(let t,o=0;o<e.length&&(t=e.charAt(o));o++)if(this.debug("%s\t%s %s %j",e,o,n,t),s){if("/"===t)return!1;f[t]&&(n+="\\"),n+=t,s=!1}else switch(t){case"/":return!1;case"\\":if(v&&"-"===e.charAt(o+1)){n+=t;continue}O(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,o,n,t),v){this.debug(" in class"),"!"===t&&o===E+1&&(t="^"),n+=t;continue}this.debug("call clearStateChar %j",p),O(),p=t,r.noext&&O();continue;case"(":{if(v){n+="(";continue}if(!p){n+="\\(";continue}const t={type:p,start:o-1,reStart:n.length,open:a[p].open,close:a[p].close};this.debug(this.pattern,"\t",t),u.push(t),n+=t.open,0===t.start&&"!"!==t.type&&(x=!0,n+=A(e.slice(o+1))),this.debug("plType %j %j",p,n),p=!1;continue}case")":{const e=u[u.length-1];if(v||!e){n+="\\)";continue}u.pop(),O(),i=!0,g=e,n+=g.close,"!"===g.type&&d.push(Object.assign(g,{reEnd:n.length}));continue}case"|":{const t=u[u.length-1];if(v||!t){n+="\\|";continue}O(),n+="|",0===t.start&&"!"!==t.type&&(x=!0,n+=A(e.slice(o+1)));continue}case"[":if(O(),v){n+="\\"+t;continue}v=!0,E=o,S=n.length,n+=t;continue;case"]":if(o===E+1||!v){n+="\\"+t;continue}b=e.substring(E+1,o);try{RegExp("["+m(b.replace(/\\([^-\]])/g,"$1"))+"]"),n+=t}catch(e){n=n.substring(0,S)+"(?:$.)"}i=!0,v=!1;continue;default:O(),!f[t]||"^"===t&&v||(n+="\\"),n+=t}for(v&&(b=e.slice(E+1),w=this.parse(b,y),n=n.substring(0,S)+"\\["+w[0],i=i||w[1]),g=u.pop();g;g=u.pop()){let e;e=n.slice(g.reStart+g.open.length),this.debug("setting tail",n,g),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",e,e,g,n);const t="*"===g.type?c:"?"===g.type?l:"\\"+g.type;i=!0,n=n.slice(0,g.reStart)+t+"\\("+e}O(),s&&(n+="\\\\");const k=h[n.charAt(0)];for(let e=d.length-1;e>-1;e--){const r=d[e],i=n.slice(0,r.reStart),o=n.slice(r.reStart,r.reEnd-8);let s=n.slice(r.reEnd);const a=n.slice(r.reEnd-8,r.reEnd)+s,l=i.split(")").length,c=i.split("(").length-l;let u=s;for(let e=0;e<c;e++)u=u.replace(/\)[+*?]?/,"");s=u;n=i+o+s+(""===s&&t!==y?"(?:$|\\/)":"")+a}if(""!==n&&i&&(n="(?=.)"+n),k&&(n=(x?"":R?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+n),t===y)return[n,i];if(r.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return(e=>e.replace(/\\(.)/g,"$1"))(e);const T=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",T),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,r=t.noglobstar?c:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"";let i=e.map((e=>(e=e.map((e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===o?o:e._src)).reduce(((e,t)=>(e[e.length-1]===o&&t===o||e.push(t),e)),[]),e.forEach(((t,n)=>{t===o&&e[n-1]!==o&&(0===n?e.length>1?e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]:e[n]=r:n===e.length-1?e[n-1]+="(?:\\/|"+r+")?":(e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1],e[n+1]=o))})),e.filter((e=>e!==o)).join("/")))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;"/"!==i.sep&&(e=e.split(i.sep).join("/")),e=e.split(d),this.debug(this.pattern,"split",e);const n=this.set;let o;this.debug(this.pattern,"set",n);for(let t=e.length-1;t>=0&&(o=e[t],!o);t--);for(let i=0;i<n.length;i++){const s=n[i];let a=e;r.matchBase&&1===s.length&&(a=[o]);if(this.matchOne(a,s,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=g},(e,t,r)=>{var n=r(55).Buffer,i=r(10);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,o=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=o,i=a,t.copy(r,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},(e,t,r)=>{const n=r(248),i=r(145),o=n.Readable.destroy;e.exports=n.Readable,e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.destroy=o,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=n.Stream,e.exports.default=e.exports},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0;t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},(e,t,r)=>{
|
|
14
|
+
/**
|
|
15
|
+
* Archiver Core
|
|
16
|
+
*
|
|
17
|
+
* @ignore
|
|
18
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
19
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
20
|
+
*/
|
|
21
|
+
var n=r(10);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function o(e,t){Error.captureStackTrace(this,this.constructor),this.message=i[e]||e,this.code=e,this.data=t}n.inherits(o,Error),e.exports=o},(e,t,r)=>{e.exports={ArchiveEntry:r(96),ZipArchiveEntry:r(162),ArchiveOutputStream:r(165),ZipArchiveOutputStream:r(299)}},(e,t,r)=>{e.exports={CRC32Stream:r(300),DeflateCRC32Stream:r(304)}},(e,t,r)=>{const n=r(301),i=r(176),o=n.Readable.destroy;e.exports=n.Readable,e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.destroy=o,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=n.Stream,e.exports.default=e.exports},(e,t,r)=>{
|
|
22
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
23
|
+
var n=r(0),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0;t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},(e,t,r)=>{const n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=r(39).constants||n}catch{e.exports=n}},(e,t,r)=>{var n=r(194),i=r(195);e.exports=function(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&i(s,r.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},(e,t,r)=>{
|
|
24
|
+
/**
|
|
25
|
+
* Archiver Vending
|
|
26
|
+
*
|
|
27
|
+
* @ignore
|
|
28
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
29
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
30
|
+
*/
|
|
31
|
+
var n=r(213),i={},o=function(e,t){return o.create(e,t)};o.create=function(e,t){if(i[e]){var r=new n(e,t);return r.setFormat(e),r.setModule(new i[e](t)),r}throw new Error("create("+e+"): format not registered")},o.registerFormat=function(e,t){if(i[e])throw new Error("register("+e+"): format already registered");if("function"!=typeof t)throw new Error("register("+e+"): format module invalid");if("function"!=typeof t.prototype.append||"function"!=typeof t.prototype.finalize)throw new Error("register("+e+"): format module missing methods");i[e]=t},o.isRegisteredFormat=function(e){return!!i[e]},o.registerFormat("zip",r(293)),o.registerFormat("tar",r(314)),o.registerFormat("json",r(325)),e.exports=o},(e,t,r)=>{
|
|
32
|
+
/**
|
|
33
|
+
* Archiver Core
|
|
34
|
+
*
|
|
35
|
+
* @ignore
|
|
36
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
37
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
38
|
+
*/
|
|
39
|
+
var n=r(39),i=r(214),o=r(364),s=r(3),a=r(56),l=r(10).inherits,c=r(204),u=r(123).Transform,f="win32"===process.platform,h=function(e,t){if(!(this instanceof h))return new h(e,t);"string"!=typeof e&&(t=e,e="zip"),t=this.options=a.defaults(t,{highWaterMark:1048576,statConcurrency:4}),u.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=o.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=o.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};l(h,u),h.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},h.prototype._append=function(e,t){var r={source:null,filepath:e};(t=t||{}).name||(t.name=e),t.sourcePath=e,r.data=t,this._entriesCount++,t.stats&&t.stats instanceof n.Stats?(r=this._updateQueueTaskWithStats(r,t.stats))&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(r)):this._statQueue.push(r)},h.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},h.prototype._maybeFinalize=function(){return!(this._state.finalizing||this._state.finalized||this._state.aborted)&&(!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0))},h.prototype._moduleAppend=function(e,t,r){this._state.aborted?r():this._module.append(e,t,function(e){if(this._task=null,this._state.aborted)this._shutdown();else{if(e)return this.emit("error",e),void setImmediate(r);this.emit("entry",t),this._entriesProcessedCount++,t.stats&&t.stats.size&&(this._fsEntriesProcessedBytes+=t.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}}.bind(this))},h.prototype._moduleFinalize=function(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new c("NOENDMETHOD"))},h.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},h.prototype._moduleSupports=function(e){return!(!this._module.supports||!this._module.supports[e])&&this._module.supports[e]},h.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},h.prototype._normalizeEntryData=function(e,t){e=a.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&!1===e.stats&&(e.stats=t);var r="directory"===e.type;return e.name&&("string"==typeof e.prefix&&""!==e.prefix&&(e.name=e.prefix+"/"+e.name,e.prefix=null),e.name=a.sanitizePath(e.name),"symlink"!==e.type&&"/"===e.name.slice(-1)?(r=!0,e.type="directory"):r&&(e.name+="/")),"number"==typeof e.mode?e.mode&=f?511:4095:e.stats&&null===e.mode?(e.mode=f?511&e.stats.mode:4095&e.stats.mode,f&&r&&(e.mode=493)):null===e.mode&&(e.mode=r?493:420),e.stats&&null===e.date?e.date=e.stats.mtime:e.date=a.dateify(e.date),e},h.prototype._onModuleError=function(e){this.emit("error",e)},h.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},h.prototype._onQueueTask=function(e,t){var r=()=>{e.data.callback&&e.data.callback(),t()};this._state.finalizing||this._state.finalized||this._state.aborted?r():(this._task=e,this._moduleAppend(e.source,e.data,r))},h.prototype._onStatQueueTask=function(e,t){this._state.finalizing||this._state.finalized||this._state.aborted?t():n.lstat(e.filepath,function(r,n){if(this._state.aborted)setImmediate(t);else{if(r)return this._entriesCount--,this.emit("warning",r),void setImmediate(t);(e=this._updateQueueTaskWithStats(e,n))&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(e)),setImmediate(t)}}.bind(this))},h.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},h.prototype._transform=function(e,t,r){e&&(this._pointer+=e.length),r(null,e)},h.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile())e.data.type="file",e.data.sourceType="stream",e.source=a.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports("directory"))e.data.name=a.trailingSlashIt(e.data.name),e.data.type="directory",e.data.sourcePath=a.trailingSlashIt(e.filepath),e.data.sourceType="buffer",e.source=Buffer.concat([]);else{if(!t.isSymbolicLink()||!this._moduleSupports("symlink"))return t.isDirectory()?this.emit("warning",new c("DIRECTORYNOTSUPPORTED",e.data)):t.isSymbolicLink()?this.emit("warning",new c("SYMLINKNOTSUPPORTED",e.data)):this.emit("warning",new c("ENTRYNOTSUPPORTED",e.data)),null;var r=n.readlinkSync(e.filepath),i=s.dirname(e.filepath);e.data.type="symlink",e.data.linkname=s.relative(i,s.resolve(i,r)),e.data.sourceType="buffer",e.source=Buffer.concat([])}return e.data=this._normalizeEntryData(e.data,t),e},h.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},h.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit("error",new c("QUEUECLOSED")),this;if("string"!=typeof(t=this._normalizeEntryData(t)).name||0===t.name.length)return this.emit("error",new c("ENTRYNAMEREQUIRED")),this;if("directory"===t.type&&!this._moduleSupports("directory"))return this.emit("error",new c("DIRECTORYNOTSUPPORTED",{name:t.name})),this;if(e=a.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType="buffer";else{if(!a.isStream(e))return this.emit("error",new c("INPUTSTEAMBUFFERREQUIRED",{name:t.name})),this;t.sourceType="stream"}return this._entriesCount++,this._queue.push({data:t,source:e}),this},h.prototype.directory=function(e,t,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new c("QUEUECLOSED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new c("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===t?t="":"string"!=typeof t&&(t=e);var n=!1;"function"==typeof r?(n=r,r={}):"object"!=typeof r&&(r={});var o=i(e,{stat:!0,dot:!0});return o.on("error",function(e){this.emit("error",e)}.bind(this)),o.on("match",function(i){o.pause();var s=!1,a=Object.assign({},r);a.name=i.relative,a.prefix=t,a.stats=i.stat,a.callback=o.resume.bind(o);try{if(n)if(!1===(a=n(a)))s=!0;else if("object"!=typeof a)throw new c("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}catch(e){return void this.emit("error",e)}s?o.resume():this._append(i.absolute,a)}.bind(this)),o.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},h.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?(this.emit("error",new c("QUEUECLOSED")),this):"string"!=typeof e||0===e.length?(this.emit("error",new c("FILEFILEPATHREQUIRED")),this):(this._append(e,t),this)},h.prototype.glob=function(e,t,r){this._pending++,t=a.defaults(t,{stat:!0,pattern:e});var n=i(t.cwd||".",t);return n.on("error",function(e){this.emit("error",e)}.bind(this)),n.on("match",function(e){n.pause();var t=Object.assign({},r);t.callback=n.resume.bind(n),t.stats=e.stat,t.name=e.relative,this._append(e.absolute,t)}.bind(this)),n.on("end",function(){this._pending--,this._maybeFinalize()}.bind(this)),this},h.prototype.finalize=function(){if(this._state.aborted){var e=new c("ABORTED");return this.emit("error",e),Promise.reject(e)}if(this._state.finalize){var t=new c("FINALIZING");return this.emit("error",t),Promise.reject(t)}this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise((function(e,t){var n;r._module.on("end",(function(){n||e()})),r._module.on("error",(function(e){n=!0,t(e)}))}))},h.prototype.setFormat=function(e){return this._format?(this.emit("error",new c("FORMATSET")),this):(this._format=e,this)},h.prototype.setModule=function(e){return this._state.aborted?(this.emit("error",new c("ABORTED")),this):this._state.module?(this.emit("error",new c("MODULESET")),this):(this._module=e,this._modulePipe(),this)},h.prototype.symlink=function(e,t,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new c("QUEUECLOSED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new c("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new c("SYMLINKTARGETREQUIRED",{filepath:e})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new c("SYMLINKNOTSUPPORTED",{filepath:e})),this;var n={type:"symlink"};return n.name=e.replace(/\\/g,"/"),n.linkname=t.replace(/\\/g,"/"),n.sourceType="buffer","number"==typeof r&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},h.prototype.pointer=function(){return this._pointer},h.prototype.use=function(e){return this._streams.push(e),this},e.exports=h},(e,t,r)=>{e.exports=u;const n=r(39),{EventEmitter:i}=r(2),{Minimatch:o}=r(200),{resolve:s}=r(3);function a(e,t){return new Promise(((r,i)=>{(t?n.stat:n.lstat)(e,((n,i)=>{if(n)if("ENOENT"===n.code)r(t?a(e,!1):null);else r(null);else r(i)}))}))}async function*l(e,t,r,i,o,s){let c=await function(e,t){return new Promise(((r,i)=>{n.readdir(e,{withFileTypes:!0},((e,n)=>{if(e)switch(e.code){case"ENOTDIR":t?i(e):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(e)}else r(n)}))}))}(t+e,s);for(const n of c){let s=n.name;void 0===s&&(s=n,i=!0);const c=e+"/"+s,u=c.slice(1),f=t+"/"+u;let h=null;(i||r)&&(h=await a(f,r)),h||void 0===n.name||(h=n),null===h&&(h={isDirectory:()=>!1}),h.isDirectory()?o(u)||(yield{relative:u,absolute:f,stats:h},yield*l(c,t,r,i,o,!1)):yield{relative:u,absolute:f,stats:h}}}class c extends i{constructor(e,t,r){if(super(),"function"==typeof t&&(r=t,t=null),this.options=function(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}(t||{}),this.matchers=[],this.options.pattern){const e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map((e=>new o(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}if(this.ignoreMatchers=[],this.options.ignore){const e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map((e=>new o(e,{dot:!0})))}if(this.skipMatchers=[],this.options.skip){const e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map((e=>new o(e,{dot:!0})))}this.iterator=async function*(e,t,r,n){yield*l("",e,t,r,n,!0)}(s(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r&&(this._matches=[],this.on("match",(e=>this._matches.push(this.options.absolute?e.absolute:e.relative))),this.on("error",(e=>r(e))),this.on("end",(()=>r(null,this._matches)))),setTimeout((()=>this._next()),0)}_shouldSkipDirectory(e){return this.skipMatchers.some((t=>t.match(e)))}_fileMatches(e,t){const r=e+(t?"/":"");return(0===this.matchers.length||this.matchers.some((e=>e.match(r))))&&!this.ignoreMatchers.some((e=>e.match(r)))&&(!this.options.nodir||!t)}_next(){this.paused||this.aborted?this.inactive=!0:this.iterator.next().then((e=>{if(e.done)this.emit("end");else{const t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative,n=e.value.absolute;this.options.mark&&t&&(r+="/",n+="/"),this.options.stat?this.emit("match",{relative:r,absolute:n,stat:e.value.stats}):this.emit("match",{relative:r,absolute:n})}this._next(this.iterator)}})).catch((e=>{this.abort(),this.emit("error",e),e.code||this.options.silent||console.error(e)}))}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}}function u(e,t,r){return new c(e,t,r)}u.ReaddirGlob=c},e=>{const t="object"==typeof process&&process&&"win32"===process.platform;e.exports=t?{sep:"\\"}:{sep:"/"}},e=>{function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,s,a,l=r.indexOf(e),c=r.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(n=[],o=r.length;u>=0&&!a;)u==l?(n.push(u),l=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),c]:((i=n.pop())<o&&(o=i,s=c),c=r.indexOf(t,u+1)),u=l<c&&l>=0?l:c;n.length&&(a=[o,s])}return a}e.exports=t,t.range=n},(e,t,r)=>{var n=r(365),i=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){o=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),s=!0;try{i=e.fchmodSync(o,r),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){t?o&&o(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var o,s=e.openSync(t,n.O_SYMLINK),a=!0;try{o=e.futimesSync(s,r,i),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),s=0;t(r,n,(function a(l){if(l&&("EACCES"===l.code||"EPERM"===l.code||"EBUSY"===l.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,a):i(l)}))}),s),void(s<100&&(s+=10));i&&i(l)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){c(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!c(e))throw e}}:t}function i(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){c(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!c(e))throw e}}:t}function a(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function l(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,s,a){var l;if(a&&"function"==typeof a){var c=0;l=function(u,f,h){if(u&&"EAGAIN"===u.code&&c<10)return c++,t.call(e,r,n,i,o,s,l);a.apply(this,arguments)}}return t.call(e,r,n,i,o,s,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(u=e.readSync,function(t,r,n,i,o){for(var s=0;;)try{return u.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var u}},(e,t,r)=>{var n=r(16).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var c=s[a];this[c]=i[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){o._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=i[l]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},e=>{e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,r)=>{e.exports=r(2).EventEmitter},(e,t,r)=>{e.exports=o;var n=r(131),i=Object.create(r(57));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(22),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},(e,t,r)=>{var n=r(224),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=r(l),n(e,this,c)}}},e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},(e,t,r)=>{var n=r(226),i=r(236)(n);e.exports=i},(e,t,r)=>{var n=r(227),i=r(228),o=r(133),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=s},e=>{e.exports=function(e){return function(){return e}}},(e,t,r)=>{var n=r(58),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},(e,t,r)=>{var n=r(134),i=r(232),o=r(60),s=r(234),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,h=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:a).test(s(e))}},(e,t,r)=>{var n=r(86),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},(e,t,r)=>{var n,i=r(233),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},(e,t,r)=>{var n=r(45)["__core-js_shared__"];e.exports=n},e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},(e,t,r)=>{var n=r(87),i=r(88),o=r(137),s=r(60);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return!!("number"==a?i(r)&&o(t,r.length):"string"==a&&t in r)&&n(r[t],e)}},(e,t,r)=>{var n=r(239),i=r(245),o=r(88);e.exports=function(e){return o(e)?n(e,!0):i(e)}},(e,t,r)=>{var n=r(240),i=r(138),o=r(139),s=r(187),a=r(137),l=r(243),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),f=!r&&!u&&s(e),h=!r&&!u&&!f&&l(e),d=r||u||f||h,p=d?n(e.length,String):[],b=p.length;for(var _ in e)!t&&!c.call(e,_)||d&&("length"==_||f&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,b))||p.push(_);return p}},e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},(e,t,r)=>{var n=r(59),i=r(46);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},e=>{e.exports=function(){return!1}},(e,t,r)=>{var n=r(244),i=r(140),o=r(188),s=o&&o.isTypedArray,a=s?i(s):n;e.exports=a},(e,t,r)=>{var n=r(59),i=r(136),o=r(46),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},(e,t,r)=>{var n=r(60),i=r(246),o=r(247),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},(e,t,r)=>{const{Buffer:n}=r(0),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=r(4),{promisify:{custom:a}}=r(17),{streamReturningOperators:l,promiseReturningOperators:c}=r(368),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r(12),f=r(141),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:d}=r(63),{pipeline:p}=r(89),{destroyer:b}=r(40),_=r(28),y=r(145),m=r(24),g=e.exports=r(90).Stream;g.isDestroyed=m.isDestroyed,g.isDisturbed=m.isDisturbed,g.isErrored=m.isErrored,g.isReadable=m.isReadable,g.isWritable=m.isWritable,g.Readable=r(61);for(const v of o(l)){const S=l[v];function E(...e){if(new.target)throw u();return g.Readable.from(s(S,this,e))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(g.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of o(c)){const R=c[x];function A(...e){if(new.target)throw u();return s(R,this,e)}i(A,"name",{__proto__:null,value:R.name}),i(A,"length",{__proto__:null,value:R.length}),i(g.Readable.prototype,x,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}g.Writable=r(91),g.Duplex=r(32),g.Transform=r(144),g.PassThrough=r(143),g.pipeline=p;const{addAbortSignal:w}=r(62);g.addAbortSignal=w,g.finished=_,g.destroy=b,g.compose=f,g.setDefaultHighWaterMark=h,g.getDefaultHighWaterMark=d,i(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(_,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},(e,t,r)=>{const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=r(4),{Buffer:a}=r(0),{inspect:l}=r(17);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let r=this.head,n=0;for(;r;)o(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){const r=this.head.data;if(e<r.length){const t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{const o=r.data;if(!(e>o.length)){e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}t+=o,e-=o.length,++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),r=e;let n=this.head,i=0;do{const a=n.data;if(!(e>a.length)){e===a.length?(o(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}o(t,a,r-e),e-=a.length,++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},(e,t,r)=>{const n=r(1),i=r(0),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:f,isReadableStream:h,isWritableStream:d}=r(24),p=r(28),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:y}}=r(12),{destroyer:m}=r(40),g=r(32),w=r(61),v=r(91),{createDeferredPromise:S}=r(17),E=r(142),x=globalThis.Blob||i.Blob,R=void 0!==x?function(e){return e instanceof x}:function(e){return!1},A=globalThis.AbortController||r(8).AbortController,{FunctionPrototypeCall:O}=r(4);class k extends g{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(e){const t=e.readable&&"function"!=typeof e.readable.read?w.wrap(e.readable):e.readable,r=e.writable;let n,i,a,l,c,u=!!o(t),f=!!s(r);function h(e){const t=l;l=null,t?t(e):e&&c.destroy(e)}return c=new k({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:u,writable:f}),f&&(p(r,(e=>{f=!1,e&&m(t,e),h(e)})),c._write=function(e,t,i){r.write(e,t)?i():n=i},c._final=function(e){r.end(),i=e},r.on("drain",(function(){if(n){const e=n;n=null,e()}})),r.on("finish",(function(){if(i){const e=i;i=null,e()}}))),u&&(p(t,(e=>{u=!1,e&&m(t,e),h(e)})),t.on("readable",(function(){if(a){const e=a;a=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(a=c._read);if(!c.push(e))return}}),c._destroy=function(e,o){e||null===l||(e=new b),a=null,n=null,i=null,null===l?o(e):(l=o,m(r,e),m(t,e))},c}e.exports=function e(t,r){if(f(t))return t;if(c(t))return T({readable:t});if(u(t))return T({writable:t});if(l(t))return T({writable:!1,readable:!1});if(h(t))return T({readable:w.fromWeb(t)});if(d(t))return T({writable:v.fromWeb(t)});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:r}=S();const i=new A,o=i.signal,s=e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(n.nextTick(a),s)return;if(o.aborted)throw new b(void 0,{cause:o.reason});({promise:t,resolve:r}=S()),yield i}}(),{signal:o});return{value:s,write(e,t,n){const i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){const t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return E(k,e,{objectMode:!0,write:i,final:o,destroy:s});const l=null==e?void 0:e.then;if("function"==typeof l){let t;const r=O(l,e,(e=>{if(null!=e)throw new y("nully","body",e)}),(e=>{m(t,e)}));return t=new k({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}}))},destroy:s})}throw new y("Iterable, AsyncIterable or AsyncFunction",r,e)}if(R(t))return e(t.arrayBuffer());if(a(t))return E(k,t,{objectMode:!0,writable:!1});if(h(null==t?void 0:t.readable)&&d(null==t?void 0:t.writable))return k.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable)){return T({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0})}const i=null==t?void 0:t.then;if("function"==typeof i){let e;return O(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{m(e,t)})),e=new k({objectMode:!0,writable:!1,read(){}})}throw new _(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},(e,t,r)=>{var n=r(21),i=r(3),o=r(146),s=r(147),a=r(153),l=r(155),c=r(190),u=e.exports={},f=/[\/\\]/g;u.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)},u.expand=function(...e){var t=l(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(0===r.length)return[];var u=function(e,t){var r=[];return o(e).forEach((function(e){var n=0===e.indexOf("!");n&&(e=e.slice(1));var i=t(e);r=n?s(r,i):a(r,i)})),r}(r,(function(e){return c.sync(e,t)}));return t.filter&&(u=u.filter((function(e){e=i.join(t.cwd||"",e);try{return"function"==typeof t.filter?t.filter(e):n.statSync(e)[t.filter]()}catch(e){return!1}}))),u},u.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[],o={};return u.expand(r,e).forEach((function(e){var s=e;r.flatten&&(s=i.basename(s)),r.ext&&(s=s.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(t,s,r);r.cwd&&(e=i.join(r.cwd,e)),a=a.replace(f,"/"),e=e.replace(f,"/"),o[a]?o[a].src.push(e):(n.push({src:[e],dest:a}),o[a]=n[n.length-1])})),n},u.normalizeFilesArray=function(e){var t=[];return e.forEach((function(e){("src"in e||"dest"in e)&&t.push(e)})),0===t.length?[]:t=_(t).chain().forEach((function(e){"src"in e&&e.src&&(Array.isArray(e.src)?e.src=o(e.src):e.src=[e.src])})).map((function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);return r.orig=Object.assign({},e),r.src=t.src,r.dest=t.dest,["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]})),r}));var r=Object.assign({},e);return r.orig=Object.assign({},e),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=e.src,n=Array.isArray(n)?o(n):[n],r.result=u.expand(t,n)),r.result}}),"dest"in r&&(r.dest=e.dest),r})).flatten().value()}},e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},(e,t,r)=>{var n=r(86),i=r(138),o=r(139),s=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},(e,t,r)=>{var n=r(148),i=r(149),o=r(150),s=r(281),a=r(140),l=r(151);e.exports=function(e,t,r,c){var u=-1,f=i,h=!0,d=e.length,p=[],b=t.length;if(!d)return p;r&&(t=s(t,a(r))),c?(f=o,h=!1):t.length>=200&&(f=l,h=!1,t=new n(t));e:for(;++u<d;){var _=e[u],y=null==r?_:r(_);if(_=c||0!==_?_:0,h&&y==y){for(var m=b;m--;)if(t[m]===y)continue e;p.push(_)}else f(t,y,c)||p.push(_)}return p}},(e,t,r)=>{var n=r(256),i=r(270),o=r(272),s=r(273),a=r(274);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},(e,t,r)=>{var n=r(257),i=r(263),o=r(269);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},(e,t,r)=>{var n=r(258),i=r(259),o=r(260),s=r(261),a=r(262);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},(e,t,r)=>{var n=r(65);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},(e,t,r)=>{var n=r(65),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},(e,t,r)=>{var n=r(65),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},(e,t,r)=>{var n=r(65);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},(e,t,r)=>{var n=r(264),i=r(265),o=r(266),s=r(267),a=r(268);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},e=>{e.exports=function(){this.__data__=[],this.size=0}},(e,t,r)=>{var n=r(66),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},(e,t,r)=>{var n=r(66);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},(e,t,r)=>{var n=r(66);e.exports=function(e){return n(this.__data__,e)>-1}},(e,t,r)=>{var n=r(66);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},(e,t,r)=>{var n=r(58)(r(45),"Map");e.exports=n},(e,t,r)=>{var n=r(67);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},(e,t,r)=>{var n=r(67);e.exports=function(e){return n(this,e).get(e)}},(e,t,r)=>{var n=r(67);e.exports=function(e){return n(this,e).has(e)}},(e,t,r)=>{var n=r(67);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},e=>{e.exports=function(e){return this.__data__.has(e)}},(e,t,r)=>{var n=r(278),i=r(279),o=r(280);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},e=>{e.exports=function(e){return e!=e}},e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},(e,t,r)=>{var n=r(148),i=r(149),o=r(150),s=r(151),a=r(283),l=r(154);e.exports=function(e,t,r){var c=-1,u=i,f=e.length,h=!0,d=[],p=d;if(r)h=!1,u=o;else if(f>=200){var b=t?null:a(e);if(b)return l(b);h=!1,u=s,p=new n}else p=t?[]:d;e:for(;++c<f;){var _=e[c],y=t?t(_):_;if(_=r||0!==_?_:0,h&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue e;t&&p.push(y),d.push(_)}else u(p,y,r)||(p!==d&&p.push(y),d.push(_))}return d}},(e,t,r)=>{var n=r(284),i=r(285),o=r(154),s=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=s},(e,t,r)=>{var n=r(58)(r(45),"Set");e.exports=n},e=>{e.exports=function(){}},(e,t,r)=>{var n=r(287)(Object.getPrototypeOf,Object);e.exports=n},e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},e=>{e.exports=require("fs/promises")},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;const n=r(37);class i{#Y;#Z;#Q;length;#X;#J;#ee;#te;#re;#ne;#ie=!0;constructor(e,t,r,n){if(!(e.length>=1))throw new TypeError("empty pattern list");if(!(t.length>=1))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#Y=e,this.#Z=t,this.#Q=r,this.#X=n,0===this.#Q)if(this.isUNC()){const[e,t,r,n,...i]=this.#Y,[o,s,a,l,...c]=this.#Z;""===i[0]&&(i.shift(),c.shift());const u=[e,t,r,n,""].join("/"),f=[o,s,a,l,""].join("/");this.#Y=[u,...i],this.#Z=[f,...c],this.length=this.#Y.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#Y,[r,...n]=this.#Z;""===t[0]&&(t.shift(),n.shift());const i=e+"/",o=r+"/";this.#Y=[i,...t],this.#Z=[o,...n],this.length=this.#Y.length}}pattern(){return this.#Y[this.#Q]}isString(){return"string"==typeof this.#Y[this.#Q]}isGlobstar(){return this.#Y[this.#Q]===n.GLOBSTAR}isRegExp(){return this.#Y[this.#Q]instanceof RegExp}globString(){return this.#ee=this.#ee||(0===this.#Q?this.isAbsolute()?this.#Z[0]+this.#Z.slice(1).join("/"):this.#Z.join("/"):this.#Z.slice(this.#Q).join("/"))}hasMore(){return this.length>this.#Q+1}rest(){return void 0!==this.#J?this.#J:this.hasMore()?(this.#J=new i(this.#Y,this.#Z,this.#Q+1,this.#X),this.#J.#ne=this.#ne,this.#J.#re=this.#re,this.#J.#te=this.#te,this.#J):this.#J=null}isUNC(){const e=this.#Y;return void 0!==this.#re?this.#re:this.#re="win32"===this.#X&&0===this.#Q&&""===e[0]&&""===e[1]&&"string"==typeof e[2]&&!!e[2]&&"string"==typeof e[3]&&!!e[3]}isDrive(){const e=this.#Y;return void 0!==this.#te?this.#te:this.#te="win32"===this.#X&&0===this.#Q&&this.length>1&&"string"==typeof e[0]&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#Y;return void 0!==this.#ne?this.#ne:this.#ne=""===e[0]&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#Y[0];return"string"==typeof e&&this.isAbsolute()&&0===this.#Q?e:""}checkFollowGlobstar(){return!(0===this.#Q||!this.isGlobstar()||!this.#ie)}markFollowGlobstar(){return!(0===this.#Q||!this.isGlobstar()||!this.#ie)&&(this.#ie=!1,!0)}}t.Pattern=i},(e,t,r)=>{const{Buffer:n}=r(0),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=r(5),{promisify:{custom:a}}=r(18),{streamReturningOperators:l,promiseReturningOperators:c}=r(375),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r(13),f=r(157),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:d}=r(70),{pipeline:p}=r(93),{destroyer:b}=r(41),_=r(29),y=r(161),m=r(25),g=e.exports=r(94).Stream;g.isDestroyed=m.isDestroyed,g.isDisturbed=m.isDisturbed,g.isErrored=m.isErrored,g.isReadable=m.isReadable,g.isWritable=m.isWritable,g.Readable=r(68);for(const v of o(l)){const S=l[v];function E(...e){if(new.target)throw u();return g.Readable.from(s(S,this,e))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(g.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of o(c)){const R=c[x];function A(...e){if(new.target)throw u();return s(R,this,e)}i(A,"name",{__proto__:null,value:R.name}),i(A,"length",{__proto__:null,value:R.length}),i(g.Readable.prototype,x,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}g.Writable=r(95),g.Duplex=r(33),g.Transform=r(160),g.PassThrough=r(159),g.pipeline=p;const{addAbortSignal:w}=r(69);g.addAbortSignal=w,g.finished=_,g.destroy=b,g.compose=f,g.setDefaultHighWaterMark=h,g.getDefaultHighWaterMark=d,i(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(_,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},(e,t,r)=>{const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=r(5),{Buffer:a}=r(0),{inspect:l}=r(18);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let r=this.head,n=0;for(;r;)o(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){const r=this.head.data;if(e<r.length){const t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{const o=r.data;if(!(e>o.length)){e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}t+=o,e-=o.length,++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),r=e;let n=this.head,i=0;do{const a=n.data;if(!(e>a.length)){e===a.length?(o(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}o(t,a,r-e),e-=a.length,++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},(e,t,r)=>{const n=r(1),i=r(0),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:f,isReadableStream:h,isWritableStream:d}=r(25),p=r(29),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:y}}=r(13),{destroyer:m}=r(41),g=r(33),w=r(68),v=r(95),{createDeferredPromise:S}=r(18),E=r(158),x=globalThis.Blob||i.Blob,R=void 0!==x?function(e){return e instanceof x}:function(e){return!1},A=globalThis.AbortController||r(8).AbortController,{FunctionPrototypeCall:O}=r(5);class k extends g{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(e){const t=e.readable&&"function"!=typeof e.readable.read?w.wrap(e.readable):e.readable,r=e.writable;let n,i,a,l,c,u=!!o(t),f=!!s(r);function h(e){const t=l;l=null,t?t(e):e&&c.destroy(e)}return c=new k({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:u,writable:f}),f&&(p(r,(e=>{f=!1,e&&m(t,e),h(e)})),c._write=function(e,t,i){r.write(e,t)?i():n=i},c._final=function(e){r.end(),i=e},r.on("drain",(function(){if(n){const e=n;n=null,e()}})),r.on("finish",(function(){if(i){const e=i;i=null,e()}}))),u&&(p(t,(e=>{u=!1,e&&m(t,e),h(e)})),t.on("readable",(function(){if(a){const e=a;a=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(a=c._read);if(!c.push(e))return}}),c._destroy=function(e,o){e||null===l||(e=new b),a=null,n=null,i=null,null===l?o(e):(l=o,m(r,e),m(t,e))},c}e.exports=function e(t,r){if(f(t))return t;if(c(t))return T({readable:t});if(u(t))return T({writable:t});if(l(t))return T({writable:!1,readable:!1});if(h(t))return T({readable:w.fromWeb(t)});if(d(t))return T({writable:v.fromWeb(t)});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:r}=S();const i=new A,o=i.signal,s=e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(n.nextTick(a),s)return;if(o.aborted)throw new b(void 0,{cause:o.reason});({promise:t,resolve:r}=S()),yield i}}(),{signal:o});return{value:s,write(e,t,n){const i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){const t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return E(k,e,{objectMode:!0,write:i,final:o,destroy:s});const l=null==e?void 0:e.then;if("function"==typeof l){let t;const r=O(l,e,(e=>{if(null!=e)throw new y("nully","body",e)}),(e=>{m(t,e)}));return t=new k({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}}))},destroy:s})}throw new y("Iterable, AsyncIterable or AsyncFunction",r,e)}if(R(t))return e(t.arrayBuffer());if(a(t))return E(k,t,{objectMode:!0,writable:!1});if(h(null==t?void 0:t.readable)&&d(null==t?void 0:t.writable))return k.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable)){return T({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0})}const i=null==t?void 0:t.then;if("function"==typeof i){let e;return O(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{m(e,t)})),e=new k({objectMode:!0,writable:!1,read(){}})}throw new _(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},(e,t,r)=>{
|
|
40
|
+
/**
|
|
41
|
+
* ZIP Format Plugin
|
|
42
|
+
*
|
|
43
|
+
* @module plugins/zip
|
|
44
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
45
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
46
|
+
*/
|
|
47
|
+
var n=r(294),i=r(56),o=function(e){if(!(this instanceof o))return new o(e);e=this.options=i.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(e)};o.prototype.append=function(e,t,r){this.engine.entry(e,t,r)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},o.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},e.exports=o},(e,t,r)=>{
|
|
48
|
+
/**
|
|
49
|
+
* ZipStream
|
|
50
|
+
*
|
|
51
|
+
* @ignore
|
|
52
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
|
53
|
+
* @copyright (c) 2014 Chris Talkington, contributors.
|
|
54
|
+
*/
|
|
55
|
+
var n=r(10).inherits,i=r(205).ZipArchiveOutputStream,o=r(205).ZipArchiveEntry,s=r(305),a=e.exports=function(e){if(!(this instanceof a))return new a(e);(e=this.options=e||{}).zlib=e.zlib||{},i.call(this,e),"number"==typeof e.level&&e.level>=0&&(e.zlib.level=e.level,delete e.level),e.forceZip64||"number"!=typeof e.zlib.level||0!==e.zlib.level||(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};n(a,i),a.prototype._normalizeFileData=function(e){var t="directory"===(e=s.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===e.type;return e.name&&(e.name=s.sanitizePath(e.name),r||"/"!==e.name.slice(-1)?t&&(e.name+="/"):(t=!0,e.type="directory")),(t||r)&&(e.store=!0),e.date=s.dateify(e.date),e},a.prototype.entry=function(e,t,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"===(t=this._normalizeFileData(t)).type||"directory"===t.type||"symlink"===t.type)if("string"==typeof t.name&&0!==t.name.length){if("symlink"!==t.type||"string"==typeof t.linkname){var n=new o(t.name);return n.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&n.setName(t.name,!0),t.store&&n.setMethod(0),t.comment.length>0&&n.setComment(t.comment),"symlink"===t.type&&"number"!=typeof t.mode&&(t.mode=40960),"number"==typeof t.mode&&("symlink"===t.type&&(t.mode|=40960),n.setUnixMode(t.mode)),"symlink"===t.type&&"string"==typeof t.linkname&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,n,e,r)}r(new Error("entry linkname must be a non-empty string value when type equals symlink"))}else r(new Error("entry name must be a non-empty string value"));else r(new Error(t.type+" entries not currently supported"))},a.prototype.finalize=function(){this.finish()}},e=>{e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},(e,t,r)=>{const{Buffer:n}=r(0),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=r(6),{promisify:{custom:a}}=r(19),{streamReturningOperators:l,promiseReturningOperators:c}=r(376),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r(14),f=r(166),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:d}=r(73),{pipeline:p}=r(98),{destroyer:b}=r(42),_=r(30),y=r(170),m=r(26),g=e.exports=r(99).Stream;g.isDestroyed=m.isDestroyed,g.isDisturbed=m.isDisturbed,g.isErrored=m.isErrored,g.isReadable=m.isReadable,g.isWritable=m.isWritable,g.Readable=r(71);for(const v of o(l)){const S=l[v];function E(...e){if(new.target)throw u();return g.Readable.from(s(S,this,e))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(g.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of o(c)){const R=c[x];function A(...e){if(new.target)throw u();return s(R,this,e)}i(A,"name",{__proto__:null,value:R.name}),i(A,"length",{__proto__:null,value:R.length}),i(g.Readable.prototype,x,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}g.Writable=r(100),g.Duplex=r(34),g.Transform=r(169),g.PassThrough=r(168),g.pipeline=p;const{addAbortSignal:w}=r(72);g.addAbortSignal=w,g.finished=_,g.destroy=b,g.compose=f,g.setDefaultHighWaterMark=h,g.getDefaultHighWaterMark=d,i(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(_,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},(e,t,r)=>{const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=r(6),{Buffer:a}=r(0),{inspect:l}=r(19);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let r=this.head,n=0;for(;r;)o(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){const r=this.head.data;if(e<r.length){const t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{const o=r.data;if(!(e>o.length)){e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}t+=o,e-=o.length,++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),r=e;let n=this.head,i=0;do{const a=n.data;if(!(e>a.length)){e===a.length?(o(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}o(t,a,r-e),e-=a.length,++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},(e,t,r)=>{const n=r(1),i=r(0),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:f,isReadableStream:h,isWritableStream:d}=r(26),p=r(30),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:y}}=r(14),{destroyer:m}=r(42),g=r(34),w=r(71),v=r(100),{createDeferredPromise:S}=r(19),E=r(167),x=globalThis.Blob||i.Blob,R=void 0!==x?function(e){return e instanceof x}:function(e){return!1},A=globalThis.AbortController||r(8).AbortController,{FunctionPrototypeCall:O}=r(6);class k extends g{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(e){const t=e.readable&&"function"!=typeof e.readable.read?w.wrap(e.readable):e.readable,r=e.writable;let n,i,a,l,c,u=!!o(t),f=!!s(r);function h(e){const t=l;l=null,t?t(e):e&&c.destroy(e)}return c=new k({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:u,writable:f}),f&&(p(r,(e=>{f=!1,e&&m(t,e),h(e)})),c._write=function(e,t,i){r.write(e,t)?i():n=i},c._final=function(e){r.end(),i=e},r.on("drain",(function(){if(n){const e=n;n=null,e()}})),r.on("finish",(function(){if(i){const e=i;i=null,e()}}))),u&&(p(t,(e=>{u=!1,e&&m(t,e),h(e)})),t.on("readable",(function(){if(a){const e=a;a=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(a=c._read);if(!c.push(e))return}}),c._destroy=function(e,o){e||null===l||(e=new b),a=null,n=null,i=null,null===l?o(e):(l=o,m(r,e),m(t,e))},c}e.exports=function e(t,r){if(f(t))return t;if(c(t))return T({readable:t});if(u(t))return T({writable:t});if(l(t))return T({writable:!1,readable:!1});if(h(t))return T({readable:w.fromWeb(t)});if(d(t))return T({writable:v.fromWeb(t)});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:r}=S();const i=new A,o=i.signal,s=e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(n.nextTick(a),s)return;if(o.aborted)throw new b(void 0,{cause:o.reason});({promise:t,resolve:r}=S()),yield i}}(),{signal:o});return{value:s,write(e,t,n){const i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){const t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return E(k,e,{objectMode:!0,write:i,final:o,destroy:s});const l=null==e?void 0:e.then;if("function"==typeof l){let t;const r=O(l,e,(e=>{if(null!=e)throw new y("nully","body",e)}),(e=>{m(t,e)}));return t=new k({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}}))},destroy:s})}throw new y("Iterable, AsyncIterable or AsyncFunction",r,e)}if(R(t))return e(t.arrayBuffer());if(a(t))return E(k,t,{objectMode:!0,writable:!1});if(h(null==t?void 0:t.readable)&&d(null==t?void 0:t.writable))return k.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable)){return T({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0})}const i=null==t?void 0:t.then;if("function"==typeof i){let e;return O(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{m(e,t)})),e=new k({objectMode:!0,writable:!1,read(){}})}throw new _(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},(e,t,r)=>{var n=r(10).inherits,i=r(101),{CRC32Stream:o}=r(206),{DeflateCRC32Stream:s}=r(206),a=r(165),l=(r(162),r(163),r(164)),c=(r(171),r(97)),u=e.exports=function(e){if(!(this instanceof u))return new u(e);e=this.options=this._defaults(e),a.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(u,a),u.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(e,t,r){0===t.length&&e.setMethod(l.METHOD_STORED);var n=e.getMethod();return n===l.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(i.buf(t)>>>0)),this._writeLocalFileHeader(e),n===l.METHOD_STORED?(this.write(t),this._afterAppend(e),void r(null,e)):n===l.METHOD_DEFLATED?void this._smartStream(e,r).end(t):void r(new Error("compression method "+n+" not implemented"))},u.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var n=this._smartStream(e,r);t.once("error",(function(e){n.emit("error",e),n.end()})),t.pipe(n)},u.prototype._defaults=function(e){return"object"!=typeof e&&(e={}),"object"!=typeof e.zlib&&(e.zlib={}),"number"!=typeof e.zlib.level&&(e.zlib.level=l.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},u.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._normalizeEntry=function(e){-1===e.getMethod()&&e.setMethod(l.METHOD_DEFLATED),e.getMethod()===l.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR)),-1===e.getTime()&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(e,t){var r=e.getMethod()===l.METHOD_DEFLATED?new s(this.options.zlib):new o,n=null;return r.once("end",function(){var i=r.digest().readUInt32BE(0);e.setCrc(i),e.setSize(r.size()),e.setCompressedSize(r.size(!0)),this._afterAppend(e),t(n,e)}.bind(this)),r.once("error",(function(e){n=e})),r.pipe(this,{end:!1}),r},u.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(e=l.ZIP64_MAGIC_SHORT,t=l.ZIP64_MAGIC,r=l.ZIP64_MAGIC),this.write(c.getLongBytes(l.SIG_EOCD)),this.write(l.SHORT_ZERO),this.write(l.SHORT_ZERO),this.write(c.getShortBytes(e)),this.write(c.getShortBytes(e)),this.write(c.getLongBytes(t)),this.write(c.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(c.getShortBytes(i)),this.write(n)},u.prototype._writeCentralDirectoryZip64=function(){this.write(c.getLongBytes(l.SIG_ZIP64_EOCD)),this.write(c.getEightBytes(44)),this.write(c.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(c.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(c.getEightBytes(this._entries.length)),this.write(c.getEightBytes(this._entries.length)),this.write(c.getEightBytes(this._archive.centralLength)),this.write(c.getEightBytes(this._archive.centralOffset)),this.write(c.getLongBytes(l.SIG_ZIP64_EOCD_LOC)),this.write(l.LONG_ZERO),this.write(c.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(c.getLongBytes(1))},u.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e._offsets.file,i=e.getSize(),o=e.getCompressedSize();if(e.isZip64()||n>l.ZIP64_MAGIC){i=l.ZIP64_MAGIC,o=l.ZIP64_MAGIC,n=l.ZIP64_MAGIC,e.setVersionNeededToExtract(l.MIN_VERSION_ZIP64);var s=Buffer.concat([c.getShortBytes(l.ZIP64_EXTRA_ID),c.getShortBytes(24),c.getEightBytes(e.getSize()),c.getEightBytes(e.getCompressedSize()),c.getEightBytes(e._offsets.file)],28);e.setExtra(s)}this.write(c.getLongBytes(l.SIG_CFH)),this.write(c.getShortBytes(e.getPlatform()<<8|l.VERSION_MADEBY)),this.write(c.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(c.getShortBytes(r)),this.write(c.getLongBytes(e.getTimeDos())),this.write(c.getLongBytes(e.getCrc())),this.write(c.getLongBytes(o)),this.write(c.getLongBytes(i));var a=e.getName(),u=e.getComment(),f=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(a=Buffer.from(a),u=Buffer.from(u)),this.write(c.getShortBytes(a.length)),this.write(c.getShortBytes(f.length)),this.write(c.getShortBytes(u.length)),this.write(l.SHORT_ZERO),this.write(c.getShortBytes(e.getInternalAttributes())),this.write(c.getLongBytes(e.getExternalAttributes())),this.write(c.getLongBytes(n)),this.write(a),this.write(f),this.write(u)},u.prototype._writeDataDescriptor=function(e){this.write(c.getLongBytes(l.SIG_DD)),this.write(c.getLongBytes(e.getCrc())),e.isZip64()?(this.write(c.getEightBytes(e.getCompressedSize())),this.write(c.getEightBytes(e.getSize()))):(this.write(c.getLongBytes(e.getCompressedSize())),this.write(c.getLongBytes(e.getSize())))},u.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(l.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(n=Buffer.from(n)),e._offsets.file=this.offset,this.write(c.getLongBytes(l.SIG_LFH)),this.write(c.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(c.getShortBytes(r)),this.write(c.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO)):(this.write(c.getLongBytes(e.getCrc())),this.write(c.getLongBytes(e.getCompressedSize())),this.write(c.getLongBytes(e.getSize()))),this.write(c.getShortBytes(n.length)),this.write(c.getShortBytes(i.length)),this.write(n),this.write(i),e._offsets.contents=this.offset},u.prototype.getComment=function(e){return null!==this._archive.comment?this._archive.comment:""},u.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>l.ZIP64_MAGIC_SHORT||this._archive.centralLength>l.ZIP64_MAGIC||this._archive.centralOffset>l.ZIP64_MAGIC},u.prototype.setComment=function(e){this._archive.comment=e}},(e,t,r)=>{const{Transform:n}=r(207),i=r(101);e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}},(e,t,r)=>{const{Buffer:n}=r(0),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=r(7),{promisify:{custom:a}}=r(20),{streamReturningOperators:l,promiseReturningOperators:c}=r(377),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r(15),f=r(172),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:d}=r(76),{pipeline:p}=r(102),{destroyer:b}=r(43),_=r(31),y=r(176),m=r(27),g=e.exports=r(103).Stream;g.isDestroyed=m.isDestroyed,g.isDisturbed=m.isDisturbed,g.isErrored=m.isErrored,g.isReadable=m.isReadable,g.isWritable=m.isWritable,g.Readable=r(74);for(const v of o(l)){const S=l[v];function E(...e){if(new.target)throw u();return g.Readable.from(s(S,this,e))}i(E,"name",{__proto__:null,value:S.name}),i(E,"length",{__proto__:null,value:S.length}),i(g.Readable.prototype,v,{__proto__:null,value:E,enumerable:!1,configurable:!0,writable:!0})}for(const x of o(c)){const R=c[x];function A(...e){if(new.target)throw u();return s(R,this,e)}i(A,"name",{__proto__:null,value:R.name}),i(A,"length",{__proto__:null,value:R.length}),i(g.Readable.prototype,x,{__proto__:null,value:A,enumerable:!1,configurable:!0,writable:!0})}g.Writable=r(104),g.Duplex=r(35),g.Transform=r(175),g.PassThrough=r(174),g.pipeline=p;const{addAbortSignal:w}=r(75);g.addAbortSignal=w,g.finished=_,g.destroy=b,g.compose=f,g.setDefaultHighWaterMark=h,g.getDefaultHighWaterMark=d,i(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(_,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},(e,t,r)=>{const{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=r(7),{Buffer:a}=r(0),{inspect:l}=r(20);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let r=this.head,n=0;for(;r;)o(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){const r=this.head.data;if(e<r.length){const t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{const o=r.data;if(!(e>o.length)){e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}t+=o,e-=o.length,++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),r=e;let n=this.head,i=0;do{const a=n.data;if(!(e>a.length)){e===a.length?(o(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}o(t,a,r-e),e-=a.length,++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},(e,t,r)=>{const n=r(1),i=r(0),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:f,isReadableStream:h,isWritableStream:d}=r(27),p=r(31),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:_,ERR_INVALID_RETURN_VALUE:y}}=r(15),{destroyer:m}=r(43),g=r(35),w=r(74),v=r(104),{createDeferredPromise:S}=r(20),E=r(173),x=globalThis.Blob||i.Blob,R=void 0!==x?function(e){return e instanceof x}:function(e){return!1},A=globalThis.AbortController||r(8).AbortController,{FunctionPrototypeCall:O}=r(7);class k extends g{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(e){const t=e.readable&&"function"!=typeof e.readable.read?w.wrap(e.readable):e.readable,r=e.writable;let n,i,a,l,c,u=!!o(t),f=!!s(r);function h(e){const t=l;l=null,t?t(e):e&&c.destroy(e)}return c=new k({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==r||!r.writableObjectMode),readable:u,writable:f}),f&&(p(r,(e=>{f=!1,e&&m(t,e),h(e)})),c._write=function(e,t,i){r.write(e,t)?i():n=i},c._final=function(e){r.end(),i=e},r.on("drain",(function(){if(n){const e=n;n=null,e()}})),r.on("finish",(function(){if(i){const e=i;i=null,e()}}))),u&&(p(t,(e=>{u=!1,e&&m(t,e),h(e)})),t.on("readable",(function(){if(a){const e=a;a=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(a=c._read);if(!c.push(e))return}}),c._destroy=function(e,o){e||null===l||(e=new b),a=null,n=null,i=null,null===l?o(e):(l=o,m(r,e),m(t,e))},c}e.exports=function e(t,r){if(f(t))return t;if(c(t))return T({readable:t});if(u(t))return T({writable:t});if(l(t))return T({writable:!1,readable:!1});if(h(t))return T({readable:w.fromWeb(t)});if(d(t))return T({writable:v.fromWeb(t)});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:r}=S();const i=new A,o=i.signal,s=e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(n.nextTick(a),s)return;if(o.aborted)throw new b(void 0,{cause:o.reason});({promise:t,resolve:r}=S()),yield i}}(),{signal:o});return{value:s,write(e,t,n){const i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){const t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return E(k,e,{objectMode:!0,write:i,final:o,destroy:s});const l=null==e?void 0:e.then;if("function"==typeof l){let t;const r=O(l,e,(e=>{if(null!=e)throw new y("nully","body",e)}),(e=>{m(t,e)}));return t=new k({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}}))},destroy:s})}throw new y("Iterable, AsyncIterable or AsyncFunction",r,e)}if(R(t))return e(t.arrayBuffer());if(a(t))return E(k,t,{objectMode:!0,writable:!1});if(h(null==t?void 0:t.readable)&&d(null==t?void 0:t.writable))return k.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable)){return T({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0})}const i=null==t?void 0:t.then;if("function"==typeof i){let e;return O(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{m(e,t)})),e=new k({objectMode:!0,writable:!1,read(){}})}throw new _(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},(e,t,r)=>{const{DeflateRaw:n}=r(105),i=r(101);e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,t){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}},(e,t,r)=>{var n=r(21),i=r(3),o=r(126),s=r(84),a=r(132),l=r(16).Stream,c=r(196).PassThrough,u=e.exports={};u.file=r(312),u.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",(function(e){r.push(e),n+=e.length})),e.on("end",(function(){var e=Buffer.alloc(n),i=0;r.forEach((function(t){t.copy(e,i),i+=t.length})),t(null,e)}))},u.dateify=function(e){return(e=e||new Date)instanceof Date||(e="string"==typeof e?new Date(e):new Date),e},u.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},a(...n)},u.isStream=function(e){return e instanceof l},u.lazyReadStream=function(e){return new o.Readable((function(){return n.createReadStream(e)}))},u.normalizeInputSource=function(e){return null===e?Buffer.alloc(0):"string"==typeof e?Buffer.from(e):u.isStream(e)?e.pipe(new c):e},u.sanitizePath=function(e){return s(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},u.trailingSlashIt=function(e){return"/"!==e.slice(-1)?e+"/":e},u.unixifyPath=function(e){return s(e,!1).replace(/^\w+:/,"")},u.walkdir=function(e,t,r){var o=[];"function"==typeof t&&(r=t,t=e),n.readdir(e,(function(s,a){var l,c,f=0;if(s)return r(s);!function s(){if(!(l=a[f++]))return r(null,o);c=i.join(e,l),n.stat(c,(function(e,n){o.push({path:c,relative:i.relative(t,c).replace(/\\/g,"/"),stats:n}),n&&n.isDirectory()?u.walkdir(c,t,(function(e,t){if(e)return r(e);t.forEach((function(e){o.push(e)})),s()})):s()}))}()}))}},(e,t,r)=>{e.exports=r(2).EventEmitter},(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=r(0).Buffer,c=r(10).inspect,u=c&&c.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,i=l.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,l.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},(e,t,r)=>{var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(106),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[u]=null,e[s]=null,e[a]=null,t(d(r,!1)))}}function b(e){process.nextTick(p,e)}var _=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[l]?r(e[l]):t(d(void 0,!0))}))}));var r,n=this[u];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(d(void 0,!0)):t[f](r,n)}),n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[f])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),n),_);e.exports=function(e){var t,r=Object.create(y,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read();n?(r[u]=null,r[s]=null,r[a]=null,e(d(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[u]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[u]=null,r[s]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[u]=null,r[s]=null,r[a]=null,n(d(void 0,!0))),r[c]=!0})),e.on("readable",b.bind(null,r)),r}},e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},(e,t,r)=>{e.exports=i;var n=r(181);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(22)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},(e,t,r)=>{var n;var i=r(51).F,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var u,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(106)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var l=!1;return function(t){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}(e,o,i>0,(function(e){u||(u=e),e&&h.forEach(l),o||(h.forEach(l),f(u))}))}));return t.reduce(c)}},(e,t,r)=>{var n=r(21),i=r(3),o=r(146),s=r(147),a=r(153),l=r(155),c=r(191),u=e.exports={},f=/[\/\\]/g;u.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)},u.expand=function(...e){var t=l(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(0===r.length)return[];var u=function(e,t){var r=[];return o(e).forEach((function(e){var n=0===e.indexOf("!");n&&(e=e.slice(1));var i=t(e);r=n?s(r,i):a(r,i)})),r}(r,(function(e){return c.sync(e,t)}));return t.filter&&(u=u.filter((function(e){e=i.join(t.cwd||"",e);try{return"function"==typeof t.filter?t.filter(e):n.statSync(e)[t.filter]()}catch(e){return!1}}))),u},u.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[],o={};return u.expand(r,e).forEach((function(e){var s=e;r.flatten&&(s=i.basename(s)),r.ext&&(s=s.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(t,s,r);r.cwd&&(e=i.join(r.cwd,e)),a=a.replace(f,"/"),e=e.replace(f,"/"),o[a]?o[a].src.push(e):(n.push({src:[e],dest:a}),o[a]=n[n.length-1])})),n},u.normalizeFilesArray=function(e){var t=[];return e.forEach((function(e){("src"in e||"dest"in e)&&t.push(e)})),0===t.length?[]:t=_(t).chain().forEach((function(e){"src"in e&&e.src&&(Array.isArray(e.src)?e.src=o(e.src):e.src=[e.src])})).map((function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);return r.orig=Object.assign({},e),r.src=t.src,r.dest=t.dest,["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]})),r}));var r=Object.assign({},e);return r.orig=Object.assign({},e),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=e.src,n=Array.isArray(n)?o(n):[n],r.result=u.expand(t,n)),r.result}}),"dest"in r&&(r.dest=e.dest),r})).flatten().value()}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;const n=r(38);class i{#Y;#Z;#Q;length;#X;#J;#ee;#te;#re;#ne;#ie=!0;constructor(e,t,r,n){if(!(e.length>=1))throw new TypeError("empty pattern list");if(!(t.length>=1))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#Y=e,this.#Z=t,this.#Q=r,this.#X=n,0===this.#Q)if(this.isUNC()){const[e,t,r,n,...i]=this.#Y,[o,s,a,l,...c]=this.#Z;""===i[0]&&(i.shift(),c.shift());const u=[e,t,r,n,""].join("/"),f=[o,s,a,l,""].join("/");this.#Y=[u,...i],this.#Z=[f,...c],this.length=this.#Y.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#Y,[r,...n]=this.#Z;""===t[0]&&(t.shift(),n.shift());const i=e+"/",o=r+"/";this.#Y=[i,...t],this.#Z=[o,...n],this.length=this.#Y.length}}pattern(){return this.#Y[this.#Q]}isString(){return"string"==typeof this.#Y[this.#Q]}isGlobstar(){return this.#Y[this.#Q]===n.GLOBSTAR}isRegExp(){return this.#Y[this.#Q]instanceof RegExp}globString(){return this.#ee=this.#ee||(0===this.#Q?this.isAbsolute()?this.#Z[0]+this.#Z.slice(1).join("/"):this.#Z.join("/"):this.#Z.slice(this.#Q).join("/"))}hasMore(){return this.length>this.#Q+1}rest(){return void 0!==this.#J?this.#J:this.hasMore()?(this.#J=new i(this.#Y,this.#Z,this.#Q+1,this.#X),this.#J.#ne=this.#ne,this.#J.#re=this.#re,this.#J.#te=this.#te,this.#J):this.#J=null}isUNC(){const e=this.#Y;return void 0!==this.#re?this.#re:this.#re="win32"===this.#X&&0===this.#Q&&""===e[0]&&""===e[1]&&"string"==typeof e[2]&&!!e[2]&&"string"==typeof e[3]&&!!e[3]}isDrive(){const e=this.#Y;return void 0!==this.#te?this.#te:this.#te="win32"===this.#X&&0===this.#Q&&this.length>1&&"string"==typeof e[0]&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#Y;return void 0!==this.#ne?this.#ne:this.#ne=""===e[0]&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#Y[0];return"string"==typeof e&&this.isAbsolute()&&0===this.#Q?e:""}checkFollowGlobstar(){return!(0===this.#Q||!this.isGlobstar()||!this.#ie)}markFollowGlobstar(){return!(0===this.#Q||!this.isGlobstar()||!this.#ie)&&(this.#ie=!1,!0)}}t.Pattern=i},(e,t,r)=>{
|
|
56
|
+
/**
|
|
57
|
+
* TAR Format Plugin
|
|
58
|
+
*
|
|
59
|
+
* @module plugins/tar
|
|
60
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
61
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
62
|
+
*/
|
|
63
|
+
var n=r(105),i=r(383),o=r(56),s=function(e){if(!(this instanceof s))return new s(e);"object"!=typeof(e=this.options=o.defaults(e,{gzip:!1})).gzipOptions&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(e),this.compressor=!1,e.gzip&&(this.compressor=n.createGzip(e.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};s.prototype._onCompressorError=function(e){this.engine.emit("error",e)},s.prototype.append=function(e,t,r){var n=this;function i(e,i){e?r(e):n.engine.entry(t,i,(function(e){r(e,t)}))}if(t.mtime=t.date,"buffer"===t.sourceType)i(null,e);else if("stream"===t.sourceType&&t.stats){t.size=t.stats.size;var s=n.engine.entry(t,(function(e){r(e,t)}));e.pipe(s)}else"stream"===t.sourceType&&o.collectStream(e,i)},s.prototype.finalize=function(){this.engine.finalize()},s.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},s.prototype.pipe=function(e,t){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)},s.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},e.exports=s},(e,t,r)=>{const{Writable:n,Readable:i,getStreamError:o}=r(182),s=r(183),a=r(81),l=r(323),c=a.alloc(0);class u{constructor(){this.buffered=0,this.shifted=0,this.queue=new s,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this._buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return c;let t=this._next(e);if(e===t.byteLength)return t;const r=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),r.push(t);return a.concat(r)}_next(e){const t=this.queue.peek(),r=t.byteLength-this._offset;if(e>=r){const e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class f extends i{constructor(e,t,r){super(),this.header=t,this.offset=r,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(o(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=p(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class h extends n{constructor(e){super(e),e||(e={}),this._buffer=new u,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=d,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e)return this.destroy(e),void this._continueWrite(e);this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?l.decodePax(e):Object.assign({},this._paxGlobal,l.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=p(this._header.size);const e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){const e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;const t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new f(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;)if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}const e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength)}else{if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){const t=this._callback;this._callback=d,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(o(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,r=null,n=null,i=null;const o=this;return this.on("entry",(function(e,o,s){i=s,o.on("error",d),t?(t({value:o,done:!1}),t=r=null):n=o})),this.on("error",(t=>{e=t})),this.on("close",(function(){if(s(e),!t)return;e?r(e):t({value:void 0,done:!0});t=r=null})),{[Symbol.asyncIterator](){return this},next:()=>new Promise(a),return:()=>l(null),throw:e=>l(e)};function s(e){if(!i)return;const t=i;i=null,t(e)}function a(i,a){return e?a(e):n?(i({value:n,done:!1}),void(n=null)):(t=i,r=a,s(null),void(o._finished&&t&&(t({value:void 0,done:!0}),t=r=null)))}function l(e){return o.destroy(e),s(e),new Promise(((t,r)=>{if(o.destroyed)return t({value:void 0,done:!0});o.once("close",(function(){e?r(e):t({value:void 0,done:!0})}))}))}}}function d(){}function p(e){return(e&=511)&&512-e}e.exports=function(e){return new h(e)}},e=>{e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)},e=>{e.exports=class{constructor(e){if(!(e>0)||e-1&e)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){const e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},e=>{function t(e){return e.length}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},write:function(e,r,n=0,i=t(r)){const o=Math.min(i,e.byteLength-n);for(let t=0;t<o;t++)e[n+t]=r.charCodeAt(t);return o}}},e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256);for(let e=0;e<64;e++)r[t.charCodeAt(e)]=e;function n(e){let t=e.length;return 61===e.charCodeAt(t-1)&&t--,t>1&&61===e.charCodeAt(t-1)&&t--,3*t>>>2}r[45]=62,r[95]=63,e.exports={byteLength:n,toString:function(e){const r=e.byteLength;let n="";for(let i=0;i<r;i+=3)n+=t[e[i]>>2]+t[(3&e[i])<<4|e[i+1]>>4]+t[(15&e[i+1])<<2|e[i+2]>>6]+t[63&e[i+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n},write:function(e,t,i=0,o=n(t)){const s=Math.min(o,e.byteLength-i);for(let n=0,i=0;i<s;n+=4){const o=r[t.charCodeAt(n)],s=r[t.charCodeAt(n+1)],a=r[t.charCodeAt(n+2)],l=r[t.charCodeAt(n+3)];e[i++]=o<<2|s>>4,e[i++]=(15&s)<<4|a>>2,e[i++]=(3&a)<<6|63&l}return s}}},e=>{function t(e){return e.length>>>1}function r(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:void 0}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;e=new DataView(e.buffer,e.byteOffset,t);let r="",n=0;for(let i=t-t%4;n<i;n+=4)r+=e.getUint32(n).toString(16).padStart(8,"0");for(;n<t;n++)r+=e.getUint8(n).toString(16).padStart(2,"0");return r},write:function(e,n,i=0,o=t(n)){const s=Math.min(o,e.byteLength-i);for(let t=0;t<s;t++){const o=r(n.charCodeAt(2*t)),s=r(n.charCodeAt(2*t+1));if(void 0===o||void 0===s)return e.subarray(0,t);e[i+t]=o<<4|s}return s}}},e=>{function t(e){let t=0;for(let r=0,n=e.length;r<n;r++){const i=e.charCodeAt(r);if(i>=55296&&i<=56319&&r+1<n){const n=e.charCodeAt(r+1);if(n>=56320&&n<=57343){t+=4,r++;continue}}t+=i<=127?1:i<=2047?2:3}return t}let r,n;if("undefined"!=typeof TextDecoder){const e=new TextDecoder;r=function(t){return e.decode(t)}}else r=function(e){const t=e.byteLength;let r="",n=0;for(;n<t;){let i=e[n];if(i<=127){r+=String.fromCharCode(i),n++;continue}let o=0,s=0;if(i<=223?(o=1,s=31&i):i<=239?(o=2,s=15&i):i<=244&&(o=3,s=7&i),t-n-o>0){let t=0;for(;t<o;)i=e[n+t+1],s=s<<6|63&i,t+=1}else s=65533,o=t-n;r+=String.fromCodePoint(s),n+=o+1}return r};if("undefined"!=typeof TextEncoder){const e=new TextEncoder;n=function(r,n,i=0,o=t(n)){const s=Math.min(o,r.byteLength-i);return e.encodeInto(n,r.subarray(i,i+s)),s}}else n=function(e,r,n=0,i=t(r)){const o=Math.min(i,e.byteLength-n);e=e.subarray(n,n+o);let s=0,a=0;for(;s<r.length;){const t=r.codePointAt(s);if(t<=127){e[a++]=t,s++;continue}let n=0,i=0;for(t<=2047?(n=6,i=192):t<=65535?(n=12,i=224):t<=2097151&&(n=18,i=240),e[a++]=i|t>>n,n-=6;n>=0;)e[a++]=128|t>>n&63,n-=6;s+=t>=65536?2:1}return o};e.exports={byteLength:t,toString:r,write:n}},e=>{function t(e){return 2*e.length}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;let r="";for(let n=0;n<t-1;n+=2)r+=String.fromCharCode(e[n]+256*e[n+1]);return r},write:function(e,r,n=0,i=t(r)){const o=Math.min(i,e.byteLength-n);let s=o;for(let t=0;t<r.length&&!((s-=2)<0);++t){const i=r.charCodeAt(t),o=i>>8,s=i%256;e[n+2*t]=s,e[n+2*t+1]=o}return o}}},(e,t,r)=>{const n=r(81),i="0".charCodeAt(0),o=n.from([117,115,116,97,114,0]),s=n.from([i,i]),a=n.from([117,115,116,97,114,32]),l=n.from([32,0]),c=257,u=263;function f(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n}function h(e){let t=256;for(let r=0;r<148;r++)t+=e[r];for(let r=156;r<512;r++)t+=e[r];return t}function d(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function p(e,t,r){if(128&(e=e.subarray(t,t+r))[t=0])return function(e){let t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}const r=[];let n;for(n=e.length-1;n>0;n--){const i=e[n];t?r.push(i):r.push(255-i)}let i=0;const o=r.length;for(n=0;n<o;n++)i+=r[n]*Math.pow(256,n);return t?i:-1*i}(e);{for(;t<e.length&&32===e[t];)t++;const r=(i=f(e,32,t,e.length),o=e.length,s=e.length,"number"!=typeof i?s:(i=~~i)>=o?o:i>=0||(i+=o)>=0?i:0);for(;t<r&&0===e[t];)t++;return r===t?0:parseInt(n.toString(e.subarray(t,r)),8)}var i,o,s}function b(e,t,r,i){return n.toString(e.subarray(t,f(e,0,t,t+r)),i)}function _(e){const t=n.byteLength(e);let r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e}t.decodeLongPath=function(e,t){return b(e,0,e.length,t)},t.encodePax=function(e){let t="";e.name&&(t+=_(" path="+e.name+"\n")),e.linkname&&(t+=_(" linkpath="+e.linkname+"\n"));const r=e.pax;if(r)for(const e in r)t+=_(" "+e+"="+r[e]+"\n");return n.from(t)},t.decodePax=function(e){const t={};for(;e.length;){let r=0;for(;r<e.length&&32!==e[r];)r++;const i=parseInt(n.toString(e.subarray(0,r)),10);if(!i)return t;const o=n.toString(e.subarray(r+1,i-1)),s=o.indexOf("=");if(-1===s)return t;t[o.slice(0,s)]=o.slice(s+1),e=e.subarray(i)}return t},t.encode=function(e){const t=n.alloc(512);let r=e.name,a="";if(5===e.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){const e=r.indexOf("/");if(-1===e)return null;a+=a?"/"+r.slice(0,e):r.slice(0,e),r=r.slice(e+1)}return n.byteLength(r)>100||n.byteLength(a)>155||e.linkname&&n.byteLength(e.linkname)>100?null:(n.write(t,r),n.write(t,d(4095&e.mode,6),100),n.write(t,d(e.uid,6),108),n.write(t,d(e.gid,6),116),function(e,t,r){e.toString(8).length>11?function(e,t,r){t[r]=128;for(let n=11;n>0;n--)t[r+n]=255&e,e=Math.floor(e/256)}(e,t,r):n.write(t,d(e,11),r)}(e.size,t,124),n.write(t,d(e.mtime.getTime()/1e3|0,11),136),t[156]=i+function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(e.type),e.linkname&&n.write(t,e.linkname,157),n.copy(o,t,c),n.copy(s,t,263),e.uname&&n.write(t,e.uname,265),e.gname&&n.write(t,e.gname,297),n.write(t,d(e.devmajor||0,6),329),n.write(t,d(e.devminor||0,6),337),a&&n.write(t,a,345),n.write(t,d(h(t),6),148),t)},t.decode=function(e,t,r){let s=0===e[156]?0:e[156]-i,f=b(e,0,100,t);const d=p(e,100,8),_=p(e,108,8),y=p(e,116,8),m=p(e,124,12),g=p(e,136,12),w=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}(s),v=0===e[157]?null:b(e,157,100,t),S=b(e,265,32),E=b(e,297,32),x=p(e,329,8),R=p(e,337,8),A=h(e);if(256===A)return null;if(A!==p(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(function(e){return n.equals(o,e.subarray(c,263))}(e))e[345]&&(f=b(e,345,155,t)+"/"+f);else if(function(e){return n.equals(a,e.subarray(c,263))&&n.equals(l,e.subarray(u,265))}(e));else if(!r)throw new Error("Invalid tar header: unknown format.");return 0===s&&f&&"/"===f[f.length-1]&&(s=5),{name:f,mode:d,uid:_,gid:y,size:m,mtime:new Date(1e3*g),type:w,linkname:v,uname:S,gname:E,devmajor:x,devminor:R,pax:null}}},(e,t,r)=>{const{Readable:n,Writable:i,getStreamError:o}=r(182),s=r(81),a=r(210),l=r(323),c=s.alloc(1024);class u extends i{constructor(e,t,r){super({mapWritable:p,eagerOpen:!0}),this.written=0,this.header=t,this._callback=r,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;const t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);const e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?s.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(new Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e)?t():void(this._pack._drain=t))}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?s.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),d(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return o(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class f extends n{constructor(e){super(e),this._drain=h,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");"function"==typeof t&&(r=t,t=null),r||(r=h),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=s.from(t));const n=new u(this,e,r);return s.isBuffer(t)?(e.size=t.byteLength,n.write(t),n.end(),n):(n._isVoid,n)}finalize(){this._stream||this._pending.length>0?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(c),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){const t=l.encode(e);if(t)return void this.push(t)}this._encodePax(e)}_encodePax(e){const t=l.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(l.encode(r)),this.push(t),d(this,t.byteLength),r.size=e.size,r.type=e.type,this.push(l.encode(r))}_doDrain(){const e=this._drain;this._drain=h,e()}_predestroy(){const e=o(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){const t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function h(){}function d(e,t){(t&=511)&&e.push(c.subarray(0,512-t))}function p(e){return s.isBuffer(e)?e:s.from(e)}e.exports=function(e){return new f(e)}},(e,t,r)=>{
|
|
64
|
+
/**
|
|
65
|
+
* JSON Format Plugin
|
|
66
|
+
*
|
|
67
|
+
* @module plugins/json
|
|
68
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
69
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
70
|
+
*/
|
|
71
|
+
var n=r(10).inherits,i=r(123).Transform,o=r(326),s=r(56),a=function(e){if(!(this instanceof a))return new a(e);e=this.options=s.defaults(e,{}),i.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[]};n(a,i),a.prototype._transform=function(e,t,r){r(null,e)},a.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)},a.prototype.append=function(e,t,r){var n=this;function i(e,i){e?r(e):(t.size=i.length||0,t.crc32=o.unsigned(i),n.files.push(t),r(null,t))}t.crc32=0,"buffer"===t.sourceType?i(null,e):"stream"===t.sourceType&&s.collectStream(e,i)},a.prototype.finalize=function(){this._writeStringified(),this.end()},e.exports=a},e=>{function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function n(e){if(Buffer.isBuffer(e))return e;if("number"==typeof e)return Buffer.alloc(e);if("string"==typeof e)return Buffer.from(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function i(e,t){e=n(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let i=~t;for(var o=0;o<e.length;o++)i=r[255&(i^e[o])]^i>>>8;return~i}function o(){return function(e){const t=n(4);return t.writeInt32BE(e,0),t}(i.apply(null,arguments))}o.signed=function(){return i.apply(null,arguments)},o.unsigned=function(){return i.apply(null,arguments)>>>0};const s=t(o);e.exports=s},(e,t,r)=>{const n=r(16);function i(){if(!(this instanceof i))return new i;n.Transform.call(this)}r(10).inherits(i,n.Transform),i.prototype._transform=function(e,t,r){r()},e.exports=i},(e,t,r)=>{const n=r(16),i=r(107),o=r(184),s=r(109);e.exports=function(e,t){const r=n.PassThrough({objectMode:!0}),a=n.PassThrough(),l=n.Transform({objectMode:!0}),c=e instanceof RegExp?e:e&&new RegExp(e);let u;l._transform=function(e,t,r){if(u||c&&!c.exec(e.path))return e.autodrain(),r();u=!0,f.emit("entry",e),e.on("error",(function(e){a.emit("error",e)})),e.pipe(a).on("error",(function(e){r(e)})).on("finish",(function(e){r(null,e)}))},r.pipe(i(t)).on("error",(function(e){a.emit("error",e)})).pipe(l).on("error",Object).on("finish",(function(){u?a.end():a.emit("error",new Error("PATTERN_NOT_FOUND"))}));const f=o(r,a);return f.buffer=function(){return s(a)},f}},(e,t,r)=>{e.exports=function(e){e.path=o.resolve(o.normalize(e.path));const t=new n(e),r=new s.Writable({objectMode:!0});r._write=async function(t,r,n){const s=o.join(e.path,t.path.replace(/\\/g,"/"));if(0!=s.indexOf(e.path))return n();if("Directory"==t.type)return await i.ensureDir(s),n();await i.ensureDir(o.dirname(s));const a=e.getWriter?e.getWriter({path:s}):i.createWriteStream(s);t.pipe(a).on("error",n).on("close",n)};const l=a(t,r);return t.once("crx-header",(function(e){l.crxHeader=e})),t.pipe(r).on("finish",(function(){l.emit("close")})),l.promise=function(){return new Promise((function(e,t){l.on("close",e),l.on("error",t)}))},l};const n=r(107),i=r(185),o=r(3),s=r(16),a=r(184)},(e,t,r)=>{const n=r(11),i=r(3),{mkdirs:o}=r(23),{pathExists:s}=r(36),{utimesMillis:a}=r(186),l=r(44);async function c(e,t,r){return!r.filter||r.filter(e,t)}async function u(e,t,r,o){const s=o.dereference?n.stat:n.lstat,a=await s(t);if(a.isDirectory())return async function(e,t,r,o,s){t||await n.mkdir(o);const a=await n.readdir(r);await Promise.all(a.map((async e=>{const t=i.join(r,e),n=i.join(o,e);if(!await c(t,n,s))return;const{destStat:a}=await l.checkPaths(t,n,"copy",s);return u(a,t,n,s)}))),t||await n.chmod(o,e.mode)}(a,e,t,r,o);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return async function(e,t,r,i,o){if(!t)return f(e,r,i,o);if(o.overwrite)return await n.unlink(i),f(e,r,i,o);if(o.errorOnExist)throw new Error(`'${i}' already exists`)}(a,e,t,r,o);if(a.isSymbolicLink())return async function(e,t,r,o){let s=await n.readlink(t);o.dereference&&(s=i.resolve(process.cwd(),s));if(!e)return n.symlink(s,r);let a=null;try{a=await n.readlink(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlink(s,r);throw e}o.dereference&&(a=i.resolve(process.cwd(),a));if(l.isSrcSubdir(s,a))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(l.isSrcSubdir(a,s))throw new Error(`Cannot overwrite '${a}' with '${s}'.`);return await n.unlink(r),n.symlink(s,r)}(e,t,r,o);if(a.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(a.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function f(e,t,r,i){if(await n.copyFile(t,r),i.preserveTimestamps){128&e.mode||await function(e,t){return n.chmod(e,128|t)}(r,e.mode);const i=await n.stat(t);await a(r,i.atime,i.mtime)}return n.chmod(r,e.mode)}e.exports=async function(e,t,r={}){"function"==typeof r&&(r={filter:r}),r.clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:n,destStat:a}=await l.checkPaths(e,t,"copy",r);if(await l.checkParentPaths(e,n,t,"copy"),!await c(e,t,r))return;const f=i.dirname(t);await s(f)||await o(f),await u(a,e,t,r)}},(e,t,r)=>{const n=r(21),i=r(3),o=r(23).mkdirsSync,s=r(186).utimesMillisSync,a=r(44);function l(e,t,r,o){const s=(o.dereference?n.statSync:n.lstatSync)(t);if(s.isDirectory())return function(e,t,r,i,o){return t?f(r,i,o):function(e,t,r,i){return n.mkdirSync(r),f(t,r,i),u(r,e)}(e.mode,r,i,o)}(s,e,t,r,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,r,i,o){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),c(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,o):c(e,r,i,o)}(s,e,t,r,o);if(s.isSymbolicLink())return function(e,t,r,o){let s=n.readlinkSync(t);o.dereference&&(s=i.resolve(process.cwd(),s));if(e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(s,r);throw e}if(o.dereference&&(e=i.resolve(process.cwd(),e)),a.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(a.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(s,r)}return n.symlinkSync(s,r)}(e,t,r,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function c(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){u(e,128|t)}(r,e);(function(e,t){const r=n.statSync(e);s(t,r.atime,r.mtime)})(t,r)}(e.mode,t,r),u(r,e.mode)}function u(e,t){return n.chmodSync(e,t)}function f(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const o=i.join(t,e),s=i.join(r,e);if(n.filter&&!n.filter(o,s))return;const{destStat:c}=a.checkPathsSync(o,s,"copy",n);return l(c,o,s,n)}(n,e,t,r)))}e.exports=function(e,t,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:s,destStat:c}=a.checkPathsSync(e,t,"copy",r);if(a.checkParentPathsSync(e,s,t,"copy"),r.filter&&!r.filter(e,t))return;const u=i.dirname(t);return n.existsSync(u)||o(u),l(c,e,t,r)}},(e,t,r)=>{const n=r(9).fromPromise,i=r(11),o=r(3),s=r(23),a=r(78),l=n((async function(e){let t;try{t=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>a.remove(o.join(e,t)))))}));function c(e){let t;try{t=i.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t),a.removeSync(t)}))}e.exports={emptyDirSync:c,emptydirSync:c,emptyDir:l,emptydir:l}},(e,t,r)=>{const{createFile:n,createFileSync:i}=r(334),{createLink:o,createLinkSync:s}=r(335),{createSymlink:a,createSymlinkSync:l}=r(336);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:o,createLinkSync:s,ensureLink:o,ensureLinkSync:s,createSymlink:a,createSymlinkSync:l,ensureSymlink:a,ensureSymlinkSync:l}},(e,t,r)=>{const n=r(9).fromPromise,i=r(3),o=r(11),s=r(23);e.exports={createFile:n((async function(e){let t;try{t=await o.stat(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);let n=null;try{n=await o.stat(r)}catch(t){if("ENOENT"===t.code)return await s.mkdirs(r),void await o.writeFile(e,"");throw t}n.isDirectory()?await o.writeFile(e,""):await o.readdir(r)})),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{o.statSync(r).isDirectory()||o.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(r)}o.writeFileSync(e,"")}}},(e,t,r)=>{const n=r(9).fromPromise,i=r(3),o=r(11),s=r(23),{pathExists:a}=r(36),{areIdentical:l}=r(44);e.exports={createLink:n((async function(e,t){let r,n;try{r=await o.lstat(t)}catch{}try{n=await o.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(r&&l(n,r))return;const c=i.dirname(t);await a(c)||await s.mkdirs(c),await o.link(e,t)})),createLinkSync:function(e,t){let r;try{r=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(r&&l(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return o.existsSync(n)||s.mkdirsSync(n),o.linkSync(e,t)}}},(e,t,r)=>{const n=r(9).fromPromise,i=r(3),o=r(11),{mkdirs:s,mkdirsSync:a}=r(23),{symlinkPaths:l,symlinkPathsSync:c}=r(337),{symlinkType:u,symlinkTypeSync:f}=r(338),{pathExists:h}=r(36),{areIdentical:d}=r(44);e.exports={createSymlink:n((async function(e,t,r){let n;try{n=await o.lstat(t)}catch{}if(n&&n.isSymbolicLink()){const[r,n]=await Promise.all([o.stat(e),o.stat(t)]);if(d(r,n))return}const a=await l(e,t);e=a.toDst;const c=await u(a.toCwd,r),f=i.dirname(t);return await h(f)||await s(f),o.symlink(e,t,c)})),createSymlinkSync:function(e,t,r){let n;try{n=o.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=o.statSync(e),n=o.statSync(t);if(d(r,n))return}const s=c(e,t);e=s.toDst,r=f(s.toCwd,r);const l=i.dirname(t);return o.existsSync(l)||a(l),o.symlinkSync(e,t,r)}}},(e,t,r)=>{const n=r(3),i=r(11),{pathExists:o}=r(36),s=r(9).fromPromise;e.exports={symlinkPaths:s((async function(e,t){if(n.isAbsolute(e)){try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const r=n.dirname(t),s=n.join(r,e);if(await o(s))return{toCwd:s,toDst:e};try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:n.relative(r,e)}})),symlinkPathsSync:function(e,t){if(n.isAbsolute(e)){if(!i.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const r=n.dirname(t),o=n.join(r,e);if(i.existsSync(o))return{toCwd:o,toDst:e};if(!i.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(r,e)}}}},(e,t,r)=>{const n=r(11),i=r(9).fromPromise;e.exports={symlinkType:i((async function(e,t){if(t)return t;let r;try{r=await n.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(e,t){if(t)return t;let r;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},(e,t,r)=>{const n=r(9).fromPromise,i=r(340);i.outputJson=n(r(342)),i.outputJsonSync=r(343),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},(e,t,r)=>{const n=r(341);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},(e,t,r)=>{let n;try{n=r(21)}catch(e){n=r(39)}const i=r(9),{stringify:o,stripBom:s}=r(113);const a={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,o=!("throws"in t)||t.throws;let a,l=await i.fromCallback(r.readFile)(e,t);l=s(l);try{a=JSON.parse(l,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return a})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=s(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const s=r.fs||n,a=o(t,r);await i.fromCallback(s.writeFile)(e,a,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,s=o(t,r);return i.writeFileSync(e,s,r)}};e.exports=a},(e,t,r)=>{const{stringify:n}=r(113),{outputFile:i}=r(114);e.exports=async function(e,t,r={}){const o=n(t,r);await i(e,o,r)}},(e,t,r)=>{const{stringify:n}=r(113),{outputFileSync:i}=r(114);e.exports=function(e,t,r){const o=n(t,r);i(e,o,r)}},(e,t,r)=>{const n=r(9).fromPromise;e.exports={move:n(r(345)),moveSync:r(346)}},(e,t,r)=>{const n=r(11),i=r(3),{copy:o}=r(112),{remove:s}=r(78),{mkdirp:a}=r(23),{pathExists:l}=r(36),c=r(44);e.exports=async function(e,t,r={}){const u=r.overwrite||r.clobber||!1,{srcStat:f,isChangingCase:h=!1}=await c.checkPaths(e,t,"move",r);await c.checkParentPaths(e,f,t,"move");const d=i.dirname(t);return i.parse(d).root!==d&&await a(d),async function(e,t,r,i){if(!i)if(r)await s(t);else if(await l(t))throw new Error("dest already exists.");try{await n.rename(e,t)}catch(n){if("EXDEV"!==n.code)throw n;await async function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await o(e,t,n),s(e)}(e,t,r)}}(e,t,u,h)}},(e,t,r)=>{const n=r(21),i=r(3),o=r(112).copySync,s=r(78).removeSync,a=r(23).mkdirpSync,l=r(44);function c(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return o(e,t,n),s(e)}(e,t,r)}}e.exports=function(e,t,r){const o=(r=r||{}).overwrite||r.clobber||!1,{srcStat:u,isChangingCase:f=!1}=l.checkPathsSync(e,t,"move",r);return l.checkParentPathsSync(e,u,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||a(i.dirname(t)),function(e,t,r,i){if(i)return c(e,t,r);if(r)return s(t),c(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return c(e,t,r)}(e,t,o,f)}},(e,t,r)=>{const n=r(21),i=r(348),o=r(16);e.exports={buffer:function(e,t){return i({stream:function(t,r){const n=o.PassThrough(),i=r?t+r:void 0;return n.end(e.slice(t,i)),n},size:function(){return Promise.resolve(e.length)}},t)},file:function(e,t){return i({stream:function(t,r){const i=r?t+r:void 0;return n.createReadStream(e,{start:t,end:i})},size:function(){return new Promise((function(t,r){n.stat(e,(function(e,n){e?r(e):t(n.size)}))}))}},t)},url:function(e,t,r){if("string"==typeof t&&(t={url:t}),!t.url)throw"URL missing";t.headers=t.headers||{};const n={stream:function(r,n){const i=Object.create(t),o=n?r+n:"";return i.headers=Object.create(t.headers),i.headers.range="bytes="+r+"-"+o,e(i)},size:function(){return new Promise((function(r,n){const i=e(t);i.on("response",(function(e){i.abort(),e.headers["content-length"]?r(e.headers["content-length"]):n(new Error("Missing content length header"))})).on("error",n)}))}};return i(n,r)},s3:function(e,t,r){return i({size:function(){return new Promise((function(r,n){e.headObject(t,(function(e,t){e?n(e):r(t.ContentLength)}))}))},stream:function(r,n){const i={};for(const e in t)i[e]=t[e];const o=n?r+n:"";return i.Range="bytes="+r+"-"+o,e.getObject(i).createReadStream()}},r)},s3_v3:function(e,t,n){const{GetObjectCommand:s,HeadObjectCommand:a}=r(389);return i({size:async()=>{const r=await e.send(new a({Bucket:t.Bucket,Key:t.Key}));return r.ContentLength?r.ContentLength:0},stream:(r,n)=>{const i=o.PassThrough(),a=n?r+n:"";return e.send(new s({Bucket:t.Bucket,Key:t.Key,Range:`bytes=${r}-${a}`})).then((e=>{e.Body.pipe(i)})).catch((e=>{i.emit("error",e)})),i}},n)},custom:function(e,t){return i(e,t)}}},(e,t,r)=>{const n=r(108),i=r(349),o=r(109),s=r(110),a=r(3),l=r(185),c=r(111),u=r(77),f=r(352),h=Buffer.alloc(4);h.writeUInt32LE(101010256,0),e.exports=function(e,t){const r=n(),d=n(),p=t&&t.tailSize||80;let b,_,y,m;return t&&t.crx&&(_=function(e){const t=e.stream(0).pipe(n());return t.pull(4).then((function(e){if(875721283===e.readUInt32LE(0)){let e;return t.pull(12).then((function(t){e=u.parse(t,[["version",4],["pubKeyLength",4],["signatureLength",4]])})).then((function(){return t.pull(e.pubKeyLength+e.signatureLength)})).then((function(t){return e.publicKey=t.slice(0,e.pubKeyLength),e.signature=t.slice(e.pubKeyLength),e.size=16+e.pubKeyLength+e.signatureLength,e}))}}))}(e)),e.size().then((function(t){return b=t,e.stream(Math.max(0,t-p)).on("error",(function(e){r.emit("error",e)})).pipe(r),r.pull(h)})).then((function(){return f.props({directory:r.pull(22),crxHeader:_})})).then((function(t){const i=t.directory;if(y=t.crxHeader&&t.crxHeader.size||0,m=u.parse(i,[["signature",4],["diskNumber",2],["diskStart",2],["numberOfRecordsOnDisk",2],["numberOfRecords",2],["sizeOfCentralDirectory",4],["offsetToStartOfCentralDirectory",4],["commentLength",2]]),65535==m.diskNumber||65535==m.numberOfRecords||4294967295==m.offsetToStartOfCentralDirectory){const t=20,i=b-(p-r.match+t),o=n();return e.stream(i).pipe(o),o.pull(t).then((function(t){return function(e,t){const r=u.parse(t,[["signature",4],["diskNumber",4],["offsetToStartOfCentralDirectory",8],["numberOfDisks",4]]);if(117853008!=r.signature)throw new Error("invalid zip64 end of central dir locator signature (0x07064b50): 0x"+r.signature.toString(16));const i=n();return e.stream(r.offsetToStartOfCentralDirectory).pipe(i),i.pull(56)}(e,t)})).then((function(e){m=function(e){const t=u.parse(e,[["signature",4],["sizeOfCentralDirectory",8],["version",2],["versionsNeededToExtract",2],["diskNumber",4],["diskStart",4],["numberOfRecordsOnDisk",8],["numberOfRecords",8],["sizeOfCentralDirectory",8],["offsetToStartOfCentralDirectory",8]]);if(101075792!=t.signature)throw new Error("invalid zip64 end of central dir locator signature (0x06064b50): 0x0"+t.signature.toString(16));return t}(e)}))}m.offsetToStartOfCentralDirectory+=y})).then((function(){if(m.commentLength)return r.pull(m.commentLength).then((function(e){m.comment=e.toString("utf8")}))})).then((function(){return e.stream(m.offsetToStartOfCentralDirectory).pipe(d),m.extract=function(e){if(!e||!e.path)throw new Error("PATH_MISSING");return e.path=a.resolve(a.normalize(e.path)),m.files.then((function(t){return f.map(t,(async function(t){const r=a.join(e.path,t.path);if(0!=r.indexOf(e.path))return;if("Directory"==t.type)return void await l.ensureDir(r);await l.ensureDir(a.dirname(r));const n=e.getWriter?e.getWriter({path:r}):l.createWriteStream(r);return new Promise((function(r,i){t.stream(e.password).on("error",i).pipe(n).on("close",r).on("error",i)}))}),{concurrency:e.concurrency>1?e.concurrency:1})}))},m.files=f.mapSeries(Array(m.numberOfRecords),(function(){return d.pull(46).then((function(r){const n=u.parse(r,[["signature",4],["versionMadeBy",2],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2],["fileCommentLength",2],["diskNumber",2],["internalFileAttributes",2],["externalFileAttributes",4],["offsetToLocalFileHeader",4]]);return n.offsetToLocalFileHeader+=y,n.lastModifiedDateTime=c(n.lastModifiedDate,n.lastModifiedTime),d.pull(n.fileNameLength).then((function(e){return n.pathBuffer=e,n.path=e.toString("utf8"),n.isUnicode=!!(2048&n.flags),d.pull(n.extraFieldLength)})).then((function(e){return n.extra=s(e,n),d.pull(n.fileCommentLength)})).then((function(r){n.comment=r,n.type=0===n.uncompressedSize&&/[/\\]$/.test(n.path)?"Directory":"File";const s=t&&t.padding||1e3;return n.stream=function(t){const r=30+s+(n.extraFieldLength||0)+(n.fileNameLength||0)+n.compressedSize;return i(e,n.offsetToLocalFileHeader,t,n,r)},n.buffer=function(e){return o(n.stream(e))},n}))}))})),f.props(m)}))}},(e,t,r)=>{const n=r(350),i=r(108),o=r(16),s=r(105),a=r(110),l=r(111),c=r(77);e.exports=function(e,t,r,u,f){const h=i(),d=o.PassThrough(),p=e.stream(t,f);return p.pipe(h).on("error",(function(e){d.emit("error",e)})),d.vars=h.pull(30).then((function(e){let t=c.parse(e,[["signature",4],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2]]);return t.lastModifiedDateTime=l(t.lastModifiedDate,t.lastModifiedTime),h.pull(t.fileNameLength).then((function(e){return t.fileName=e.toString("utf8"),h.pull(t.extraFieldLength)})).then((function(e){let i;return t.extra=a(e,t),u&&u.compressedSize&&(t=u),1&t.flags&&(i=h.pull(12).then((function(e){if(!r)throw new Error("MISSING_PASSWORD");const i=n();String(r).split("").forEach((function(e){i.update(e)}));for(let t=0;t<e.length;t++)e[t]=i.decryptByte(e[t]);t.decrypt=i,t.compressedSize-=12;const o=8&t.flags?t.lastModifiedTime>>8&255:t.crc32>>24&255;if(e[11]!==o)throw new Error("BAD_PASSWORD");return t}))),Promise.resolve(i).then((function(){return d.emit("vars",t),t}))}))})),d.vars.then((function(e){const t=!(8&e.flags)||e.compressedSize>0;let r;const n=e.compressionMethod?s.createInflateRaw():o.PassThrough();t?(d.size=e.uncompressedSize,r=e.compressedSize):(r=Buffer.alloc(4),r.writeUInt32LE(134695760,0));let i=h.stream(r);e.decrypt&&(i=i.pipe(e.decrypt.stream())),i.pipe(n).on("error",(function(e){d.emit("error",e)})).pipe(d).on("finish",(function(){p.destroy?p.destroy():p.abort?p.abort():p.close?p.close():p.push?p.push():console.log("warning - unable to close stream")}))})).catch((function(e){d.emit("error",e)})),d}},(e,t,r)=>{const n=r(351);let i,o=r(16);function s(e,t){i||function(){let e,t,r;for(i=[],t=0;t<256;t++){for(e=t,r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>=1;i[t]=e>>>0}}(),e.charCodeAt&&(e=e.charCodeAt(0));return(t.readUInt32BE()>>8&16777215^i[255&(t.readUInt32BE()^e>>>0)])>>>0}function a(e,t){const r=65535&e,n=65535&t;return(((e>>16&65535)*n+r*(t>>16&65535)&65535)<<16>>>0)+r*n}function l(){if(!(this instanceof l))return new l;this.key0=Buffer.allocUnsafe(4),this.key1=Buffer.allocUnsafe(4),this.key2=Buffer.allocUnsafe(4),this.key0.writeUInt32BE(305419896,0),this.key1.writeUInt32BE(591751049,0),this.key2.writeUInt32BE(878082192,0)}o.Writable&&o.Writable.prototype.destroy||(o=r(80)),l.prototype.update=function(e){this.key0.writeUInt32BE(s(e,this.key0)),this.key1.writeUInt32BE((255&this.key0.readUInt32BE())+this.key1.readUInt32BE()>>>0);const t=new n(a(this.key1.readUInt32BE(),134775813)+1&4294967295),r=Buffer.alloc(8);t.copy(r,0),r.copy(this.key1,0,4,8),this.key2.writeUInt32BE(s((this.key1.readUInt32BE()>>24&255)>>>0,this.key2))},l.prototype.decryptByte=function(e){const t=(2|this.key2.readUInt32BE())>>>0;return e^=a(t,1^t)>>8&255,this.update(e),e},l.prototype.stream=function(){const e=o.Transform(),t=this;return e._transform=function(e,r,n){for(let r=0;r<e.length;r++)e[r]=t.decryptByte(e[r]);this.push(e),n()},e},e.exports=l},e=>{for(var t=4294967296,r=[],n=0;n<256;n++)r[n]=(n>15?"":"0")+n.toString(16);var i=e.exports=function(e,t){e instanceof Buffer?(this.buffer=e,this.offset=t||0):"[object Uint8Array]"==Object.prototype.toString.call(e)?(this.buffer=new Buffer(e),this.offset=t||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};i.MAX_INT=Math.pow(2,53),i.MIN_INT=-Math.pow(2,53),i.prototype={constructor:i,_2scomp:function(){for(var e=this.buffer,t=this.offset,r=1,n=t+7;n>=t;n--){var i=(255^e[n])+r;e[n]=255&i,r=i>>8}},setValue:function(e,r){var n=!1;if(1==arguments.length)if("number"==typeof e){if(n=e<0,r=(e=Math.abs(e))%t,(e/=t)>t)throw new RangeError(e+" is outside Int64 range");e|=0}else{if("string"!=typeof e)throw new Error(e+" must be a Number or String");r=(e=(e+"").replace(/^0x/,"")).substr(-8),e=e.length>8?e.substr(0,e.length-8):"",e=parseInt(e,16),r=parseInt(r,16)}for(var i=this.buffer,o=this.offset,s=7;s>=0;s--)i[o+s]=255&r,r=4==s?e:r>>>8;n&&this._2scomp()},toNumber:function(e){for(var t=this.buffer,r=this.offset,n=128&t[r],o=0,s=1,a=7,l=1;a>=0;a--,l*=256){var c=t[r+a];n&&(s=(c=(255^c)+s)>>8,c&=255),o+=c*l}return!e&&o>=i.MAX_INT?n?-1/0:1/0:n?-o:o},valueOf:function(){return this.toNumber(!1)},toString:function(e){return this.valueOf().toString(e||10)},toOctetString:function(e){for(var t=new Array(8),n=this.buffer,i=this.offset,o=0;o<8;o++)t[o]=r[n[i+o]];return t.join(e||"")},toBuffer:function(e){if(e&&0===this.offset)return this.buffer;var t=new Buffer(8);return this.buffer.copy(t,0,this.offset,this.offset+8),t},copy:function(e,t){this.buffer.copy(e,t||0,this.offset,this.offset+8)},compare:function(e){if((128&this.buffer[this.offset])!=(128&e.buffer[e.offset]))return e.buffer[e.offset]-this.buffer[this.offset];for(var t=0;t<8;t++)if(this.buffer[this.offset+t]!==e.buffer[e.offset+t])return this.buffer[this.offset+t]-e.buffer[e.offset+t];return 0},equals:function(e){return 0===this.compare(e)},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}},(e,t,r)=>{e.exports=function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var l="function"==typeof _dereq_&&_dereq_;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,(function(e){var r=t[s][1][e];return i(r||e)}),u,u.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){t.exports=function(e){var t=e._SomePromiseArray;function r(e){var r=new t(e),n=r.promise();return r.setHowMany(1),r.setUnwrap(),r.init(),n}e.any=function(e){return r(e)},e.prototype.any=function(){return r(this)}}},{}],2:[function(e,t,r){var n;try{throw new Error}catch(e){n=e}var i=e("./schedule"),o=e("./queue");function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new o(16),this._normalQueue=new o(16),this._haveDrainedQueues=!1;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=i}function a(e,t,r){this._lateQueue.push(e,t,r),this._queueTick()}function l(e,t,r){this._normalQueue.push(e,t,r),this._queueTick()}function c(e){this._normalQueue._pushOne(e),this._queueTick()}function u(e){for(;e.length()>0;)f(e)}function f(e){var t=e.shift();if("function"!=typeof t)t._settlePromises();else{var r=e.shift(),n=e.shift();t.call(r,n)}}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.prototype.invokeLater=a,s.prototype.invoke=l,s.prototype.settlePromises=c,s.prototype._drainQueues=function(){u(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,u(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},t.exports=s,t.exports.firstLineError=n},{"./queue":26,"./schedule":29}],3:[function(e,t,r){t.exports=function(e,t,r,n){var i=!1,o=function(e,t){this._reject(t)},s=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},a=function(e,t){50397184&this._bitField||this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=n.propagateFromFunction(),e.prototype._boundValue=n.boundValueFunction());var c=r(o),u=new e(t);u._propagateFrom(this,1);var f=this._target();if(u._setBoundTo(c),c instanceof e){var h={promiseRejectionQueued:!1,promise:u,target:f,bindingPromise:c};f._then(t,s,void 0,u,h),c._then(a,l,void 0,u,h),u._setOnCancel(c)}else u._resolveCallback(f);return u},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return!(2097152&~this._bitField)},e.bind=function(t,r){return e.resolve(r).bind(t)}}},{}],4:[function(e,t,r){var n;function i(){try{Promise===o&&(Promise=n)}catch(e){}return o}"undefined"!=typeof Promise&&(n=Promise);var o=e("./promise")();o.noConflict=i,t.exports=o},{"./promise":22}],5:[function(e,t,r){var n=Object.create;if(n){var i=n(null),o=n(null);i[" size"]=o[" size"]=0}t.exports=function(t){var r,n=e("./util"),i=n.canEvaluate;function o(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}function s(e){return o(e,this.pop()).apply(e,this)}function a(e){return e[this]}function l(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(s,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=l;else if(i){var n=r(e);t=null!==n?n:a}else t=a;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,r){t.exports=function(t,r,n,i){var o=e("./util"),s=o.tryCatch,a=o.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var r=e._cancellationParent;if(null==r||!r._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=r}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var r=0;r<e.length;++r)this._doInvokeOnCancel(e[r],t);else if(void 0!==e)if("function"==typeof e){if(!t){var n=s(e).call(this._boundValue());n===a&&(this._attachExtraTrace(n.e),l.throwLater(n.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),l.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,r){t.exports=function(t){var r=e("./util"),n=e("./es5").keys,i=r.tryCatch,o=r.errorObj;function s(e,s,a){return function(l){var c=a._boundValue();e:for(var u=0;u<e.length;++u){var f=e[u];if(f===Error||null!=f&&f.prototype instanceof Error){if(l instanceof f)return i(s).call(c,l)}else if("function"==typeof f){var h=i(f).call(c,l);if(h===o)return h;if(h)return i(s).call(c,l)}else if(r.isObject(l)){for(var d=n(f),p=0;p<d.length;++p){var b=d[p];if(f[b]!=l[b])continue e}return i(s).call(c,l)}}return t}}return s}},{"./es5":13,"./util":36}],8:[function(e,t,r){t.exports=function(e){var t=!1,r=[];function n(){this._trace=new n.CapturedTrace(o())}function i(){if(t)return new n}function o(){var e=r.length-1;if(e>=0)return r[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},n.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,r.push(this._trace))},n.prototype._popContext=function(){if(void 0!==this._trace){var e=r.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},n.CapturedTrace=null,n.create=i,n.deactivateLongStackTraces=function(){},n.activateLongStackTraces=function(){var r=e.prototype._pushContext,i=e.prototype._popContext,s=e._peekContext,a=e.prototype._peekContext,l=e.prototype._promiseCreated;n.deactivateLongStackTraces=function(){e.prototype._pushContext=r,e.prototype._popContext=i,e._peekContext=s,e.prototype._peekContext=a,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=n.prototype._pushContext,e.prototype._popContext=n.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},n}},{}],9:[function(e,t,r){t.exports=function(t,r,n,i){var o,s,a,l,c=t._async,u=e("./errors").Warning,f=e("./util"),h=e("./es5"),d=f.canAttachTrace,p=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,b=/\((?:timers\.js):\d+:\d+\)/,_=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,y=null,m=null,g=!1,w=!(0==f.env("BLUEBIRD_DEBUG")),v=!(0==f.env("BLUEBIRD_WARNINGS")||!w&&!f.env("BLUEBIRD_WARNINGS")),S=!(0==f.env("BLUEBIRD_LONG_STACK_TRACES")||!w&&!f.env("BLUEBIRD_LONG_STACK_TRACES")),E=0!=f.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(v||!!f.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var e=[];function r(){for(var t=0;t<e.length;++t)e[t]._notifyUnhandledRejection();n()}function n(){e.length=0}l=function(t){e.push(t),setTimeout(r,1)},h.defineProperty(t,"_unhandledRejectionCheck",{value:r}),h.defineProperty(t,"_unhandledRejectionClear",{value:n})}(),t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){524288&this._bitField||(this._setRejectionIsUnhandled(),l(this))},t.prototype._notifyUnhandledRejectionIsHandled=function(){ee("rejectionHandled",o,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return!!(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),ee("unhandledRejection",s,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,r){return V(e,t,r||this)},t.onPossiblyUnhandledRejection=function(e){var r=t._getContext();s=f.contextBind(r,e)},t.onUnhandledRejectionHandled=function(e){var r=t._getContext();o=f.contextBind(r,e)};var x=function(){};t.longStackTraces=function(){if(c.haveItemsQueued()&&!ue.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!ue.longStackTraces&&ne()){var e=t.prototype._captureStackTrace,n=t.prototype._attachExtraTrace,i=t.prototype._dereferenceTrace;ue.longStackTraces=!0,x=function(){if(c.haveItemsQueued()&&!ue.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=n,t.prototype._dereferenceTrace=i,r.deactivateLongStackTraces(),ue.longStackTraces=!1},t.prototype._captureStackTrace=U,t.prototype._attachExtraTrace=$,t.prototype._dereferenceTrace=z,r.activateLongStackTraces()}},t.hasLongStackTraces=function(){return ue.longStackTraces&&ne()};var R={unhandledrejection:{before:function(){var e=f.global.onunhandledrejection;return f.global.onunhandledrejection=null,e},after:function(e){f.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=f.global.onrejectionhandled;return f.global.onrejectionhandled=null,e},after:function(e){f.global.onrejectionhandled=e}}},A=function(){var e=function(e,t){if(!e)return!f.global.dispatchEvent(t);var r;try{return r=e.before(),!f.global.dispatchEvent(t)}finally{e.after(r)}};try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return f.global.dispatchEvent(t),function(t,r){t=t.toLowerCase();var n=new CustomEvent(t,{detail:r,cancelable:!0});return h.defineProperty(n,"promise",{value:r.promise}),h.defineProperty(n,"reason",{value:r.reason}),e(R[t],n)}}return"function"==typeof Event?(t=new Event("CustomEvent"),f.global.dispatchEvent(t),function(t,r){t=t.toLowerCase();var n=new Event(t,{cancelable:!0});return n.detail=r,h.defineProperty(n,"promise",{value:r.promise}),h.defineProperty(n,"reason",{value:r.reason}),e(R[t],n)}):((t=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),f.global.dispatchEvent(t),function(t,r){t=t.toLowerCase();var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!0,r),e(R[t],n)})}catch(e){}return function(){return!1}}(),O=f.isNode?function(){return process.emit.apply(process,arguments)}:f.global?function(e){var t="on"+e.toLowerCase(),r=f.global[t];return!!r&&(r.apply(f.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function k(e,t){return{promise:t}}var T={promiseCreated:k,promiseFulfilled:k,promiseRejected:k,promiseResolved:k,promiseCancelled:k,promiseChained:function(e,t,r){return{promise:t,child:r}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,r){return{reason:t,promise:r}},rejectionHandled:k},P=function(e){var t=!1;try{t=O.apply(null,arguments)}catch(e){c.throwLater(e),t=!0}var r=!1;try{r=A(e,T[e].apply(null,arguments))}catch(e){c.throwLater(e),r=!0}return r||t};function M(){return!1}function L(e,t,r){var n=this;try{e(t,r,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+f.toString(e));n._attachCancellationCallback(e)}))}catch(e){return e}}function C(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?f.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function I(){return this._onCancelField}function D(e){this._onCancelField=e}function N(){this._cancellationParent=void 0,this._onCancelField=void 0}function j(e,t){if(1&t){this._cancellationParent=e;var r=e._branchesRemainingToCancel;void 0===r&&(r=0),e._branchesRemainingToCancel=r+1}2&t&&e._isBound()&&this._setBoundTo(e._boundTo)}function F(e,t){2&t&&e._isBound()&&this._setBoundTo(e._boundTo)}t.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&x()),"warnings"in e){var r=e.warnings;ue.warnings=!!r,E=ue.warnings,f.isObject(r)&&"wForgottenReturn"in r&&(E=!!r.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ue.cancellation){if(c.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=N,t.prototype._propagateFrom=j,t.prototype._onCancel=I,t.prototype._setOnCancel=D,t.prototype._attachCancellationCallback=C,t.prototype._execute=L,W=j,ue.cancellation=!0}if("monitoring"in e&&(e.monitoring&&!ue.monitoring?(ue.monitoring=!0,t.prototype._fireEvent=P):!e.monitoring&&ue.monitoring&&(ue.monitoring=!1,t.prototype._fireEvent=M)),"asyncHooks"in e&&f.nodeSupportsAsyncResource){var o=ue.asyncHooks,s=!!e.asyncHooks;o!==s&&(ue.asyncHooks=s,s?n():i())}return t},t.prototype._fireEvent=M,t.prototype._execute=function(e,t,r){try{e(t,r)}catch(e){return e}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._dereferenceTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var W=F;function B(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function U(){this._trace=new le(this._peekContext())}function $(e,t){if(d(e)){var r=this._trace;if(void 0!==r&&t&&(r=r._parent),void 0!==r)r.attachExtraTrace(e);else if(!e.__stackCleaned__){var n=X(e);f.notEnumerableProp(e,"stack",n.message+"\n"+n.stack.join("\n")),f.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(){this._trace=void 0}function G(e,t,r,n,i){if(void 0===e&&null!==t&&E){if(void 0!==i&&i._returnedNonUndefined())return;if(!(65535&n._bitField))return;r&&(r+=" ");var o="",s="";if(t._trace){for(var a=t._trace.stack.split("\n"),l=Z(a),c=l.length-1;c>=0;--c){var u=l[c];if(!b.test(u)){var f=u.match(_);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0){var h=l[0];for(c=0;c<a.length;++c)if(a[c]===h){c>0&&(s="\n"+a[c-1]);break}}}var d="a promise was created in a "+r+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;n._warn(d,!0,t)}}function H(e,t){var r=e+" is deprecated and will be removed in a future version.";return t&&(r+=" Use "+t+" instead."),V(r)}function V(e,r,n){if(ue.warnings){var i,o=new u(e);if(r)n._attachExtraTrace(o);else if(ue.longStackTraces&&(i=t._peekContext()))i.attachExtraTrace(o);else{var s=X(o);o.stack=s.message+"\n"+s.stack.join("\n")}P("warning",o)||J(o,"",!0)}}function q(e,t){for(var r=0;r<t.length-1;++r)t[r].push("From previous event:"),t[r]=t[r].join("\n");return r<t.length&&(t[r]=t[r].join("\n")),e+"\n"+t.join("\n")}function K(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function Y(e){for(var t=e[0],r=1;r<e.length;++r){for(var n=e[r],i=t.length-1,o=t[i],s=-1,a=n.length-1;a>=0;--a)if(n[a]===o){s=a;break}for(a=s;a>=0;--a){var l=n[a];if(t[i]!==l)break;t.pop(),i--}t=n}}function Z(e){for(var t=[],r=0;r<e.length;++r){var n=e[r],i=" (No stack trace)"===n||y.test(n),o=i&&ie(n);i&&!o&&(g&&" "!==n.charAt(0)&&(n=" "+n),t.push(n))}return t}function Q(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),r=0;r<t.length;++r){var n=t[r];if(" (No stack trace)"===n||y.test(n))break}return r>0&&"SyntaxError"!=e.name&&(t=t.slice(r)),t}function X(e){var t=e.stack,r=e.toString();return t="string"==typeof t&&t.length>0?Q(e):[" (No stack trace)"],{message:r,stack:"SyntaxError"==e.name?t:Z(t)}}function J(e,t,r){if("undefined"!=typeof console){var n;if(f.isObject(e)){var i=e.stack;n=t+m(i,e)}else n=t+String(e);"function"==typeof a?a(n,r):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(n)}}function ee(e,t,r,n){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(n):t(r,n))}catch(e){c.throwLater(e)}"unhandledRejection"===e?P(e,r,n)||i||J(r,"Unhandled rejection "):P(e,n)}function te(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():f.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+re(t)+">, no stack trace)"}function re(e){var t=41;return e.length<t?e:e.substr(0,t-3)+"..."}function ne(){return"function"==typeof ce}var ie=function(){return!1},oe=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function se(e){var t=e.match(oe);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function ae(e,t){if(ne()){for(var r,n,i=(e.stack||"").split("\n"),o=(t.stack||"").split("\n"),s=-1,a=-1,l=0;l<i.length;++l)if(c=se(i[l])){r=c.fileName,s=c.line;break}for(l=0;l<o.length;++l){var c;if(c=se(o[l])){n=c.fileName,a=c.line;break}}s<0||a<0||!r||!n||r!==n||s>=a||(ie=function(e){if(p.test(e))return!0;var t=se(e);return!!(t&&t.fileName===r&&s<=t.line&&t.line<=a)})}}function le(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);ce(this,le),t>32&&this.uncycle()}f.inherits(le,Error),r.CapturedTrace=le,le.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],r={},n=0,i=this;void 0!==i;++n)t.push(i),i=i._parent;for(n=(e=this._length=n)-1;n>=0;--n){var o=t[n].stack;void 0===r[o]&&(r[o]=n)}for(n=0;n<e;++n){var s=r[t[n].stack];if(void 0!==s&&s!==n){s>0&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[n]._parent=void 0,t[n]._length=1;var a=n>0?t[n-1]:this;s<e-1?(a._parent=t[s+1],a._parent.uncycle(),a._length=a._parent._length+1):(a._parent=void 0,a._length=1);for(var l=a._length+1,c=n-2;c>=0;--c)t[c]._length=l,l++;return}}}},le.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=X(e),r=t.message,n=[t.stack],i=this;void 0!==i;)n.push(Z(i.stack.split("\n"))),i=i._parent;Y(n),K(n),f.notEnumerableProp(e,"stack",q(r,n)),f.notEnumerableProp(e,"__stackCleaned__",!0)}};var ce=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():te(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,y=e,m=t;var r=Error.captureStackTrace;return ie=function(e){return p.test(e)},function(e,t){Error.stackTraceLimit+=6,r(e,t),Error.stackTraceLimit-=6}}var n,i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return y=/@/,m=t,g=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){n="stack"in e}return!("stack"in i)&&n&&"number"==typeof Error.stackTraceLimit?(y=e,m=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(m=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?te(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(e){console.warn(e)},f.isNode&&process.stderr.isTTY?a=function(e,t){var r=t?"[33m":"[31m";console.warn(r+e+"[0m\n")}:f.isNode||"string"!=typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ue={warnings:v,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return S&&t.longStackTraces(),{asyncHooks:function(){return ue.asyncHooks},longStackTraces:function(){return ue.longStackTraces},warnings:function(){return ue.warnings},cancellation:function(){return ue.cancellation},monitoring:function(){return ue.monitoring},propagateFromFunction:function(){return W},boundValueFunction:function(){return B},checkForgottenReturns:G,setBounds:ae,warn:V,deprecated:H,CapturedTrace:le,fireDomEvent:A,fireGlobalEvent:O}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,r){t.exports=function(e){function t(){return this.value}function r(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){return r instanceof e&&r.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(r,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,r,void 0,{reason:e},void 0);var t=arguments[1],n=function(){throw t};return this.caught(e,n)},e.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof e&&r.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:r},void 0);var n=arguments[1];n instanceof e&&n.suppressUnhandledRejections();var i=function(){return n};return this.caught(r,i)}}},{}],11:[function(e,t,r){t.exports=function(e,t){var r=e.reduce,n=e.all;function i(){return n(this)}function o(e,n){return r(e,n,t,t)}e.prototype.each=function(e){return r(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return r(this,e,t,t)},e.each=function(e,n){return r(e,n,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=o}},{}],12:[function(e,t,r){var n,i,o=e("./es5"),s=o.freeze,a=e("./util"),l=a.inherits,c=a.notEnumerableProp;function u(e,t){function r(n){if(!(this instanceof r))return new r(n);c(this,"message","string"==typeof n?n:t),c(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(r,Error),r}var f=u("Warning","warning"),h=u("CancellationError","cancellation error"),d=u("TimeoutError","timeout error"),p=u("AggregateError","aggregate error");try{n=TypeError,i=RangeError}catch(e){n=u("TypeError","type error"),i=u("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),_=0;_<b.length;++_)"function"==typeof Array.prototype[b[_]]&&(p.prototype[b[_]]=Array.prototype[b[_]]);o.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype.isOperational=!0;var y=0;function m(e){if(!(this instanceof m))return new m(e);c(this,"name","OperationalError"),c(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(c(this,"message",e.message),c(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*y+1).join(" "),t="\n"+e+"AggregateError of:\n";y++,e=Array(4*y+1).join(" ");for(var r=0;r<this.length;++r){for(var n=this[r]===this?"[Circular AggregateError]":this[r]+"",i=n.split("\n"),o=0;o<i.length;++o)i[o]=e+i[o];t+=(n=i.join("\n"))+"\n"}return y--,t},l(m,Error);var g=Error.__BluebirdErrorTypes__;g||(g=s({CancellationError:h,TimeoutError:d,OperationalError:m,RejectionError:m,AggregateError:p}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error,TypeError:n,RangeError:i,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(e,t,r){var n=function(){return void 0===this}();if(n)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:n,propertyIsWritable:function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!(r&&!r.writable&&!r.set)}};else{var i={}.hasOwnProperty,o={}.toString,s={}.constructor.prototype,a=function(e){var t=[];for(var r in e)i.call(e,r)&&t.push(r);return t},l=function(e,t){return{value:e[t]}},c=function(e,t,r){return e[t]=r.value,e},u=function(e){return e},f=function(e){try{return Object(e).constructor.prototype}catch(e){return s}},h=function(e){try{return"[object Array]"===o.call(e)}catch(e){return!1}};t.exports={isArray:h,keys:a,names:a,defineProperty:c,getDescriptor:l,freeze:u,getPrototypeOf:f,isES5:n,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,r){t.exports=function(e,t){var r=e.map;e.prototype.filter=function(e,n){return r(this,e,n,t)},e.filter=function(e,n,i){return r(e,n,i,t)}}},{}],15:[function(e,t,r){t.exports=function(t,r,n){var i=e("./util"),o=t.CancellationError,s=i.errorObj,a=e("./catch_filter")(n);function l(e,t,r){this.promise=e,this.type=t,this.handler=r,this.called=!1,this.cancelPromise=null}function c(e){this.finallyHandler=e}function u(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return d.call(this,this.promise._target()._settledValue())}function h(e){if(!u(this,e))return s.e=e,s}function d(e){var i=this.promise,a=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),e);if(l===n)return l;if(void 0!==l){i._setReturnedNonUndefined();var d=r(l,i);if(d instanceof t){if(null!=this.cancelPromise){if(d._isCancelled()){var p=new o("late cancellation observer");return i._attachExtraTrace(p),s.e=p,s}d.isPending()&&d._attachCancellationCallback(new c(this))}return d._then(f,h,void 0,this,void 0)}}}return i.isRejected()?(u(this),s.e=e,s):(u(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){u(this.finallyHandler)},t.prototype._passThrough=function(e,t,r,n){return"function"!=typeof e?this.then():this._then(r,n,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,d,d)},t.prototype.tap=function(e){return this._passThrough(e,1,d)},t.prototype.tapCatch=function(e){var r=arguments.length;if(1===r)return this._passThrough(e,1,void 0,d);var n,o=new Array(r-1),s=0;for(n=0;n<r-1;++n){var l=arguments[n];if(!i.isObject(l))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+i.classString(l)));o[s++]=l}o.length=s;var c=arguments[n];return this._passThrough(a(o,c,this),1,void 0,d)},l}},{"./catch_filter":7,"./util":36}],16:[function(e,t,r){t.exports=function(t,r,n,i,o,s){var a=e("./errors").TypeError,l=e("./util"),c=l.errorObj,u=l.tryCatch,f=[];function h(e,r,n){for(var o=0;o<r.length;++o){n._pushContext();var s=u(r[o])(e);if(n._popContext(),s===c){n._pushContext();var a=t.reject(c.e);return n._popContext(),a}var l=i(s,n);if(l instanceof t)return l}return null}function d(e,r,i,o){if(s.cancellation()){var a=new t(n),l=this._finallyPromise=new t(n);this._promise=a.lastly((function(){return l})),a._captureStackTrace(),a._setOnCancel(this)}else(this._promise=new t(n))._captureStackTrace();this._stack=o,this._generatorFunction=e,this._receiver=r,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(d,o),d.prototype._isResolved=function(){return null===this._promise},d.prototype._cleanup=function(){this._promise=this._generator=null,s.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=u(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var r=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),e=u(this._generator.throw).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},d.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=u(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=u(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(e){var r=this._promise;if(e===c)return this._cleanup(),this._cancellationPhase?r.cancel():r._rejectCallback(e.e,!1);var n=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?r.cancel():r._resolveCallback(n);var o=i(n,this._promise);if(o instanceof t||null!==(o=h(o,this._yieldHandlers,this._promise))){var s=(o=o._target())._bitField;50397184&s?33554432&s?t._async.invoke(this._promiseFulfilled,this,o._value()):16777216&s?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled():(this._yieldedPromise=o,o._proxy(this,null))}else this._promiseRejected(new a("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(n))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new a("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=Object(t).yieldHandler,n=d,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new n(void 0,void 0,r,i),s=o.promise();return o._generator=t,o._promiseFulfilled(void 0),s}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new a("expecting a function but got "+l.classString(e));f.push(e)},t.spawn=function(e){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return r("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=new d(e,this),i=n.promise();return n._run(t.spawn),i}}},{"./errors":12,"./util":36}],17:[function(e,t,r){t.exports=function(t,r,n,i,o){var s=e("./util");s.canEvaluate,s.tryCatch,s.errorObj,t.join=function(){var e,t=arguments.length-1;t>0&&"function"==typeof arguments[t]&&(e=arguments[t]);var n=[].slice.call(arguments);e&&n.pop();var i=new r(n).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,r){t.exports=function(t,r,n,i,o,s){var a=e("./util"),l=a.tryCatch,c=a.errorObj,u=t._async;function f(e,r,n,i){this.constructor$(e),this._promise._captureStackTrace();var s=t._getContext();if(this._callback=a.contextBind(s,r),this._preservedValues=i===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],u.invoke(this._asyncInit,this,void 0),a.isArray(e))for(var l=0;l<e.length;++l){var c=e[l];c instanceof t&&c.suppressUnhandledRejections()}}function h(e,r,i,o){if("function"!=typeof r)return n("expecting a function but got "+a.classString(r));var s=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+a.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+a.classString(i.concurrency)));s=i.concurrency}return new f(e,r,s="number"==typeof s&&isFinite(s)&&s>=1?s:0,o).promise()}a.inherits(f,r),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(e,r){var n=this._values,o=this.length(),a=this._preservedValues,u=this._limit;if(r<0){if(n[r=-1*r-1]=e,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return n[r]=e,this._queue.push(r),!1;null!==a&&(a[r]=e);var f=this._promise,h=this._callback,d=f._boundValue();f._pushContext();var p=l(h).call(d,e,r,o),b=f._popContext();if(s.checkForgottenReturns(p,b,null!==a?"Promise.filter":"Promise.map",f),p===c)return this._reject(p.e),!0;var _=i(p,this._promise);if(_ instanceof t){var y=(_=_._target())._bitField;if(!(50397184&y))return u>=1&&this._inFlight++,n[r]=_,_._proxy(this,-1*(r+1)),!1;if(!(33554432&y))return 16777216&y?(this._reject(_._reason()),!0):(this._cancel(),!0);p=_._value()}n[r]=p}return++this._totalResolved>=o&&(null!==a?this._filter(n,a):this._resolve(n),!0)},f.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,r=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var n=e.pop();this._promiseFulfilled(r[n],n)}},f.prototype._filter=function(e,t){for(var r=t.length,n=new Array(r),i=0,o=0;o<r;++o)e[o]&&(n[i++]=t[o]);n.length=i,this._resolve(n)},f.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return h(this,e,t,null)},t.map=function(e,t,r,n){return h(e,t,r,n)}}},{"./util":36}],19:[function(e,t,r){t.exports=function(t,r,n,i,o){var s=e("./util"),a=s.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+s.classString(e));return function(){var n=new t(r);n._captureStackTrace(),n._pushContext();var i=a(e).apply(this,arguments),s=n._popContext();return o.checkForgottenReturns(i,s,"Promise.method",n),n._resolveFromSyncValue(i),n}},t.attempt=t.try=function(e){if("function"!=typeof e)return i("expecting a function but got "+s.classString(e));var n,l=new t(r);if(l._captureStackTrace(),l._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],u=arguments[2];n=s.isArray(c)?a(e).apply(u,c):a(e).call(u,c)}else n=a(e)();var f=l._popContext();return o.checkForgottenReturns(n,f,"Promise.try",l),l._resolveFromSyncValue(n),l},t.prototype._resolveFromSyncValue=function(e){e===s.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,r){var n=e("./util"),i=n.maybeWrapAsError,o=e("./errors").OperationalError,s=e("./es5");function a(e){return e instanceof Error&&s.getPrototypeOf(e)===Error.prototype}var l=/^(?:name|message|stack|cause)$/;function c(e){var t;if(a(e)){(t=new o(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var r=s.keys(e),i=0;i<r.length;++i){var c=r[i];l.test(c)||(t[c]=e[c])}return t}return n.markAsOriginatingFromRejection(e),e}function u(e,t){return function(r,n){if(null!==e){if(r){var o=c(i(r));e._attachExtraTrace(o),e._reject(o)}else if(t){var s=[].slice.call(arguments,1);e._fulfill(s)}else e._fulfill(n);e=null}}}t.exports=u},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,r){t.exports=function(t){var r=e("./util"),n=t._async,i=r.tryCatch,o=r.errorObj;function s(e,t){var s=this;if(!r.isArray(e))return a.call(s,e,t);var l=i(t).apply(s._boundValue(),[null].concat(e));l===o&&n.throwLater(l.e)}function a(e,t){var r=this._boundValue(),s=void 0===e?i(t).call(r,null):i(t).call(r,null,e);s===o&&n.throwLater(s.e)}function l(e,t){var r=this;if(!e){var s=new Error(e+"");s.cause=e,e=s}var a=i(t).call(r._boundValue(),e);a===o&&n.throwLater(a.e)}t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var r=a;void 0!==t&&Object(t).spread&&(r=s),this._then(r,l,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,t,r){t.exports=function(){var r=function(){return new w("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},n=function(){return new N.PromiseInspection(this._target())},i=function(e){return N.reject(new w(e))};function o(){}var s={},a=e("./util");a.setReflectHandler(n);var l=function(){var e=process.domain;return void 0===e?null:e},c=function(){return null},u=function(){return{domain:l(),async:null}},f=a.isNode&&a.nodeSupportsAsyncResource?e("async_hooks").AsyncResource:null,h=function(){return{domain:l(),async:new f("Bluebird::Promise")}},d=a.isNode?u:c;a.notEnumerableProp(N,"_getContext",d);var p=function(){d=h,a.notEnumerableProp(N,"_getContext",h)},b=function(){d=u,a.notEnumerableProp(N,"_getContext",u)},_=e("./es5"),y=e("./async"),m=new y;_.defineProperty(N,"_async",{value:m});var g=e("./errors"),w=N.TypeError=g.TypeError;N.RangeError=g.RangeError;var v=N.CancellationError=g.CancellationError;N.TimeoutError=g.TimeoutError,N.OperationalError=g.OperationalError,N.RejectionError=g.OperationalError,N.AggregateError=g.AggregateError;var S=function(){},E={},x={},R=e("./thenables")(N,S),A=e("./promise_array")(N,S,R,i,o),O=e("./context")(N),k=O.create,T=e("./debuggability")(N,O,p,b),P=(T.CapturedTrace,e("./finally")(N,R,x)),M=e("./catch_filter")(x),L=e("./nodeback"),C=a.errorObj,I=a.tryCatch;function D(e,t){if(null==e||e.constructor!==N)throw new w("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new w("expecting a function but got "+a.classString(t))}function N(e){e!==S&&D(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function j(e){this.promise._resolveCallback(e)}function F(e){this.promise._rejectCallback(e,!1)}function W(e){var t=new N(S);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return N.prototype.toString=function(){return"[object Promise]"},N.prototype.caught=N.prototype.catch=function(e){var t=arguments.length;if(t>1){var r,n=new Array(t-1),o=0;for(r=0;r<t-1;++r){var s=arguments[r];if(!a.isObject(s))return i("Catch statement predicate: expecting an object but got "+a.classString(s));n[o++]=s}if(n.length=o,"function"!=typeof(e=arguments[r]))throw new w("The last argument to .catch() must be a function, got "+a.toString(e));return this.then(void 0,M(n,e,this))}return this.then(void 0,e)},N.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},N.prototype.then=function(e,t){if(T.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var r=".then() only accepts functions but was passed: "+a.classString(e);arguments.length>1&&(r+=", "+a.classString(t)),this._warn(r)}return this._then(e,t,void 0,void 0,void 0)},N.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},N.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+a.classString(e)):this.all()._then(e,void 0,void 0,E,void 0)},N.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},N.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},N.prototype.error=function(e){return this.caught(a.originatesFromRejection,e)},N.getNewLibraryCopy=t.exports,N.is=function(e){return e instanceof N},N.fromNode=N.fromCallback=function(e){var t=new N(S);t._captureStackTrace();var r=arguments.length>1&&!!Object(arguments[1]).multiArgs,n=I(e)(L(t,r));return n===C&&t._rejectCallback(n.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},N.all=function(e){return new A(e).promise()},N.cast=function(e){var t=R(e);return t instanceof N||((t=new N(S))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},N.resolve=N.fulfilled=N.cast,N.reject=N.rejected=function(e){var t=new N(S);return t._captureStackTrace(),t._rejectCallback(e,!0),t},N.setScheduler=function(e){if("function"!=typeof e)throw new w("expecting a function but got "+a.classString(e));return m.setScheduler(e)},N.prototype._then=function(e,t,r,n,i){var o=void 0!==i,s=o?i:new N(S),l=this._target(),c=l._bitField;o||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===n&&2097152&this._bitField&&(n=50397184&c?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var u=d();if(50397184&c){var f,h,p=l._settlePromiseCtx;33554432&c?(h=l._rejectionHandler0,f=e):16777216&c?(h=l._fulfillmentHandler0,f=t,l._unsetRejectionIsUnhandled()):(p=l._settlePromiseLateCancellationObserver,h=new v("late cancellation observer"),l._attachExtraTrace(h),f=t),m.invoke(p,l,{handler:a.contextBind(u,f),promise:s,receiver:n,value:h})}else l._addCallbacks(e,t,s,n,u);return s},N.prototype._length=function(){return 65535&this._bitField},N.prototype._isFateSealed=function(){return!!(117506048&this._bitField)},N.prototype._isFollowing=function(){return!(67108864&~this._bitField)},N.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},N.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},N.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},N.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},N.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},N.prototype._isFinal=function(){return(4194304&this._bitField)>0},N.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},N.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},N.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},N.prototype._setAsyncGuaranteed=function(){if(!m.hasCustomScheduler()){var e=this._bitField;this._bitField=e|(536870912&e)>>2^134217728}},N.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&this._bitField|536870912},N.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},N.prototype._promiseAt=function(e){return this[4*e-4+2]},N.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},N.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},N.prototype._boundValue=function(){},N.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,r=e._rejectionHandler0,n=e._promise0,i=e._receiverAt(0);void 0===i&&(i=s),this._addCallbacks(t,r,n,i,null)},N.prototype._migrateCallbackAt=function(e,t){var r=e._fulfillmentHandlerAt(t),n=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=s),this._addCallbacks(r,n,i,o,null)},N.prototype._addCallbacks=function(e,t,r,n,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=r,this._receiver0=n,"function"==typeof e&&(this._fulfillmentHandler0=a.contextBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=a.contextBind(i,t));else{var s=4*o-4;this[s+2]=r,this[s+3]=n,"function"==typeof e&&(this[s+0]=a.contextBind(i,e)),"function"==typeof t&&(this[s+1]=a.contextBind(i,t))}return this._setLength(o+1),o},N.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},N.prototype._resolveCallback=function(e,t){if(!(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=R(e,this);if(!(n instanceof N))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(50397184&o)if(33554432&o)this._fulfill(i._value());else if(16777216&o)this._reject(i._reason());else{var s=new v("late cancellation observer");i._attachExtraTrace(s),this._reject(s)}else{var a=this._length();a>0&&i._migrateCallback0(this);for(var l=1;l<a;++l)i._migrateCallbackAt(this,l);this._setFollowing(),this._setLength(0),this._setFollowee(n)}}else this._reject(r())}},N.prototype._rejectCallback=function(e,t,r){var n=a.ensureErrorObject(e),i=n===e;if(!i&&!r&&T.warnings()){var o="a promise was rejected with a non-error: "+a.classString(e);this._warn(o,!0)}this._attachExtraTrace(n,!!t&&i),this._reject(e)},N.prototype._resolveFromExecutor=function(e){if(e!==S){var t=this;this._captureStackTrace(),this._pushContext();var r=!0,n=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,r)}));r=!1,this._popContext(),void 0!==n&&t._rejectCallback(n,!0)}},N.prototype._settlePromiseFromHandler=function(e,t,r,n){var i=n._bitField;if(!(65536&i)){var o;n._pushContext(),t===E?r&&"number"==typeof r.length?o=I(e).apply(this._boundValue(),r):(o=C).e=new w("cannot .spread() a non-array: "+a.classString(r)):o=I(e).call(t,r);var s=n._popContext();65536&(i=n._bitField)||(o===x?n._reject(r):o===C?n._rejectCallback(o.e,!1):(T.checkForgottenReturns(o,s,"",n,this),n._resolveCallback(o)))}},N.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},N.prototype._followee=function(){return this._rejectionHandler0},N.prototype._setFollowee=function(e){this._rejectionHandler0=e},N.prototype._settlePromise=function(e,t,r,i){var s=e instanceof N,a=this._bitField,l=!!(134217728&a);65536&a?(s&&e._invokeInternalOnCancel(),r instanceof P&&r.isFinallyHandler()?(r.cancelPromise=e,I(t).call(r,i)===C&&e._reject(C.e)):t===n?e._fulfill(n.call(r)):r instanceof o?r._promiseCancelled(e):s||e instanceof A?e._cancel():r.cancel()):"function"==typeof t?s?(l&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,r,i,e)):t.call(r,i,e):r instanceof o?r._isResolved()||(33554432&a?r._promiseFulfilled(i,e):r._promiseRejected(i,e)):s&&(l&&e._setAsyncGuaranteed(),33554432&a?e._fulfill(i):e._reject(i))},N.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,r=e.promise,n=e.receiver,i=e.value;"function"==typeof t?r instanceof N?this._settlePromiseFromHandler(t,n,i,r):t.call(n,i,r):r instanceof N&&r._reject(i)},N.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},N.prototype._settlePromise0=function(e,t,r){var n=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(n,e,i,t)},N.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},N.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(134217728&t?this._settlePromises():m.settlePromises(this),this._dereferenceTrace())}},N.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return m.fatalError(e,a.isNode);(65535&t)>0?m.settlePromises(this):this._ensurePossibleRejectionHandled()}},N.prototype._fulfillPromises=function(e,t){for(var r=1;r<e;r++){var n=this._fulfillmentHandlerAt(r),i=this._promiseAt(r),o=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,o,t)}},N.prototype._rejectPromises=function(e,t){for(var r=1;r<e;r++){var n=this._rejectionHandlerAt(r),i=this._promiseAt(r),o=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,o,t)}},N.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(16842752&e){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,e),this._rejectPromises(t,r)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,e),this._fulfillPromises(t,n)}this._setLength(0)}this._clearCancellationData()},N.prototype._settledValue=function(){var e=this._bitField;return 33554432&e?this._rejectionHandler0:16777216&e?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&_.defineProperty(N.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),N.defer=N.pending=function(){return T.deprecated("Promise.defer","new Promise"),{promise:new N(S),resolve:j,reject:F}},a.notEnumerableProp(N,"_makeSelfResolutionError",r),e("./method")(N,S,R,i,T),e("./bind")(N,S,R,T),e("./cancel")(N,A,i,T),e("./direct_resolve")(N),e("./synchronous_inspection")(N),e("./join")(N,A,R,S,m),N.Promise=N,N.version="3.7.2",e("./call_get.js")(N),e("./generators.js")(N,i,S,R,o,T),e("./map.js")(N,A,i,R,S,T),e("./nodeify.js")(N),e("./promisify.js")(N,S),e("./props.js")(N,A,R,i),e("./race.js")(N,S,R,i),e("./reduce.js")(N,A,i,R,S,T),e("./settle.js")(N,A,T),e("./some.js")(N,A,i),e("./timers.js")(N,S,T),e("./using.js")(N,i,R,k,S,T),e("./any.js")(N),e("./each.js")(N,S),e("./filter.js")(N,S),a.toFastProperties(N),a.toFastProperties(N.prototype),W({a:1}),W({b:2}),W({c:3}),W(1),W((function(){})),W(void 0),W(!1),W(new N(S)),T.setBounds(y.firstLineError,a.lastLineError),N}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(e,t,r){t.exports=function(t,r,n,i,o){var s=e("./util");function a(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}function l(e){var n=this._promise=new t(r);e instanceof t&&(n._propagateFrom(e,3),e.suppressUnhandledRejections()),n._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return s.isArray,s.inherits(l,o),l.prototype.length=function(){return this._length},l.prototype.promise=function(){return this._promise},l.prototype._init=function e(r,o){var l=n(this._values,this._promise);if(l instanceof t){var c=(l=l._target())._bitField;if(this._values=l,!(50397184&c))return this._promise._setAsyncGuaranteed(),l._then(e,this._reject,void 0,this,o);if(!(33554432&c))return 16777216&c?this._reject(l._reason()):this._cancel();l=l._value()}if(null!==(l=s.asArray(l)))0!==l.length?this._iterate(l):-5===o?this._resolveEmptyArray():this._resolve(a(o));else{var u=i("expecting an array or an iterable object but got "+s.classString(l)).reason();this._promise._rejectCallback(u,!1)}},l.prototype._iterate=function(e){var r=this.getActualLength(e.length);this._length=r,this._values=this.shouldCopyValues()?new Array(r):this._values;for(var i=this._promise,o=!1,s=null,a=0;a<r;++a){var l=n(e[a],i);s=l instanceof t?(l=l._target())._bitField:null,o?null!==s&&l.suppressUnhandledRejections():null!==s?50397184&s?o=33554432&s?this._promiseFulfilled(l._value(),a):16777216&s?this._promiseRejected(l._reason(),a):this._promiseCancelled(a):(l._proxy(this,a),this._values[a]=l):o=this._promiseFulfilled(l,a)}o||i._setAsyncGuaranteed()},l.prototype._isResolved=function(){return null===this._values},l.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},l.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},l.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},l.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},l.prototype._promiseCancelled=function(){return this._cancel(),!0},l.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},l.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var r=0;r<e.length;++r)e[r]instanceof t&&e[r].cancel()}},l.prototype.shouldCopyValues=function(){return!0},l.prototype.getActualLength=function(e){return e},l}},{"./util":36}],24:[function(e,t,r){t.exports=function(t,r){var n={},i=e("./util"),o=e("./nodeback"),s=i.withAppended,a=i.maybeWrapAsError,l=i.canEvaluate,c=e("./errors").TypeError,u="Async",f={__isPromisified__:!0},h=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),d=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function p(e){return!h.test(e)}function b(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function _(e,t,r){var n=i.getDataPropertyOrDefault(e,t+r,f);return!!n&&b(n)}function y(e,t,r){for(var n=0;n<e.length;n+=2){var i=e[n];if(r.test(i))for(var o=i.replace(r,""),s=0;s<e.length;s+=2)if(e[s]===o)throw new c("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}function m(e,t,r,n){for(var o=i.inheritedDataKeys(e),s=[],a=0;a<o.length;++a){var l=o[a],c=e[l],u=n===d||d(l,c,e);"function"!=typeof c||b(c)||_(e,l,t)||!n(l,c,e,u)||s.push(l,c)}return y(s,t,r),s}var g,w=function(e){return e.replace(/([$])/,"\\$")};function v(e,l,c,u,f,h){var d=function(){return this}(),p=e;function b(){var i=l;l===n&&(i=this);var c=new t(r);c._captureStackTrace();var u="string"==typeof p&&this!==d?this[p]:e,f=o(c,h);try{u.apply(i,s(arguments,f))}catch(e){c._rejectCallback(a(e),!0,!0)}return c._isFateSealed()||c._setAsyncGuaranteed(),c}return"string"==typeof p&&(e=u),i.notEnumerableProp(b,"__isPromisified__",!0),b}var S=l?g:v;function E(e,t,r,o,s){for(var a=new RegExp(w(t)+"$"),l=m(e,t,a,r),c=0,u=l.length;c<u;c+=2){var f=l[c],h=l[c+1],d=f+t;if(o===S)e[d]=S(f,n,f,h,t,s);else{var p=o(h,(function(){return S(f,n,f,h,t,s)}));i.notEnumerableProp(p,"__isPromisified__",!0),e[d]=p}}return i.toFastProperties(e),e}function x(e,t,r){return S(e,t,void 0,e,null,r)}t.promisify=function(e,t){if("function"!=typeof e)throw new c("expecting a function but got "+i.classString(e));if(b(e))return e;var r=x(e,void 0===(t=Object(t)).context?n:t.context,!!t.multiArgs);return i.copyDescriptors(e,r,p),r},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new c("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var r=!!(t=Object(t)).multiArgs,n=t.suffix;"string"!=typeof n&&(n=u);var o=t.filter;"function"!=typeof o&&(o=d);var s=t.promisifier;if("function"!=typeof s&&(s=S),!i.isIdentifier(n))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=i.inheritedDataKeys(e),l=0;l<a.length;++l){var f=e[a[l]];"constructor"!==a[l]&&i.isClass(f)&&(E(f.prototype,n,o,s,r),E(f,n,o,s,r))}return E(e,n,o,s,r)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,r){t.exports=function(t,r,n,i){var o,s=e("./util"),a=s.isObject,l=e("./es5");"function"==typeof Map&&(o=Map);var c=function(){var e=0,t=0;function r(r,n){this[e]=r,this[e+t]=n,e++}return function(n){t=n.size,e=0;var i=new Array(2*n.size);return n.forEach(r,i),i}}(),u=function(e){for(var t=new o,r=e.length/2|0,n=0;n<r;++n){var i=e[r+n],s=e[n];t.set(i,s)}return t};function f(e){var t,r=!1;if(void 0!==o&&e instanceof o)t=c(e),r=!0;else{var n=l.keys(e),i=n.length;t=new Array(2*i);for(var s=0;s<i;++s){var a=n[s];t[s]=e[a],t[s+i]=a}}this.constructor$(t),this._isMap=r,this._init$(void 0,r?-6:-3)}function h(e){var r,o=n(e);return a(o)?(r=o instanceof t?o._then(t.props,void 0,void 0,void 0,void 0):new f(o).promise(),o instanceof t&&r._propagateFrom(o,2),r):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}s.inherits(f,r),f.prototype._init=function(){},f.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var r;if(this._isMap)r=u(this._values);else{r={};for(var n=this.length(),i=0,o=this.length();i<o;++i)r[this._values[i+n]]=this._values[i]}return this._resolve(r),!0}return!1},f.prototype.shouldCopyValues=function(){return!1},f.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return h(this)},t.props=function(e){return h(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,r){function n(e,t,r,n,i){for(var o=0;o<i;++o)r[o+n]=e[o+t],e[o+t]=void 0}function i(e){this._capacity=e,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(e){return this._capacity<e},i.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},i.prototype.push=function(e,t,r){var n=this.length()+3;if(this._willBeOverCapacity(n))return this._pushOne(e),this._pushOne(t),void this._pushOne(r);var i=this._front+n-3;this._checkCapacity(n);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=r,this._length=n},i.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,n(this,0,this,t,this._front+this._length&t-1)},t.exports=i},{}],27:[function(e,t,r){t.exports=function(t,r,n,i){var o=e("./util"),s=function(e){return e.then((function(t){return a(t,e)}))};function a(e,a){var l=n(e);if(l instanceof t)return s(l);if(null===(e=o.asArray(e)))return i("expecting an array or an iterable object but got "+o.classString(e));var c=new t(r);void 0!==a&&c._propagateFrom(a,3);for(var u=c._fulfill,f=c._reject,h=0,d=e.length;h<d;++h){var p=e[h];(void 0!==p||h in e)&&t.cast(p)._then(u,f,void 0,c,null)}return c}t.race=function(e){return a(e,void 0)},t.prototype.race=function(){return a(this,void 0)}}},{"./util":36}],28:[function(e,t,r){t.exports=function(t,r,n,i,o,s){var a=e("./util"),l=a.tryCatch;function c(e,r,n,i){this.constructor$(e);var s=t._getContext();this._fn=a.contextBind(s,r),void 0!==n&&(n=t.resolve(n))._attachCancellationCallback(this),this._initialValue=n,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function f(e,t,r,i){return"function"!=typeof t?n("expecting a function but got "+a.classString(t)):new c(e,t,r,i).promise()}function h(e){this.accum=e,this.array._gotAccum(e);var r=i(this.value,this.array._promise);return r instanceof t?(this.array._currentCancellable=r,r._then(d,void 0,void 0,this,void 0)):d.call(this,r)}function d(e){var r,n=this.array,i=n._promise,o=l(n._fn);i._pushContext(),(r=void 0!==n._eachValues?o.call(i._boundValue(),e,this.index,this.length):o.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(n._currentCancellable=r);var a=i._popContext();return s.checkForgottenReturns(r,a,void 0!==n._eachValues?"Promise.each":"Promise.reduce",i),r}a.inherits(c,r),c.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},c.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},c.prototype._init=function(){},c.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},c.prototype.shouldCopyValues=function(){return!1},c.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},c.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},c.prototype._iterate=function(e){var r,n;this._values=e;var i=e.length;void 0!==this._initialValue?(r=this._initialValue,n=0):(r=t.resolve(e[0]),n=1),this._currentCancellable=r;for(var o=n;o<i;++o){var s=e[o];s instanceof t&&s.suppressUnhandledRejections()}if(!r.isRejected())for(;n<i;++n){var a={accum:null,value:e[n],index:n,length:i,array:this};r=r._then(h,void 0,void 0,a,void 0),127&n||r._setNoAsyncGuarantee()}void 0!==this._eachValues&&(r=r._then(this._eachComplete,void 0,void 0,this,void 0)),r._then(u,u,void 0,r,this)},t.prototype.reduce=function(e,t){return f(this,e,t,null)},t.reduce=function(e,t,r,n){return f(e,t,r,n)}}},{"./util":36}],29:[function(e,t,n){var i,o=e("./util"),s=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},a=o.getNativePromise();if(o.isNode&&"undefined"==typeof MutationObserver){var l=r.g.setImmediate,c=process.nextTick;i=o.isRecentNode?function(e){l.call(r.g,e)}:function(e){c.call(process,e)}}else if("function"==typeof a&&"function"==typeof a.resolve){var u=a.resolve();i=function(e){u.then(e)}}else i="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)||!("classList"in document.documentElement)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:s:function(){var e=document.createElement("div"),t={attributes:!0},r=!1,n=document.createElement("div");new MutationObserver((function(){e.classList.toggle("foo"),r=!1})).observe(n,t);var i=function(){r||(r=!0,n.classList.toggle("foo"))};return function(r){var n=new MutationObserver((function(){n.disconnect(),r()}));n.observe(e,t),i()}}();t.exports=i},{"./util":36}],30:[function(e,t,r){t.exports=function(t,r,n){var i=t.PromiseInspection;function o(e){this.constructor$(e)}e("./util").inherits(o,r),o.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var r=new i;return r._bitField=33554432,r._settledValueField=e,this._promiseResolved(t,r)},o.prototype._promiseRejected=function(e,t){var r=new i;return r._bitField=16777216,r._settledValueField=e,this._promiseResolved(t,r)},t.settle=function(e){return n.deprecated(".settle()",".reflect()"),new o(e).promise()},t.allSettled=function(e){return new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,r){t.exports=function(t,r,n){var i=e("./util"),o=e("./errors").RangeError,s=e("./errors").AggregateError,a=i.isArray,l={};function c(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(e,t){if((0|t)!==t||t<0)return n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var r=new c(e),i=r.promise();return r.setHowMany(t),r.init(),i}i.inherits(c,r),c.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=a(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(e){this._howMany=e},c.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},c.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new s,t=this.length();t<this._values.length;++t)this._values[t]!==l&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(e){this._values.push(e)},c.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return u(e,t)},t.prototype.some=function(e){return u(this,e)},t._SomePromiseArray=c}},{"./errors":12,"./util":36}],32:[function(e,t,r){t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var r=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},n=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return!!(33554432&this._bitField)},o=t.prototype.isRejected=function(){return!!(16777216&this._bitField)},s=t.prototype.isPending=function(){return!(50397184&this._bitField)},a=t.prototype.isResolved=function(){return!!(50331648&this._bitField)};t.prototype.isCancelled=function(){return!!(8454144&this._bitField)},e.prototype.__isCancelled=function(){return!(65536&~this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return!!(8454144&this._target()._bitField)},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return a.call(this._target())},e.prototype.value=function(){return r.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),n.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,r){t.exports=function(t,r){var n=e("./util"),i=n.errorObj,o=n.isObject;function s(e,n){if(o(e)){if(e instanceof t)return e;var s=l(e);if(s===i){n&&n._pushContext();var a=t.reject(s.e);return n&&n._popContext(),a}if("function"==typeof s)return u(e)?(a=new t(r),e._then(a._fulfill,a._reject,void 0,a,null),a):f(e,s,n)}return e}function a(e){return e.then}function l(e){try{return a(e)}catch(e){return i.e=e,i}}var c={}.hasOwnProperty;function u(e){try{return c.call(e,"_promise0")}catch(e){return!1}}function f(e,o,s){var a=new t(r),l=a;s&&s._pushContext(),a._captureStackTrace(),s&&s._popContext();var c=!0,u=n.tryCatch(o).call(e,f,h);function f(e){a&&(a._resolveCallback(e),a=null)}function h(e){a&&(a._rejectCallback(e,c,!0),a=null)}return c=!1,a&&u===i&&(a._rejectCallback(u.e,!0,!0),a=null),l}return s}},{"./util":36}],34:[function(e,t,r){t.exports=function(t,r,n){var i=e("./util"),o=t.TimeoutError;function s(e){this.handle=e}s.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,i){var o,l;return void 0!==i?(o=t.resolve(i)._then(a,null,null,e,void 0),n.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(r),l=setTimeout((function(){o._fulfill()}),+e),n.cancellation()&&o._setOnCancel(new s(l)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};t.prototype.delay=function(e){return l(e,this)};var c=function(e,t,r){var n;n="string"!=typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(n),e._attachExtraTrace(n),e._reject(n),null!=r&&r.cancel()};function u(e){return clearTimeout(this.handle),e}function f(e){throw clearTimeout(this.handle),e}t.prototype.timeout=function(e,t){var r,i;e=+e;var o=new s(setTimeout((function(){r.isPending()&&c(r,t,i)}),e));return n.cancellation()?(i=this.then(),(r=i._then(u,f,void 0,o,void 0))._setOnCancel(o)):r=this._then(u,f,void 0,o,void 0),r}}},{"./util":36}],35:[function(e,t,r){t.exports=function(t,r,n,i,o,s){var a=e("./util"),l=e("./errors").TypeError,c=e("./util").inherits,u=a.errorObj,f=a.tryCatch,h={};function d(e){setTimeout((function(){throw e}),0)}function p(e){var t=n(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function b(e,r){var i=0,s=e.length,a=new t(o);function l(){if(i>=s)return a._fulfill();var o=p(e[i++]);if(o instanceof t&&o._isDisposable()){try{o=n(o._getDisposer().tryDispose(r),e.promise)}catch(e){return d(e)}if(o instanceof t)return o._then(l,d,null,null,null)}l()}return l(),a}function _(e,t,r){this._data=e,this._promise=t,this._context=r}function y(e,t,r){this.constructor$(e,t,r)}function m(e){return _.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function g(e){this.length=e,this.promise=null,this[e-1]=null}_.prototype.data=function(){return this._data},_.prototype.promise=function(){return this._promise},_.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():h},_.prototype.tryDispose=function(e){var t=this.resource(),r=this._context;void 0!==r&&r._pushContext();var n=t!==h?this.doDispose(t,e):null;return void 0!==r&&r._popContext(),this._promise._unsetDisposable(),this._data=null,n},_.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},c(y,_),y.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},g.prototype._resultCancelled=function(){for(var e=this.length,r=0;r<e;++r){var n=this[r];n instanceof t&&n.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return r("you must pass at least 2 arguments to Promise.using");var i,o=arguments[e-1];if("function"!=typeof o)return r("expecting a function but got "+a.classString(o));var l=!0;2===e&&Array.isArray(arguments[0])?(e=(i=arguments[0]).length,l=!1):(i=arguments,e--);for(var c=new g(e),h=0;h<e;++h){var d=i[h];if(_.isDisposer(d)){var p=d;(d=d.promise())._setDisposable(p)}else{var y=n(d);y instanceof t&&(d=y._then(m,null,null,{resources:c,index:h},void 0))}c[h]=d}var w=new Array(c.length);for(h=0;h<w.length;++h)w[h]=t.resolve(c[h]).reflect();var v=t.all(w).then((function(e){for(var t=0;t<e.length;++t){var r=e[t];if(r.isRejected())return u.e=r.error(),u;if(!r.isFulfilled())return void v.cancel();e[t]=r.value()}S._pushContext(),o=f(o);var n=l?o.apply(void 0,e):o(e),i=S._popContext();return s.checkForgottenReturns(n,i,"Promise.using",S),n})),S=v.lastly((function(){var e=new t.PromiseInspection(v);return b(c,e)}));return c.promise=S,S._setOnCancel(c),S},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new y(e,this,i());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,t,n){var i,o=e("./es5"),s="undefined"==typeof navigator,a={e:{}},l="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0!==this?this:null;function c(){try{var e=i;return i=null,e.apply(this,arguments)}catch(e){return a.e=e,a}}function u(e){return i=e,c}var f=function(e,t){var r={}.hasOwnProperty;function n(){for(var n in this.constructor=e,this.constructor$=t,t.prototype)r.call(t.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=t.prototype[n])}return n.prototype=t.prototype,e.prototype=new n,e.prototype};function h(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function d(e){return"function"==typeof e||"object"==typeof e&&null!==e}function p(e){return h(e)?new Error(A(e)):e}function b(e,t){var r,n=e.length,i=new Array(n+1);for(r=0;r<n;++r)i[r]=e[r];return i[r]=t,i}function _(e,t,r){if(!o.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var n=Object.getOwnPropertyDescriptor(e,t);return null!=n?null==n.get&&null==n.set?n.value:r:void 0}function y(e,t,r){if(h(e))return e;var n={value:r,configurable:!0,enumerable:!1,writable:!0};return o.defineProperty(e,t,n),e}function m(e){throw e}var g=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1};if(o.isES5){var r=Object.getOwnPropertyNames;return function(e){for(var n=[],i=Object.create(null);null!=e&&!t(e);){var s;try{s=r(e)}catch(e){return n}for(var a=0;a<s.length;++a){var l=s[a];if(!i[l]){i[l]=!0;var c=Object.getOwnPropertyDescriptor(e,l);null!=c&&null==c.get&&null==c.set&&n.push(l)}}e=o.getPrototypeOf(e)}return n}}var n={}.hasOwnProperty;return function(r){if(t(r))return[];var i=[];e:for(var o in r)if(n.call(r,o))i.push(o);else{for(var s=0;s<e.length;++s)if(n.call(e[s],o))continue e;i.push(o)}return i}}(),w=/this\s*\.\s*\S+\s*=/;function v(e){try{if("function"==typeof e){var t=o.names(e.prototype),r=o.isES5&&t.length>1,n=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=w.test(e+"")&&o.names(e).length>0;if(r||n||i)return!0}return!1}catch(e){return!1}}function S(e){function t(){}t.prototype=e;var r=new t;function n(){return typeof r.foo}return n(),n(),e}var E=/^[a-z$_][a-z$_0-9]*$/i;function x(e){return E.test(e)}function R(e,t,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=t+i+r;return n}function A(e){try{return e+""}catch(e){return"[no string representation]"}}function O(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function k(e){try{y(e,"isOperational",!0)}catch(e){}}function T(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function P(e){return O(e)&&o.propertyIsWritable(e,"stack")}var M="stack"in new Error?function(e){return P(e)?e:new Error(A(e))}:function(e){if(P(e))return e;try{throw new Error(A(e))}catch(e){return e}};function L(e){return{}.toString.call(e)}function C(e,t,r){for(var n=o.names(e),i=0;i<n.length;++i){var s=n[i];if(r(s))try{o.defineProperty(t,s,o.getDescriptor(e,s))}catch(e){}}}var I=function(e){return o.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var D="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,r=[],n=e[Symbol.iterator]();!(t=n.next()).done;)r.push(t.value);return r};I=function(e){return o.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?D(e):null}}var N,j="undefined"!=typeof process&&"[object process]"===L(process).toLowerCase(),F="undefined"!=typeof process&&void 0!==process.env;function W(e){return F?process.env[e]:void 0}function B(){if("function"==typeof Promise)try{if("[object Promise]"===L(new Promise((function(){}))))return Promise}catch(e){}}function U(e,t){if(null===e||"function"!=typeof t||t===N)return t;null!==e.domain&&(t=e.domain.bind(t));var r=e.async;if(null!==r){var n=t;t=function(){var e=new Array(2).concat([].slice.call(arguments));return e[0]=n,e[1]=this,r.runInAsyncScope.apply(r,e)}}return t}var $,z={setReflectHandler:function(e){N=e},isClass:v,isIdentifier:x,inheritedDataKeys:g,getDataPropertyOrDefault:_,thrower:m,isArray:o.isArray,asArray:I,notEnumerableProp:y,isPrimitive:h,isObject:d,isError:O,canEvaluate:s,errorObj:a,tryCatch:u,inherits:f,withAppended:b,maybeWrapAsError:p,toFastProperties:S,filledRange:R,toString:A,canAttachTrace:P,ensureErrorObject:M,originatesFromRejection:T,markAsOriginatingFromRejection:k,classString:L,copyDescriptors:C,isNode:j,hasEnvVariables:F,env:W,global:l,getNativePromise:B,contextBind:U};z.isRecentNode=z.isNode&&(process.versions&&process.versions.node?$=process.versions.node.split(".").map(Number):process.version&&($=process.version.split(".").map(Number)),0===$[0]&&$[1]>10||$[0]>0),z.nodeSupportsAsyncResource=z.isNode&&function(){var t=!1;try{t="function"==typeof e("async_hooks").AsyncResource.prototype.runInAsyncScope}catch(e){t=!1}return t}(),z.isNode&&z.toFastProperties(process);try{throw new Error}catch(e){z.lastLineError=e}t.exports=z},{"./es5":13,async_hooks:void 0}]},{},[4])(4),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)},(e,t,r)=>{var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;const n=r(370),i=r(203),o=new Set(["!","?","+","*","@"]),s=e=>o.has(e),a="(?!\\.)",l=new Set(["[","."]),c=new Set(["..","."]),u=new Set("().*{}+?[]^$\\!"),f="[^/]",h=f+"*?",d=f+"+?";class p{type;#oe;#se;#ae=!1;#le=[];#ce;#ue;#fe;#he=!1;#de;#pe;#be=!1;constructor(e,t,r={}){this.type=e,e&&(this.#se=!0),this.#ce=t,this.#oe=this.#ce?this.#ce.#oe:this,this.#de=this.#oe===this?r:this.#oe.#de,this.#fe=this.#oe===this?[]:this.#oe.#fe,"!"!==e||this.#oe.#he||this.#fe.push(this),this.#ue=this.#ce?this.#ce.#le.length:0}get hasMagic(){if(void 0!==this.#se)return this.#se;for(const e of this.#le)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#se=!0;return this.#se}toString(){return void 0!==this.#pe?this.#pe:this.type?this.#pe=this.type+"("+this.#le.map((e=>String(e))).join("|")+")":this.#pe=this.#le.map((e=>String(e))).join("")}#_e(){if(this!==this.#oe)throw new Error("should only call on root");if(this.#he)return this;let e;for(this.toString(),this.#he=!0;e=this.#fe.pop();){if("!"!==e.type)continue;let t=e,r=t.#ce;for(;r;){for(let n=t.#ue+1;!r.type&&n<r.#le.length;n++)for(const t of e.#le){if("string"==typeof t)throw new Error("string part in extglob AST??");t.copyIn(r.#le[n])}t=r,r=t.#ce}}return this}push(...e){for(const t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof p&&t.#ce===this))throw new Error("invalid part: "+t);this.#le.push(t)}}toJSON(){const e=null===this.type?this.#le.slice().map((e=>"string"==typeof e?e:e.toJSON())):[this.type,...this.#le.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#oe||this.#oe.#he&&"!"===this.#ce?.type)&&e.push({}),e}isStart(){if(this.#oe===this)return!0;if(!this.#ce?.isStart())return!1;if(0===this.#ue)return!0;const e=this.#ce;for(let t=0;t<this.#ue;t++){const r=e.#le[t];if(!(r instanceof p&&"!"===r.type))return!1}return!0}isEnd(){if(this.#oe===this)return!0;if("!"===this.#ce?.type)return!0;if(!this.#ce?.isEnd())return!1;if(!this.type)return this.#ce?.isEnd();const e=this.#ce?this.#ce.#le.length:0;return this.#ue===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){const t=new p(this.type,e);for(const e of this.#le)t.copyIn(e);return t}static#ye(e,t,r,n){let i=!1,o=!1,a=-1,l=!1;if(null===t.type){let c=r,u="";for(;c<e.length;){const r=e.charAt(c++);if(i||"\\"===r)i=!i,u+=r;else if(o)c===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||c===a+2&&l||(o=!1),u+=r;else if("["!==r)if(n.noext||!s(r)||"("!==e.charAt(c))u+=r;else{t.push(u),u="";const i=new p(r,t);c=p.#ye(e,i,c,n),t.push(i)}else o=!0,a=c,l=!1,u+=r}return t.push(u),c}let c=r+1,u=new p(null,t);const f=[];let h="";for(;c<e.length;){const r=e.charAt(c++);if(i||"\\"===r)i=!i,h+=r;else if(o)c===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||c===a+2&&l||(o=!1),h+=r;else if("["!==r)if(s(r)&&"("===e.charAt(c)){u.push(h),h="";const t=new p(r,u);u.push(t),c=p.#ye(e,t,c,n)}else if("|"!==r){if(")"===r)return""===h&&0===t.#le.length&&(t.#be=!0),u.push(h),h="",t.push(...f,u),c;h+=r}else u.push(h),h="",f.push(u),u=new p(null,t);else o=!0,a=c,l=!1,h+=r}return t.type=null,t.#se=void 0,t.#le=[e.substring(r-1)],c}static fromGlob(e,t={}){const r=new p(null,void 0,t);return p.#ye(e,r,0,t),r}toMMPattern(){if(this!==this.#oe)return this.#oe.toMMPattern();const e=this.toString(),[t,r,n,i]=this.toRegExpSource();if(!(n||this.#se||this.#de.nocase&&!this.#de.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;const o=(this.#de.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,o),{_src:t,_glob:e})}toRegExpSource(e){const t=e??!!this.#de.dot;if(this.#oe===this&&this.#_e(),!this.type){const r=this.isStart()&&this.isEnd(),n=this.#le.map((t=>{const[n,i,o,s]="string"==typeof t?p.#me(t,this.#se,r):t.toRegExpSource(e);return this.#se=this.#se||o,this.#ae=this.#ae||s,n})).join("");let o="";if(this.isStart()&&"string"==typeof this.#le[0]){if(!(1===this.#le.length&&c.has(this.#le[0]))){const r=l,i=t&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),s=!t&&!e&&r.has(n.charAt(0));o=i?"(?!(?:^|/)\\.\\.?(?:$|/))":s?a:""}}let s="";this.isEnd()&&this.#oe.#he&&"!"===this.#ce?.type&&(s="(?:$|\\/)");return[o+n+s,(0,i.unescape)(n),this.#se=!!this.#se,this.#ae]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let o=this.#ge(t);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){const e=this.toString();return this.#le=[e],this.type=null,this.#se=void 0,[e,(0,i.unescape)(this.toString()),!1,!1]}let s=!r||e||t?"":this.#ge(!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let u="";if("!"===this.type&&this.#be)u=(this.isStart()&&!t?a:"")+d;else{u=n+o+("!"===this.type?"))"+(!this.isStart()||t||e?"":a)+h+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&s?")":"*"===this.type&&s?")?":`)${this.type}`)}return[u,(0,i.unescape)(o),this.#se=!!this.#se,this.#ae]}#ge(e){return this.#le.map((t=>{if("string"==typeof t)throw new Error("string type in extglob ast??");const[r,n,i,o]=t.toRegExpSource(e);return this.#ae=this.#ae||o,r})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#me(e,t,r=!1){let o=!1,s="",a=!1;for(let i=0;i<e.length;i++){const l=e.charAt(i);if(o)o=!1,s+=(u.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[r,o,l,c]=(0,n.parseClass)(e,i);if(l){s+=r,a=a||o,i+=l-1,t=t||c;continue}}"*"!==l?"?"!==l?s+=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(s+=f,t=!0):(s+=r&&"*"===e?d:h,t=!0)}else i===e.length-1?s+="\\\\":o=!0}return[s,(0,i.unescape)(e),!!t,a]}}t.AST=p},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0;t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;const n=r(37),i=r(115),o=r(156),s=r(289),a=r(372),l="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class c{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,o.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof e&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(e=e.map((e=>e.replace(/\\/g,"/")))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map((e=>e.includes("/")?e:`./**/${e}`))}if(this.pattern=e,this.platform=t.platform||l,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,void 0!==t.nocase&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const e="win32"===t.platform?i.PathScurryWin32:"darwin"===t.platform?i.PathScurryDarwin:t.platform?i.PathScurryPosix:i.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,a={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},c=this.pattern.map((e=>new n.Minimatch(e,a))),[u,f]=c.reduce(((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e)),[[],[]]);this.patterns=u.map(((e,t)=>{const r=f[t];if(!r)throw new Error("invalid pattern object");return new s.Pattern(e,r,0,this.platform)}))}async walk(){return[...await new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=c},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;const n=r(37);t.hasMagic=(e,t={})=>{Array.isArray(e)||(e=[e]);for(const r of e)if(new n.Minimatch(r,t).hasMagic())return!0;return!1}},(e,t,r)=>{var n=r(208).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=s(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;const n=r(379),i=r(209),o=new Set(["!","?","+","*","@"]),s=e=>o.has(e),a="(?!\\.)",l=new Set(["[","."]),c=new Set(["..","."]),u=new Set("().*{}+?[]^$\\!"),f="[^/]",h=f+"*?",d=f+"+?";class p{type;#oe;#se;#ae=!1;#le=[];#ce;#ue;#fe;#he=!1;#de;#pe;#be=!1;constructor(e,t,r={}){this.type=e,e&&(this.#se=!0),this.#ce=t,this.#oe=this.#ce?this.#ce.#oe:this,this.#de=this.#oe===this?r:this.#oe.#de,this.#fe=this.#oe===this?[]:this.#oe.#fe,"!"!==e||this.#oe.#he||this.#fe.push(this),this.#ue=this.#ce?this.#ce.#le.length:0}get hasMagic(){if(void 0!==this.#se)return this.#se;for(const e of this.#le)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#se=!0;return this.#se}toString(){return void 0!==this.#pe?this.#pe:this.type?this.#pe=this.type+"("+this.#le.map((e=>String(e))).join("|")+")":this.#pe=this.#le.map((e=>String(e))).join("")}#_e(){if(this!==this.#oe)throw new Error("should only call on root");if(this.#he)return this;let e;for(this.toString(),this.#he=!0;e=this.#fe.pop();){if("!"!==e.type)continue;let t=e,r=t.#ce;for(;r;){for(let n=t.#ue+1;!r.type&&n<r.#le.length;n++)for(const t of e.#le){if("string"==typeof t)throw new Error("string part in extglob AST??");t.copyIn(r.#le[n])}t=r,r=t.#ce}}return this}push(...e){for(const t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof p&&t.#ce===this))throw new Error("invalid part: "+t);this.#le.push(t)}}toJSON(){const e=null===this.type?this.#le.slice().map((e=>"string"==typeof e?e:e.toJSON())):[this.type,...this.#le.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#oe||this.#oe.#he&&"!"===this.#ce?.type)&&e.push({}),e}isStart(){if(this.#oe===this)return!0;if(!this.#ce?.isStart())return!1;if(0===this.#ue)return!0;const e=this.#ce;for(let t=0;t<this.#ue;t++){const r=e.#le[t];if(!(r instanceof p&&"!"===r.type))return!1}return!0}isEnd(){if(this.#oe===this)return!0;if("!"===this.#ce?.type)return!0;if(!this.#ce?.isEnd())return!1;if(!this.type)return this.#ce?.isEnd();const e=this.#ce?this.#ce.#le.length:0;return this.#ue===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){const t=new p(this.type,e);for(const e of this.#le)t.copyIn(e);return t}static#ye(e,t,r,n){let i=!1,o=!1,a=-1,l=!1;if(null===t.type){let c=r,u="";for(;c<e.length;){const r=e.charAt(c++);if(i||"\\"===r)i=!i,u+=r;else if(o)c===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||c===a+2&&l||(o=!1),u+=r;else if("["!==r)if(n.noext||!s(r)||"("!==e.charAt(c))u+=r;else{t.push(u),u="";const i=new p(r,t);c=p.#ye(e,i,c,n),t.push(i)}else o=!0,a=c,l=!1,u+=r}return t.push(u),c}let c=r+1,u=new p(null,t);const f=[];let h="";for(;c<e.length;){const r=e.charAt(c++);if(i||"\\"===r)i=!i,h+=r;else if(o)c===a+1?"^"!==r&&"!"!==r||(l=!0):"]"!==r||c===a+2&&l||(o=!1),h+=r;else if("["!==r)if(s(r)&&"("===e.charAt(c)){u.push(h),h="";const t=new p(r,u);u.push(t),c=p.#ye(e,t,c,n)}else if("|"!==r){if(")"===r)return""===h&&0===t.#le.length&&(t.#be=!0),u.push(h),h="",t.push(...f,u),c;h+=r}else u.push(h),h="",f.push(u),u=new p(null,t);else o=!0,a=c,l=!1,h+=r}return t.type=null,t.#se=void 0,t.#le=[e.substring(r-1)],c}static fromGlob(e,t={}){const r=new p(null,void 0,t);return p.#ye(e,r,0,t),r}toMMPattern(){if(this!==this.#oe)return this.#oe.toMMPattern();const e=this.toString(),[t,r,n,i]=this.toRegExpSource();if(!(n||this.#se||this.#de.nocase&&!this.#de.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;const o=(this.#de.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,o),{_src:t,_glob:e})}toRegExpSource(e){const t=e??!!this.#de.dot;if(this.#oe===this&&this.#_e(),!this.type){const r=this.isStart()&&this.isEnd(),n=this.#le.map((t=>{const[n,i,o,s]="string"==typeof t?p.#me(t,this.#se,r):t.toRegExpSource(e);return this.#se=this.#se||o,this.#ae=this.#ae||s,n})).join("");let o="";if(this.isStart()&&"string"==typeof this.#le[0]){if(!(1===this.#le.length&&c.has(this.#le[0]))){const r=l,i=t&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),s=!t&&!e&&r.has(n.charAt(0));o=i?"(?!(?:^|/)\\.\\.?(?:$|/))":s?a:""}}let s="";this.isEnd()&&this.#oe.#he&&"!"===this.#ce?.type&&(s="(?:$|\\/)");return[o+n+s,(0,i.unescape)(n),this.#se=!!this.#se,this.#ae]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let o=this.#ge(t);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){const e=this.toString();return this.#le=[e],this.type=null,this.#se=void 0,[e,(0,i.unescape)(this.toString()),!1,!1]}let s=!r||e||t?"":this.#ge(!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let u="";if("!"===this.type&&this.#be)u=(this.isStart()&&!t?a:"")+d;else{u=n+o+("!"===this.type?"))"+(!this.isStart()||t||e?"":a)+h+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&s?")":"*"===this.type&&s?")?":`)${this.type}`)}return[u,(0,i.unescape)(o),this.#se=!!this.#se,this.#ae]}#ge(e){return this.#le.map((t=>{if("string"==typeof t)throw new Error("string type in extglob ast??");const[r,n,i,o]=t.toRegExpSource(e);return this.#ae=this.#ae||o,r})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#me(e,t,r=!1){let o=!1,s="",a=!1;for(let i=0;i<e.length;i++){const l=e.charAt(i);if(o)o=!1,s+=(u.has(l)?"\\":"")+l;else if("\\"!==l){if("["===l){const[r,o,l,c]=(0,n.parseClass)(e,i);if(l){s+=r,a=a||o,i+=l-1,t=t||c;continue}}"*"!==l?"?"!==l?s+=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(s+=f,t=!0):(s+=r&&"*"===e?d:h,t=!0)}else i===e.length-1?s+="\\\\":o=!0}return[s,(0,i.unescape)(e),!!t,a]}}t.AST=p},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0;t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;const n=r(38),i=r(115),o=r(156),s=r(313),a=r(380),l="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class c{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,o.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof e&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(e=e.map((e=>e.replace(/\\/g,"/")))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map((e=>e.includes("/")?e:`./**/${e}`))}if(this.pattern=e,this.platform=t.platform||l,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,void 0!==t.nocase&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const e="win32"===t.platform?i.PathScurryWin32:"darwin"===t.platform?i.PathScurryDarwin:t.platform?i.PathScurryPosix:i.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,a={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},c=this.pattern.map((e=>new n.Minimatch(e,a))),[u,f]=c.reduce(((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e)),[[],[]]);this.patterns=u.map(((e,t)=>{const r=f[t];if(!r)throw new Error("invalid pattern object");return new s.Pattern(e,r,0,this.platform)}))}async walk(){return[...await new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=c},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;const n=r(38);t.hasMagic=(e,t={})=>{Array.isArray(e)||(e=[e]);for(const r of e)if(new n.Minimatch(r,t).hasMagic())return!0;return!1}},(e,t,r)=>{r.a(e,(async(e,n)=>{try{r.r(t);var i=r(116),o=r.n(i),s=r(119),a=r.n(s),l=r(125),c=r.n(l),u=r(212),f=r.n(u),h=r(384),d=r(189),p=r(39),b=r(288),_=r(385),y=r(3),m=r(386);function G(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=H(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(e,t){if(e){if("string"==typeof e)return V(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var g=new d.Logger({name:"web-documentation.deploy"}),w=(0,y.resolve)("./build/"),v=(0,y.resolve)("./data/"),S=["apiDocumentation/","api/"],E="${name}/${version}/",x=(0,y.join)(v,"distributionBundle.zip"),R=(0,y.join)(v,"distributionBundle"),A=[],O={module:{preprocessor:{ejs:{options:{locals:{__evaluate__:"parameters"}}}}},offline:null},k="",T="web-documentation",P="https://github.com/thaibault/"+T+".git",M={name:"__dummy__",version:"1.0.0"},L=!1,C=function(){var e=a()(c().mark((function e(t){var r,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===t&&(t={}),r=o()({directory:!1,encoding:"utf8",extension:"",prefix:"DW"},t),e.next=1,(0,b.mkdtemp)((0,y.join)((0,_.tmpdir)(),r.prefix),r.encoding);case 1:if(n=e.sent,!r.directory){e.next=2;break}return e.abrupt("return",n);case 2:return e.abrupt("return",(0,y.join)(n,""+r.prefix+r.extension));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(e,t){return void 0===t&&(t={}),(0,h.execSync)(e,o()({encoding:"utf-8",shell:"/bin/bash"},t))},D=function(){try{return I.apply(void 0,arguments),!0}catch(e){return!1}},N=function(){var e=a()(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var n=[];t.on("data",(function(e){return n.push(e)})),t.on("end",(function(){e(Buffer.concat(n))})),t.on("error",(function(e){r(e)}))})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=a()(c().mark((function e(t,r){var n,i,s,a,l,u,f,h,_,v,A,T,P,N,j,F,U,$,z,H,V,q,K,Y,Z,Q,X,J,ee,te,re;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g.info("Generate document website artefacts."),!r){e.next=5;break}return g.info("Prepare distribution files."),n=(0,y.join)(t,(0,y.relative)("./",w),(0,y.relative)("./",x)),e.next=1,(0,b.mkdir)((0,y.dirname)(n),{recursive:!0});case 1:return e.next=2,(0,b.copyFile)(r,n);case 2:return e.next=3,(0,b.rm)(r);case 3:return i=(0,y.join)(t,(0,y.relative)("./",w),(0,y.relative)("./",R)),e.next=4,(0,b.mkdir)(i,{recursive:!0});case 4:return e.next=5,new Promise((function(e,t){(0,p.createReadStream)(n).pipe((0,m.Extract)({path:i})).on("close",(function(){e()})).on("error",(function(e){t(e)}))}));case 5:return g.info("Prepare favicon file."),s="favicon.png",e.next=6,(0,d.isFile)(s);case 6:if(!e.sent){e.next=7;break}return e.next=7,(0,b.copyFile)(s,t+"/source/image/favicon.ico");case 7:for(g.info("Render html."),a={},l=0,u=Object.entries(M.documentationWebsite||{});l<u.length;l++)f=u[l],h=f[0],_=f[1],a[(0,d.camelCaseToDelimited)(h).toUpperCase()]=_;if(!a.TAGLINE&&M.description&&(a.TAGLINE=M.description),!a.NAME&&M.name&&(a.NAME=M.name),g.debug('Found parameters "'+(0,d.represent)(a)+'" to render.'),v=null,!L){e.next=9;break}return v=S[1]+E,e.next=8,(0,d.isDirectory)(v);case 8:if(e.sent){e.next=9;break}v=S[1];case 9:return Y=o(),Z={},Q=a,X=k,J=v,e.next=10,(0,d.isFile)(x);case 10:if(!e.sent){e.next=11;break}ee=(0,y.relative)("./",x),e.next=12;break;case 11:ee=null;case 12:for(a=Y(Z,Q,{CONTENT:X,API_DOCUMENTATION_PATH:J,DISTRIBUTION_BUNDLE_FILE_PATH:ee}),A=0,T=Object.entries(a);A<T.length;A++)P=T[A],N=P[0],"string"==typeof(j=P[1])&&(a[N]=j.replace("!","#%%%#"));return F=JSON.stringify((0,d.evaluateDynamicData)(O,o()({parameters:a},M))),e.next=13,C({extension:".json"});case 13:return U=e.sent,e.next=14,(0,b.writeFile)(U,F);case 14:if(!($=(0,d.evaluate)("`yarn build:web '{__reference__: \"${parametersFilePath}\"}'`",o()({parameters:a,parametersFilePath:U},M))).error){e.next=15;break}throw new Error($.error);case 15:return z=$.result,g.debug('Use final parameters "'+F+'".'),g.info('Run "'+z+'".'),g.debug(I(z,{cwd:t})),e.next=16,(0,b.rm)(U);case 16:return te=G,e.next=17,(0,b.readdir)("./");case 17:H=te(e.sent);case 18:if((V=H()).done){e.next=22;break}if(q=V.value,re=[(0,y.resolve)(t),(0,y.resolve)(S[1])].includes((0,y.resolve)(q))){e.next=20;break}return e.next=19,W(q);case 19:re=e.sent;case 20:if(re){e.next=21;break}return e.next=21,(0,b.rm)(q,{recursive:!0});case 21:e.next=18;break;case 22:return g.info("Copy all build artefacts."),K=(0,y.join)(t,(0,y.relative)("./",w)),e.next=23,(0,d.walkDirectoryRecursively)(K,(function(e){return B(K,"./",e)}));case 23:return e.next=24,(0,b.rm)(t,{recursive:!0});case 24:D("git config user.email")||g.debug(I('git config user.email "github_actor@example.com"')),D("git config user.name")||g.debug(I('git config user.name "github_actor"')),g.debug(I("git add --all")),g.debug(I('git commit --message "Update project homepage content." --all')),g.debug(I("git push")),g.debug(I("git checkout main"));case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=a()(c().mark((function e(){var t,r,n,i,o,s,l,u,h,_,m;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M.scripts&&(M.scripts["build:bundle:compatible"]||M.scripts["build:bundle"]||M.scripts.build)&&(t="yarn "+(M.scripts["build:bundle:compatible"]?"build:bundle:compatible":M.scripts["build:bundle"]?"build:bundle":"build"),g.info('Build distribution bundle via "'+t+'".'),g.debug(I(t))),g.info("Pack to a zip archive."),e.next=1,C({extension:".zip"});case 1:if(r=e.sent,n=M.files||[],M.main&&n.push(M.main),0!==n.length){e.next=2;break}return e.abrupt("return",null);case 2:return i=function(){var e=a()(c().mark((function e(t){var r,n,o,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=c().mark((function e(){var t,n,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.value,t=(0,y.resolve)(t),e.next=1,W(t);case 1:if(e.sent){e.next=6;break}return e.next=2,(0,d.isDirectory)(t);case 2:if(!e.sent){e.next=5;break}return n=r,o=i,e.next=3,(0,b.readdir)(t);case 3:return e.next=4,o(e.sent.map((function(e){return(0,y.resolve)(t,e)})));case 4:r=n.concat.call(n,e.sent),e.next=6;break;case 5:g.debug('Add "'+t+'" to distribution bundle.'),r.push(t);case 6:case"end":return e.stop()}}),e)})),o=G(t);case 1:if((s=o()).done){e.next=3;break}return e.delegateYield(n(),"t0",2);case 2:e.next=1;break;case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),(o=f()("zip",{zlib:{level:9}})).pipe((0,p.createWriteStream)(r)),s=new Promise((function(e,t){o.on("error",(function(e){t(e)})),o.on("warning",(function(e){g.warn(e)})),o.on("progress",(function(t){var r=t.entries;r.total===r.processed&&e()}))})),_=G,e.next=3,i(n);case 3:l=_(e.sent);case 4:if((u=l()).done){e.next=7;break}return h=u.value,m=o,e.next=5,N((0,p.createReadStream)(h));case 5:m.append.call(m,e.sent,{name:(0,y.relative)("./",h)});case 6:e.next=4;break;case 7:return e.next=8,o.finalize();case 8:return e.next=9,s;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=a()(c().mark((function e(t){var r,n,i,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,y.basename)(t,(0,y.extname)(t)).startsWith(".")&&!(0,y.basename)(t).startsWith(".yarn")||"dummyDocumentation"===(0,y.basename)(t,(0,y.extname)(t))){e.next=3;break}return e.next=1,(0,d.isDirectory)(t);case 1:if(!(i=e.sent)){e.next=2;break}i=["node_modules","build"].includes((0,y.basename)(t));case 2:n=i;case 3:if(r=n){e.next=6;break}return e.next=4,(0,d.isFile)(t);case 4:if(!(o=e.sent)){e.next=5;break}o="params.json"===(0,y.basename)(t);case 5:r=o;case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=a()(c().mark((function e(t,r,n){var i,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,W(n.path);case 1:if(o=e.sent){e.next=2;break}o="readme.md"===(0,y.basename)(n.name);case 2:if(!o){e.next=3;break}return e.abrupt("return",!1);case 3:if(r=(0,y.join)(r,(0,y.relative)(t,n.path)),g.debug('Copy "'+n.path+'" to "'+r+'".'),null==(i=n.stats)||!i.isFile()){e.next=5;break}return e.next=4,(0,b.copyFile)(n.path,r);case 4:e.next=6;break;case 5:return e.next=6,(0,b.mkdir)(r);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=a()(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,W(t.path);case 1:if(!e.sent){e.next=2;break}return e.abrupt("return",!1);case 2:if("readme"!==(0,y.basename)(t.name,(0,y.extname)(t.name))){e.next=4;break}return g.info('Handle "'+t.path+'".'),k&&(k+="\n"),r=k,e.next=3,(0,b.readFile)(t.path,"utf8");case 3:k=r+=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=a()(c().mark((function e(){var t,r,n,i,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,r=A;case 1:if(!(t<r.length)){e.next=3;break}return n=r[t],e.next=2,(0,b.rm)(n,{recursive:!0});case 2:t++,e.next=1;break;case 3:if(i=(0,y.resolve)(S[1]),!(o=L)){e.next=5;break}return e.next=4,(0,d.isDirectory)(i);case 4:o=!e.sent;case 5:if(!o){e.next=6;break}I("git checkout '"+i+"'");case 6:I("git branch").includes("* main")||g.debug(I("git checkout main"));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=a()(c().mark((function e(){var t,r,n,i,s,a,l,u,f,h,p,_;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!I("git branch --all").includes("gh-pages")){g.debug(I("git fetch --all"));try{g.debug(I("git checkout package.json"))}catch(e){}g.debug(I("git checkout gh-pages"))}if(I("git branch").includes("* main")||g.debug(I("git checkout main")),g.debug(I("git pull")),!I("git branch").includes("* main")||!I("git branch --all").includes("gh-pages")){e.next=28;break}if(M=(0,d.optionalRequire)((0,y.resolve)("./package.json"))||M,!(t=(0,d.evaluate)("`"+E+"`",M)).error){e.next=1;break}throw new Error(t.error);case 1:return E=t.result,g.info("Read and Compile all markdown files and transform to html."),e.next=2,(0,d.walkDirectoryRecursively)("./",U);case 2:return r=null,e.prev=3,e.next=4,F();case 4:r=e.sent,e.next=6;break;case 5:e.prev=5,h=e.catch(3),g.error("Error occurred during building distribution bundle:",h),process.exitCode=1;case 6:if(!(p=r)){e.next=8;break}return e.next=7,(0,d.isFile)(r);case 7:p=e.sent;case 8:if(!p){e.next=11;break}return n=(0,y.join)(v,(0,y.basename)(r)),e.next=9,(0,b.mkdir)(v,{recursive:!0});case 9:return e.next=10,(0,b.copyFile)(r,n);case 10:A.push(n);case 11:if(L=!!M.scripts&&Object.prototype.hasOwnProperty.call(M.scripts,"document"))try{g.debug(I("yarn document"))}catch(e){L=!1}return g.debug(I("git checkout gh-pages")),g.debug(I("git pull")),i=(0,y.resolve)(S[1]),e.next=12,(0,d.isDirectory)(i);case 12:if(!e.sent){e.next=13;break}return e.next=13,(0,b.rm)(i,{recursive:!0});case 13:return e.next=14,(0,d.isDirectory)(S[0]);case 14:if(!e.sent){e.next=16;break}return e.next=15,(0,b.rename)((0,y.resolve)(S[0]),i);case 15:A.push(i);case 16:return e.next=17,C({directory:!0,prefix:T});case 17:if(s=e.sent,a=(0,y.resolve)("../"+T),!(_=true)){e.next=19;break}return e.next=18,(0,d.isDirectory)(a);case 18:_=e.sent;case 19:if(!_){e.next=21;break}return g.info("Copy local existing "+T+"."),e.next=20,(0,d.walkDirectoryRecursively)(a,(function(e){return B(a,s,e)}));case 20:e.next=22;break;case 21:g.info("No local existing "+T+" found","getting it remotely."),g.debug(I("unset GIT_WORK_TREE; git clone '"+P+"'",{cwd:s})),s=(0,y.resolve)(s,T);case 22:return g.debug(I("corepack enable",{cwd:s})),g.debug(I("corepack install",{cwd:s})),g.debug(I("yarn install",{cwd:s,env:o()({},process.env,{NODE_ENV:"debug"})})),g.debug(I("yarn clear",{cwd:s})),e.next=23,j(s,r);case 23:l=0,u=[i,v,s];case 24:if(!(l<u.length)){e.next=27;break}return f=u[l],e.next=25,(0,d.isDirectory)(f);case 25:if(!e.sent){e.next=26;break}return e.next=26,(0,b.rm)(f,{recursive:!0});case 26:l++,e.next=24;break;case 27:case 28:case"end":return e.stop()}}),e,null,[[3,5]])})));return function(){return e.apply(this,arguments)}}();try{await z()}catch(q){throw await $(),q}n()}catch(K){n(K)}}),1)},(e,t,r)=>{function n(e,...t){return(...r)=>e(...t,...r)}function i(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}r.r(t),r.d(t,{all:()=>be,allLimit:()=>_e,allSeries:()=>ye,any:()=>rt,anyLimit:()=>nt,anySeries:()=>it,apply:()=>n,applyEach:()=>M,applyEachSeries:()=>I,asyncify:()=>f,auto:()=>j,autoInject:()=>$,cargo:()=>V,cargoQueue:()=>q,compose:()=>Z,concat:()=>J,concatLimit:()=>X,concatSeries:()=>ee,constant:()=>te,default:()=>_t,detect:()=>ne,detectLimit:()=>ie,detectSeries:()=>oe,dir:()=>ae,doDuring:()=>le,doUntil:()=>ce,doWhilst:()=>le,during:()=>dt,each:()=>fe,eachLimit:()=>he,eachOf:()=>T,eachOfLimit:()=>A,eachOfSeries:()=>L,eachSeries:()=>de,ensureAsync:()=>pe,every:()=>be,everyLimit:()=>_e,everySeries:()=>ye,filter:()=>ve,filterLimit:()=>Se,filterSeries:()=>Ee,find:()=>ne,findLimit:()=>ie,findSeries:()=>oe,flatMap:()=>J,flatMapLimit:()=>X,flatMapSeries:()=>ee,foldl:()=>K,foldr:()=>ze,forEach:()=>fe,forEachLimit:()=>he,forEachOf:()=>T,forEachOfLimit:()=>A,forEachOfSeries:()=>L,forEachSeries:()=>de,forever:()=>xe,groupBy:()=>Ae,groupByLimit:()=>Re,groupBySeries:()=>Oe,inject:()=>K,log:()=>ke,map:()=>P,mapLimit:()=>Q,mapSeries:()=>C,mapValues:()=>Pe,mapValuesLimit:()=>Te,mapValuesSeries:()=>Me,memoize:()=>Le,nextTick:()=>Ce,parallel:()=>De,parallelLimit:()=>Ne,priorityQueue:()=>Ue,queue:()=>je,race:()=>$e,reduce:()=>K,reduceRight:()=>ze,reflect:()=>Ge,reflectAll:()=>He,reject:()=>qe,rejectLimit:()=>Ke,rejectSeries:()=>Ye,retry:()=>Je,retryable:()=>et,select:()=>ve,selectLimit:()=>Se,selectSeries:()=>Ee,seq:()=>Y,series:()=>tt,setImmediate:()=>u,some:()=>rt,someLimit:()=>nt,someSeries:()=>it,sortBy:()=>ot,timeout:()=>st,times:()=>lt,timesLimit:()=>at,timesSeries:()=>ct,transform:()=>ut,tryEach:()=>ft,unmemoize:()=>ht,until:()=>pt,waterfall:()=>bt,whilst:()=>dt,wrapSync:()=>f});var o="function"==typeof queueMicrotask&&queueMicrotask,s="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function l(e){setTimeout(e,0)}function c(e){return(t,...r)=>e((()=>t(...r)))}var u=c(o?queueMicrotask:s?setImmediate:a?process.nextTick:l);function f(e){return p(e)?function(...t){const r=t.pop();return h(e.apply(this,t),r)}:i((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&"function"==typeof n.then)return h(n,r);r(null,n)}))}function h(e,t){return e.then((e=>{d(t,null,e)}),(e=>{d(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function d(e,t,r){try{e(t,r)}catch(e){u((e=>{throw e}),e)}}function p(e){return"AsyncFunction"===e[Symbol.toStringTag]}function b(e){if("function"!=typeof e)throw new Error("expected a function");return p(e)?f(e):e}function _(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[t-1]?e.apply(this,r):new Promise(((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,r)}))}}function y(e){return function(t,...r){return _((function(n){var i=this;return e(t,((e,t)=>{b(e).apply(i,r.concat(t))}),n)}))}}function m(e,t,r,n){t=t||[];var i=[],o=0,s=b(r);return e(t,((e,t,r)=>{var n=o++;s(e,((e,t)=>{i[n]=t,r(e)}))}),(e=>{n(e,i)}))}function g(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}var w={};function v(e){function t(...t){if(null!==e){var r=e;e=null,r.apply(this,t)}}return Object.assign(t,e),t}function S(e){if(g(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t,r,n,i,o=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return o?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(o):(r=(t=e)?Object.keys(t):[],n=-1,i=r.length,function e(){var o=r[++n];return"__proto__"===o?e():n<i?{value:t[o],key:o}:null})}function E(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}}function x(e,t,r,n){let i=!1,o=!1,s=!1,a=0,l=0;function c(){a>=t||s||i||(s=!0,e.next().then((({value:e,done:t})=>{if(!o&&!i){if(s=!1,t)return i=!0,void(a<=0&&n(null));a++,r(e,l,u),l++,c()}})).catch(f))}function u(e,t){if(a-=1,!o)return e?f(e):!1===e?(i=!0,void(o=!0)):t===w||i&&a<=0?(i=!0,n(null)):void c()}function f(e){o||(s=!1,i=!0,n(e))}c()}var R=e=>(t,r,n)=>{if(n=v(n),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return n(null);if("AsyncGenerator"===t[Symbol.toStringTag])return x(t,e,r,n);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return x(t[Symbol.asyncIterator](),e,r,n);var i=S(t),o=!1,s=!1,a=0,l=!1;function c(e,t){if(!s)if(a-=1,e)o=!0,n(e);else if(!1===e)o=!0,s=!0;else{if(t===w||o&&a<=0)return o=!0,n(null);l||u()}}function u(){for(l=!0;a<e&&!o;){var t=i();if(null===t)return o=!0,void(a<=0&&n(null));a+=1,r(t.value,t.key,E(c))}l=!1}u()};var A=_((function(e,t,r,n){return R(t)(e,b(r),n)}),4);function O(e,t,r){r=v(r);var n=0,i=0,{length:o}=e,s=!1;function a(e,t){!1===e&&(s=!0),!0!==s&&(e?r(e):++i!==o&&t!==w||r(null))}for(0===o&&r(null);n<o;n++)t(e[n],n,E(a))}function k(e,t,r){return A(e,1/0,t,r)}var T=_((function(e,t,r){return(g(e)?O:k)(e,b(t),r)}),3);var P=_((function(e,t,r){return m(T,e,t,r)}),3),M=y(P);var L=_((function(e,t,r){return A(e,1,t,r)}),3);var C=_((function(e,t,r){return m(L,e,t,r)}),3),I=y(C);const D=Symbol("promiseCallback");function N(){let e,t;function r(r,...n){if(r)return t(r);e(n.length>1?n:n[0])}return r[D]=new Promise(((r,n)=>{e=r,t=n})),r}function j(e,t,r){"number"!=typeof t&&(r=t,t=null),r=v(r||N());var n=Object.keys(e).length;if(!n)return r(null);t||(t=n);var i={},o=0,s=!1,a=!1,l=Object.create(null),c=[],u=[],f={};function h(e,t){c.push((()=>function(e,t){if(a)return;var n=E(((t,...n)=>{if(o--,!1!==t)if(n.length<2&&([n]=n),t){var c={};if(Object.keys(i).forEach((e=>{c[e]=i[e]})),c[e]=n,a=!0,l=Object.create(null),s)return;r(t,c)}else i[e]=n,(l[e]||[]).forEach((e=>e())),d();else s=!0}));o++;var c=b(t[t.length-1]);t.length>1?c(i,n):c(n)}(e,t)))}function d(){if(!s){if(0===c.length&&0===o)return r(null,i);for(;c.length&&o<t;){c.shift()()}}}function p(t){var r=[];return Object.keys(e).forEach((n=>{const i=e[n];Array.isArray(i)&&i.indexOf(t)>=0&&r.push(n)})),r}return Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r))return h(t,[r]),void u.push(t);var n=r.slice(0,r.length-1),i=n.length;if(0===i)return h(t,r),void u.push(t);f[t]=i,n.forEach((o=>{if(!e[o])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+o+"` in "+n.join(", "));!function(e,t){var r=l[e];r||(r=l[e]=[]);r.push(t)}(o,(()=>{0===--i&&h(t,r)}))}))})),function(){var e=0;for(;u.length;)e++,p(u.pop()).forEach((e=>{0==--f[e]&&u.push(e)}));if(e!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),d(),r[D]}var F=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,W=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,B=/,/,U=/(=.+)?(\s*)$/;function $(e,t){var r={};return Object.keys(e).forEach((t=>{var n,i=e[t],o=p(i),s=!o&&1===i.length||o&&0===i.length;if(Array.isArray(i))n=[...i],i=n.pop(),r[t]=n.concat(n.length>0?a:i);else if(s)r[t]=i;else{if(n=function(e){const t=function(e){let t="",r=0,n=e.indexOf("*/");for(;r<e.length;)if("/"===e[r]&&"/"===e[r+1]){let t=e.indexOf("\n",r);r=-1===t?e.length:t}else if(-1!==n&&"/"===e[r]&&"*"===e[r+1]){let i=e.indexOf("*/",r);-1!==i?(r=i+2,n=e.indexOf("*/",r)):(t+=e[r],r++)}else t+=e[r],r++;return t}(e.toString());let r=t.match(F);if(r||(r=t.match(W)),!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,n]=r;return n.replace(/\s/g,"").split(B).map((e=>e.replace(U,"").trim()))}(i),0===i.length&&!o&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");o||n.pop(),r[t]=n.concat(a)}function a(e,t){var r=n.map((t=>e[t]));r.push(t),b(i)(...r)}})),j(r,t)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:r}=t;e(t)&&this.removeLink(t),t=r}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function H(e,t,r){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var n=b(e),i=0,o=[];const s={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(s[e]=s[e].filter((e=>e!==t))):s[e]=[]:Object.keys(s).forEach((e=>s[e]=[]))}function l(e,...t){s[e].forEach((e=>e(...t)))}var c=!1;function f(e,t,r,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");var i,o;function s(e,...t){return e?r?o(e):i():t.length<=1?i(t[0]):void i(t)}y.started=!0;var a=y._createTaskItem(e,r?s:n||s);if(t?y._tasks.unshift(a):y._tasks.push(a),c||(c=!0,u((()=>{c=!1,y.process()}))),r||!n)return new Promise(((e,t)=>{i=e,o=t}))}function h(e){return function(t,...r){i-=1;for(var n=0,s=e.length;n<s;n++){var a=e[n],c=o.indexOf(a);0===c?o.shift():c>0&&o.splice(c,1),a.callback(t,...r),null!=t&&l("error",t,a.data)}i<=y.concurrency-y.buffer&&l("unsaturated"),y.idle()&&l("drain"),y.process()}}function d(e){return!(0!==e.length||!y.idle())&&(u((()=>l("drain"))),!0)}const p=e=>t=>{if(!t)return new Promise(((t,r)=>{!function(e,t){const r=(...n)=>{a(e,r),t(...n)};s[e].push(r)}(e,((e,n)=>{if(e)return r(e);t(n)}))}));a(e),function(e,t){s[e].push(t)}(e,t)};var _=!1,y={_tasks:new z,_createTaskItem:(e,t)=>({data:e,callback:t}),*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:t,payload:r,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(d(e))return;return e.map((e=>f(e,!1,!1,t)))}return f(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(d(e))return;return e.map((e=>f(e,!1,!0,t)))}return f(e,!1,!0,t)},kill(){a(),y._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(d(e))return;return e.map((e=>f(e,!0,!1,t)))}return f(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(d(e))return;return e.map((e=>f(e,!0,!0,t)))}return f(e,!0,!0,t)},remove(e){y._tasks.remove(e)},process(){if(!_){for(_=!0;!y.paused&&i<y.concurrency&&y._tasks.length;){var e=[],t=[],r=y._tasks.length;y.payload&&(r=Math.min(r,y.payload));for(var s=0;s<r;s++){var a=y._tasks.shift();e.push(a),o.push(a),t.push(a.data)}i+=1,0===y._tasks.length&&l("empty"),i===y.concurrency&&l("saturated");var c=E(h(e));n(t,c)}_=!1}},length:()=>y._tasks.length,running:()=>i,workersList:()=>o,idle:()=>y._tasks.length+i===0,pause(){y.paused=!0},resume(){!1!==y.paused&&(y.paused=!1,u(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),y}function V(e,t){return H(e,1,t)}function q(e,t,r){return H(e,t,r)}var K=_((function(e,t,r,n){n=v(n);var i=b(r);return L(e,((e,r,n)=>{i(t,e,((e,r)=>{t=r,n(e)}))}),(e=>n(e,t)))}),4);function Y(...e){var t=e.map(b);return function(...e){var r=this,n=e[e.length-1];return"function"==typeof n?e.pop():n=N(),K(t,e,((e,t,n)=>{t.apply(r,e.concat(((e,...t)=>{n(e,t)})))}),((e,t)=>n(e,...t))),n[D]}}function Z(...e){return Y(...e.reverse())}var Q=_((function(e,t,r,n){return m(R(t),e,r,n)}),4);var X=_((function(e,t,r,n){var i=b(r);return Q(e,t,((e,t)=>{i(e,((e,...r)=>e?t(e):t(e,r)))}),((e,t)=>{for(var r=[],i=0;i<t.length;i++)t[i]&&(r=r.concat(...t[i]));return n(e,r)}))}),4);var J=_((function(e,t,r){return X(e,1/0,t,r)}),3);var ee=_((function(e,t,r){return X(e,1,t,r)}),3);function te(...e){return function(...t){return t.pop()(null,...e)}}function re(e,t){return(r,n,i,o)=>{var s,a=!1;const l=b(i);r(n,((r,n,i)=>{l(r,((n,o)=>n||!1===n?i(n):e(o)&&!s?(a=!0,s=t(!0,r),i(null,w)):void i()))}),(e=>{if(e)return o(e);o(null,a?s:t(!1))}))}}var ne=_((function(e,t,r){return re((e=>e),((e,t)=>t))(T,e,t,r)}),3);var ie=_((function(e,t,r,n){return re((e=>e),((e,t)=>t))(R(t),e,r,n)}),4);var oe=_((function(e,t,r){return re((e=>e),((e,t)=>t))(R(1),e,t,r)}),3);function se(e){return(t,...r)=>b(t)(...r,((t,...r)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&r.forEach((t=>console[e](t))))}))}var ae=se("dir");var le=_((function(e,t,r){r=E(r);var n,i=b(e),o=b(t);function s(e,...t){if(e)return r(e);!1!==e&&(n=t,o(...t,a))}function a(e,t){return e?r(e):!1!==e?t?void i(s):r(null,...n):void 0}return a(null,!0)}),3);function ce(e,t,r){const n=b(t);return le(e,((...e)=>{const t=e.pop();n(...e,((e,r)=>t(e,!r)))}),r)}function ue(e){return(t,r,n)=>e(t,n)}var fe=_((function(e,t,r){return T(e,ue(b(t)),r)}),3);var he=_((function(e,t,r,n){return R(t)(e,ue(b(r)),n)}),4);var de=_((function(e,t,r){return he(e,1,t,r)}),3);function pe(e){return p(e)?e:function(...t){var r=t.pop(),n=!0;t.push(((...e)=>{n?u((()=>r(...e))):r(...e)})),e.apply(this,t),n=!1}}var be=_((function(e,t,r){return re((e=>!e),(e=>!e))(T,e,t,r)}),3);var _e=_((function(e,t,r,n){return re((e=>!e),(e=>!e))(R(t),e,r,n)}),4);var ye=_((function(e,t,r){return re((e=>!e),(e=>!e))(L,e,t,r)}),3);function me(e,t,r,n){var i=new Array(t.length);e(t,((e,t,n)=>{r(e,((e,r)=>{i[t]=!!r,n(e)}))}),(e=>{if(e)return n(e);for(var r=[],o=0;o<t.length;o++)i[o]&&r.push(t[o]);n(null,r)}))}function ge(e,t,r,n){var i=[];e(t,((e,t,n)=>{r(e,((r,o)=>{if(r)return n(r);o&&i.push({index:t,value:e}),n(r)}))}),(e=>{if(e)return n(e);n(null,i.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function we(e,t,r,n){return(g(t)?me:ge)(e,t,b(r),n)}var ve=_((function(e,t,r){return we(T,e,t,r)}),3);var Se=_((function(e,t,r,n){return we(R(t),e,r,n)}),4);var Ee=_((function(e,t,r){return we(L,e,t,r)}),3);var xe=_((function(e,t){var r=E(t),n=b(pe(e));return function e(t){if(t)return r(t);!1!==t&&n(e)}()}),2);var Re=_((function(e,t,r,n){var i=b(r);return Q(e,t,((e,t)=>{i(e,((r,n)=>r?t(r):t(r,{key:n,val:e})))}),((e,t)=>{for(var r={},{hasOwnProperty:i}=Object.prototype,o=0;o<t.length;o++)if(t[o]){var{key:s}=t[o],{val:a}=t[o];i.call(r,s)?r[s].push(a):r[s]=[a]}return n(e,r)}))}),4);function Ae(e,t,r){return Re(e,1/0,t,r)}function Oe(e,t,r){return Re(e,1,t,r)}var ke=se("log");var Te=_((function(e,t,r,n){n=v(n);var i={},o=b(r);return R(t)(e,((e,t,r)=>{o(e,t,((e,n)=>{if(e)return r(e);i[t]=n,r(e)}))}),(e=>n(e,i)))}),4);function Pe(e,t,r){return Te(e,1/0,t,r)}function Me(e,t,r){return Te(e,1,t,r)}function Le(e,t=e=>e){var r=Object.create(null),n=Object.create(null),o=b(e),s=i(((e,i)=>{var s=t(...e);s in r?u((()=>i(null,...r[s]))):s in n?n[s].push(i):(n[s]=[i],o(...e,((e,...t)=>{e||(r[s]=t);var i=n[s];delete n[s];for(var o=0,a=i.length;o<a;o++)i[o](e,...t)})))}));return s.memo=r,s.unmemoized=e,s}var Ce=c(a?process.nextTick:s?setImmediate:l),Ie=_(((e,t,r)=>{var n=g(t)?[]:{};e(t,((e,t,r)=>{b(e)(((e,...i)=>{i.length<2&&([i]=i),n[t]=i,r(e)}))}),(e=>r(e,n)))}),3);function De(e,t){return Ie(T,e,t)}function Ne(e,t,r){return Ie(R(t),e,r)}function je(e,t){var r=b(e);return H(((e,t)=>{r(e[0],t)}),t,1)}class Fe{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&Be(this.heap[e],this.heap[t=We(e)]);){let r=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=r,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&Be(this.heap[t+1],this.heap[t])&&(t+=1),!Be(this.heap[e],this.heap[t]));){let r=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=r,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let r=0;r<this.heap.length;r++)e(this.heap[r])||(this.heap[t]=this.heap[r],t++);this.heap.splice(t);for(let e=We(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function We(e){return(e+1>>1)-1}function Be(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var r=je(e,t),{push:n,pushAsync:i}=r;function o(e,t){return Array.isArray(e)?e.map((e=>({data:e,priority:t}))):{data:e,priority:t}}return r._tasks=new Fe,r._createTaskItem=({data:e,priority:t},r)=>({data:e,priority:t,callback:r}),r.push=function(e,t=0,r){return n(o(e,t),r)},r.pushAsync=function(e,t=0,r){return i(o(e,t),r)},delete r.unshift,delete r.unshiftAsync,r}var $e=_((function(e,t){if(t=v(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,n=e.length;r<n;r++)b(e[r])(t)}),2);function ze(e,t,r,n){var i=[...e].reverse();return K(i,t,r,n)}function Ge(e){var t=b(e);return i((function(e,r){return e.push(((e,...t)=>{let n={};if(e&&(n.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),n.value=i}r(null,n)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach((r=>{t[r]=Ge.call(this,e[r])}))),t}function Ve(e,t,r,n){const i=b(r);return we(e,t,((e,t)=>{i(e,((e,r)=>{t(e,!r)}))}),n)}var qe=_((function(e,t,r){return Ve(T,e,t,r)}),3);var Ke=_((function(e,t,r,n){return Ve(R(t),e,r,n)}),4);var Ye=_((function(e,t,r){return Ve(L,e,t,r)}),3);function Ze(e){return function(){return e}}const Qe=5,Xe=0;function Je(e,t,r){var n={times:Qe,intervalFunc:Ze(Xe)};if(arguments.length<3&&"function"==typeof e?(r=t||N(),t=e):(!function(e,t){if("object"==typeof t)e.times=+t.times||Qe,e.intervalFunc="function"==typeof t.interval?t.interval:Ze(+t.interval||Xe),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||Qe}}(n,e),r=r||N()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=b(t),o=1;return function e(){i(((t,...i)=>{!1!==t&&(t&&o++<n.times&&("function"!=typeof n.errorFilter||n.errorFilter(t))?setTimeout(e,n.intervalFunc(o-1)):r(t,...i))}))}(),r[D]}function et(e,t){t||(t=e,e=null);let r=e&&e.arity||t.length;p(t)&&(r+=1);var n=b(t);return i(((t,i)=>{function o(e){n(...t,e)}return(t.length<r-1||null==i)&&(t.push(i),i=N()),e?Je(e,o,i):Je(o,i),i[D]}))}function tt(e,t){return Ie(L,e,t)}var rt=_((function(e,t,r){return re(Boolean,(e=>e))(T,e,t,r)}),3);var nt=_((function(e,t,r,n){return re(Boolean,(e=>e))(R(t),e,r,n)}),4);var it=_((function(e,t,r){return re(Boolean,(e=>e))(L,e,t,r)}),3);var ot=_((function(e,t,r){var n=b(t);return P(e,((e,t)=>{n(e,((r,n)=>{if(r)return t(r);t(r,{value:e,criteria:n})}))}),((e,t)=>{if(e)return r(e);r(null,t.sort(i).map((e=>e.value)))}));function i(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}}),3);function st(e,t,r){var n=b(e);return i(((i,o)=>{var s,a=!1;i.push(((...e)=>{a||(o(...e),clearTimeout(s))})),s=setTimeout((function(){var t=e.name||"anonymous",n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),a=!0,o(n)}),t),n(...i)}))}function at(e,t,r,n){var i=b(r);return Q(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,n)}function lt(e,t,r){return at(e,1/0,t,r)}function ct(e,t,r){return at(e,1,t,r)}function ut(e,t,r,n){arguments.length<=3&&"function"==typeof t&&(n=r,r=t,t=Array.isArray(e)?[]:{}),n=v(n||N());var i=b(r);return T(e,((e,r,n)=>{i(t,e,r,n)}),(e=>n(e,t))),n[D]}var ft=_((function(e,t){var r,n=null;return de(e,((e,t)=>{b(e)(((e,...i)=>{if(!1===e)return t(e);i.length<2?[r]=i:r=i,n=e,t(e?null:{})}))}),(()=>t(n,r)))}));function ht(e){return(...t)=>(e.unmemoized||e)(...t)}var dt=_((function(e,t,r){r=E(r);var n=b(t),i=b(e),o=[];function s(e,...t){if(e)return r(e);o=t,!1!==e&&i(a)}function a(e,t){return e?r(e):!1!==e?t?void n(s):r(null,...o):void 0}return i(a)}),3);function pt(e,t,r){const n=b(e);return dt((e=>n(((t,r)=>e(t,!r)))),t,r)}var bt=_((function(e,t){if(t=v(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function n(t){b(e[r++])(...t,E(i))}function i(i,...o){if(!1!==i)return i||r===e.length?t(i,...o):void n(o)}n([])})),_t={apply:n,applyEach:M,applyEachSeries:I,asyncify:f,auto:j,autoInject:$,cargo:V,cargoQueue:q,compose:Z,concat:J,concatLimit:X,concatSeries:ee,constant:te,detect:ne,detectLimit:ie,detectSeries:oe,dir:ae,doUntil:ce,doWhilst:le,each:fe,eachLimit:he,eachOf:T,eachOfLimit:A,eachOfSeries:L,eachSeries:de,ensureAsync:pe,every:be,everyLimit:_e,everySeries:ye,filter:ve,filterLimit:Se,filterSeries:Ee,forever:xe,groupBy:Ae,groupByLimit:Re,groupBySeries:Oe,log:ke,map:P,mapLimit:Q,mapSeries:C,mapValues:Pe,mapValuesLimit:Te,mapValuesSeries:Me,memoize:Le,nextTick:Ce,parallel:De,parallelLimit:Ne,priorityQueue:Ue,queue:je,race:$e,reduce:K,reduceRight:ze,reflect:Ge,reflectAll:He,reject:qe,rejectLimit:Ke,rejectSeries:Ye,retry:Je,retryable:et,seq:Y,series:tt,setImmediate:u,some:rt,someLimit:nt,someSeries:it,sortBy:ot,timeout:st,times:lt,timesLimit:at,timesSeries:ct,transform:ut,tryEach:ft,unmemoize:ht,until:pt,waterfall:bt,whilst:dt,all:be,allLimit:_e,allSeries:ye,any:rt,anyLimit:nt,anySeries:it,find:ne,findLimit:ie,findSeries:oe,flatMap:J,flatMapLimit:X,flatMapSeries:ee,forEach:fe,forEachSeries:de,forEachLimit:he,forEachOf:T,forEachOfSeries:L,forEachOfLimit:A,inject:K,foldl:K,foldr:ze,select:ve,selectLimit:Se,selectSeries:Ee,wrapSync:f,during:dt,doDuring:le}},e=>{e.exports=require("constants")},e=>{e.exports=require("assert")},(e,t,r)=>{e.exports=r(80).PassThrough},(e,t,r)=>{const n=globalThis.AbortController||r(8).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:l}=r(12),{validateAbortSignal:c,validateInteger:u,validateObject:f}=r(47),h=r(4).Symbol("kWeak"),d=r(4).Symbol("kResistStopPropagation"),{finished:p}=r(28),b=r(141),{addAbortSignalNoValidate:_}=r(62),{isWritable:y,isNodeStream:m}=r(24),{deprecate:g}=r(17),{ArrayPrototypePush:w,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(4),P=T("kEmpty"),M=T("kEof");function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(17).AbortSignalAny([null==t?void 0:t.signal].filter(v)),s=this,a=[],c={signal:o};let u,f,h=!1,d=0;function p(){h=!0,b()}function b(){d-=1,_()}function _(){f&&!h&&d<n&&a.length<i&&(f(),f=null)}!async function(){try{for await(let t of s){if(h)return;if(o.aborted)throw new l;try{if(t=e(t,c),t===P)continue;t=O(t)}catch(e){t=A(e)}d+=1,k(t,b,p),a.push(t),u&&(u(),u=null),!h&&(a.length>=i||d>=n)&&await new R((e=>{f=e}))}a.push(M)}catch(e){const t=A(e);k(t,b,p),a.push(t)}finally{h=!0,u&&(u(),u=null)}}();try{for(;;){for(;a.length>0;){const e=await a[0];if(e===M)return;if(o.aborted)throw new l;e!==P&&(yield e),a.shift(),_()}await new R((e=>{u=e}))}}finally{h=!0,f&&(f(),f=null)}}.call(this)}async function C(e,t=void 0){for await(const r of I.call(this,e,t))return!0;return!1}function I(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return L.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:I,flatMap:function(e,t){const r=L.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:L,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=b(this,e);return null!=t&&t.signal&&_(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await C.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of L.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&c(r.signal,"options.signal");let s=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const a=new n,u=a.signal;if(null!=r&&r.signal){const e={once:!0,[h]:this,[d]:!0};r.signal.addEventListener("abort",(()=>a.abort()),e)}let b=!1;try{for await(const n of this){var _;if(b=!0,null!=r&&null!==(_=r.signal)&&void 0!==_&&_.aborted)throw new l;s?t=await e(t,n,{signal:u}):(t=n,s=!0)}if(!b&&!s)throw new D}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});w(t,n)}return t},some:C,find:async function(e,t){for await(const r of I.call(this,e,t))return r}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;t.assertValidPattern=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},n=e=>e.replace(/[[\]\\-]/g,"\\$&"),i=e=>e.join("");t.parseClass=(e,t)=>{const o=t;if("["!==e.charAt(o))throw new Error("not in a brace expression");const s=[],a=[];let l=o+1,c=!1,u=!1,f=!1,h=!1,d=o,p="";e:for(;l<e.length;){const t=e.charAt(l);if("!"!==t&&"^"!==t||l!==o+1){if("]"===t&&c&&!f){d=l+1;break}if(c=!0,"\\"!==t||f){if("["===t&&!f)for(const[t,[n,i,c]]of Object.entries(r))if(e.startsWith(t,l)){if(p)return["$.",!1,e.length-o,!0];l+=t.length,c?a.push(n):s.push(n),u=u||i;continue e}f=!1,p?(t>p?s.push(n(p)+"-"+n(t)):t===p&&s.push(n(t)),p="",l++):e.startsWith("-]",l+1)?(s.push(n(t+"-")),l+=2):e.startsWith("-",l+1)?(p=t,l+=2):(s.push(n(t)),l++)}else f=!0,l++}else h=!0,l++}if(d<l)return["",!1,0,!1];if(!s.length&&!a.length)return["$.",!1,e.length-o,!0];if(0===a.length&&1===s.length&&/^\\?.$/.test(s[0])&&!h){const e=2===s[0].length?s[0].slice(-1):s[0];return[(b=e,b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,d-o,!1]}var b;const _="["+(h?"^":"")+i(s)+"]",y="["+(h?"":"^")+i(a)+"]";return[s.length&&a.length?"("+_+"|"+y+")":s.length?_:y,u,d-o,!0]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},o=(e,t,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let s=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===s){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},s=class{constructor(){t()}signal=new a;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const l=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),c=e=>l(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?u:null:null;class u extends Array{constructor(e){super(e),this.fill(0)}}class f{heap;length;static#we=!1;static create(e){const t=c(e);if(!t)return[];f.#we=!0;const r=new f(e,t);return f.#we=!1,r}constructor(e,t){if(!f.#we)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class h{#ve;#Se;#Ee;#xe;#Re;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#Ae;#Oe;#ke;#Te;#Pe;#Me;#Le;#Ce;#Ie;#De;#Ne;#je;#Fe;#We;#Be;#Ue;static unsafeExposeInternals(e){return{starts:e.#je,ttls:e.#Fe,sizes:e.#Ne,keyMap:e.#Oe,keyList:e.#ke,valList:e.#Te,next:e.#Pe,prev:e.#Me,get head(){return e.#Le},get tail(){return e.#Ce},free:e.#Ie,isBackgroundFetch:t=>e.#$e(t),backgroundFetch:(t,r,n,i)=>e.#ze(t,r,n,i),moveToTail:t=>e.#Ge(t),indexes:t=>e.#He(t),rindexes:t=>e.#Ve(t),isStale:t=>e.#qe(t)}}get max(){return this.#ve}get maxSize(){return this.#Se}get calculatedSize(){return this.#Ae}get size(){return this.#c}get fetchMethod(){return this.#Re}get dispose(){return this.#Ee}get disposeAfter(){return this.#xe}constructor(e){const{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:u,allowStale:d,dispose:p,disposeAfter:b,noDisposeOnSet:_,noUpdateTTL:y,maxSize:m=0,maxEntrySize:g=0,sizeCalculation:w,fetchMethod:v,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:R,ignoreFetchAbort:A}=e;if(0!==t&&!l(t))throw new TypeError("max option must be a nonnegative integer");const O=t?c(t):Array;if(!O)throw new Error("invalid max value: "+t);if(this.#ve=t,this.#Se=m,this.maxEntrySize=g||this.#Se,this.sizeCalculation=w,this.sizeCalculation){if(!this.#Se&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!=typeof v)throw new TypeError("fetchMethod must be a function if specified");if(this.#Re=v,this.#Be=!!v,this.#Oe=new Map,this.#ke=new Array(t).fill(void 0),this.#Te=new Array(t).fill(void 0),this.#Pe=new O(t),this.#Me=new O(t),this.#Le=0,this.#Ce=0,this.#Ie=f.create(t),this.#c=0,this.#Ae=0,"function"==typeof p&&(this.#Ee=p),"function"==typeof b?(this.#xe=b,this.#De=[]):(this.#xe=void 0,this.#De=void 0),this.#We=!!this.#Ee,this.#Ue=!!this.#xe,this.noDisposeOnSet=!!_,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!R,this.ignoreFetchAbort=!!A,0!==this.maxEntrySize){if(0!==this.#Se&&!l(this.#Se))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#Ke()}if(this.allowStale=!!d,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!u,this.ttlResolution=l(i)||0===i?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#Ye()}if(0===this.#ve&&0===this.ttl&&0===this.#Se)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#ve&&!this.#Se){const e="LRU_CACHE_UNBOUNDED";if((e=>!n.has(e))(e)){n.add(e);o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,h)}}}getRemainingTTL(e){return this.#Oe.has(e)?1/0:0}#Ye(){const e=new u(this.#ve),t=new u(this.#ve);this.#Fe=e,this.#je=t,this.#Ze=(n,i,o=r.now())=>{if(t[n]=0!==i?o:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout((()=>{this.#qe(n)&&this.delete(this.#ke[n])}),i+1);e.unref&&e.unref()}},this.#Qe=n=>{t[n]=0!==e[n]?r.now():0},this.#Xe=(r,o)=>{if(e[o]){const s=e[o],a=t[o];if(!s||!a)return;r.ttl=s,r.start=a,r.now=n||i();const l=r.now-a;r.remainingTTL=s-l}};let n=0;const i=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{const o=this.#Oe.get(r);if(void 0===o)return 0;const s=e[o],a=t[o];if(!s||!a)return 1/0;return s-((n||i())-a)},this.#qe=r=>{const o=t[r],s=e[r];return!!s&&!!o&&(n||i())-o>s}}#Qe=()=>{};#Xe=()=>{};#Ze=()=>{};#qe=()=>!1;#Ke(){const e=new u(this.#ve);this.#Ae=0,this.#Ne=e,this.#Je=t=>{this.#Ae-=e[t],e[t]=0},this.#et=(e,t,r,n)=>{if(this.#$e(t))return 0;if(!l(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!l(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#tt=(t,r,n)=>{if(e[t]=r,this.#Se){const r=this.#Se-e[t];for(;this.#Ae>r;)this.#rt(!0)}this.#Ae+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#Ae)}}#Je=e=>{};#tt=(e,t,r)=>{};#et=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#He({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#Ce;this.#nt(t)&&(!e&&this.#qe(t)||(yield t),t!==this.#Le);)t=this.#Me[t]}*#Ve({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#Le;this.#nt(t)&&(!e&&this.#qe(t)||(yield t),t!==this.#Ce);)t=this.#Pe[t]}#nt(e){return void 0!==e&&this.#Oe.get(this.#ke[e])===e}*entries(){for(const e of this.#He())void 0===this.#Te[e]||void 0===this.#ke[e]||this.#$e(this.#Te[e])||(yield[this.#ke[e],this.#Te[e]])}*rentries(){for(const e of this.#Ve())void 0===this.#Te[e]||void 0===this.#ke[e]||this.#$e(this.#Te[e])||(yield[this.#ke[e],this.#Te[e]])}*keys(){for(const e of this.#He()){const t=this.#ke[e];void 0===t||this.#$e(this.#Te[e])||(yield t)}}*rkeys(){for(const e of this.#Ve()){const t=this.#ke[e];void 0===t||this.#$e(this.#Te[e])||(yield t)}}*values(){for(const e of this.#He()){void 0===this.#Te[e]||this.#$e(this.#Te[e])||(yield this.#Te[e])}}*rvalues(){for(const e of this.#Ve()){void 0===this.#Te[e]||this.#$e(this.#Te[e])||(yield this.#Te[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#He()){const n=this.#Te[r],i=this.#$e(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.#ke[r],this))return this.get(this.#ke[r],t)}}forEach(e,t=this){for(const r of this.#He()){const n=this.#Te[r],i=this.#$e(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#ke[r],this)}}rforEach(e,t=this){for(const r of this.#Ve()){const n=this.#Te[r],i=this.#$e(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#ke[r],this)}}purgeStale(){let e=!1;for(const t of this.#Ve({allowStale:!0}))this.#qe(t)&&(this.delete(this.#ke[t]),e=!0);return e}info(e){const t=this.#Oe.get(e);if(void 0===t)return;const n=this.#Te[t],i=this.#$e(n)?n.__staleWhileFetching:n;if(void 0===i)return;const o={value:i};if(this.#Fe&&this.#je){const e=this.#Fe[t],n=this.#je[t];if(e&&n){const t=e-(r.now()-n);o.ttl=t,o.start=Date.now()}}return this.#Ne&&(o.size=this.#Ne[t]),o}dump(){const e=[];for(const t of this.#He({allowStale:!0})){const n=this.#ke[t],i=this.#Te[t],o=this.#$e(i)?i.__staleWhileFetching:i;if(void 0===o||void 0===n)continue;const s={value:o};if(this.#Fe&&this.#je){s.ttl=this.#Fe[t];const e=r.now()-this.#je[t];s.start=Math.floor(Date.now()-e)}this.#Ne&&(s.size=this.#Ne[t]),e.unshift([n,s])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:a}=r;let{noUpdateTTL:l=this.noUpdateTTL}=r;const c=this.#et(e,t,r.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(e),this;let u=0===this.#c?void 0:this.#Oe.get(e);if(void 0===u)u=0===this.#c?this.#Ce:0!==this.#Ie.length?this.#Ie.pop():this.#c===this.#ve?this.#rt(!1):this.#c,this.#ke[u]=e,this.#Te[u]=t,this.#Oe.set(e,u),this.#Pe[this.#Ce]=u,this.#Me[u]=this.#Ce,this.#Ce=u,this.#c++,this.#tt(u,c,a),a&&(a.set="add"),l=!1;else{this.#Ge(u);const r=this.#Te[u];if(t!==r){if(this.#Be&&this.#$e(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||o||(this.#We&&this.#Ee?.(t,e,"set"),this.#Ue&&this.#De?.push([t,e,"set"]))}else o||(this.#We&&this.#Ee?.(r,e,"set"),this.#Ue&&this.#De?.push([r,e,"set"]));if(this.#Je(u),this.#tt(u,c,a),this.#Te[u]=t,a){a.set="replace";const e=r&&this.#$e(r)?r.__staleWhileFetching:r;void 0!==e&&(a.oldValue=e)}}else a&&(a.set="update")}if(0===n||this.#Fe||this.#Ye(),this.#Fe&&(l||this.#Ze(u,n,i),a&&this.#Xe(a,u)),!o&&this.#Ue&&this.#De){const e=this.#De;let t;for(;t=e?.shift();)this.#xe?.(...t)}return this}pop(){try{for(;this.#c;){const e=this.#Te[this.#Le];if(this.#rt(!0),this.#$e(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#Ue&&this.#De){const e=this.#De;let t;for(;t=e?.shift();)this.#xe?.(...t)}}}#rt(e){const t=this.#Le,r=this.#ke[t],n=this.#Te[t];return this.#Be&&this.#$e(n)?n.__abortController.abort(new Error("evicted")):(this.#We||this.#Ue)&&(this.#We&&this.#Ee?.(n,r,"evict"),this.#Ue&&this.#De?.push([n,r,"evict"])),this.#Je(t),e&&(this.#ke[t]=void 0,this.#Te[t]=void 0,this.#Ie.push(t)),1===this.#c?(this.#Le=this.#Ce=0,this.#Ie.length=0):this.#Le=this.#Pe[t],this.#Oe.delete(r),this.#c--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,i=this.#Oe.get(e);if(void 0!==i){const e=this.#Te[i];if(this.#$e(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#qe(i))return r&&this.#Qe(i),n&&(n.has="hit",this.#Xe(n,i)),!0;n&&(n.has="stale",this.#Xe(n,i))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#Oe.get(e);if(void 0===n||!r&&this.#qe(n))return;const i=this.#Te[n];return this.#$e(i)?i.__staleWhileFetching:i}#ze(e,t,r,n){const i=void 0===t?void 0:this.#Te[t];if(this.#$e(i))return i;const o=new s,{signal:a}=r;a?.addEventListener("abort",(()=>o.abort(a.reason)),{signal:o.signal});const l={signal:o.signal,options:r,context:n},c=(n,i=!1)=>{const{aborted:s}=o.signal,a=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(s&&!i?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,a&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),s&&!a&&!i)return u(o.signal.reason);const c=f;return this.#Te[t]===f&&(void 0===n?c.__staleWhileFetching?this.#Te[t]=c.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,l.options))),n},u=n=>{const{aborted:i}=o.signal,s=i&&r.allowStaleOnFetchAbort,a=s||r.allowStaleOnFetchRejection,l=a||r.noDeleteOnFetchRejection,c=f;if(this.#Te[t]===f){!l||void 0===c.__staleWhileFetching?this.delete(e):s||(this.#Te[t]=c.__staleWhileFetching)}if(a)return r.status&&void 0!==c.__staleWhileFetching&&(r.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};r.status&&(r.status.fetchDispatched=!0);const f=new Promise(((t,n)=>{const s=this.#Re?.(e,i,l);s&&s instanceof Promise&&s.then((e=>t(void 0===e?void 0:e)),n),o.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>c(e,!0)))}))})).then(c,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),u(e)))),h=Object.assign(f,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,h,{...l.options,status:void 0}),t=this.#Oe.get(e)):this.#Te[t]=h,h}#$e(e){if(!this.#Be)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof s}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:p,forceRefresh:b=!1,status:_,signal:y}=t;if(!this.#Be)return _&&(_.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:_});const m={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:s,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:d,ignoreFetchAbort:h,status:_,signal:y};let g=this.#Oe.get(e);if(void 0===g){_&&(_.fetch="miss");const t=this.#ze(e,g,m,p);return t.__returned=t}{const t=this.#Te[g];if(this.#$e(t)){const e=r&&void 0!==t.__staleWhileFetching;return _&&(_.fetch="inflight",e&&(_.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const i=this.#qe(g);if(!b&&!i)return _&&(_.fetch="hit"),this.#Ge(g),n&&this.#Qe(g),_&&this.#Xe(_,g),t;const o=this.#ze(e,g,m,p),s=void 0!==o.__staleWhileFetching&&r;return _&&(_.fetch=i?"stale":"refresh",s&&i&&(_.returnedStale=!0)),s?o.__staleWhileFetching:o.__returned=o}}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,s=this.#Oe.get(e);if(void 0!==s){const t=this.#Te[s],a=this.#$e(t);return o&&this.#Xe(o,s),this.#qe(s)?(o&&(o.get="stale"),a?(o&&r&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),r?t.__staleWhileFetching:void 0):(i||this.delete(e),o&&r&&(o.returnedStale=!0),r?t:void 0)):(o&&(o.get="hit"),a?t.__staleWhileFetching:(this.#Ge(s),n&&this.#Qe(s),t))}o&&(o.get="miss")}#it(e,t){this.#Me[t]=e,this.#Pe[e]=t}#Ge(e){e!==this.#Ce&&(e===this.#Le?this.#Le=this.#Pe[e]:this.#it(this.#Me[e],this.#Pe[e]),this.#it(this.#Ce,e),this.#Ce=e)}delete(e){let t=!1;if(0!==this.#c){const r=this.#Oe.get(e);if(void 0!==r)if(t=!0,1===this.#c)this.clear();else{this.#Je(r);const t=this.#Te[r];if(this.#$e(t)?t.__abortController.abort(new Error("deleted")):(this.#We||this.#Ue)&&(this.#We&&this.#Ee?.(t,e,"delete"),this.#Ue&&this.#De?.push([t,e,"delete"])),this.#Oe.delete(e),this.#ke[r]=void 0,this.#Te[r]=void 0,r===this.#Ce)this.#Ce=this.#Me[r];else if(r===this.#Le)this.#Le=this.#Pe[r];else{const e=this.#Me[r];this.#Pe[e]=this.#Pe[r];const t=this.#Pe[r];this.#Me[t]=this.#Me[r]}this.#c--,this.#Ie.push(r)}}if(this.#Ue&&this.#De?.length){const e=this.#De;let t;for(;t=e?.shift();)this.#xe?.(...t)}return t}clear(){for(const e of this.#Ve({allowStale:!0})){const t=this.#Te[e];if(this.#$e(t))t.__abortController.abort(new Error("deleted"));else{const r=this.#ke[e];this.#We&&this.#Ee?.(t,r,"delete"),this.#Ue&&this.#De?.push([t,r,"delete"])}}if(this.#Oe.clear(),this.#Te.fill(void 0),this.#ke.fill(void 0),this.#Fe&&this.#je&&(this.#Fe.fill(0),this.#je.fill(0)),this.#Ne&&this.#Ne.fill(0),this.#Le=0,this.#Ce=0,this.#Ie.length=0,this.#Ae=0,this.#c=0,this.#Ue&&this.#De){const e=this.#De;let t;for(;t=e?.shift();)this.#xe?.(...t)}}}t.LRUCache=h},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const n=r(79),i=r(373),o=r(374);class s{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#ot=[];#st;#at;signal;maxDepth;constructor(e,t,r){this.patterns=e,this.path=t,this.opts=r,this.#at=r.posix||"win32"!==r.platform?"/":"\\",r.ignore&&(this.#st=((e,t)=>"string"==typeof e?new i.Ignore([e],t):Array.isArray(e)?new i.Ignore(e,t):e)(r.ignore,r)),this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#ot.length=0})))}#lt(e){return this.seen.has(e)||!!this.#st?.ignored?.(e)}#ct(e){return!!this.#st?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let e;for(this.paused=!1;!this.paused&&(e=this.#ot.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#ot.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat;return this.matchCheckTest(n?await e.lstat():e,t)}matchCheckTest(e,t){return!e||!(this.maxDepth===1/0||e.depth()<=this.maxDepth)||t&&!e.canReaddir()||this.opts.nodir&&e.isDirectory()||this.#lt(e)?void 0:e}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat;return this.matchCheckTest(n?e.lstatSync():e,t)}matchFinish(e,t){if(this.#lt(e))return;const r=void 0===this.opts.absolute?t:this.opts.absolute;this.seen.add(e);const n=this.opts.mark&&e.isDirectory()?this.#at:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+n)}else{const t=this.opts.posix?e.relativePosix():e.relative(),r=this.opts.dotRelative&&!t.startsWith(".."+this.#at)?"."+this.#at:"";this.matchEmit(t?r+t+n:"."+n)}}async match(e,t,r){const n=await this.matchCheck(e,r);n&&this.matchFinish(n,t)}matchSync(e,t,r){const n=this.matchCheckSync(e,r);n&&this.matchFinish(n,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new o.Processor(this.opts),r)}walkCB2(e,t,r,n){if(this.#ct(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(e,t,r,n)));r.processPatterns(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||(i++,this.match(e,t,n).then((()=>o())));for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,r,o):e.readdirCB(((t,n)=>this.walkCB3(e,n,r,o)),!0)}o()}walkCB3(e,t,r,n){r=r.filterEntries(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||(i++,this.match(e,t,n).then((()=>o())));for(const[e,t]of r.subwalks.entries())i++,this.walkCB2(e,t,r.child(),o);o()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new o.Processor(this.opts),r)}walkCB2Sync(e,t,r,n){if(this.#ct(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(e,t,r,n)));r.processPatterns(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||this.matchSync(e,t,n);for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,o)}o()}walkCB3Sync(e,t,r,n){r=r.filterEntries(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||this.matchSync(e,t,n);for(const[e,t]of r.subwalks.entries())i++,this.walkCB2Sync(e,t,r.child(),o);o()}}t.GlobUtil=s;t.GlobWalker=class extends s{matches;constructor(e,t,r){super(e,t,r),this.matches=new Set}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};t.GlobStream=class extends s{results;constructor(e,t,r){super(e,t,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){const e=this.path;return e.isUnknown()?e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))})):this.walkCB(e,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;const n=r(37),i=r(289),o="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";t.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;constructor(e,{nobrace:t,nocase:r,noext:s,noglobstar:a,platform:l=o}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[];const c={dot:!0,nobrace:t,nocase:r,noext:s,noglobstar:a,optimizationLevel:2,platform:l,nocomment:!0,nonegate:!0};for(const t of e){const e=new n.Minimatch(t,c);for(let t=0;t<e.set.length;t++){const r=e.set[t],o=e.globParts[t];if(!r||!o)throw new Error("invalid pattern object");const s=new i.Pattern(r,o,0,l),a=new n.Minimatch(s.globString(),c),u="**"===o[o.length-1],f=s.isAbsolute();f?this.absolute.push(a):this.relative.push(a),u&&(f?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}}ignored(e){const t=e.fullpath(),r=`${t}/`,n=e.relative()||".",i=`${n}/`;for(const e of this.relative)if(e.match(n)||e.match(i))return!0;for(const e of this.absolute)if(e.match(t)||e.match(r))return!0;return!1}childrenIgnored(e){const t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(const e of this.relativeChildren)if(e.match(r))return!0;for(const e of this.absoluteChildren)if(e.match(t))return!0;return!1}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const n=r(37);class i{store;constructor(e=new Map){this.store=e}copy(){return new i(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath(),n=this.store.get(r);n?n.add(t.globString()):this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=i;class o{store=new Map;add(e,t,r){const n=(t?2:0)|(r?1:0),i=this.store.get(e);this.store.set(e,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(2&t),!!(1&t)]))}}t.MatchRecord=o;class s{store=new Map;add(e,t){if(!e.canReaddir())return;const r=this.store.get(e);r?r.find((e=>e.globString()===t.globString()))||r.push(t):this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=s;class a{hasWalkedCache;matches=new o;subwalks=new s;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new i}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root(),i=t.isAbsolute()&&!1!==this.opts.absolute;if(r){e=e.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=t.rest();if(!n){this.matches.add(e,!0,!1);continue}t=n}if(e.isENOENT())continue;let o,s,a=!1;for(;"string"==typeof(o=t.pattern())&&(s=t.rest());){const r=e.resolve(o);e=r,t=s,a=!0}if(o=t.pattern(),s=t.rest(),a){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if("string"!=typeof o)if(o===n.GLOBSTAR){(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar())&&this.subwalks.add(e,t);const r=s?.pattern(),n=s?.rest();if(s&&(""!==r&&"."!==r||n)){if(".."===r){const t=e.parent||e;n?this.hasWalkedCache.hasWalked(t,n)||this.subwalks.add(t,n):this.matches.add(t,i,!0)}}else this.matches.add(e,i,""===r||"."===r)}else o instanceof RegExp&&this.subwalks.add(e,t);else{const t=".."===o||""===o||"."===o;this.matches.add(e.resolve(o),i,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new a(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e),i=this.child();for(const e of t)for(const t of r){const r=t.isAbsolute(),o=t.pattern(),s=t.rest();o===n.GLOBSTAR?i.testGlobstar(e,t,s,r):o instanceof RegExp?i.testRegExp(e,o,s,r):i.testString(e,o,s,r)}return i}testGlobstar(e,t,r,n){if(!this.dot&&e.name.startsWith(".")||(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){const t=r.pattern();if("string"==typeof t&&".."!==t&&""!==t&&"."!==t)this.testString(e,t,r.rest(),n);else if(".."===t){const t=e.parent||e;this.subwalks.add(t,r)}else t instanceof RegExp&&this.testRegExp(e,t,r.rest(),n)}}testRegExp(e,t,r,n){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}testString(e,t,r,n){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}}t.Processor=a},(e,t,r)=>{const n=globalThis.AbortController||r(8).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:l}=r(13),{validateAbortSignal:c,validateInteger:u,validateObject:f}=r(48),h=r(5).Symbol("kWeak"),d=r(5).Symbol("kResistStopPropagation"),{finished:p}=r(29),b=r(157),{addAbortSignalNoValidate:_}=r(69),{isWritable:y,isNodeStream:m}=r(25),{deprecate:g}=r(18),{ArrayPrototypePush:w,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(5),P=T("kEmpty"),M=T("kEof");function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(18).AbortSignalAny([null==t?void 0:t.signal].filter(v)),s=this,a=[],c={signal:o};let u,f,h=!1,d=0;function p(){h=!0,b()}function b(){d-=1,_()}function _(){f&&!h&&d<n&&a.length<i&&(f(),f=null)}!async function(){try{for await(let t of s){if(h)return;if(o.aborted)throw new l;try{if(t=e(t,c),t===P)continue;t=O(t)}catch(e){t=A(e)}d+=1,k(t,b,p),a.push(t),u&&(u(),u=null),!h&&(a.length>=i||d>=n)&&await new R((e=>{f=e}))}a.push(M)}catch(e){const t=A(e);k(t,b,p),a.push(t)}finally{h=!0,u&&(u(),u=null)}}();try{for(;;){for(;a.length>0;){const e=await a[0];if(e===M)return;if(o.aborted)throw new l;e!==P&&(yield e),a.shift(),_()}await new R((e=>{u=e}))}}finally{h=!0,f&&(f(),f=null)}}.call(this)}async function C(e,t=void 0){for await(const r of I.call(this,e,t))return!0;return!1}function I(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return L.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:I,flatMap:function(e,t){const r=L.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:L,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=b(this,e);return null!=t&&t.signal&&_(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await C.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of L.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&c(r.signal,"options.signal");let s=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const a=new n,u=a.signal;if(null!=r&&r.signal){const e={once:!0,[h]:this,[d]:!0};r.signal.addEventListener("abort",(()=>a.abort()),e)}let b=!1;try{for await(const n of this){var _;if(b=!0,null!=r&&null!==(_=r.signal)&&void 0!==_&&_.aborted)throw new l;s?t=await e(t,n,{signal:u}):(t=n,s=!0)}if(!b&&!s)throw new D}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});w(t,n)}return t},some:C,find:async function(e,t){for await(const r of I.call(this,e,t))return r}}},(e,t,r)=>{const n=globalThis.AbortController||r(8).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:l}=r(14),{validateAbortSignal:c,validateInteger:u,validateObject:f}=r(49),h=r(6).Symbol("kWeak"),d=r(6).Symbol("kResistStopPropagation"),{finished:p}=r(30),b=r(166),{addAbortSignalNoValidate:_}=r(72),{isWritable:y,isNodeStream:m}=r(26),{deprecate:g}=r(19),{ArrayPrototypePush:w,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(6),P=T("kEmpty"),M=T("kEof");function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(19).AbortSignalAny([null==t?void 0:t.signal].filter(v)),s=this,a=[],c={signal:o};let u,f,h=!1,d=0;function p(){h=!0,b()}function b(){d-=1,_()}function _(){f&&!h&&d<n&&a.length<i&&(f(),f=null)}!async function(){try{for await(let t of s){if(h)return;if(o.aborted)throw new l;try{if(t=e(t,c),t===P)continue;t=O(t)}catch(e){t=A(e)}d+=1,k(t,b,p),a.push(t),u&&(u(),u=null),!h&&(a.length>=i||d>=n)&&await new R((e=>{f=e}))}a.push(M)}catch(e){const t=A(e);k(t,b,p),a.push(t)}finally{h=!0,u&&(u(),u=null)}}();try{for(;;){for(;a.length>0;){const e=await a[0];if(e===M)return;if(o.aborted)throw new l;e!==P&&(yield e),a.shift(),_()}await new R((e=>{u=e}))}}finally{h=!0,f&&(f(),f=null)}}.call(this)}async function C(e,t=void 0){for await(const r of I.call(this,e,t))return!0;return!1}function I(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return L.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:I,flatMap:function(e,t){const r=L.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:L,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=b(this,e);return null!=t&&t.signal&&_(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await C.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of L.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&c(r.signal,"options.signal");let s=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const a=new n,u=a.signal;if(null!=r&&r.signal){const e={once:!0,[h]:this,[d]:!0};r.signal.addEventListener("abort",(()=>a.abort()),e)}let b=!1;try{for await(const n of this){var _;if(b=!0,null!=r&&null!==(_=r.signal)&&void 0!==_&&_.aborted)throw new l;s?t=await e(t,n,{signal:u}):(t=n,s=!0)}if(!b&&!s)throw new D}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});w(t,n)}return t},some:C,find:async function(e,t){for await(const r of I.call(this,e,t))return r}}},(e,t,r)=>{const n=globalThis.AbortController||r(8).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:l}=r(15),{validateAbortSignal:c,validateInteger:u,validateObject:f}=r(50),h=r(7).Symbol("kWeak"),d=r(7).Symbol("kResistStopPropagation"),{finished:p}=r(31),b=r(172),{addAbortSignalNoValidate:_}=r(75),{isWritable:y,isNodeStream:m}=r(27),{deprecate:g}=r(20),{ArrayPrototypePush:w,Boolean:v,MathFloor:S,Number:E,NumberIsNaN:x,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:k,Symbol:T}=r(7),P=T("kEmpty"),M=T("kEof");function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;null!=(null==t?void 0:t.concurrency)&&(n=S(t.concurrency));let i=n-1;return null!=(null==t?void 0:t.highWaterMark)&&(i=S(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,async function*(){const o=r(20).AbortSignalAny([null==t?void 0:t.signal].filter(v)),s=this,a=[],c={signal:o};let u,f,h=!1,d=0;function p(){h=!0,b()}function b(){d-=1,_()}function _(){f&&!h&&d<n&&a.length<i&&(f(),f=null)}!async function(){try{for await(let t of s){if(h)return;if(o.aborted)throw new l;try{if(t=e(t,c),t===P)continue;t=O(t)}catch(e){t=A(e)}d+=1,k(t,b,p),a.push(t),u&&(u(),u=null),!h&&(a.length>=i||d>=n)&&await new R((e=>{f=e}))}a.push(M)}catch(e){const t=A(e);k(t,b,p),a.push(t)}finally{h=!0,u&&(u(),u=null)}}();try{for(;;){for(;a.length>0;){const e=await a[0];if(e===M)return;if(o.aborted)throw new l;e!==P&&(yield e),a.shift(),_()}await new R((e=>{u=e}))}}finally{h=!0,f&&(f(),f=null)}}.call(this)}async function C(e,t=void 0){for await(const r of I.call(this,e,t))return!0;return!1}function I(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return L.call(this,(async function(t,r){return await e(t,r)?t:P}),t)}class D extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function N(e){if(e=E(e),x(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:g((function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;e--<=0&&(yield r)}}.call(this)},filter:I,flatMap:function(e,t){const r=L.call(this,e,t);return async function*(){for await(const e of r)yield*e}.call(this)},map:L,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=N(e),async function*(){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),m(e)&&!y(e))throw new i("stream",e,"must be writable");const r=b(this,e);return null!=t&&t.signal&&_(t.signal,r),r}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await C.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const r of L.call(this,(async function(t,r){return await e(t,r),P}),t));},reduce:async function(e,t,r){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&c(r.signal,"options.signal");let s=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){const e=new l(void 0,{cause:r.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const a=new n,u=a.signal;if(null!=r&&r.signal){const e={once:!0,[h]:this,[d]:!0};r.signal.addEventListener("abort",(()=>a.abort()),e)}let b=!1;try{for await(const n of this){var _;if(b=!0,null!=r&&null!==(_=r.signal)&&void 0!==_&&_.aborted)throw new l;s?t=await e(t,n,{signal:u}):(t=n,s=!0)}if(!b&&!s)throw new D}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});w(t,n)}return t},some:C,find:async function(e,t){for await(const r of I.call(this,e,t))return r}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;t.assertValidPattern=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},n=e=>e.replace(/[[\]\\-]/g,"\\$&"),i=e=>e.join("");t.parseClass=(e,t)=>{const o=t;if("["!==e.charAt(o))throw new Error("not in a brace expression");const s=[],a=[];let l=o+1,c=!1,u=!1,f=!1,h=!1,d=o,p="";e:for(;l<e.length;){const t=e.charAt(l);if("!"!==t&&"^"!==t||l!==o+1){if("]"===t&&c&&!f){d=l+1;break}if(c=!0,"\\"!==t||f){if("["===t&&!f)for(const[t,[n,i,c]]of Object.entries(r))if(e.startsWith(t,l)){if(p)return["$.",!1,e.length-o,!0];l+=t.length,c?a.push(n):s.push(n),u=u||i;continue e}f=!1,p?(t>p?s.push(n(p)+"-"+n(t)):t===p&&s.push(n(t)),p="",l++):e.startsWith("-]",l+1)?(s.push(n(t+"-")),l+=2):e.startsWith("-",l+1)?(p=t,l+=2):(s.push(n(t)),l++)}else f=!0,l++}else h=!0,l++}if(d<l)return["",!1,0,!1];if(!s.length&&!a.length)return["$.",!1,e.length-o,!0];if(0===a.length&&1===s.length&&/^\\?.$/.test(s[0])&&!h){const e=2===s[0].length?s[0].slice(-1):s[0];return[(b=e,b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,d-o,!1]}var b;const _="["+(h?"^":"")+i(s)+"]",y="["+(h?"":"^")+i(a)+"]";return[s.length&&a.length?"("+_+"|"+y+")":s.length?_:y,u,d-o,!0]}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const n=r(79),i=r(381),o=r(382);class s{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#ot=[];#st;#at;signal;maxDepth;constructor(e,t,r){this.patterns=e,this.path=t,this.opts=r,this.#at=r.posix||"win32"!==r.platform?"/":"\\",r.ignore&&(this.#st=((e,t)=>"string"==typeof e?new i.Ignore([e],t):Array.isArray(e)?new i.Ignore(e,t):e)(r.ignore,r)),this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#ot.length=0})))}#lt(e){return this.seen.has(e)||!!this.#st?.ignored?.(e)}#ct(e){return!!this.#st?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let e;for(this.paused=!1;!this.paused&&(e=this.#ot.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#ot.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat;return this.matchCheckTest(n?await e.lstat():e,t)}matchCheckTest(e,t){return!e||!(this.maxDepth===1/0||e.depth()<=this.maxDepth)||t&&!e.canReaddir()||this.opts.nodir&&e.isDirectory()||this.#lt(e)?void 0:e}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat;return this.matchCheckTest(n?e.lstatSync():e,t)}matchFinish(e,t){if(this.#lt(e))return;const r=void 0===this.opts.absolute?t:this.opts.absolute;this.seen.add(e);const n=this.opts.mark&&e.isDirectory()?this.#at:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+n)}else{const t=this.opts.posix?e.relativePosix():e.relative(),r=this.opts.dotRelative&&!t.startsWith(".."+this.#at)?"."+this.#at:"";this.matchEmit(t?r+t+n:"."+n)}}async match(e,t,r){const n=await this.matchCheck(e,r);n&&this.matchFinish(n,t)}matchSync(e,t,r){const n=this.matchCheckSync(e,r);n&&this.matchFinish(n,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new o.Processor(this.opts),r)}walkCB2(e,t,r,n){if(this.#ct(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(e,t,r,n)));r.processPatterns(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||(i++,this.match(e,t,n).then((()=>o())));for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,r,o):e.readdirCB(((t,n)=>this.walkCB3(e,n,r,o)),!0)}o()}walkCB3(e,t,r,n){r=r.filterEntries(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||(i++,this.match(e,t,n).then((()=>o())));for(const[e,t]of r.subwalks.entries())i++,this.walkCB2(e,t,r.child(),o);o()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new o.Processor(this.opts),r)}walkCB2Sync(e,t,r,n){if(this.#ct(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(e,t,r,n)));r.processPatterns(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||this.matchSync(e,t,n);for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,o)}o()}walkCB3Sync(e,t,r,n){r=r.filterEntries(e,t);let i=1;const o=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#lt(e)||this.matchSync(e,t,n);for(const[e,t]of r.subwalks.entries())i++,this.walkCB2Sync(e,t,r.child(),o);o()}}t.GlobUtil=s;t.GlobWalker=class extends s{matches;constructor(e,t,r){super(e,t,r),this.matches=new Set}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};t.GlobStream=class extends s{results;constructor(e,t,r){super(e,t,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){const e=this.path;return e.isUnknown()?e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))})):this.walkCB(e,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;const n=r(38),i=r(313),o="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";t.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;constructor(e,{nobrace:t,nocase:r,noext:s,noglobstar:a,platform:l=o}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[];const c={dot:!0,nobrace:t,nocase:r,noext:s,noglobstar:a,optimizationLevel:2,platform:l,nocomment:!0,nonegate:!0};for(const t of e){const e=new n.Minimatch(t,c);for(let t=0;t<e.set.length;t++){const r=e.set[t],o=e.globParts[t];if(!r||!o)throw new Error("invalid pattern object");const s=new i.Pattern(r,o,0,l),a=new n.Minimatch(s.globString(),c),u="**"===o[o.length-1],f=s.isAbsolute();f?this.absolute.push(a):this.relative.push(a),u&&(f?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}}ignored(e){const t=e.fullpath(),r=`${t}/`,n=e.relative()||".",i=`${n}/`;for(const e of this.relative)if(e.match(n)||e.match(i))return!0;for(const e of this.absolute)if(e.match(t)||e.match(r))return!0;return!1}childrenIgnored(e){const t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(const e of this.relativeChildren)if(e.match(r))return!0;for(const e of this.absoluteChildren)if(e.match(t))return!0;return!1}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const n=r(38);class i{store;constructor(e=new Map){this.store=e}copy(){return new i(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath(),n=this.store.get(r);n?n.add(t.globString()):this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=i;class o{store=new Map;add(e,t,r){const n=(t?2:0)|(r?1:0),i=this.store.get(e);this.store.set(e,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(2&t),!!(1&t)]))}}t.MatchRecord=o;class s{store=new Map;add(e,t){if(!e.canReaddir())return;const r=this.store.get(e);r?r.find((e=>e.globString()===t.globString()))||r.push(t):this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=s;class a{hasWalkedCache;matches=new o;subwalks=new s;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new i}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root(),i=t.isAbsolute()&&!1!==this.opts.absolute;if(r){e=e.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=t.rest();if(!n){this.matches.add(e,!0,!1);continue}t=n}if(e.isENOENT())continue;let o,s,a=!1;for(;"string"==typeof(o=t.pattern())&&(s=t.rest());){const r=e.resolve(o);e=r,t=s,a=!0}if(o=t.pattern(),s=t.rest(),a){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if("string"!=typeof o)if(o===n.GLOBSTAR){(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar())&&this.subwalks.add(e,t);const r=s?.pattern(),n=s?.rest();if(s&&(""!==r&&"."!==r||n)){if(".."===r){const t=e.parent||e;n?this.hasWalkedCache.hasWalked(t,n)||this.subwalks.add(t,n):this.matches.add(t,i,!0)}}else this.matches.add(e,i,""===r||"."===r)}else o instanceof RegExp&&this.subwalks.add(e,t);else{const t=".."===o||""===o||"."===o;this.matches.add(e.resolve(o),i,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new a(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e),i=this.child();for(const e of t)for(const t of r){const r=t.isAbsolute(),o=t.pattern(),s=t.rest();o===n.GLOBSTAR?i.testGlobstar(e,t,s,r):o instanceof RegExp?i.testRegExp(e,o,s,r):i.testString(e,o,s,r)}return i}testGlobstar(e,t,r,n){if(!this.dot&&e.name.startsWith(".")||(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){const t=r.pattern();if("string"==typeof t&&".."!==t&&""!==t&&"."!==t)this.testString(e,t,r.rest(),n);else if(".."===t){const t=e.parent||e;this.subwalks.add(t,r)}else t instanceof RegExp&&this.testRegExp(e,t,r.rest(),n)}}testRegExp(e,t,r,n){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}testString(e,t,r,n){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}}t.Processor=a},(e,t,r)=>{t.extract=r(315),t.pack=r(324)},e=>{e.exports=require("child_process")},e=>{e.exports=require("node:os")},(e,t,r)=>{r(107),r(328),t.Extract=r(329),r(347)},(e,t,r)=>{const n=r(11),{checkPath:i}=r(388),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:o(t),recursive:!0}))},(e,t,r)=>{const n=r(3);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},(e,t,r)=>{function n(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}r.d(t,{GetObjectCommand:()=>ki,HeadObjectCommand:()=>Ii});const i="WHEN_SUPPORTED",o="WHEN_REQUIRED",s="WHEN_SUPPORTED",a="WHEN_REQUIRED";var l,c;!function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"}(l||(l={})),function(e){e.HEADER="header",e.TRAILER="trailer"}(c||(c={}));const u=l.CRC32,f={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0};class h{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new h({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return h.clone(this)}}class d{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(1===this.byteArrays.length){const e=this.byteArrays[0];return this.reset(),e}const e=this.allocByteArray(this.byteLength);let t=0;for(let r=0;r<this.byteArrays.length;++r){const n=this.byteArrays[r];e.set(n,t),t+=n.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}const p=function(e,t,r){const n=e.getReader();let i=!1,o=0;const s=["",new d((e=>new Uint8Array(e)))];let a=-1;const l=async e=>{const{value:c,done:u}=await n.read(),f=c;if(u){if(-1!==a){const t=b(s,a);_(t)>0&&e.enqueue(t)}e.close()}else{const n=function(e,t=!0){if(t&&"undefined"!=typeof Buffer&&e instanceof Buffer)return 2;if(e instanceof Uint8Array)return 1;if("string"==typeof e)return 0;return-1}(f,!1);if(a!==n&&(a>=0&&e.enqueue(b(s,a)),a=n),-1===a)return void e.enqueue(f);const c=_(f);o+=c;const u=_(s[a]);if(c>=t&&0===u)e.enqueue(f);else{const n=function(e,t,r){switch(t){case 0:return e[0]+=r,_(e[0]);case 1:case 2:return e[t].push(r),_(e[t])}}(s,a,f);!i&&o>2*t&&(i=!0,r?.warn(`@smithy/util-stream - stream chunk size ${c} is below threshold of ${t}, automatically buffering.`)),n>=t?e.enqueue(b(s,a)):await l(e)}}};return new ReadableStream({pull:l})};function b(e,t){switch(t){case 0:const r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function _(e){return e?.byteLength??e?.length??0}const y=e=>e===l.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,m=e=>{return!(void 0===e||"string"==typeof e||ArrayBuffer.isView(e)||(t=e,"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t)));var t};function g(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))}function w(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}Object.create;function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var S="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function E(e){return e instanceof Uint8Array?e:"string"==typeof e?S(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function x(e){return"string"==typeof e?0===e.length:0===e.byteLength}function R(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}function A(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}var O=function(){function e(){this.crc32c=new k}return e.prototype.update=function(e){x(e)||this.crc32c.update(E(e))},e.prototype.digest=function(){return g(this,void 0,void 0,(function(){return w(this,(function(e){return[2,R(this.crc32c.digest())]}))}))},e.prototype.reset=function(){this.crc32c=new k},e}();var k=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=v(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^T[255&(this.checksum^o)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),T=A([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]);let P,M,L,C,I,D,N,j,F;const W=()=>{P||(P=(()=>{const e=new Array(8);for(let t=0;t<8;t++){const r=new Array(512);for(let e=0;e<256;e++){let n=BigInt(e);for(let e=0;e<8*(t+1);e++)1n&n?n=n>>1n^0x9a6c9329ac4bc9b5n:n>>=1n;r[2*e]=Number(n>>32n&0xffffffffn),r[2*e+1]=Number(0xffffffffn&n)}e[t]=new Uint32Array(r)}return e})(),[M,L,C,I,D,N,j,F]=P)};class B{c1=0;c2=0;constructor(){W(),this.reset()}update(e){const t=e.length;let r=0,n=this.c1,i=this.c2;for(;r+8<=t;){const t=(255&(i^e[r++]))<<1,o=(255&(i>>>8^e[r++]))<<1,s=(255&(i>>>16^e[r++]))<<1,a=(255&(i>>>24^e[r++]))<<1,l=(255&(n^e[r++]))<<1,c=(255&(n>>>8^e[r++]))<<1,u=(255&(n>>>16^e[r++]))<<1,f=(255&(n>>>24^e[r++]))<<1;n=F[t]^j[o]^N[s]^D[a]^I[l]^C[c]^L[u]^M[f],i=F[t+1]^j[o+1]^N[s+1]^D[a+1]^I[l+1]^C[c+1]^L[u+1]^M[f+1]}for(;r<t;){const t=(255&(i^e[r]))<<1;i=(i>>>8|(255&n)<<24)>>>0,n=n>>>8^M[t],i^=M[t+1],r++}this.c1=n,this.c2=i}async digest(){const e=4294967295^this.c1,t=4294967295^this.c2;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t])}reset(){this.c1=4294967295,this.c2=4294967295}}const U=null;var $=function(){function e(){this.crc32=new z}return e.prototype.update=function(e){x(e)||this.crc32.update(E(e))},e.prototype.digest=function(){return g(this,void 0,void 0,(function(){return w(this,(function(e){return[2,R(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new z},e}();var z=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=v(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^G[255&(this.checksum^o)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),G=A([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);const H=[l.CRC32,l.CRC32C,l.CRC64NVME,l.SHA1,l.SHA256],V=[l.SHA256,l.SHA1,l.CRC32,l.CRC32C,l.CRC64NVME],q=(e,t)=>{const{checksumAlgorithms:r={}}=t;switch(e){case l.MD5:return r?.MD5??t.md5;case l.CRC32:return r?.CRC32??$;case l.CRC32C:return r?.CRC32C??O;case l.CRC64NVME:return"function"!=typeof U?r?.CRC64NVME??B:r?.CRC64NVME??U;case l.SHA1:return r?.SHA1??t.sha1;case l.SHA256:return r?.SHA256??t.sha256;default:if(r?.[e])return r[e];throw new Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${H}, or provide an implementation to the client constructor checksums field.`)}},K=e=>(new TextEncoder).encode(e),Y=(e,t)=>{const r=new e;var n;return r.update("string"==typeof(n=t||"")?K(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)),r.digest()},Z={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},Q=(e,t)=>(r,o)=>async s=>{if(!h.isInstance(s.request))return r(s);if(((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(e.toLowerCase().startsWith(r))return!0;return!1})("x-amz-checksum-",s.request.headers))return r(s);const{request:a,input:c}=s,{body:f,headers:d}=a,{base64Encoder:b,streamHasher:_}=e,{requestChecksumRequired:g,requestAlgorithmMember:w}=t,v=await e.requestChecksumCalculation(),S=w?.name,E=w?.httpHeader;S&&!c[S]&&(v===i||g)&&(c[S]=u,E&&(d[E]=u));const x=((e,{requestChecksumRequired:t,requestAlgorithmMember:r,requestChecksumCalculation:n})=>{if(!r)return n===i||t?u:void 0;if(!e[r])return;return e[r]})(c,{requestChecksumRequired:g,requestAlgorithmMember:w?.name,requestChecksumCalculation:v});let R=f,A=d;if(x){switch(x){case l.CRC32:n(o,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case l.CRC32C:n(o,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case l.CRC64NVME:n(o,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case l.SHA1:n(o,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case l.SHA256:n(o,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y")}const t=y(x),r=q(x,e);if(m(f)){const{getAwsChunkedEncodingStream:n,bodyLengthChecker:i}=e;R=n("number"==typeof e.requestStreamBufferSize&&e.requestStreamBufferSize>=8192?p(f,e.requestStreamBufferSize,o.logger):f,{base64Encoder:b,bodyLengthChecker:i,checksumLocationName:t,checksumAlgorithmFn:r,streamHasher:_}),A={...d,"content-encoding":d["content-encoding"]?`${d["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":d["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":t},delete A["content-length"]}else if(!((e,t)=>{const r=e.toLowerCase();for(const e of Object.keys(t))if(r===e.toLowerCase())return!0;return!1})(t,d)){const e=await Y(r,f);A={...d,[t]:b(e)}}}try{return await r({...s,request:{...a,headers:A,body:R}})}catch(e){if(e instanceof Error&&"InvalidChunkSizeError"===e.name)try{e.message.endsWith(".")||(e.message+="."),e.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(e){}throw e}},X=(e=[])=>{const t=[];let r=V.length;for(const n of e){const e=V.indexOf(n);-1!==e?t[e]=n:t[r++]=n}return t.filter(Boolean)},J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=(Object.entries(J).reduce(((e,[t,r])=>(e[r]=Number(t),e)),{}),J.split(""));function te(e){let t;t="string"==typeof e?K(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let i=e,o=Math.min(e+3,t.length);i<o;i++)r|=t[i]<<8*(o-i-1),n+=8;const o=Math.ceil(n/6);r<<=6*o-n;for(let e=1;e<=o;e++){const t=6*(o-e);i+=ee[(r&63<<t)>>t]}i+="==".slice(0,4-o)}return i}const re="function"==typeof ReadableStream?ReadableStream:function(){};class ne extends re{}const ie=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:n,base64Encoder:i})=>{if(o=r,"function"!=typeof ReadableStream||!(o?.constructor?.name===ReadableStream.name||o instanceof ReadableStream))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);var o;const s=i??te;if("function"!=typeof TransformStream)throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const a=new TransformStream({start(){},async transform(e,r){t.update(e),r.enqueue(e)},async flush(r){const i=await t.digest(),o=s(i);if(e!==o){const t=new Error(`Checksum mismatch: expected "${e}" but received "${o}" in response header "${n}".`);r.error(t)}else r.terminate()}});r.pipeThrough(a);const l=a.readable;return Object.setPrototypeOf(l,ne.prototype),l},oe=async(e,{checksumAlgorithmFn:t,base64Encoder:r})=>r(await Y(t,e)),se={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},ae=(e,t)=>(r,n)=>async i=>{if(!h.isInstance(i.request))return r(i);const o=i.input,s=await r(i),a=s.response,{requestValidationModeMember:c,responseAlgorithms:u}=t;if(c&&"ENABLED"===o[c]){const{clientName:t,commandName:r}=n,i=Object.keys(e.checksumAlgorithms??{}).filter((e=>{const t=y(e);return void 0!==a.headers[t]})),o=X([...u??[],...i]);if("S3Client"===t&&"GetObjectCommand"===r&&o.every((e=>{const t=y(e),r=a.headers[t];return!r||(e=>{const t=e.lastIndexOf("-");if(-1!==t){const r=e.slice(t+1);if(!r.startsWith("0")){const e=parseInt(r,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1})(r)})))return s;await(async(e,{config:t,responseAlgorithms:r,logger:n})=>{const i=X(r),{body:o,headers:s}=e;for(const r of i){const i=y(r),a=s[i];if(a){let s;try{s=q(r,t)}catch(e){if(r===l.CRC64NVME){n?.warn(`Skipping ${l.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}const{base64Encoder:c}=t;if(m(o))return void(e.body=ie({expectedChecksum:a,checksumSourceLocation:i,checksum:new s,source:o,base64Encoder:c}));const u=await oe(o,{checksumAlgorithmFn:s,base64Encoder:c});if(u===a)break;throw new Error(`Checksum mismatch: expected "${u}" but received "${a}" in response header "${i}".`)}}})(a,{config:e,responseAlgorithms:o,logger:n.logger})}return s},le=(e,t)=>({applyToStack:r=>{r.add(Q(e,t),Z),r.addRelativeTo(((e,t)=>(r,l)=>async c=>{const u=c.input,{requestValidationModeMember:f}=t,h=await e.requestChecksumCalculation(),d=await e.responseChecksumValidation();switch(h){case o:n(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case i:n(l,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z")}switch(d){case a:n(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case s:n(l,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b")}return f&&!u[f]&&d===s&&(u[f]="ENABLED"),r(c)})(e,t),f),r.addRelativeTo(ae(e,t),se)}});class ce{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const ue=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Se.warn(ve(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},fe=Math.ceil(2**127*(2-2**-23)),he=e=>{const t=ue(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>fe)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},de=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},pe=e=>_e(e,16),be=e=>_e(e,8),_e=(e,t)=>{const r=de(e);if(void 0!==r&&ye(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},ye=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},me=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ge=e=>{const t=e.match(me);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},we=e=>pe("string"==typeof e?ge(e):e),ve=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Se={warn:console.warn};const Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Re=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Ae=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Oe=(e,t,r,n)=>{const i=t-1;return Le(e,i,r),new Date(Date.UTC(e,i,r,Ie(n.hours,"hour",0,23),Ie(n.minutes,"minute",0,59),Ie(n.seconds,"seconds",0,60),De(n.fractionalMilliseconds)))},ke=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+we(Ne(e));return r<t?r+100:r},Te=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Pe=e=>{const t=Ee.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Me=[31,28,31,30,31,30,31,31,30,31,30,31],Le=(e,t,r)=>{let n=Me[t];if(1===t&&Ce(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Ee[t]} in ${e}: ${r}`)},Ce=e=>e%4==0&&(e%100!=0||e%400==0),Ie=(e,t,r,n)=>{const i=(e=>be("string"==typeof e?ge(e):e))(Ne(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},De=e=>null==e?0:1e3*(e=>he("string"==typeof e?ge(e):e))("0."+e),Ne=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)},je=e=>(e,t)=>async r=>{const n=await e(r),{response:i}=n;if(ce.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{(e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=xe.exec(e);if(t){const[e,r,n,i,o,s,a,l]=t;return Oe(we(Ne(i)),Pe(n),Ie(r,"day",1,31),{hours:o,minutes:s,seconds:a,fractionalMilliseconds:l})}if(t=Re.exec(e),t){const[e,r,n,i,o,s,a,l]=t;return Te(Oe(ke(i),Pe(n),Ie(r,"day",1,31),{hours:o,minutes:s,seconds:a,fractionalMilliseconds:l}))}if(t=Ae.exec(e),t){const[e,r,n,i,o,s,a,l]=t;return Oe(we(Ne(l)),Pe(r),Ie(n.trimLeft(),"day",1,31),{hours:i,minutes:o,seconds:s,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")})(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return n},Fe={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},We=e=>({applyToStack:e=>{e.addRelativeTo(je(),Fe)}});const Be={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Ue=e=>({applyToStack:t=>{var r;t.add((r=e,e=>async t=>{const n={...t.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const e of i){const t=n[e.target];if(t){let i;"string"==typeof t?$e(t,r)?i=r.base64Decoder(t):(i=r.utf8Decoder(t),n[e.target]=r.base64Encoder(i)):(i=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t),n[e.target]=r.base64Encoder(i));const o=new r.md5;o.update(i),n[e.hash]=r.base64Encoder(await o.digest())}}return e({...t,input:n})}),Be)}});function $e(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return 32===t.base64Decoder(e).length}catch{return!1}}const ze={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};const Ge="__smithy_context",He=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ve=/(\d+\.){3}\d+/,qe=/\.\./,Ke=e=>He.test(e)&&!Ve.test(e)&&!qe.test(e),Ye=e=>{const[t,r,n,,,i]=e.split(":"),o="arn"===t&&e.split(":").length>=6,s=Boolean(o&&r&&n&&i);if(o&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s},Ze=(e,t,r,n=!1)=>{const i=async()=>{let i;if(n){const n=r.clientContextParams,o=n?.[e];i=o??r[e]??r[t]}else i=r[e]??r[t];return"function"==typeof i?i():i};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await i();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:i};const Qe=e=>{if("string"==typeof e)return Qe(new URL(e));const{hostname:t,pathname:r,port:n,protocol:i,search:o}=e;let s;return o&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(o)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:s}},Xe=async(e,t,r,n)=>{if(!r.isCustomEndpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await(async()=>{})(r.serviceId),e&&(r.endpoint=()=>Promise.resolve((e=>{if("object"==typeof e){if("url"in e){const t=Qe(e.url);if(e.headers){t.headers={};for(const[r,n]of Object.entries(e.headers))t.headers[r.toLowerCase()]=n.join(", ")}return t}return e}return Qe(e)})(e)),r.isCustomEndpoint=!0)}const i=await Je(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");const o=r.endpointProvider(i,n);if(r.isCustomEndpoint&&r.endpoint){const e=await r.endpoint();if(e?.headers){o.headers??={};for(const[t,r]of Object.entries(e.headers))o.headers[t]=Array.isArray(r)?r:[r]}}return o},Je=async(e,t,r)=>{const n={},i=t?.getEndpointParameterInstructions?.()||{};for(const[t,o]of Object.entries(i))switch(o.type){case"staticContextParams":n[t]=o.value;break;case"contextParams":n[t]=e[o.name];break;case"clientContextParams":case"builtInParams":n[t]=await Ze(o.name,t,r,"builtInParams"!==o.type)();break;case"operationContextParams":n[t]=o.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}return 0===Object.keys(i).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Ye(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Ke(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},et=({config:e,instructions:t})=>(r,n)=>async i=>{e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const o=await Xe(i.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=o,n.authSchemes=o.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=(e=>e[Ge]||(e[Ge]={}))(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...i})},tt={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ze.name},rt=(e,t)=>({applyToStack:r=>{r.addRelativeTo(et({config:e,instructions:t}),tt)}}),nt=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},it=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,ot=()=>{let e=[],t=[],r=!1;const n=new Set,i=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),o=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t},s=(r=!1)=>{const n=[],i=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of nt(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of nt(t.name,t.aliases))s[e]=t;i.push(t)})),i.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${it(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));var a;return(a=n,a.sort(((e,t)=>st[t.step]-st[e.step]||at[t.priority||"normal"]-at[e.priority||"normal"]))).map(o).reduce(((e,t)=>(e.push(...t),e)),[])},a={add:(t,r={})=>{const{name:i,override:o,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},l=nt(i,s);if(l.length>0){if(l.some((e=>n.has(e)))){if(!o)throw new Error(`Duplicate middleware name '${it(i,s)}'`);for(const t of l){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${it(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${it(i,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of l)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:i,override:o,aliases:s}=r,a={middleware:e,...r},l=nt(i,s);if(l.length>0){if(l.some((e=>n.has(e)))){if(!o)throw new Error(`Duplicate middleware name '${it(i,s)}'`);for(const e of l){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${it(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${it(i,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of l)n.add(e)}t.push(a)},clone:()=>i(ot()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let i=!1;const o=e=>{const t=nt(e.name,e.aliases);if(t.includes(r)){i=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r):(r=>{let i=!1;const o=e=>{if(e.middleware===r){i=!0;for(const t of nt(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r),removeByTag:r=>{let i=!1;const o=e=>{const{tags:t,name:o,aliases:s}=e;if(t&&t.includes(r)){const e=nt(o,s);for(const t of e)n.delete(t);return i=!0,!1}return!0};return e=e.filter(o),t=t.filter(o),i},concat:e=>{const t=i(ot());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:i,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return it(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},st={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},at={high:3,normal:2,low:1},lt=e=>"function"==typeof e?e():e,ct=[];function ut(e){if("object"==typeof e)return e;if(ct[e|=0])return ct[e];const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>r++&1)&&(t[n]=1);return ct[e]=t}const ft=Symbol.for("@smithy/nor-struct-it"),ht=Symbol.for("@smithy/ns"),dt=[],pt={};class bt{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=bt.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let n=e,i=e;for(this._isMemberSchema=!1;yt(n);)r.push(n[1]),n=n[0],i=lt(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,ut(t))}}else this.memberTraits=0;if(i instanceof bt){const e=this.memberTraits;return Object.assign(this,i),this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??i.memberName)}if(this.schema=lt(i),mt(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"==typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(e){const t="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(dt[e])return dt[e]}else if("string"==typeof e){if(pt[e])return pt[e]}else if(t&&e[ht])return e[ht];const r=lt(e);if(r instanceof bt)return r;if(yt(r)){const[t,n]=r;if(t instanceof bt)return Object.assign(t.getMergedTraits(),ut(n)),t;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const n=new bt(r);return t?e[ht]=n:"string"==typeof r?pt[r]=n:"number"==typeof r?dt[r]=n:n}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return ut(this.memberTraits)}getOwnTraits(){return ut(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema();return _t([e?15:r[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=i)return _t([i,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return _t(yt(n)?n:[n,0],e)}if(this.isDocumentSchema())return _t([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),t=e[4].length;let r=e[ft];if(r&&t===r.length)yield*r;else{r=Array(t);for(let n=0;n<t;++n){const t=e[4][n],i=_t([e[5][n],0],t);yield r[n]=[t,i]}e[ft]=r}}}function _t(e,t){if(e instanceof bt)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new bt(e,t)}const yt=e=>Array.isArray(e)&&2===e.length,mt=e=>Array.isArray(e)&&e.length>=5,gt="***SensitiveInformation***";function wt(e,t){if(null==t)return t;const r=bt.of(e);if(r.getMergedTraits().sensitive)return gt;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return gt}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return gt}else if(r.isStructSchema()&&"object"==typeof t){const e=t,n={};for(const[t,i]of r.structIterator())null!=e[t]&&(n[t]=wt(i,e[t]));return n}return t}class vt{middlewareStack=ot();schema;static classBuilder(){return new St}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:i,commandName:o,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:l,additionalContext:c,CommandCtor:u}){for(const i of n.bind(this)(u,e,t,r))this.middlewareStack.use(i);const f=e.concat(this.middlewareStack),{logger:h}=t,d={logger:h,clientName:i,commandName:o,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[Ge]:{commandInstance:this,...l},...c},{requestHandler:p}=t;let b=r??{};return l.eventStream&&(b={isEventStream:!0,...b}),f.resolve((e=>p.handle(e.request,b)),d)}}class St{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends vt{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(r,n,i){const o=e._operationSchema,s=o?.[4]??o?.input,a=o?.[5]??o?.output;return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(o?wt.bind(null,s):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(o?wt.bind(null,a):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const Et={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class xt{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return xt.registries.has(e)||xt.registries.set(e,new xt(e)),xt.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:r}=this;for(const[r,n]of e.schemas)t.has(r)||t.set(r,n);for(const[t,n]of e.exceptions)r.has(t)||r.set(t,n)}register(e,t){const r=this.normalizeShapeId(e);for(const e of[this,xt.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw new Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(e,t){const r=e,n=r[1];for(const e of[this,xt.for(n)])e.schemas.set(n+"#"+r[2],r),e.exceptions.set(r,t)}getErrorCtor(e){const t=e;if(this.exceptions.has(t))return this.exceptions.get(t);return xt.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}class Rt extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return Rt.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===Rt?Rt.isInstance(e):!!Rt.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}class At extends Rt{constructor(e){super(e),Object.setPrototypeOf(this,At.prototype)}}class Ot extends At{name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,Ot.prototype)}}class kt extends At{name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,kt.prototype)}}class Tt extends At{name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Tt.prototype)}}class Pt extends At{name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,Pt.prototype)}}class Mt extends At{name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,Mt.prototype)}}class Lt extends At{name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,Lt.prototype)}}class Ct extends At{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,Ct.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}}class It extends At{name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,It.prototype)}}class Dt extends At{name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,Dt.prototype)}}class Nt extends At{name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,Nt.prototype)}}class jt extends At{name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,jt.prototype)}}class Ft extends At{name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,Ft.prototype)}}class Wt extends At{name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,Wt.prototype)}}class Bt extends At{name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,Bt.prototype)}}class Ut extends At{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,Ut.prototype)}}const $t="AcceptRanges",zt="AccessTier",Gt="Bucket",Ht="BucketKeyEnabled",Vt="Body",qt="CacheControl",Kt="ChecksumCRC32",Yt="ChecksumCRC32C",Zt="ChecksumCRC64NVME",Qt="Cache-Control",Xt="Content-Disposition",Jt="ContentDisposition",er="Content-Encoding",tr="ContentEncoding",rr="ContentLanguage",nr="Content-Language",ir="Content-Length",or="ContentLength",sr="ChecksumMode",ar="ContentRange",lr="Content-Range",cr="ChecksumSHA1",ur="ChecksumSHA256",fr="ChecksumType",hr="Content-Type",dr="ContentType",pr="DeleteMarker",br="Expiration",_r="ExpectedBucketOwner",yr="ExpiresString",mr="ETag",gr="Expires",wr="IfMatch",vr="If-Modified-Since",Sr="IfModifiedSince",Er="If-Match",xr="IfNoneMatch",Rr="If-None-Match",Ar="IfUnmodifiedSince",Or="If-Unmodified-Since",kr="Key",Tr="LastModified",Pr="Last-Modified",Mr="Metadata",Lr="MissingMeta",Cr="ObjectLockLegalHoldStatus",Ir="ObjectLockMode",Dr="ObjectLockRetainUntilDate",Nr="PartsCount",jr="PartNumber",Fr="RequestCharged",Wr="ResponseCacheControl",Br="ResponseContentDisposition",Ur="ResponseContentEncoding",$r="ResponseContentLanguage",zr="ResponseContentType",Gr="ResponseExpires",Hr="RequestPayer",Vr="ReplicationStatus",qr="Range",Kr="Restore",Yr="StorageClass",Zr="ServerSideEncryption",Qr="SSECustomerAlgorithm",Xr="SSECustomerKey",Jr="SSECustomerKeyMD5",en="SSEKMSKeyId",tn="TagCount",rn="VersionId",nn="WebsiteRedirectLocation",on="accept-ranges",sn="client",an="error",ln="http",cn="httpChecksum",un="httpError",fn="httpHeader",hn="httpPrefixHeaders",dn="httpQuery",pn="partNumber",bn="response-cache-control",_n="response-content-disposition",yn="response-content-encoding",mn="response-content-language",gn="response-content-type",wn="response-expires",vn="smithy.ts.sdk.synthetic.com.amazonaws.s3",Sn="streaming",En="versionId",xn="x-amz-checksum-crc32",Rn="x-amz-checksum-crc32c",An="x-amz-checksum-crc64nvme",On="x-amz-checksum-mode",kn="x-amz-checksum-sha1",Tn="x-amz-checksum-sha256",Pn="x-amz-checksum-type",Mn="x-amz-delete-marker",Ln="x-amz-expiration",Cn="x-amz-expected-bucket-owner",In="x-amz-meta-",Dn="x-amz-missing-meta",Nn="x-amz-mp-parts-count",jn="x-amz-object-lock-legal-hold",Fn="x-amz-object-lock-mode",Wn="x-amz-object-lock-retain-until-date",Bn="x-amz-restore",Un="x-amz-request-charged",$n="x-amz-request-payer",zn="x-amz-replication-status",Gn="x-amz-storage-class",Hn="x-amz-server-side-encryption",Vn="x-amz-server-side-encryption-aws-kms-key-id",qn="x-amz-server-side-encryption-bucket-key-enabled",Kn="x-amz-server-side-encryption-customer-algorithm",Yn="x-amz-server-side-encryption-customer-key",Zn="x-amz-server-side-encryption-customer-key-MD5",Qn="x-amz-tagging-count",Xn="x-amz-version-id",Jn="x-amz-website-redirect-location",ei="com.amazonaws.s3",ti=xt.for(vn);var ri=[-3,vn,"S3ServiceException",0,[],[]];ti.registerError(ri,At);const ni=xt.for(ei);var ii=[-3,ei,"AccessDenied",{[an]:sn,[un]:403},[],[]];ni.registerError(ii,kt);var oi=[-3,ei,"BucketAlreadyExists",{[an]:sn,[un]:409},[],[]];ni.registerError(oi,Pt);var si=[-3,ei,"BucketAlreadyOwnedByYou",{[an]:sn,[un]:409},[],[]];ni.registerError(si,Mt);var ai=[-3,ei,"EncryptionTypeMismatch",{[an]:sn,[un]:400},[],[]];ni.registerError(ai,Nt);var li=[-3,ei,"IdempotencyParameterMismatch",{[an]:sn,[un]:400},[],[]];ni.registerError(li,Bt);var ci=[-3,ei,"InvalidObjectState",{[an]:sn,[un]:403},[Yr,zt],[0,0]];ni.registerError(ci,Ct);var ui=[-3,ei,"InvalidRequest",{[an]:sn,[un]:400},[],[]];ni.registerError(ui,jt);var fi=[-3,ei,"InvalidWriteOffset",{[an]:sn,[un]:400},[],[]];ni.registerError(fi,Ft);var hi=[-3,ei,"NoSuchBucket",{[an]:sn,[un]:404},[],[]];ni.registerError(hi,Lt);var di=[-3,ei,"NoSuchKey",{[an]:sn,[un]:404},[],[]];ni.registerError(di,It);var pi=[-3,ei,"NoSuchUpload",{[an]:sn,[un]:404},[],[]];ni.registerError(pi,Ot);var bi=[-3,ei,"NotFound",{[an]:sn},[],[]];ni.registerError(bi,Dt);var _i=[-3,ei,"ObjectAlreadyInActiveTierError",{[an]:sn,[un]:403},[],[]];ni.registerError(_i,Ut);var yi=[-3,ei,"ObjectNotInActiveTierError",{[an]:sn,[un]:403},[],[]];ni.registerError(yi,Tt);var mi=[-3,ei,"TooManyParts",{[an]:sn,[un]:400},[],[]];ni.registerError(mi,Wt);var gi=[0,ei,Xr,8,0],wi=[0,ei,en,8,0],vi=[0,ei,"StreamingBlob",{[Sn]:1},42],Si=[3,ei,"GetObjectOutput",0,[Vt,pr,$t,br,Kr,Tr,or,mr,Kt,Yt,Zt,cr,ur,fr,Lr,rn,qt,Jt,tr,rr,ar,dr,gr,yr,nn,Zr,Mr,Qr,Jr,en,Ht,Yr,Fr,Vr,Nr,tn,Ir,Dr,Cr],[[()=>vi,16],[2,{[fn]:Mn}],[0,{[fn]:on}],[0,{[fn]:Ln}],[0,{[fn]:Bn}],[4,{[fn]:Pr}],[1,{[fn]:ir}],[0,{[fn]:mr}],[0,{[fn]:xn}],[0,{[fn]:Rn}],[0,{[fn]:An}],[0,{[fn]:kn}],[0,{[fn]:Tn}],[0,{[fn]:Pn}],[1,{[fn]:Dn}],[0,{[fn]:Xn}],[0,{[fn]:Qt}],[0,{[fn]:Xt}],[0,{[fn]:er}],[0,{[fn]:nr}],[0,{[fn]:lr}],[0,{[fn]:hr}],[4,{[fn]:gr}],[0,{[fn]:yr}],[0,{[fn]:Jn}],[0,{[fn]:Hn}],[128,{[hn]:In}],[0,{[fn]:Kn}],[0,{[fn]:Zn}],[()=>wi,{[fn]:Vn}],[2,{[fn]:qn}],[0,{[fn]:Gn}],[0,{[fn]:Un}],[0,{[fn]:zn}],[1,{[fn]:Nn}],[1,{[fn]:Qn}],[0,{[fn]:Fn}],[5,{[fn]:Wn}],[0,{[fn]:jn}]]],Ei=[3,ei,"GetObjectRequest",0,[Gt,kr,wr,Sr,xr,Ar,qr,Wr,Br,Ur,$r,zr,Gr,rn,Qr,Xr,Jr,Hr,jr,_r,sr],[[0,1],[0,1],[0,{[fn]:Er}],[4,{[fn]:vr}],[0,{[fn]:Rr}],[4,{[fn]:Or}],[0,{[fn]:qr}],[0,{[dn]:bn}],[0,{[dn]:_n}],[0,{[dn]:yn}],[0,{[dn]:mn}],[0,{[dn]:gn}],[6,{[dn]:wn}],[0,{[dn]:En}],[0,{[fn]:Kn}],[()=>gi,{[fn]:Yn}],[0,{[fn]:Zn}],[0,{[fn]:$n}],[1,{[dn]:pn}],[0,{[fn]:Cn}],[0,{[fn]:On}]],2],xi=[3,ei,"HeadObjectOutput",0,[pr,$t,br,Kr,"ArchiveStatus",Tr,or,Kt,Yt,Zt,cr,ur,fr,mr,Lr,rn,qt,Jt,tr,rr,dr,ar,gr,yr,nn,Zr,Mr,Qr,Jr,en,Ht,Yr,Fr,Vr,Nr,tn,Ir,Dr,Cr],[[2,{[fn]:Mn}],[0,{[fn]:on}],[0,{[fn]:Ln}],[0,{[fn]:Bn}],[0,{[fn]:"x-amz-archive-status"}],[4,{[fn]:Pr}],[1,{[fn]:ir}],[0,{[fn]:xn}],[0,{[fn]:Rn}],[0,{[fn]:An}],[0,{[fn]:kn}],[0,{[fn]:Tn}],[0,{[fn]:Pn}],[0,{[fn]:mr}],[1,{[fn]:Dn}],[0,{[fn]:Xn}],[0,{[fn]:Qt}],[0,{[fn]:Xt}],[0,{[fn]:er}],[0,{[fn]:nr}],[0,{[fn]:hr}],[0,{[fn]:lr}],[4,{[fn]:gr}],[0,{[fn]:yr}],[0,{[fn]:Jn}],[0,{[fn]:Hn}],[128,{[hn]:In}],[0,{[fn]:Kn}],[0,{[fn]:Zn}],[()=>wi,{[fn]:Vn}],[2,{[fn]:qn}],[0,{[fn]:Gn}],[0,{[fn]:Un}],[0,{[fn]:zn}],[1,{[fn]:Nn}],[1,{[fn]:Qn}],[0,{[fn]:Fn}],[5,{[fn]:Wn}],[0,{[fn]:jn}]]],Ri=[3,ei,"HeadObjectRequest",0,[Gt,kr,wr,Sr,xr,Ar,qr,Wr,Br,Ur,$r,zr,Gr,rn,Qr,Xr,Jr,Hr,jr,_r,sr],[[0,1],[0,1],[0,{[fn]:Er}],[4,{[fn]:vr}],[0,{[fn]:Rr}],[4,{[fn]:Or}],[0,{[fn]:qr}],[0,{[dn]:bn}],[0,{[dn]:_n}],[0,{[dn]:yn}],[0,{[dn]:mn}],[0,{[dn]:gn}],[6,{[dn]:wn}],[0,{[dn]:En}],[0,{[fn]:Kn}],[()=>gi,{[fn]:Yn}],[0,{[fn]:Zn}],[0,{[fn]:$n}],[1,{[dn]:pn}],[0,{[fn]:Cn}],[0,{[fn]:On}]],2],Ai=[9,ei,"GetObject",{[cn]:"-",[ln]:["GET","/{Key+}?x-id=GetObject",200]},()=>Ei,()=>Si],Oi=[9,ei,"HeadObject",{[ln]:["HEAD","/{Key+}",200]},()=>Ri,()=>xi];class ki extends(vt.classBuilder().ep({...Et,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,r,n){return[rt(r,e.getEndpointParameterInstructions()),le(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),Ue(r),We()]})).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(Ai).build()){}const Ti={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},Pi=e=>(t,r)=>async n=>{const i=await t(n),{response:o}=i;if(!ce.isInstance(o))return i;const{statusCode:s,body:a}=o;if(s<200||s>=300)return i;if(!("function"==typeof a?.stream||"function"==typeof a?.pipe||"function"==typeof a?.tee))return i;let l=a,c=a;!a||"object"!=typeof a||a instanceof Uint8Array||([l,c]=await async function(e){return"function"==typeof e.stream&&(e=e.stream()),e.tee()}(a)),o.body=c;const u=await Mi(l,{streamCollector:async e=>async function(e,t){let r=0;const n=[],i=e.getReader();let o=!1;for(;!o;){const{done:e,value:s}=await i.read();if(s&&(n.push(s),r+=s?.byteLength??0),r>=t)break;o=e}i.releaseLock();const s=new Uint8Array(Math.min(t,r));let a=0;for(const e of n){if(e.byteLength>s.byteLength-a){s.set(e.subarray(0,s.byteLength-a),a);break}s.set(e,a),a+=e.length}return s}(e,3e3)});"function"==typeof l?.destroy&&l.destroy();const f=e.utf8Encoder(u.subarray(u.length-16));if(0===u.length&&Ti[r.commandName]){const e=new Error("S3 aborted request");throw e.name="InternalError",e}return f&&f.endsWith("</Error>")&&(o.statusCode=400),i},Mi=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Li={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Ci=e=>({applyToStack:t=>{t.addRelativeTo(Pi(e),Li)}});class Ii extends(vt.classBuilder().ep({...Et,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m((function(e,t,r,n){return[rt(r,e.getEndpointParameterInstructions()),Ci(r),Ue(r),We()]})).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").sc(Oi).build()){}}],__webpack_module_cache__={},hasSymbol,webpackQueues,webpackExports,webpackError,resolveQueue;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}hasSymbol="function"==typeof Symbol,webpackQueues=hasSymbol?Symbol("webpack queues"):"__webpack_queues__",webpackExports=hasSymbol?Symbol("webpack exports"):"__webpack_exports__",webpackError=hasSymbol?Symbol("webpack error"):"__webpack_error__",resolveQueue=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},__webpack_require__.a=(e,t,r)=>{var n;r&&((n=[]).d=-1);var i,o,s,a=new Set,l=e.exports,c=new Promise(((e,t)=>{s=t,o=e}));c[webpackExports]=l,c[webpackQueues]=e=>(n&&e(n),a.forEach(e),c.catch((e=>{}))),e.exports=c,t((e=>{var t;i=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[webpackQueues])return e;if(e.then){var t=[];t.d=0,e.then((e=>{r[webpackExports]=e,resolveQueue(t)}),(e=>{r[webpackError]=e,resolveQueue(t)}));var r={};return r[webpackQueues]=e=>e(t),r}}var n={};return n[webpackQueues]=e=>{},n[webpackExports]=e,n})))(e);var r=()=>i.map((e=>{if(e[webpackError])throw e[webpackError];return e[webpackExports]})),o=new Promise((e=>{(t=()=>e(r)).r=0;var o=e=>e!==n&&!a.has(e)&&(a.add(e),e&&!e.d&&(t.r++,e.push(t)));i.map((e=>e[webpackQueues](o)))}));return t.r?o:r()}),(e=>(e?s(c[webpackError]=e):o(l),resolveQueue(n)))),n&&n.d<0&&(n.d=0)},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(363);module.exports["web-documentation"]=__webpack_exports__})();
|