@squidcloud/cli 1.0.296 → 1.0.297

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  /*! For license information please see index.js.LICENSE.txt */
3
- (()=>{var e={4764:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},7007:(e,t,n)=>{"use strict";e=n.nmd(e);const r=(e,t)=>(...n)=>`[${e(...n)+t}m`,i=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},o=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},s=e=>e,a=(e,t,n)=>[e,t,n],u=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let l;const c=(e,t,r,i)=>{void 0===l&&(l=n(8666));const o=i?10:0,s={};for(const[n,i]of Object.entries(l)){const a="ansi16"===n?"ansi":n;n===t?s[a]=e(r,o):"object"==typeof i&&(s[a]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,i]of Object.entries(r))t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",u(t.color,"ansi",(()=>c(r,"ansi16",s,!1))),u(t.color,"ansi256",(()=>c(i,"ansi256",s,!1))),u(t.color,"ansi16m",(()=>c(o,"rgb",a,!1))),u(t.bgColor,"ansi",(()=>c(r,"ansi16",s,!0))),u(t.bgColor,"ansi256",(()=>c(i,"ansi256",s,!0))),u(t.bgColor,"ansi16m",(()=>c(o,"rgb",a,!0))),t}})},5036:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(4077),t)},6373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callValueAssertion=t.assertRecord=t.assertArray=t.assertObject=t.getErrorMessage=t.getAssertionErrorFromProvider=t.fail=t.truthy=t.assertTruthy=void 0;const r=n(4665),i=n(6663);function o(e,t){e||s(t)}function s(e){const t=a(e);if("object"==typeof t)throw t;throw new Error(t||"Assertion error")}function a(e){return void 0===e?"":"string"==typeof e?e:e()}function u(e){const t=a(e);return"string"==typeof t?t:t.message||"<no error message>"}function l(e,t,n=void 0,r={}){const i=()=>u(n),s=e=>{const t=i();return 0===t.length?e:`${t} ${e}`};o("object"==typeof e,(()=>s("is not an object: "+typeof e))),o(void 0!==e,(()=>s("is not defined"))),o(null!==e,(()=>s("is null"))),o(!Array.isArray(e),(()=>s("is an array.")));const a=Object.entries(t);if(r.failOnUnknownFields){const t=r.allowedUnknownFieldNames||[];for(const n in e)o(t.includes(n)||a.some((([e])=>n===e)),s(`property can't be checked: ${n}`))}let c;for(const[t,n]of a){o("function"==typeof n||"object"==typeof n&&null!==n,(()=>`${i()}.${t} assertion is not an object or a function: ${typeof n}`));const r=e[t],s=()=>`${i()}.${t}`;if("object"==typeof n)o(!Array.isArray(r),(()=>`${i()}.${s()} use arrayAssertion() to create a ValueAssertion for an array`)),l(r,n,s);else if(o("function"==typeof n,(()=>`${i()}.${s()} assertion is not a function`)),"$o"===t)c=n;else{const e=n(r,s);o(void 0===e,`Assertion function must assert (void) but it returns a value: ${e}. Wrap with $u()?`)}}c&&c(e,n)}function c(e,t,n){t(e,n)}function f(e){return(t="with-space-separator")=>{const n=u(e);return n?`${n}${"with-space-separator"===t?" ":""}`:""}}function h(e,t,n){"object"==typeof t?(o(!Array.isArray(e),(()=>`${n}: use arrayAssertion() to create a ValueAssertion for an array`)),l(e,t,n)):c(e,t,n)}t.assertTruthy=o,t.truthy=function(e,t){return o(e,t),e},t.fail=s,t.getAssertionErrorFromProvider=a,t.getErrorMessage=u,t.assertObject=l,t.assertArray=function(e,t,n={},i=void 0){var s,a;const u=f(i);o(Array.isArray(e),(()=>`${u()}value is not an array: ${e}`));const l=null!==(s=n.minLength)&&void 0!==s?s:0,c=null!==(a=n.maxLength)&&void 0!==a?a:1/0;o(e.length>=l,(()=>`${u()}array length < minLength. Array length: ${e.length}, minLength: ${l}`)),o(e.length<=c,(()=>`${u()}array length > maxLength. Array length: ${e.length}, maxLength: ${c}`)),n.uniqueByIdentity&&o((0,r.checkArrayHasUniqueElements)(e,n.uniqueByIdentity),(()=>`${u()}array contains non-unique elements`));let d=0;const p=()=>`${u("no-space-separator")}[${d}]`;for(;d<e.length;d++)h(e[d],t,p)},t.assertRecord=function(e,t,n={},r=void 0){const s=f(r);o("object"==typeof e,(()=>`${s()}value is not an object: ${(0,i.formatValue)(e)}`)),o(null!==e,(()=>`${s()}value is null`)),o(!Array.isArray(e),(()=>`${s()}the value is not a record, but is an array`));for(const[r,a]of Object.entries(e)){const e=()=>`${s("no-space-separator")}['${r}']`;n.keyAssertion&&h(r,n.keyAssertion,(()=>`${e()}, key assertion failed:`)),h(a,t,e);const{keyField:u}=n;if(u){o("object"==typeof a&&null!==a,(()=>`${e()} is not an object: ${(0,i.formatValue)(a)}`));const t=a[u];o(t===r,(()=>`${e()} key value does not match object field '${u}' value: ${(0,i.formatValue)(t)}`))}}n.$o&&n.$o(e,r)},t.callValueAssertion=c},8596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringAssertion=t.nullOr=t.undefinedOr=t.valueOr=t.$u=t.$a=t.recordAssertion=t.arrayAssertion=t.objectAssertion=void 0;const r=n(6373),i=n(1333);function o(e,t){return(0,r.assertTruthy)("function"==typeof e,`"check" is not a function: ${e}`),(n,i=void 0)=>(0,r.assertTruthy)(e(n),(()=>{let e=(0,r.getErrorMessage)(i)||"Check is failed";return e.endsWith(":")||(e+=":"),`${e} ${(0,r.getErrorMessage)(t)||("object"==typeof n?"[object]":`'${n}'`)}`}))}function s(e,t){return(n,i=void 0)=>{n!==e&&("object"==typeof t?(0,r.assertObject)(n,t,i):(0,r.callValueAssertion)(n,t,i))}}t.objectAssertion=function(e,t=void 0){return n=>(0,r.assertObject)(n,e,t)},t.arrayAssertion=function(e,t={}){const{minLength:n,maxLength:i}=t;return(0,r.assertTruthy)((null!=n?n:0)<=(null!=i?i:1/0),`minLength must be < maxLength! minLength ${n}, maxLength: ${i}`),(0,r.assertTruthy)((null!=n?n:0)>=0,`minLength must be a positive number: ${n}`),(0,r.assertTruthy)((null!=i?i:0)>=0,`maxLength must be a positive number: ${i}`),(n,i=void 0)=>{(0,r.assertArray)(n,e,t,i)}},t.recordAssertion=function(e,t={}){return(n,i=void 0)=>{(0,r.assertRecord)(n,e,t,i)}},t.$a=o,t.$u=function(e,t){return o(e,t)},t.valueOr=s,t.undefinedOr=function(e){return s(void 0,e)},t.nullOr=function(e){return s(null,e)},t.stringAssertion=e=>(t,n=void 0)=>{var o,s;(0,i.assertString)(t,n),(0,r.assertTruthy)(t.length>=(null!==(o=e.minLength)&&void 0!==o?o:0),`${(0,r.getErrorMessage)(n)} length is too small: ${t.length} < ${e.minLength}`),(0,r.assertTruthy)(t.length<=(null!==(s=e.maxLength)&&void 0!==s?s:1/0),`${(0,r.getErrorMessage)(n)} length is too large ${t.length} > ${e.maxLength}`)}},1333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNonNullable=t.assertDate=t.assertEmail=t.assertHexString=t.assertUuid=t.assertBoolean=t.assertNumber=t.assertString=t.formatError=void 0;const r=n(6373),i=n(4665),o=n(6663);function s(e,t,n){const i=(0,r.getAssertionErrorFromProvider)(e);if("object"==typeof i)throw i;return`${i?`${i}: `:""}${t} ${(0,o.formatValue)(n)}`}t.formatError=s,t.assertString=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isString)(e),(()=>s(t,"Not a string",e)))},t.assertNumber=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isNumber)(e),(()=>s(t,"Not a number",e)))},t.assertBoolean=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isBoolean)(e),(()=>s(t,"Not a boolean",e)))},t.assertUuid=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isUuid)(e),(()=>s(t,"Invalid uuid",e)))},t.assertHexString=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isHexString)(e),(()=>s(t,"Invalid hex string",e)))},t.assertEmail=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isEmail)(e),(()=>s(t,"Invalid email",e)))},t.assertDate=(e,t=void 0)=>{(0,r.assertTruthy)(e instanceof Date,(()=>s(t,"Invalid Date",e)))},t.assertNonNullable=function(e,t){(0,r.assertTruthy)((0,i.isNonNullable)(e),(()=>s(t,"Value is "+(void 0===e?"undefined":"null"),e)))}},4665:(e,t)=>{"use strict";function n(e){return"string"==typeof e}function r(e,t,n){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isNonNullable=t.isHexString=t.isUuid=t.isEmail=t.checkArraysHasEqualElementsByComparator=t.checkArraysHaveEqualElements=t.checkArrayHasUniqueElements=t.isDate=t.isNumber=t.isString=t.isBoolean=void 0,t.isBoolean=function(e){return"boolean"==typeof e},t.isString=n,t.isNumber=function(e){return"number"==typeof e},t.isDate=function(e){return e instanceof Date},t.checkArrayHasUniqueElements=function(e,t){if(e.length<=1)return!0;const n=new Set;for(const r of e){const e=t(r);if(n.has(e))return!1;n.add(e)}return!0},t.checkArraysHaveEqualElements=function(e,t){return r(e,t,((e,t)=>e===t))},t.checkArraysHasEqualElementsByComparator=r;const i=/^[-!#$%&'*+/\d=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/\d=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z\d])*\.[a-zA-Z](-?[a-zA-Z\d])+$/,o=/^(?!\.)((?!.*\.{2})[a-zA-Z0-9\u0080-\u00FF\u0100-\u017F\u0180-\u024F\u0250-\u02AF\u0300-\u036F\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0750-\u077F\u0780-\u07BF\u07C0-\u07FF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u1380-\u139F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1B00-\u1B7F\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u20D0-\u20FF\u2100-\u214F\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2F00-\u2FDF\u2FF0-\u2FFF\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA700-\uA71F\uA800-\uA82F\uA840-\uA87F\uAC00-\uD7AF\uF900-\uFAFF.!#$%&'*+-/=?^_`{|}~\-\d]+)@(?!\.)([a-zA-Z0-9\u0080-\u00FF\u0100-\u017F\u0180-\u024F\u0250-\u02AF\u0300-\u036F\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0750-\u077F\u0780-\u07BF\u07C0-\u07FF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u1380-\u139F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1B00-\u1B7F\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u20D0-\u20FF\u2100-\u214F\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2F00-\u2FDF\u2FF0-\u2FFF\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA700-\uA71F\uA800-\uA82F\uA840-\uA87F\uAC00-\uD7AF\uF900-\uFAFF\-.\d]+)((\.([a-zA-Z\u0080-\u00FF\u0100-\u017F\u0180-\u024F\u0250-\u02AF\u0300-\u036F\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0750-\u077F\u0780-\u07BF\u07C0-\u07FF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u1380-\u139F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1B00-\u1B7F\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u20D0-\u20FF\u2100-\u214F\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2F00-\u2FDF\u2FF0-\u2FFF\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA700-\uA71F\uA800-\uA82F\uA840-\uA87F\uAC00-\uD7AF\uF900-\uFAFF]){2,63})+)$/i;t.isEmail=function(e,t={allowInternationalDomains:!1}){if(!n(e)||0===e.length||e.length>254)return!1;if(!(t.allowInternationalDomains?o:i).test(e))return!1;const r=e.split("@");return!(r[0].length>64||r[1].split(".").some((e=>e.length>63)))};const s=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;t.isUuid=function(e){return n(e)&&s.test(e)};const a=/^[0-9a-fA-F]*$/;t.isHexString=function(e){return n(e)&&a.test(e)},t.isNonNullable=function(e){return null!=e}},6663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatValue=void 0,t.formatValue=function(e){return void 0===e?"<undefined>":"symbol"==typeof e?e.toString():null===e?"<null>":`<${typeof e}:${e}>`}},8630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateRecord=t.validateArray=t.validateObject=t.tryCatch=void 0;const r=n(6373);function i(e){try{e()}catch(e){return e instanceof Error&&e.message||`${e}`}}t.tryCatch=i,t.validateObject=function(e,t,n=void 0,o={}){return i((()=>(0,r.assertObject)(e,t,n,o)))},t.validateArray=function(e,t,n={},o=void 0){return i((()=>(0,r.assertArray)(e,t,n,o)))},t.validateRecord=function(e,t,n={},o=void 0){return i((()=>(0,r.assertRecord)(e,t,n,o)))}},4077:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(6373),t),i(n(8596),t),i(n(1333),t),i(n(4665),t),i(n(6663),t),i(n(8630),t)},4464:e=>{e.exports=function(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}},9907:(e,t,n)=>{var r=n(4199),i=n(4464);e.exports=function(e,t,n){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(e,t,n);var o=i(e);return 0===e?o:void 0===t?r(o,0):("string"!=typeof n&&(n=void 0),r(o,t,n))}},9149:(e,t,n)=>{var r=n(181).Buffer,i=[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 o(e){if(r.isBuffer(e))return e;var t="function"==typeof r.alloc&&"function"==typeof r.from;if("number"==typeof e)return t?r.alloc(e):new r(e);if("string"==typeof e)return t?r.from(e):new r(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function s(e,t){e=o(e),r.isBuffer(t)&&(t=t.readUInt32BE(0));for(var n=~t,s=0;s<e.length;s++)n=i[255&(n^e[s])]^n>>>8;return~n}function a(){return e=s.apply(null,arguments),(t=o(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),a.signed=function(){return s.apply(null,arguments)},a.unsigned=function(){return s.apply(null,arguments)>>>0},e.exports=a},4199:e=>{var t=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();function n(e,t,n,r){if(n<0||r>e.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?e.length:r>>>0)>n&&e.fill(t,n,r),e}e.exports=function(e,r,i,o,s){if(t)return e.fill(r,i,o,s);if("number"==typeof r)return n(e,r,i,o);if("string"==typeof r){if("string"==typeof i?(s=i,i=0,o=e.length):"string"==typeof o&&(s=o,o=e.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("latin1"===s&&(s="binary"),"string"==typeof s&&!Buffer.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(""===r)return n(e,0,i,o);if(function(e){return 1===e.length&&e.charCodeAt(0)<256}(r))return n(e,r.charCodeAt(0),i,o);r=new Buffer(r,s)}return Buffer.isBuffer(r)?function(e,t,n,r){if(n<0||r>e.length)throw new RangeError("Out of range index");if(r<=n)return e;n>>>=0,r=void 0===r?e.length:r>>>0;for(var i=n,o=t.length;i<=r-o;)t.copy(e,i),i+=o;return i!==r&&t.copy(e,i,0,r-i),e}(e,r,i,o):n(e,0,i,o)}},7951:(e,t,n)=>{const r=n(2880),i={};for(const e of Object.keys(r))i[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i;let a,u;o===i?a=0:t===o?a=(n-r)/s:n===o?a=2+(r-t)/s:r===o&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+o)/2;return u=o===i?0:l<=.5?s/(o+i):s/(2-o-i),[a,100*u,100*l]},o.rgb.hsv=function(e){let t,n,r,i,o;const s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),f=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,o=0):(o=c/l,t=f(s),n=f(a),r=f(u),s===l?i=r-n:a===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*s,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(r)){const i=(a=r[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);i<o&&(o=i,n=t)}var s,a;return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,u=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[e]=255*s;return u},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),a=1-r;o=6*t-s,1&s&&(o=1-o);const u=n+o*(a-n);let l,c,f;switch(s){default:case 6:case 0:l=a,c=u,f=n;break;case 1:l=u,c=a,f=n;break;case 2:l=n,c=a,f=u;break;case 3:l=n,c=u,f=a;break;case 4:l=u,c=n,f=a;break;case 5:l=a,c=n,f=u}return[255*l,255*c,255*f]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},8666:(e,t,n)=>{const r=n(7951),i=n(1247),o={};Object.keys(r).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e);Object.keys(t).forEach((n=>{const r=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},1247:(e,t,n)=>{const r=n(7951);function i(e,t){return function(n){return t(e(n))}}function o(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),o=i(r[t[s].parent][s],o),s=t[s].parent;return o.conversion=n,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){const r=i[o],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}(e),n={},i=Object.keys(t);for(let e=i.length,r=0;r<e;r++){const e=i[r];null!==t[e].parent&&(n[e]=o(e,t))}return n}},2880:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1218:(e,t,n)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(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]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(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=n(181).Buffer.isBuffer},1896:(e,t,n)=>{"use strict";const r=n(1674),i=n(943),o=n(1339);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!i(e))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof e));if(Buffer.isBuffer(e)&&(!r(e)||"tar"!==r(e).ext))return Promise.resolve([]);const t=o.extract(),n=[];t.on("entry",((e,t,r)=>{const i=[];t.on("data",(e=>i.push(e))),t.on("end",(()=>{const t={data:Buffer.concat(i),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};"symlink"!==e.type&&"link"!==e.type||(t.linkname=e.linkname),n.push(t),r()}))}));const s=new Promise(((r,i)=>{Buffer.isBuffer(e)||e.on("error",i),t.on("finish",(()=>r(n))),t.on("error",i)}));return t.then=s.then.bind(s),t.catch=s.catch.bind(s),Buffer.isBuffer(e)?t.end(e):e.pipe(t),t}},943:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},5622:(e,t,n)=>{"use strict";const r=n(1896),i=n(2023),o=n(1273),s=n(5773),a=n(7982);e.exports=()=>e=>Buffer.isBuffer(e)||o(e)?!Buffer.isBuffer(e)||i(e)&&"bz2"===i(e).ext?Buffer.isBuffer(e)?r()(s.decode(e)):r()(e.pipe(a())):Promise.resolve([]):Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof e))},2023:e=>{"use strict";const t=e=>Array.from(e).map((e=>e.charCodeAt(0))),n=t("META-INF/mozilla.rsa"),r=t("[Content_Types].xml"),i=t("_rels/.rels");e.exports=e=>{const o=new Uint8Array(e);if(!(o&&o.length>1))return null;const s=(e,t)=>{t=Object.assign({offset:0},t);for(let n=0;n<e.length;n++)if(t.mask){if(e[n]!==(t.mask[n]&o[n+t.offset]))return!1}else if(e[n]!==o[n+t.offset])return!1;return!0};if(s([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(s([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(s([71,73,70]))return{ext:"gif",mime:"image/gif"};if(s([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(s([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((s([73,73,42,0])||s([77,77,0,42]))&&s([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(s([73,73,42,0])||s([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(s([66,77]))return{ext:"bmp",mime:"image/bmp"};if(s([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(s([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(s([80,75,3,4])){if(s([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(s(n,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s(r,{offset:30})||s(i,{offset:30})){const e=e=>e.findIndex(((e,t,n)=>80===n[t]&&75===n[t+1]&&3===n[t+2]&&4===n[t+3])),n=e(o.subarray(4,2004));if(-1!==n){const r=e(o.subarray(n+8,n+8+1e3));if(-1!==r){const e=8+n+r+30;if(s(t("word/"),{offset:e}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(s(t("ppt/"),{offset:e}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(s(t("xl/"),{offset:e}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(s([80,75])&&(3===o[2]||5===o[2]||7===o[2])&&(4===o[3]||6===o[3]||8===o[3]))return{ext:"zip",mime:"application/zip"};if(s([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(s([82,97,114,33,26,7])&&(0===o[6]||1===o[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(s([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(s([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(s([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(s([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(s([51,103,112,53])||s([0,0,0])&&s([102,116,121,112],{offset:4})&&(s([109,112,52,49],{offset:8})||s([109,112,52,50],{offset:8})||s([105,115,111,109],{offset:8})||s([105,115,111,50],{offset:8})||s([109,109,112,52],{offset:8})||s([77,52,86],{offset:8})||s([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(s([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(s([26,69,223,163])){const e=o.subarray(4,4100),t=e.findIndex(((e,t,n)=>66===n[t]&&130===n[t+1]));if(-1!==t){const n=t+3,r=t=>Array.from(t).every(((t,r)=>e[n+r]===t.charCodeAt(0)));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(s([0,0,0,20,102,116,121,112,113,116,32,32])||s([102,114,101,101],{offset:4})||s([102,116,121,112,113,116,32,32],{offset:4})||s([109,100,97,116],{offset:4})||s([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(s([82,73,70,70])&&s([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(s([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(s([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let e=0;e<2&&e<o.length-16;e++)if(s([73,68,51],{offset:e})||s([255,226],{offset:e,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return s([102,116,121,112,77,52,65],{offset:4})||s([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:s([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:s([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:s([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:s([82,73,70,70])&&s([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:s([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:s([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:s([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==o[0]&&70!==o[0]||!s([87,83],{offset:1})?s([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:s([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:s([119,79,70,70])&&(s([0,1,0,0],{offset:4})||s([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:s([119,79,70,50])&&(s([0,1,0,0],{offset:4})||s([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:s([76,80],{offset:34})&&(s([0,0,1],{offset:8})||s([1,0,2],{offset:8})||s([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:s([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:s([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:s([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:s([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:s([37,33])?{ext:"ps",mime:"application/postscript"}:s([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:s([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:s([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:s([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:s([77,83,67,70])||s([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:s([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:s([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:s([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:s([31,160])||s([31,157])?{ext:"Z",mime:"application/x-compress"}:s([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:s([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:s([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:s([71],{offset:4})&&(s([71],{offset:192})||s([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:s([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:s([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},1273:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},6869:(e,t,n)=>{"use strict";const r=n(3106),i=n(1896),o=n(1674),s=n(6048);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!s(e))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof e));if(Buffer.isBuffer(e)&&(!o(e)||"gz"!==o(e).ext))return Promise.resolve([]);const t=r.createGunzip(),n=i()(t);return Buffer.isBuffer(e)?t.end(e):e.pipe(t),n}},6048:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},8165:(e,t,n)=>{"use strict";const r=n(1446),i=n(4306),o=n(6327),s=n(3660),a=e=>new Promise(((t,n)=>{const r=[];e.readEntry(),e.on("entry",(t=>{((e,t)=>{const n={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};return n.type=((e,t)=>{const n=e.versionMadeBy>>8;return 40960==(61440&t)?"symlink":16384==(61440&t)||0===n&&16===e.externalFileAttributes?"directory":"file"})(e,n.mode),0===n.mode&&"directory"===n.type&&(n.mode=493),0===n.mode&&(n.mode=420),o(t.openReadStream.bind(t))(e).then(i.buffer).then((e=>(n.data=e,"symlink"===n.type&&(n.linkname=e.toString()),n))).catch((e=>{throw t.close(),e}))})(t,e).catch(n).then((t=>{r.push(t),e.readEntry()}))})),e.on("error",n),e.on("end",(()=>t(r)))}));e.exports=()=>e=>Buffer.isBuffer(e)?r(e)&&"zip"===r(e).ext?o(s.fromBuffer)(e,{lazyEntries:!0}).then(a):Promise.resolve([]):Promise.reject(new TypeError("Expected a Buffer, got "+typeof e))},1446:e=>{"use strict";e.exports=function(e){return e&&e.length>1?255===e[0]&&216===e[1]&&255===e[2]?{ext:"jpg",mime:"image/jpeg"}:137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?{ext:"png",mime:"image/png"}:71===e[0]&&73===e[1]&&70===e[2]?{ext:"gif",mime:"image/gif"}:87===e[8]&&69===e[9]&&66===e[10]&&80===e[11]?{ext:"webp",mime:"image/webp"}:70===e[0]&&76===e[1]&&73===e[2]&&70===e[3]?{ext:"flif",mime:"image/flif"}:(73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3])&&67===e[8]&&82===e[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]?{ext:"tif",mime:"image/tiff"}:66===e[0]&&77===e[1]?{ext:"bmp",mime:"image/bmp"}:73===e[0]&&73===e[1]&&188===e[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===e[0]&&66===e[1]&&80===e[2]&&83===e[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&109===e[30]&&105===e[31]&&109===e[32]&&101===e[33]&&116===e[34]&&121===e[35]&&112===e[36]&&101===e[37]&&97===e[38]&&112===e[39]&&112===e[40]&&108===e[41]&&105===e[42]&&99===e[43]&&97===e[44]&&116===e[45]&&105===e[46]&&111===e[47]&&110===e[48]&&47===e[49]&&101===e[50]&&112===e[51]&&117===e[52]&&98===e[53]&&43===e[54]&&122===e[55]&&105===e[56]&&112===e[57]?{ext:"epub",mime:"application/epub+zip"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&77===e[30]&&69===e[31]&&84===e[32]&&65===e[33]&&45===e[34]&&73===e[35]&&78===e[36]&&70===e[37]&&47===e[38]&&109===e[39]&&111===e[40]&&122===e[41]&&105===e[42]&&108===e[43]&&108===e[44]&&97===e[45]&&46===e[46]&&114===e[47]&&115===e[48]&&97===e[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==e[0]||75!==e[1]||3!==e[2]&&5!==e[2]&&7!==e[2]||4!==e[3]&&6!==e[3]&&8!==e[3]?117===e[257]&&115===e[258]&&116===e[259]&&97===e[260]&&114===e[261]?{ext:"tar",mime:"application/x-tar"}:82!==e[0]||97!==e[1]||114!==e[2]||33!==e[3]||26!==e[4]||7!==e[5]||0!==e[6]&&1!==e[6]?31===e[0]&&139===e[1]&&8===e[2]?{ext:"gz",mime:"application/gzip"}:66===e[0]&&90===e[1]&&104===e[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===e[0]&&122===e[1]&&188===e[2]&&175===e[3]&&39===e[4]&&28===e[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===e[0]&&1===e[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===e[0]&&0===e[1]&&0===e[2]&&(24===e[3]||32===e[3])&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]||51===e[0]&&103===e[1]&&112===e[2]&&53===e[3]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&109===e[16]&&112===e[17]&&52===e[18]&&49===e[19]&&109===e[20]&&112===e[21]&&52===e[22]&&50===e[23]&&105===e[24]&&115===e[25]&&111===e[26]&&109===e[27]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&105===e[8]&&115===e[9]&&111===e[10]&&109===e[11]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&0===e[12]&&0===e[13]&&0===e[14]&&0===e[15]?{ext:"mp4",mime:"video/mp4"}:0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&86===e[10]?{ext:"m4v",mime:"video/x-m4v"}:77===e[0]&&84===e[1]&&104===e[2]&&100===e[3]?{ext:"mid",mime:"audio/midi"}:109===e[31]&&97===e[32]&&116===e[33]&&114===e[34]&&111===e[35]&&115===e[36]&&107===e[37]&&97===e[38]?{ext:"mkv",mime:"video/x-matroska"}:26===e[0]&&69===e[1]&&223===e[2]&&163===e[3]?{ext:"webm",mime:"video/webm"}:0===e[0]&&0===e[1]&&0===e[2]&&20===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]?{ext:"mov",mime:"video/quicktime"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&65===e[8]&&86===e[9]&&73===e[10]?{ext:"avi",mime:"video/x-msvideo"}:48===e[0]&&38===e[1]&&178===e[2]&&117===e[3]&&142===e[4]&&102===e[5]&&207===e[6]&&17===e[7]&&166===e[8]&&217===e[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===e[0]&&0===e[1]&&1===e[2]&&"b"===e[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===e[0]&&68===e[1]&&51===e[2]||255===e[0]&&251===e[1]?{ext:"mp3",mime:"audio/mpeg"}:102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&65===e[10]||77===e[0]&&52===e[1]&&65===e[2]&&32===e[3]?{ext:"m4a",mime:"audio/m4a"}:79===e[28]&&112===e[29]&&117===e[30]&&115===e[31]&&72===e[32]&&101===e[33]&&97===e[34]&&100===e[35]?{ext:"opus",mime:"audio/opus"}:79===e[0]&&103===e[1]&&103===e[2]&&83===e[3]?{ext:"ogg",mime:"audio/ogg"}:102===e[0]&&76===e[1]&&97===e[2]&&67===e[3]?{ext:"flac",mime:"audio/x-flac"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&87===e[8]&&65===e[9]&&86===e[10]&&69===e[11]?{ext:"wav",mime:"audio/x-wav"}:35===e[0]&&33===e[1]&&65===e[2]&&77===e[3]&&82===e[4]&&10===e[5]?{ext:"amr",mime:"audio/amr"}:37===e[0]&&80===e[1]&&68===e[2]&&70===e[3]?{ext:"pdf",mime:"application/pdf"}:77===e[0]&&90===e[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||87!==e[1]||83!==e[2]?123===e[0]&&92===e[1]&&114===e[2]&&116===e[3]&&102===e[4]?{ext:"rtf",mime:"application/rtf"}:119===e[0]&&79===e[1]&&70===e[2]&&70===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff",mime:"application/font-woff"}:119===e[0]&&79===e[1]&&70===e[2]&&50===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff2",mime:"application/font-woff"}:76===e[34]&&80===e[35]&&(0===e[8]&&0===e[9]&&1===e[10]||1===e[8]&&0===e[9]&&2===e[10]||2===e[8]&&0===e[9]&&2===e[10])?{ext:"eot",mime:"application/octet-stream"}:0===e[0]&&1===e[1]&&0===e[2]&&0===e[3]&&0===e[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===e[0]&&84===e[1]&&84===e[2]&&79===e[3]&&0===e[4]?{ext:"otf",mime:"application/font-sfnt"}:0===e[0]&&0===e[1]&&1===e[2]&&0===e[3]?{ext:"ico",mime:"image/x-icon"}:70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]?{ext:"flv",mime:"video/x-flv"}:37===e[0]&&33===e[1]?{ext:"ps",mime:"application/postscript"}:253===e[0]&&55===e[1]&&122===e[2]&&88===e[3]&&90===e[4]&&0===e[5]?{ext:"xz",mime:"application/x-xz"}:83===e[0]&&81===e[1]&&76===e[2]&&105===e[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===e[0]&&69===e[1]&&83===e[2]&&26===e[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===e[0]&&114===e[1]&&50===e[2]&&52===e[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===e[0]&&83===e[1]&&67===e[2]&&70===e[3]||73===e[0]&&83===e[1]&&99===e[2]&&40===e[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]&&10===e[7]&&100===e[8]&&101===e[9]&&98===e[10]&&105===e[11]&&97===e[12]&&110===e[13]&&45===e[14]&&98===e[15]&&105===e[16]&&110===e[17]&&97===e[18]&&114===e[19]&&121===e[20]?{ext:"deb",mime:"application/x-deb"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===e[0]&&171===e[1]&&238===e[2]&&219===e[3]?{ext:"rpm",mime:"application/x-rpm"}:31===e[0]&&160===e[1]||31===e[0]&&157===e[1]?{ext:"Z",mime:"application/x-compress"}:76===e[0]&&90===e[1]&&73===e[2]&&80===e[3]?{ext:"lz",mime:"application/x-lzip"}:208===e[0]&&207===e[1]&&17===e[2]&&224===e[3]&&161===e[4]&&177===e[5]&&26===e[6]&&225===e[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},147:(e,t,n)=>{var r=n(2203).PassThrough,i=n(9283);e.exports=function(e){var t=(e=i({},e)).array,n=e.encoding,o="buffer"===n,s=!1;t?s=!(n||o):n=n||"utf8",o&&(n=null);var a=0,u=[],l=new r({objectMode:s});return n&&l.setEncoding(n),l.on("data",(function(e){u.push(e),s?a=u.length:a+=e.length})),l.getBufferedValue=function(){return t?u:o?Buffer.concat(u,a):u.join("")},l.getBufferedLength=function(){return a},l}},4306:(e,t,n)=>{"use strict";var r=n(9491),i=n(9283),o=n(147);function s(e,t){if(!e)return r.reject(new Error("Expected a stream"));var n,s,a=(t=i({maxBuffer:1/0},t)).maxBuffer,u=new r((function(r,i){function u(e){e&&(e.bufferedData=n.getBufferedValue()),i(e)}n=o(t),e.once("error",u),e.pipe(n),n.on("data",(function(){n.getBufferedLength()>a&&i(new Error("maxBuffer exceeded"))})),n.once("error",u),n.on("end",r),s=function(){e.unpipe&&e.unpipe(n)}}));return u.then(s,s),u.then((function(){return n.getBufferedValue()}))}e.exports=s,e.exports.buffer=function(e,t){return s(e,i({},t,{encoding:"buffer"}))},e.exports.array=function(e,t){return s(e,i({},t,{array:!0}))}},482:(e,t,n)=>{"use strict";const r=n(6928),i=n(2387),o=n(1896),s=n(5622),a=n(6869),u=n(8165),l=n(4758),c=n(6327),f=n(3460),h=c(i),d=(e,t)=>h.realpath(e).catch((n=>{const i=r.dirname(e);return d(i,t)})).then((n=>{if(0!==n.indexOf(t))throw new Error("Refusing to create a directory outside the output path.");return l(e).then(h.realpath)}));e.exports=(e,t,n)=>"string"==typeof e||Buffer.isBuffer(e)?("object"==typeof t&&(n=t,t=null),n=Object.assign({plugins:[o(),s(),a(),u()]},n),("string"==typeof e?h.readFile(e):Promise.resolve(e)).then((e=>((e,t,n)=>((e,t)=>0===t.plugins.length?Promise.resolve([]):Promise.all(t.plugins.map((n=>n(e,t)))).then((e=>e.reduce(((e,t)=>e.concat(t))))))(e,n).then((e=>(n.strip>0&&(e=e.map((e=>(e.path=f(e.path,n.strip),e))).filter((e=>"."!==e.path))),"function"==typeof n.filter&&(e=e.filter(n.filter)),"function"==typeof n.map&&(e=e.map(n.map)),t?Promise.all(e.map((e=>{const n=r.join(t,e.path),i=e.mode&~process.umask(),o=new Date;return"directory"===e.type?l(t).then((e=>h.realpath(e))).then((e=>d(n,e))).then((()=>h.utimes(n,o,e.mtime))).then((()=>e)):l(t).then((e=>h.realpath(e))).then((e=>d(r.dirname(n),e).then((()=>e)))).then((t=>"file"===e.type?((e,t)=>h.readlink(e).catch((e=>null)).then((e=>{if(e)throw new Error("Refusing to write into a symlink");return t})))(n,t):t)).then((e=>h.realpath(r.dirname(n)).then((t=>{if(0!==t.indexOf(e))throw new Error("Refusing to write outside output directory: "+t)})))).then((()=>"link"===e.type||"symlink"===e.type&&"win32"===process.platform?h.link(e.linkname,n):"symlink"===e.type?h.symlink(e.linkname,n):h.writeFile(n,e.data,{mode:i}))).then((()=>"file"===e.type&&h.utimes(n,o,e.mtime))).then((()=>e))}))):e))))(e,t,n)))):Promise.reject(new TypeError("Input file required"))},4758:(e,t,n)=>{"use strict";const r=n(9896),i=n(6928),o=n(7080),s={mode:511&~process.umask(),fs:r},a=e=>{if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}};e.exports=(e,t)=>Promise.resolve().then((()=>{a(e),t=Object.assign({},s,t);const n=o(t.fs.mkdir),r=o(t.fs.stat),u=e=>n(e,t.mode).then((()=>e)).catch((t=>{if("ENOENT"===t.code){if(t.message.includes("null bytes")||i.dirname(e)===e)throw t;return u(i.dirname(e)).then((()=>u(e)))}return r(e).then((t=>t.isDirectory()?e:Promise.reject())).catch((()=>{throw t}))}));return u(i.resolve(e))})),e.exports.sync=(e,t)=>{a(e),t=Object.assign({},s,t);const n=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if("ENOENT"===r.code){if(r.message.includes("null bytes")||i.dirname(e)===e)throw r;return n(i.dirname(e)),n(e)}try{if(!t.fs.statSync(e).isDirectory())throw new Error("The path is not a directory")}catch(e){throw r}}return e};return n(i.resolve(e))}},7080:e=>{"use strict";const t=(e,t)=>function(){const n=t.promiseModule,r=new Array(arguments.length);for(let e=0;e<arguments.length;e++)r[e]=arguments[e];return new n(((n,i)=>{t.errorFirst?r.push((function(e,r){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),i(t)):n(t)}else e?i(e):n(r)})):r.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];n(e)}else n(e)})),e.apply(this,r)}))};e.exports=(e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},n);const r=e=>{const t=t=>"string"==typeof t?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let i;i="function"==typeof e?function(){return n.excludeMain?e.apply(this,arguments):t(e,n).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const o in e){const s=e[o];i[o]="function"==typeof s&&r(o)?t(s,n):s}return i}},9650:(e,t,n)=>{const r=n(9896),i=n(6928),o=n(857),s=n(6982),a=n(2108).version,u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function l(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function c(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function f(e,t){let n;try{n=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}const r=n.password;if(!r){const e=new Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}const i=n.searchParams.get("environment");if(!i){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}const o=`DOTENV_VAULT_${i.toUpperCase()}`,s=e.parsed[o];if(!s){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:s,key:r}}function h(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const n of e.path)r.existsSync(n)&&(t=n.endsWith(".vault")?n:`${n}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=i.resolve(process.cwd(),".env.vault");return r.existsSync(t)?t:null}function d(e){return"~"===e[0]?i.join(o.homedir(),e.slice(1)):e}const p={configDotenv:function(e){const t=i.resolve(process.cwd(),".env");let n="utf8";const o=Boolean(e&&e.debug);e&&e.encoding?n=e.encoding:o&&l("No encoding is specified. UTF-8 is used by default");let s,a=[t];if(e&&e.path)if(Array.isArray(e.path)){a=[];for(const t of e.path)a.push(d(t))}else a=[d(e.path)];const u={};for(const t of a)try{const i=p.parse(r.readFileSync(t,{encoding:n}));p.populate(u,i,e)}catch(e){o&&l(`Failed to load ${t} ${e.message}`),s=e}let c=process.env;return e&&null!=e.processEnv&&(c=e.processEnv),p.populate(c,u,e),s?{parsed:u,error:s}:{parsed:u}},_configVault:function(e){console.log(`[dotenv@${a}][INFO] Loading env from encrypted .env.vault`);const t=p._parseVault(e);let n=process.env;return e&&null!=e.processEnv&&(n=e.processEnv),p.populate(n,t,e),{parsed:t}},_parseVault:function(e){const t=h(e),n=p.configDotenv({path:t});if(!n.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code="MISSING_DATA",e}const r=c(e).split(","),i=r.length;let o;for(let e=0;e<i;e++)try{const t=f(n,r[e].trim());o=p.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return p.parse(o)},config:function(e){if(0===c(e).length)return p.configDotenv(e);const t=h(e);return t?p._configVault(e):(n=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.log(`[dotenv@${a}][WARN] ${n}`),p.configDotenv(e));var n},decrypt:function(e,t){const n=Buffer.from(t.slice(-64),"hex");let r=Buffer.from(e,"base64");const i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{const e=s.createDecipheriv("aes-256-gcm",n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){const t=e instanceof RangeError,n="Invalid key length"===e.message,r="Unsupported state or unable to authenticate data"===e.message;if(t||n){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(r){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw e}},parse:function(e){const t={};let n,r=e.toString();for(r=r.replace(/\r\n?/gm,"\n");null!=(n=u.exec(r));){const e=n[1];let r=n[2]||"";r=r.trim();const i=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===i&&(r=r.replace(/\\n/g,"\n"),r=r.replace(/\\r/g,"\r")),t[e]=r}return t},populate:function(e,t,n={}){const r=Boolean(n&&n.debug),i=Boolean(n&&n.override);if("object"!=typeof t){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(const n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(!0===i&&(e[n]=t[n]),r&&l(!0===i?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):e[n]=t[n]}};e.exports.configDotenv=p.configDotenv,e.exports._configVault=p._configVault,e.exports._parseVault=p._parseVault,e.exports.config=p.config,e.exports.decrypt=p.decrypt,e.exports.parse=p.parse,e.exports.populate=p.populate,e.exports=p},5895:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},3908:(e,t,n)=>{var r=n(9819),i=function(){},o=function(e,t,n){if("function"==typeof t)return o(e,null,t);t||(t={}),n=r(n||i);var s=e._writableState,a=e._readableState,u=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,c=!1,f=function(){e.writable||h()},h=function(){l=!1,u||n.call(e)},d=function(){u=!1,l||n.call(e)},p=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){n.call(e,t)},g=function(){process.nextTick(y)},y=function(){if(!c)return(!u||a&&a.ended&&!a.destroyed)&&(!l||s&&s.ended&&!s.destroyed)?void 0:n.call(e,new Error("premature close"))},D=function(){e.req.on("finish",h)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",h),e.on("abort",g),e.req?D():e.on("request",D)):l&&!s&&(e.on("end",f),e.on("close",f)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",p),e.on("end",d),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){c=!0,e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",D),e.req&&e.req.removeListener("finish",h),e.removeListener("end",f),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("exit",p),e.removeListener("end",d),e.removeListener("error",m),e.removeListener("close",g)}};e.exports=o},6203:(e,t,n)=>{"use strict";const r=n(5877),i=n(2207);e.exports=class{constructor(e,t,n){this.source=e,this.field=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasFieldPlugin",((n,o,s)=>{if(!n.descriptionFileData)return s();const a=i(e,n);if(!a)return s();const u=r.getField(n.descriptionFileData,this.field);if(null===u||"object"!=typeof u)return o.log&&o.log("Field '"+this.field+"' doesn't contain a valid alias configuration"),s();const l=Object.prototype.hasOwnProperty.call(u,a)?u[a]:a.startsWith("./")?u[a.slice(2)]:void 0;if(l===a)return s();if(void 0===l)return s();if(!1===l){const e={...n,path:!1};return"function"==typeof o.yield?(o.yield(e),s(null,null)):s(null,e)}const c={...n,path:n.descriptionFileRoot,request:l,fullySpecified:!1};e.doResolve(t,c,"aliased from description file "+n.descriptionFilePath+" with mapping '"+a+"' to '"+l+"'",o,((e,t)=>e?s(e):void 0===t?s(null,null):void s(null,t)))}))}}},7869:(e,t,n)=>{"use strict";const r=n(8048),{PathType:i,getType:o}=n(6932);e.exports=class{constructor(e,t,n){this.source=e,this.options=Array.isArray(t)?t:[t],this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasPlugin",((n,s,a)=>{const u=n.request||n.path;if(!u)return a();r(this.options,((a,l)=>{let c=!1;if(u===a.name||!a.onlyModule&&(n.request?u.startsWith(`${a.name}/`):((t,n)=>{const r=(t=>{const n=o(t);return n===i.AbsolutePosix||n===i.AbsoluteWin?e.join(t,"_").slice(0,-1):null})(n);return!!r&&t.startsWith(r)})(u,a.name))){const i=u.slice(a.name.length),o=(r,o)=>{if(!1===r){const e={...n,path:!1};return"function"==typeof s.yield?(s.yield(e),o(null,null)):o(null,e)}if(u!==r&&!u.startsWith(r+"/")){c=!0;const u=r+i,l={...n,request:u,fullySpecified:!1};return e.doResolve(t,l,"aliased with mapping '"+a.name+"': '"+r+"' to '"+u+"'",s,((e,t)=>e?o(e):t?o(null,t):o()))}return o()},f=(e,t)=>e?l(e):t?l(null,t):c?l(null,null):l();return Array.isArray(a.alias)?r(a.alias,o,f):o(a.alias,f)}return l()}),a)}))}}},1527:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.appending=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AppendPlugin",((n,r,i)=>{const o={...n,path:n.path+this.appending,relativePath:n.relativePath&&n.relativePath+this.appending};e.doResolve(t,o,this.appending,r,i)}))}}},3367:(e,t,n)=>{"use strict";const r=n(932).nextTick,i=e=>{let t=e.length-1;for(;t>=0;){const n=e.charCodeAt(t);if(47===n||92===n)break;t--}return t<0?"":e.slice(0,t)},o=(e,t,n)=>{if(1===e.length)return e[0](t,n),void(e.length=0);let r;for(const i of e)try{i(t,n)}catch(e){r||(r=e)}if(e.length=0,r)throw r};class s{constructor(e,t,n){this._provider=e,this._syncProvider=t,this._providerContext=n,this._activeAsyncOperations=new Map,this.provide=this._provider?(t,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),!("string"==typeof t||Buffer.isBuffer(t)||t instanceof URL||"number"==typeof t))return void r(new TypeError("path must be a string, Buffer, URL or number"));if(n)return this._provider.call(this._providerContext,t,n,r);let i=this._activeAsyncOperations.get(t);i?i.push(r):(this._activeAsyncOperations.set(t,i=[r]),e(t,((e,n)=>{this._activeAsyncOperations.delete(t),o(i,e,n)})))}:null,this.provideSync=this._syncProvider?(e,t)=>this._syncProvider.call(this._providerContext,e,t):null}purge(){}purgeParent(){}}class a{constructor(e,t,n,r){this._duration=e,this._provider=t,this._syncProvider=n,this._providerContext=r,this._activeAsyncOperations=new Map,this._data=new Map,this._levels=[];for(let e=0;e<10;e++)this._levels.push(new Set);for(let t=5e3;t<e;t+=500)this._levels.push(new Set);this._currentLevel=0,this._tickInterval=Math.floor(e/this._levels.length),this._mode=0,this._timeout=void 0,this._nextDecay=void 0,this.provide=t?this.provide.bind(this):null,this.provideSync=n?this.provideSync.bind(this):null}provide(e,t,n){if("function"==typeof t&&(n=t,t=void 0),!("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e))return void n(new TypeError("path must be a string, Buffer, URL or number"));const i="string"!=typeof e?e.toString():e;if(t)return this._provider.call(this._providerContext,e,t,n);1===this._mode&&this._enterAsyncMode();let s=this._data.get(i);if(void 0!==s)return s.err?r(n,s.err):r(n,null,s.result);let a=this._activeAsyncOperations.get(i);void 0===a?(this._activeAsyncOperations.set(i,a=[n]),this._provider.call(this._providerContext,e,((e,t)=>{this._activeAsyncOperations.delete(i),this._storeResult(i,e,t),this._enterAsyncMode(),o(a,e,t)}))):a.push(n)}provideSync(e,t){if(!("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e))throw new TypeError("path must be a string");const n="string"!=typeof e?e.toString():e;if(t)return this._syncProvider.call(this._providerContext,e,t);1===this._mode&&this._runDecays();let r=this._data.get(n);if(void 0!==r){if(r.err)throw r.err;return r.result}const i=this._activeAsyncOperations.get(n);let s;this._activeAsyncOperations.delete(n);try{s=this._syncProvider.call(this._providerContext,e)}catch(e){throw this._storeResult(n,e,void 0),this._enterSyncModeWhenIdle(),i&&o(i,e,void 0),e}return this._storeResult(n,null,s),this._enterSyncModeWhenIdle(),i&&o(i,null,s),s}purge(e){if(e)if("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e){const t="string"!=typeof e?e.toString():e;for(let[e,n]of this._data)e.startsWith(t)&&(this._data.delete(e),n.level.delete(e));0===this._data.size&&this._enterIdleMode()}else{for(let[t,n]of this._data)for(const r of e){const e="string"!=typeof r?r.toString():r;if(t.startsWith(e)){this._data.delete(t),n.level.delete(t);break}}0===this._data.size&&this._enterIdleMode()}else if(0!==this._mode){this._data.clear();for(const e of this._levels)e.clear();this._enterIdleMode()}}purgeParent(e){if(e)if("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e){const t="string"!=typeof e?e.toString():e;this.purge(i(t))}else{const t=new Set;for(const n of e){const e="string"!=typeof n?n.toString():n;t.add(i(e))}this.purge(t)}else this.purge()}_storeResult(e,t,n){if(this._data.has(e))return;const r=this._levels[this._currentLevel];this._data.set(e,{err:t,result:n,level:r}),r.add(e)}_decayLevel(){const e=(this._currentLevel+1)%this._levels.length,t=this._levels[e];this._currentLevel=e;for(let e of t)this._data.delete(e);t.clear(),0===this._data.size?this._enterIdleMode():this._nextDecay+=this._tickInterval}_runDecays(){for(;this._nextDecay<=Date.now()&&0!==this._mode;)this._decayLevel()}_enterAsyncMode(){let e=0;switch(this._mode){case 2:return;case 0:this._nextDecay=Date.now()+this._tickInterval,e=this._tickInterval;break;case 1:if(this._runDecays(),0===this._mode)return;e=Math.max(0,this._nextDecay-Date.now())}this._mode=2;const t=setTimeout((()=>{this._mode=1,this._runDecays()}),e);t.unref&&t.unref(),this._timeout=t}_enterSyncModeWhenIdle(){0===this._mode&&(this._mode=1,this._nextDecay=Date.now()+this._tickInterval)}_enterIdleMode(){this._mode=0,this._nextDecay=void 0,this._timeout&&clearTimeout(this._timeout)}}const u=(e,t,n,r)=>e>0?new a(e,t,n,r):new s(t,n,r);e.exports=class{constructor(e,t){this.fileSystem=e,this._lstatBackend=u(t,this.fileSystem.lstat,this.fileSystem.lstatSync,this.fileSystem);const n=this._lstatBackend.provide;this.lstat=n;const r=this._lstatBackend.provideSync;this.lstatSync=r,this._statBackend=u(t,this.fileSystem.stat,this.fileSystem.statSync,this.fileSystem);const i=this._statBackend.provide;this.stat=i;const o=this._statBackend.provideSync;this.statSync=o,this._readdirBackend=u(t,this.fileSystem.readdir,this.fileSystem.readdirSync,this.fileSystem);const s=this._readdirBackend.provide;this.readdir=s;const a=this._readdirBackend.provideSync;this.readdirSync=a,this._readFileBackend=u(t,this.fileSystem.readFile,this.fileSystem.readFileSync,this.fileSystem);const l=this._readFileBackend.provide;this.readFile=l;const c=this._readFileBackend.provideSync;this.readFileSync=c,this._readJsonBackend=u(t,this.fileSystem.readJson||this.readFile&&((e,t)=>{this.readFile(e,((e,n)=>{if(e)return t(e);if(!n||0===n.length)return t(new Error("No file content"));let r;try{r=JSON.parse(n.toString("utf-8"))}catch(e){return t(e)}t(null,r)}))}),this.fileSystem.readJsonSync||this.readFileSync&&(e=>{const t=this.readFileSync(e);return JSON.parse(t.toString("utf-8"))}),this.fileSystem);const f=this._readJsonBackend.provide;this.readJson=f;const h=this._readJsonBackend.provideSync;this.readJsonSync=h,this._readlinkBackend=u(t,this.fileSystem.readlink,this.fileSystem.readlinkSync,this.fileSystem);const d=this._readlinkBackend.provide;this.readlink=d;const p=this._readlinkBackend.provideSync;this.readlinkSync=p,this._realpathBackend=u(t,this.fileSystem.realpath,this.fileSystem.realpathSync,this.fileSystem);const m=this._realpathBackend.provide;this.realpath=m;const g=this._realpathBackend.provideSync;this.realpathSync=g}purge(e){this._statBackend.purge(e),this._lstatBackend.purge(e),this._readdirBackend.purgeParent(e),this._readFileBackend.purge(e),this._readlinkBackend.purge(e),this._readJsonBackend.purge(e),this._realpathBackend.purge(e)}}},8034:(e,t,n)=>{"use strict";const r=n(1036).basename;e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("CloneBasenamePlugin",((n,i,o)=>{const s=n.path,a=r(s),u=e.join(s,a),l={...n,path:u,relativePath:n.relativePath&&e.join(n.relativePath,a)};e.doResolve(t,l,"using path: "+u,i,o)}))}}},2897:e=>{"use strict";e.exports=class{constructor(e,t,n,r,i){this.source=e,this.test=t,this.message=n,this.allowAlternatives=r,this.target=i}apply(e){const t=e.ensureHook(this.target),{test:n,message:r,allowAlternatives:i}=this,o=Object.keys(n);e.getHook(this.source).tapAsync("ConditionalPlugin",((s,a,u)=>{for(const e of o)if(s[e]!==n[e])return u();e.doResolve(t,s,r,a,i?u:(e,t)=>e?u(e):void 0===t?u(null,null):void u(null,t))}))}}},4153:(e,t,n)=>{"use strict";const r=n(5877);e.exports=class{constructor(e,t,n,r){this.source=e,this.filenames=t,this.pathIsFile=n,this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DescriptionFilePlugin",((n,i,o)=>{const s=n.path;if(!s)return o();const a=this.pathIsFile?r.cdUp(s):s;if(!a)return o();r.loadDescriptionFile(e,a,this.filenames,n.descriptionFilePath?{path:n.descriptionFilePath,content:n.descriptionFileData,directory:n.descriptionFileRoot}:void 0,i,((r,u)=>{if(r)return o(r);if(!u)return i.log&&i.log(`No description file found in ${a} or above`),o();const l="."+s.slice(u.directory.length).replace(/\\/g,"/"),c={...n,descriptionFilePath:u.path,descriptionFileData:u.content,descriptionFileRoot:u.directory,relativePath:l};e.doResolve(t,c,"using description file: "+u.path+" (relative path: "+l+")",i,((e,t)=>e?o(e):void 0===t?o(null,null):void o(null,t)))}))}))}}},5877:(e,t,n)=>{"use strict";const r=n(8048);function i(e){if("/"===e)return null;const t=e.lastIndexOf("/"),n=e.lastIndexOf("\\"),r=t<0?n:n<0?t:t<n?n:t;return r<0?null:e.slice(0,r||1)}t.loadDescriptionFile=function(e,t,n,o,s,a){!function u(){if(o&&o.directory===t)return a(null,o);r(n,((n,r)=>{const i=e.join(t,n);function o(e,n){if(e)return s.log?s.log(i+" (directory description file): "+e):e.message=i+" (directory description file): "+e,r(e);r(null,{content:n,directory:t,path:i})}e.fileSystem.readJson?e.fileSystem.readJson(i,((e,t)=>{if(e)return void 0!==e.code?(s.missingDependencies&&s.missingDependencies.add(i),r()):(s.fileDependencies&&s.fileDependencies.add(i),o(e));s.fileDependencies&&s.fileDependencies.add(i),o(null,t)})):e.fileSystem.readFile(i,((e,t)=>{if(e)return s.missingDependencies&&s.missingDependencies.add(i),r();let n;if(s.fileDependencies&&s.fileDependencies.add(i),!t)return o(new Error("No content in file"));try{n=JSON.parse(t.toString())}catch(e){return o(e)}o(null,n)}))}),((e,n)=>{if(e)return a(e);if(n)return a(null,n);{const e=i(t);return e?(t=e,u()):a()}}))}()},t.getField=function(e,t){if(e){if(Array.isArray(t)){let n=e;for(let e=0;e<t.length;e++){if(null===n||"object"!=typeof n){n=null;break}n=n[t[e]]}return n}return e[t]}},t.cdUp=i},3702:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DirectoryExistsPlugin",((n,r,i)=>{const o=e.fileSystem,s=n.path;if(!s)return i();o.stat(s,((o,a)=>o||!a?(r.missingDependencies&&r.missingDependencies.add(s),r.log&&r.log(s+" doesn't exist"),i()):a.isDirectory()?(r.fileDependencies&&r.fileDependencies.add(s),void e.doResolve(t,n,`existing directory ${s}`,r,i)):(r.missingDependencies&&r.missingDependencies.add(s),r.log&&r.log(s+" is not a directory"),i())))}))}}},5782:(e,t,n)=>{"use strict";const r=n(5877),i=n(8048),{processExportsField:o}=n(4480),{parseIdentifier:s}=n(3488),{invalidSegmentRegEx:a,deprecatedInvalidSegmentRegEx:u}=n(6932);e.exports=class{constructor(e,t,n,r){this.source=e,this.target=r,this.conditionNames=t,this.fieldName=n,this.fieldProcessorCache=new WeakMap}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ExportsFieldPlugin",((n,l,c)=>{if(!n.descriptionFilePath)return c();if("."!==n.relativePath||void 0===n.request)return c();const f=n.query||n.fragment?("."===n.request?"./":n.request)+n.query+n.fragment:n.request,h=r.getField(n.descriptionFileData,this.fieldName);if(!h)return c();if(n.directory)return c(new Error(`Resolving to directories is not possible with the exports field (request was ${f}/)`));let d,p;try{let e=this.fieldProcessorCache.get(n.descriptionFileData);void 0===e&&(e=o(h),this.fieldProcessorCache.set(n.descriptionFileData,e)),[d,p]=e(f,this.conditionNames)}catch(e){return l.log&&l.log(`Exports field in ${n.descriptionFilePath} can't be processed: ${e}`),c(e)}if(0===d.length)return c(new Error(`Package path ${f} is not exported from package ${n.descriptionFileRoot} (see exports field in ${n.descriptionFilePath})`));i(d,((r,i,o)=>{const c=s(r);if(!c)return i();const[f,h,m]=c;if(0===f.length||!f.startsWith("./"))return d.length===o?i(new Error(`Invalid "exports" target "${r}" defined for "${p}" in the package config ${n.descriptionFilePath}, targets must start with "./"`)):i();if(null!==a.exec(f.slice(2))&&null!==u.test(f.slice(2)))return d.length===o?i(new Error(`Invalid "exports" target "${r}" defined for "${p}" in the package config ${n.descriptionFilePath}, targets must start with "./"`)):i();const g={...n,request:void 0,path:e.join(n.descriptionFileRoot,f),relativePath:f,query:h,fragment:m};e.doResolve(t,g,"using exports field: "+r,l,((e,t)=>e?i(e):void 0===t?i(null,null):void i(null,t)))}),((e,t)=>c(e,t||null)))}))}}},3112:(e,t,n)=>{"use strict";const r=n(8048);e.exports=class{constructor(e,t,n){this.source=e,this.options=t,this.target=n}apply(e){const t=e.ensureHook(this.target),{extension:n,alias:i}=this.options;e.getHook(this.source).tapAsync("ExtensionAliasPlugin",((o,s,a)=>{const u=o.request;if(!u||!u.endsWith(n))return a();const l="string"==typeof i,c=(r,i,a)=>{const c=`${u.slice(0,-n.length)}${r}`;return e.doResolve(t,{...o,request:c,fullySpecified:!0},`aliased from extension alias with mapping '${n}' to '${r}'`,s,((e,t)=>{if(!l&&a)return a!==this.options.alias.length?(s.log&&s.log(`Failed to alias from extension alias with mapping '${n}' to '${r}' for '${c}': ${e}`),i(null,t)):i(e,t);i(e,t)}))},f=(e,t)=>e?a(e):a(null,t||null);l?c(i,f):i.length>1?r(i,c,f):c(i[0],f)}))}}},2541:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target),n=e.fileSystem;e.getHook(this.source).tapAsync("FileExistsPlugin",((r,i,o)=>{const s=r.path;if(!s)return o();n.stat(s,((n,a)=>n||!a?(i.missingDependencies&&i.missingDependencies.add(s),i.log&&i.log(s+" doesn't exist"),o()):a.isFile()?(i.fileDependencies&&i.fileDependencies.add(s),void e.doResolve(t,r,"existing file: "+s,i,o)):(i.missingDependencies&&i.missingDependencies.add(s),i.log&&i.log(s+" is not a file"),o())))}))}}},4669:(e,t,n)=>{"use strict";const r=n(5877),i=n(8048),{processImportsField:o}=n(4480),{parseIdentifier:s}=n(3488),{invalidSegmentRegEx:a,deprecatedInvalidSegmentRegEx:u}=n(6932),l=".".charCodeAt(0);e.exports=class{constructor(e,t,n,r,i){this.source=e,this.targetFile=r,this.targetPackage=i,this.conditionNames=t,this.fieldName=n,this.fieldProcessorCache=new WeakMap}apply(e){const t=e.ensureHook(this.targetFile),n=e.ensureHook(this.targetPackage);e.getHook(this.source).tapAsync("ImportsFieldPlugin",((c,f,h)=>{if(!c.descriptionFilePath||void 0===c.request)return h();const d=c.request+c.query+c.fragment,p=r.getField(c.descriptionFileData,this.fieldName);if(!p)return h();if(c.directory)return h(new Error(`Resolving to directories is not possible with the imports field (request was ${d}/)`));let m,g;try{let e=this.fieldProcessorCache.get(c.descriptionFileData);void 0===e&&(e=o(p),this.fieldProcessorCache.set(c.descriptionFileData,e)),[m,g]=e(d,this.conditionNames)}catch(e){return f.log&&f.log(`Imports field in ${c.descriptionFilePath} can't be processed: ${e}`),h(e)}if(0===m.length)return h(new Error(`Package import ${d} is not imported from package ${c.descriptionFileRoot} (see imports field in ${c.descriptionFilePath})`));i(m,((r,i,o)=>{const h=s(r);if(!h)return i();const[d,p,y]=h;switch(d.charCodeAt(0)){case l:{if(null!==a.exec(d.slice(2))&&null!==u.test(d.slice(2)))return m.length===o?i(new Error(`Invalid "imports" target "${r}" defined for "${g}" in the package config ${c.descriptionFilePath}, targets must start with "./"`)):i();const n={...c,request:void 0,path:e.join(c.descriptionFileRoot,d),relativePath:d,query:p,fragment:y};e.doResolve(t,n,"using imports field: "+r,f,((e,t)=>e?i(e):void 0===t?i(null,null):void i(null,t)));break}default:{const t={...c,request:d,relativePath:d,fullySpecified:!0,query:p,fragment:y};e.doResolve(n,t,"using imports field: "+r,f,((e,t)=>e?i(e):void 0===t?i(null,null):void i(null,t)))}}}),((e,t)=>h(e,t||null)))}))}}},6001:e=>{"use strict";const t="@".charCodeAt(0);e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const n=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPartPlugin",((r,i,o)=>{const s=r.request||"";let a,u,l,c=s.indexOf("/",3);c>=0&&s.charCodeAt(2)===t&&(c=s.indexOf("/",c+1)),c<0?(a=s,u=".",l=!1):(a=s.slice(0,c),u="."+s.slice(c),l=r.fullySpecified);const f={...r,path:e.join(r.path,a),relativePath:r.relativePath&&e.join(r.relativePath,a),request:u,fullySpecified:l};e.doResolve(n,f,null,i,o)}))}}},7132:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPlugin",((n,r,i)=>{const o=n.path,s=n.request,a={...n,path:e.join(o,s),relativePath:n.relativePath&&e.join(n.relativePath,s),request:void 0};e.doResolve(t,a,null,r,i)}))}}},7475:e=>{"use strict";e.exports=class{constructor(e){this.source=e}apply(e){const t=this.source;e.getHook(this.source).tapAsync("LogInfoPlugin",((e,n,r)=>{if(!n.log)return r();const i=n.log,o="["+t+"] ";e.path&&i(o+"Resolving in directory: "+e.path),e.request&&i(o+"Resolving request: "+e.request),e.module&&i(o+"Request is an module request."),e.directory&&i(o+"Request is a directory request."),e.query&&i(o+"Resolving request query: "+e.query),e.fragment&&i(o+"Resolving request fragment: "+e.fragment),e.descriptionFilePath&&i(o+"Has description data from "+e.descriptionFilePath),e.relativePath&&i(o+"Relative path from description file is: "+e.relativePath),r()}))}}},1722:(e,t,n)=>{"use strict";const r=n(6928),i=n(5877),o=Symbol("alreadyTriedMainField");e.exports=class{constructor(e,t,n){this.source=e,this.options=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("MainFieldPlugin",((n,s,a)=>{if(n.path!==n.descriptionFileRoot||n[o]===n.descriptionFilePath||!n.descriptionFilePath)return a();const u=r.basename(n.descriptionFilePath);let l=i.getField(n.descriptionFileData,this.options.name);if(!l||"string"!=typeof l||"."===l||"./"===l)return a();this.options.forceRelative&&!/^\.\.?\//.test(l)&&(l="./"+l);const c={...n,request:l,module:!1,directory:l.endsWith("/"),[o]:n.descriptionFilePath};return e.doResolve(t,c,"use "+l+" from "+this.options.name+" in "+u,s,a)}))}}},645:(e,t,n)=>{"use strict";const r=n(8048),i=n(1036);e.exports=class{constructor(e,t,n){this.source=e,this.directories=[].concat(t),this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInHierarchicalDirectoriesPlugin",((n,o,s)=>{const a=e.fileSystem,u=i(n.path).paths.map((t=>this.directories.map((n=>e.join(t,n))))).reduce(((e,t)=>(e.push.apply(e,t),e)),[]);r(u,((r,i)=>{a.stat(r,((s,a)=>{if(!s&&a&&a.isDirectory()){const s={...n,path:r,request:"./"+n.request,module:!1},a="looking for modules in "+r;return e.doResolve(t,s,a,o,i)}return o.log&&o.log(r+" doesn't exist or is not a directory"),o.missingDependencies&&o.missingDependencies.add(r),i()}))}),s)}))}}},8659:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.path=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInRootPlugin",((n,r,i)=>{const o={...n,path:this.path,request:"./"+n.request,module:!1};e.doResolve(t,o,"looking for modules in "+this.path,r,i)}))}}},1334:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("NextPlugin",((n,r,i)=>{e.doResolve(t,n,null,r,i)}))}}},7074:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.requestOptions=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ParsePlugin",((n,r,i)=>{const o=e.parse(n.request),s={...n,...o,...this.requestOptions};if(n.query&&!o.query&&(s.query=n.query),n.fragment&&!o.fragment&&(s.fragment=n.fragment),o&&r.log&&(o.module&&r.log("Parsed request is a module"),o.directory&&r.log("Parsed request is a directory")),s.request&&!s.query&&s.fragment){const n=s.fragment.endsWith("/"),o={...s,directory:n,request:s.request+(s.directory?"/":"")+(n?s.fragment.slice(0,-1):s.fragment),fragment:""};e.doResolve(t,o,null,r,((n,o)=>n?i(n):o?i(null,o):void e.doResolve(t,s,null,r,i)))}else e.doResolve(t,s,null,r,i)}))}}},8931:e=>{"use strict";e.exports=class{constructor(e,t,n,r){this.source=e,this.pnpApi=t,this.target=n,this.alternateTarget=r}apply(e){const t=e.ensureHook(this.target),n=e.ensureHook(this.alternateTarget);e.getHook(this.source).tapAsync("PnpPlugin",((r,i,o)=>{const s=r.request;if(!s)return o();const a=`${r.path}/`,u=/^(@[^/]+\/)?[^/]+/.exec(s);if(!u)return o();const l=u[0],c=`.${s.slice(l.length)}`;let f,h;try{if(f=this.pnpApi.resolveToUnqualified(l,a,{considerBuiltins:!1}),null===f)return void e.doResolve(n,r,"issuer is not managed by a pnpapi",i,((e,t)=>e?o(e):o(null,t||null)));i.fileDependencies&&(h=this.pnpApi.resolveToUnqualified("pnpapi",a,{considerBuiltins:!1}))}catch(e){if("MODULE_NOT_FOUND"===e.code&&"UNDECLARED_DEPENDENCY"===e.pnpCode){if(i.log){i.log("request is not managed by the pnpapi");for(const t of e.message.split("\n").filter(Boolean))i.log(` ${t}`)}return o()}return o(e)}if(f===l)return o();h&&i.fileDependencies&&i.fileDependencies.add(h);const d={...r,path:f,request:c,ignoreSymlinks:!0,fullySpecified:r.fullySpecified&&"."!==c};e.doResolve(t,d,`resolved by pnp to ${f}`,i,((e,t)=>e?o(e):o(null,t||null)))}))}}},2110:(e,t,n)=>{"use strict";const{AsyncSeriesBailHook:r,AsyncSeriesHook:i,SyncHook:o}=n(7554),s=n(8699),{parseIdentifier:a}=n(3488),{normalize:u,cachedJoin:l,getType:c,PathType:f}=n(6932);function h(e){return e.replace(/-([a-z])/g,(e=>e.slice(1).toUpperCase()))}class d{static createStackEntry(e,t){return e.name+": ("+t.path+") "+(t.request||"")+(t.query||"")+(t.fragment||"")+(t.directory?" directory":"")+(t.module?" module":"")}constructor(e,t){this.fileSystem=e,this.options=t,this.hooks={resolveStep:new o(["hook","request"],"resolveStep"),noResolve:new o(["request","error"],"noResolve"),resolve:new r(["request","resolveContext"],"resolve"),result:new i(["result","resolveContext"],"result")}}ensureHook(e){if("string"!=typeof e)return e;if(e=h(e),/^before/.test(e))return this.ensureHook(e[6].toLowerCase()+e.slice(7)).withOptions({stage:-10});if(/^after/.test(e))return this.ensureHook(e[5].toLowerCase()+e.slice(6)).withOptions({stage:10});return this.hooks[e]||(this.hooks[e]=new r(["request","resolveContext"],e),this.hooks[e])}getHook(e){if("string"!=typeof e)return e;if(e=h(e),/^before/.test(e))return this.getHook(e[6].toLowerCase()+e.slice(7)).withOptions({stage:-10});if(/^after/.test(e))return this.getHook(e[5].toLowerCase()+e.slice(6)).withOptions({stage:10});const t=this.hooks[e];if(!t)throw new Error(`Hook ${e} doesn't exist`);return t}resolveSync(e,t,n){let r,i,o=!1;if(this.resolve(e,t,n,{},((e,t)=>{r=e,i=t,o=!0})),!o)throw new Error("Cannot 'resolveSync' because the fileSystem is not sync. Use 'resolve'!");if(r)throw r;if(void 0===i)throw new Error("No result");return i}resolve(e,t,n,r,i){if(!e||"object"!=typeof e)return i(new Error("context argument is not an object"));if("string"!=typeof t)return i(new Error("path argument is not a string"));if("string"!=typeof n)return i(new Error("request argument is not a string"));if(!r)return i(new Error("resolveContext argument is not set"));const o={context:e,path:t,request:n};let s,a,u=!1;if("function"==typeof r.yield){const e=r.yield;s=t=>{e(t),u=!0},a=e=>{e&&s(e),i(null)}}const l=`resolve '${n}' in '${t}'`,c=e=>i(null,!1!==e.path&&`${e.path.replace(/#/g,"\0#")}${e.query?e.query.replace(/#/g,"\0#"):""}${e.fragment||""}`,e),f=e=>{const t=new Error("Can't "+l);return t.details=e.join("\n"),this.hooks.noResolve.call(o,t),i(t)};if(r.log){const e=r.log,t=[];return this.doResolve(this.hooks.resolve,o,l,{log:n=>{e(n),t.push(n)},yield:s,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:r.stack},((e,n)=>e?i(e):u||n&&s?a(n):n?c(n):f(t)))}return this.doResolve(this.hooks.resolve,o,l,{log:void 0,yield:s,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:r.stack},((e,t)=>{if(e)return i(e);if(u||t&&s)return a(t);if(t)return c(t);const n=[];return this.doResolve(this.hooks.resolve,o,l,{log:e=>n.push(e),yield:s,stack:r.stack},((e,t)=>e?i(e):u||t&&s?a(t):f(n)))}))}doResolve(e,t,n,r,i){const o=d.createStackEntry(e,t);let a;if(r.stack){if(a=new Set(r.stack),r.stack.has(o)){const e=new Error("Recursion in resolving\nStack:\n "+Array.from(a).join("\n "));return e.recursion=!0,r.log&&r.log("abort resolving because of recursion"),i(e)}a.add(o)}else a=new Set,a.add(o);if(this.hooks.resolveStep.call(e,t),e.isUsed()){const o=s({log:r.log,yield:r.yield,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:a},n);return e.callAsync(t,o,((e,t)=>e?i(e):t?i(null,t):void i()))}i()}parse(e){const t={request:"",query:"",fragment:"",module:!1,directory:!1,file:!1,internal:!1},n=a(e);return n?([t.request,t.query,t.fragment]=n,t.request.length>0&&(t.internal=this.isPrivate(e),t.module=this.isModule(t.request),t.directory=this.isDirectory(t.request),t.directory&&(t.request=t.request.slice(0,-1))),t):t}isModule(e){return c(e)===f.Normal}isPrivate(e){return c(e)===f.Internal}isDirectory(e){return e.endsWith("/")}join(e,t){return l(e,t)}normalize(e){return u(e)}}e.exports=d},2422:(e,t,n)=>{"use strict";const r=n(932).versions,i=n(2110),{getType:o,PathType:s}=n(6932),a=n(5151),u=n(6203),l=n(7869),c=n(1527),f=n(2897),h=n(4153),d=n(3702),p=n(5782),m=n(3112),g=n(2541),y=n(4669),D=n(6001),b=n(7132),v=n(1722),w=n(645),E=n(8659),_=n(1334),F=n(7074),x=n(8931),C=n(2620),A=n(3566),O=n(4012),k=n(8022),S=n(7278),j=n(9413),B=n(3177),P=n(492);function R(e){if(void 0===e&&r.pnp){const e=n(3339).findPnpApi;if(e)return{resolveToUnqualified(t,n,r){const i=e(n);return i?i.resolveToUnqualified(t,n,r):null}}}return e||null}function I(e){return"object"!=typeof e||Array.isArray(e)||null===e?e||[]:Object.keys(e).map((t=>{const n={name:t,onlyModule:!1,alias:e[t]};return/\$$/.test(t)&&(n.onlyModule=!0,n.name=t.slice(0,-1)),n}))}function M(e,t){const n=[],r=new Set(e);for(const e of r)if(t(e)){const t=n.length>0?n[n.length-1]:void 0;Array.isArray(t)?t.push(e):n.push([e])}else n.push(e);return n}t.createResolver=function(e){const t=function(e){const t=new Set(e.mainFields||["main"]),n=[];for(const e of t)"string"==typeof e?n.push({name:[e],forceRelative:!0}):Array.isArray(e)?n.push({name:e,forceRelative:!0}):n.push({name:Array.isArray(e.name)?e.name:[e.name],forceRelative:e.forceRelative});return{alias:I(e.alias),fallback:I(e.fallback),aliasFields:new Set(e.aliasFields),cachePredicate:e.cachePredicate||function(){return!0},cacheWithContext:void 0===e.cacheWithContext||e.cacheWithContext,exportsFields:new Set(e.exportsFields||["exports"]),importsFields:new Set(e.importsFields||["imports"]),conditionNames:new Set(e.conditionNames),descriptionFiles:Array.from(new Set(e.descriptionFiles||["package.json"])),enforceExtension:void 0===e.enforceExtension?!(!e.extensions||!e.extensions.includes("")):e.enforceExtension,extensions:new Set(e.extensions||[".js",".json",".node"]),extensionAlias:e.extensionAlias?Object.keys(e.extensionAlias).map((t=>({extension:t,alias:e.extensionAlias[t]}))):[],fileSystem:e.useSyncFileSystemCalls?new a(e.fileSystem):e.fileSystem,unsafeCache:e.unsafeCache&&"object"!=typeof e.unsafeCache?{}:e.unsafeCache||!1,symlinks:void 0===e.symlinks||e.symlinks,resolver:e.resolver,modules:M(Array.isArray(e.modules)?e.modules:e.modules?[e.modules]:["node_modules"],(e=>{const t=o(e);return t===s.Normal||t===s.Relative})),mainFields:n,mainFiles:new Set(e.mainFiles||["index"]),plugins:e.plugins||[],pnpApi:R(e.pnpApi),roots:new Set(e.roots||void 0),fullySpecified:e.fullySpecified||!1,resolveToContext:e.resolveToContext||!1,preferRelative:e.preferRelative||!1,preferAbsolute:e.preferAbsolute||!1,restrictions:new Set(e.restrictions)}}(e),{alias:n,fallback:r,aliasFields:$,cachePredicate:T,cacheWithContext:N,conditionNames:L,descriptionFiles:q,enforceExtension:z,exportsFields:U,extensionAlias:H,importsFields:W,extensions:V,fileSystem:G,fullySpecified:Y,mainFields:K,mainFiles:J,modules:Z,plugins:Q,pnpApi:X,resolveToContext:ee,preferRelative:te,preferAbsolute:ne,symlinks:re,unsafeCache:ie,resolver:oe,restrictions:se,roots:ae}=t,ue=Q.slice(),le=oe||new i(G,t);le.ensureHook("resolve"),le.ensureHook("internalResolve"),le.ensureHook("newInternalResolve"),le.ensureHook("parsedResolve"),le.ensureHook("describedResolve"),le.ensureHook("rawResolve"),le.ensureHook("normalResolve"),le.ensureHook("internal"),le.ensureHook("rawModule"),le.ensureHook("alternateRawModule"),le.ensureHook("module"),le.ensureHook("resolveAsModule"),le.ensureHook("undescribedResolveInPackage"),le.ensureHook("resolveInPackage"),le.ensureHook("resolveInExistingDirectory"),le.ensureHook("relative"),le.ensureHook("describedRelative"),le.ensureHook("directory"),le.ensureHook("undescribedExistingDirectory"),le.ensureHook("existingDirectory"),le.ensureHook("undescribedRawFile"),le.ensureHook("rawFile"),le.ensureHook("file"),le.ensureHook("finalFile"),le.ensureHook("existingFile"),le.ensureHook("resolved"),le.hooks.newInteralResolve=le.hooks.newInternalResolve;for(const{source:e,resolveOptions:t}of[{source:"resolve",resolveOptions:{fullySpecified:Y}},{source:"internal-resolve",resolveOptions:{fullySpecified:!1}}])ie?(ue.push(new B(e,T,ie,N,`new-${e}`)),ue.push(new F(`new-${e}`,t,"parsed-resolve"))):ue.push(new F(e,t,"parsed-resolve"));ue.push(new h("parsed-resolve",q,!1,"described-resolve")),ue.push(new _("after-parsed-resolve","described-resolve")),ue.push(new _("described-resolve","raw-resolve")),r.length>0&&ue.push(new l("described-resolve",r,"internal-resolve")),n.length>0&&ue.push(new l("raw-resolve",n,"internal-resolve")),$.forEach((e=>{ue.push(new u("raw-resolve",e,"internal-resolve"))})),H.forEach((e=>ue.push(new m("raw-resolve",e,"normal-resolve")))),ue.push(new _("raw-resolve","normal-resolve")),te&&ue.push(new b("after-normal-resolve","relative")),ue.push(new f("after-normal-resolve",{module:!0},"resolve as module",!1,"raw-module")),ue.push(new f("after-normal-resolve",{internal:!0},"resolve as internal import",!1,"internal")),ne&&ue.push(new b("after-normal-resolve","relative")),ae.size>0&&ue.push(new O("after-normal-resolve",ae,"relative")),te||ne||ue.push(new b("after-normal-resolve","relative")),W.forEach((e=>{ue.push(new y("internal",L,e,"relative","internal-resolve"))})),U.forEach((e=>{ue.push(new k("raw-module",e,"resolve-as-module"))})),Z.forEach((e=>{Array.isArray(e)?e.includes("node_modules")&&X?(ue.push(new w("raw-module",e.filter((e=>"node_modules"!==e)),"module")),ue.push(new x("raw-module",X,"undescribed-resolve-in-package","alternate-raw-module")),ue.push(new w("alternate-raw-module",["node_modules"],"module"))):ue.push(new w("raw-module",e,"module")):ue.push(new E("raw-module",e,"module"))})),ue.push(new D("module","resolve-as-module")),ee||ue.push(new f("resolve-as-module",{directory:!1,request:"."},"single file module",!0,"undescribed-raw-file")),ue.push(new d("resolve-as-module","undescribed-resolve-in-package")),ue.push(new h("undescribed-resolve-in-package",q,!1,"resolve-in-package")),ue.push(new _("after-undescribed-resolve-in-package","resolve-in-package")),U.forEach((e=>{ue.push(new p("resolve-in-package",L,e,"relative"))})),ue.push(new _("resolve-in-package","resolve-in-existing-directory")),ue.push(new b("resolve-in-existing-directory","relative")),ue.push(new h("relative",q,!0,"described-relative")),ue.push(new _("after-relative","described-relative")),ee?ue.push(new _("described-relative","directory")):(ue.push(new f("described-relative",{directory:!1},null,!0,"raw-file")),ue.push(new f("described-relative",{fullySpecified:!1},"as directory",!0,"directory"))),ue.push(new d("directory","undescribed-existing-directory")),ee?ue.push(new _("undescribed-existing-directory","resolved")):(ue.push(new h("undescribed-existing-directory",q,!1,"existing-directory")),J.forEach((e=>{ue.push(new P("undescribed-existing-directory",e,"undescribed-raw-file"))})),K.forEach((e=>{ue.push(new v("existing-directory",e,"resolve-in-existing-directory"))})),J.forEach((e=>{ue.push(new P("existing-directory",e,"undescribed-raw-file"))})),ue.push(new h("undescribed-raw-file",q,!0,"raw-file")),ue.push(new _("after-undescribed-raw-file","raw-file")),ue.push(new f("raw-file",{fullySpecified:!0},null,!1,"file")),z||ue.push(new j("raw-file","no extension","file")),V.forEach((e=>{ue.push(new c("raw-file",e,"file"))})),n.length>0&&ue.push(new l("file",n,"internal-resolve")),$.forEach((e=>{ue.push(new u("file",e,"internal-resolve"))})),ue.push(new _("file","final-file")),ue.push(new g("final-file","existing-file")),re&&ue.push(new S("existing-file","existing-file")),ue.push(new _("existing-file","resolved")));const ce=le.hooks.resolved;se.size>0&&ue.push(new C(ce,se)),ue.push(new A(ce));for(const e of ue)"function"==typeof e?e.call(le,le):e&&e.apply(le);return le}},2620:e=>{"use strict";const t="/".charCodeAt(0),n="\\".charCodeAt(0),r=(e,r)=>{if(!e.startsWith(r))return!1;if(e.length===r.length)return!0;const i=e.charCodeAt(r.length);return i===t||i===n};e.exports=class{constructor(e,t){this.source=e,this.restrictions=t}apply(e){e.getHook(this.source).tapAsync("RestrictionsPlugin",((e,t,n)=>{if("string"==typeof e.path){const i=e.path;for(const e of this.restrictions)if("string"==typeof e){if(!r(i,e))return t.log&&t.log(`${i} is not inside of the restriction ${e}`),n(null,null)}else if(!e.test(i))return t.log&&t.log(`${i} doesn't match the restriction ${e}`),n(null,null)}n()}))}}},3566:e=>{"use strict";e.exports=class{constructor(e){this.source=e}apply(e){this.source.tapAsync("ResultPlugin",((t,n,r)=>{const i={...t};n.log&&n.log("reporting result "+i.path),e.hooks.result.callAsync(i,n,(e=>{if(e)return r(e);"function"==typeof n.yield?(n.yield(i),r(null,null)):r(null,i)}))}))}}},4012:(e,t,n)=>{"use strict";const r=n(8048);e.exports=class{constructor(e,t,n){this.roots=Array.from(t),this.source=e,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("RootsPlugin",((n,i,o)=>{const s=n.request;return s&&s.startsWith("/")?void r(this.roots,((r,o)=>{const a=e.join(r,s.slice(1)),u={...n,path:a,relativePath:n.relativePath&&a};e.doResolve(t,u,`root path ${r}`,i,o)}),o):o()}))}}},8022:(e,t,n)=>{"use strict";const r=n(5877),i="/".charCodeAt(0);e.exports=class{constructor(e,t,n){this.source=e,this.target=n,this.fieldName=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("SelfReferencePlugin",((n,o,s)=>{if(!n.descriptionFilePath)return s();const a=n.request;if(!a)return s();if(!r.getField(n.descriptionFileData,this.fieldName))return s();const u=r.getField(n.descriptionFileData,"name");if("string"!=typeof u)return s();if(!a.startsWith(u)||a.length!==u.length&&a.charCodeAt(u.length)!==i)return s();{const r=`.${a.slice(u.length)}`,i={...n,request:r,path:n.descriptionFileRoot,relativePath:"."};e.doResolve(t,i,"self reference",o,s)}}))}}},7278:(e,t,n)=>{"use strict";const r=n(8048),i=n(1036),{getType:o,PathType:s}=n(6932);e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target),n=e.fileSystem;e.getHook(this.source).tapAsync("SymlinkPlugin",((a,u,l)=>{if(a.ignoreSymlinks)return l();const c=i(a.path),f=c.segments,h=c.paths;let d=!1,p=-1;r(h,((e,t)=>{p++,u.fileDependencies&&u.fileDependencies.add(e),n.readlink(e,((e,n)=>{if(!e&&n){f[p]=n,d=!0;const e=o(n.toString());if(e===s.AbsoluteWin||e===s.AbsolutePosix)return t(null,p)}t()}))}),((n,r)=>{if(!d)return l();const i=("number"==typeof r?f.slice(0,r+1):f.slice()).reduceRight(((t,n)=>e.join(t,n))),o={...a,path:i};e.doResolve(t,o,"resolved symlink to "+i,u,l)}))}))}}},5151:e=>{"use strict";e.exports=function(e){this.fs=e,this.lstat=void 0,this.lstatSync=void 0;const t=e.lstatSync;t&&(this.lstat=(n,r,i)=>{let o;try{o=i?t.call(e,n,r):t.call(e,n)}catch(e){return(i||r)(e)}(i||r)(null,o)},this.lstatSync=(n,r)=>t.call(e,n,r)),this.stat=(t,n,r)=>{let i;try{i=r?e.statSync(t,n):e.statSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.statSync=(t,n)=>e.statSync(t,n),this.readdir=(t,n,r)=>{let i;try{i=r?e.readdirSync(t,n):e.readdirSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.readdirSync=(t,n)=>e.readdirSync(t,n),this.readFile=(t,n,r)=>{let i;try{i=r?e.readFileSync(t,n):e.readFileSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.readFileSync=(t,n)=>e.readFileSync(t,n),this.readlink=(t,n,r)=>{let i;try{i=r?e.readlinkSync(t,n):e.readlinkSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.readlinkSync=(t,n)=>e.readlinkSync(t,n),this.readJson=void 0,this.readJsonSync=void 0;const n=e.readJsonSync;n&&(this.readJson=(t,r)=>{let i;try{i=n.call(e,t)}catch(e){return r(e)}r(null,i)},this.readJsonSync=t=>n.call(e,t)),this.realpath=void 0,this.realpathSync=void 0;const r=e.realpathSync;r&&(this.realpath=(t,n,i)=>{let o;try{o=i?r.call(e,t,n):r.call(e,t)}catch(e){return(i||n)(e)}(i||n)(null,o)},this.realpathSync=(t,n)=>r.call(e,t,n))}},9413:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.message=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("TryNextPlugin",((n,r,i)=>{e.doResolve(t,n,this.message,r,i)}))}}},3177:e=>{"use strict";e.exports=class{constructor(e,t,n,r,i){this.source=e,this.filterPredicate=t,this.withContext=r,this.cache=n,this.target=i}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UnsafeCachePlugin",((n,r,i)=>{if(!this.filterPredicate(n))return i();const o="function"==typeof r.yield,s=function(e,t,n){return JSON.stringify({type:e,context:n?t.context:"",path:t.path,query:t.query,fragment:t.fragment,request:t.request})}(o?"yield":"default",n,this.withContext),a=this.cache[s];if(a){if(o){const e=r.yield;if(Array.isArray(a))for(const t of a)e(t);else e(a);return i(null,null)}return i(null,a)}let u,l;const c=[];o&&(u=r.yield,l=e=>{c.push(e)}),e.doResolve(t,n,null,l?{...r,yield:l}:r,((e,t)=>{if(e)return i(e);if(o){t&&c.push(t);for(const e of c)u(e);return this.cache[s]=c,i(null,null)}if(t)return i(null,this.cache[s]=t);i()}))}))}}},492:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.filename=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UseFilePlugin",((n,r,i)=>{const o=e.join(n.path,this.filename),s={...n,path:o,relativePath:n.relativePath&&e.join(n.relativePath,this.filename)};e.doResolve(t,s,"using path: "+o,r,i)}))}}},8699:e=>{"use strict";e.exports=function(e,t){let n,r=!1;return e.log&&(n=t?n=>{r||(e.log(t),r=!0),e.log(" "+n)}:e.log),{log:n,yield:e.yield,fileDependencies:e.fileDependencies,contextDependencies:e.contextDependencies,missingDependencies:e.missingDependencies,stack:e.stack}}},8048:e=>{"use strict";e.exports=function(e,t,n){if(0===e.length)return n();let r=0;const i=()=>{let o;return t(e[r++],((t,s)=>{if(t||void 0!==s||r>=e.length)return n(t,s,r);if(!1===o)for(;i(););o=!0}),r),o||(o=!1),o};for(;i(););}},2207:e=>{"use strict";e.exports=function(e,t){if("string"==typeof t.__innerRequest&&t.__innerRequest_request===t.request&&t.__innerRequest_relativePath===t.relativePath)return t.__innerRequest;let n;return t.request?(n=t.request,/^\.\.?(?:\/|$)/.test(n)&&t.relativePath&&(n=e.join(t.relativePath,n))):n=t.relativePath,t.__innerRequest_request=t.request,t.__innerRequest_relativePath=t.relativePath,t.__innerRequest=n}},1036:e=>{"use strict";e.exports=function(e){if("/"===e)return{paths:["/"],segments:[""]};const t=e.split(/(.*?[\\/]+)/),n=[e],r=[t[t.length-1]];let i=t[t.length-1];e=e.substring(0,e.length-i.length-1);for(let o=t.length-2;o>2;o-=2)n.push(e),i=t[o],e=e.substring(0,e.length-i.length)||"/",r.push(i.slice(0,-1));return i=t[1],r.push(i),n.push(i),{paths:n,segments:r}},e.exports.basename=function(e){const t=e.lastIndexOf("/"),n=e.lastIndexOf("\\"),r=t<0?n:n<0?t:t<n?n:t;return r<0?null:e.slice(r+1)}},4506:(e,t,n)=>{"use strict";const r=n(2387),i=n(3367),o=n(2422),s=new i(r,4e3),a={environments:["node+es3+es5+process+native"]},u=o.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],fileSystem:s}),l=o.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],useSyncFileSystemCalls:!0,fileSystem:s}),c=(e,t,n)=>("string"==typeof e&&(n=t,t=e,e=a),l.resolveSync(e,t,n));function f(e){const t=o.createResolver({useSyncFileSystemCalls:!0,fileSystem:s,...e});return function(e,n,r){return"string"==typeof e&&(r=n,n=e,e=a),t.resolveSync(e,n,r)}}const h=(e,t)=>{const n=Object.getOwnPropertyDescriptors(t);return Object.defineProperties(e,n),Object.freeze(e)};e.exports=h(((e,t,n,r,i)=>{"string"==typeof e&&(i=r,r=n,n=t,t=e,e=a),"function"!=typeof i&&(i=r),u.resolve(e,t,n,r,i)}),{get sync(){return c},create:h((function(e){const t=o.createResolver({fileSystem:s,...e});return function(e,n,r,i,o){"string"==typeof e&&(o=i,i=r,r=n,n=e,e=a),"function"!=typeof o&&(o=i),t.resolve(e,n,r,i,o)}}),{get sync(){return f}}),ResolverFactory:o,CachedInputFileSystem:i,get CloneBasenamePlugin(){return n(8034)},get LogInfoPlugin(){return n(7475)},get forEachBail(){return n(8048)}})},4480:(e,t,n)=>{"use strict";const{parseIdentifier:r}=n(3488),i="/".charCodeAt(0),o=".".charCodeAt(0),s="#".charCodeAt(0),a=/\*/g;function u(e,t,n,r){return function(i,o){i=n(i);const s=function(e,t){if(Object.prototype.hasOwnProperty.call(t,e)&&!e.includes("*")&&!e.endsWith("/"))return[t[e],"",!1,!1,e];let n,r="";const i=Object.getOwnPropertyNames(t);for(let t=0;t<i.length;t++){const o=i[t],s=o.indexOf("*");if(-1!==s&&e.startsWith(o.slice(0,s))){const t=o.slice(s+1);e.length>=o.length&&e.endsWith(t)&&1===d(r,o)&&o.lastIndexOf("*")===s&&(r=o,n=e.slice(s,e.length-t.length))}else"/"===o[o.length-1]&&e.startsWith(o)&&1===d(r,o)&&(r=o,n=e.slice(o.length))}if(""===r)return null;return[t[r],n,r.endsWith("/"),r.includes("*"),r]}(t(i),e);if(null===s)return[[],null];const[a,u,l,c,f]=s;let h=null;if(p(a)){if(h=y(a,o),null===h)return[[],null]}else h=a;return[m(u,c,l,h,o,r),f]}}function l(e){if(e.charCodeAt(0)!==o)throw new Error('Request should be relative path and start with "."');if(1===e.length)return"";if(e.charCodeAt(1)!==i)throw new Error('Request should be relative path and start with "./"');if(e.charCodeAt(e.length-1)===i)throw new Error("Only requesting file allowed");return e.slice(2)}function c(e){if(e.charCodeAt(0)!==s)throw new Error('Request should start with "#"');if(1===e.length)throw new Error("Request should have at least 2 characters");if(e.charCodeAt(1)===i)throw new Error('Request should not start with "#/"');if(e.charCodeAt(e.length-1)===i)throw new Error("Only requesting file allowed");return e.slice(1)}function f(e,t){const n=r(e);if(!n)return;const[o]=n;if(o.charCodeAt(o.length-1)===i!==t)throw new Error(t?`Expecting folder to folder mapping. ${JSON.stringify(e)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(e)} should not end with "/"`)}function h(e,t){const n=r(e);if(!n)return;const[o]=n;if(o.charCodeAt(o.length-1)===i!==t)throw new Error(t?`Expecting folder to folder mapping. ${JSON.stringify(e)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(e)} should not end with "/"`)}function d(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function p(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function m(e,t,n,r,i,o){if(null===r)return[];if("string"==typeof r)return[g(e,t,n,r,o)];const s=[];for(const a of r){if("string"==typeof a){s.push(g(e,t,n,a,o));continue}const r=y(a,i);if(!r)continue;const u=m(e,t,n,r,i,o);for(const e of u)s.push(e)}return s}function g(e,t,n,r,i){if(void 0===e)return i(r,!1),r;if(n)return i(r,!0),r+e;i(r,!1);let o=r;return t&&(o=o.replace(a,e.replace(/\$/g,"$$"))),o}function y(e,t){let n=[[e,Object.keys(e),0]];e:for(;n.length>0;){const[e,r,i]=n[n.length-1];for(let o=i;o<r.length;o++){const i=r[o];if("default"===i){const t=e[i];if(p(t)){const e=t;n[n.length-1][2]=o+1,n.push([e,Object.keys(e),0]);continue e}return t}if(t.has(i)){const t=e[i];if(p(t)){const e=t;n[n.length-1][2]=o+1,n.push([e,Object.keys(e),0]);continue e}return t}}n.pop()}return null}e.exports.processExportsField=function(e){return u(function(e){if("string"==typeof e||Array.isArray(e))return{".":e};const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(r.charCodeAt(0)!==o){if(0===n){for(;n<t.length;){const e=t[n].charCodeAt(0);if(e===o||e===i)throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(r)})`);n++}return{".":e}}throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(r)})`)}if(1!==r.length&&r.charCodeAt(1)!==i)throw new Error(`Exports field key should be relative path and start with "./" (key: ${JSON.stringify(r)})`)}return e}(e),(e=>0===e.length?".":"./"+e),l,f)},e.exports.processImportsField=function(e){return u(e,(e=>"#"+e),c,h)}},3488:e=>{"use strict";const t=/^(#?(?:\0.|[^?#\0])*)(\?(?:\0.|[^#\0])*)?(#.*)?$/;e.exports.parseIdentifier=function(e){const n=t.exec(e);return n?[n[1].replace(/\0(.)/g,"$1"),n[2]?n[2].replace(/\0(.)/g,"$1"):"",n[3]||""]:null}},6932:(e,t,n)=>{"use strict";const r=n(6928),i="#".charCodeAt(0),o="/".charCodeAt(0),s="\\".charCodeAt(0),a="A".charCodeAt(0),u="Z".charCodeAt(0),l="a".charCodeAt(0),c="z".charCodeAt(0),f=".".charCodeAt(0),h=":".charCodeAt(0),d=r.posix.normalize,p=r.win32.normalize,m=Object.freeze({Empty:0,Normal:1,Relative:2,AbsoluteWin:3,AbsolutePosix:4,Internal:5});t.PathType=m,t.invalidSegmentRegEx=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,t.deprecatedInvalidSegmentRegEx=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;const g=e=>{switch(e.length){case 0:return m.Empty;case 1:switch(e.charCodeAt(0)){case f:return m.Relative;case o:return m.AbsolutePosix;case i:return m.Internal}return m.Normal;case 2:{const t=e.charCodeAt(0);switch(t){case f:switch(e.charCodeAt(1)){case f:case o:return m.Relative}return m.Normal;case o:return m.AbsolutePosix;case i:return m.Internal}return e.charCodeAt(1)===h&&(t>=a&&t<=u||t>=l&&t<=c)?m.AbsoluteWin:m.Normal}}const t=e.charCodeAt(0);switch(t){case f:switch(e.charCodeAt(1)){case o:return m.Relative;case f:return e.charCodeAt(2)===o?m.Relative:m.Normal}return m.Normal;case o:return m.AbsolutePosix;case i:return m.Internal}if(e.charCodeAt(1)===h){const n=e.charCodeAt(2);if((n===s||n===o)&&(t>=a&&t<=u||t>=l&&t<=c))return m.AbsoluteWin}return m.Normal};t.getType=g;const y=e=>{switch(g(e)){case m.Empty:return e;case m.AbsoluteWin:return p(e);case m.Relative:{const t=d(e);return g(t)===m.Relative?t:`./${t}`}}return d(e)};t.normalize=y;const D=(e,t)=>{if(!t)return y(e);const n=g(t);switch(n){case m.AbsolutePosix:return d(t);case m.AbsoluteWin:return p(t)}switch(g(e)){case m.Normal:case m.Relative:case m.AbsolutePosix:return d(`${e}/${t}`);case m.AbsoluteWin:return p(`${e}\\${t}`)}switch(n){case m.Empty:return e;case m.Relative:{const t=d(e);return g(t)===m.Relative?t:`./${t}`}}return d(e)};t.join=D;const b=new Map;t.cachedJoin=(e,t)=>{let n,r=b.get(e);if(void 0===r)b.set(e,r=new Map);else if(n=r.get(t),void 0!==n)return n;return n=D(e,t),r.set(t,n),n}},7829:(e,t,n)=>{const{dirname:r,resolve:i}=n(6928),{readdirSync:o,statSync:s}=n(9896);e.exports=function(e,t){let n,a=i(".",e);for(s(a).isDirectory()||(a=r(a));;){if(n=t(a,o(a)),n)return i(a,n);if(a=r(n=a),n===a)break}}},4602:(e,t,n)=>{var r=n(9896),i=n(9023),o=n(2203),s=o.Readable,a=o.Writable,u=o.PassThrough,l=n(8496),c=n(4434).EventEmitter;function f(e,t){t=t||{},c.call(this),this.fd=e,this.pend=new l,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}function h(e,t){t=t||{},s.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}function d(e,t){t=t||{},a.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=null==t.end?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}function p(e,t){c.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}t.createFromBuffer=function(e,t){return new p(e,t)},t.createFromFd=function(e,t){return new f(e,t)},t.BufferSlicer=p,t.FdSlicer=f,i.inherits(f,c),f.prototype.read=function(e,t,n,i,o){var s=this;s.pend.go((function(a){r.read(s.fd,e,t,n,i,(function(e,t,n){a(),o(e,t,n)}))}))},f.prototype.write=function(e,t,n,i,o){var s=this;s.pend.go((function(a){r.write(s.fd,e,t,n,i,(function(e,t,n){a(),o(e,t,n)}))}))},f.prototype.createReadStream=function(e){return new h(this,e)},f.prototype.createWriteStream=function(e){return new d(this,e)},f.prototype.ref=function(){this.refCount+=1},f.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&r.close(e.fd,(function(t){t?e.emit("error",t):e.emit("close")}))}},i.inherits(h,s),h.prototype._read=function(e){var t=this;if(!t.destroyed){var n=Math.min(t._readableState.highWaterMark,e);if(null!=t.endOffset&&(n=Math.min(n,t.endOffset-t.pos)),n<=0)return t.destroyed=!0,t.push(null),void t.context.unref();t.context.pend.go((function(e){if(t.destroyed)return e();var i=new Buffer(n);r.read(t.context.fd,i,0,n,t.pos,(function(n,r){n?t.destroy(n):0===r?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=r,t.push(i.slice(0,r))),e()}))}))}},h.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())},i.inherits(d,a),d.prototype._write=function(e,t,n){var i=this;if(!i.destroyed){if(i.pos+e.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go((function(t){if(i.destroyed)return t();r.write(i.context.fd,e,0,e.length,i.pos,(function(e,r){e?(i.destroy(),t(),n(e)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),t(),n())}))}))}},d.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(p,c),p.prototype.read=function(e,t,n,r,i){var o=r+n,s=o-this.buffer.length,a=s>0?s:n;this.buffer.copy(e,t,r,o),setImmediate((function(){i(null,a)}))},p.prototype.write=function(e,t,n,r,i){e.copy(this.buffer,r,t,t+n),setImmediate((function(){i(null,n,e)}))},p.prototype.createReadStream=function(e){var t=new u(e=e||{});t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var n=this.buffer.slice(t.start,t.pos),r=0;;){var i=r+this.maxChunkSize;if(i>=n.length){r<n.length&&t.write(n.slice(r,n.length));break}t.write(n.slice(r,i)),r=i}return t.end(),t.destroy=function(){t.destroyed=!0},t},p.prototype.createWriteStream=function(e){var t=this,n=new a(e=e||{});return n.start=e.start||0,n.endOffset=null==e.end?this.buffer.length:+e.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(e,r,i){if(!n.destroyed){var o=n.pos+e.length;if(o>n.endOffset){var s=new Error("maximum file length exceeded");return s.code="ETOOBIG",n.destroyed=!0,void i(s)}e.copy(t.buffer,n.pos,0,e.length),n.bytesWritten+=e.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},p.prototype.ref=function(){this.refCount+=1},p.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},1674:e=>{"use strict";e.exports=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1))return null;const n=(e,n)=>{n=Object.assign({offset:0},n);for(let r=0;r<e.length;r++)if(e[r]!==t[r+n.offset])return!1;return!0};if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])&&n([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(n([80,75,3,4])&&n([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([0,0,0])&&(24===t[3]||32===t[3])&&n([102,116,121,112],{offset:4})||n([51,103,112,53])||n([0,0,0,28,102,116,121,112,109,112,52,50])&&n([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||n([0,0,0,28,102,116,121,112,105,115,111,109])||n([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(n([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const e=t.subarray(4,4100),n=e.findIndex(((e,t,n)=>66===n[t]&&130===n[t+1]));if(n>=0){const t=n+3,r=n=>Array.from(n).every(((n,r)=>e[t+r]===n.charCodeAt(0)));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}return n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:n([82,73,70,70])&&n([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:n([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:n([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:n([73,68,51])||n([255,251])?{ext:"mp3",mime:"audio/mpeg"}:n([102,116,121,112,77,52,65],{offset:4})||n([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:n([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:n([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:n([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:n([82,73,70,70])&&n([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:n([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:n([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:n([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||!n([87,83],{offset:1})?n([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:n([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:n([119,79,70,70])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:n([119,79,70,50])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:n([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:n([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:n([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:n([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:n([37,33])?{ext:"ps",mime:"application/postscript"}:n([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:n([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:n([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:n([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:n([77,83,67,70])||n([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:n([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:n([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:n([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:n([31,160])||n([31,157])?{ext:"Z",mime:"application/x-compress"}:n([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:n([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:n([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:n([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},9457:(e,t,n)=>{e.exports=n(9896).constants||n(9140)},2838:e=>{"use strict";e.exports=function(e){if(void 0===e&&(e=2),e>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var t=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var n=(new Error).stack;if(Error.prepareStackTrace=t,null!==n&&"object"==typeof n)return n[e]?n[e].getFileName():void 0}},7991:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},2387:(e,t,n)=>{var r,i,o=n(9896),s=n(4862),a=n(8959),u=n(7991),l=n(9023);function c(e,t){Object.defineProperty(e,r,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",i="___graceful-fs.previous");var f,h=function(){};if(l.debuglog?h=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[r]){var d=global[r]||[];c(o,d),o.close=function(e){function t(t,n){return e.call(o,t,(function(e){e||g(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){h(o[r]),n(2613).equal(o[r].length,0)}))}function p(e){s(e),e.gracefulify=p,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){return"function"==typeof n&&(r=n,n=null),function e(n,r,i,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[n,r,i],t,o||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),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):m([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),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):m([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,n,r){return"function"==typeof n&&(r=n,n=0),function e(t,n,r,o,s){return i(t,n,r,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,n,r,o],i,s||Date.now(),Date.now()])}))}(e,t,n,r)});var o=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=u.test(process.version)?function(e,t,n,r){return o(e,i(e,t,n,r))}:function(e,t,n,r){return o(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,o,s)):m([r,[e,t,n],o,i||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,y=l.WriteStream}var c=e.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var f=e.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var h=g;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=y;function g(e,t){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.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 D=e.open;function b(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,o){return D(t,n,r,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=b,e}function m(e){h("ENQUEUE",e[0].name,e[1]),o[r].push(e),y()}function g(){for(var e=Date.now(),t=0;t<o[r].length;++t)o[r][t].length>2&&(o[r][t][3]=e,o[r][t][4]=e);y()}function y(){if(clearTimeout(f),f=void 0,0!==o[r].length){var e=o[r].shift(),t=e[0],n=e[1],i=e[2],s=e[3],a=e[4];if(void 0===s)h("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){h("TIMEOUT",t.name,n);var u=n.pop();"function"==typeof u&&u.call(null,i)}else{var l=Date.now()-a,c=Math.max(a-s,1);l>=Math.min(1.2*c,100)?(h("RETRY",t.name,n),t.apply(null,n.concat([s]))):o[r].push(e)}void 0===f&&(f=setTimeout(y,0))}}global[r]||c(global,o[r]),e.exports=p(u(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=p(o),o.__patched=!0)},8959:(e,t,n)=>{var r=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var o=this;this.path=n,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,u=s.length;a<u;a++){var l=s[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),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}null===this.fd?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()})):process.nextTick((function(){o._read()}))},WriteStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this),this.path=n,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 u=o[s];this[u]=i[u]}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())}}}},4862:(e,t,n)=>{var r=n(9140),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){function t(t){return t?function(n,r,i){return t.call(e,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function n(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(n,r,i,o){return t.call(e,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(n,r,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 r&&(i=r,r=null),r?t.call(e,n,r,o):t.call(e,n,o)}:t}function u(t){return t?function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var c;r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,(function(t,r){t?i&&i(t):e.fchmod(r,n,(function(t){e.close(r,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,n){var i,o=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),s=!0;try{i=e.fchmodSync(o,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}}(e),e.lutimes||function(e){r.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,i,o){e.open(t,r.O_SYMLINK,(function(t,r){t?o&&o(t):e.futimes(r,n,i,(function(t){e.close(r,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,n,i){var o,s=e.openSync(t,r.O_SYMLINK),a=!0;try{o=e.futimesSync(s,n,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,n,r){r&&process.nextTick(r)},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=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,r,i){var o=Date.now(),s=0;t(n,r,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(r,(function(e,o){e&&"ENOENT"===e.code?t(n,r,a):i(u)}))}),s),void(s<100&&(s+=10));i&&i(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function n(n,r,i,o,s,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,f,h){if(c&&"EAGAIN"===c.code&&l<10)return l++,t.call(e,n,r,i,o,s,u);a.apply(this,arguments)}}return t.call(e,n,r,i,o,s,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,n,r,i,o){for(var s=0;;)try{return c.call(e,t,n,r,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}})}},5704:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}},9293:(e,t,n)=>{try{var r=n(9023);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(198)}},198: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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},1664:e=>{"use strict";const t=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);e.exports=t,e.exports.default=t},8249:e=>{"use strict";e.exports=function(e,t){if(t){if("object"!=typeof t)throw new TypeError(String(t)+" is not an object. Expected an object that has boolean `includeZero` property.");if("includeZero"in t){if("boolean"!=typeof t.includeZero)throw new TypeError(String(t.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.");if(t.includeZero&&0===e)return!0}}return Number.isSafeInteger(e)&&e>=1}},9134:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},9283:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))n.call(o,l)&&(a[l]=o[l]);if(t){s=t(o);for(var c=0;c<s.length;c++)r.call(o,s[c])&&(a[s[c]]=o[s[c]])}}return a}},9819:(e,t,n)=>{var r=n(1591);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},8496:e=>{function t(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function n(e){e.pending+=1;var t=!1;return function(i){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||i,e.pending-=1,e.waiting.length>0&&e.pending<e.max)r(e,e.waiting.shift());else if(0===e.pending){var o=e.listeners;e.listeners=[],o.forEach(n)}};function n(t){t(e.error)}}function r(e,t){t(n(e))}e.exports=t,t.prototype.go=function(e){this.pending<this.max?r(this,e):this.waiting.push(e)},t.prototype.wait=function(e){0===this.pending?e(this.error):this.listeners.push(e)},t.prototype.hold=function(){return n(this)}},6327:e=>{"use strict";var t=function(e,t,n){return function(){for(var r=this,i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return new t((function(t,o){i.push((function(e,r){if(e)o(e);else if(n.multiArgs){for(var i=new Array(arguments.length-1),s=1;s<arguments.length;s++)i[s-1]=arguments[s];t(i)}else t(r)})),e.apply(r,i)}))}},n=e.exports=function(e,n,r){"function"!=typeof n&&(r=n,n=Promise),(r=r||{}).exclude=r.exclude||[/.+Sync$/];var i="function"==typeof e?function(){return r.excludeMain?e.apply(this,arguments):t(e,n,r).apply(this,arguments)}:{};return Object.keys(e).reduce((function(i,o){var s=e[o];return i[o]="function"==typeof s&&function(e){var t=function(t){return"string"==typeof t?e===t:t.test(e)};return r.include?r.include.some(t):!r.exclude.some(t)}(o)?t(s,n,r):s,i}),i)};n.all=n},9491:(e,t,n)=>{"use strict";e.exports="function"==typeof Promise?Promise:n(9355)},9355:e=>{"use strict";var t,n="pending",r="settled",i="fulfilled",o="rejected",s=function(){},a="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,u="undefined"==typeof setImmediate?setTimeout:setImmediate,l=[];function c(){for(var e=0;e<l.length;e++)l[e][0](l[e][1]);l=[],t=!1}function f(e,n){l.push([e,n]),t||(t=!0,u(c,0))}function h(e){var t=e.owner,n=t._state,r=t._data,s=e[n],a=e.then;if("function"==typeof s){n=i;try{r=s(r)}catch(e){g(a,e)}}d(a,r)||(n===i&&p(a,r),n===o&&g(a,r))}function d(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?m(e,r):p(e,r))}),(function(t){n||(n=!0,g(e,t))})),!0}}catch(t){return n||g(e,t),!0}return!1}function p(e,t){e!==t&&d(e,t)||m(e,t)}function m(e,t){e._state===n&&(e._state=r,e._data=t,f(D,e))}function g(e,t){e._state===n&&(e._state=r,e._data=t,f(b,e))}function y(e){e._then=e._then.forEach(h)}function D(e){e._state=i,y(e)}function b(e){e._state=o,y(e),!e._handled&&a&&global.process.emit("unhandledRejection",e._data,e)}function v(e){global.process.emit("rejectionHandled",e)}function w(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof w==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){g(t,e)}try{e((function(e){p(t,e)}),n)}catch(e){n(e)}}(e,this)}w.prototype={constructor:w,_state:n,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(s),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===o&&a&&f(v,this)),this._state===i||this._state===o?f(h,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},w.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new w((function(t,n){var r=[],i=0;function o(e){return i++,function(n){r[e]=n,--i||t(r)}}for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"==typeof s.then?s.then(o(a),n):r[a]=s;i||t(r)}))},w.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new w((function(t,n){for(var r,i=0;i<e.length;i++)(r=e[i])&&"function"==typeof r.then?r.then(t,n):t(r)}))},w.resolve=function(e){return e&&"object"==typeof e&&e.constructor===w?e:new w((function(t){t(e)}))},w.reject=function(e){return new w((function(t,n){n(e)}))},e.exports=w},7925:e=>{"use strict";"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,n,r){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,n)}));case 4:return process.nextTick((function(){e.call(null,t,n,r)}));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},5828:(e,t,n)=>{e.exports=n(1738).Duplex},7890:(e,t,n)=>{"use strict";var r=n(7925),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=Object.create(n(1218));o.inherits=n(9293);var s=n(9616),a=n(3920);o.inherits(f,s);for(var u=i(a.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=a.prototype[c])}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||r.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(),r.nextTick(t,e)}},8180:(e,t,n)=>{"use strict";e.exports=o;var r=n(5118),i=Object.create(n(1218));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(9293),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},9616:(e,t,n)=>{"use strict";var r=n(7925);e.exports=D;var i,o=n(9134);D.ReadableState=y,n(4434).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=n(6572),u=n(1814).Buffer,l=global.Uint8Array||function(){},c=Object.create(n(1218));c.inherits=n(9293);var f=n(9023),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p=n(2306),m=n(7804);c.inherits(D,a);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(i=i||n(7890));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(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=n(721).I),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function D(e){if(i=i||n(7890),!(this instanceof D))return new D(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 b(e,t,n,r,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}}(e,s)):(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?v(e,s,t,!1):x(e,s)):v(e,s,t,!1))):r||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function v(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),x(e,t)}Object.defineProperty(D.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),D.prototype.destroy=m.destroy,D.prototype._undestroy=m.undestroy,D.prototype._destroy=function(e,t){this.push(null),t(e)},D.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},D.prototype.unshift=function(e){return b(this,e,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(e){return d||(d=n(721).I),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var w=8388608;function E(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>=w?e=w:(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){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(F,e):F(e))}function F(e){h("emit readable"),e.emit("readable"),k(e)}function x(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function A(e){h("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function S(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.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?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0==(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}D.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=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?j(this):_(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&j(this),null;var r,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=E(n,t))),null===(r=e>0?S(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&j(this)),null!==r&&this.emit("data",r),r},D.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},D.prototype.pipe=function(e,t){var n=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?y:u;function u(){h("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",(function t(r,o){h("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",d),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=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,k(e))}}(n);e.on("drain",l);var c=!1,f=!1;function d(t){h("ondata"),f=!1,!1!==e.write(t)||f||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==P(i.pipes,e))&&!c&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function p(t){h("onerror",t),y(),e.removeListener("error",p),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=P(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,n)),this},D.prototype.on=function(e,t){var n=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&&_(this):r.nextTick(A,this))}return n},D.prototype.addListener=D.prototype.on,D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(O,e,t))}(this,e)),this},D.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},D.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!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<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),D._fromList=S},5118:(e,t,n)=>{"use strict";e.exports=s;var r=n(7890),i=Object.create(n(1218));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(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);r.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,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),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=n(9293),i.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.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 n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},3920:(e,t,n)=>{"use strict";var r=n(7925);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;g.WritableState=m;var a=Object.create(n(1218));a.inherits=n(9293);var u,l={deprecate:n(4323)},c=n(6572),f=n(1814).Buffer,h=global.Uint8Array||function(){},d=n(7804);function p(){}function m(e,t){o=o||n(7890),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:a&&(l||0===l)?l:c,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 n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),E(e,t))}(e,n,i,t,o);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||b(e,n),i?s(D,e,n,a,o):D(e,n,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 g(e){if(o=o||n(7890),!(u.call(g,this)||this instanceof o))return new g(e);this._writableState=new m(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,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function D(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function b(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,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(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(y(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=v(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(g,c),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.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]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===g&&e&&e._writableState instanceof m}})):u=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,f.isBuffer(i)||i instanceof h);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=p),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),r.nextTick(i,s),o=!1),o}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,a,r,i,o);return u}(this,o,a,e,t,n)),s},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||b(this,e))},g.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(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=d.destroy,g.prototype._undestroy=d.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}},2306:(e,t,n)=>{"use strict";var r=n(1814).Buffer,i=n(9023);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,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=i,n=s,o.data.copy(t,n),s+=o.data.length,o=o.next;return i},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})},7804:(e,t,n)=>{"use strict";var r=n(7925);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=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||r.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.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):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.finished=!1,this._writableState.errorEmitted=!1)}}},6572:(e,t,n)=>{e.exports=n(2203)},1814:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},1738:(e,t,n)=>{var r=n(2203);"disable"===process.env.READABLE_STREAM&&r?(e.exports=r,(t=e.exports=r.Readable).Readable=r.Readable,t.Writable=r.Writable,t.Duplex=r.Duplex,t.Transform=r.Transform,t.PassThrough=r.PassThrough,t.Stream=r):((t=e.exports=n(9616)).Stream=r||t,t.Readable=t,t.Writable=n(3920),t.Duplex=n(7890),t.Transform=n(5118),t.PassThrough=n(8180))},9386:(e,t,n)=>{"use strict";var r=n(9896),i=n(6928).join,o=n(6928).resolve,s=n(6928).dirname,a={extensions:["js","json","coffee"],recurse:!0,rename:function(e){return e},visit:function(e){return e}};e.exports=function e(t,n,u){var l={};for(var c in n&&!u&&"string"!=typeof n&&(u=n,n=null),u=u||{},a)void 0===u[c]&&(u[c]=a[c]);return n=n?o(s(t.filename),n):s(t.filename),r.readdirSync(n).forEach((function(o){var s,a,c,f=i(n,o);r.statSync(f).isDirectory()&&u.recurse?(s=e(t,f,u),Object.keys(s).length&&(l[u.rename(o,f,o)]=s)):f!==t.filename&&function(e,t,n){return new RegExp("\\.("+n.extensions.join("|")+")$","i").test(t)&&!(n.include&&n.include instanceof RegExp&&!n.include.test(e))&&!(n.include&&"function"==typeof n.include&&!n.include(e,t))&&!(n.exclude&&n.exclude instanceof RegExp&&n.exclude.test(e))&&!(n.exclude&&"function"==typeof n.exclude&&n.exclude(e,t))}(f,o,u)&&(a=o.substring(0,o.lastIndexOf(".")),c=t.require(f),l[u.rename(a,f,o)]=u.visit(c,f,o)||c)})),l},e.exports.defaults=a},1817:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},6565:e=>{var t=[0,1,3,7,15,31,63,127,255],n=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};n.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},n.prototype.read=function(e){for(var n=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)n<<=r,n|=t[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{n<<=e;var i=r-e;n|=(this.curByte&t[e]<<i)>>i,this.bitOffset+=e,e=0}}return n},n.prototype.seek=function(e){var t=e%8,n=(e-t)/8;this.bitOffset=t,this.stream.seek(n),this.hasByte=!1},n.prototype.pi=function(){var e,t=new Buffer(6);for(e=0;e<t.length;e++)t[e]=this.read(8);return t.toString("hex")},e.exports=n},6278:e=>{var t;e.exports=(t=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),function(){var e=4294967295;this.getCRC=function(){return~e>>>0},this.updateCRC=function(n){e=e<<8^t[255&(e>>>24^n)]},this.updateCRCRun=function(n,r){for(;r-- >0;)e=e<<8^t[255&(e>>>24^n)]}})},5773:(e,t,n)=>{var r=n(6565),i=n(1513),o=n(6278),s=n(1994),a=function(e,t){var n,r=e[t];for(n=t;n>0;n--)e[n]=e[n-1];return e[0]=r,r},u={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},l={};l[u.LAST_BLOCK]="Bad file checksum",l[u.NOT_BZIP_DATA]="Not bzip data",l[u.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",l[u.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",l[u.DATA_ERROR]="Data error",l[u.OUT_OF_MEMORY]="Out of memory",l[u.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var c=function(e,t){var n=l[e]||"unknown error";t&&(n+=": "+t);var r=new TypeError(n);throw r.errorCode=e,r},f=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};f.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new o,!0):(this.writeCount=-1,!1)},f.prototype._start_bunzip=function(e,t){var n=new Buffer(4);4===e.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||c(u.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&c(u.NOT_BZIP_DATA,"level out of range"),this.reader=new r(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},f.prototype._get_next_block=function(){var e,t,n,r=this.reader,i=r.pi();if("177245385090"===i)return!1;"314159265359"!==i&&c(u.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&c(u.OBSOLETE_INPUT);var o=r.read(24);o>this.dbufSize&&c(u.DATA_ERROR,"initial position out of bounds");var s=r.read(16),l=new Buffer(256),f=0;for(e=0;e<16;e++)if(s&1<<15-e){var h=16*e;for(n=r.read(16),t=0;t<16;t++)n&1<<15-t&&(l[f++]=h+t)}var d=r.read(3);(d<2||d>6)&&c(u.DATA_ERROR);var p=r.read(15);0===p&&c(u.DATA_ERROR);var m=new Buffer(256);for(e=0;e<d;e++)m[e]=e;var g=new Buffer(p);for(e=0;e<p;e++){for(t=0;r.read(1);t++)t>=d&&c(u.DATA_ERROR);g[e]=a(m,t)}var y,D=f+2,b=[];for(t=0;t<d;t++){var v,w,E=new Buffer(D),_=new Uint16Array(21);for(s=r.read(5),e=0;e<D;e++){for(;(s<1||s>20)&&c(u.DATA_ERROR),r.read(1);)r.read(1)?s--:s++;E[e]=s}for(v=w=E[0],e=1;e<D;e++)E[e]>w?w=E[e]:E[e]<v&&(v=E[e]);y={},b.push(y),y.permute=new Uint16Array(258),y.limit=new Uint32Array(22),y.base=new Uint32Array(21),y.minLen=v,y.maxLen=w;var F=0;for(e=v;e<=w;e++)for(_[e]=y.limit[e]=0,s=0;s<D;s++)E[s]===e&&(y.permute[F++]=s);for(e=0;e<D;e++)_[E[e]]++;for(F=s=0,e=v;e<w;e++)F+=_[e],y.limit[e]=F-1,F<<=1,s+=_[e],y.base[e+1]=F-s;y.limit[w+1]=Number.MAX_VALUE,y.limit[w]=F+_[w]-1,y.base[v]=0}var x=new Uint32Array(256);for(e=0;e<256;e++)m[e]=e;var C,A=0,O=0,k=0,S=this.dbuf=new Uint32Array(this.dbufSize);for(D=0;;){for(D--||(D=49,k>=p&&c(u.DATA_ERROR),y=b[g[k++]]),e=y.minLen,t=r.read(e);e>y.maxLen&&c(u.DATA_ERROR),!(t<=y.limit[e]);e++)t=t<<1|r.read(1);((t-=y.base[e])<0||t>=258)&&c(u.DATA_ERROR);var j=y.permute[t];if(0!==j&&1!==j){if(A)for(A=0,O+s>this.dbufSize&&c(u.DATA_ERROR),x[C=l[m[0]]]+=s;s--;)S[O++]=C;if(j>f)break;O>=this.dbufSize&&c(u.DATA_ERROR),x[C=l[C=a(m,e=j-1)]]++,S[O++]=C}else A||(A=1,s=0),s+=0===j?A:2*A,A<<=1}for((o<0||o>=O)&&c(u.DATA_ERROR),t=0,e=0;e<256;e++)n=t+x[e],x[e]=t,t=n;for(e=0;e<O;e++)S[x[C=255&S[e]]]|=e<<8,x[C]++;var B=0,P=0,R=0;return O&&(P=255&(B=S[o]),B>>=8,R=-1),this.writePos=B,this.writeCurrent=P,this.writeCount=O,this.writeRun=R,!0},f.prototype._read_bunzip=function(e,t){var n,r,i;if(this.writeCount<0)return 0;for(var o=this.dbuf,s=this.writePos,a=this.writeCurrent,l=this.writeCount,f=(this.outputsize,this.writeRun);l;){for(l--,r=a,a=255&(s=o[s]),s>>=8,3==f++?(n=a,i=r,a=-1):(n=1,i=a),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;a!=r&&(f=0)}return this.writeCount=l,this.blockCRC.getCRC()!==this.targetBlockCRC&&c(u.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var h=function(e){if("readByte"in e)return e;var t=new i;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t},d=function(e){var t=new i,n=!0;if(e)if("number"==typeof e)t.buffer=new Buffer(e),n=!1;else{if("writeByte"in e)return e;t.buffer=e,n=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var t=new Buffer(2*this.buffer.length);this.buffer.copy(t),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos),this.buffer=e}return this.buffer},t._coerced=!0,t};f.Err=u,f.decode=function(e,t,n){for(var r=h(e),i=d(t),o=new f(r,i);!("eof"in r)||!r.eof();)if(o._init_block())o._read_bunzip();else{var s=o.reader.read(32)>>>0;if(s!==o.streamCRC&&c(u.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+s.toString(16)+")"),!n||!("eof"in r)||r.eof())break;o._start_bunzip(r,i)}if("getBuffer"in i)return i.getBuffer()},f.decodeBlock=function(e,t,n){var r=h(e),i=d(n),s=new f(r,i);if(s.reader.seek(t),s._get_next_block()&&(s.blockCRC=new o,s.writeCopies=0,s._read_bunzip()),"getBuffer"in i)return i.getBuffer()},f.table=function(e,t,n){var r=new i;r.delegate=h(e),r.pos=0,r.readByte=function(){return this.pos++,this.delegate.readByte()},r.delegate.eof&&(r.eof=r.delegate.eof.bind(r.delegate));var o=new i;o.pos=0,o.writeByte=function(){this.pos++};for(var s=new f(r,o),a=s.dbufSize;!("eof"in r)||!r.eof();){var u=8*r.pos+s.reader.bitOffset;if(s.reader.hasByte&&(u-=8),s._init_block()){var l=o.pos;s._read_bunzip(),t(u,o.pos-l)}else{if(s.reader.read(32),!n||!("eof"in r)||r.eof())break;s._start_bunzip(r,o),console.assert(s.dbufSize===a,"shouldn't change block size within multistream file")}}},f.Stream=i,f.version=s.version,f.license=s.license,e.exports=f},1513:e=>{var t=function(){};t.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")},t.prototype.read=function(e,t,n){for(var r=0;r<n;){var i=this.readByte();if(i<0)return 0===r?-1:r;e[t++]=i,r++}return r},t.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")},t.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")},t.prototype.write=function(e,t,n){var r;for(r=0;r<n;r++)this.writeByte(e[t++]);return n},t.prototype.flush=function(){},e.exports=t},4813:(e,t,n)=>{"use strict";const r=n(8395),i=n(1664),o=n(5895),s=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=r(e)).length)return 0;e=e.replace(o()," ");let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=i(r)?2:1)}return t};e.exports=s,e.exports.default=s},721:(e,t,n)=>{"use strict";var r=n(4503).Buffer,i=r.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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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,n=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!==n?n: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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}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,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):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 n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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}},4503:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},8395:(e,t,n)=>{"use strict";const r=n(4764);e.exports=e=>"string"==typeof e?e.replace(r(),""):e},3460:(e,t,n)=>{"use strict";const r=n(6928),i=n(9023),o=n(8249);e.exports=function(e,t,n){if("string"!=typeof e)throw new TypeError(i.inspect(e)+" is not a string. First argument to strip-dirs must be a path string.");if(r.posix.isAbsolute(e)||r.win32.isAbsolute(e))throw new Error(`${e} is an absolute path. strip-dirs requires a relative path.`);if(!o(t,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+i.inspect(t)+".");if(n){if("object"!=typeof n)throw new TypeError(i.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(i.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&"boolean"!=typeof n.disallowOverflow)throw new TypeError(i.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};const s=r.normalize(e).split(r.sep);if(s.length>1&&"."===s[0]&&s.shift(),t>s.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");t=s.length-1}return r.join.apply(null,s.slice(t))}},459:(e,t,n)=>{"use strict";const r=n(857),i=n(2018),o=n(5704),{env:s}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const n=a||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||"codeship"===s.CI_NAME?1:n;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},1679:(e,t,n)=>{"use strict";const r=n(459),i=n(5704);function o(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function s(e){const{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&0===parseInt(t.FORCE_HYPERLINK,10));if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never"))return!1;if(i("hyperlink=true")||i("hyperlink=always"))return!0;if("NETLIFY"in t)return!0;if(!r.supportsColor(e))return!1;if(e&&!e.isTTY)return!1;if("win32"===process.platform)return!1;if("CI"in t)return!1;if("TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){const e=o(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return 3===e.major?e.minor>=1:e.major>3;case"WezTerm":return e.major>=20200620;case"vscode":return e.major>1||1===e.major&&e.minor>=72}}if("VTE_VERSION"in t){if("0.50.0"===t.VTE_VERSION)return!1;const e=o(t.VTE_VERSION);return e.major>0||e.minor>=50}return!1}e.exports={supportsHyperlink:s,stdout:s(process.stdout),stderr:s(process.stderr)}},6066:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,onDone:n}){let r="";return r+=`var _results = new Array(${this.options.taps.length});\n`,r+="var _checkDone = function() {\n",r+="for(var i = 0; i < _results.length; i++) {\n",r+="var item = _results[i];\n",r+="if(item === undefined) return false;\n",r+="if(item.result !== undefined) {\n",r+=t("item.result"),r+="return true;\n",r+="}\n",r+="if(item.error) {\n",r+=e("item.error"),r+="return true;\n",r+="}\n",r+="}\n",r+="return false;\n",r+="}\n",r+=this.callTapsParallel({onError:(e,t,n,r)=>{let i="";return i+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`,i+=r(!0),i+="} else {\n",i+=n(),i+="}\n",i},onResult:(e,t,n,r)=>{let i="";return i+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`,i+=r(!0),i+="} else {\n",i+=n(),i+="}\n",i},onTap:(e,t,n,r)=>{let i="";return e>0&&(i+=`if(${e} >= _results.length) {\n`,i+=n(),i+="} else {\n"),i+=t(),e>0&&(i+="}\n"),i},onDone:n}),r}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},7806:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t}){return this.callTapsParallel({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},2412:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)}\n} else {\n${r()}}\n`,resultReturns:n,onDone:r})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},1468:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},6170:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t}){return this.callTapsLooping({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},2522:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,onDone:n}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onResult:(e,t,n)=>{let r="";return r+=`if(${t} !== undefined) {\n`,r+=`${this._args[0]} = ${t};\n`,r+="}\n",r+=n(),r},onDone:()=>t(this._args[0])})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},2995:(e,t,n)=>{"use strict";const r=n(9023).deprecate((()=>{}),"Hook.context is deprecated and will be removed"),i=function(...e){return this.call=this._createCall("sync"),this.call(...e)},o=function(...e){return this.callAsync=this._createCall("async"),this.callAsync(...e)},s=function(...e){return this.promise=this._createCall("promise"),this.promise(...e)};class a{constructor(e=[],t=void 0){this._args=e,this.name=t,this.taps=[],this.interceptors=[],this._call=i,this.call=i,this._callAsync=o,this.callAsync=o,this._promise=s,this.promise=s,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}compile(e){throw new Error("Abstract: should be overridden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}_tap(e,t,n){if("string"==typeof t)t={name:t.trim()};else if("object"!=typeof t||null===t)throw new Error("Invalid tap options");if("string"!=typeof t.name||""===t.name)throw new Error("Missing name for tap");void 0!==t.context&&r(),t=Object.assign({type:e,fn:n},t),t=this._runRegisterInterceptors(t),this._insert(t)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_runRegisterInterceptors(e){for(const t of this.interceptors)if(t.register){const n=t.register(e);void 0!==n&&(e=n)}return e}withOptions(e){const t=t=>Object.assign({},e,"string"==typeof t?{name:t}:t);return{name:this.name,tap:(e,n)=>this.tap(t(e),n),tapAsync:(e,n)=>this.tapAsync(t(e),n),tapPromise:(e,n)=>this.tapPromise(t(e),n),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){if(this._resetCompilation(),this.interceptors.push(Object.assign({},e)),e.register)for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}_resetCompilation(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise}_insert(e){let t;this._resetCompilation(),"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let n=0;"number"==typeof e.stage&&(n=e.stage);let r=this.taps.length;for(;r>0;){r--;const e=this.taps[r];this.taps[r+1]=e;const i=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=e}}Object.setPrototypeOf(a.prototype,null),e.exports=a},4978:e=>{"use strict";e.exports=class{constructor(e){this.config=e,this.options=void 0,this._args=void 0}create(e){let t;switch(this.init(e),this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:!0,onDone:()=>"",rethrowIfPossible:!0}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=!1;const n=this.contentWithInterceptors({onError:t=>(e=!0,`_error(${t});\n`),onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let r="";r+='"use strict";\n',r+=this.header(),r+="return new Promise((function(_resolve, _reject) {\n",e&&(r+="var _sync = true;\n",r+="function _error(_err) {\n",r+="if(_sync)\n",r+="_resolve(Promise.resolve().then((function() { throw _err; })));\n",r+="else\n",r+="_reject(_err);\n",r+="};\n"),r+=n,e&&(r+="_sync = false;\n"),r+="}));\n",t=new Function(this.args(),r)}return this.deinit(),t}setup(e,t){e._x=t.taps.map((e=>e.fn))}init(e){this.options=e,this._args=e.args.slice()}deinit(){this.options=void 0,this._args=void 0}contentWithInterceptors(e){if(this.options.interceptors.length>0){const t=e.onError,n=e.onResult,r=e.onDone;let i="";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];t.call&&(i+=`${this.getInterceptor(e)}.call(${this.args({before:t.context?"_context":void 0})});\n`)}return i+=this.content(Object.assign(e,{onError:t&&(e=>{let n="";for(let t=0;t<this.options.interceptors.length;t++)this.options.interceptors[t].error&&(n+=`${this.getInterceptor(t)}.error(${e});\n`);return n+=t(e),n}),onResult:n&&(e=>{let t="";for(let n=0;n<this.options.interceptors.length;n++)this.options.interceptors[n].result&&(t+=`${this.getInterceptor(n)}.result(${e});\n`);return t+=n(e),t}),onDone:r&&(()=>{let e="";for(let t=0;t<this.options.interceptors.length;t++)this.options.interceptors[t].done&&(e+=`${this.getInterceptor(t)}.done();\n`);return e+=r(),e})})),i}return this.content(e)}header(){let e="";return this.needContext()?e+="var _context = {};\n":e+="var _context;\n",e+="var _x = this._x;\n",this.options.interceptors.length>0&&(e+="var _taps = this.taps;\n",e+="var _interceptors = this.interceptors;\n"),e}needContext(){for(const e of this.options.taps)if(e.context)return!0;return!1}callTap(e,{onError:t,onResult:n,onDone:r,rethrowIfPossible:i}){let o="",s=!1;for(let t=0;t<this.options.interceptors.length;t++){const n=this.options.interceptors[t];n.tap&&(s||(o+=`var _tap${e} = ${this.getTap(e)};\n`,s=!0),o+=`${this.getInterceptor(t)}.tap(${n.context?"_context, ":""}_tap${e});\n`)}o+=`var _fn${e} = ${this.getTapFn(e)};\n`;const a=this.options.taps[e];switch(a.type){case"sync":i||(o+=`var _hasError${e} = false;\n`,o+="try {\n"),o+=n?`var _result${e} = _fn${e}(${this.args({before:a.context?"_context":void 0})});\n`:`_fn${e}(${this.args({before:a.context?"_context":void 0})});\n`,i||(o+="} catch(_err) {\n",o+=`_hasError${e} = true;\n`,o+=t("_err"),o+="}\n",o+=`if(!_hasError${e}) {\n`),n&&(o+=n(`_result${e}`)),r&&(o+=r()),i||(o+="}\n");break;case"async":let s="";s+=n?`(function(_err${e}, _result${e}) {\n`:`(function(_err${e}) {\n`,s+=`if(_err${e}) {\n`,s+=t(`_err${e}`),s+="} else {\n",n&&(s+=n(`_result${e}`)),r&&(s+=r()),s+="}\n",s+="})",o+=`_fn${e}(${this.args({before:a.context?"_context":void 0,after:s})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`,o+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":void 0})});\n`,o+=`if (!_promise${e} || !_promise${e}.then)\n`,o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`,o+=`_promise${e}.then((function(_result${e}) {\n`,o+=`_hasResult${e} = true;\n`,n&&(o+=n(`_result${e}`)),r&&(o+=r()),o+=`}), function(_err${e}) {\n`,o+=`if(_hasResult${e}) throw _err${e};\n`,o+=t(`_err${e}`),o+="});\n"}return o}callTapsSeries({onError:e,onResult:t,resultReturns:n,onDone:r,doneReturns:i,rethrowIfPossible:o}){if(0===this.options.taps.length)return r();const s=this.options.taps.findIndex((e=>"sync"!==e.type)),a=n||i;let u="",l=r,c=0;for(let n=this.options.taps.length-1;n>=0;n--){const i=n;l!==r&&("sync"!==this.options.taps[i].type||c++>20)&&(c=0,u+=`function _next${i}() {\n`,u+=l(),u+="}\n",l=()=>`${a?"return ":""}_next${i}();\n`);const f=l,h=e=>e?"":r(),d=this.callTap(i,{onError:t=>e(i,t,f,h),onResult:t&&(e=>t(i,e,f,h)),onDone:!t&&f,rethrowIfPossible:o&&(s<0||i<s)});l=()=>d}return u+=l(),u}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:n}){if(0===this.options.taps.length)return t();const r=this.options.taps.every((e=>"sync"===e.type));let i="";r||(i+="var _looper = (function() {\n",i+="var _loopAsync = false;\n"),i+="var _loop;\n",i+="do {\n",i+="_loop = false;\n";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];t.loop&&(i+=`${this.getInterceptor(e)}.loop(${this.args({before:t.context?"_context":void 0})});\n`)}return i+=this.callTapsSeries({onError:e,onResult:(e,t,n,i)=>{let o="";return o+=`if(${t} !== undefined) {\n`,o+="_loop = true;\n",r||(o+="if(_loopAsync) _looper();\n"),o+=i(!0),o+="} else {\n",o+=n(),o+="}\n",o},onDone:t&&(()=>{let e="";return e+="if(!_loop) {\n",e+=t(),e+="}\n",e}),rethrowIfPossible:n&&r}),i+="} while(_loop);\n",r||(i+="_loopAsync = true;\n",i+="});\n",i+="_looper();\n"),i}callTapsParallel({onError:e,onResult:t,onDone:n,rethrowIfPossible:r,onTap:i=(e,t)=>t()}){if(this.options.taps.length<=1)return this.callTapsSeries({onError:e,onResult:t,onDone:n,rethrowIfPossible:r});let o="";o+="do {\n",o+=`var _counter = ${this.options.taps.length};\n`,n&&(o+="var _done = (function() {\n",o+=n(),o+="});\n");for(let s=0;s<this.options.taps.length;s++){const a=()=>n?"if(--_counter === 0) _done();\n":"--_counter;",u=e=>e||!n?"_counter = 0;\n":"_counter = 0;\n_done();\n";o+="if(_counter <= 0) break;\n",o+=i(s,(()=>this.callTap(s,{onError:t=>{let n="";return n+="if(_counter > 0) {\n",n+=e(s,t,a,u),n+="}\n",n},onResult:t&&(e=>{let n="";return n+="if(_counter > 0) {\n",n+=t(s,e,a,u),n+="}\n",n}),onDone:!t&&(()=>a()),rethrowIfPossible:r})),a,u)}return o+="} while(false);\n",o}args({before:e,after:t}={}){let n=this._args;return e&&(n=[e].concat(n)),t&&(n=n.concat(t)),0===n.length?"":n.join(", ")}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}},4517:(e,t,n)=>{"use strict";const r=n(9023),i=(e,t)=>t;class o{constructor(e,t=void 0){this._map=new Map,this.name=t,this._factory=e,this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(void 0!==t)return t;let n=this._factory(e);const r=this._interceptors;for(let t=0;t<r.length;t++)n=r[t].factory(e,n);return this._map.set(e,n),n}intercept(e){this._interceptors.push(Object.assign({factory:i},e))}}o.prototype.tap=r.deprecate((function(e,t,n){return this.for(e).tap(t,n)}),"HookMap#tap(key,…) is deprecated. Use HookMap#for(key).tap(…) instead."),o.prototype.tapAsync=r.deprecate((function(e,t,n){return this.for(e).tapAsync(t,n)}),"HookMap#tapAsync(key,…) is deprecated. Use HookMap#for(key).tapAsync(…) instead."),o.prototype.tapPromise=r.deprecate((function(e,t,n){return this.for(e).tapPromise(t,n)}),"HookMap#tapPromise(key,…) is deprecated. Use HookMap#for(key).tapPromise(…) instead."),e.exports=o},9552:(e,t,n)=>{"use strict";n(2995);class r{constructor(e,t=void 0){this.hooks=e,this.name=t}tap(e,t){for(const n of this.hooks)n.tap(e,t)}tapAsync(e,t){for(const n of this.hooks)n.tapAsync(e,t)}tapPromise(e,t){for(const n of this.hooks)n.tapPromise(e,t)}isUsed(){for(const e of this.hooks)if(e.isUsed())return!0;return!1}intercept(e){for(const t of this.hooks)t.intercept(e)}withOptions(e){return new r(this.hooks.map((t=>t.withOptions(e))),this.name)}}e.exports=r},2440:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r,rethrowIfPossible:i}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)};\n} else {\n${r()}}\n`,resultReturns:n,onDone:r,rethrowIfPossible:i})}},s=()=>{throw new Error("tapAsync is not supported on a SyncBailHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncBailHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},8752:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}},s=()=>{throw new Error("tapAsync is not supported on a SyncHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},4502:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsLooping({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}},s=()=>{throw new Error("tapAsync is not supported on a SyncLoopHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncLoopHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},470:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,resultReturns:n,rethrowIfPossible:r}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,t,n)=>{let r="";return r+=`if(${t} !== undefined) {\n`,r+=`${this._args[0]} = ${t};\n`,r+="}\n",r+=n(),r},onDone:()=>t(this._args[0]),doneReturns:n,rethrowIfPossible:r})}},s=()=>{throw new Error("tapAsync is not supported on a SyncWaterfallHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncWaterfallHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},7554:(e,t,n)=>{"use strict";t.__esModule=!0,t.SyncHook=n(8752),t.SyncBailHook=n(2440),t.SyncWaterfallHook=n(470),t.SyncLoopHook=n(4502),t.AsyncParallelHook=n(7806),t.AsyncParallelBailHook=n(6066),t.AsyncSeriesHook=n(1468),t.AsyncSeriesBailHook=n(2412),t.AsyncSeriesLoopHook=n(6170),t.AsyncSeriesWaterfallHook=n(2522),t.HookMap=n(4517),t.MultiHook=n(9552)},7810:(e,t,n)=>{var r=n(9023),i=n(5303),o=n(7410),s=n(8605),a=n(1738).Writable,u=n(1738).PassThrough,l=function(){},c=function(e){return(e&=511)&&512-e},f=function(e,t){this._parent=e,this.offset=t,u.call(this)};r.inherits(f,u),f.prototype.destroy=function(e){this._parent.destroy(e)};var h=function(e){if(!(this instanceof h))return new h(e);a.call(this,e),e=e||{},this._offset=0,this._buffer=i(),this._missing=0,this._partial=!1,this._onparse=l,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,n=t._buffer,r=function(){t._continue()},u=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||r()},d=function(){t._stream=null;var e=c(t._header.size);e?t._parse(e,p):t._parse(512,b),t._locked||r()},p=function(){t._buffer.consume(c(t._header.size)),t._parse(512,b),r()},m=function(){var e=t._header.size;t._paxGlobal=s.decodePax(n.slice(0,e)),n.consume(e),d()},g=function(){var e=t._header.size;t._pax=s.decodePax(n.slice(0,e)),t._paxGlobal&&(t._pax=o(t._paxGlobal,t._pax)),n.consume(e),d()},y=function(){var r=t._header.size;this._gnuLongPath=s.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),d()},D=function(){var r=t._header.size;this._gnuLongLinkPath=s.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),d()},b=function(){var i,o=t._offset;try{i=t._header=s.decode(n.slice(0,512),e.filenameEncoding)}catch(e){t.emit("error",e)}return n.consume(512),i?"gnu-long-path"===i.type?(t._parse(i.size,y),void r()):"gnu-long-link-path"===i.type?(t._parse(i.size,D),void r()):"pax-global-header"===i.type?(t._parse(i.size,m),void r()):"pax-header"===i.type?(t._parse(i.size,g),void r()):(t._gnuLongPath&&(i.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(i.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=i=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(i,t._pax),t._pax=null),t._locked=!0,i.size&&"directory"!==i.type?(t._stream=new f(t,o),t.emit("entry",i,t._stream,u),t._parse(i.size,d),void r()):(t._parse(512,b),void t.emit("entry",i,function(e,t){var n=new f(e,t);return n.end(),n}(t,o),u))):(t._parse(512,b),void r())};this._onheader=b,this._parse(512,b)};r.inherits(h,a),h.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},h.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},h.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=l,this._overflow?this._write(this._overflow,void 0,e):e()}},h.prototype._write=function(e,t,n){if(!this._destroyed){var r=this._stream,i=this._buffer,o=this._missing;if(e.length&&(this._partial=!0),e.length<o)return this._missing-=e.length,this._overflow=null,r?r.write(e,n):(i.append(e),n());this._cb=n,this._missing=0;var s=null;e.length>o&&(s=e.slice(o),e=e.slice(0,o)),r?r.end(e):i.append(e),this._overflow=s,this._onparse()}},h.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},e.exports=h},8605:(e,t,n)=>{var r=n(93),i=n(9907),o="0".charCodeAt(0),s=parseInt("7777",8),a=function(e,t,n,r){for(;n<r;n++)if(e[n]===t)return n;return r},u=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var r=156;r<512;r++)t+=e[r];return t},l=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "},c=function(e,t,n){if(128&(e=e.slice(t,t+n))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var n=!1,r=[],i=e.length-1;i>0;i--){var o=e[i];t?r.push(o):n&&0===o?r.push(0):n?(n=!1,r.push(256-o)):r.push(255-o)}var s=0,a=r.length;for(i=0;i<a;i++)s+=r[i]*Math.pow(256,i);return t?s:-1*s}(e);for(;t<e.length&&32===e[t];)t++;for(var r=(i=a(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);t<r&&0===e[t];)t++;return r===t?0:parseInt(e.slice(t,r).toString(),8);var i,o,s},f=function(e,t,n,r){return e.slice(t,a(e,0,t,t+n)).toString(r)},h=function(e){var t=Buffer.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e};t.decodeLongPath=function(e,t){return f(e,0,e.length,t)},t.encodePax=function(e){var t="";e.name&&(t+=h(" path="+e.name+"\n")),e.linkname&&(t+=h(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var i in n)t+=h(" "+i+"="+n[i]+"\n");return r(t)},t.decodePax=function(e){for(var t={};e.length;){for(var n=0;n<e.length&&32!==e[n];)n++;var r=parseInt(e.slice(0,n).toString(),10);if(!r)return t;var i=e.slice(n+1,r-1).toString(),o=i.indexOf("=");if(-1===o)return t;t[i.slice(0,o)]=i.slice(o+1),e=e.slice(r)}return t},t.encode=function(e){var t=i(512),n=e.name,r="";if(5===e.typeflag&&"/"!==n[n.length-1]&&(n+="/"),Buffer.byteLength(n)!==n.length)return null;for(;Buffer.byteLength(n)>100;){var a=n.indexOf("/");if(-1===a)return null;r+=r?"/"+n.slice(0,a):n.slice(0,a),n=n.slice(a+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(n),t.write(l(e.mode&s,6),100),t.write(l(e.uid,6),108),t.write(l(e.gid,6),116),t.write(l(e.size,11),124),t.write(l(e.mtime.getTime()/1e3|0,11),136),t[156]=o+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&&t.write(e.linkname,157),t.write("ustar\x0000",257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(l(e.devmajor||0,6),329),t.write(l(e.devminor||0,6),337),r&&t.write(r,345),t.write(l(u(t),6),148),t)},t.decode=function(e,t){var n=0===e[156]?0:e[156]-o,r=f(e,0,100,t),i=c(e,100,8),s=c(e,108,8),a=c(e,116,8),l=c(e,124,12),h=c(e,136,12),d=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}(n),p=0===e[157]?null:f(e,157,100,t),m=f(e,265,32),g=f(e,297,32),y=c(e,329,8),D=c(e,337,8);e[345]&&(r=f(e,345,155,t)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var b=u(e);if(256===b)return null;if(b!==c(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:s,gid:a,size:l,mtime:new Date(1e3*h),type:d,linkname:p,uname:m,gname:g,devmajor:y,devminor:D}}},1339:(e,t,n)=>{t.extract=n(7810),t.pack=n(642)},5303:(e,t,n)=>{var r=n(5828),i=n(9023),o=n(1817).Buffer;function s(e){if(!(this instanceof s))return new s(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else this.append(e);r.call(this)}i.inherits(s,r),s.prototype._offset=function(e){var t,n=0,r=0;if(0===e)return[0,0];for(;r<this._bufs.length;r++){if(e<(t=n+this._bufs[r].length)||r==this._bufs.length-1)return[r,e-n];n=t}},s.prototype.append=function(e){var t=0;if(o.isBuffer(e))this._appendBuffer(e);else if(Array.isArray(e))for(;t<e.length;t++)this.append(e[t]);else if(e instanceof s)for(;t<e._bufs.length;t++)this.append(e._bufs[t]);else null!=e&&("number"==typeof e&&(e=e.toString()),this._appendBuffer(o.from(e)));return this},s.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},s.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},s.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},s.prototype.end=function(e){r.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},s.prototype.get=function(e){return this.slice(e,e+1)[0]},s.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},s.prototype.copy=function(e,t,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||o.alloc(0);if(r<=0)return e||o.alloc(0);var i,s,a=!!e,u=this._offset(n),l=r-n,c=l,f=a&&t||0,h=u[1];if(0===n&&r==this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(s=0;s<this._bufs.length;s++)this._bufs[s].copy(e,f),f+=this._bufs[s].length;return e}if(c<=this._bufs[u[0]].length-h)return a?this._bufs[u[0]].copy(e,t,h,h+c):this._bufs[u[0]].slice(h,h+c);for(a||(e=o.allocUnsafe(l)),s=u[0];s<this._bufs.length;s++){if(!(c>(i=this._bufs[s].length-h))){this._bufs[s].copy(e,f,h,h+c),f+=i;break}this._bufs[s].copy(e,f,h),f+=i,c-=i,h&&(h=0)}return e.length>f?e.slice(0,f):e},s.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new s(i)},s.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},s.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){for(var e=0,t=new s;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},s.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)!function(t){s.prototype[t]=function(n){return this.slice(n,n+e[t])[t](0)}}(t)}(),e.exports=s},642:(e,t,n)=>{var r=n(9457),i=n(3908),o=n(9023),s=n(9907),a=n(93),u=n(1738).Readable,l=n(1738).Writable,c=n(3193).StringDecoder,f=n(8605),h=parseInt("755",8),d=parseInt("644",8),p=s(1024),m=function(){},g=function(e,t){(t&=511)&&e.push(p.slice(0,512-t))},y=function(e){l.call(this),this.written=0,this._to=e,this._destroyed=!1};o.inherits(y,l),y.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var D=function(){l.call(this),this.linkname="",this._decoder=new c("utf-8"),this._destroyed=!1};o.inherits(D,l),D.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},D.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){l.call(this),this._destroyed=!1};o.inherits(b,l),b.prototype._write=function(e,t,n){n(new Error("No body allowed for this entry"))},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(e){if(!(this instanceof v))return new v(e);u.call(this,e),this._drain=m,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(v,u),v.prototype.entry=function(e,t,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(n=t,t=null),n||(n=m);var o=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&r.S_IFMT){case r.S_IFBLK:return"block-device";case r.S_IFCHR:return"character-device";case r.S_IFDIR:return"directory";case r.S_IFIFO:return"fifo";case r.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?h:d),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=a(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),g(o,e.size),process.nextTick(n),new b;if("symlink"===e.type&&!e.linkname){var s=new D;return i(s,(function(t){if(t)return o.destroy(),n(t);e.linkname=s.linkname,o._encode(e),n()})),s}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(n),new b;var u=new y(this);return this._stream=u,i(u,(function(t){return o._stream=null,t?(o.destroy(),n(t)):u.written!==e.size?(o.destroy(),n(new Error("size mismatch"))):(g(o,e.size),o._finalizing&&o.finalize(),void n())})),u}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(p),this.push(null))},v.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(e){if(!e.pax){var t=f.encode(e);if(t)return void this.push(t)}this._encodePax(e)},v.prototype._encodePax=function(e){var t=f.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(f.encode(n)),this.push(t),g(this,t.length),n.size=e.size,n.type=e.type,this.push(f.encode(n))},v.prototype._read=function(e){var t=this._drain;this._drain=m,t()},e.exports=v},3034:(e,t,n)=>{var r=n(2203);function i(e,t,n){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var i=!1,o=!1,s=[],a=!1,u=new r;function l(){for(;s.length&&!u.paused;){var e=s.shift();if(null===e)return u.emit("end");u.emit("data",e)}}return u.readable=u.writable=!0,u.paused=!1,u.autoDestroy=!(n&&!1===n.autoDestroy),u.write=function(t){return e.call(this,t),!u.paused},u.queue=u.push=function(e){return a||(null===e&&(a=!0),s.push(e),l()),u},u.on("end",(function(){u.readable=!1,!u.writable&&u.autoDestroy&&process.nextTick((function(){u.destroy()}))})),u.end=function(e){if(!i)return i=!0,arguments.length&&u.write(e),u.writable=!1,t.call(u),!u.readable&&u.autoDestroy&&u.destroy(),u},u.destroy=function(){if(!o)return o=!0,i=!0,s.length=0,u.writable=u.readable=!1,u.emit("close"),u},u.pause=function(){if(!u.paused)return u.paused=!0,u},u.resume=function(){return u.paused&&(u.paused=!1,u.emit("resume")),l(),u.paused||u.emit("drain"),u},u}e.exports=i,i.through=i},93:e=>{e.exports=function(e,n){if(Buffer.isBuffer(e))return e;if("string"==typeof e)return t(e,n);if(Array.isArray(e))return t(e);throw new Error("Input should be a buffer or a string")};var t=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(e,t){return new Buffer(e,t)}},8584:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(){await(0,c.validateSquidProject)();const e=h.default.resolve(process.cwd(),"dist");d.existsSync(e)&&d.rmSync(e,{recursive:!0,force:!0});const t=h.default.resolve(process.cwd(),m);let n;if(d.existsSync(t)){const e=(0,p.requirePath)(t);n=e(void 0,{mode:"production"}),n.mode="production"}else n=(0,l.default)({mode:"production"});try{console.log((0,f.primary)("Building...")),await new Promise(((e,t)=>{(0,a.default)(n,((n,r)=>n?(console.error("Build failed a fatal error."),t(n)):(r&&console.log(r.toString({all:!1,colors:y,errors:!0,warnings:!0,assets:!0,builtAt:!0,chunks:!0,modules:!0})),r?.hasErrors()?t(new Error("Build failed with errors.")):(console.log("Build succeeded."),void e()))))}))}catch(e){(0,u.exitWithError)(e.message)}};const a=s(n(6807)),u=n(8251),l=s(n(546)),c=n(2246),f=n(443),h=s(n(6928)),d=o(n(9896)),p=n(412),m="./webpack.config.js";function g(e){const t=process.env[e];return!t||"false"===t.toLowerCase()||"0"===t}const y=!g("FORCE_COLOR")||g("NO_COLOR")},8705:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,n,r,i,o,s,D,b,v){o||s||D||(console.log("Building code bundle..."),await(0,c.runInShell)("npm run build"));const w=new FormData,E=(0,d.appIdWithEnvironmentId)(t,v);w.append("appId",E);const _=await f.readFile(n),F=new Blob([_],{type:"application/octet-stream"});w.append("file",F);const x=(0,p.getConsoleAppRegionByStage)(e),C=o?(0,h.getApplicationUrl)(x,E,"application/updateApplicationCode"):(0,h.getApplicationUrl)(x,u.environment.consoleAppId,"webhooks/updateApplicationCode");console.log(`Deploying code bundle for appId '${t}' to the '${v}' environment...`),i&&console.log("Deploying bundle to:",C);try{const e=new Headers;r&&e.append("Authorization",`ApiKey ${r}`),b&&e.append("x-squid-secret",b);const t=await async function(e){let t="tsoa.json";if(!a.existsSync("tsoa.json")){const e=await(0,g.findModulePath)("@squidcloud/local-backend");e&&(t=y.default.relative(process.cwd(),y.default.resolve(e,"../../tsoa.json")))}try{const n=`npx tsoa spec -c ${t}`,r=`npx tsoa routes -c ${t}`;e&&(console.log(`Running: ${n}`),console.log(`Running: ${r}`)),await Promise.all([(0,c.runInShell)(n,!1),(0,c.runInShell)(r,!1)])}catch(t){const n="Unable to generate OpenAPI spec and controllers",r=t;if(r.combinedOutput?.some((e=>e.message.includes("no controllers found, check tsoa configuration"))))return void(e&&console.log("The application has no OpenAPI controllers, skipping OpenAPI update"));throw e&&(console.error(n,r.errorMessage||t),r.combinedOutput&&(0,c.printCombinedOutput)(r.combinedOutput)),new Error(n)}try{return{openApiSpecStr:await f.readFile("dist/swagger.json",{encoding:"utf8"}),openApiControllersStr:await f.readFile("dist/routes.ts",{encoding:"utf8"})}}catch(e){const t="Unable to deploy OpenAPI spec and controllers";throw console.error(t,e),new Error(t)}}(i);t&&(w.append("openApiSpecStr",t.openApiSpecStr),w.append("openApiControllersStr",t.openApiControllersStr));const n={method:"POST",body:w,headers:e},o=await fetch(C,n);o.ok||(0,l.exitWithError)("Unable to deploy bundle:",await o.text()),console.log("Code deployed")}catch(e){i&&console.error("VERBOSE: error deploying bundle:",e);const t=(0,m.getMessageFromError)(e,"");(0,l.exitWithError)("Unable to deploy bundle:",t||e)}};const a=o(n(9896)),u=n(722),l=n(8251),c=n(5699),f=o(n(1943)),h=n(866),d=n(3443),p=n(7580),m=n(7022),g=n(412),y=s(n(6928))},722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environment=void 0,t.environment={consoleAppId:"console",region:"local"}},6568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),parseInt(process.version.split(".")[0].slice(1))<18&&(console.error(`Error: Squid requires Node.js version 18 or higher. You are using version ${process.version}.`),process.exit(1)),n(4291)},1838:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e="./",t,n,r,i,o){const s=`SQUID_APP_ID=${t}\nSQUID_REGION=${o}\nSQUID_API_KEY=${n}\nSQUID_ENVIRONMENT_ID=${r}\nSQUID_DEVELOPER_ID=${i}\n`;await a.writeFile(u.default.resolve(e,".env"),s),console.log("Created .env file")};const a=o(n(1943)),u=s(n(6928))},546:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({mode:e}){const t="production"===e;return{entry:"./src/index.ts",target:"node",mode:e||"none",devtool:t?"source-map":void 0,externalsPresets:{node:!0},output:{path:u.default.resolve(process.cwd(),"dist"),filename:"index.js",library:{type:"commonjs"}},optimization:{minimize:t,minimizer:[new i.default({terserOptions:{keep_classnames:!0,keep_fnames:!0,sourceMap:t}})]},plugins:[new o.default({patterns:[{from:"src/public",to:"public",noErrorOnMissing:!0}]}),new s({path:u.default.resolve(process.cwd(),"dist"),filename:"bundle.zip",include:[/([0-9]*\.)?index.js(.map)?/,/^public\/.*$/]})],module:{rules:[{test:/\.(ts|tsx)$/i,loader:"ts-loader",exclude:/node_modules/},{test:/\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i,type:"asset"}]},resolve:{plugins:[new a.TsconfigPathsPlugin({})],extensions:[".tsx",".ts",".jsx",".js"]}}};const i=r(n(3979)),o=r(n(1909)),s=n(7271),a=n(1144),u=r(n(6928))},4291:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(1771)),u=s(n(8705)),l=s(n(6928)),c=n(8251),f=o(n(8330)),h=s(n(496)),d=o(n(9650)),p=s(n(1838)),m=o(n(9896)),g=s(n(4328)),y=s(n(8584)),D=n(8058),b=n(2246),v=s(n(9478));function w(e){d.config({path:l.default.resolve(e||"./",".env")})}function E(e,t){e.option("appId",{type:"string",demandOption:t,describe:"The application ID (Can be retrieved from the Squid Console)"})}function _(e,t){e.option("apiKey",{type:"string",demandOption:t,describe:"The application API key (Can be retrieved from the Squid Console)"})}function F(e,t){e.option("environmentId",{alias:"e",type:"string",demandOption:t,describe:"The environment to use Squid with (Can be retrieved from the Squid Console)"})}function x(e,t){e.option("squidDeveloperId",{type:"string",demandOption:t,describe:"The developer ID to use Squid with (Can be retrieved in the profile dropdown in the Squid Console)"})}function C(e,t){e.option("region",{type:"string",demandOption:t,describe:"The squid region use Squid with (Can be retrieved from the Squid Console)"})}function A(e,t){if(process.env[e])return process.env[e];let n=`Missing environment variable: ${e}.`;t&&(n+=` You can also specify it using ${t}`),n+="\nTo learn more about deployment environment variables, visit https://docs.getsquid.ai/docs/development-tools/environments/#environment-variables",(0,c.exitWithError)(n)}function O(e){return e||A("SQUID_APP_ID","--appId")}function k(e){return e||A("SQUID_API_KEY","--apiKey")}function S(e){return e||A("SQUID_ENVIRONMENT_ID","--environmentId")}function j(e){e.option("stage",{type:"string",hidden:!0,default:"prod",choices:D.STAGES})}function B(e){const t=e?.replace("dist/bundle.zip","")||"";return m.existsSync(l.default.join(t,".env"))?t:m.existsSync(l.default.join(__dirname,".env"))?__dirname:process.cwd()}(0,a.default)(process.argv.slice(2)).strict(!0).demandCommand(1).scriptName("squid").version(f.version).option("verbose",{alias:"v",type:"boolean",description:"Run in verbose mode"}),a.default.command("start","Starts the local development server",(()=>{}),(async()=>{await(0,h.default)()})),a.default.command(["deploy [path]","upload [path]"],"Builds and deploys your backend code to the Squid server",(e=>{e.positional("path",{type:"string",description:"The path to the bundle file (e.g. dist/bundle.zip)"}),e.count("direct").alias("d","direct"),j(e),E(e,!1),_(e,!1),F(e,!1),function(e){e.option("internalApiKey",{type:"string",demandOption:!1})}(e),e.option("skipBuild",{type:"boolean",description:"Skip the build step",default:!1})}),(async e=>{await(0,b.validateSquidProject)();const t=!!e.path,n=e.path||"dist/bundle.zip";w(B(n));const r=O(e.appId),i=e.direct?void 0:k(e.apiKey),o=S(e.environmentId),s=e.direct?function(e){if(e)return e;const t=process.env.SQUID_INTERNAL_API_KEY;if(t)return t;(0,c.exitWithError)("Squid internal API key was not provided when using -d")}(e.internalApiKey):void 0;e.direct||i||(0,c.exitWithError)("Must provide an API key");const a=e.stage;(0,u.default)(a,r,n,i,!!e.verbose,e.direct,t,!!e.skipBuild,s,o).then()})),a.default.command(["undeploy"],"Undeploys your backend code from Squid Cloud",(e=>{j(e),E(e,!1),_(e,!1),F(e,!1)}),(async e=>{await(0,b.validateSquidProject)(),w(B());const t=O(e.appId),n=k(e.apiKey),r=S(e.environmentId);n||(0,c.exitWithError)("Must provide an API key");const i=e.stage;(0,v.default)(i,t,n,r).then()})),function(e){e.command("init-env [path]","Creates a .env file in your Squid project directory",(e=>{e.positional("path",{type:"string"}),E(e,!0),_(e,!0),F(e,!0),x(e,!0),C(e,!0)}),(async e=>{await(0,b.validateSquidProject)(),await(0,p.default)(e.path,e.appId,e.apiKey,e.environmentId,e.squidDeveloperId,e.region)}))}(a.default),function(e){e.command("init [path]","Creates a new Squid backend project",(e=>{e.positional("path",{type:"string"}).demandOption("path"),E(e,!1),_(e,!1),F(e,!1),x(e,!1),C(e,!1)}),(async e=>{await(0,g.default)(e.path,e.appId,e.apiKey,e.environmentId,e.squidDeveloperId,e.region,"backend",!!e.verbose)}))}(a.default),function(e){e.command("init-sample [path]","Initializes a Squid sample project",(e=>{e.positional("path",{type:"string"}).demandOption("path"),E(e,!1),_(e,!1),F(e,!1),x(e,!1),C(e,!1),function(e){e.option("template",{alias:"t",type:"string",demandOption:!0,describe:"The template to use for the project. https://github.com/squid-cloud-samples for available templates.",default:"starter"})}(e)}),(async e=>{await(0,g.default)(e.path,e.appId,e.apiKey,e.environmentId,e.squidDeveloperId,e.region,e.template,!!e.verbose)}))}(a.default),function(e){e.command("build","Builds a Squid backend project",(()=>{}),(async()=>{await(0,b.validateSquidProject)(),await(0,y.default)()}))}(a.default),a.default.parse()},4328:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,n,r,h,d,p,m=!1){try{await i.default.stat(s.default.resolve(e)),(0,u.exitWithError)(`Project already exists: ${e}`)}catch{}const g=`https://github.com/${f}/${p}`;200!==(await fetch(g,{method:"HEAD"})).status&&(0,u.exitWithError)(`Sample repository not found: ${g}`),console.log(`Downloading ${g}...`);try{await(0,l.downloadRepo)(f,p,e),await i.default.rm(`${e}/.github`,{recursive:!0,force:!0})}catch{(0,u.exitWithError)(`Unable to download repository: ${g}`)}console.log("Installing dependencies...");let y=!1;try{await i.default.access(s.default.resolve(e,"package.json")),await(0,o.runInShell)("npm install",m,s.default.resolve(e))}catch{}try{await i.default.access(s.default.resolve(e,"backend")),await(0,o.runInShell)("npm install",m,s.default.resolve(e,"backend")),y=!0}catch{}try{await i.default.access(s.default.resolve(e,"frontend")),await(0,o.runInShell)("npm install",m,s.default.resolve(e,"frontend"))}catch{}const D=t&&d&&n&&r&&h,b=`SQUID_APP_ID=${t||""}\nSQUID_REGION=${d||""}\nSQUID_API_KEY=${n||""}\nSQUID_ENVIRONMENT_ID=${r||""}\nSQUID_DEVELOPER_ID=${h||""}\n`;if(await i.default.writeFile(s.default.resolve(e,y?"backend":"",".env"),b),D&&console.log((y?"Backend ":"")+".env file created successfully"),y){const t=JSON.parse((await i.default.readFile(s.default.resolve(e,"frontend","package.json"))).toString());t.scripts?.["setup-env"]&&(await(0,o.runInShell)("npm run setup-env",m,s.default.resolve(e,"frontend")),D&&console.log("Frontend .env.local file created successfully"))}D?(console.log(`\n${(0,c.primary)("Done. Now run:")}\n\n cd ${e}\n npm run start\n`),await(0,a.reportLocalBackendInitialized)(t,n,"prod")):(console.log((0,c.link)("https://console.getsquid.ai")),console.log(`\n${(0,c.primary)("Done. Next steps:")}\n\n Update your ${y?"frontend and backend ":""}${(0,c.primary)(".env")} file${y?"s":""}\n Values can be found in the Squid Console: ${(0,c.link)("https://console.getsquid.ai")}\n\n cd ${e}\n npm run start\n`))};const i=r(n(1943)),o=n(5699),s=r(n(6928)),a=n(3066),u=n(8251),l=n(954),c=n(443),f="squid-cloud-samples"},496:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(){const e=await(0,h.validateSquidProject)();console.log((0,d.primary)("Please note:"),'to debug your application, you need to run the "start" npm script in your IDE in debug mode'),console.log((0,d.primary)("Starting..."));const t=await(0,c.findModulePath)("@squidcloud/local-backend");if(t||(0,l.exitWithError)(h.INVALID_PROJECT_ERROR),e.scripts?.["start-squid"])await(0,a.runInShell)("npm run start-squid");else{const e=f.default.resolve(t,"../main.js");try{await u.access(e),await(0,a.runInShell)(`npx nodemon --watch ./src --ext ts,js,json --quiet --exec node -r ts-node/register -r tsconfig-paths/register "${e}"`)}catch(e){(0,l.exitWithError)(h.INVALID_PROJECT_ERROR)}}};const a=n(5699),u=o(n(1943)),l=n(8251),c=n(412),f=s(n(6928)),h=n(2246),d=n(443)},9478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,n,l){const c=(0,s.appIdWithEnvironmentId)(t,l),f=(0,a.getConsoleAppRegionByStage)(e),h=(0,o.getApplicationUrl)(f,r.environment.consoleAppId,"webhooks/deleteApplicationCode");console.log(`Undeploying code bundle for appId '${t}' from the '${l}' environment...`);try{const e=new Headers;n&&e.append("Authorization",`ApiKey ${n}`);const t={method:"POST",body:JSON.stringify({appId:c}),headers:e},r=await fetch(h,t);r.ok||(0,i.exitWithError)("Unable to undeploy code:",await r.text()),console.log("Code undeployed")}catch(e){const t=(0,u.getMessageFromError)(e,"");(0,i.exitWithError)("Unable to deploy bundle:",t||e)}};const r=n(722),i=n(8251),o=n(866),s=n(3443),a=n(7580),u=n(7022)},954:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadRepo=async function(e,t,n){let r;try{const s=`https://github.com/${e}/${t}/archive/main.zip`,a=await fetch(s);if(!a.ok||!a.body)throw new Error(`Failed to download repository: ${a.statusText}`);r=i.default.mkdtempSync("temp");const u=a.body.getReader();let l=await u.read();const c=[];for(;!l.done;){const{value:e}=l;c.push(e),l=await u.read()}await async function(e,t){i.default.mkdirSync(t,{recursive:!0}),await(0,o.default)(e,t)}(Buffer.concat(c),r);const f=`${r}/${t}-main`,h=`${n}`;i.default.existsSync(f)&&i.default.renameSync(f,h)}catch(e){throw i.default.rmSync(n,{recursive:!0,force:!0}),e}finally{r&&i.default.rmSync(r,{recursive:!0,force:!0})}};const i=r(n(9896)),o=r(n(482))},443:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.link=t.primary=void 0;const i=r(n(7459)),o=r(n(8894));t.primary=i.default.hex("#188FFF"),t.link=(e,t="")=>(0,o.default)(t||e,e,{fallback:!1})},8251:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.exitWithError=function(...e){console.error(...e),s.exit(1)};const s=o(n(932))},3066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportLocalBackendInitialized=async function(e,t,n){const u="local"===n?"local":n.endsWith(".sandbox")?"sandbox":"prod",l=(0,s.getConsoleAppRegionByStage)(u),c=`${(0,i.getApplicationUrl)(l,r.environment.consoleAppId,"webhooks/reportLocalBackendInitialized")}`;try{const n=new Headers;n.append("Authorization",`ApiKey ${t}`);const r=await fetch(c,{method:"POST",body:JSON.stringify({appId:e}),headers:n});if(!r.ok){const e=await r.text();console.warn(`Warning: Failed to report backend initialization to the Squid Console: ${e}`),o.DebugLogger.debug("Warning: unable to report backend initialization to squid",e)}}catch(e){const t=(0,a.getMessageFromError)(e);console.warn(`Warning: Failed to report backend initialization to the Squid Console: ${t}`),o.DebugLogger.debug("Warning: unable to report backend initialization to squid",e)}};const r=n(722),i=n(866),o=n(6334),s=n(7580),a=n(7022)},5699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runInShell=function(e,t=!0,n=process.cwd()){return new Promise(((a,u)=>{const l=(0,r.spawn)(e,{cwd:n,shell:!0,stdio:"pipe"}),c=[];l.stdout.on("data",(e=>{const n=e.toString();c.push({level:"info",message:n}),t&&o(n)})),l.stderr.on("data",(e=>{const n=e.toString();c.push({level:"error",message:n}),t&&s(n)})),l.on("error",(e=>{u(e)})),l.on("exit",(e=>{if(0===e)a({combinedOutput:c});else{const n=`The command exited with code ${e}`;t&&i(c),u({errorMessage:n,combinedOutput:c})}}))}))},t.printCombinedOutput=i;const r=n(5317);function i(e){for(const t of e)"error"===t.level?s(t.message):o(t.message)}function o(e){process.stdout.write(e)}function s(e){process.stderr.write(e)}},2246:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_PROJECT_ERROR=void 0,t.validateSquidProject=async function(){try{const e=await i.default.readFile("package.json","utf8"),n=JSON.parse(e),{scripts:r}=n;return r?.["start-squid"]||r?.start.startsWith("squid start")||(0,o.exitWithError)(t.INVALID_PROJECT_ERROR),n}catch(e){(0,o.exitWithError)(t.INVALID_PROJECT_ERROR)}};const i=r(n(1943)),o=n(8251);t.INVALID_PROJECT_ERROR="Please make sure you are running this command in your Squid project directory"},3443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAppId=i,t.appIdWithEnvironmentId=o,t.appIdWithEnvironmentIdAndDevId=function(e,t,n){return`${o(e,t)}${n?`-${n}`:""}`},t.validateEnvironment=function(e){const t=i(e);return(0,r.assertTruthy)("prod"!==t.environmentId||!t.squidDeveloperId,"Cannot use developer ID in production"),t},t.verifyWithSquidDevId=function(e){const t=i(e);(0,r.assertTruthy)(t.squidDeveloperId,"Must provide squid developer ID")},t.omitSquidDevId=function(e){const t=i(e);return o(t.appId,t.environmentId)};const r=n(5036);function i(e){(0,r.assertString)(e,"Invalid application ID");const[t,n,i,o]=e.split("-");return(0,r.assertTruthy)(!o,`Invalid application ID: ${e}`),{appId:t,environmentId:n??"prod",squidDeveloperId:i}}function o(e,t){return`${i(e).appId}${t&&"prod"!==t?`-${t}`:""}`}},7580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConsoleAppRegionByStage=function(e){switch(e){case"local":return"local";case"dev":return"us-east-1.aws-dev";case"prod":return"us-east-1.aws";case"sandbox":return"us-east-1.aws.sandbox"}}},8058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STAGES=void 0,t.STAGES=["local","dev","prod","sandbox"]},7022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromError=function(e,t){return e instanceof Error?e.message:t??`${e}`}},6334:(e,t)=>{"use strict";function n(){if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;throw new Error("Unable to locate global object")}function r(){const e=n();return!0===e?.SQUID_LOG_DEBUG_ENABLED}function i(e=!0){n().SQUID_LOG_DEBUG_ENABLED=e}function o(){const e=n();return!0===e?.SQUID_LOG_TIMESTAMPS_DISABLED}function s(){if(o()){const e=new Date;return`[${e.toLocaleTimeString()}.${e.getMilliseconds()}] squid`}return"squid"}Object.defineProperty(t,"__esModule",{value:!0}),t.DebugLogger=void 0,t.getGlobal=n,t.isDebugEnabled=r,t.enableDebugLogs=i,t.disableTimestampsInLog=function(){n().SQUID_LOG_TIMESTAMPS_DISABLED=!0},t.isTimestampEnabled=o,t.disableDebugLogs=function(){n().SQUID_LOG_DEBUG_ENABLED=!1},i(function(){let e="";return"undefined"!=typeof window&&window.location?e=new URLSearchParams(window.location.search).get("SQUID_DEBUG")||"":"undefined"!=typeof process&&process.env&&(e=process.env.SQUID_DEBUG||""),"1"===e||"true"===e}()),t.DebugLogger=class{static log(...e){console.log(`${s()} LOG`,...e)}static info(...e){console.info(`${s()} INFO`,...e)}static warn(...e){console.warn(`${s()} WARN`,...e)}static error(...e){console.error(`${s()} ERROR`,...e)}static debug(...e){r()&&console.debug(`${s()} DEBUG`,...e)}}},866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicationUrl=function(e,t,i){const o=new URL("https://squid.cloud");o.host=`${t}.${e}.${o.host}`;const s=i.replace(/^\//g,"").split("/")[0]||"";r(e)&&(o.protocol="http",o.port=n.includes(s)?"8001":"8000",function(e){return/android$/.test(e)}(e)?o.host="10.0.2.2":function(e){return/ios$/.test(e)}(e)&&(o.host="localhost"));const a=o.toString();i=i.startsWith("/")?i.slice(1):i;const u=a.replace(/\/$/g,"");return i.length?`${u}/${i}`:u},t.getApplicationHttpHeaders=function(e,t){const n={};return r(e)&&(n["x-squid-appid"]=t),n};const n=["aiData","api","application","application-kotlin","auth","backend-function","extraction","integration","internal-storage","internalCodeExecutor","mutation","named-query","native-query","observability","openapi","query","queue","quota","scheduler","secret","storage","webhooks","ws","personalStorage"];function r(e){return/^local/.test(e)}},412:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requirePath=void 0,t.findModulePath=async function(e,t=__dirname){let n=t;return await new Promise(((t,r)=>{const s=()=>{(0,o.default)(n,e,((o,a)=>{if(o){const t=i.default.resolve(n,"..");if(t===n)return r(new Error(`Module "${e}" not found`));n=t,s()}else t(a)}))};s()}))||null};const i=r(n(6928)),o=r(n(4506));t.requirePath=e=>require(e)},7982:(e,t,n)=>{var r=n(3034),i=n(5575),o=n(3042);e.exports=function(){var e=[],t=0,n=0,s=!1,a=null,u=null;function l(e){if(!s)try{return function(){if(n){var t=1e5*n,r=new Int32Array(t),o=[];return null===(u=i.decompress(a,(function(e){o.push(e)}),r,t,u))?(n=0,!1):(s=Buffer.from(o),e.queue(s),null!==s&&s.length,!0)}var s;return n=i.header(a),u=0,!0}()}catch(t){return e.emit("error",t),s=!0,!1}}return r((function(r){for(e.push(r),t+=r.length,null===a&&(a=o((function(){return e.shift()})));!s&&t-a.bytesRead+1>=(25e3+1e5*n||4);)l(this)}),(function(e){for(;!s&&a&&t>a.bytesRead;)l(this);s||(null!==u&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))}))}},3042:e=>{var t=[0,1,3,7,15,31,63,127,255];e.exports=function(e){var n=0,r=0,i=e(),o=function(s){if(null===s&&0!=n)return n=0,void r++;for(var a=0;s>0;){r>=i.length&&(r=0,i=e());var u=8-n;0===n&&s>0&&o.bytesRead++,s>=u?(a<<=u,a|=t[u]&i[r++],n=0,s-=u):(a<<=s,a|=(i[r]&t[s]<<8-s-n)>>8-s-n,n+=s,s=0)}return a};return o.bytesRead=0,o}},5575:e=>{function t(e){this.name="Bzip2Error",this.message=e,this.stack=(new Error).stack}t.prototype=new Error;var n=function(e){throw new t(e)},r={};r.Bzip2Error=t,r.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],r.array=function(e){var t=0,n=0,r=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var s=8-t;i>=s?(o<<=s,o|=r[s]&e[n++],t=0,i-=s):(o<<=i,o|=(e[n]&r[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return o}},r.simple=function(e,t){var n=r.array(e),i=!1,o=1e5*r.header(n),s=new Int32Array(o);do{i=r.decompress(n,t,s,o)}while(!i)},r.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=e(24)&&n("No magic number found");var t=e(8)-48;return(t<1||t>9)&&n("Not a BZIP archive"),t},r.decompress=function(e,t,r,i,o){for(var s=-1,a="",u=0;u<6;u++)a+=e(8).toString(16);if("177245385090"==a)return(0|e(32))!==o&&n("Error in bzip2: crc32 do not match"),e(null),null;"314159265359"!=a&&n("eek not valid bzip data");var l=0|e(32);e(1)&&n("unsupported obsolete version");var c=e(24);c>i&&n("Initial position larger than buffer size");var f=e(16),h=0;for(u=0;u<16;u++)if(f&1<<15-u){var d=e(16);for(g=0;g<16;g++)d&1<<15-g&&(this.symToByte[h++]=16*u+g)}var p=e(3);(p<2||p>6)&&n("another error");var m=e(15);for(0==m&&n("meh"),u=0;u<p;u++)this.mtfSymbol[u]=u;for(u=0;u<m;u++){for(var g=0;e(1);g++)g>=p&&n("whoops another error");var y=this.mtfSymbol[g];for(d=g-1;d>=0;d--)this.mtfSymbol[d+1]=this.mtfSymbol[d];this.mtfSymbol[0]=y,this.selectors[u]=y}var D,b,v,w,E=h+2,_=[],F=new Uint8Array(258),x=new Uint16Array(21);for(g=0;g<p;g++){for(f=e(5),u=0;u<E;u++){for(;(f<1||f>20)&&n("I gave up a while ago on writing error messages"),e(1);)e(1)?f--:f++;F[u]=f}var C,A;for(C=A=F[0],u=1;u<E;u++)F[u]>A?A=F[u]:F[u]<C&&(C=F[u]);(D=_[g]={}).permute=new Int32Array(258),D.limit=new Int32Array(21),D.base=new Int32Array(21),D.minLen=C,D.maxLen=A;var O=D.base,k=D.limit,S=0;for(u=C;u<=A;u++)for(f=0;f<E;f++)F[f]==u&&(D.permute[S++]=f);for(u=C;u<=A;u++)x[u]=k[u]=0;for(u=0;u<E;u++)x[F[u]]++;for(S=f=0,u=C;u<A;u++)S+=x[u],k[u]=S-1,S<<=1,O[u+1]=S-(f+=x[u]);k[A]=S+x[A]-1,O[C]=0}for(u=0;u<256;u++)this.mtfSymbol[u]=u,this.byteCount[u]=0;for(b=v=E=w=0;;){for(E--||(E=49,w>=m&&n("meow i'm a kitty, that's an error"),O=(D=_[this.selectors[w++]]).base,k=D.limit),g=e(u=D.minLen);u>D.maxLen&&n("rawr i'm a dinosaur"),!(g<=k[u]);)u++,g=g<<1|e(1);((g-=O[u])<0||g>=258)&&n("moo i'm a cow");var j=D.permute[g];if(0!=j&&1!=j){if(b)for(b=0,v+f>i&&n("Boom."),y=this.symToByte[this.mtfSymbol[0]],this.byteCount[y]+=f;f--;)r[v++]=y;if(j>h)break;for(v>=i&&n("I can't think of anything. Error"),u=j-1,y=this.mtfSymbol[u],d=u-1;d>=0;d--)this.mtfSymbol[d+1]=this.mtfSymbol[d];this.mtfSymbol[0]=y,y=this.symToByte[y],this.byteCount[y]++,r[v++]=y}else b||(b=1,f=0),f+=0==j?b:2*b,b<<=1}for((c<0||c>=v)&&n("I'm a monkey and I'm throwing something at someone, namely you"),g=0,u=0;u<256;u++)d=g+this.byteCount[u],this.byteCount[u]=g,g=d;for(u=0;u<v;u++)y=255&r[u],r[this.byteCount[y]]|=u<<8,this.byteCount[y]++;var B,P,R,I=0,M=0,$=0;for(v&&(M=255&(I=r[c]),I>>=8,$=-1);v;){for(v--,P=M,M=255&(I=r[I]),I>>=8,3==$++?(B=M,R=P,M=-1):(B=1,R=M);B--;)s=4294967295&(s<<8^this.crcTable[255&(s>>24^R)]),t(R);M!=P&&($=0)}return(0|(s=~s>>>0))!=(0|l)&&n("Error in bzip2: crc32 do not match"),4294967295&(s^(o<<1|o>>>31))},e.exports=r},4323:(e,t,n)=>{e.exports=n(9023).deprecate},9359:(e,t,n)=>{"use strict";const r=n(4813),i=n(8395),o=n(7007),s=new Set(["","›"]),a="]8;;",u=e=>`${s.values().next().value}[${e}m`,l=e=>`${s.values().next().value}${a}${e}`,c=(e,t,n)=>{const o=[...t];let u=!1,l=!1,c=r(i(e[e.length-1]));for(const[t,i]of o.entries()){const f=r(i);c+f<=n?e[e.length-1]+=i:(e.push(i),c=0),s.has(i)&&(u=!0,l=o.slice(t+1).join("").startsWith(a)),u?l?""===i&&(u=!1,l=!1):"m"===i&&(u=!1):(c+=f,c===n&&t<o.length-1&&(e.push(""),c=0))}!c&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},f=e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(r(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")};e.exports=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,h,d="";const p=(e=>e.split(" ").map((e=>r(e))))(e);let m=[""];for(const[i,o]of e.split(" ").entries()){!1!==n.trim&&(m[m.length-1]=m[m.length-1].trimStart());let e=r(m[m.length-1]);if(0!==i&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(m.push(""),e=0),(e>0||!1===n.trim)&&(m[m.length-1]+=" ",e++)),n.hard&&p[i]>t){const n=t-e,r=1+Math.floor((p[i]-n-1)/t);Math.floor((p[i]-1)/t)<r&&m.push(""),c(m,o,t)}else{if(e+p[i]>t&&e>0&&p[i]>0){if(!1===n.wordWrap&&e<t){c(m,o,t);continue}m.push("")}e+p[i]>t&&!1===n.wordWrap?c(m,o,t):m[m.length-1]+=o}}!1!==n.trim&&(m=m.map(f));const g=[...m.join("\n")];for(const[e,t]of g.entries()){if(d+=t,s.has(t)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${a}(?<uri>.*))`).exec(g.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);i=39===e?void 0:e}else void 0!==t.uri&&(h=0===t.uri.length?void 0:t.uri)}const n=o.codes.get(Number(i));"\n"===g[e+1]?(h&&(d+=l("")),i&&n&&(d+=u(n))):"\n"===t&&(i&&n&&(d+=u(i)),h&&(d+=l(h)))}return d})(e,t,n))).join("\n")},1591:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},7410:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},8953:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8953,e.exports=t},7315:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7315,e.exports=t},5600:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=5600,e.exports=t},3660:(e,t,n)=>{var r=n(9896),i=n(3106),o=n(4602),s=n(9149),a=n(9023),u=n(4434).EventEmitter,l=n(2203).Transform,c=n(2203).PassThrough,f=n(2203).Writable;function h(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!1),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=O),r.fstat(e,(function(r,i){if(r)return n(r);d(o.createFromFd(e,{autoClose:!0}),i.size,t,n)}))}function d(e,t,n,r){"function"==typeof n&&(r=n,n=null),null==n&&(n={}),null==n.autoClose&&(n.autoClose=!0),null==n.lazyEntries&&(n.lazyEntries=!1),null==n.decodeStrings&&(n.decodeStrings=!0);var i=!!n.decodeStrings;if(null==n.validateEntrySizes&&(n.validateEntrySizes=!0),null==n.strictFileNames&&(n.strictFileNames=!1),null==r&&(r=O),"number"!=typeof t)throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var o=Math.min(65557,t),s=F(o),a=t-s.length;v(e,s,0,o,a,(function(u){if(u)return r(u);for(var l=o-22;l>=0;l-=1)if(101010256===s.readUInt32LE(l)){var c=s.slice(l),f=c.readUInt16LE(4);if(0!==f)return r(new Error("multi-disk zip files are not supported: found disk number: "+f));var h=c.readUInt16LE(10),d=c.readUInt32LE(16),m=c.readUInt16LE(20),g=c.length-22;if(m!==g)return r(new Error("invalid comment length. expected: "+g+". found: "+m));var y=i?C(c,22,c.length,!1):c.slice(22);if(65535!==h&&4294967295!==d)return r(null,new p(e,d,t,h,y,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames));var D=F(20),b=a+l-D.length;return void v(e,D,0,D.length,b,(function(o){if(o)return r(o);if(117853008!==D.readUInt32LE(0))return r(new Error("invalid zip64 end of central directory locator signature"));var s=A(D,8),a=F(56);v(e,a,0,a.length,s,(function(o){return o?r(o):101075792!==a.readUInt32LE(0)?r(new Error("invalid zip64 end of central directory record signature")):(h=A(a,32),d=A(a,48),r(null,new p(e,d,t,h,y,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames)))}))}))}r(new Error("end of central directory record signature not found"))}))}function p(e,t,n,r,i,o,s,a,l,c){var f=this;u.call(f),f.reader=e,f.reader.on("error",(function(e){g(f,e)})),f.reader.once("close",(function(){f.emit("close")})),f.readEntryCursor=t,f.fileSize=n,f.entryCount=r,f.comment=i,f.entriesRead=0,f.autoClose=!!o,f.lazyEntries=!!s,f.decodeStrings=!!a,f.validateEntrySizes=!!l,f.strictFileNames=!!c,f.isOpen=!0,f.emittedError=!1,f.lazyEntries||f._readEntry()}function m(e,t){e.autoClose&&e.close(),g(e,t)}function g(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}function y(){}function D(e,t){return new Date(1980+(e>>9&127),(e>>5&15)-1,31&e,t>>11&31,t>>5&63,2*(31&t),0)}function b(e){return-1!==e.indexOf("\\")?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:-1!==e.split("/").indexOf("..")?"invalid relative path: "+e:null}function v(e,t,n,r,i,o){if(0===r)return setImmediate((function(){o(null,F(0))}));e.read(t,n,r,i,(function(e,t){return e?o(e):t<r?o(new Error("unexpected EOF")):void o()}))}function w(e){l.call(this),this.actualByteCount=0,this.expectedByteCount=e}function E(){u.call(this),this.refCount=0}function _(e){c.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}t.open=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!0),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=O),r.open(e,"r",(function(e,i){if(e)return n(e);h(i,t,(function(e,t){e&&r.close(i,O),n(e,t)}))}))},t.fromFd=h,t.fromBuffer=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),t.autoClose=!1,null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),d(o.createFromBuffer(e,{maxChunkSize:65536}),e.length,t,n)},t.fromRandomAccessReader=d,t.dosDateTimeToDate=D,t.validateFileName=b,t.ZipFile=p,t.Entry=y,t.RandomAccessReader=E,a.inherits(p,u),p.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())},p.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()},p.prototype._readEntry=function(){var e=this;if(e.entryCount!==e.entriesRead){if(!e.emittedError){var t=F(46);v(e.reader,t,0,t.length,e.readEntryCursor,(function(n){if(n)return m(e,n);if(!e.emittedError){var r=new y,i=t.readUInt32LE(0);if(33639248!==i)return m(e,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(r.versionMadeBy=t.readUInt16LE(4),r.versionNeededToExtract=t.readUInt16LE(6),r.generalPurposeBitFlag=t.readUInt16LE(8),r.compressionMethod=t.readUInt16LE(10),r.lastModFileTime=t.readUInt16LE(12),r.lastModFileDate=t.readUInt16LE(14),r.crc32=t.readUInt32LE(16),r.compressedSize=t.readUInt32LE(20),r.uncompressedSize=t.readUInt32LE(24),r.fileNameLength=t.readUInt16LE(28),r.extraFieldLength=t.readUInt16LE(30),r.fileCommentLength=t.readUInt16LE(32),r.internalFileAttributes=t.readUInt16LE(36),r.externalFileAttributes=t.readUInt32LE(38),r.relativeOffsetOfLocalHeader=t.readUInt32LE(42),64&r.generalPurposeBitFlag)return m(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=F(r.fileNameLength+r.extraFieldLength+r.fileCommentLength),v(e.reader,t,0,t.length,e.readEntryCursor,(function(n){if(n)return m(e,n);if(!e.emittedError){var i=!!(2048&r.generalPurposeBitFlag);r.fileName=e.decodeStrings?C(t,0,r.fileNameLength,i):t.slice(0,r.fileNameLength);var o=r.fileNameLength+r.extraFieldLength,a=t.slice(r.fileNameLength,o);r.extraFields=[];for(var u=0;u<a.length-3;){var l=a.readUInt16LE(u+0),c=a.readUInt16LE(u+2),f=u+4,h=f+c;if(h>a.length)return m(e,new Error("extra field length exceeds extra field buffer size"));var d=F(c);a.copy(d,0,f,h),r.extraFields.push({id:l,data:d}),u=h}if(r.fileComment=e.decodeStrings?C(t,o,o+r.fileCommentLength,i):t.slice(o,o+r.fileCommentLength),r.comment=r.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,4294967295===r.uncompressedSize||4294967295===r.compressedSize||4294967295===r.relativeOffsetOfLocalHeader){var p=null;for(u=0;u<r.extraFields.length;u++)if(1===(y=r.extraFields[u]).id){p=y.data;break}if(null==p)return m(e,new Error("expected zip64 extended information extra field"));var g=0;if(4294967295===r.uncompressedSize){if(g+8>p.length)return m(e,new Error("zip64 extended information extra field does not include uncompressed size"));r.uncompressedSize=A(p,g),g+=8}if(4294967295===r.compressedSize){if(g+8>p.length)return m(e,new Error("zip64 extended information extra field does not include compressed size"));r.compressedSize=A(p,g),g+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(g+8>p.length)return m(e,new Error("zip64 extended information extra field does not include relative header offset"));r.relativeOffsetOfLocalHeader=A(p,g),g+=8}}if(e.decodeStrings)for(u=0;u<r.extraFields.length;u++){var y;if(28789===(y=r.extraFields[u]).id){if(y.data.length<6)continue;if(1!==y.data.readUInt8(0))continue;var D=y.data.readUInt32LE(1);if(s.unsigned(t.slice(0,r.fileNameLength))!==D)continue;r.fileName=C(y.data,5,y.data.length,!0);break}}if(e.validateEntrySizes&&0===r.compressionMethod){var v=r.uncompressedSize;if(r.isEncrypted()&&(v+=12),r.compressedSize!==v){var w="compressed/uncompressed size mismatch for stored file: "+r.compressedSize+" != "+r.uncompressedSize;return m(e,new Error(w))}}if(e.decodeStrings){e.strictFileNames||(r.fileName=r.fileName.replace(/\\/g,"/"));var E=b(r.fileName,e.validateFileNameOptions);if(null!=E)return m(e,new Error(E))}e.emit("entry",r),e.lazyEntries||e._readEntry()}}))}}))}}else setImmediate((function(){e.autoClose&&e.close(),e.emittedError||e.emit("end")}))},p.prototype.openReadStream=function(e,t,n){var r=this,o=0,s=e.compressedSize;if(null==n)n=t,t={};else{if(null!=t.decrypt){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(!1!==t.decrypt)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&!1!==t.decompress)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(null!=t.decompress){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!1!==t.decompress&&!0!==t.decompress)throw new Error("invalid options.decompress value: "+t.decompress)}if(null!=t.start||null!=t.end){if(e.isCompressed()&&!1!==t.decompress)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&!1!==t.decrypt)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(null!=t.start){if((o=t.start)<0)throw new Error("options.start < 0");if(o>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=t.end){if((s=t.end)<0)throw new Error("options.end < 0");if(s>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<o)throw new Error("options.end < options.start")}}if(!r.isOpen)return n(new Error("closed"));if(e.isEncrypted()&&!1!==t.decrypt)return n(new Error("entry is encrypted, and options.decrypt !== false"));r.reader.ref();var a=F(30);v(r.reader,a,0,a.length,e.relativeOffsetOfLocalHeader,(function(u){try{if(u)return n(u);var l=a.readUInt32LE(0);if(67324752!==l)return n(new Error("invalid local file header signature: 0x"+l.toString(16)));var c,f=a.readUInt16LE(26),h=a.readUInt16LE(28),d=e.relativeOffsetOfLocalHeader+a.length+f+h;if(0===e.compressionMethod)c=!1;else{if(8!==e.compressionMethod)return n(new Error("unsupported compression method: "+e.compressionMethod));c=null==t.decompress||t.decompress}var p=d,m=p+e.compressedSize;if(0!==e.compressedSize&&m>r.fileSize)return n(new Error("file data overflows file bounds: "+p+" + "+e.compressedSize+" > "+r.fileSize));var g=r.reader.createReadStream({start:p+o,end:p+s}),y=g;if(c){var D=!1,b=i.createInflateRaw();g.on("error",(function(e){setImmediate((function(){D||b.emit("error",e)}))})),g.pipe(b),r.validateEntrySizes?(y=new w(e.uncompressedSize),b.on("error",(function(e){setImmediate((function(){D||y.emit("error",e)}))})),b.pipe(y)):y=b,y.destroy=function(){D=!0,b!==y&&b.unpipe(y),g.unpipe(b),g.destroy()}}n(null,y)}finally{r.reader.unref()}}))},y.prototype.getLastModDate=function(){return D(this.lastModFileDate,this.lastModFileTime)},y.prototype.isEncrypted=function(){return!!(1&this.generalPurposeBitFlag)},y.prototype.isCompressed=function(){return 8===this.compressionMethod},a.inherits(w,l),w.prototype._transform=function(e,t,n){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,e)},w.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()},a.inherits(E,u),E.prototype.ref=function(){this.refCount+=1},E.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.close((function(t){if(t)return e.emit("error",t);e.emit("close")}))}},E.prototype.createReadStream=function(e){var t=e.start,n=e.end;if(t===n){var r=new c;return setImmediate((function(){r.end()})),r}var i=this._readStreamForRange(t,n),o=!1,s=new _(this);i.on("error",(function(e){setImmediate((function(){o||s.emit("error",e)}))})),s.destroy=function(){i.unpipe(s),s.unref(),i.destroy()};var a=new w(n-t);return s.on("error",(function(e){setImmediate((function(){o||a.emit("error",e)}))})),a.destroy=function(){o=!0,s.unpipe(a),s.destroy()},i.pipe(s).pipe(a)},E.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")},E.prototype.read=function(e,t,n,r,i){var o=this.createReadStream({start:r,end:r+n}),s=new f,a=0;s._write=function(n,r,i){n.copy(e,t+a,0,n.length),a+=n.length,i()},s.on("finish",i),o.on("error",(function(e){i(e)})),o.pipe(s)},E.prototype.close=function(e){setImmediate(e)},a.inherits(_,c),_.prototype._flush=function(e){this.unref(),e()},_.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var F,x="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function C(e,t,n,r){if(r)return e.toString("utf8",t,n);for(var i="",o=t;o<n;o++)i+=x[e[o]];return i}function A(e,t){var n=e.readUInt32LE(t);return 4294967296*e.readUInt32LE(t+4)+n}function O(e){if(e)throw e}F="function"==typeof Buffer.allocUnsafe?function(e){return Buffer.allocUnsafe(e)}:function(e){return new Buffer(e)}},1909:e=>{"use strict";e.exports=require("copy-webpack-plugin")},3979:e=>{"use strict";e.exports=require("terser-webpack-plugin")},1144:e=>{"use strict";e.exports=require("tsconfig-paths-webpack-plugin")},6807:e=>{"use strict";e.exports=require("webpack")},7271:e=>{"use strict";e.exports=require("zip-webpack-plugin")},2613:e=>{"use strict";e.exports=require("assert")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},1943:e=>{"use strict";e.exports=require("fs/promises")},3339:e=>{"use strict";e.exports=require("module")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},932:e=>{"use strict";e.exports=require("process")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},164:(e,t,n)=>{"use strict";const r={right:function(e,t){e=e.trim();const n=s.stringWidth(e);return n<t?" ".repeat(t-n)+e:e},center:function(e,t){e=e.trim();const n=s.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}};class i{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let n=0;return t.forEach((e=>{e.length>1&&s.stringWidth(e[0])>n&&(n=Math.min(Math.floor(.5*this.width),s.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:0===r&&e.length>1?n:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=s.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((n,i)=>{let a="";n.forEach(((n,u)=>{const{width:l}=e[u],c=this.negatePadding(e[u]);let f=n;c>s.stringWidth(n)&&(f+=" ".repeat(c-s.stringWidth(n))),e[u].align&&"left"!==e[u].align&&this.wrap&&(f=(0,r[e[u].align])(f,c),s.stringWidth(f)<c&&(f+=" ".repeat((l||0)-s.stringWidth(f)-1)));const h=e[u].padding||[0,0,0,0];h[3]&&(a+=" ".repeat(h[3])),a+=o(e[u],f,"| "),a+=f,a+=o(e[u],f," |"),h[1]&&(a+=" ".repeat(h[1])),0===i&&t.length>0&&(a=this.renderInline(a,t[t.length-1]))})),t.push({text:a.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const n=e.match(/^ */),r=n?n[0].length:0,i=t.text,o=s.stringWidth(i.trimRight());return t.span?this.wrap?r<o?e:(t.hidden=!0,i.trimRight()+" ".repeat(r-o)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],n=this.columnWidths(e);let r;return e.forEach(((e,i)=>{e.width=n[i],r=this.wrap?s.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach(((e,n)=>{t[n]||t.push([]);const r=t[n];for(let e=0;e<i;e++)void 0===r[e]&&r.push("");r.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||s.stringWidth(e.text)));let t=e.length,n=this.width;const r=e.map((e=>{if(e.width)return t--,n-=e.width,e.width})),i=t?Math.floor(n/t):0;return r.map(((t,n)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);return e.border?n+4:n}(e[n])):t))}}function o(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?n:" ":""}let s;const a=n(4813),u=n(8395),l=n(9359);e.exports=function(e){return function(e,t){return s=t,new i({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:a,stripAnsi:u,wrap:l})}},9668:(e,t,n)=>{"use strict";var r=n(9896),i=n(9023),o=n(6928);let s;class a{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let n=function(){};return"function"==typeof e[e.length-1]&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),s.format.apply(s.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=1===r?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][1===r?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const a=[o];return~o.indexOf("%d")&&a.push(r),s.format.apply(s.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach((function(e,r){const i=t[r+1];n+=e,void 0!==i&&(n+="%s")})),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,i=t.cb,o=this._resolveLocaleFile(n,r),a=JSON.stringify(this.cache[r],null,2);s.fs.writeFile(o,a,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{s.fs.readFileSync&&(e=JSON.parse(s.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),"ENOENT"!==n.code)throw n;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=s.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){const r=s.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return s.exists(e)}}var u={fs:{readFileSync:r.readFileSync,writeFile:r.writeFile},format:i.format,resolve:o.resolve,exists:e=>{try{return r.statSync(e).isFile()}catch(e){return!1}}};e.exports=e=>function(e,t){s=t;const n=new a(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}(e,u)},7058:(e,t,n)=>{"use strict";var r,i=n(9023),o=n(6928);function s(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let i=r?r[0].length:0;i<e.length;i++){let r=e.charAt(i);n&&(n=!1,r=r.toUpperCase()),0===i||"-"!==r&&"_"!==r?"-"!==r&&"_"!==r&&(t+=r):n=!0}return t}}function a(e,t){const n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){const o=n.charAt(i),s=e.charAt(i);r+=o!==s&&i>0?`${t}${n.charAt(i)}`:s}return r}function u(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let l;function c(e){return void 0!==e?e+1:1}function f(e){return"__proto__"===e?"___proto___":e}var h,d,p;n(9896),function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(r||(r={}));const m=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,g=null!==(d=null===(h=null===process||void 0===process?void 0:process.versions)||void 0===h?void 0:h.node)&&void 0!==d?d:null===(p=null===process||void 0===process?void 0:process.version)||void 0===p?void 0:p.slice(1);if(g&&Number(g.match(/^([^.]+)/)[1])<m)throw Error(`yargs parser supports a minimum Node.js version of ${m}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const y=process?process.env:{},D=new class{constructor(e){l=e}parse(e,t){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),i=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,n=null,r=null,i=null;const o=[];for(let s=0;s<e.length;s++)n=r,r=e.charAt(s)," "!==r||i?(r===i?i=null:"'"!==r&&'"'!==r||i||(i=r),o[t]||(o[t]=""),o[t]+=r):" "!==n&&t++;return o}(e),o="string"==typeof e,h=function(e){const t=[],n=Object.create(null);let r=!0;for(Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter((function(e){return-1!==t[n].indexOf(e)})).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach((function(e){e=e.filter((function(e,t,n){return n.indexOf(e)===t}));const t=e.pop();void 0!==t&&"string"==typeof t&&(n[t]=e)})),n}(Object.assign(Object.create(null),n.alias)),d=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),p=Object.assign(Object.create(null),n.default),m=n.configObjects||[],g=n.envPrefix,y=d["populate--"],D=y?"--":"_",b=Object.create(null),v=Object.create(null),w=n.__||l.format,E={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,F=new RegExp("^--"+d["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,n=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();n&&(E[n][t]=!0),E.arrays[t]=!0,E.keys.push(t)})),[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){E.bools[e]=!0,E.keys.push(e)})),[].concat(n.string||[]).filter(Boolean).forEach((function(e){E.strings[e]=!0,E.keys.push(e)})),[].concat(n.number||[]).filter(Boolean).forEach((function(e){E.numbers[e]=!0,E.keys.push(e)})),[].concat(n.count||[]).filter(Boolean).forEach((function(e){E.counts[e]=!0,E.keys.push(e)})),[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){E.normalize[e]=!0,E.keys.push(e)})),"object"==typeof n.narg&&Object.entries(n.narg).forEach((([e,t])=>{"number"==typeof t&&(E.nargs[e]=t,E.keys.push(e))})),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach((([e,t])=>{"function"==typeof t&&(E.coercions[e]=t,E.keys.push(e))})),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach((function(e){E.configs[e]=!0})):"object"==typeof n.config&&Object.entries(n.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(E.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){E.aliases[e]||(E.aliases[e]=[].concat(h[e]||[]),E.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&d["camel-case-expansion"]){const n=s(t);n!==e&&-1===E.aliases[e].indexOf(n)&&(E.aliases[e].push(n),b[n]=!0)}})),E.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&d["camel-case-expansion"]){const n=a(t,"-");n!==e&&-1===E.aliases[e].indexOf(n)&&(E.aliases[e].push(n),b[n]=!0)}})),E.aliases[e].forEach((function(t){E.aliases[t]=[e].concat(E.aliases[e].filter((function(e){return t!==e})))})))}))}))}(n.key,h,n.default,E.arrays),Object.keys(p).forEach((function(e){(E.aliases[e]||[]).forEach((function(t){p[t]=p[e]}))}));let x=null;Object.keys(E.counts).find((e=>q(e,E.arrays)?(x=Error(w("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!q(e,E.nargs)&&(x=Error(w("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let C=[];const A=Object.assign(Object.create(null),{_:[]}),O={};for(let e=0;e<i.length;e++){const t=i[e],n=t.replace(/^-{3,}/,"---");let r,o,s,a,u,l;if("--"!==t&&/^-/.test(t)&&U(t))k(t);else{if(n.match(/^---+(=|$)/)){k(t);continue}if(t.match(/^--.+=/)||!d["short-option-groups"]&&t.match(/^-.+=/))a=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&(q(a[1],E.arrays)?e=j(e,a[1],i,a[2]):!1!==q(a[1],E.nargs)?e=S(e,a[1],i,a[2]):B(a[1],a[2],!0));else if(t.match(F)&&d["boolean-negation"])a=t.match(F),null!==a&&Array.isArray(a)&&a.length>=2&&(o=a[1],B(o,!!q(o,E.arrays)&&[!1]));else if(t.match(/^--.+/)||!d["short-option-groups"]&&t.match(/^-[^-]+/))a=t.match(/^--?(.+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(o=a[1],q(o,E.arrays)?e=j(e,o,i):!1!==q(o,E.nargs)?e=S(e,o,i):(u=i[e+1],void 0===u||u.match(/^-/)&&!u.match(_)||q(o,E.bools)||q(o,E.counts)?/^(true|false)$/.test(u)?(B(o,u),e++):B(o,H(o)):(B(o,u),e++)));else if(t.match(/^-.\..+=/))a=t.match(/^-([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&B(a[1],a[2]);else if(t.match(/^-.\..+/)&&!t.match(_))u=i[e+1],a=t.match(/^-(.\..+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(o=a[1],void 0===u||u.match(/^-/)||q(o,E.bools)||q(o,E.counts)?B(o,H(o)):(B(o,u),e++));else if(t.match(/^-[^-]+/)&&!t.match(_)){s=t.slice(1,-1).split(""),r=!1;for(let n=0;n<s.length;n++){if(u=t.slice(n+2),s[n+1]&&"="===s[n+1]){l=t.slice(n+3),o=s[n],q(o,E.arrays)?e=j(e,o,i,l):!1!==q(o,E.nargs)?e=S(e,o,i,l):B(o,l),r=!0;break}if("-"!==u){if(/[A-Za-z]/.test(s[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(u)&&!1===q(u,E.bools)){B(s[n],u),r=!0;break}if(s[n+1]&&s[n+1].match(/\W/)){B(s[n],u),r=!0;break}B(s[n],H(s[n]))}else B(s[n],u)}o=t.slice(-1)[0],r||"-"===o||(q(o,E.arrays)?e=j(e,o,i):!1!==q(o,E.nargs)?e=S(e,o,i):(u=i[e+1],void 0===u||/^(-|--)[^-]/.test(u)&&!u.match(_)||q(o,E.bools)||q(o,E.counts)?/^(true|false)$/.test(u)?(B(o,u),e++):B(o,H(o)):(B(o,u),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(_)&&q(t.slice(1),E.bools))o=t.slice(1),B(o,H(o));else{if("--"===t){C=i.slice(e+1);break}if(d["halt-at-non-option"]){C=i.slice(e);break}k(t)}}}function k(e){const t=I("_",e);"string"!=typeof t&&"number"!=typeof t||A._.push(t)}function S(e,t,n,r){let i,o=q(t,E.nargs);if(o="number"!=typeof o||isNaN(o)?1:o,0===o)return W(r)||(x=Error(w("Argument unexpected for: %s",t))),B(t,H(t)),e;let s=W(r)?0:1;if(d["nargs-eats-options"])n.length-(e+1)+s<o&&(x=Error(w("Not enough arguments following: %s",t))),s=o;else{for(i=e+1;i<n.length&&(!n[i].match(/^-[^0-9]/)||n[i].match(_)||U(n[i]));i++)s++;s<o&&(x=Error(w("Not enough arguments following: %s",t)))}let a=Math.min(s,o);for(!W(r)&&a>0&&(B(t,r),a--),i=e+1;i<a+e+1;i++)B(t,n[i]);return e+a}function j(e,t,n,r){let i=[],s=r||n[e+1];const a=q(t,E.nargs);if(q(t,E.bools)&&!/^(true|false)$/.test(s))i.push(!0);else if(W(s)||W(r)&&/^-/.test(s)&&!_.test(s)&&!U(s)){if(void 0!==p[t]){const e=p[t];i=Array.isArray(e)?e:[e]}}else{W(r)||i.push(R(t,r,!0));for(let r=e+1;r<n.length&&!(!d["greedy-arrays"]&&i.length>0||a&&"number"==typeof a&&i.length>=a)&&(s=n[r],!/^-/.test(s)||_.test(s)||U(s));r++)e=r,i.push(R(t,s,o))}return"number"==typeof a&&(a&&i.length<a||isNaN(a)&&0===i.length)&&(x=Error(w("Not enough arguments following: %s",t))),B(t,i),e}function B(e,t,n=o){if(/-/.test(e)&&d["camel-case-expansion"]){const t=e.split(".").map((function(e){return s(e)})).join(".");P(e,t)}const r=R(e,t,n),i=e.split(".");L(A,i,r),E.aliases[e]&&E.aliases[e].forEach((function(e){const t=e.split(".");L(A,t,r)})),i.length>1&&d["dot-notation"]&&(E.aliases[i[0]]||[]).forEach((function(t){let n=t.split(".");const o=[].concat(i);o.shift(),n=n.concat(o),(E.aliases[e]||[]).includes(n.join("."))||L(A,n,r)})),q(e,E.normalize)&&!q(e,E.arrays)&&[e].concat(E.aliases[e]||[]).forEach((function(e){Object.defineProperty(O,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?l.normalize(e):e}})}))}function P(e,t){E.aliases[e]&&E.aliases[e].length||(E.aliases[e]=[t],b[t]=!0),E.aliases[t]&&E.aliases[t].length||P(t,e)}function R(e,t,n){n&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(q(e,E.bools)||q(e,E.counts))&&"string"==typeof t&&(t="true"===t);let r=Array.isArray(t)?t.map((function(t){return I(e,t)})):I(e,t);return q(e,E.counts)&&(W(r)||"boolean"==typeof r)&&(r=c()),q(e,E.normalize)&&q(e,E.arrays)&&(r=Array.isArray(t)?t.map((e=>l.normalize(e))):l.normalize(t)),r}function I(e,t){return d["parse-positional-numbers"]||"_"!==e?(q(e,E.strings)||q(e,E.bools)||Array.isArray(t)||(u(t)&&d["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!W(t)&&q(e,E.numbers))&&(t=Number(t)),t):t}function M(e,t){Object.keys(e).forEach((function(n){const r=e[n],i=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&d["dot-notation"]?M(r,i):(!N(A,i.split("."))||q(i,E.arrays)&&d["combine-arrays"])&&B(i,r)}))}function $(e,t){if(void 0===g)return;const n="string"==typeof g?g:"",r=l.env();Object.keys(r).forEach((function(i){if(""===n||0===i.lastIndexOf(n,0)){const o=i.split("__").map((function(e,t){return 0===t&&(e=e.substring(n.length)),s(e)}));(t&&E.configs[o.join(".")]||!t)&&!N(e,o)&&B(o.join("."),r[i])}}))}function T(e,t,n,r=!1){Object.keys(n).forEach((function(i){N(e,i.split("."))||(L(e,i.split("."),n[i]),r&&(v[i]=!0),(t[i]||[]).forEach((function(t){N(e,t.split("."))||L(e,t.split("."),n[i])})))}))}function N(e,t){let n=e;d["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const r=t[t.length-1];return"object"==typeof n&&r in n}function L(e,t,n){let r=e;d["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=f(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));const i=f(t[t.length-1]),o=q(t.join("."),E.arrays),s=Array.isArray(n);let a=d["duplicate-arguments-array"];!a&&q(i,E.nargs)&&(a=!0,(!W(r[i])&&1===E.nargs[i]||Array.isArray(r[i])&&r[i].length===E.nargs[i])&&(r[i]=void 0)),n===c()?r[i]=c(r[i]):Array.isArray(r[i])?a&&o&&s?r[i]=d["flatten-duplicate-arrays"]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):a||Boolean(o)!==Boolean(s)?r[i]=r[i].concat([n]):r[i]=n:void 0===r[i]&&o?r[i]=s?n:[n]:!a||void 0===r[i]||q(i,E.counts)||q(i,E.bools)?r[i]=n:r[i]=[r[i],n]}function q(e,t){const n=[].concat(E.aliases[e]||[],e),r=Object.keys(t),i=n.find((e=>r.includes(e)));return!!i&&t[i]}function z(e){const t=Object.keys(E);return[].concat(t.map((e=>E[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function U(e){return d["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(_)&&(!function(e){if(e.match(_)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let i=0;i<r.length;i++){if(t=e.slice(i+2),!z(r[i])){n=!1;break}if(r[i+1]&&"="===r[i+1]||"-"===t||/[A-Za-z]/.test(r[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||r[i+1]&&r[i+1].match(/\W/))break}return n}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const n=e.match(t);return n&&z(n[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,F,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function H(e){return q(e,E.bools)||q(e,E.counts)||!(`${e}`in p)?(t=function(e){let t=r.BOOLEAN;return q(e,E.strings)?t=r.STRING:q(e,E.numbers)?t=r.NUMBER:q(e,E.bools)?t=r.BOOLEAN:q(e,E.arrays)&&(t=r.ARRAY),t}(e),{[r.BOOLEAN]:!0,[r.STRING]:"",[r.NUMBER]:void 0,[r.ARRAY]:[]}[t]):p[e];var t}function W(e){return void 0===e}return $(A,!0),$(A,!1),function(e){const t=Object.create(null);T(t,E.aliases,p),Object.keys(E.configs).forEach((function(n){const r=e[n]||t[n];if(r)try{let e=null;const t=l.resolve(l.cwd(),r),i=E.configs[n];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(x=e)}else e=l.require(t);M(e)}catch(t){"PermissionDenied"===t.name?x=t:e[n]&&(x=Error(w("Invalid JSON config file: %s",r)))}}))}(A),void 0!==m&&m.forEach((function(e){M(e)})),T(A,E.aliases,p,!0),function(e){let t;const n=new Set;Object.keys(e).forEach((function(r){if(!n.has(r)&&(t=q(r,E.coercions),"function"==typeof t))try{const i=I(r,t(e[r]));[].concat(E.aliases[r]||[],r).forEach((t=>{n.add(t),e[t]=i}))}catch(e){x=e}}))}(A),d["set-placeholder-key"]&&function(e){E.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(A),Object.keys(E.counts).forEach((function(e){N(A,e.split("."))||B(e,0)})),y&&C.length&&(A[D]=[]),C.forEach((function(e){A[D].push(e)})),d["camel-case-expansion"]&&d["strip-dashed"]&&Object.keys(A).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete A[e]})),d["strip-aliased"]&&[].concat(...Object.keys(h).map((e=>h[e]))).forEach((e=>{d["camel-case-expansion"]&&e.includes("-")&&delete A[e.split(".").map((e=>s(e))).join(".")],delete A[e]})),{aliases:Object.assign({},E.aliases),argv:Object.assign(O,A),configuration:d,defaulted:Object.assign({},v),error:x,newAliases:Object.assign({},b)}}}({cwd:process.cwd,env:()=>y,format:i.format,normalize:o.normalize,resolve:o.resolve,require:e=>n(8953)(e)}),b=function(e,t){return D.parse(e.slice(),t).argv};b.detailed=function(e,t){return D.parse(e.slice(),t)},b.camelCase=s,b.decamelize=a,b.looksLikeNumber=u,e.exports=b},5338:(e,t,n)=>{"use strict";var r=n(2613);class i extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,i)}}let o,s=[];function a(e,t,r,l){o=l;let c={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return c;const u=/\.json|\..*rc$/.test(e.extends);let l=null;if(u)l=function(e,t){return o.path.resolve(e,t)}(t,e.extends);else try{l=n(7315).resolve(e.extends)}catch(t){return e}!function(e){if(s.indexOf(e)>-1)throw new i(`Circular extended configurations: '${e}'.`)}(l),s.push(l),c=u?JSON.parse(o.readFileSync(l,"utf8")):n(7315)(e.extends),delete e.extends,c=a(c,o.path.dirname(l),r,o)}return s=[],r?u(c,e):Object.assign({},c,e)}function u(e,t){const n={};function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(n,e);for(const i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=u(e[i],t[i]):n[i]=t[i];return n}function l(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${e}`);const i={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach(((e,r)=>{let o=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&r===t.length-1&&(o=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(n,"").split("|"),variadic:o}):i.demanded.push({cmd:e.replace(n,"").split("|"),variadic:o})})),i}const c=["first","second","third","fourth","fifth","sixth"];function f(e,t,n){try{let r=0;const[o,s,a]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[l(`cmd ${e}`),t,n],u=[].slice.call(s);for(;u.length&&void 0===u[u.length-1];)u.pop();const c=a||u.length;if(c<o.demanded.length)throw new i(`Not enough arguments provided. Expected ${o.demanded.length} but received ${u.length}.`);const f=o.demanded.length+o.optional.length;if(c>f)throw new i(`Too many arguments provided. Expected max ${f} but received ${c}.`);o.demanded.forEach((e=>{const t=h(u.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&d(t,e.cmd,r),r+=1})),o.optional.forEach((e=>{if(0===u.length)return;const t=h(u.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&d(t,e.cmd,r),r+=1}))}catch(e){console.warn(e.stack)}}function h(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function d(e,t,n){throw new i(`Invalid ${c[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}function p(e){return!!e&&!!e.then&&"function"==typeof e.then}function m(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function g(e,t){t.assert.strictEqual(typeof e,"string")}function y(e){return Object.keys(e)}function D(e={},t=()=>!0){const n={};return y(e).forEach((r=>{t(r,e[r])&&(n[r]=e[r])})),n}function b(){return process.versions.electron&&!process.defaultApp?0:1}function v(){return process.argv[b()]}var w=Object.freeze({__proto__:null,hideBin:function(e){return e.slice(b()+1)},getProcessArgvBin:v});function E(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function _(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}class F{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(f("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let r=0;r<e.length;r++){if("function"!=typeof e[r])throw Error("middleware must be a function");const i=e[r];i.applyBeforeValidation=t,i.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=n,i.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const r=[...n[t]||[],t];return!e.option||!r.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function x(e,t,n,r){return n.reduce(((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(n.mutates){if(n.applied)return e;n.applied=!0}if(p(e))return e.then((e=>Promise.all([e,n(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const r=n(e,t);return p(r)?r.then((t=>Object.assign(e,t))):Object.assign(e,r)}}),e)}function C(e,t,n=e=>{throw e}){try{const n="function"==typeof e?e():e;return p(n)?n.then((e=>t(e))):t(n)}catch(e){return n(e)}}const A=/(^\*)|(^\$0)/;class O{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){"boolean"!=typeof(r=r||{}).recurse&&(r.recurse=!1),Array.isArray(r.extensions)||(r.extensions=["js"]);const i="function"==typeof r.visit?r.visit:e=>e;r.visit=(e,t,n)=>{const r=i(e,t,n);if(r){if(this.requireCache.has(t))return r;this.requireCache.add(t),this.addHandler(r)}return r},this.shim.requireDirectory({require:t,filename:n},e,r)}addHandler(e,t,n,r,i,o){let s=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(i);if(r=r||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...s]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(k(n))return void this.addHandler([e].concat(s),t,n.builder,n.handler,n.middlewares,n.deprecated)}if("string"==typeof e){const i=l(e);s=s.map((e=>l(e).cmd));let u=!1;const c=[i.cmd].concat(s).filter((e=>!A.test(e)||(u=!0,!1)));0===c.length&&u&&c.push("$0"),u&&(i.cmd=c[0],s=c.slice(1),e=e.replace(A,i.cmd)),s.forEach((e=>{this.aliasMap[e]=i.cmd})),!1!==t&&this.usage.command(e,t,u,s,o),this.handlers[i.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:a,deprecated:o,demanded:i.demanded,optional:i.optional},u&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,i,o){const s=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),u=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(s.original));const c=this.applyBuilderUpdateUsageAndParse(l,s,t,n.aliases,u,r,i,o);return p(c)?c.then((e=>this.applyMiddlewareAndGetResult(l,s,e.innerArgv,a,i,e.aliases,t))):this.applyMiddlewareAndGetResult(l,s,c.innerArgv,a,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,i,o,s,a){const u=t.builder;let l=n;if(S(u)){n.getInternalMethods().getUsageInstance().freeze();const c=u(n.getInternalMethods().reset(r),a);if(p(c))return c.then((r=>{var a;return l=(a=r)&&"function"==typeof a.getInternalMethods?r:n,this.parseAndUpdateUsage(e,t,l,i,o,s)}))}else(function(e){return"object"==typeof e})(u)&&(n.getInternalMethods().getUsageInstance().freeze(),l=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach((e=>{l.option(e,u[e])})));return this.parseAndUpdateUsage(e,t,l,i,o,s)}parseAndUpdateUsage(e,t,n,r,i,o){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);const s=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,o);return p(s)?s.then((e=>({aliases:n.parsed.aliases,innerArgv:e}))):{aliases:n.parsed.aliases,innerArgv:s}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const n=A.test(t.original)?t.original.replace(A,"").trim():t.original,r=e.filter((e=>!A.test(e)));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,i,o,s,a){if(!o.getInternalMethods().getHasOutput()){const t=o.getInternalMethods().runValidation(i,a,o.parsed.error,e);n=C(n,(e=>(t(e),e)))}if(t.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();const r=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,r,!1,!1),n=C(n=x(n,o,s,!1),(e=>{const n=t.handler(e);return p(n)?n.then((()=>e)):e})),e||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),p(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch((e=>{try{o.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,i,o,s){let a={};if(i)return n;s.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,n,r,s));const u=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=x(n,s,u,!0);return p(l)?l.then((n=>this.handleValidationAndGetResult(e,t,n,r,o,s,u,a))):this.handleValidationAndGetResult(e,t,l,r,o,s,u,a)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);const i=e.demanded.slice(0),o=e.optional.slice(0),s={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,s)}for(;o.length;){const e=o.shift();this.populatePositional(e,t,s)}return t._=n.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,s,this.cmdToParseOptions(e.original),r),s}populatePositional(e,t,n){const r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},n=l(e);return n.demanded.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0})),n.optional.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r})),t}postProcessPositionals(e,t,n,r){const i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(const e of Object.keys(n.alias))i.alias[e]=(i.alias[e]||[]).concat(n.alias[e]);i.array=i.array.concat(n.array),i.config={};const o=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),o.push(`--${e}`),o.push(t)}))})),!o.length)return;const s=Object.assign({},i.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(o,Object.assign({},i,{configuration:s}));if(a.error)r.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const n=Object.keys(t);Object.keys(t).forEach((e=>{n.push(...a.aliases[e])})),Object.keys(a.argv).forEach((i=>{n.includes(i)&&(t[i]||(t[i]=a.argv[i]),!this.isInConfigs(r,i)&&!this.isDefaulted(r,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(e[i])||Array.isArray(a.argv[i]))?e[i]=[].concat(e[i],a.argv[i]):e[i]=a.argv[i])}))}}isDefaulted(e,t){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:n}=e.getOptions();return n.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||n.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=A.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(S(t))return t(e,!0);k(t)||Object.keys(t).forEach((n=>{e.option(n,t[n])}))}moduleName(e){const t=function(e){for(let t,r=0,i=Object.keys(n.c);r<i.length;r++)if(t=n.c[i[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:n}){for(const r of[e,t,n]){if("string"==typeof r||!1===r)return r;m(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();m(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function k(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function S(e){return"function"==typeof e}function j(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const n=t;n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)}))}function B(e){return"boolean"==typeof e}function P(e,t){const n=t.y18n.__,r={},o=[];r.failFn=function(e){o.push(e)};let s=null,a=null,u=!0;r.showHelpOnFail=function(t=!0,n){const[i,o]="string"==typeof t?[!0,t]:[t,n];return e.getInternalMethods().isGlobalContext()&&(a=o),s=o,u=i,r};let l=!1;r.fail=function(t,n){const c=e.getInternalMethods().getLoggerInstance();if(!o.length){if(e.getExitProcess()&&j(!0),!l){l=!0,u&&(e.showHelp("error"),c.error()),(t||n)&&c.error(t||n);const r=s||a;r&&((t||n)&&c.error(""),c.error(r))}if(n=n||new i(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,n);throw n}for(let e=o.length-1;e>=0;--e){const i=o[e];if(B(i)){if(n)throw n;if(t)throw Error(t)}else i(t,n,r)}};let c=[],f=!1;r.usage=(e,t)=>null===e?(f=!0,c=[],r):(f=!1,c.push([e,t||""]),r),r.getUsage=()=>c,r.getUsageDisabled=()=>f,r.getPositionalGroupName=()=>n("Positionals:");let h=[];r.example=(e,t)=>{h.push([e,t||""])};let d=[];r.command=function(e,t,n,r,i=!1){n&&(d=d.map((e=>(e[2]=!1,e)))),d.push([e,t||"",n,r,i])},r.getCommands=()=>d;let p={};r.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{r.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{r.describe(t,e[t])})):p[e]=t},r.getDescriptions=()=>p;let m=[];r.epilog=e=>{m.push(e)};let g,y=!1;r.wrap=e=>{y=!0,g=e},r.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(g=t.process.stdColumns?Math.min(80,t.process.stdColumns):80,y=!0),g);const b="__yargsString__:";function v(e,n,r){let i=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{i=Math.max(t.stringWidth(r?`${r} ${M(e[0])}`:M(e[0]))+I(e[0]),i)})),n&&(i=Math.min(i,parseInt((.5*n).toString(),10))),i}let w;function E(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function _(e,t){let r=`[${n("default:")} `;if(void 0===e&&!t)return null;if(t)r+=t;else switch(typeof e){case"string":r+=`"${e}"`;break;case"object":r+=JSON.stringify(e);break;default:r+=e}return`${r}]`}r.deferY18nLookup=e=>b+e,r.help=function(){if(w)return w;!function(){const t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach((i=>{n.alias[i].forEach((o=>{p[o]&&r.describe(i,p[o]),o in t&&e.demandOption(i,t[o]),n.boolean.includes(o)&&e.boolean(i),n.count.includes(o)&&e.count(i),n.string.includes(o)&&e.string(i),n.normalize.includes(o)&&e.normalize(i),n.array.includes(o)&&e.array(i),n.number.includes(o)&&e.number(i)}))}))}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),o=e.getDemandedOptions(),s=e.getDemandedCommands(),a=e.getDeprecatedOptions(),u=e.getGroups(),l=e.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(s)),g=g.concat(Object.keys(l.default)),g=g.filter(E),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const y=r.getWrap(),D=t.cliui({width:y,wrap:!!y});if(!f)if(c.length)c.forEach((e=>{D.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&D.div({text:`${e[1]}`,padding:[1,0,0,0]})})),D.div();else if(d.length){let e=null;e=s._?`${i} <${n("command")}>\n`:`${i} [${n("command")}]\n`,D.div(`${e}`)}if(d.length>1||1===d.length&&!d[0][2]){D.div(n("Commands:"));const t=e.getInternalMethods().getContext(),r=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((e,t)=>e[0].localeCompare(t[0]))));const o=i?`${i} `:"";d.forEach((e=>{const t=`${o}${r}${e[0].replace(/^\$0 ?/,"")}`;D.span({text:t,padding:[0,2,0,2],width:v(d,y,`${i}${r}`)+4},{text:e[1]});const s=[];e[2]&&s.push(`[${n("default")}]`),e[3]&&e[3].length&&s.push(`[${n("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?s.push(`[${n("deprecated: %s",e[4])}]`):s.push(`[${n("deprecated")}]`)),s.length?D.div({text:s.join(" "),padding:[0,0,0,2],align:"right"}):D.div()})),D.div()}const F=(Object.keys(l.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&F.every((e=>-1===(l.alias[e]||[]).indexOf(t)))));const x=n("Options:");u[x]||(u[x]=[]),function(e,t,n,r){let i=[],o=null;Object.keys(n).forEach((e=>{i=i.concat(n[e])})),e.forEach((e=>{o=[e].concat(t[e]),o.some((e=>-1!==i.indexOf(e)))||n[r].push(e)}))}(g,l.alias,u,x);const C=e=>/^--/.test(M(e)),A=Object.keys(u).filter((e=>u[e].length>0)).map((e=>({groupName:e,normalizedKeys:u[e].filter(E).map((e=>{if(F.includes(e))return e;for(let t,n=0;void 0!==(t=F[n]);n++)if((l.alias[t]||[]).includes(e))return t;return e}))}))).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const n=t.reduce(((t,n)=>(t[n]=[n].concat(l.alias[n]||[]).map((t=>e===r.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?l.boolean.includes(n)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>C(e)===C(t)?0:C(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:n}}));if(A.filter((({groupName:e})=>e!==r.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>C(t[e])))))&&A.filter((({groupName:e})=>e!==r.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var n;C(t[e])&&(t[e]=R(n=t[e])?{text:n.text,indentation:n.indentation+4}:{text:n,indentation:4})}))})),A.forEach((({groupName:t,normalizedKeys:i,switches:s})=>{D.div(t),i.forEach((t=>{const i=s[t];let u=p[t]||"",c=null;u.includes(b)&&(u=n(u.substring(16))),l.boolean.includes(t)&&(c=`[${n("boolean")}]`),l.count.includes(t)&&(c=`[${n("count")}]`),l.string.includes(t)&&(c=`[${n("string")}]`),l.normalize.includes(t)&&(c=`[${n("string")}]`),l.array.includes(t)&&(c=`[${n("array")}]`),l.number.includes(t)&&(c=`[${n("number")}]`);const f=[t in a?(h=a[t],"string"==typeof h?`[${n("deprecated: %s",h)}]`:`[${n("deprecated")}]`):null,c,t in o?`[${n("required")}]`:null,l.choices&&l.choices[t]?`[${n("choices:")} ${r.stringifiedValues(l.choices[t])}]`:null,_(l.default[t],l.defaultDescription[t])].filter(Boolean).join(" ");var h;D.span({text:M(i),padding:[0,2,0,2+I(i)],width:v(s,y)+4},u);const d=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];f&&!d?D.div({text:f,padding:[0,0,0,2],align:"right"}):D.div()})),D.div()})),h.length&&(D.div(n("Examples:")),h.forEach((e=>{e[0]=e[0].replace(/\$0/g,i)})),h.forEach((e=>{""===e[1]?D.div({text:e[0],padding:[0,2,0,2]}):D.div({text:e[0],padding:[0,2,0,2],width:v(h,y)+4},{text:e[1]})})),D.div()),m.length>0){const e=m.map((e=>e.replace(/\$0/g,i))).join("\n");D.div(`${e}\n`)}return D.toString().replace(/\s*$/,"")},r.cacheHelpMessage=function(){w=this.help()},r.clearCachedHelpMessage=function(){w=void 0},r.hasCachedHelpMessage=function(){return!!w},r.showHelp=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(r.help())},r.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):n("generated-value"),")"].join(""),r.stringifiedValues=function(e,t){let n="";const r=t||", ",i=[].concat(e);return e&&i.length?(i.forEach((e=>{n.length&&(n+=r),n+=JSON.stringify(e)})),n):n};let F=null;r.version=e=>{F=e},r.showVersion=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(F)},r.reset=function(e){return s=null,l=!1,c=[],f=!1,m=[],h=[],d=[],p=D(p,(t=>!e[t])),r};const x=[];return r.freeze=function(){x.push({failMessage:s,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:h,commands:d,descriptions:p})},r.unfreeze=function(e=!1){const t=x.pop();t&&(e?(p={...t.descriptions,...p},d=[...t.commands,...d],c=[...t.usages,...c],h=[...t.examples,...h],m=[...t.epilogs,...m]):({failMessage:s,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:h,commands:d,descriptions:p}=t))},r}function R(e){return"object"==typeof e}function I(e){return R(e)?e.indentation:0}function M(e){return R(e)?e.text:e}class ${constructor(e,t,n,r){var i,o,s;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(s=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(o=this.shim.getEnv("ZSH_NAME"))||void 0===o?void 0:o.includes("zsh")))&&void 0!==s&&s}defaultCompletion(e,t,n,r){const i=this.command.getCommandHandlers();for(let t=0,n=e.length;t<n;++t)if(i[e[t]]&&i[e[t]].builder){const n=i[e[t]].builder;if(S(n)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return n(e,!0),e.argv}}const o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,t,n),this.choicesFromOptionsCompletions(o,e,t,n),this.choicesFromPositionalsCompletions(o,e,t,n),r(null,o)}commandCompletions(e,t,n){const r=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||r[r.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((n=>{const r=l(n[0]).cmd;if(-1===t.indexOf(r))if(this.zshShell){const t=n[1]||"";e.push(r.replace(/:/g,"\\:")+":"+t)}else e.push(r)}))}optionCompletions(e,t,n,r){if((r.match(/^-/)||""===r&&0===e.length)&&!this.previousArgHasChoices(t)){const n=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(n.key).forEach((o=>{const s=!!n.configuration["boolean-negation"]&&n.boolean.includes(o);i.includes(o)||n.hiddenOptions.includes(o)||this.argsContainKey(t,o,s)||this.completeOptionKey(o,e,r,s&&!!n.default[o])}))}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){const n=this.getPreviousArgChoices(t);n&&n.length>0&&e.push(...n.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,r){if(""===r&&e.length>0&&this.previousArgHasChoices(t))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),s=i[n._.length-o-1];if(!s)return;const a=this.yargs.getOptions().choices[s]||[];for(const t of a)t.startsWith(r)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;const r=t.replace(/^-+/,""),i=this.yargs.getOptions(),o=[r,...this.yargs.getAliases()[r]||[]];let s;for(const e of o)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){s=i.choices[e];break}return s?s.filter((e=>!n||e.startsWith(n))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,n){const r=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(r(t))return!0;if(n&&r(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(r(e))return!0;return!1}completeOptionKey(e,t,n,r){var i,o,s,a;let u=e;if(this.zshShell){const t=this.usage.getDescriptions(),n=null===(o=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===o?void 0:o.find((e=>{const n=t[e];return"string"==typeof n&&n.length>0})),r=n?t[n]:void 0,l=null!==(a=null!==(s=t[e])&&void 0!==s?s:r)&&void 0!==a?a:"";u=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(n)&&(e=>/^[^0-9]$/.test(e))(e)?"-":"--";t.push(l+u),r&&t.push(l+"no-"+u)}customCompletion(e,t,n,r){if(m(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(n,t);return p(e)?e.then((e=>{this.shim.process.nextTick((()=>{r(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{r(e,void 0)}))})):r(null,e)}return function(e){return e.length>3}(this.customCompletionFunction)?this.customCompletionFunction(n,t,((i=r)=>this.defaultCompletion(e,t,n,i)),(e=>{r(null,e)})):this.customCompletionFunction(n,t,(e=>{r(null,e)}))}getCompletion(e,t){const n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),i=this.customCompletionFunction?r=>this.customCompletion(e,r,n,t):r=>this.defaultCompletion(e,r,n,t);return p(r)?r.then(i):i(r)}generateCompletionScript(e,t){let n=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function T(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,i;for(r=0;r<=t.length;r++)n[r]=[r];for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:r>1&&i>1&&t.charAt(r-2)===e.charAt(i-1)&&t.charAt(r-1)===e.charAt(i-2)?n[r][i]=n[r-2][i-2]+1:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}const N=["$0","--","_"];var L,q,z,U,H,W,V,G,Y,K,J,Z,Q,X,ee,te,ne,re,ie,oe,se,ae,ue,le,ce,fe,he,de,pe,me,ge,ye,De,be,ve;const we=Symbol("copyDoubleDash"),Ee=Symbol("copyDoubleDash"),_e=Symbol("deleteFromParserHintObject"),Fe=Symbol("emitWarning"),xe=Symbol("freeze"),Ce=Symbol("getDollarZero"),Ae=Symbol("getParserConfiguration"),Oe=Symbol("getUsageConfiguration"),ke=Symbol("guessLocale"),Se=Symbol("guessVersion"),je=Symbol("parsePositionalNumbers"),Be=Symbol("pkgUp"),Pe=Symbol("populateParserHintArray"),Re=Symbol("populateParserHintSingleValueDictionary"),Ie=Symbol("populateParserHintArrayDictionary"),Me=Symbol("populateParserHintDictionary"),$e=Symbol("sanitizeKey"),Te=Symbol("setKey"),Ne=Symbol("unfreeze"),Le=Symbol("validateAsync"),qe=Symbol("getCommandInstance"),ze=Symbol("getContext"),Ue=Symbol("getHasOutput"),He=Symbol("getLoggerInstance"),We=Symbol("getParseContext"),Ve=Symbol("getUsageInstance"),Ge=Symbol("getValidationInstance"),Ye=Symbol("hasParseCallback"),Ke=Symbol("isGlobalContext"),Je=Symbol("postProcess"),Ze=Symbol("rebase"),Qe=Symbol("reset"),Xe=Symbol("runYargsParserAndExecuteCommands"),et=Symbol("runValidation"),tt=Symbol("setHasOutput"),nt=Symbol("kTrackManuallySetKeys");class rt{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),q.set(this,void 0),z.set(this,{commands:[],fullCommands:[]}),U.set(this,null),H.set(this,null),W.set(this,"show-hidden"),V.set(this,null),G.set(this,!0),Y.set(this,{}),K.set(this,!0),J.set(this,[]),Z.set(this,void 0),Q.set(this,{}),X.set(this,!1),ee.set(this,null),te.set(this,!0),ne.set(this,void 0),re.set(this,""),ie.set(this,void 0),oe.set(this,void 0),se.set(this,{}),ae.set(this,null),ue.set(this,null),le.set(this,{}),ce.set(this,{}),fe.set(this,void 0),he.set(this,!1),de.set(this,void 0),pe.set(this,!1),me.set(this,!1),ge.set(this,!1),ye.set(this,void 0),De.set(this,{}),be.set(this,null),ve.set(this,void 0),_(this,de,r,"f"),_(this,fe,e,"f"),_(this,q,t,"f"),_(this,oe,n,"f"),_(this,Z,new F(this),"f"),this.$0=this[Ce](),this[Qe](),_(this,L,E(this,L,"f"),"f"),_(this,ye,E(this,ye,"f"),"f"),_(this,ve,E(this,ve,"f"),"f"),_(this,ie,E(this,ie,"f"),"f"),E(this,ie,"f").showHiddenOpt=E(this,W,"f"),_(this,ne,this[Ee](),"f")}addHelpOpt(e,t){return f("[string|boolean] [string]",[e,t],arguments.length),E(this,ee,"f")&&(this[_e](E(this,ee,"f")),_(this,ee,null,"f")),!1===e&&void 0===t||(_(this,ee,"string"==typeof e?e:"help","f"),this.boolean(E(this,ee,"f")),this.describe(E(this,ee,"f"),t||E(this,ye,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(f("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const n="string"==typeof e?e:E(this,W,"f");return this.boolean(n),this.describe(n,t||E(this,ye,"f").deferY18nLookup("Show hidden options")),E(this,ie,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return f("<object|string|array> [string|array]",[e,t],arguments.length),this[Ie](this.alias.bind(this),"alias",e,t),this}array(e){return f("<array|string>",[e],arguments.length),this[Pe]("array",e),this[nt](e),this}boolean(e){return f("<array|string>",[e],arguments.length),this[Pe]("boolean",e),this[nt](e),this}check(e,t){return f("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,n)=>C((()=>e(t,n.getOptions())),(n=>(n?("string"==typeof n||n instanceof Error)&&E(this,ye,"f").fail(n.toString(),n):E(this,ye,"f").fail(E(this,de,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(E(this,ye,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return f("<object|string|array> [string|array]",[e,t],arguments.length),this[Ie](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(f("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new i("coerce callback must be provided");for(const n of e)this.coerce(n,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new i("coerce callback must be provided");return E(this,ie,"f").key[e]=!0,E(this,Z,"f").addCoerceMiddleware(((n,r)=>{let o;return Object.prototype.hasOwnProperty.call(n,e)?C((()=>(o=r.getAliases(),t(n[e]))),(t=>{n[e]=t;const i=r.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[e]&&!0!==i)for(const r of o[e])n[r]=t;return n}),(e=>{throw new i(e.message)})):n}),e),this}conflicts(e,t){return f("<string|object> [string|array]",[e,t],arguments.length),E(this,ve,"f").conflicts(e,t),this}config(e="config",t,n){return f("[object|string] [string|function] [function]",[e,t,n],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(n=t,t=void 0),this.describe(e,t||E(this,ye,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{E(this,ie,"f").config[e]=n||!0})),this):(e=a(e,E(this,q,"f"),this[Ae]()["deep-merge-config"]||!1,E(this,de,"f")),E(this,ie,"f").configObjects=(E(this,ie,"f").configObjects||[]).concat(e),this)}completion(e,t,n){return f("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),"function"==typeof t&&(n=t,t=void 0),_(this,H,e||E(this,H,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(E(this,H,"f"),t),n&&E(this,U,"f").registerFunction(n),this}command(e,t,n,r,i,o){return f("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,i,o],arguments.length),E(this,L,"f").addHandler(e,t,n,r,i,o),this}commands(e,t,n,r,i,o){return this.command(e,t,n,r,i,o)}commandDir(e,t){f("<string> [object]",[e,t],arguments.length);const n=E(this,oe,"f")||E(this,de,"f").require;return E(this,L,"f").addDirectory(e,n,E(this,de,"f").getCallerFile(),t),this}count(e){return f("<array|string>",[e],arguments.length),this[Pe]("count",e),this[nt](e),this}default(e,t,n){return f("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(g(e,E(this,de,"f")),E(this,ie,"f").defaultDescription[e]=n),"function"==typeof t&&(g(e,E(this,de,"f")),E(this,ie,"f").defaultDescription[e]||(E(this,ie,"f").defaultDescription[e]=E(this,ye,"f").functionDescription(t)),t=t.call()),this[Re](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return f("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),"number"!=typeof t&&(n=t,t=1/0),this.global("_",!1),E(this,ie,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach((e=>{m(n,!0,E(this,de,"f")),this.demandOption(e,n)})),t=1/0):"number"!=typeof t&&(n=t,t=1/0),"number"==typeof e?(m(n,!0,E(this,de,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach((e=>{m(n,!0,E(this,de,"f")),this.demandOption(e,n)})):"string"==typeof n?this.demandOption(e,n):!0!==n&&void 0!==n||this.demandOption(e),this}demandOption(e,t){return f("<object|string|array> [string]",[e,t],arguments.length),this[Re](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return f("<string> [string|boolean]",[e,t],arguments.length),E(this,ie,"f").deprecatedOptions[e]=t,this}describe(e,t){return f("<object|string|array> [string]",[e,t],arguments.length),this[Te](e,!0),E(this,ye,"f").describe(e,t),this}detectLocale(e){return f("<boolean>",[e],arguments.length),_(this,G,e,"f"),this}env(e){return f("[string|boolean]",[e],arguments.length),!1===e?delete E(this,ie,"f").envPrefix:E(this,ie,"f").envPrefix=e||"",this}epilogue(e){return f("<string>",[e],arguments.length),E(this,ye,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return f("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):E(this,ye,"f").example(e,t),this}exit(e,t){_(this,X,!0,"f"),_(this,V,t,"f"),E(this,K,"f")&&E(this,de,"f").process.exit(e)}exitProcess(e=!0){return f("[boolean]",[e],arguments.length),_(this,K,e,"f"),this}fail(e){if(f("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new i("Invalid first argument. Expected function or boolean 'false'");return E(this,ye,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return f("<array> [function]",[e,t],arguments.length),t?E(this,U,"f").getCompletion(e,t):new Promise(((t,n)=>{E(this,U,"f").getCompletion(e,((e,r)=>{e?n(e):t(r)}))}))}getDemandedOptions(){return f([],0),E(this,ie,"f").demandedOptions}getDemandedCommands(){return f([],0),E(this,ie,"f").demandedCommands}getDeprecatedOptions(){return f([],0),E(this,ie,"f").deprecatedOptions}getDetectLocale(){return E(this,G,"f")}getExitProcess(){return E(this,K,"f")}getGroups(){return Object.assign({},E(this,Q,"f"),E(this,ce,"f"))}getHelp(){if(_(this,X,!0,"f"),!E(this,ye,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Xe](E(this,fe,"f"),void 0,void 0,0,!0);if(p(e))return e.then((()=>E(this,ye,"f").help()))}const e=E(this,L,"f").runDefaultBuilderOn(this);if(p(e))return e.then((()=>E(this,ye,"f").help()))}return Promise.resolve(E(this,ye,"f").help())}getOptions(){return E(this,ie,"f")}getStrict(){return E(this,pe,"f")}getStrictCommands(){return E(this,me,"f")}getStrictOptions(){return E(this,ge,"f")}global(e,t){return f("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?E(this,ie,"f").local=E(this,ie,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{E(this,ie,"f").local.includes(e)||E(this,ie,"f").local.push(e)})),this}group(e,t){f("<string|array> <string>",[e,t],arguments.length);const n=E(this,ce,"f")[t]||E(this,Q,"f")[t];E(this,ce,"f")[t]&&delete E(this,ce,"f")[t];const r={};return E(this,Q,"f")[t]=(n||[]).concat(e).filter((e=>!r[e]&&(r[e]=!0))),this}hide(e){return f("<string>",[e],arguments.length),E(this,ie,"f").hiddenOptions.push(e),this}implies(e,t){return f("<string|object> [number|string|array]",[e,t],arguments.length),E(this,ve,"f").implies(e,t),this}locale(e){return f("[string]",[e],arguments.length),void 0===e?(this[ke](),E(this,de,"f").y18n.getLocale()):(_(this,G,!1,"f"),E(this,de,"f").y18n.setLocale(e),this)}middleware(e,t,n){return E(this,Z,"f").addMiddleware(e,!!t,n)}nargs(e,t){return f("<string|object|array> [number]",[e,t],arguments.length),this[Re](this.nargs.bind(this),"narg",e,t),this}normalize(e){return f("<array|string>",[e],arguments.length),this[Pe]("normalize",e),this}number(e){return f("<array|string>",[e],arguments.length),this[Pe]("number",e),this[nt](e),this}option(e,t){if(f("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[nt](e),!E(this,be,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[Fe](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),E(this,ie,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);const r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(E(this,ie,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,o=E(this,ye,"f").getDescriptions();Object.prototype.hasOwnProperty.call(o,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){f("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[xe](),void 0===e&&(e=E(this,fe,"f")),"object"==typeof t&&(_(this,ue,t,"f"),t=n),"function"==typeof t&&(_(this,ae,t,"f"),t=!1),t||_(this,fe,e,"f"),E(this,ae,"f")&&_(this,K,!1,"f");const r=this[Xe](e,!!t),i=this.parsed;return E(this,U,"f").setParsed(this.parsed),p(r)?r.then((e=>(E(this,ae,"f")&&E(this,ae,"f").call(this,E(this,V,"f"),e,E(this,re,"f")),e))).catch((e=>{throw E(this,ae,"f")&&E(this,ae,"f")(e,this.parsed.argv,E(this,re,"f")),e})).finally((()=>{this[Ne](),this.parsed=i})):(E(this,ae,"f")&&E(this,ae,"f").call(this,E(this,V,"f"),r,E(this,re,"f")),this[Ne](),this.parsed=i,r)}parseAsync(e,t,n){const r=this.parse(e,t,n);return p(r)?r:Promise.resolve(r)}parseSync(e,t,n){const r=this.parse(e,t,n);if(p(r))throw new i(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return f("<object>",[e],arguments.length),_(this,se,e,"f"),this}pkgConf(e,t){f("<string> [string]",[e,t],arguments.length);let n=null;const r=this[Be](t||E(this,q,"f"));return r[e]&&"object"==typeof r[e]&&(n=a(r[e],t||E(this,q,"f"),this[Ae]()["deep-merge-config"]||!1,E(this,de,"f")),E(this,ie,"f").configObjects=(E(this,ie,"f").configObjects||[]).concat(n)),this}positional(e,t){f("<string> <object>",[e,t],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=D(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&n.includes(e)));const r=E(this,z,"f").fullCommands[E(this,z,"f").fullCommands.length-1],i=r?E(this,L,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return y(i).forEach((n=>{const r=i[n];Array.isArray(r)?-1!==r.indexOf(e)&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])})),this.group(e,E(this,ye,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return f("[boolean]",[e],arguments.length),_(this,he,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return f("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&E(this,ie,"f").narg[e]||this[Re](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return f("[string] [string]",[e,t],arguments.length),e=e||this.$0,E(this,ne,"f").log(E(this,U,"f").generateCompletionScript(e,t||E(this,H,"f")||"completion")),this}showHelp(e){if(f("[string|function]",[e],arguments.length),_(this,X,!0,"f"),!E(this,ye,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Xe](E(this,fe,"f"),void 0,void 0,0,!0);if(p(t))return t.then((()=>{E(this,ye,"f").showHelp(e)})),this}const t=E(this,L,"f").runDefaultBuilderOn(this);if(p(t))return t.then((()=>{E(this,ye,"f").showHelp(e)})),this}return E(this,ye,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return f("[boolean|string] [string]",[e,t],arguments.length),E(this,ye,"f").showHelpOnFail(e,t),this}showVersion(e){return f("[string|function]",[e],arguments.length),E(this,ye,"f").showVersion(e),this}skipValidation(e){return f("<array|string>",[e],arguments.length),this[Pe]("skipValidation",e),this}strict(e){return f("[boolean]",[e],arguments.length),_(this,pe,!1!==e,"f"),this}strictCommands(e){return f("[boolean]",[e],arguments.length),_(this,me,!1!==e,"f"),this}strictOptions(e){return f("[boolean]",[e],arguments.length),_(this,ge,!1!==e,"f"),this}string(e){return f("<array|string>",[e],arguments.length),this[Pe]("string",e),this[nt](e),this}terminalWidth(){return f([],0),E(this,de,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return f("<object>",[e],arguments.length),_(this,G,!1,"f"),E(this,de,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(f("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),void 0!==t){if(m(e,null,E(this,de,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new i(".usage() description must start with $0 if being used as alias for .command()")}return E(this,ye,"f").usage(e),this}usageConfiguration(e){return f("<object>",[e],arguments.length),_(this,De,e,"f"),this}version(e,t,n){const r="version";if(f("[boolean|string] [string] [string]",[e,t,n],arguments.length),E(this,be,"f")&&(this[_e](E(this,be,"f")),E(this,ye,"f").version(void 0),_(this,be,null,"f")),0===arguments.length)n=this[Se](),e=r;else if(1===arguments.length){if(!1===e)return this;n=e,e=r}else 2===arguments.length&&(n=t,t=void 0);return _(this,be,"string"==typeof e?e:r,"f"),t=t||E(this,ye,"f").deferY18nLookup("Show version number"),E(this,ye,"f").version(n||void 0),this.boolean(E(this,be,"f")),this.describe(E(this,be,"f"),t),this}wrap(e){return f("<number|null|undefined>",[e],arguments.length),E(this,ye,"f").wrap(e),this}[(L=new WeakMap,q=new WeakMap,z=new WeakMap,U=new WeakMap,H=new WeakMap,W=new WeakMap,V=new WeakMap,G=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,Q=new WeakMap,X=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakMap,ae=new WeakMap,ue=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap,he=new WeakMap,de=new WeakMap,pe=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=new WeakMap,De=new WeakMap,be=new WeakMap,ve=new WeakMap,we)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[Ee](){return{log:(...e)=>{this[Ye]()||console.log(...e),_(this,X,!0,"f"),E(this,re,"f").length&&_(this,re,E(this,re,"f")+"\n","f"),_(this,re,E(this,re,"f")+e.join(" "),"f")},error:(...e)=>{this[Ye]()||console.error(...e),_(this,X,!0,"f"),E(this,re,"f").length&&_(this,re,E(this,re,"f")+"\n","f"),_(this,re,E(this,re,"f")+e.join(" "),"f")}}}[_e](e){y(E(this,ie,"f")).forEach((t=>{if("configObjects"===t)return;const n=E(this,ie,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):"object"==typeof n&&delete n[e]})),delete E(this,ye,"f").getDescriptions()[e]}[Fe](e,t,n){E(this,Y,"f")[n]||(E(this,de,"f").process.emitWarning(e,t),E(this,Y,"f")[n]=!0)}[xe](){E(this,J,"f").push({options:E(this,ie,"f"),configObjects:E(this,ie,"f").configObjects.slice(0),exitProcess:E(this,K,"f"),groups:E(this,Q,"f"),strict:E(this,pe,"f"),strictCommands:E(this,me,"f"),strictOptions:E(this,ge,"f"),completionCommand:E(this,H,"f"),output:E(this,re,"f"),exitError:E(this,V,"f"),hasOutput:E(this,X,"f"),parsed:this.parsed,parseFn:E(this,ae,"f"),parseContext:E(this,ue,"f")}),E(this,ye,"f").freeze(),E(this,ve,"f").freeze(),E(this,L,"f").freeze(),E(this,Z,"f").freeze()}[Ce](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(E(this,de,"f").process.argv()[0])?E(this,de,"f").process.argv().slice(1,2):E(this,de,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[Ze](E(this,q,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),E(this,de,"f").getEnv("_")&&E(this,de,"f").getProcessArgvBin()===E(this,de,"f").getEnv("_")&&(t=E(this,de,"f").getEnv("_").replace(`${E(this,de,"f").path.dirname(E(this,de,"f").process.execPath())}/`,"")),t}[Ae](){return E(this,se,"f")}[Oe](){return E(this,De,"f")}[ke](){if(!E(this,G,"f"))return;const e=E(this,de,"f").getEnv("LC_ALL")||E(this,de,"f").getEnv("LC_MESSAGES")||E(this,de,"f").getEnv("LANG")||E(this,de,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[Se](){return this[Be]().version||"unknown"}[je](e){const t=e["--"]?e["--"]:e._;for(let e,n=0;void 0!==(e=t[n]);n++)E(this,de,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[n]=Number(e));return e}[Be](e){const t=e||"*";if(E(this,le,"f")[t])return E(this,le,"f")[t];let n={};try{let t=e||E(this,de,"f").mainFilename;!e&&E(this,de,"f").path.extname(t)&&(t=E(this,de,"f").path.dirname(t));const r=E(this,de,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));m(r,void 0,E(this,de,"f")),n=JSON.parse(E(this,de,"f").readFileSync(r,"utf8"))}catch(e){}return E(this,le,"f")[t]=n||{},E(this,le,"f")[t]}[Pe](e,t){(t=[].concat(t)).forEach((t=>{t=this[$e](t),E(this,ie,"f")[e].push(t)}))}[Re](e,t,n,r){this[Me](e,t,n,r,((e,t,n)=>{E(this,ie,"f")[e][t]=n}))}[Ie](e,t,n,r){this[Me](e,t,n,r,((e,t,n)=>{E(this,ie,"f")[e][t]=(E(this,ie,"f")[e][t]||[]).concat(n)}))}[Me](e,t,n,r,i){if(Array.isArray(n))n.forEach((t=>{e(t,r)}));else if((e=>"object"==typeof e)(n))for(const t of y(n))e(t,n[t]);else i(t,this[$e](n),r)}[$e](e){return"__proto__"===e?"___proto___":e}[Te](e,t){return this[Re](this[Te].bind(this),"key",e,t),this}[Ne](){var e,t,n,r,i,o,s,a,u,l,c,f;const h=E(this,J,"f").pop();let d;m(h,void 0,E(this,de,"f")),e=this,t=this,n=this,r=this,i=this,o=this,s=this,a=this,u=this,l=this,c=this,f=this,({options:{set value(t){_(e,ie,t,"f")}}.value,configObjects:d,exitProcess:{set value(e){_(t,K,e,"f")}}.value,groups:{set value(e){_(n,Q,e,"f")}}.value,output:{set value(e){_(r,re,e,"f")}}.value,exitError:{set value(e){_(i,V,e,"f")}}.value,hasOutput:{set value(e){_(o,X,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){_(s,pe,e,"f")}}.value,strictCommands:{set value(e){_(a,me,e,"f")}}.value,strictOptions:{set value(e){_(u,ge,e,"f")}}.value,completionCommand:{set value(e){_(l,H,e,"f")}}.value,parseFn:{set value(e){_(c,ae,e,"f")}}.value,parseContext:{set value(e){_(f,ue,e,"f")}}.value}=h),E(this,ie,"f").configObjects=d,E(this,ye,"f").unfreeze(),E(this,ve,"f").unfreeze(),E(this,L,"f").unfreeze(),E(this,Z,"f").unfreeze()}[Le](e,t){return C(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[qe].bind(this),getContext:this[ze].bind(this),getHasOutput:this[Ue].bind(this),getLoggerInstance:this[He].bind(this),getParseContext:this[We].bind(this),getParserConfiguration:this[Ae].bind(this),getUsageConfiguration:this[Oe].bind(this),getUsageInstance:this[Ve].bind(this),getValidationInstance:this[Ge].bind(this),hasParseCallback:this[Ye].bind(this),isGlobalContext:this[Ke].bind(this),postProcess:this[Je].bind(this),reset:this[Qe].bind(this),runValidation:this[et].bind(this),runYargsParserAndExecuteCommands:this[Xe].bind(this),setHasOutput:this[tt].bind(this)}}[qe](){return E(this,L,"f")}[ze](){return E(this,z,"f")}[Ue](){return E(this,X,"f")}[He](){return E(this,ne,"f")}[We](){return E(this,ue,"f")||{}}[Ve](){return E(this,ye,"f")}[Ge](){return E(this,ve,"f")}[Ye](){return!!E(this,ae,"f")}[Ke](){return E(this,te,"f")}[Je](e,t,n,r){return n||p(e)||(t||(e=this[we](e)),(this[Ae]()["parse-positional-numbers"]||void 0===this[Ae]()["parse-positional-numbers"])&&(e=this[je](e)),r&&(e=x(e,this,E(this,Z,"f").getMiddleware(),!1))),e}[Qe](e={}){_(this,ie,E(this,ie,"f")||{},"f");const t={};t.local=E(this,ie,"f").local||[],t.configObjects=E(this,ie,"f").configObjects||[];const n={};return t.local.forEach((t=>{n[t]=!0,(e[t]||[]).forEach((e=>{n[e]=!0}))})),Object.assign(E(this,ce,"f"),Object.keys(E(this,Q,"f")).reduce(((e,t)=>{const r=E(this,Q,"f")[t].filter((e=>!(e in n)));return r.length>0&&(e[t]=r),e}),{})),_(this,Q,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(E(this,ie,"f")[e]||[]).filter((e=>!n[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=D(E(this,ie,"f")[e],(e=>!n[e]))})),t.envPrefix=E(this,ie,"f").envPrefix,_(this,ie,t,"f"),_(this,ye,E(this,ye,"f")?E(this,ye,"f").reset(n):P(this,E(this,de,"f")),"f"),_(this,ve,E(this,ve,"f")?E(this,ve,"f").reset(n):function(e,t,n){const r=n.y18n.__,i=n.y18n.__n,o={nonOptionCount:function(n){const r=e.getDemandedCommands(),o=n._.length+(n["--"]?n["--"].length:0)-e.getInternalMethods().getContext().commands.length;r._&&(o<r._.min||o>r._.max)&&(o<r._.min?void 0!==r._.minMsg?t.fail(r._.minMsg?r._.minMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",o,o.toString(),r._.min.toString())):o>r._.max&&(void 0!==r._.maxMsg?t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",o,o.toString(),r._.max.toString()))))},positionalCount:function(e,n){n<e&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",n,n+"",e+""))},requiredArguments:function(e,n){let r=null;for(const t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(r=r||{},r[t]=n[t]);if(r){const e=[];for(const t of Object.keys(r)){const n=r[t];n&&e.indexOf(n)<0&&e.push(n)}const n=e.length?`\n${e.join("\n")}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(r).length,Object.keys(r).join(", ")+n))}},unknownArguments:function(n,r,s,a,u=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),f=[],h=e.getInternalMethods().getContext();if(Object.keys(n).forEach((t=>{N.includes(t)||Object.prototype.hasOwnProperty.call(s,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||o.isValidAndSomeAliasIsNotNew(t,r)||f.push(t)})),u&&(h.commands.length>0||c.length>0||a)&&n._.slice(h.commands.length).forEach((e=>{c.includes(""+e)||f.push(""+e)})),u){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,r=h.commands.length+t;r<n._.length&&n._.slice(r).forEach((e=>{e=String(e),h.commands.includes(e)||f.includes(e)||f.push(e)}))}f.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",f.length,f.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(n){const r=e.getInternalMethods().getCommandInstance().getCommands(),o=[],s=e.getInternalMethods().getContext();return(s.commands.length>0||r.length>0)&&n._.slice(s.commands.length).forEach((e=>{r.includes(""+e)||o.push(""+e)})),o.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",o.length,o.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;const r=e.parsed.newAliases;return[t,...n[t]].some((e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t]))},limitedChoices:function(n){const i=e.getOptions(),o={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach((e=>{-1===N.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach((t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(o[e]=(o[e]||[]).concat(t))}))}));const s=Object.keys(o);if(!s.length)return;let a=r("Invalid values:");s.forEach((e=>{a+=`\n ${r("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(o[e]),t.stringifiedValues(i.choices[e]))}`})),t.fail(a)}};let s={};function a(e,t){const n=Number(t);return"number"==typeof(t=isNaN(n)?t:n)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}o.implies=function(t,r){f("<string|object> [array|number|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{o.implies(e,t[e])})):(e.global(t),s[t]||(s[t]=[]),Array.isArray(r)?r.forEach((e=>o.implies(t,e))):(m(r,void 0,n),s[t].push(r)))},o.getImplied=function(){return s},o.implications=function(e){const n=[];if(Object.keys(s).forEach((t=>{const r=t;(s[t]||[]).forEach((t=>{let i=r;const o=t;i=a(e,i),t=a(e,t),i&&!t&&n.push(` ${r} -> ${o}`)}))})),n.length){let e=`${r("Implications failed:")}\n`;n.forEach((t=>{e+=t})),t.fail(e)}};let u={};o.conflicts=function(t,n){f("<string|object> [array|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{o.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(n)?n.forEach((e=>o.conflicts(t,e))):u[t].push(n))},o.getConflicting=()=>u,o.conflicting=function(i){Object.keys(i).forEach((e=>{u[e]&&u[e].forEach((n=>{n&&void 0!==i[e]&&void 0!==i[n]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,n))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((e=>{u[e].forEach((o=>{o&&void 0!==i[n.Parser.camelCase(e)]&&void 0!==i[n.Parser.camelCase(o)]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,o))}))}))},o.recommendCommands=function(e,n){n=n.sort(((e,t)=>t.length-e.length));let i=null,o=1/0;for(let t,r=0;void 0!==(t=n[r]);r++){const n=T(e,t);n<=3&&n<o&&(o=n,i=t)}i&&t.fail(r("Did you mean %s?",i))},o.reset=function(e){return s=D(s,(t=>!e[t])),u=D(u,(t=>!e[t])),o};const l=[];return o.freeze=function(){l.push({implied:s,conflicting:u})},o.unfreeze=function(){const e=l.pop();m(e,void 0,n),({implied:s,conflicting:u}=e)},o}(this,E(this,ye,"f"),E(this,de,"f")),"f"),_(this,L,E(this,L,"f")?E(this,L,"f").reset():function(e,t,n,r){return new O(e,t,n,r)}(E(this,ye,"f"),E(this,ve,"f"),E(this,Z,"f"),E(this,de,"f")),"f"),E(this,U,"f")||_(this,U,function(e,t,n,r){return new $(e,t,n,r)}(this,E(this,ye,"f"),E(this,L,"f"),E(this,de,"f")),"f"),E(this,Z,"f").reset(),_(this,H,null,"f"),_(this,re,"","f"),_(this,V,null,"f"),_(this,X,!1,"f"),this.parsed=!1,this}[Ze](e,t){return E(this,de,"f").path.relative(e,t)}[Xe](e,t,n,r=0,o=!1){let s=!!n||o;e=e||E(this,fe,"f"),E(this,ie,"f").__=E(this,de,"f").y18n.__,E(this,ie,"f").configuration=this[Ae]();const a=!!E(this,ie,"f").configuration["populate--"],u=Object.assign({},E(this,ie,"f").configuration,{"populate--":!0}),l=E(this,de,"f").Parser.detailed(e,Object.assign({},E(this,ie,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),c=Object.assign(l.argv,E(this,ue,"f"));let f;const h=l.aliases;let d=!1,m=!1;Object.keys(c).forEach((e=>{e===E(this,ee,"f")&&c[e]?d=!0:e===E(this,be,"f")&&c[e]&&(m=!0)})),c.$0=this.$0,this.parsed=l,0===r&&E(this,ye,"f").clearCachedHelpMessage();try{if(this[ke](),t)return this[Je](c,a,!!n,!1);E(this,ee,"f")&&[E(this,ee,"f")].concat(h[E(this,ee,"f")]||[]).filter((e=>e.length>1)).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),_(this,te,!1,"f");const u=E(this,L,"f").getCommands(),g=E(this,U,"f").completionKey in c,y=d||g||o;if(c._.length){if(u.length){let e;for(let t,i=r||0;void 0!==c._[i];i++){if(t=String(c._[i]),u.includes(t)&&t!==E(this,H,"f")){const e=E(this,L,"f").runCommand(t,this,l,i+1,o,d||m||o);return this[Je](e,a,!!n,!1)}if(!e&&t!==E(this,H,"f")){e=t;break}}!E(this,L,"f").hasDefaultCommand()&&E(this,he,"f")&&e&&!y&&E(this,ve,"f").recommendCommands(e,u)}E(this,H,"f")&&c._.includes(E(this,H,"f"))&&!g&&(E(this,K,"f")&&j(!0),this.showCompletionScript(),this.exit(0))}if(E(this,L,"f").hasDefaultCommand()&&!y){const e=E(this,L,"f").runCommand(null,this,l,0,o,d||m||o);return this[Je](e,a,!!n,!1)}if(g){E(this,K,"f")&&j(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${E(this,U,"f").completionKey}`)+1);return E(this,U,"f").getCompletion(t,((e,t)=>{if(e)throw new i(e.message);(t||[]).forEach((e=>{E(this,ne,"f").log(e)})),this.exit(0)})),this[Je](c,!a,!!n,!1)}if(E(this,X,"f")||(d?(E(this,K,"f")&&j(!0),s=!0,this.showHelp("log"),this.exit(0)):m&&(E(this,K,"f")&&j(!0),s=!0,E(this,ye,"f").showVersion("log"),this.exit(0))),!s&&E(this,ie,"f").skipValidation.length>0&&(s=Object.keys(c).some((e=>E(this,ie,"f").skipValidation.indexOf(e)>=0&&!0===c[e]))),!s){if(l.error)throw new i(l.error.message);if(!g){const e=this[et](h,{},l.error);n||(f=x(c,this,E(this,Z,"f").getMiddleware(),!0)),f=this[Le](e,null!=f?f:c),p(f)&&!n&&(f=f.then((()=>x(c,this,E(this,Z,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof i))throw e;E(this,ye,"f").fail(e.message,e)}return this[Je](null!=f?f:c,a,!!n,!0)}[et](e,t,n,r){const o={...this.getDemandedOptions()};return s=>{if(n)throw new i(n.message);E(this,ve,"f").nonOptionCount(s),E(this,ve,"f").requiredArguments(s,o);let a=!1;E(this,me,"f")&&(a=E(this,ve,"f").unknownCommands(s)),E(this,pe,"f")&&!a?E(this,ve,"f").unknownArguments(s,e,t,!!r):E(this,ge,"f")&&E(this,ve,"f").unknownArguments(s,e,{},!1,!1),E(this,ve,"f").limitedChoices(s),E(this,ve,"f").implications(s),E(this,ve,"f").conflicting(s)}}[tt](){_(this,X,!0,"f")}[nt](e){if("string"==typeof e)E(this,ie,"f").key[e]=!0;else for(const t of e)E(this,ie,"f").key[t]=!0}}var it,ot;const{readFileSync:st}=n(9896),{inspect:at}=n(9023),{resolve:ut}=n(6928),lt=n(9668),ct=n(7058);var ft,ht={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:n(164),findUp:n(7829),getEnv:e=>process.env[e],getCallerFile:n(2838),getProcessArgvBin:v,inspect:at,mainFilename:null!==(ot=null===(it=void 0===n(7315)?void 0:n.c[n.s])||void 0===it?void 0:it.filename)&&void 0!==ot?ot:process.cwd(),Parser:ct,path:n(6928),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e)},nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:st,require:n(7315),requireDirectory:n(9386),stringWidth:n(4813),y18n:lt({directory:ut(__dirname,"../locales"),updateFiles:!1})};const dt=(null===(ft=null===process||void 0===process?void 0:process.env)||void 0===ft?void 0:ft.YARGS_MIN_NODE_VERSION)?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<dt)throw Error(`yargs supports a minimum Node.js version of ${dt}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);const pt=n(7058);var mt,gt={applyExtends:a,cjsPlatformShim:ht,Yargs:(mt=ht,(e=[],t=mt.process.cwd(),n)=>{const r=new rt(e,t,n,mt);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}),argsert:f,isPromise:p,objFilter:D,parseCommand:l,Parser:pt,processArgv:w,YError:i};e.exports=gt},1771:(e,t,n)=>{"use strict";const{Yargs:r,processArgv:i}=n(5338);function o(e,t){const i=r(e,t,n(5600));var a;return a=i,[...Object.keys(a),...Object.getOwnPropertyNames(a.constructor.prototype)].forEach((e=>{"argv"===e?s(o,e,function(e,t){const n=Object.getOwnPropertyDescriptor(e,t);if(void 0!==n)return n.get}(a,e)):"function"==typeof a[e]?o[e]=a[e].bind(a):(s(o,"$0",(()=>a.$0)),s(o,"parsed",(()=>a.parsed)))})),i}function s(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:n})}o(i.hideBin(process.argv)),e.exports=o},7459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Chalk:()=>O,backgroundColorNames:()=>l,backgroundColors:()=>l,chalkStderr:()=>T,colorNames:()=>c,colors:()=>c,default:()=>N,foregroundColorNames:()=>u,foregroundColors:()=>u,modifierNames:()=>a,modifiers:()=>a,supportsColor:()=>w,supportsColorStderr:()=>E});const r=(e=0)=>t=>`[${t+e}m`,i=(e=0)=>t=>`[${38+e};5;${t}m`,o=(e=0)=>(t,n,r)=>`[${38+e};2;${t};${n};${r}m`,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},a=Object.keys(s.modifier),u=Object.keys(s.color),l=Object.keys(s.bgColor),c=[...u,...l],f=function(){const e=new Map;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",s.color.ansi=r(),s.color.ansi256=i(),s.color.ansi16m=o(),s.bgColor.ansi=r(10),s.bgColor.ansi256=i(10),s.bgColor.ansi16m=o(10),Object.defineProperties(s,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;3===n.length&&(n=[...n].map((e=>e+e)).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},enumerable:!1},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,n,r;if(e>=232)t=(10*(e-232)+8)/255,n=t,r=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const i=2*Math.max(t,n,r);if(0===i)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return 2===i&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:!1}}),s}(),h=require("node:process"),d=require("node:os"),p=require("node:tty");function m(e,t=(globalThis.Deno?globalThis.Deno.args:h.argv)){const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}const{env:g}=h;let y;function D(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const r=function(){if("FORCE_COLOR"in g)return"true"===g.FORCE_COLOR?1:"false"===g.FORCE_COLOR?0:0===g.FORCE_COLOR.length?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}();void 0!==r&&(y=r);const i=n?y:r;if(0===i)return 0;if(n){if(m("color=16m")||m("color=full")||m("color=truecolor"))return 3;if(m("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(e&&!t&&void 0===i)return 0;const o=i||0;if("dumb"===g.TERM)return o;if("win32"===h.platform){const e=d.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in g)return"GITHUB_ACTIONS"in g||"GITEA_ACTIONS"in g?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in g))||"codeship"===g.CI_NAME?1:o;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if("truecolor"===g.COLORTERM)return 3;if("xterm-kitty"===g.TERM)return 3;if("TERM_PROGRAM"in g){const e=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:o}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}m("no-color")||m("no-colors")||m("color=false")||m("color=never")?y=0:(m("color")||m("colors")||m("color=true")||m("color=always"))&&(y=1);const b={stdout:D({isTTY:p.isatty(1)}),stderr:D({isTTY:p.isatty(2)})};function v(e,t,n){let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.slice(o,r)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.slice(o),s}const{stdout:w,stderr:E}=b,_=Symbol("GENERATOR"),F=Symbol("STYLER"),x=Symbol("IS_EMPTY"),C=["ansi","ansi","ansi256","ansi16m"],A=Object.create(null);class O{constructor(e){return k(e)}}const k=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=w?w.level:0;e.level=void 0===t.level?n:t.level})(t,e),Object.setPrototypeOf(t,S.prototype),t};function S(e){return k(e)}Object.setPrototypeOf(S.prototype,Function.prototype);for(const[e,t]of Object.entries(f))A[e]={get(){const n=I(this,R(t.open,t.close,this[F]),this[x]);return Object.defineProperty(this,e,{value:n}),n}};A.visible={get(){const e=I(this,this[F],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const j=(e,t,n,...r)=>"rgb"===e?"ansi16m"===t?f[n].ansi16m(...r):"ansi256"===t?f[n].ansi256(f.rgbToAnsi256(...r)):f[n].ansi(f.rgbToAnsi(...r)):"hex"===e?j("rgb",t,n,...f.hexToRgb(...r)):f[n][e](...r),B=["rgb","hex","ansi256"];for(const e of B)A[e]={get(){const{level:t}=this;return function(...n){const r=R(j(e,C[t],"color",...n),f.color.close,this[F]);return I(this,r,this[x])}}},A["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=R(j(e,C[t],"bgColor",...n),f.bgColor.close,this[F]);return I(this,r,this[x])}}};const P=Object.defineProperties((()=>{}),{...A,level:{enumerable:!0,get(){return this[_].level},set(e){this[_].level=e}}}),R=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},I=(e,t,n)=>{const r=(...e)=>M(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,P),r[_]=e,r[F]=t,r[x]=n,r},M=(e,t)=>{if(e.level<=0||!t)return e[x]?"":t;let n=e[F];if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(t.includes(""))for(;void 0!==n;)t=v(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=function(e,t,n,r){let i=0,o="";do{const s="\r"===e[r-1];o+=e.slice(i,s?r-1:r)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.slice(i),o}(t,i,r,o)),r+t+i};Object.defineProperties(S.prototype,A);const $=S(),T=S({level:E?E.level:0}),N=$},8894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});const r="[",i="]",o="",s=";",a="Apple_Terminal"===process.env.TERM_PROGRAM,u={cursorTo:(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof t?r+(e+1)+"G":r+(t+1)+";"+(e+1)+"H"},cursorMove:(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let n="";return e<0?n+=r+-e+"D":e>0&&(n+=r+e+"C"),t<0?n+=r+-t+"A":t>0&&(n+=r+t+"B"),n},cursorUp:(e=1)=>r+e+"A",cursorDown:(e=1)=>r+e+"B",cursorForward:(e=1)=>r+e+"C",cursorBackward:(e=1)=>r+e+"D",cursorLeft:""};u.cursorSavePosition=a?"7":"",u.cursorRestorePosition=a?"8":"",u.cursorGetPosition="",u.cursorNextLine="",u.cursorPrevLine="",u.cursorHide="[?25l",u.cursorShow="[?25h",u.eraseLines=e=>{let t="";for(let n=0;n<e;n++)t+=u.eraseLine+(n<e-1?u.cursorUp():"");return e&&(t+=u.cursorLeft),t},u.eraseEndLine="",u.eraseStartLine="",u.eraseLine="",u.eraseDown="",u.eraseUp="",u.eraseScreen="",u.scrollUp="",u.scrollDown="",u.clearScreen="c",u.clearTerminal="win32"===process.platform?`${u.eraseScreen}${r}0f`:`${u.eraseScreen}${r}3J${r}H`,u.beep=o,u.link=(e,t)=>[i,"8",s,s,t,o,e,i,"8",s,s,o].join(""),u.image=(e,t={})=>{let n=`${i}1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),!1===t.preserveAspectRatio&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+o},u.iTerm={setCwd:(e=process.cwd())=>`${i}50;CurrentDir=${e}${o}`,annotation:(e,t={})=>{let n=`${i}1337;`;const r=void 0!==t.x,s=void 0!==t.y;if((r||s)&&(!r||!s||void 0===t.length))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?n+=(r?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):n+=e,n+o}};const l=u;var c=n(1679);function f(e,t,{target:n="stdout",...r}={}){return c[n]?l.link(e,t):!1===r.fallback?e:"function"==typeof r.fallback?r.fallback(e,t):`${e} (​${t}​)`}f.isSupported=c.stdout,f.stderr=(e,t,n={})=>f(e,t,{target:"stderr",...n}),f.stderr.isSupported=c.stderr},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@squidcloud/cli","version":"1.0.296","description":"The Squid CLI","main":"dist/index.js","scripts":{"start":"node dist/index.js","start-ts":"ts-node -r tsconfig-paths/register src/index.ts","prebuild":"rimraf dist","build":"webpack --mode=production","build:dev":"webpack --mode=development","build:prod":"webpack --mode=production","lint":"eslint . --ext .ts","link":"npm run build && chmod 755 dist/index.js && npm link","watch":"webpack --watch","deploy":"npm run build && npm pack --silent | xargs -I {} mv {} package.tgz && npm install -g package.tgz && rm -rf package.tgz","publish:public":"npm run build && npm publish --access public"},"files":["dist/**/*"],"bin":{"squid":"dist/index.js"},"keywords":[],"author":"","license":"ISC","engines":{"node":">=18.0.0"},"dependencies":{"@squidcloud/local-backend":"^1.0.296","copy-webpack-plugin":"^12.0.2","decompress":"^4.2.1","nodemon":"^3.1.3","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.95.0","zip-webpack-plugin":"^4.0.1"},"devDependencies":{"@types/decompress":"^4.2.7","@types/node":"^20.16.10","terminal-link":"^3.0.0"}}')},2108:e=>{"use strict";e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},1994:e=>{"use strict";e.exports=JSON.parse('{"name":"seek-bzip","version":"1.0.6","contributors":["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],"description":"a pure-JavaScript Node.JS module for random-access decoding bzip2 data","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/cscott/seek-bzip.git"},"license":"MIT","bin":{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},"directories":{"test":"test"},"dependencies":{"commander":"^2.8.1"},"devDependencies":{"fibers":"~1.0.6","mocha":"~2.2.5"},"scripts":{"test":"mocha"}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.c=t,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(n.s=6568),i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
3
+ (()=>{var e={4764:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},7007:(e,t,n)=>{"use strict";e=n.nmd(e);const r=(e,t)=>(...n)=>`[${e(...n)+t}m`,i=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},o=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},s=e=>e,a=(e,t,n)=>[e,t,n],u=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let l;const c=(e,t,r,i)=>{void 0===l&&(l=n(8666));const o=i?10:0,s={};for(const[n,i]of Object.entries(l)){const a="ansi16"===n?"ansi":n;n===t?s[a]=e(r,o):"object"==typeof i&&(s[a]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,i]of Object.entries(r))t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",u(t.color,"ansi",(()=>c(r,"ansi16",s,!1))),u(t.color,"ansi256",(()=>c(i,"ansi256",s,!1))),u(t.color,"ansi16m",(()=>c(o,"rgb",a,!1))),u(t.bgColor,"ansi",(()=>c(r,"ansi16",s,!0))),u(t.bgColor,"ansi256",(()=>c(i,"ansi256",s,!0))),u(t.bgColor,"ansi16m",(()=>c(o,"rgb",a,!0))),t}})},5036:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(4077),t)},6373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callValueAssertion=t.assertRecord=t.assertArray=t.assertObject=t.getErrorMessage=t.getAssertionErrorFromProvider=t.fail=t.truthy=t.assertTruthy=void 0;const r=n(4665),i=n(6663);function o(e,t){e||s(t)}function s(e){const t=a(e);if("object"==typeof t)throw t;throw new Error(t||"Assertion error")}function a(e){return void 0===e?"":"string"==typeof e?e:e()}function u(e){const t=a(e);return"string"==typeof t?t:t.message||"<no error message>"}function l(e,t,n=void 0,r={}){const i=()=>u(n),s=e=>{const t=i();return 0===t.length?e:`${t} ${e}`};o("object"==typeof e,(()=>s("is not an object: "+typeof e))),o(void 0!==e,(()=>s("is not defined"))),o(null!==e,(()=>s("is null"))),o(!Array.isArray(e),(()=>s("is an array.")));const a=Object.entries(t);if(r.failOnUnknownFields){const t=r.allowedUnknownFieldNames||[];for(const n in e)o(t.includes(n)||a.some((([e])=>n===e)),s(`property can't be checked: ${n}`))}let c;for(const[t,n]of a){o("function"==typeof n||"object"==typeof n&&null!==n,(()=>`${i()}.${t} assertion is not an object or a function: ${typeof n}`));const r=e[t],s=()=>`${i()}.${t}`;if("object"==typeof n)o(!Array.isArray(r),(()=>`${i()}.${s()} use arrayAssertion() to create a ValueAssertion for an array`)),l(r,n,s);else if(o("function"==typeof n,(()=>`${i()}.${s()} assertion is not a function`)),"$o"===t)c=n;else{const e=n(r,s);o(void 0===e,`Assertion function must assert (void) but it returns a value: ${e}. Wrap with $u()?`)}}c&&c(e,n)}function c(e,t,n){t(e,n)}function f(e){return(t="with-space-separator")=>{const n=u(e);return n?`${n}${"with-space-separator"===t?" ":""}`:""}}function h(e,t,n){"object"==typeof t?(o(!Array.isArray(e),(()=>`${n}: use arrayAssertion() to create a ValueAssertion for an array`)),l(e,t,n)):c(e,t,n)}t.assertTruthy=o,t.truthy=function(e,t){return o(e,t),e},t.fail=s,t.getAssertionErrorFromProvider=a,t.getErrorMessage=u,t.assertObject=l,t.assertArray=function(e,t,n={},i=void 0){var s,a;const u=f(i);o(Array.isArray(e),(()=>`${u()}value is not an array: ${e}`));const l=null!==(s=n.minLength)&&void 0!==s?s:0,c=null!==(a=n.maxLength)&&void 0!==a?a:1/0;o(e.length>=l,(()=>`${u()}array length < minLength. Array length: ${e.length}, minLength: ${l}`)),o(e.length<=c,(()=>`${u()}array length > maxLength. Array length: ${e.length}, maxLength: ${c}`)),n.uniqueByIdentity&&o((0,r.checkArrayHasUniqueElements)(e,n.uniqueByIdentity),(()=>`${u()}array contains non-unique elements`));let d=0;const p=()=>`${u("no-space-separator")}[${d}]`;for(;d<e.length;d++)h(e[d],t,p)},t.assertRecord=function(e,t,n={},r=void 0){const s=f(r);o("object"==typeof e,(()=>`${s()}value is not an object: ${(0,i.formatValue)(e)}`)),o(null!==e,(()=>`${s()}value is null`)),o(!Array.isArray(e),(()=>`${s()}the value is not a record, but is an array`));for(const[r,a]of Object.entries(e)){const e=()=>`${s("no-space-separator")}['${r}']`;n.keyAssertion&&h(r,n.keyAssertion,(()=>`${e()}, key assertion failed:`)),h(a,t,e);const{keyField:u}=n;if(u){o("object"==typeof a&&null!==a,(()=>`${e()} is not an object: ${(0,i.formatValue)(a)}`));const t=a[u];o(t===r,(()=>`${e()} key value does not match object field '${u}' value: ${(0,i.formatValue)(t)}`))}}n.$o&&n.$o(e,r)},t.callValueAssertion=c},8596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringAssertion=t.nullOr=t.undefinedOr=t.valueOr=t.$u=t.$a=t.recordAssertion=t.arrayAssertion=t.objectAssertion=void 0;const r=n(6373),i=n(1333);function o(e,t){return(0,r.assertTruthy)("function"==typeof e,`"check" is not a function: ${e}`),(n,i=void 0)=>(0,r.assertTruthy)(e(n),(()=>{let e=(0,r.getErrorMessage)(i)||"Check is failed";return e.endsWith(":")||(e+=":"),`${e} ${(0,r.getErrorMessage)(t)||("object"==typeof n?"[object]":`'${n}'`)}`}))}function s(e,t){return(n,i=void 0)=>{n!==e&&("object"==typeof t?(0,r.assertObject)(n,t,i):(0,r.callValueAssertion)(n,t,i))}}t.objectAssertion=function(e,t=void 0){return n=>(0,r.assertObject)(n,e,t)},t.arrayAssertion=function(e,t={}){const{minLength:n,maxLength:i}=t;return(0,r.assertTruthy)((null!=n?n:0)<=(null!=i?i:1/0),`minLength must be < maxLength! minLength ${n}, maxLength: ${i}`),(0,r.assertTruthy)((null!=n?n:0)>=0,`minLength must be a positive number: ${n}`),(0,r.assertTruthy)((null!=i?i:0)>=0,`maxLength must be a positive number: ${i}`),(n,i=void 0)=>{(0,r.assertArray)(n,e,t,i)}},t.recordAssertion=function(e,t={}){return(n,i=void 0)=>{(0,r.assertRecord)(n,e,t,i)}},t.$a=o,t.$u=function(e,t){return o(e,t)},t.valueOr=s,t.undefinedOr=function(e){return s(void 0,e)},t.nullOr=function(e){return s(null,e)},t.stringAssertion=e=>(t,n=void 0)=>{var o,s;(0,i.assertString)(t,n),(0,r.assertTruthy)(t.length>=(null!==(o=e.minLength)&&void 0!==o?o:0),`${(0,r.getErrorMessage)(n)} length is too small: ${t.length} < ${e.minLength}`),(0,r.assertTruthy)(t.length<=(null!==(s=e.maxLength)&&void 0!==s?s:1/0),`${(0,r.getErrorMessage)(n)} length is too large ${t.length} > ${e.maxLength}`)}},1333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNonNullable=t.assertDate=t.assertEmail=t.assertHexString=t.assertUuid=t.assertBoolean=t.assertNumber=t.assertString=t.formatError=void 0;const r=n(6373),i=n(4665),o=n(6663);function s(e,t,n){const i=(0,r.getAssertionErrorFromProvider)(e);if("object"==typeof i)throw i;return`${i?`${i}: `:""}${t} ${(0,o.formatValue)(n)}`}t.formatError=s,t.assertString=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isString)(e),(()=>s(t,"Not a string",e)))},t.assertNumber=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isNumber)(e),(()=>s(t,"Not a number",e)))},t.assertBoolean=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isBoolean)(e),(()=>s(t,"Not a boolean",e)))},t.assertUuid=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isUuid)(e),(()=>s(t,"Invalid uuid",e)))},t.assertHexString=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isHexString)(e),(()=>s(t,"Invalid hex string",e)))},t.assertEmail=(e,t=void 0)=>{(0,r.assertTruthy)((0,i.isEmail)(e),(()=>s(t,"Invalid email",e)))},t.assertDate=(e,t=void 0)=>{(0,r.assertTruthy)(e instanceof Date,(()=>s(t,"Invalid Date",e)))},t.assertNonNullable=function(e,t){(0,r.assertTruthy)((0,i.isNonNullable)(e),(()=>s(t,"Value is "+(void 0===e?"undefined":"null"),e)))}},4665:(e,t)=>{"use strict";function n(e){return"string"==typeof e}function r(e,t,n){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isNonNullable=t.isHexString=t.isUuid=t.isEmail=t.checkArraysHasEqualElementsByComparator=t.checkArraysHaveEqualElements=t.checkArrayHasUniqueElements=t.isDate=t.isNumber=t.isString=t.isBoolean=void 0,t.isBoolean=function(e){return"boolean"==typeof e},t.isString=n,t.isNumber=function(e){return"number"==typeof e},t.isDate=function(e){return e instanceof Date},t.checkArrayHasUniqueElements=function(e,t){if(e.length<=1)return!0;const n=new Set;for(const r of e){const e=t(r);if(n.has(e))return!1;n.add(e)}return!0},t.checkArraysHaveEqualElements=function(e,t){return r(e,t,((e,t)=>e===t))},t.checkArraysHasEqualElementsByComparator=r;const i=/^[-!#$%&'*+/\d=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/\d=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z\d])*\.[a-zA-Z](-?[a-zA-Z\d])+$/,o=/^(?!\.)((?!.*\.{2})[a-zA-Z0-9\u0080-\u00FF\u0100-\u017F\u0180-\u024F\u0250-\u02AF\u0300-\u036F\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0750-\u077F\u0780-\u07BF\u07C0-\u07FF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u1380-\u139F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1B00-\u1B7F\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u20D0-\u20FF\u2100-\u214F\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2F00-\u2FDF\u2FF0-\u2FFF\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA700-\uA71F\uA800-\uA82F\uA840-\uA87F\uAC00-\uD7AF\uF900-\uFAFF.!#$%&'*+-/=?^_`{|}~\-\d]+)@(?!\.)([a-zA-Z0-9\u0080-\u00FF\u0100-\u017F\u0180-\u024F\u0250-\u02AF\u0300-\u036F\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0750-\u077F\u0780-\u07BF\u07C0-\u07FF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u1380-\u139F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1B00-\u1B7F\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u20D0-\u20FF\u2100-\u214F\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2F00-\u2FDF\u2FF0-\u2FFF\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA700-\uA71F\uA800-\uA82F\uA840-\uA87F\uAC00-\uD7AF\uF900-\uFAFF\-.\d]+)((\.([a-zA-Z\u0080-\u00FF\u0100-\u017F\u0180-\u024F\u0250-\u02AF\u0300-\u036F\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0750-\u077F\u0780-\u07BF\u07C0-\u07FF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u1380-\u139F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1B00-\u1B7F\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u20D0-\u20FF\u2100-\u214F\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2F00-\u2FDF\u2FF0-\u2FFF\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA700-\uA71F\uA800-\uA82F\uA840-\uA87F\uAC00-\uD7AF\uF900-\uFAFF]){2,63})+)$/i;t.isEmail=function(e,t={allowInternationalDomains:!1}){if(!n(e)||0===e.length||e.length>254)return!1;if(!(t.allowInternationalDomains?o:i).test(e))return!1;const r=e.split("@");return!(r[0].length>64||r[1].split(".").some((e=>e.length>63)))};const s=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;t.isUuid=function(e){return n(e)&&s.test(e)};const a=/^[0-9a-fA-F]*$/;t.isHexString=function(e){return n(e)&&a.test(e)},t.isNonNullable=function(e){return null!=e}},6663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatValue=void 0,t.formatValue=function(e){return void 0===e?"<undefined>":"symbol"==typeof e?e.toString():null===e?"<null>":`<${typeof e}:${e}>`}},8630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateRecord=t.validateArray=t.validateObject=t.tryCatch=void 0;const r=n(6373);function i(e){try{e()}catch(e){return e instanceof Error&&e.message||`${e}`}}t.tryCatch=i,t.validateObject=function(e,t,n=void 0,o={}){return i((()=>(0,r.assertObject)(e,t,n,o)))},t.validateArray=function(e,t,n={},o=void 0){return i((()=>(0,r.assertArray)(e,t,n,o)))},t.validateRecord=function(e,t,n={},o=void 0){return i((()=>(0,r.assertRecord)(e,t,n,o)))}},4077:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(6373),t),i(n(8596),t),i(n(1333),t),i(n(4665),t),i(n(6663),t),i(n(8630),t)},4464:e=>{e.exports=function(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}},9907:(e,t,n)=>{var r=n(4199),i=n(4464);e.exports=function(e,t,n){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(e,t,n);var o=i(e);return 0===e?o:void 0===t?r(o,0):("string"!=typeof n&&(n=void 0),r(o,t,n))}},9149:(e,t,n)=>{var r=n(181).Buffer,i=[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 o(e){if(r.isBuffer(e))return e;var t="function"==typeof r.alloc&&"function"==typeof r.from;if("number"==typeof e)return t?r.alloc(e):new r(e);if("string"==typeof e)return t?r.from(e):new r(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function s(e,t){e=o(e),r.isBuffer(t)&&(t=t.readUInt32BE(0));for(var n=~t,s=0;s<e.length;s++)n=i[255&(n^e[s])]^n>>>8;return~n}function a(){return e=s.apply(null,arguments),(t=o(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),a.signed=function(){return s.apply(null,arguments)},a.unsigned=function(){return s.apply(null,arguments)>>>0},e.exports=a},4199:e=>{var t=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();function n(e,t,n,r){if(n<0||r>e.length)throw new RangeError("Out of range index");return n>>>=0,(r=void 0===r?e.length:r>>>0)>n&&e.fill(t,n,r),e}e.exports=function(e,r,i,o,s){if(t)return e.fill(r,i,o,s);if("number"==typeof r)return n(e,r,i,o);if("string"==typeof r){if("string"==typeof i?(s=i,i=0,o=e.length):"string"==typeof o&&(s=o,o=e.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("latin1"===s&&(s="binary"),"string"==typeof s&&!Buffer.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(""===r)return n(e,0,i,o);if(function(e){return 1===e.length&&e.charCodeAt(0)<256}(r))return n(e,r.charCodeAt(0),i,o);r=new Buffer(r,s)}return Buffer.isBuffer(r)?function(e,t,n,r){if(n<0||r>e.length)throw new RangeError("Out of range index");if(r<=n)return e;n>>>=0,r=void 0===r?e.length:r>>>0;for(var i=n,o=t.length;i<=r-o;)t.copy(e,i),i+=o;return i!==r&&t.copy(e,i,0,r-i),e}(e,r,i,o):n(e,0,i,o)}},7951:(e,t,n)=>{const r=n(2880),i={};for(const e of Object.keys(r))i[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i;let a,u;o===i?a=0:t===o?a=(n-r)/s:n===o?a=2+(r-t)/s:r===o&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+o)/2;return u=o===i?0:l<=.5?s/(o+i):s/(2-o-i),[a,100*u,100*l]},o.rgb.hsv=function(e){let t,n,r,i,o;const s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),f=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,o=0):(o=c/l,t=f(s),n=f(a),r=f(u),s===l?i=r-n:a===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*s,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},o.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(r)){const i=(a=r[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);i<o&&(o=i,n=t)}var s,a;return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,u=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[e]=255*s;return u},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),a=1-r;o=6*t-s,1&s&&(o=1-o);const u=n+o*(a-n);let l,c,f;switch(s){default:case 6:case 0:l=a,c=u,f=n;break;case 1:l=u,c=a,f=n;break;case 2:l=n,c=a,f=u;break;case 3:l=n,c=u,f=a;break;case 4:l=u,c=n,f=a;break;case 5:l=a,c=n,f=u}return[255*l,255*c,255*f]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},8666:(e,t,n)=>{const r=n(7951),i=n(1247),o={};Object.keys(r).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=i(e);Object.keys(t).forEach((n=>{const r=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},1247:(e,t,n)=>{const r=n(7951);function i(e,t){return function(n){return t(e(n))}}function o(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),o=i(r[t[s].parent][s],o),s=t[s].parent;return o.conversion=n,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){const r=i[o],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}(e),n={},i=Object.keys(t);for(let e=i.length,r=0;r<e;r++){const e=i[r];null!==t[e].parent&&(n[e]=o(e,t))}return n}},2880:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1218:(e,t,n)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(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]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(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=n(181).Buffer.isBuffer},1896:(e,t,n)=>{"use strict";const r=n(1674),i=n(943),o=n(1339);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!i(e))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof e));if(Buffer.isBuffer(e)&&(!r(e)||"tar"!==r(e).ext))return Promise.resolve([]);const t=o.extract(),n=[];t.on("entry",((e,t,r)=>{const i=[];t.on("data",(e=>i.push(e))),t.on("end",(()=>{const t={data:Buffer.concat(i),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};"symlink"!==e.type&&"link"!==e.type||(t.linkname=e.linkname),n.push(t),r()}))}));const s=new Promise(((r,i)=>{Buffer.isBuffer(e)||e.on("error",i),t.on("finish",(()=>r(n))),t.on("error",i)}));return t.then=s.then.bind(s),t.catch=s.catch.bind(s),Buffer.isBuffer(e)?t.end(e):e.pipe(t),t}},943:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},5622:(e,t,n)=>{"use strict";const r=n(1896),i=n(2023),o=n(1273),s=n(5773),a=n(7982);e.exports=()=>e=>Buffer.isBuffer(e)||o(e)?!Buffer.isBuffer(e)||i(e)&&"bz2"===i(e).ext?Buffer.isBuffer(e)?r()(s.decode(e)):r()(e.pipe(a())):Promise.resolve([]):Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof e))},2023:e=>{"use strict";const t=e=>Array.from(e).map((e=>e.charCodeAt(0))),n=t("META-INF/mozilla.rsa"),r=t("[Content_Types].xml"),i=t("_rels/.rels");e.exports=e=>{const o=new Uint8Array(e);if(!(o&&o.length>1))return null;const s=(e,t)=>{t=Object.assign({offset:0},t);for(let n=0;n<e.length;n++)if(t.mask){if(e[n]!==(t.mask[n]&o[n+t.offset]))return!1}else if(e[n]!==o[n+t.offset])return!1;return!0};if(s([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(s([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(s([71,73,70]))return{ext:"gif",mime:"image/gif"};if(s([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(s([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((s([73,73,42,0])||s([77,77,0,42]))&&s([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(s([73,73,42,0])||s([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(s([66,77]))return{ext:"bmp",mime:"image/bmp"};if(s([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(s([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(s([80,75,3,4])){if(s([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(s(n,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s(r,{offset:30})||s(i,{offset:30})){const e=e=>e.findIndex(((e,t,n)=>80===n[t]&&75===n[t+1]&&3===n[t+2]&&4===n[t+3])),n=e(o.subarray(4,2004));if(-1!==n){const r=e(o.subarray(n+8,n+8+1e3));if(-1!==r){const e=8+n+r+30;if(s(t("word/"),{offset:e}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(s(t("ppt/"),{offset:e}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(s(t("xl/"),{offset:e}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(s([80,75])&&(3===o[2]||5===o[2]||7===o[2])&&(4===o[3]||6===o[3]||8===o[3]))return{ext:"zip",mime:"application/zip"};if(s([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(s([82,97,114,33,26,7])&&(0===o[6]||1===o[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(s([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(s([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(s([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(s([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(s([51,103,112,53])||s([0,0,0])&&s([102,116,121,112],{offset:4})&&(s([109,112,52,49],{offset:8})||s([109,112,52,50],{offset:8})||s([105,115,111,109],{offset:8})||s([105,115,111,50],{offset:8})||s([109,109,112,52],{offset:8})||s([77,52,86],{offset:8})||s([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(s([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(s([26,69,223,163])){const e=o.subarray(4,4100),t=e.findIndex(((e,t,n)=>66===n[t]&&130===n[t+1]));if(-1!==t){const n=t+3,r=t=>Array.from(t).every(((t,r)=>e[n+r]===t.charCodeAt(0)));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(s([0,0,0,20,102,116,121,112,113,116,32,32])||s([102,114,101,101],{offset:4})||s([102,116,121,112,113,116,32,32],{offset:4})||s([109,100,97,116],{offset:4})||s([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(s([82,73,70,70])&&s([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(s([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(s([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let e=0;e<2&&e<o.length-16;e++)if(s([73,68,51],{offset:e})||s([255,226],{offset:e,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return s([102,116,121,112,77,52,65],{offset:4})||s([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:s([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:s([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:s([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:s([82,73,70,70])&&s([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:s([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:s([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:s([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==o[0]&&70!==o[0]||!s([87,83],{offset:1})?s([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:s([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:s([119,79,70,70])&&(s([0,1,0,0],{offset:4})||s([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:s([119,79,70,50])&&(s([0,1,0,0],{offset:4})||s([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:s([76,80],{offset:34})&&(s([0,0,1],{offset:8})||s([1,0,2],{offset:8})||s([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:s([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:s([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:s([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:s([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:s([37,33])?{ext:"ps",mime:"application/postscript"}:s([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:s([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:s([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:s([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:s([77,83,67,70])||s([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:s([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:s([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:s([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:s([31,160])||s([31,157])?{ext:"Z",mime:"application/x-compress"}:s([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:s([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:s([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:s([71],{offset:4})&&(s([71],{offset:192})||s([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:s([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:s([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},1273:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},6869:(e,t,n)=>{"use strict";const r=n(3106),i=n(1896),o=n(1674),s=n(6048);e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!s(e))return Promise.reject(new TypeError("Expected a Buffer or Stream, got "+typeof e));if(Buffer.isBuffer(e)&&(!o(e)||"gz"!==o(e).ext))return Promise.resolve([]);const t=r.createGunzip(),n=i()(t);return Buffer.isBuffer(e)?t.end(e):e.pipe(t),n}},6048:e=>{"use strict";var t=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.writable=function(e){return t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},t.readable=function(e){return t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},t.duplex=function(e){return t.writable(e)&&t.readable(e)},t.transform=function(e){return t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},8165:(e,t,n)=>{"use strict";const r=n(1446),i=n(4306),o=n(6327),s=n(3660),a=e=>new Promise(((t,n)=>{const r=[];e.readEntry(),e.on("entry",(t=>{((e,t)=>{const n={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};return n.type=((e,t)=>{const n=e.versionMadeBy>>8;return 40960==(61440&t)?"symlink":16384==(61440&t)||0===n&&16===e.externalFileAttributes?"directory":"file"})(e,n.mode),0===n.mode&&"directory"===n.type&&(n.mode=493),0===n.mode&&(n.mode=420),o(t.openReadStream.bind(t))(e).then(i.buffer).then((e=>(n.data=e,"symlink"===n.type&&(n.linkname=e.toString()),n))).catch((e=>{throw t.close(),e}))})(t,e).catch(n).then((t=>{r.push(t),e.readEntry()}))})),e.on("error",n),e.on("end",(()=>t(r)))}));e.exports=()=>e=>Buffer.isBuffer(e)?r(e)&&"zip"===r(e).ext?o(s.fromBuffer)(e,{lazyEntries:!0}).then(a):Promise.resolve([]):Promise.reject(new TypeError("Expected a Buffer, got "+typeof e))},1446:e=>{"use strict";e.exports=function(e){return e&&e.length>1?255===e[0]&&216===e[1]&&255===e[2]?{ext:"jpg",mime:"image/jpeg"}:137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?{ext:"png",mime:"image/png"}:71===e[0]&&73===e[1]&&70===e[2]?{ext:"gif",mime:"image/gif"}:87===e[8]&&69===e[9]&&66===e[10]&&80===e[11]?{ext:"webp",mime:"image/webp"}:70===e[0]&&76===e[1]&&73===e[2]&&70===e[3]?{ext:"flif",mime:"image/flif"}:(73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3])&&67===e[8]&&82===e[9]?{ext:"cr2",mime:"image/x-canon-cr2"}:73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]?{ext:"tif",mime:"image/tiff"}:66===e[0]&&77===e[1]?{ext:"bmp",mime:"image/bmp"}:73===e[0]&&73===e[1]&&188===e[2]?{ext:"jxr",mime:"image/vnd.ms-photo"}:56===e[0]&&66===e[1]&&80===e[2]&&83===e[3]?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&109===e[30]&&105===e[31]&&109===e[32]&&101===e[33]&&116===e[34]&&121===e[35]&&112===e[36]&&101===e[37]&&97===e[38]&&112===e[39]&&112===e[40]&&108===e[41]&&105===e[42]&&99===e[43]&&97===e[44]&&116===e[45]&&105===e[46]&&111===e[47]&&110===e[48]&&47===e[49]&&101===e[50]&&112===e[51]&&117===e[52]&&98===e[53]&&43===e[54]&&122===e[55]&&105===e[56]&&112===e[57]?{ext:"epub",mime:"application/epub+zip"}:80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]&&77===e[30]&&69===e[31]&&84===e[32]&&65===e[33]&&45===e[34]&&73===e[35]&&78===e[36]&&70===e[37]&&47===e[38]&&109===e[39]&&111===e[40]&&122===e[41]&&105===e[42]&&108===e[43]&&108===e[44]&&97===e[45]&&46===e[46]&&114===e[47]&&115===e[48]&&97===e[49]?{ext:"xpi",mime:"application/x-xpinstall"}:80!==e[0]||75!==e[1]||3!==e[2]&&5!==e[2]&&7!==e[2]||4!==e[3]&&6!==e[3]&&8!==e[3]?117===e[257]&&115===e[258]&&116===e[259]&&97===e[260]&&114===e[261]?{ext:"tar",mime:"application/x-tar"}:82!==e[0]||97!==e[1]||114!==e[2]||33!==e[3]||26!==e[4]||7!==e[5]||0!==e[6]&&1!==e[6]?31===e[0]&&139===e[1]&&8===e[2]?{ext:"gz",mime:"application/gzip"}:66===e[0]&&90===e[1]&&104===e[2]?{ext:"bz2",mime:"application/x-bzip2"}:55===e[0]&&122===e[1]&&188===e[2]&&175===e[3]&&39===e[4]&&28===e[5]?{ext:"7z",mime:"application/x-7z-compressed"}:120===e[0]&&1===e[1]?{ext:"dmg",mime:"application/x-apple-diskimage"}:0===e[0]&&0===e[1]&&0===e[2]&&(24===e[3]||32===e[3])&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]||51===e[0]&&103===e[1]&&112===e[2]&&53===e[3]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&109===e[16]&&112===e[17]&&52===e[18]&&49===e[19]&&109===e[20]&&112===e[21]&&52===e[22]&&50===e[23]&&105===e[24]&&115===e[25]&&111===e[26]&&109===e[27]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&105===e[8]&&115===e[9]&&111===e[10]&&109===e[11]||0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&109===e[8]&&112===e[9]&&52===e[10]&&50===e[11]&&0===e[12]&&0===e[13]&&0===e[14]&&0===e[15]?{ext:"mp4",mime:"video/mp4"}:0===e[0]&&0===e[1]&&0===e[2]&&28===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&86===e[10]?{ext:"m4v",mime:"video/x-m4v"}:77===e[0]&&84===e[1]&&104===e[2]&&100===e[3]?{ext:"mid",mime:"audio/midi"}:109===e[31]&&97===e[32]&&116===e[33]&&114===e[34]&&111===e[35]&&115===e[36]&&107===e[37]&&97===e[38]?{ext:"mkv",mime:"video/x-matroska"}:26===e[0]&&69===e[1]&&223===e[2]&&163===e[3]?{ext:"webm",mime:"video/webm"}:0===e[0]&&0===e[1]&&0===e[2]&&20===e[3]&&102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]?{ext:"mov",mime:"video/quicktime"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&65===e[8]&&86===e[9]&&73===e[10]?{ext:"avi",mime:"video/x-msvideo"}:48===e[0]&&38===e[1]&&178===e[2]&&117===e[3]&&142===e[4]&&102===e[5]&&207===e[6]&&17===e[7]&&166===e[8]&&217===e[9]?{ext:"wmv",mime:"video/x-ms-wmv"}:0===e[0]&&0===e[1]&&1===e[2]&&"b"===e[3].toString(16)[0]?{ext:"mpg",mime:"video/mpeg"}:73===e[0]&&68===e[1]&&51===e[2]||255===e[0]&&251===e[1]?{ext:"mp3",mime:"audio/mpeg"}:102===e[4]&&116===e[5]&&121===e[6]&&112===e[7]&&77===e[8]&&52===e[9]&&65===e[10]||77===e[0]&&52===e[1]&&65===e[2]&&32===e[3]?{ext:"m4a",mime:"audio/m4a"}:79===e[28]&&112===e[29]&&117===e[30]&&115===e[31]&&72===e[32]&&101===e[33]&&97===e[34]&&100===e[35]?{ext:"opus",mime:"audio/opus"}:79===e[0]&&103===e[1]&&103===e[2]&&83===e[3]?{ext:"ogg",mime:"audio/ogg"}:102===e[0]&&76===e[1]&&97===e[2]&&67===e[3]?{ext:"flac",mime:"audio/x-flac"}:82===e[0]&&73===e[1]&&70===e[2]&&70===e[3]&&87===e[8]&&65===e[9]&&86===e[10]&&69===e[11]?{ext:"wav",mime:"audio/x-wav"}:35===e[0]&&33===e[1]&&65===e[2]&&77===e[3]&&82===e[4]&&10===e[5]?{ext:"amr",mime:"audio/amr"}:37===e[0]&&80===e[1]&&68===e[2]&&70===e[3]?{ext:"pdf",mime:"application/pdf"}:77===e[0]&&90===e[1]?{ext:"exe",mime:"application/x-msdownload"}:67!==e[0]&&70!==e[0]||87!==e[1]||83!==e[2]?123===e[0]&&92===e[1]&&114===e[2]&&116===e[3]&&102===e[4]?{ext:"rtf",mime:"application/rtf"}:119===e[0]&&79===e[1]&&70===e[2]&&70===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff",mime:"application/font-woff"}:119===e[0]&&79===e[1]&&70===e[2]&&50===e[3]&&(0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]||79===e[4]&&84===e[5]&&84===e[6]&&79===e[7])?{ext:"woff2",mime:"application/font-woff"}:76===e[34]&&80===e[35]&&(0===e[8]&&0===e[9]&&1===e[10]||1===e[8]&&0===e[9]&&2===e[10]||2===e[8]&&0===e[9]&&2===e[10])?{ext:"eot",mime:"application/octet-stream"}:0===e[0]&&1===e[1]&&0===e[2]&&0===e[3]&&0===e[4]?{ext:"ttf",mime:"application/font-sfnt"}:79===e[0]&&84===e[1]&&84===e[2]&&79===e[3]&&0===e[4]?{ext:"otf",mime:"application/font-sfnt"}:0===e[0]&&0===e[1]&&1===e[2]&&0===e[3]?{ext:"ico",mime:"image/x-icon"}:70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]?{ext:"flv",mime:"video/x-flv"}:37===e[0]&&33===e[1]?{ext:"ps",mime:"application/postscript"}:253===e[0]&&55===e[1]&&122===e[2]&&88===e[3]&&90===e[4]&&0===e[5]?{ext:"xz",mime:"application/x-xz"}:83===e[0]&&81===e[1]&&76===e[2]&&105===e[3]?{ext:"sqlite",mime:"application/x-sqlite3"}:78===e[0]&&69===e[1]&&83===e[2]&&26===e[3]?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:67===e[0]&&114===e[1]&&50===e[2]&&52===e[3]?{ext:"crx",mime:"application/x-google-chrome-extension"}:77===e[0]&&83===e[1]&&67===e[2]&&70===e[3]||73===e[0]&&83===e[1]&&99===e[2]&&40===e[3]?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]&&10===e[7]&&100===e[8]&&101===e[9]&&98===e[10]&&105===e[11]&&97===e[12]&&110===e[13]&&45===e[14]&&98===e[15]&&105===e[16]&&110===e[17]&&97===e[18]&&114===e[19]&&121===e[20]?{ext:"deb",mime:"application/x-deb"}:33===e[0]&&60===e[1]&&97===e[2]&&114===e[3]&&99===e[4]&&104===e[5]&&62===e[6]?{ext:"ar",mime:"application/x-unix-archive"}:237===e[0]&&171===e[1]&&238===e[2]&&219===e[3]?{ext:"rpm",mime:"application/x-rpm"}:31===e[0]&&160===e[1]||31===e[0]&&157===e[1]?{ext:"Z",mime:"application/x-compress"}:76===e[0]&&90===e[1]&&73===e[2]&&80===e[3]?{ext:"lz",mime:"application/x-lzip"}:208===e[0]&&207===e[1]&&17===e[2]&&224===e[3]&&161===e[4]&&177===e[5]&&26===e[6]&&225===e[7]?{ext:"msi",mime:"application/x-msi"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}:{ext:"rar",mime:"application/x-rar-compressed"}:{ext:"zip",mime:"application/zip"}:null}},147:(e,t,n)=>{var r=n(2203).PassThrough,i=n(9283);e.exports=function(e){var t=(e=i({},e)).array,n=e.encoding,o="buffer"===n,s=!1;t?s=!(n||o):n=n||"utf8",o&&(n=null);var a=0,u=[],l=new r({objectMode:s});return n&&l.setEncoding(n),l.on("data",(function(e){u.push(e),s?a=u.length:a+=e.length})),l.getBufferedValue=function(){return t?u:o?Buffer.concat(u,a):u.join("")},l.getBufferedLength=function(){return a},l}},4306:(e,t,n)=>{"use strict";var r=n(9491),i=n(9283),o=n(147);function s(e,t){if(!e)return r.reject(new Error("Expected a stream"));var n,s,a=(t=i({maxBuffer:1/0},t)).maxBuffer,u=new r((function(r,i){function u(e){e&&(e.bufferedData=n.getBufferedValue()),i(e)}n=o(t),e.once("error",u),e.pipe(n),n.on("data",(function(){n.getBufferedLength()>a&&i(new Error("maxBuffer exceeded"))})),n.once("error",u),n.on("end",r),s=function(){e.unpipe&&e.unpipe(n)}}));return u.then(s,s),u.then((function(){return n.getBufferedValue()}))}e.exports=s,e.exports.buffer=function(e,t){return s(e,i({},t,{encoding:"buffer"}))},e.exports.array=function(e,t){return s(e,i({},t,{array:!0}))}},482:(e,t,n)=>{"use strict";const r=n(6928),i=n(2387),o=n(1896),s=n(5622),a=n(6869),u=n(8165),l=n(4758),c=n(6327),f=n(3460),h=c(i),d=(e,t)=>h.realpath(e).catch((n=>{const i=r.dirname(e);return d(i,t)})).then((n=>{if(0!==n.indexOf(t))throw new Error("Refusing to create a directory outside the output path.");return l(e).then(h.realpath)}));e.exports=(e,t,n)=>"string"==typeof e||Buffer.isBuffer(e)?("object"==typeof t&&(n=t,t=null),n=Object.assign({plugins:[o(),s(),a(),u()]},n),("string"==typeof e?h.readFile(e):Promise.resolve(e)).then((e=>((e,t,n)=>((e,t)=>0===t.plugins.length?Promise.resolve([]):Promise.all(t.plugins.map((n=>n(e,t)))).then((e=>e.reduce(((e,t)=>e.concat(t))))))(e,n).then((e=>(n.strip>0&&(e=e.map((e=>(e.path=f(e.path,n.strip),e))).filter((e=>"."!==e.path))),"function"==typeof n.filter&&(e=e.filter(n.filter)),"function"==typeof n.map&&(e=e.map(n.map)),t?Promise.all(e.map((e=>{const n=r.join(t,e.path),i=e.mode&~process.umask(),o=new Date;return"directory"===e.type?l(t).then((e=>h.realpath(e))).then((e=>d(n,e))).then((()=>h.utimes(n,o,e.mtime))).then((()=>e)):l(t).then((e=>h.realpath(e))).then((e=>d(r.dirname(n),e).then((()=>e)))).then((t=>"file"===e.type?((e,t)=>h.readlink(e).catch((e=>null)).then((e=>{if(e)throw new Error("Refusing to write into a symlink");return t})))(n,t):t)).then((e=>h.realpath(r.dirname(n)).then((t=>{if(0!==t.indexOf(e))throw new Error("Refusing to write outside output directory: "+t)})))).then((()=>"link"===e.type||"symlink"===e.type&&"win32"===process.platform?h.link(e.linkname,n):"symlink"===e.type?h.symlink(e.linkname,n):h.writeFile(n,e.data,{mode:i}))).then((()=>"file"===e.type&&h.utimes(n,o,e.mtime))).then((()=>e))}))):e))))(e,t,n)))):Promise.reject(new TypeError("Input file required"))},4758:(e,t,n)=>{"use strict";const r=n(9896),i=n(6928),o=n(7080),s={mode:511&~process.umask(),fs:r},a=e=>{if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}};e.exports=(e,t)=>Promise.resolve().then((()=>{a(e),t=Object.assign({},s,t);const n=o(t.fs.mkdir),r=o(t.fs.stat),u=e=>n(e,t.mode).then((()=>e)).catch((t=>{if("ENOENT"===t.code){if(t.message.includes("null bytes")||i.dirname(e)===e)throw t;return u(i.dirname(e)).then((()=>u(e)))}return r(e).then((t=>t.isDirectory()?e:Promise.reject())).catch((()=>{throw t}))}));return u(i.resolve(e))})),e.exports.sync=(e,t)=>{a(e),t=Object.assign({},s,t);const n=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if("ENOENT"===r.code){if(r.message.includes("null bytes")||i.dirname(e)===e)throw r;return n(i.dirname(e)),n(e)}try{if(!t.fs.statSync(e).isDirectory())throw new Error("The path is not a directory")}catch(e){throw r}}return e};return n(i.resolve(e))}},7080:e=>{"use strict";const t=(e,t)=>function(){const n=t.promiseModule,r=new Array(arguments.length);for(let e=0;e<arguments.length;e++)r[e]=arguments[e];return new n(((n,i)=>{t.errorFirst?r.push((function(e,r){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),i(t)):n(t)}else e?i(e):n(r)})):r.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];n(e)}else n(e)})),e.apply(this,r)}))};e.exports=(e,n)=>{n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},n);const r=e=>{const t=t=>"string"==typeof t?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};let i;i="function"==typeof e?function(){return n.excludeMain?e.apply(this,arguments):t(e,n).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const o in e){const s=e[o];i[o]="function"==typeof s&&r(o)?t(s,n):s}return i}},9650:(e,t,n)=>{const r=n(9896),i=n(6928),o=n(857),s=n(6982),a=n(2108).version,u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function l(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function c(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function f(e,t){let n;try{n=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}const r=n.password;if(!r){const e=new Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}const i=n.searchParams.get("environment");if(!i){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}const o=`DOTENV_VAULT_${i.toUpperCase()}`,s=e.parsed[o];if(!s){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:s,key:r}}function h(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const n of e.path)r.existsSync(n)&&(t=n.endsWith(".vault")?n:`${n}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=i.resolve(process.cwd(),".env.vault");return r.existsSync(t)?t:null}function d(e){return"~"===e[0]?i.join(o.homedir(),e.slice(1)):e}const p={configDotenv:function(e){const t=i.resolve(process.cwd(),".env");let n="utf8";const o=Boolean(e&&e.debug);e&&e.encoding?n=e.encoding:o&&l("No encoding is specified. UTF-8 is used by default");let s,a=[t];if(e&&e.path)if(Array.isArray(e.path)){a=[];for(const t of e.path)a.push(d(t))}else a=[d(e.path)];const u={};for(const t of a)try{const i=p.parse(r.readFileSync(t,{encoding:n}));p.populate(u,i,e)}catch(e){o&&l(`Failed to load ${t} ${e.message}`),s=e}let c=process.env;return e&&null!=e.processEnv&&(c=e.processEnv),p.populate(c,u,e),s?{parsed:u,error:s}:{parsed:u}},_configVault:function(e){console.log(`[dotenv@${a}][INFO] Loading env from encrypted .env.vault`);const t=p._parseVault(e);let n=process.env;return e&&null!=e.processEnv&&(n=e.processEnv),p.populate(n,t,e),{parsed:t}},_parseVault:function(e){const t=h(e),n=p.configDotenv({path:t});if(!n.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code="MISSING_DATA",e}const r=c(e).split(","),i=r.length;let o;for(let e=0;e<i;e++)try{const t=f(n,r[e].trim());o=p.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return p.parse(o)},config:function(e){if(0===c(e).length)return p.configDotenv(e);const t=h(e);return t?p._configVault(e):(n=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.log(`[dotenv@${a}][WARN] ${n}`),p.configDotenv(e));var n},decrypt:function(e,t){const n=Buffer.from(t.slice(-64),"hex");let r=Buffer.from(e,"base64");const i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{const e=s.createDecipheriv("aes-256-gcm",n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){const t=e instanceof RangeError,n="Invalid key length"===e.message,r="Unsupported state or unable to authenticate data"===e.message;if(t||n){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(r){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw e}},parse:function(e){const t={};let n,r=e.toString();for(r=r.replace(/\r\n?/gm,"\n");null!=(n=u.exec(r));){const e=n[1];let r=n[2]||"";r=r.trim();const i=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),'"'===i&&(r=r.replace(/\\n/g,"\n"),r=r.replace(/\\r/g,"\r")),t[e]=r}return t},populate:function(e,t,n={}){const r=Boolean(n&&n.debug),i=Boolean(n&&n.override);if("object"!=typeof t){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(const n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(!0===i&&(e[n]=t[n]),r&&l(!0===i?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):e[n]=t[n]}};e.exports.configDotenv=p.configDotenv,e.exports._configVault=p._configVault,e.exports._parseVault=p._parseVault,e.exports.config=p.config,e.exports.decrypt=p.decrypt,e.exports.parse=p.parse,e.exports.populate=p.populate,e.exports=p},5895:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},3908:(e,t,n)=>{var r=n(9819),i=function(){},o=function(e,t,n){if("function"==typeof t)return o(e,null,t);t||(t={}),n=r(n||i);var s=e._writableState,a=e._readableState,u=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,c=!1,f=function(){e.writable||h()},h=function(){l=!1,u||n.call(e)},d=function(){u=!1,l||n.call(e)},p=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){n.call(e,t)},g=function(){process.nextTick(y)},y=function(){if(!c)return(!u||a&&a.ended&&!a.destroyed)&&(!l||s&&s.ended&&!s.destroyed)?void 0:n.call(e,new Error("premature close"))},D=function(){e.req.on("finish",h)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",h),e.on("abort",g),e.req?D():e.on("request",D)):l&&!s&&(e.on("end",f),e.on("close",f)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",p),e.on("end",d),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){c=!0,e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",D),e.req&&e.req.removeListener("finish",h),e.removeListener("end",f),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("exit",p),e.removeListener("end",d),e.removeListener("error",m),e.removeListener("close",g)}};e.exports=o},6203:(e,t,n)=>{"use strict";const r=n(5877),i=n(2207);e.exports=class{constructor(e,t,n){this.source=e,this.field=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasFieldPlugin",((n,o,s)=>{if(!n.descriptionFileData)return s();const a=i(e,n);if(!a)return s();const u=r.getField(n.descriptionFileData,this.field);if(null===u||"object"!=typeof u)return o.log&&o.log("Field '"+this.field+"' doesn't contain a valid alias configuration"),s();const l=Object.prototype.hasOwnProperty.call(u,a)?u[a]:a.startsWith("./")?u[a.slice(2)]:void 0;if(l===a)return s();if(void 0===l)return s();if(!1===l){const e={...n,path:!1};return"function"==typeof o.yield?(o.yield(e),s(null,null)):s(null,e)}const c={...n,path:n.descriptionFileRoot,request:l,fullySpecified:!1};e.doResolve(t,c,"aliased from description file "+n.descriptionFilePath+" with mapping '"+a+"' to '"+l+"'",o,((e,t)=>e?s(e):void 0===t?s(null,null):void s(null,t)))}))}}},7869:(e,t,n)=>{"use strict";const r=n(8048),{PathType:i,getType:o}=n(6932);e.exports=class{constructor(e,t,n){this.source=e,this.options=Array.isArray(t)?t:[t],this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AliasPlugin",((n,s,a)=>{const u=n.request||n.path;if(!u)return a();r(this.options,((a,l)=>{let c=!1;if(u===a.name||!a.onlyModule&&(n.request?u.startsWith(`${a.name}/`):((t,n)=>{const r=(t=>{const n=o(t);return n===i.AbsolutePosix||n===i.AbsoluteWin?e.join(t,"_").slice(0,-1):null})(n);return!!r&&t.startsWith(r)})(u,a.name))){const i=u.slice(a.name.length),o=(r,o)=>{if(!1===r){const e={...n,path:!1};return"function"==typeof s.yield?(s.yield(e),o(null,null)):o(null,e)}if(u!==r&&!u.startsWith(r+"/")){c=!0;const u=r+i,l={...n,request:u,fullySpecified:!1};return e.doResolve(t,l,"aliased with mapping '"+a.name+"': '"+r+"' to '"+u+"'",s,((e,t)=>e?o(e):t?o(null,t):o()))}return o()},f=(e,t)=>e?l(e):t?l(null,t):c?l(null,null):l();return Array.isArray(a.alias)?r(a.alias,o,f):o(a.alias,f)}return l()}),a)}))}}},1527:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.appending=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("AppendPlugin",((n,r,i)=>{const o={...n,path:n.path+this.appending,relativePath:n.relativePath&&n.relativePath+this.appending};e.doResolve(t,o,this.appending,r,i)}))}}},3367:(e,t,n)=>{"use strict";const r=n(932).nextTick,i=e=>{let t=e.length-1;for(;t>=0;){const n=e.charCodeAt(t);if(47===n||92===n)break;t--}return t<0?"":e.slice(0,t)},o=(e,t,n)=>{if(1===e.length)return e[0](t,n),void(e.length=0);let r;for(const i of e)try{i(t,n)}catch(e){r||(r=e)}if(e.length=0,r)throw r};class s{constructor(e,t,n){this._provider=e,this._syncProvider=t,this._providerContext=n,this._activeAsyncOperations=new Map,this.provide=this._provider?(t,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),!("string"==typeof t||Buffer.isBuffer(t)||t instanceof URL||"number"==typeof t))return void r(new TypeError("path must be a string, Buffer, URL or number"));if(n)return this._provider.call(this._providerContext,t,n,r);let i=this._activeAsyncOperations.get(t);i?i.push(r):(this._activeAsyncOperations.set(t,i=[r]),e(t,((e,n)=>{this._activeAsyncOperations.delete(t),o(i,e,n)})))}:null,this.provideSync=this._syncProvider?(e,t)=>this._syncProvider.call(this._providerContext,e,t):null}purge(){}purgeParent(){}}class a{constructor(e,t,n,r){this._duration=e,this._provider=t,this._syncProvider=n,this._providerContext=r,this._activeAsyncOperations=new Map,this._data=new Map,this._levels=[];for(let e=0;e<10;e++)this._levels.push(new Set);for(let t=5e3;t<e;t+=500)this._levels.push(new Set);this._currentLevel=0,this._tickInterval=Math.floor(e/this._levels.length),this._mode=0,this._timeout=void 0,this._nextDecay=void 0,this.provide=t?this.provide.bind(this):null,this.provideSync=n?this.provideSync.bind(this):null}provide(e,t,n){if("function"==typeof t&&(n=t,t=void 0),!("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e))return void n(new TypeError("path must be a string, Buffer, URL or number"));const i="string"!=typeof e?e.toString():e;if(t)return this._provider.call(this._providerContext,e,t,n);1===this._mode&&this._enterAsyncMode();let s=this._data.get(i);if(void 0!==s)return s.err?r(n,s.err):r(n,null,s.result);let a=this._activeAsyncOperations.get(i);void 0===a?(this._activeAsyncOperations.set(i,a=[n]),this._provider.call(this._providerContext,e,((e,t)=>{this._activeAsyncOperations.delete(i),this._storeResult(i,e,t),this._enterAsyncMode(),o(a,e,t)}))):a.push(n)}provideSync(e,t){if(!("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e))throw new TypeError("path must be a string");const n="string"!=typeof e?e.toString():e;if(t)return this._syncProvider.call(this._providerContext,e,t);1===this._mode&&this._runDecays();let r=this._data.get(n);if(void 0!==r){if(r.err)throw r.err;return r.result}const i=this._activeAsyncOperations.get(n);let s;this._activeAsyncOperations.delete(n);try{s=this._syncProvider.call(this._providerContext,e)}catch(e){throw this._storeResult(n,e,void 0),this._enterSyncModeWhenIdle(),i&&o(i,e,void 0),e}return this._storeResult(n,null,s),this._enterSyncModeWhenIdle(),i&&o(i,null,s),s}purge(e){if(e)if("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e){const t="string"!=typeof e?e.toString():e;for(let[e,n]of this._data)e.startsWith(t)&&(this._data.delete(e),n.level.delete(e));0===this._data.size&&this._enterIdleMode()}else{for(let[t,n]of this._data)for(const r of e){const e="string"!=typeof r?r.toString():r;if(t.startsWith(e)){this._data.delete(t),n.level.delete(t);break}}0===this._data.size&&this._enterIdleMode()}else if(0!==this._mode){this._data.clear();for(const e of this._levels)e.clear();this._enterIdleMode()}}purgeParent(e){if(e)if("string"==typeof e||Buffer.isBuffer(e)||e instanceof URL||"number"==typeof e){const t="string"!=typeof e?e.toString():e;this.purge(i(t))}else{const t=new Set;for(const n of e){const e="string"!=typeof n?n.toString():n;t.add(i(e))}this.purge(t)}else this.purge()}_storeResult(e,t,n){if(this._data.has(e))return;const r=this._levels[this._currentLevel];this._data.set(e,{err:t,result:n,level:r}),r.add(e)}_decayLevel(){const e=(this._currentLevel+1)%this._levels.length,t=this._levels[e];this._currentLevel=e;for(let e of t)this._data.delete(e);t.clear(),0===this._data.size?this._enterIdleMode():this._nextDecay+=this._tickInterval}_runDecays(){for(;this._nextDecay<=Date.now()&&0!==this._mode;)this._decayLevel()}_enterAsyncMode(){let e=0;switch(this._mode){case 2:return;case 0:this._nextDecay=Date.now()+this._tickInterval,e=this._tickInterval;break;case 1:if(this._runDecays(),0===this._mode)return;e=Math.max(0,this._nextDecay-Date.now())}this._mode=2;const t=setTimeout((()=>{this._mode=1,this._runDecays()}),e);t.unref&&t.unref(),this._timeout=t}_enterSyncModeWhenIdle(){0===this._mode&&(this._mode=1,this._nextDecay=Date.now()+this._tickInterval)}_enterIdleMode(){this._mode=0,this._nextDecay=void 0,this._timeout&&clearTimeout(this._timeout)}}const u=(e,t,n,r)=>e>0?new a(e,t,n,r):new s(t,n,r);e.exports=class{constructor(e,t){this.fileSystem=e,this._lstatBackend=u(t,this.fileSystem.lstat,this.fileSystem.lstatSync,this.fileSystem);const n=this._lstatBackend.provide;this.lstat=n;const r=this._lstatBackend.provideSync;this.lstatSync=r,this._statBackend=u(t,this.fileSystem.stat,this.fileSystem.statSync,this.fileSystem);const i=this._statBackend.provide;this.stat=i;const o=this._statBackend.provideSync;this.statSync=o,this._readdirBackend=u(t,this.fileSystem.readdir,this.fileSystem.readdirSync,this.fileSystem);const s=this._readdirBackend.provide;this.readdir=s;const a=this._readdirBackend.provideSync;this.readdirSync=a,this._readFileBackend=u(t,this.fileSystem.readFile,this.fileSystem.readFileSync,this.fileSystem);const l=this._readFileBackend.provide;this.readFile=l;const c=this._readFileBackend.provideSync;this.readFileSync=c,this._readJsonBackend=u(t,this.fileSystem.readJson||this.readFile&&((e,t)=>{this.readFile(e,((e,n)=>{if(e)return t(e);if(!n||0===n.length)return t(new Error("No file content"));let r;try{r=JSON.parse(n.toString("utf-8"))}catch(e){return t(e)}t(null,r)}))}),this.fileSystem.readJsonSync||this.readFileSync&&(e=>{const t=this.readFileSync(e);return JSON.parse(t.toString("utf-8"))}),this.fileSystem);const f=this._readJsonBackend.provide;this.readJson=f;const h=this._readJsonBackend.provideSync;this.readJsonSync=h,this._readlinkBackend=u(t,this.fileSystem.readlink,this.fileSystem.readlinkSync,this.fileSystem);const d=this._readlinkBackend.provide;this.readlink=d;const p=this._readlinkBackend.provideSync;this.readlinkSync=p,this._realpathBackend=u(t,this.fileSystem.realpath,this.fileSystem.realpathSync,this.fileSystem);const m=this._realpathBackend.provide;this.realpath=m;const g=this._realpathBackend.provideSync;this.realpathSync=g}purge(e){this._statBackend.purge(e),this._lstatBackend.purge(e),this._readdirBackend.purgeParent(e),this._readFileBackend.purge(e),this._readlinkBackend.purge(e),this._readJsonBackend.purge(e),this._realpathBackend.purge(e)}}},8034:(e,t,n)=>{"use strict";const r=n(1036).basename;e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("CloneBasenamePlugin",((n,i,o)=>{const s=n.path,a=r(s),u=e.join(s,a),l={...n,path:u,relativePath:n.relativePath&&e.join(n.relativePath,a)};e.doResolve(t,l,"using path: "+u,i,o)}))}}},2897:e=>{"use strict";e.exports=class{constructor(e,t,n,r,i){this.source=e,this.test=t,this.message=n,this.allowAlternatives=r,this.target=i}apply(e){const t=e.ensureHook(this.target),{test:n,message:r,allowAlternatives:i}=this,o=Object.keys(n);e.getHook(this.source).tapAsync("ConditionalPlugin",((s,a,u)=>{for(const e of o)if(s[e]!==n[e])return u();e.doResolve(t,s,r,a,i?u:(e,t)=>e?u(e):void 0===t?u(null,null):void u(null,t))}))}}},4153:(e,t,n)=>{"use strict";const r=n(5877);e.exports=class{constructor(e,t,n,r){this.source=e,this.filenames=t,this.pathIsFile=n,this.target=r}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DescriptionFilePlugin",((n,i,o)=>{const s=n.path;if(!s)return o();const a=this.pathIsFile?r.cdUp(s):s;if(!a)return o();r.loadDescriptionFile(e,a,this.filenames,n.descriptionFilePath?{path:n.descriptionFilePath,content:n.descriptionFileData,directory:n.descriptionFileRoot}:void 0,i,((r,u)=>{if(r)return o(r);if(!u)return i.log&&i.log(`No description file found in ${a} or above`),o();const l="."+s.slice(u.directory.length).replace(/\\/g,"/"),c={...n,descriptionFilePath:u.path,descriptionFileData:u.content,descriptionFileRoot:u.directory,relativePath:l};e.doResolve(t,c,"using description file: "+u.path+" (relative path: "+l+")",i,((e,t)=>e?o(e):void 0===t?o(null,null):void o(null,t)))}))}))}}},5877:(e,t,n)=>{"use strict";const r=n(8048);function i(e){if("/"===e)return null;const t=e.lastIndexOf("/"),n=e.lastIndexOf("\\"),r=t<0?n:n<0?t:t<n?n:t;return r<0?null:e.slice(0,r||1)}t.loadDescriptionFile=function(e,t,n,o,s,a){!function u(){if(o&&o.directory===t)return a(null,o);r(n,((n,r)=>{const i=e.join(t,n);function o(e,n){if(e)return s.log?s.log(i+" (directory description file): "+e):e.message=i+" (directory description file): "+e,r(e);r(null,{content:n,directory:t,path:i})}e.fileSystem.readJson?e.fileSystem.readJson(i,((e,t)=>{if(e)return void 0!==e.code?(s.missingDependencies&&s.missingDependencies.add(i),r()):(s.fileDependencies&&s.fileDependencies.add(i),o(e));s.fileDependencies&&s.fileDependencies.add(i),o(null,t)})):e.fileSystem.readFile(i,((e,t)=>{if(e)return s.missingDependencies&&s.missingDependencies.add(i),r();let n;if(s.fileDependencies&&s.fileDependencies.add(i),!t)return o(new Error("No content in file"));try{n=JSON.parse(t.toString())}catch(e){return o(e)}o(null,n)}))}),((e,n)=>{if(e)return a(e);if(n)return a(null,n);{const e=i(t);return e?(t=e,u()):a()}}))}()},t.getField=function(e,t){if(e){if(Array.isArray(t)){let n=e;for(let e=0;e<t.length;e++){if(null===n||"object"!=typeof n){n=null;break}n=n[t[e]]}return n}return e[t]}},t.cdUp=i},3702:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("DirectoryExistsPlugin",((n,r,i)=>{const o=e.fileSystem,s=n.path;if(!s)return i();o.stat(s,((o,a)=>o||!a?(r.missingDependencies&&r.missingDependencies.add(s),r.log&&r.log(s+" doesn't exist"),i()):a.isDirectory()?(r.fileDependencies&&r.fileDependencies.add(s),void e.doResolve(t,n,`existing directory ${s}`,r,i)):(r.missingDependencies&&r.missingDependencies.add(s),r.log&&r.log(s+" is not a directory"),i())))}))}}},5782:(e,t,n)=>{"use strict";const r=n(5877),i=n(8048),{processExportsField:o}=n(4480),{parseIdentifier:s}=n(3488),{invalidSegmentRegEx:a,deprecatedInvalidSegmentRegEx:u}=n(6932);e.exports=class{constructor(e,t,n,r){this.source=e,this.target=r,this.conditionNames=t,this.fieldName=n,this.fieldProcessorCache=new WeakMap}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ExportsFieldPlugin",((n,l,c)=>{if(!n.descriptionFilePath)return c();if("."!==n.relativePath||void 0===n.request)return c();const f=n.query||n.fragment?("."===n.request?"./":n.request)+n.query+n.fragment:n.request,h=r.getField(n.descriptionFileData,this.fieldName);if(!h)return c();if(n.directory)return c(new Error(`Resolving to directories is not possible with the exports field (request was ${f}/)`));let d,p;try{let e=this.fieldProcessorCache.get(n.descriptionFileData);void 0===e&&(e=o(h),this.fieldProcessorCache.set(n.descriptionFileData,e)),[d,p]=e(f,this.conditionNames)}catch(e){return l.log&&l.log(`Exports field in ${n.descriptionFilePath} can't be processed: ${e}`),c(e)}if(0===d.length)return c(new Error(`Package path ${f} is not exported from package ${n.descriptionFileRoot} (see exports field in ${n.descriptionFilePath})`));i(d,((r,i,o)=>{const c=s(r);if(!c)return i();const[f,h,m]=c;if(0===f.length||!f.startsWith("./"))return d.length===o?i(new Error(`Invalid "exports" target "${r}" defined for "${p}" in the package config ${n.descriptionFilePath}, targets must start with "./"`)):i();if(null!==a.exec(f.slice(2))&&null!==u.test(f.slice(2)))return d.length===o?i(new Error(`Invalid "exports" target "${r}" defined for "${p}" in the package config ${n.descriptionFilePath}, targets must start with "./"`)):i();const g={...n,request:void 0,path:e.join(n.descriptionFileRoot,f),relativePath:f,query:h,fragment:m};e.doResolve(t,g,"using exports field: "+r,l,((e,t)=>e?i(e):void 0===t?i(null,null):void i(null,t)))}),((e,t)=>c(e,t||null)))}))}}},3112:(e,t,n)=>{"use strict";const r=n(8048);e.exports=class{constructor(e,t,n){this.source=e,this.options=t,this.target=n}apply(e){const t=e.ensureHook(this.target),{extension:n,alias:i}=this.options;e.getHook(this.source).tapAsync("ExtensionAliasPlugin",((o,s,a)=>{const u=o.request;if(!u||!u.endsWith(n))return a();const l="string"==typeof i,c=(r,i,a)=>{const c=`${u.slice(0,-n.length)}${r}`;return e.doResolve(t,{...o,request:c,fullySpecified:!0},`aliased from extension alias with mapping '${n}' to '${r}'`,s,((e,t)=>{if(!l&&a)return a!==this.options.alias.length?(s.log&&s.log(`Failed to alias from extension alias with mapping '${n}' to '${r}' for '${c}': ${e}`),i(null,t)):i(e,t);i(e,t)}))},f=(e,t)=>e?a(e):a(null,t||null);l?c(i,f):i.length>1?r(i,c,f):c(i[0],f)}))}}},2541:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target),n=e.fileSystem;e.getHook(this.source).tapAsync("FileExistsPlugin",((r,i,o)=>{const s=r.path;if(!s)return o();n.stat(s,((n,a)=>n||!a?(i.missingDependencies&&i.missingDependencies.add(s),i.log&&i.log(s+" doesn't exist"),o()):a.isFile()?(i.fileDependencies&&i.fileDependencies.add(s),void e.doResolve(t,r,"existing file: "+s,i,o)):(i.missingDependencies&&i.missingDependencies.add(s),i.log&&i.log(s+" is not a file"),o())))}))}}},4669:(e,t,n)=>{"use strict";const r=n(5877),i=n(8048),{processImportsField:o}=n(4480),{parseIdentifier:s}=n(3488),{invalidSegmentRegEx:a,deprecatedInvalidSegmentRegEx:u}=n(6932),l=".".charCodeAt(0);e.exports=class{constructor(e,t,n,r,i){this.source=e,this.targetFile=r,this.targetPackage=i,this.conditionNames=t,this.fieldName=n,this.fieldProcessorCache=new WeakMap}apply(e){const t=e.ensureHook(this.targetFile),n=e.ensureHook(this.targetPackage);e.getHook(this.source).tapAsync("ImportsFieldPlugin",((c,f,h)=>{if(!c.descriptionFilePath||void 0===c.request)return h();const d=c.request+c.query+c.fragment,p=r.getField(c.descriptionFileData,this.fieldName);if(!p)return h();if(c.directory)return h(new Error(`Resolving to directories is not possible with the imports field (request was ${d}/)`));let m,g;try{let e=this.fieldProcessorCache.get(c.descriptionFileData);void 0===e&&(e=o(p),this.fieldProcessorCache.set(c.descriptionFileData,e)),[m,g]=e(d,this.conditionNames)}catch(e){return f.log&&f.log(`Imports field in ${c.descriptionFilePath} can't be processed: ${e}`),h(e)}if(0===m.length)return h(new Error(`Package import ${d} is not imported from package ${c.descriptionFileRoot} (see imports field in ${c.descriptionFilePath})`));i(m,((r,i,o)=>{const h=s(r);if(!h)return i();const[d,p,y]=h;switch(d.charCodeAt(0)){case l:{if(null!==a.exec(d.slice(2))&&null!==u.test(d.slice(2)))return m.length===o?i(new Error(`Invalid "imports" target "${r}" defined for "${g}" in the package config ${c.descriptionFilePath}, targets must start with "./"`)):i();const n={...c,request:void 0,path:e.join(c.descriptionFileRoot,d),relativePath:d,query:p,fragment:y};e.doResolve(t,n,"using imports field: "+r,f,((e,t)=>e?i(e):void 0===t?i(null,null):void i(null,t)));break}default:{const t={...c,request:d,relativePath:d,fullySpecified:!0,query:p,fragment:y};e.doResolve(n,t,"using imports field: "+r,f,((e,t)=>e?i(e):void 0===t?i(null,null):void i(null,t)))}}}),((e,t)=>h(e,t||null)))}))}}},6001:e=>{"use strict";const t="@".charCodeAt(0);e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const n=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPartPlugin",((r,i,o)=>{const s=r.request||"";let a,u,l,c=s.indexOf("/",3);c>=0&&s.charCodeAt(2)===t&&(c=s.indexOf("/",c+1)),c<0?(a=s,u=".",l=!1):(a=s.slice(0,c),u="."+s.slice(c),l=r.fullySpecified);const f={...r,path:e.join(r.path,a),relativePath:r.relativePath&&e.join(r.relativePath,a),request:u,fullySpecified:l};e.doResolve(n,f,null,i,o)}))}}},7132:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("JoinRequestPlugin",((n,r,i)=>{const o=n.path,s=n.request,a={...n,path:e.join(o,s),relativePath:n.relativePath&&e.join(n.relativePath,s),request:void 0};e.doResolve(t,a,null,r,i)}))}}},7475:e=>{"use strict";e.exports=class{constructor(e){this.source=e}apply(e){const t=this.source;e.getHook(this.source).tapAsync("LogInfoPlugin",((e,n,r)=>{if(!n.log)return r();const i=n.log,o="["+t+"] ";e.path&&i(o+"Resolving in directory: "+e.path),e.request&&i(o+"Resolving request: "+e.request),e.module&&i(o+"Request is an module request."),e.directory&&i(o+"Request is a directory request."),e.query&&i(o+"Resolving request query: "+e.query),e.fragment&&i(o+"Resolving request fragment: "+e.fragment),e.descriptionFilePath&&i(o+"Has description data from "+e.descriptionFilePath),e.relativePath&&i(o+"Relative path from description file is: "+e.relativePath),r()}))}}},1722:(e,t,n)=>{"use strict";const r=n(6928),i=n(5877),o=Symbol("alreadyTriedMainField");e.exports=class{constructor(e,t,n){this.source=e,this.options=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("MainFieldPlugin",((n,s,a)=>{if(n.path!==n.descriptionFileRoot||n[o]===n.descriptionFilePath||!n.descriptionFilePath)return a();const u=r.basename(n.descriptionFilePath);let l=i.getField(n.descriptionFileData,this.options.name);if(!l||"string"!=typeof l||"."===l||"./"===l)return a();this.options.forceRelative&&!/^\.\.?\//.test(l)&&(l="./"+l);const c={...n,request:l,module:!1,directory:l.endsWith("/"),[o]:n.descriptionFilePath};return e.doResolve(t,c,"use "+l+" from "+this.options.name+" in "+u,s,a)}))}}},645:(e,t,n)=>{"use strict";const r=n(8048),i=n(1036);e.exports=class{constructor(e,t,n){this.source=e,this.directories=[].concat(t),this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInHierarchicalDirectoriesPlugin",((n,o,s)=>{const a=e.fileSystem,u=i(n.path).paths.map((t=>this.directories.map((n=>e.join(t,n))))).reduce(((e,t)=>(e.push.apply(e,t),e)),[]);r(u,((r,i)=>{a.stat(r,((s,a)=>{if(!s&&a&&a.isDirectory()){const s={...n,path:r,request:"./"+n.request,module:!1},a="looking for modules in "+r;return e.doResolve(t,s,a,o,i)}return o.log&&o.log(r+" doesn't exist or is not a directory"),o.missingDependencies&&o.missingDependencies.add(r),i()}))}),s)}))}}},8659:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.path=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ModulesInRootPlugin",((n,r,i)=>{const o={...n,path:this.path,request:"./"+n.request,module:!1};e.doResolve(t,o,"looking for modules in "+this.path,r,i)}))}}},1334:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("NextPlugin",((n,r,i)=>{e.doResolve(t,n,null,r,i)}))}}},7074:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.requestOptions=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("ParsePlugin",((n,r,i)=>{const o=e.parse(n.request),s={...n,...o,...this.requestOptions};if(n.query&&!o.query&&(s.query=n.query),n.fragment&&!o.fragment&&(s.fragment=n.fragment),o&&r.log&&(o.module&&r.log("Parsed request is a module"),o.directory&&r.log("Parsed request is a directory")),s.request&&!s.query&&s.fragment){const n=s.fragment.endsWith("/"),o={...s,directory:n,request:s.request+(s.directory?"/":"")+(n?s.fragment.slice(0,-1):s.fragment),fragment:""};e.doResolve(t,o,null,r,((n,o)=>n?i(n):o?i(null,o):void e.doResolve(t,s,null,r,i)))}else e.doResolve(t,s,null,r,i)}))}}},8931:e=>{"use strict";e.exports=class{constructor(e,t,n,r){this.source=e,this.pnpApi=t,this.target=n,this.alternateTarget=r}apply(e){const t=e.ensureHook(this.target),n=e.ensureHook(this.alternateTarget);e.getHook(this.source).tapAsync("PnpPlugin",((r,i,o)=>{const s=r.request;if(!s)return o();const a=`${r.path}/`,u=/^(@[^/]+\/)?[^/]+/.exec(s);if(!u)return o();const l=u[0],c=`.${s.slice(l.length)}`;let f,h;try{if(f=this.pnpApi.resolveToUnqualified(l,a,{considerBuiltins:!1}),null===f)return void e.doResolve(n,r,"issuer is not managed by a pnpapi",i,((e,t)=>e?o(e):o(null,t||null)));i.fileDependencies&&(h=this.pnpApi.resolveToUnqualified("pnpapi",a,{considerBuiltins:!1}))}catch(e){if("MODULE_NOT_FOUND"===e.code&&"UNDECLARED_DEPENDENCY"===e.pnpCode){if(i.log){i.log("request is not managed by the pnpapi");for(const t of e.message.split("\n").filter(Boolean))i.log(` ${t}`)}return o()}return o(e)}if(f===l)return o();h&&i.fileDependencies&&i.fileDependencies.add(h);const d={...r,path:f,request:c,ignoreSymlinks:!0,fullySpecified:r.fullySpecified&&"."!==c};e.doResolve(t,d,`resolved by pnp to ${f}`,i,((e,t)=>e?o(e):o(null,t||null)))}))}}},2110:(e,t,n)=>{"use strict";const{AsyncSeriesBailHook:r,AsyncSeriesHook:i,SyncHook:o}=n(7554),s=n(8699),{parseIdentifier:a}=n(3488),{normalize:u,cachedJoin:l,getType:c,PathType:f}=n(6932);function h(e){return e.replace(/-([a-z])/g,(e=>e.slice(1).toUpperCase()))}class d{static createStackEntry(e,t){return e.name+": ("+t.path+") "+(t.request||"")+(t.query||"")+(t.fragment||"")+(t.directory?" directory":"")+(t.module?" module":"")}constructor(e,t){this.fileSystem=e,this.options=t,this.hooks={resolveStep:new o(["hook","request"],"resolveStep"),noResolve:new o(["request","error"],"noResolve"),resolve:new r(["request","resolveContext"],"resolve"),result:new i(["result","resolveContext"],"result")}}ensureHook(e){if("string"!=typeof e)return e;if(e=h(e),/^before/.test(e))return this.ensureHook(e[6].toLowerCase()+e.slice(7)).withOptions({stage:-10});if(/^after/.test(e))return this.ensureHook(e[5].toLowerCase()+e.slice(6)).withOptions({stage:10});return this.hooks[e]||(this.hooks[e]=new r(["request","resolveContext"],e),this.hooks[e])}getHook(e){if("string"!=typeof e)return e;if(e=h(e),/^before/.test(e))return this.getHook(e[6].toLowerCase()+e.slice(7)).withOptions({stage:-10});if(/^after/.test(e))return this.getHook(e[5].toLowerCase()+e.slice(6)).withOptions({stage:10});const t=this.hooks[e];if(!t)throw new Error(`Hook ${e} doesn't exist`);return t}resolveSync(e,t,n){let r,i,o=!1;if(this.resolve(e,t,n,{},((e,t)=>{r=e,i=t,o=!0})),!o)throw new Error("Cannot 'resolveSync' because the fileSystem is not sync. Use 'resolve'!");if(r)throw r;if(void 0===i)throw new Error("No result");return i}resolve(e,t,n,r,i){if(!e||"object"!=typeof e)return i(new Error("context argument is not an object"));if("string"!=typeof t)return i(new Error("path argument is not a string"));if("string"!=typeof n)return i(new Error("request argument is not a string"));if(!r)return i(new Error("resolveContext argument is not set"));const o={context:e,path:t,request:n};let s,a,u=!1;if("function"==typeof r.yield){const e=r.yield;s=t=>{e(t),u=!0},a=e=>{e&&s(e),i(null)}}const l=`resolve '${n}' in '${t}'`,c=e=>i(null,!1!==e.path&&`${e.path.replace(/#/g,"\0#")}${e.query?e.query.replace(/#/g,"\0#"):""}${e.fragment||""}`,e),f=e=>{const t=new Error("Can't "+l);return t.details=e.join("\n"),this.hooks.noResolve.call(o,t),i(t)};if(r.log){const e=r.log,t=[];return this.doResolve(this.hooks.resolve,o,l,{log:n=>{e(n),t.push(n)},yield:s,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:r.stack},((e,n)=>e?i(e):u||n&&s?a(n):n?c(n):f(t)))}return this.doResolve(this.hooks.resolve,o,l,{log:void 0,yield:s,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:r.stack},((e,t)=>{if(e)return i(e);if(u||t&&s)return a(t);if(t)return c(t);const n=[];return this.doResolve(this.hooks.resolve,o,l,{log:e=>n.push(e),yield:s,stack:r.stack},((e,t)=>e?i(e):u||t&&s?a(t):f(n)))}))}doResolve(e,t,n,r,i){const o=d.createStackEntry(e,t);let a;if(r.stack){if(a=new Set(r.stack),r.stack.has(o)){const e=new Error("Recursion in resolving\nStack:\n "+Array.from(a).join("\n "));return e.recursion=!0,r.log&&r.log("abort resolving because of recursion"),i(e)}a.add(o)}else a=new Set,a.add(o);if(this.hooks.resolveStep.call(e,t),e.isUsed()){const o=s({log:r.log,yield:r.yield,fileDependencies:r.fileDependencies,contextDependencies:r.contextDependencies,missingDependencies:r.missingDependencies,stack:a},n);return e.callAsync(t,o,((e,t)=>e?i(e):t?i(null,t):void i()))}i()}parse(e){const t={request:"",query:"",fragment:"",module:!1,directory:!1,file:!1,internal:!1},n=a(e);return n?([t.request,t.query,t.fragment]=n,t.request.length>0&&(t.internal=this.isPrivate(e),t.module=this.isModule(t.request),t.directory=this.isDirectory(t.request),t.directory&&(t.request=t.request.slice(0,-1))),t):t}isModule(e){return c(e)===f.Normal}isPrivate(e){return c(e)===f.Internal}isDirectory(e){return e.endsWith("/")}join(e,t){return l(e,t)}normalize(e){return u(e)}}e.exports=d},2422:(e,t,n)=>{"use strict";const r=n(932).versions,i=n(2110),{getType:o,PathType:s}=n(6932),a=n(5151),u=n(6203),l=n(7869),c=n(1527),f=n(2897),h=n(4153),d=n(3702),p=n(5782),m=n(3112),g=n(2541),y=n(4669),D=n(6001),b=n(7132),v=n(1722),w=n(645),E=n(8659),_=n(1334),F=n(7074),x=n(8931),C=n(2620),A=n(3566),O=n(4012),k=n(8022),S=n(7278),j=n(9413),B=n(3177),P=n(492);function R(e){if(void 0===e&&r.pnp){const e=n(3339).findPnpApi;if(e)return{resolveToUnqualified(t,n,r){const i=e(n);return i?i.resolveToUnqualified(t,n,r):null}}}return e||null}function I(e){return"object"!=typeof e||Array.isArray(e)||null===e?e||[]:Object.keys(e).map((t=>{const n={name:t,onlyModule:!1,alias:e[t]};return/\$$/.test(t)&&(n.onlyModule=!0,n.name=t.slice(0,-1)),n}))}function M(e,t){const n=[],r=new Set(e);for(const e of r)if(t(e)){const t=n.length>0?n[n.length-1]:void 0;Array.isArray(t)?t.push(e):n.push([e])}else n.push(e);return n}t.createResolver=function(e){const t=function(e){const t=new Set(e.mainFields||["main"]),n=[];for(const e of t)"string"==typeof e?n.push({name:[e],forceRelative:!0}):Array.isArray(e)?n.push({name:e,forceRelative:!0}):n.push({name:Array.isArray(e.name)?e.name:[e.name],forceRelative:e.forceRelative});return{alias:I(e.alias),fallback:I(e.fallback),aliasFields:new Set(e.aliasFields),cachePredicate:e.cachePredicate||function(){return!0},cacheWithContext:void 0===e.cacheWithContext||e.cacheWithContext,exportsFields:new Set(e.exportsFields||["exports"]),importsFields:new Set(e.importsFields||["imports"]),conditionNames:new Set(e.conditionNames),descriptionFiles:Array.from(new Set(e.descriptionFiles||["package.json"])),enforceExtension:void 0===e.enforceExtension?!(!e.extensions||!e.extensions.includes("")):e.enforceExtension,extensions:new Set(e.extensions||[".js",".json",".node"]),extensionAlias:e.extensionAlias?Object.keys(e.extensionAlias).map((t=>({extension:t,alias:e.extensionAlias[t]}))):[],fileSystem:e.useSyncFileSystemCalls?new a(e.fileSystem):e.fileSystem,unsafeCache:e.unsafeCache&&"object"!=typeof e.unsafeCache?{}:e.unsafeCache||!1,symlinks:void 0===e.symlinks||e.symlinks,resolver:e.resolver,modules:M(Array.isArray(e.modules)?e.modules:e.modules?[e.modules]:["node_modules"],(e=>{const t=o(e);return t===s.Normal||t===s.Relative})),mainFields:n,mainFiles:new Set(e.mainFiles||["index"]),plugins:e.plugins||[],pnpApi:R(e.pnpApi),roots:new Set(e.roots||void 0),fullySpecified:e.fullySpecified||!1,resolveToContext:e.resolveToContext||!1,preferRelative:e.preferRelative||!1,preferAbsolute:e.preferAbsolute||!1,restrictions:new Set(e.restrictions)}}(e),{alias:n,fallback:r,aliasFields:$,cachePredicate:T,cacheWithContext:N,conditionNames:L,descriptionFiles:q,enforceExtension:z,exportsFields:U,extensionAlias:H,importsFields:W,extensions:V,fileSystem:G,fullySpecified:Y,mainFields:K,mainFiles:J,modules:Z,plugins:Q,pnpApi:X,resolveToContext:ee,preferRelative:te,preferAbsolute:ne,symlinks:re,unsafeCache:ie,resolver:oe,restrictions:se,roots:ae}=t,ue=Q.slice(),le=oe||new i(G,t);le.ensureHook("resolve"),le.ensureHook("internalResolve"),le.ensureHook("newInternalResolve"),le.ensureHook("parsedResolve"),le.ensureHook("describedResolve"),le.ensureHook("rawResolve"),le.ensureHook("normalResolve"),le.ensureHook("internal"),le.ensureHook("rawModule"),le.ensureHook("alternateRawModule"),le.ensureHook("module"),le.ensureHook("resolveAsModule"),le.ensureHook("undescribedResolveInPackage"),le.ensureHook("resolveInPackage"),le.ensureHook("resolveInExistingDirectory"),le.ensureHook("relative"),le.ensureHook("describedRelative"),le.ensureHook("directory"),le.ensureHook("undescribedExistingDirectory"),le.ensureHook("existingDirectory"),le.ensureHook("undescribedRawFile"),le.ensureHook("rawFile"),le.ensureHook("file"),le.ensureHook("finalFile"),le.ensureHook("existingFile"),le.ensureHook("resolved"),le.hooks.newInteralResolve=le.hooks.newInternalResolve;for(const{source:e,resolveOptions:t}of[{source:"resolve",resolveOptions:{fullySpecified:Y}},{source:"internal-resolve",resolveOptions:{fullySpecified:!1}}])ie?(ue.push(new B(e,T,ie,N,`new-${e}`)),ue.push(new F(`new-${e}`,t,"parsed-resolve"))):ue.push(new F(e,t,"parsed-resolve"));ue.push(new h("parsed-resolve",q,!1,"described-resolve")),ue.push(new _("after-parsed-resolve","described-resolve")),ue.push(new _("described-resolve","raw-resolve")),r.length>0&&ue.push(new l("described-resolve",r,"internal-resolve")),n.length>0&&ue.push(new l("raw-resolve",n,"internal-resolve")),$.forEach((e=>{ue.push(new u("raw-resolve",e,"internal-resolve"))})),H.forEach((e=>ue.push(new m("raw-resolve",e,"normal-resolve")))),ue.push(new _("raw-resolve","normal-resolve")),te&&ue.push(new b("after-normal-resolve","relative")),ue.push(new f("after-normal-resolve",{module:!0},"resolve as module",!1,"raw-module")),ue.push(new f("after-normal-resolve",{internal:!0},"resolve as internal import",!1,"internal")),ne&&ue.push(new b("after-normal-resolve","relative")),ae.size>0&&ue.push(new O("after-normal-resolve",ae,"relative")),te||ne||ue.push(new b("after-normal-resolve","relative")),W.forEach((e=>{ue.push(new y("internal",L,e,"relative","internal-resolve"))})),U.forEach((e=>{ue.push(new k("raw-module",e,"resolve-as-module"))})),Z.forEach((e=>{Array.isArray(e)?e.includes("node_modules")&&X?(ue.push(new w("raw-module",e.filter((e=>"node_modules"!==e)),"module")),ue.push(new x("raw-module",X,"undescribed-resolve-in-package","alternate-raw-module")),ue.push(new w("alternate-raw-module",["node_modules"],"module"))):ue.push(new w("raw-module",e,"module")):ue.push(new E("raw-module",e,"module"))})),ue.push(new D("module","resolve-as-module")),ee||ue.push(new f("resolve-as-module",{directory:!1,request:"."},"single file module",!0,"undescribed-raw-file")),ue.push(new d("resolve-as-module","undescribed-resolve-in-package")),ue.push(new h("undescribed-resolve-in-package",q,!1,"resolve-in-package")),ue.push(new _("after-undescribed-resolve-in-package","resolve-in-package")),U.forEach((e=>{ue.push(new p("resolve-in-package",L,e,"relative"))})),ue.push(new _("resolve-in-package","resolve-in-existing-directory")),ue.push(new b("resolve-in-existing-directory","relative")),ue.push(new h("relative",q,!0,"described-relative")),ue.push(new _("after-relative","described-relative")),ee?ue.push(new _("described-relative","directory")):(ue.push(new f("described-relative",{directory:!1},null,!0,"raw-file")),ue.push(new f("described-relative",{fullySpecified:!1},"as directory",!0,"directory"))),ue.push(new d("directory","undescribed-existing-directory")),ee?ue.push(new _("undescribed-existing-directory","resolved")):(ue.push(new h("undescribed-existing-directory",q,!1,"existing-directory")),J.forEach((e=>{ue.push(new P("undescribed-existing-directory",e,"undescribed-raw-file"))})),K.forEach((e=>{ue.push(new v("existing-directory",e,"resolve-in-existing-directory"))})),J.forEach((e=>{ue.push(new P("existing-directory",e,"undescribed-raw-file"))})),ue.push(new h("undescribed-raw-file",q,!0,"raw-file")),ue.push(new _("after-undescribed-raw-file","raw-file")),ue.push(new f("raw-file",{fullySpecified:!0},null,!1,"file")),z||ue.push(new j("raw-file","no extension","file")),V.forEach((e=>{ue.push(new c("raw-file",e,"file"))})),n.length>0&&ue.push(new l("file",n,"internal-resolve")),$.forEach((e=>{ue.push(new u("file",e,"internal-resolve"))})),ue.push(new _("file","final-file")),ue.push(new g("final-file","existing-file")),re&&ue.push(new S("existing-file","existing-file")),ue.push(new _("existing-file","resolved")));const ce=le.hooks.resolved;se.size>0&&ue.push(new C(ce,se)),ue.push(new A(ce));for(const e of ue)"function"==typeof e?e.call(le,le):e&&e.apply(le);return le}},2620:e=>{"use strict";const t="/".charCodeAt(0),n="\\".charCodeAt(0),r=(e,r)=>{if(!e.startsWith(r))return!1;if(e.length===r.length)return!0;const i=e.charCodeAt(r.length);return i===t||i===n};e.exports=class{constructor(e,t){this.source=e,this.restrictions=t}apply(e){e.getHook(this.source).tapAsync("RestrictionsPlugin",((e,t,n)=>{if("string"==typeof e.path){const i=e.path;for(const e of this.restrictions)if("string"==typeof e){if(!r(i,e))return t.log&&t.log(`${i} is not inside of the restriction ${e}`),n(null,null)}else if(!e.test(i))return t.log&&t.log(`${i} doesn't match the restriction ${e}`),n(null,null)}n()}))}}},3566:e=>{"use strict";e.exports=class{constructor(e){this.source=e}apply(e){this.source.tapAsync("ResultPlugin",((t,n,r)=>{const i={...t};n.log&&n.log("reporting result "+i.path),e.hooks.result.callAsync(i,n,(e=>{if(e)return r(e);"function"==typeof n.yield?(n.yield(i),r(null,null)):r(null,i)}))}))}}},4012:(e,t,n)=>{"use strict";const r=n(8048);e.exports=class{constructor(e,t,n){this.roots=Array.from(t),this.source=e,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("RootsPlugin",((n,i,o)=>{const s=n.request;return s&&s.startsWith("/")?void r(this.roots,((r,o)=>{const a=e.join(r,s.slice(1)),u={...n,path:a,relativePath:n.relativePath&&a};e.doResolve(t,u,`root path ${r}`,i,o)}),o):o()}))}}},8022:(e,t,n)=>{"use strict";const r=n(5877),i="/".charCodeAt(0);e.exports=class{constructor(e,t,n){this.source=e,this.target=n,this.fieldName=t}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("SelfReferencePlugin",((n,o,s)=>{if(!n.descriptionFilePath)return s();const a=n.request;if(!a)return s();if(!r.getField(n.descriptionFileData,this.fieldName))return s();const u=r.getField(n.descriptionFileData,"name");if("string"!=typeof u)return s();if(!a.startsWith(u)||a.length!==u.length&&a.charCodeAt(u.length)!==i)return s();{const r=`.${a.slice(u.length)}`,i={...n,request:r,path:n.descriptionFileRoot,relativePath:"."};e.doResolve(t,i,"self reference",o,s)}}))}}},7278:(e,t,n)=>{"use strict";const r=n(8048),i=n(1036),{getType:o,PathType:s}=n(6932);e.exports=class{constructor(e,t){this.source=e,this.target=t}apply(e){const t=e.ensureHook(this.target),n=e.fileSystem;e.getHook(this.source).tapAsync("SymlinkPlugin",((a,u,l)=>{if(a.ignoreSymlinks)return l();const c=i(a.path),f=c.segments,h=c.paths;let d=!1,p=-1;r(h,((e,t)=>{p++,u.fileDependencies&&u.fileDependencies.add(e),n.readlink(e,((e,n)=>{if(!e&&n){f[p]=n,d=!0;const e=o(n.toString());if(e===s.AbsoluteWin||e===s.AbsolutePosix)return t(null,p)}t()}))}),((n,r)=>{if(!d)return l();const i=("number"==typeof r?f.slice(0,r+1):f.slice()).reduceRight(((t,n)=>e.join(t,n))),o={...a,path:i};e.doResolve(t,o,"resolved symlink to "+i,u,l)}))}))}}},5151:e=>{"use strict";e.exports=function(e){this.fs=e,this.lstat=void 0,this.lstatSync=void 0;const t=e.lstatSync;t&&(this.lstat=(n,r,i)=>{let o;try{o=i?t.call(e,n,r):t.call(e,n)}catch(e){return(i||r)(e)}(i||r)(null,o)},this.lstatSync=(n,r)=>t.call(e,n,r)),this.stat=(t,n,r)=>{let i;try{i=r?e.statSync(t,n):e.statSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.statSync=(t,n)=>e.statSync(t,n),this.readdir=(t,n,r)=>{let i;try{i=r?e.readdirSync(t,n):e.readdirSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.readdirSync=(t,n)=>e.readdirSync(t,n),this.readFile=(t,n,r)=>{let i;try{i=r?e.readFileSync(t,n):e.readFileSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.readFileSync=(t,n)=>e.readFileSync(t,n),this.readlink=(t,n,r)=>{let i;try{i=r?e.readlinkSync(t,n):e.readlinkSync(t)}catch(e){return(r||n)(e)}(r||n)(null,i)},this.readlinkSync=(t,n)=>e.readlinkSync(t,n),this.readJson=void 0,this.readJsonSync=void 0;const n=e.readJsonSync;n&&(this.readJson=(t,r)=>{let i;try{i=n.call(e,t)}catch(e){return r(e)}r(null,i)},this.readJsonSync=t=>n.call(e,t)),this.realpath=void 0,this.realpathSync=void 0;const r=e.realpathSync;r&&(this.realpath=(t,n,i)=>{let o;try{o=i?r.call(e,t,n):r.call(e,t)}catch(e){return(i||n)(e)}(i||n)(null,o)},this.realpathSync=(t,n)=>r.call(e,t,n))}},9413:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.message=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("TryNextPlugin",((n,r,i)=>{e.doResolve(t,n,this.message,r,i)}))}}},3177:e=>{"use strict";e.exports=class{constructor(e,t,n,r,i){this.source=e,this.filterPredicate=t,this.withContext=r,this.cache=n,this.target=i}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UnsafeCachePlugin",((n,r,i)=>{if(!this.filterPredicate(n))return i();const o="function"==typeof r.yield,s=function(e,t,n){return JSON.stringify({type:e,context:n?t.context:"",path:t.path,query:t.query,fragment:t.fragment,request:t.request})}(o?"yield":"default",n,this.withContext),a=this.cache[s];if(a){if(o){const e=r.yield;if(Array.isArray(a))for(const t of a)e(t);else e(a);return i(null,null)}return i(null,a)}let u,l;const c=[];o&&(u=r.yield,l=e=>{c.push(e)}),e.doResolve(t,n,null,l?{...r,yield:l}:r,((e,t)=>{if(e)return i(e);if(o){t&&c.push(t);for(const e of c)u(e);return this.cache[s]=c,i(null,null)}if(t)return i(null,this.cache[s]=t);i()}))}))}}},492:e=>{"use strict";e.exports=class{constructor(e,t,n){this.source=e,this.filename=t,this.target=n}apply(e){const t=e.ensureHook(this.target);e.getHook(this.source).tapAsync("UseFilePlugin",((n,r,i)=>{const o=e.join(n.path,this.filename),s={...n,path:o,relativePath:n.relativePath&&e.join(n.relativePath,this.filename)};e.doResolve(t,s,"using path: "+o,r,i)}))}}},8699:e=>{"use strict";e.exports=function(e,t){let n,r=!1;return e.log&&(n=t?n=>{r||(e.log(t),r=!0),e.log(" "+n)}:e.log),{log:n,yield:e.yield,fileDependencies:e.fileDependencies,contextDependencies:e.contextDependencies,missingDependencies:e.missingDependencies,stack:e.stack}}},8048:e=>{"use strict";e.exports=function(e,t,n){if(0===e.length)return n();let r=0;const i=()=>{let o;return t(e[r++],((t,s)=>{if(t||void 0!==s||r>=e.length)return n(t,s,r);if(!1===o)for(;i(););o=!0}),r),o||(o=!1),o};for(;i(););}},2207:e=>{"use strict";e.exports=function(e,t){if("string"==typeof t.__innerRequest&&t.__innerRequest_request===t.request&&t.__innerRequest_relativePath===t.relativePath)return t.__innerRequest;let n;return t.request?(n=t.request,/^\.\.?(?:\/|$)/.test(n)&&t.relativePath&&(n=e.join(t.relativePath,n))):n=t.relativePath,t.__innerRequest_request=t.request,t.__innerRequest_relativePath=t.relativePath,t.__innerRequest=n}},1036:e=>{"use strict";e.exports=function(e){if("/"===e)return{paths:["/"],segments:[""]};const t=e.split(/(.*?[\\/]+)/),n=[e],r=[t[t.length-1]];let i=t[t.length-1];e=e.substring(0,e.length-i.length-1);for(let o=t.length-2;o>2;o-=2)n.push(e),i=t[o],e=e.substring(0,e.length-i.length)||"/",r.push(i.slice(0,-1));return i=t[1],r.push(i),n.push(i),{paths:n,segments:r}},e.exports.basename=function(e){const t=e.lastIndexOf("/"),n=e.lastIndexOf("\\"),r=t<0?n:n<0?t:t<n?n:t;return r<0?null:e.slice(r+1)}},4506:(e,t,n)=>{"use strict";const r=n(2387),i=n(3367),o=n(2422),s=new i(r,4e3),a={environments:["node+es3+es5+process+native"]},u=o.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],fileSystem:s}),l=o.createResolver({conditionNames:["node"],extensions:[".js",".json",".node"],useSyncFileSystemCalls:!0,fileSystem:s}),c=(e,t,n)=>("string"==typeof e&&(n=t,t=e,e=a),l.resolveSync(e,t,n));function f(e){const t=o.createResolver({useSyncFileSystemCalls:!0,fileSystem:s,...e});return function(e,n,r){return"string"==typeof e&&(r=n,n=e,e=a),t.resolveSync(e,n,r)}}const h=(e,t)=>{const n=Object.getOwnPropertyDescriptors(t);return Object.defineProperties(e,n),Object.freeze(e)};e.exports=h(((e,t,n,r,i)=>{"string"==typeof e&&(i=r,r=n,n=t,t=e,e=a),"function"!=typeof i&&(i=r),u.resolve(e,t,n,r,i)}),{get sync(){return c},create:h((function(e){const t=o.createResolver({fileSystem:s,...e});return function(e,n,r,i,o){"string"==typeof e&&(o=i,i=r,r=n,n=e,e=a),"function"!=typeof o&&(o=i),t.resolve(e,n,r,i,o)}}),{get sync(){return f}}),ResolverFactory:o,CachedInputFileSystem:i,get CloneBasenamePlugin(){return n(8034)},get LogInfoPlugin(){return n(7475)},get forEachBail(){return n(8048)}})},4480:(e,t,n)=>{"use strict";const{parseIdentifier:r}=n(3488),i="/".charCodeAt(0),o=".".charCodeAt(0),s="#".charCodeAt(0),a=/\*/g;function u(e,t,n,r){return function(i,o){i=n(i);const s=function(e,t){if(Object.prototype.hasOwnProperty.call(t,e)&&!e.includes("*")&&!e.endsWith("/"))return[t[e],"",!1,!1,e];let n,r="";const i=Object.getOwnPropertyNames(t);for(let t=0;t<i.length;t++){const o=i[t],s=o.indexOf("*");if(-1!==s&&e.startsWith(o.slice(0,s))){const t=o.slice(s+1);e.length>=o.length&&e.endsWith(t)&&1===d(r,o)&&o.lastIndexOf("*")===s&&(r=o,n=e.slice(s,e.length-t.length))}else"/"===o[o.length-1]&&e.startsWith(o)&&1===d(r,o)&&(r=o,n=e.slice(o.length))}if(""===r)return null;return[t[r],n,r.endsWith("/"),r.includes("*"),r]}(t(i),e);if(null===s)return[[],null];const[a,u,l,c,f]=s;let h=null;if(p(a)){if(h=y(a,o),null===h)return[[],null]}else h=a;return[m(u,c,l,h,o,r),f]}}function l(e){if(e.charCodeAt(0)!==o)throw new Error('Request should be relative path and start with "."');if(1===e.length)return"";if(e.charCodeAt(1)!==i)throw new Error('Request should be relative path and start with "./"');if(e.charCodeAt(e.length-1)===i)throw new Error("Only requesting file allowed");return e.slice(2)}function c(e){if(e.charCodeAt(0)!==s)throw new Error('Request should start with "#"');if(1===e.length)throw new Error("Request should have at least 2 characters");if(e.charCodeAt(1)===i)throw new Error('Request should not start with "#/"');if(e.charCodeAt(e.length-1)===i)throw new Error("Only requesting file allowed");return e.slice(1)}function f(e,t){const n=r(e);if(!n)return;const[o]=n;if(o.charCodeAt(o.length-1)===i!==t)throw new Error(t?`Expecting folder to folder mapping. ${JSON.stringify(e)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(e)} should not end with "/"`)}function h(e,t){const n=r(e);if(!n)return;const[o]=n;if(o.charCodeAt(o.length-1)===i!==t)throw new Error(t?`Expecting folder to folder mapping. ${JSON.stringify(e)} should end with "/"`:`Expecting file to file mapping. ${JSON.stringify(e)} should not end with "/"`)}function d(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function p(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function m(e,t,n,r,i,o){if(null===r)return[];if("string"==typeof r)return[g(e,t,n,r,o)];const s=[];for(const a of r){if("string"==typeof a){s.push(g(e,t,n,a,o));continue}const r=y(a,i);if(!r)continue;const u=m(e,t,n,r,i,o);for(const e of u)s.push(e)}return s}function g(e,t,n,r,i){if(void 0===e)return i(r,!1),r;if(n)return i(r,!0),r+e;i(r,!1);let o=r;return t&&(o=o.replace(a,e.replace(/\$/g,"$$"))),o}function y(e,t){let n=[[e,Object.keys(e),0]];e:for(;n.length>0;){const[e,r,i]=n[n.length-1];for(let o=i;o<r.length;o++){const i=r[o];if("default"===i){const t=e[i];if(p(t)){const e=t;n[n.length-1][2]=o+1,n.push([e,Object.keys(e),0]);continue e}return t}if(t.has(i)){const t=e[i];if(p(t)){const e=t;n[n.length-1][2]=o+1,n.push([e,Object.keys(e),0]);continue e}return t}}n.pop()}return null}e.exports.processExportsField=function(e){return u(function(e){if("string"==typeof e||Array.isArray(e))return{".":e};const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(r.charCodeAt(0)!==o){if(0===n){for(;n<t.length;){const e=t[n].charCodeAt(0);if(e===o||e===i)throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(r)})`);n++}return{".":e}}throw new Error(`Exports field key should be relative path and start with "." (key: ${JSON.stringify(r)})`)}if(1!==r.length&&r.charCodeAt(1)!==i)throw new Error(`Exports field key should be relative path and start with "./" (key: ${JSON.stringify(r)})`)}return e}(e),(e=>0===e.length?".":"./"+e),l,f)},e.exports.processImportsField=function(e){return u(e,(e=>"#"+e),c,h)}},3488:e=>{"use strict";const t=/^(#?(?:\0.|[^?#\0])*)(\?(?:\0.|[^#\0])*)?(#.*)?$/;e.exports.parseIdentifier=function(e){const n=t.exec(e);return n?[n[1].replace(/\0(.)/g,"$1"),n[2]?n[2].replace(/\0(.)/g,"$1"):"",n[3]||""]:null}},6932:(e,t,n)=>{"use strict";const r=n(6928),i="#".charCodeAt(0),o="/".charCodeAt(0),s="\\".charCodeAt(0),a="A".charCodeAt(0),u="Z".charCodeAt(0),l="a".charCodeAt(0),c="z".charCodeAt(0),f=".".charCodeAt(0),h=":".charCodeAt(0),d=r.posix.normalize,p=r.win32.normalize,m=Object.freeze({Empty:0,Normal:1,Relative:2,AbsoluteWin:3,AbsolutePosix:4,Internal:5});t.PathType=m,t.invalidSegmentRegEx=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,t.deprecatedInvalidSegmentRegEx=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;const g=e=>{switch(e.length){case 0:return m.Empty;case 1:switch(e.charCodeAt(0)){case f:return m.Relative;case o:return m.AbsolutePosix;case i:return m.Internal}return m.Normal;case 2:{const t=e.charCodeAt(0);switch(t){case f:switch(e.charCodeAt(1)){case f:case o:return m.Relative}return m.Normal;case o:return m.AbsolutePosix;case i:return m.Internal}return e.charCodeAt(1)===h&&(t>=a&&t<=u||t>=l&&t<=c)?m.AbsoluteWin:m.Normal}}const t=e.charCodeAt(0);switch(t){case f:switch(e.charCodeAt(1)){case o:return m.Relative;case f:return e.charCodeAt(2)===o?m.Relative:m.Normal}return m.Normal;case o:return m.AbsolutePosix;case i:return m.Internal}if(e.charCodeAt(1)===h){const n=e.charCodeAt(2);if((n===s||n===o)&&(t>=a&&t<=u||t>=l&&t<=c))return m.AbsoluteWin}return m.Normal};t.getType=g;const y=e=>{switch(g(e)){case m.Empty:return e;case m.AbsoluteWin:return p(e);case m.Relative:{const t=d(e);return g(t)===m.Relative?t:`./${t}`}}return d(e)};t.normalize=y;const D=(e,t)=>{if(!t)return y(e);const n=g(t);switch(n){case m.AbsolutePosix:return d(t);case m.AbsoluteWin:return p(t)}switch(g(e)){case m.Normal:case m.Relative:case m.AbsolutePosix:return d(`${e}/${t}`);case m.AbsoluteWin:return p(`${e}\\${t}`)}switch(n){case m.Empty:return e;case m.Relative:{const t=d(e);return g(t)===m.Relative?t:`./${t}`}}return d(e)};t.join=D;const b=new Map;t.cachedJoin=(e,t)=>{let n,r=b.get(e);if(void 0===r)b.set(e,r=new Map);else if(n=r.get(t),void 0!==n)return n;return n=D(e,t),r.set(t,n),n}},7829:(e,t,n)=>{const{dirname:r,resolve:i}=n(6928),{readdirSync:o,statSync:s}=n(9896);e.exports=function(e,t){let n,a=i(".",e);for(s(a).isDirectory()||(a=r(a));;){if(n=t(a,o(a)),n)return i(a,n);if(a=r(n=a),n===a)break}}},4602:(e,t,n)=>{var r=n(9896),i=n(9023),o=n(2203),s=o.Readable,a=o.Writable,u=o.PassThrough,l=n(8496),c=n(4434).EventEmitter;function f(e,t){t=t||{},c.call(this),this.fd=e,this.pend=new l,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}function h(e,t){t=t||{},s.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}function d(e,t){t=t||{},a.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=null==t.end?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}function p(e,t){c.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}t.createFromBuffer=function(e,t){return new p(e,t)},t.createFromFd=function(e,t){return new f(e,t)},t.BufferSlicer=p,t.FdSlicer=f,i.inherits(f,c),f.prototype.read=function(e,t,n,i,o){var s=this;s.pend.go((function(a){r.read(s.fd,e,t,n,i,(function(e,t,n){a(),o(e,t,n)}))}))},f.prototype.write=function(e,t,n,i,o){var s=this;s.pend.go((function(a){r.write(s.fd,e,t,n,i,(function(e,t,n){a(),o(e,t,n)}))}))},f.prototype.createReadStream=function(e){return new h(this,e)},f.prototype.createWriteStream=function(e){return new d(this,e)},f.prototype.ref=function(){this.refCount+=1},f.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&r.close(e.fd,(function(t){t?e.emit("error",t):e.emit("close")}))}},i.inherits(h,s),h.prototype._read=function(e){var t=this;if(!t.destroyed){var n=Math.min(t._readableState.highWaterMark,e);if(null!=t.endOffset&&(n=Math.min(n,t.endOffset-t.pos)),n<=0)return t.destroyed=!0,t.push(null),void t.context.unref();t.context.pend.go((function(e){if(t.destroyed)return e();var i=new Buffer(n);r.read(t.context.fd,i,0,n,t.pos,(function(n,r){n?t.destroy(n):0===r?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=r,t.push(i.slice(0,r))),e()}))}))}},h.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())},i.inherits(d,a),d.prototype._write=function(e,t,n){var i=this;if(!i.destroyed){if(i.pos+e.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go((function(t){if(i.destroyed)return t();r.write(i.context.fd,e,0,e.length,i.pos,(function(e,r){e?(i.destroy(),t(),n(e)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),t(),n())}))}))}},d.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(p,c),p.prototype.read=function(e,t,n,r,i){var o=r+n,s=o-this.buffer.length,a=s>0?s:n;this.buffer.copy(e,t,r,o),setImmediate((function(){i(null,a)}))},p.prototype.write=function(e,t,n,r,i){e.copy(this.buffer,r,t,t+n),setImmediate((function(){i(null,n,e)}))},p.prototype.createReadStream=function(e){var t=new u(e=e||{});t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var n=this.buffer.slice(t.start,t.pos),r=0;;){var i=r+this.maxChunkSize;if(i>=n.length){r<n.length&&t.write(n.slice(r,n.length));break}t.write(n.slice(r,i)),r=i}return t.end(),t.destroy=function(){t.destroyed=!0},t},p.prototype.createWriteStream=function(e){var t=this,n=new a(e=e||{});return n.start=e.start||0,n.endOffset=null==e.end?this.buffer.length:+e.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(e,r,i){if(!n.destroyed){var o=n.pos+e.length;if(o>n.endOffset){var s=new Error("maximum file length exceeded");return s.code="ETOOBIG",n.destroyed=!0,void i(s)}e.copy(t.buffer,n.pos,0,e.length),n.bytesWritten+=e.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},p.prototype.ref=function(){this.refCount+=1},p.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},1674:e=>{"use strict";e.exports=e=>{const t=new Uint8Array(e);if(!(t&&t.length>1))return null;const n=(e,n)=>{n=Object.assign({offset:0},n);for(let r=0;r<e.length;r++)if(e[r]!==t[r+n.offset])return!1;return!0};if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])&&n([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(n([80,75,3,4])&&n([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([0,0,0])&&(24===t[3]||32===t[3])&&n([102,116,121,112],{offset:4})||n([51,103,112,53])||n([0,0,0,28,102,116,121,112,109,112,52,50])&&n([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||n([0,0,0,28,102,116,121,112,105,115,111,109])||n([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(n([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const e=t.subarray(4,4100),n=e.findIndex(((e,t,n)=>66===n[t]&&130===n[t+1]));if(n>=0){const t=n+3,r=n=>Array.from(n).every(((n,r)=>e[t+r]===n.charCodeAt(0)));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}return n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:n([82,73,70,70])&&n([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:n([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:n([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:n([73,68,51])||n([255,251])?{ext:"mp3",mime:"audio/mpeg"}:n([102,116,121,112,77,52,65],{offset:4})||n([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:n([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:n([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:n([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:n([82,73,70,70])&&n([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:n([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:n([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:n([77,90])?{ext:"exe",mime:"application/x-msdownload"}:67!==t[0]&&70!==t[0]||!n([87,83],{offset:1})?n([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:n([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:n([119,79,70,70])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:n([119,79,70,50])&&(n([0,1,0,0],{offset:4})||n([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:n([76,80],{offset:34})&&(n([0,0,1],{offset:8})||n([1,0,2],{offset:8})||n([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:n([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:n([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:n([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:n([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:n([37,33])?{ext:"ps",mime:"application/postscript"}:n([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:n([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:n([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:n([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:n([77,83,67,70])||n([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:n([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:n([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:n([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:n([31,160])||n([31,157])?{ext:"Z",mime:"application/x-compress"}:n([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:n([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:n([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:n([71],{offset:4})&&(n([71],{offset:192})||n([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:n([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:n([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null:{ext:"swf",mime:"application/x-shockwave-flash"}}},9457:(e,t,n)=>{e.exports=n(9896).constants||n(9140)},2838:e=>{"use strict";e.exports=function(e){if(void 0===e&&(e=2),e>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var t=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var n=(new Error).stack;if(Error.prepareStackTrace=t,null!==n&&"object"==typeof n)return n[e]?n[e].getFileName():void 0}},7991:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},2387:(e,t,n)=>{var r,i,o=n(9896),s=n(4862),a=n(8959),u=n(7991),l=n(9023);function c(e,t){Object.defineProperty(e,r,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",i="___graceful-fs.previous");var f,h=function(){};if(l.debuglog?h=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[r]){var d=global[r]||[];c(o,d),o.close=function(e){function t(t,n){return e.call(o,t,(function(e){e||g(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),g()}return Object.defineProperty(t,i,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){h(o[r]),n(2613).equal(o[r].length,0)}))}function p(e){s(e),e.gracefulify=p,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){return"function"==typeof n&&(r=n,n=null),function e(n,r,i,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[n,r,i],t,o||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),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):m([e,[t,r,i,o],n,s||Date.now(),Date.now()])}))}(e,t,r,i)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=null),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):m([e,[t,n,i,o],r,s||Date.now(),Date.now()])}))}(e,t,n,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,n,r){return"function"==typeof n&&(r=n,n=0),function e(t,n,r,o,s){return i(t,n,r,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):m([e,[t,n,r,o],i,s||Date.now(),Date.now()])}))}(e,t,n,r)});var o=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=u.test(process.version)?function(e,t,n,r){return o(e,i(e,t,n,r))}:function(e,t,n,r){return o(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,o,s)):m([r,[e,t,n],o,i||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(e);g=l.ReadStream,y=l.WriteStream}var c=e.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var f=e.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=function(){var e=this;b(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var h=g;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=y;function g(e,t){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.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 D=e.open;function b(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i,o){return D(t,n,r,(function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,n,r,i],s,o||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=b,e}function m(e){h("ENQUEUE",e[0].name,e[1]),o[r].push(e),y()}function g(){for(var e=Date.now(),t=0;t<o[r].length;++t)o[r][t].length>2&&(o[r][t][3]=e,o[r][t][4]=e);y()}function y(){if(clearTimeout(f),f=void 0,0!==o[r].length){var e=o[r].shift(),t=e[0],n=e[1],i=e[2],s=e[3],a=e[4];if(void 0===s)h("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){h("TIMEOUT",t.name,n);var u=n.pop();"function"==typeof u&&u.call(null,i)}else{var l=Date.now()-a,c=Math.max(a-s,1);l>=Math.min(1.2*c,100)?(h("RETRY",t.name,n),t.apply(null,n.concat([s]))):o[r].push(e)}void 0===f&&(f=setTimeout(y,0))}}global[r]||c(global,o[r]),e.exports=p(u(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=p(o),o.__patched=!0)},8959:(e,t,n)=>{var r=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var o=this;this.path=n,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,u=s.length;a<u;a++){var l=s[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),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}null===this.fd?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()})):process.nextTick((function(){o._read()}))},WriteStream:function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this),this.path=n,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 u=o[s];this[u]=i[u]}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())}}}},4862:(e,t,n)=>{var r=n(9140),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){function t(t){return t?function(n,r,i){return t.call(e,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function n(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!l(e))throw e}}:t}function i(t){return t?function(n,r,i,o){return t.call(e,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(n,r,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 r&&(i=r,r=null),r?t.call(e,n,r,o):t.call(e,n,o)}:t}function u(t){return t?function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var c;r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,(function(t,r){t?i&&i(t):e.fchmod(r,n,(function(t){e.close(r,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,n){var i,o=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),s=!0;try{i=e.fchmodSync(o,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}}(e),e.lutimes||function(e){r.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,i,o){e.open(t,r.O_SYMLINK,(function(t,r){t?o&&o(t):e.futimes(r,n,i,(function(t){e.close(r,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,n,i){var o,s=e.openSync(t,r.O_SYMLINK),a=!0;try{o=e.futimesSync(s,n,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,n,r){r&&process.nextTick(r)},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=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,r,i){var o=Date.now(),s=0;t(n,r,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(r,(function(e,o){e&&"ENOENT"===e.code?t(n,r,a):i(u)}))}),s),void(s<100&&(s+=10));i&&i(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function n(n,r,i,o,s,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,f,h){if(c&&"EAGAIN"===c.code&&l<10)return l++,t.call(e,n,r,i,o,s,u);a.apply(this,arguments)}}return t.call(e,n,r,i,o,s,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,n,r,i,o){for(var s=0;;)try{return c.call(e,t,n,r,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}})}},5704:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}},9293:(e,t,n)=>{try{var r=n(9023);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(198)}},198: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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},1664:e=>{"use strict";const t=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);e.exports=t,e.exports.default=t},8249:e=>{"use strict";e.exports=function(e,t){if(t){if("object"!=typeof t)throw new TypeError(String(t)+" is not an object. Expected an object that has boolean `includeZero` property.");if("includeZero"in t){if("boolean"!=typeof t.includeZero)throw new TypeError(String(t.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.");if(t.includeZero&&0===e)return!0}}return Number.isSafeInteger(e)&&e>=1}},9134:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},9283:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))n.call(o,l)&&(a[l]=o[l]);if(t){s=t(o);for(var c=0;c<s.length;c++)r.call(o,s[c])&&(a[s[c]]=o[s[c]])}}return a}},9819:(e,t,n)=>{var r=n(1591);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=r(i),e.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},8496:e=>{function t(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function n(e){e.pending+=1;var t=!1;return function(i){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||i,e.pending-=1,e.waiting.length>0&&e.pending<e.max)r(e,e.waiting.shift());else if(0===e.pending){var o=e.listeners;e.listeners=[],o.forEach(n)}};function n(t){t(e.error)}}function r(e,t){t(n(e))}e.exports=t,t.prototype.go=function(e){this.pending<this.max?r(this,e):this.waiting.push(e)},t.prototype.wait=function(e){0===this.pending?e(this.error):this.listeners.push(e)},t.prototype.hold=function(){return n(this)}},6327:e=>{"use strict";var t=function(e,t,n){return function(){for(var r=this,i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return new t((function(t,o){i.push((function(e,r){if(e)o(e);else if(n.multiArgs){for(var i=new Array(arguments.length-1),s=1;s<arguments.length;s++)i[s-1]=arguments[s];t(i)}else t(r)})),e.apply(r,i)}))}},n=e.exports=function(e,n,r){"function"!=typeof n&&(r=n,n=Promise),(r=r||{}).exclude=r.exclude||[/.+Sync$/];var i="function"==typeof e?function(){return r.excludeMain?e.apply(this,arguments):t(e,n,r).apply(this,arguments)}:{};return Object.keys(e).reduce((function(i,o){var s=e[o];return i[o]="function"==typeof s&&function(e){var t=function(t){return"string"==typeof t?e===t:t.test(e)};return r.include?r.include.some(t):!r.exclude.some(t)}(o)?t(s,n,r):s,i}),i)};n.all=n},9491:(e,t,n)=>{"use strict";e.exports="function"==typeof Promise?Promise:n(9355)},9355:e=>{"use strict";var t,n="pending",r="settled",i="fulfilled",o="rejected",s=function(){},a="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,u="undefined"==typeof setImmediate?setTimeout:setImmediate,l=[];function c(){for(var e=0;e<l.length;e++)l[e][0](l[e][1]);l=[],t=!1}function f(e,n){l.push([e,n]),t||(t=!0,u(c,0))}function h(e){var t=e.owner,n=t._state,r=t._data,s=e[n],a=e.then;if("function"==typeof s){n=i;try{r=s(r)}catch(e){g(a,e)}}d(a,r)||(n===i&&p(a,r),n===o&&g(a,r))}function d(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?m(e,r):p(e,r))}),(function(t){n||(n=!0,g(e,t))})),!0}}catch(t){return n||g(e,t),!0}return!1}function p(e,t){e!==t&&d(e,t)||m(e,t)}function m(e,t){e._state===n&&(e._state=r,e._data=t,f(D,e))}function g(e,t){e._state===n&&(e._state=r,e._data=t,f(b,e))}function y(e){e._then=e._then.forEach(h)}function D(e){e._state=i,y(e)}function b(e){e._state=o,y(e),!e._handled&&a&&global.process.emit("unhandledRejection",e._data,e)}function v(e){global.process.emit("rejectionHandled",e)}function w(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof w==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){g(t,e)}try{e((function(e){p(t,e)}),n)}catch(e){n(e)}}(e,this)}w.prototype={constructor:w,_state:n,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(s),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===o&&a&&f(v,this)),this._state===i||this._state===o?f(h,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},w.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new w((function(t,n){var r=[],i=0;function o(e){return i++,function(n){r[e]=n,--i||t(r)}}for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"==typeof s.then?s.then(o(a),n):r[a]=s;i||t(r)}))},w.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new w((function(t,n){for(var r,i=0;i<e.length;i++)(r=e[i])&&"function"==typeof r.then?r.then(t,n):t(r)}))},w.resolve=function(e){return e&&"object"==typeof e&&e.constructor===w?e:new w((function(t){t(e)}))},w.reject=function(e){return new w((function(t,n){n(e)}))},e.exports=w},7925:e=>{"use strict";"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,n,r){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,n)}));case 4:return process.nextTick((function(){e.call(null,t,n,r)}));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},5828:(e,t,n)=>{e.exports=n(1738).Duplex},7890:(e,t,n)=>{"use strict";var r=n(7925),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=Object.create(n(1218));o.inherits=n(9293);var s=n(9616),a=n(3920);o.inherits(f,s);for(var u=i(a.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=a.prototype[c])}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||r.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(),r.nextTick(t,e)}},8180:(e,t,n)=>{"use strict";e.exports=o;var r=n(5118),i=Object.create(n(1218));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(9293),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},9616:(e,t,n)=>{"use strict";var r=n(7925);e.exports=D;var i,o=n(9134);D.ReadableState=y,n(4434).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=n(6572),u=n(1814).Buffer,l=global.Uint8Array||function(){},c=Object.create(n(1218));c.inherits=n(9293);var f=n(9023),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p=n(2306),m=n(7804);c.inherits(D,a);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(i=i||n(7890));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(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=n(721).I),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function D(e){if(i=i||n(7890),!(this instanceof D))return new D(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 b(e,t,n,r,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,_(e)}}(e,s)):(i||(o=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?v(e,s,t,!1):x(e,s)):v(e,s,t,!1))):r||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function v(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&_(e)),x(e,t)}Object.defineProperty(D.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),D.prototype.destroy=m.destroy,D.prototype._undestroy=m.undestroy,D.prototype._destroy=function(e,t){this.push(null),t(e)},D.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},D.prototype.unshift=function(e){return b(this,e,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(e){return d||(d=n(721).I),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var w=8388608;function E(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>=w?e=w:(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){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(F,e):F(e))}function F(e){h("emit readable"),e.emit("readable"),k(e)}function x(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function A(e){h("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function S(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.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?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0==(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}D.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=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?j(this):_(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&j(this),null;var r,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=E(n,t))),null===(r=e>0?S(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&j(this)),null!==r&&this.emit("data",r),r},D.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},D.prototype.pipe=function(e,t){var n=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?y:u;function u(){h("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",(function t(r,o){h("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",d),c=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=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,k(e))}}(n);e.on("drain",l);var c=!1,f=!1;function d(t){h("ondata"),f=!1,!1!==e.write(t)||f||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==P(i.pipes,e))&&!c&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function p(t){h("onerror",t),y(),e.removeListener("error",p),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=P(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,n)),this},D.prototype.on=function(e,t){var n=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&&_(this):r.nextTick(A,this))}return n},D.prototype.addListener=D.prototype.on,D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(O,e,t))}(this,e)),this},D.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},D.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!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<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),D._fromList=S},5118:(e,t,n)=>{"use strict";e.exports=s;var r=n(7890),i=Object.create(n(1218));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(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);r.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,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),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=n(9293),i.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.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 n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},3920:(e,t,n)=>{"use strict";var r=n(7925);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;g.WritableState=m;var a=Object.create(n(1218));a.inherits=n(9293);var u,l={deprecate:n(4323)},c=n(6572),f=n(1814).Buffer,h=global.Uint8Array||function(){},d=n(7804);function p(){}function m(e,t){o=o||n(7890),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:a&&(l||0===l)?l:c,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 n=e._writableState,i=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),E(e,t))}(e,n,i,t,o);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||b(e,n),i?s(D,e,n,a,o):D(e,n,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 g(e){if(o=o||n(7890),!(u.call(g,this)||this instanceof o))return new g(e);this._writableState=new m(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,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function D(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function b(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,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(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(y(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=v(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}a.inherits(g,c),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.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]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===g&&e&&e._writableState instanceof m}})):u=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,f.isBuffer(i)||i instanceof h);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=p),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),r.nextTick(i,s),o=!1),o}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,i,o){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,a,r,i,o);return u}(this,o,a,e,t,n)),s},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||b(this,e))},g.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(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=d.destroy,g.prototype._undestroy=d.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}},2306:(e,t,n)=>{"use strict";var r=n(1814).Buffer,i=n(9023);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,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=i,n=s,o.data.copy(t,n),s+=o.data.length,o=o.next;return i},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})},7804:(e,t,n)=>{"use strict";var r=n(7925);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=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||r.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.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):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.finished=!1,this._writableState.errorEmitted=!1)}}},6572:(e,t,n)=>{e.exports=n(2203)},1814:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},1738:(e,t,n)=>{var r=n(2203);"disable"===process.env.READABLE_STREAM&&r?(e.exports=r,(t=e.exports=r.Readable).Readable=r.Readable,t.Writable=r.Writable,t.Duplex=r.Duplex,t.Transform=r.Transform,t.PassThrough=r.PassThrough,t.Stream=r):((t=e.exports=n(9616)).Stream=r||t,t.Readable=t,t.Writable=n(3920),t.Duplex=n(7890),t.Transform=n(5118),t.PassThrough=n(8180))},9386:(e,t,n)=>{"use strict";var r=n(9896),i=n(6928).join,o=n(6928).resolve,s=n(6928).dirname,a={extensions:["js","json","coffee"],recurse:!0,rename:function(e){return e},visit:function(e){return e}};e.exports=function e(t,n,u){var l={};for(var c in n&&!u&&"string"!=typeof n&&(u=n,n=null),u=u||{},a)void 0===u[c]&&(u[c]=a[c]);return n=n?o(s(t.filename),n):s(t.filename),r.readdirSync(n).forEach((function(o){var s,a,c,f=i(n,o);r.statSync(f).isDirectory()&&u.recurse?(s=e(t,f,u),Object.keys(s).length&&(l[u.rename(o,f,o)]=s)):f!==t.filename&&function(e,t,n){return new RegExp("\\.("+n.extensions.join("|")+")$","i").test(t)&&!(n.include&&n.include instanceof RegExp&&!n.include.test(e))&&!(n.include&&"function"==typeof n.include&&!n.include(e,t))&&!(n.exclude&&n.exclude instanceof RegExp&&n.exclude.test(e))&&!(n.exclude&&"function"==typeof n.exclude&&n.exclude(e,t))}(f,o,u)&&(a=o.substring(0,o.lastIndexOf(".")),c=t.require(f),l[u.rename(a,f,o)]=u.visit(c,f,o)||c)})),l},e.exports.defaults=a},1817:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},6565:e=>{var t=[0,1,3,7,15,31,63,127,255],n=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};n.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},n.prototype.read=function(e){for(var n=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)n<<=r,n|=t[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{n<<=e;var i=r-e;n|=(this.curByte&t[e]<<i)>>i,this.bitOffset+=e,e=0}}return n},n.prototype.seek=function(e){var t=e%8,n=(e-t)/8;this.bitOffset=t,this.stream.seek(n),this.hasByte=!1},n.prototype.pi=function(){var e,t=new Buffer(6);for(e=0;e<t.length;e++)t[e]=this.read(8);return t.toString("hex")},e.exports=n},6278:e=>{var t;e.exports=(t=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),function(){var e=4294967295;this.getCRC=function(){return~e>>>0},this.updateCRC=function(n){e=e<<8^t[255&(e>>>24^n)]},this.updateCRCRun=function(n,r){for(;r-- >0;)e=e<<8^t[255&(e>>>24^n)]}})},5773:(e,t,n)=>{var r=n(6565),i=n(1513),o=n(6278),s=n(1994),a=function(e,t){var n,r=e[t];for(n=t;n>0;n--)e[n]=e[n-1];return e[0]=r,r},u={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},l={};l[u.LAST_BLOCK]="Bad file checksum",l[u.NOT_BZIP_DATA]="Not bzip data",l[u.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",l[u.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",l[u.DATA_ERROR]="Data error",l[u.OUT_OF_MEMORY]="Out of memory",l[u.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var c=function(e,t){var n=l[e]||"unknown error";t&&(n+=": "+t);var r=new TypeError(n);throw r.errorCode=e,r},f=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};f.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new o,!0):(this.writeCount=-1,!1)},f.prototype._start_bunzip=function(e,t){var n=new Buffer(4);4===e.read(n,0,4)&&"BZh"===String.fromCharCode(n[0],n[1],n[2])||c(u.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;(i<1||i>9)&&c(u.NOT_BZIP_DATA,"level out of range"),this.reader=new r(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},f.prototype._get_next_block=function(){var e,t,n,r=this.reader,i=r.pi();if("177245385090"===i)return!1;"314159265359"!==i&&c(u.NOT_BZIP_DATA),this.targetBlockCRC=r.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,r.read(1)&&c(u.OBSOLETE_INPUT);var o=r.read(24);o>this.dbufSize&&c(u.DATA_ERROR,"initial position out of bounds");var s=r.read(16),l=new Buffer(256),f=0;for(e=0;e<16;e++)if(s&1<<15-e){var h=16*e;for(n=r.read(16),t=0;t<16;t++)n&1<<15-t&&(l[f++]=h+t)}var d=r.read(3);(d<2||d>6)&&c(u.DATA_ERROR);var p=r.read(15);0===p&&c(u.DATA_ERROR);var m=new Buffer(256);for(e=0;e<d;e++)m[e]=e;var g=new Buffer(p);for(e=0;e<p;e++){for(t=0;r.read(1);t++)t>=d&&c(u.DATA_ERROR);g[e]=a(m,t)}var y,D=f+2,b=[];for(t=0;t<d;t++){var v,w,E=new Buffer(D),_=new Uint16Array(21);for(s=r.read(5),e=0;e<D;e++){for(;(s<1||s>20)&&c(u.DATA_ERROR),r.read(1);)r.read(1)?s--:s++;E[e]=s}for(v=w=E[0],e=1;e<D;e++)E[e]>w?w=E[e]:E[e]<v&&(v=E[e]);y={},b.push(y),y.permute=new Uint16Array(258),y.limit=new Uint32Array(22),y.base=new Uint32Array(21),y.minLen=v,y.maxLen=w;var F=0;for(e=v;e<=w;e++)for(_[e]=y.limit[e]=0,s=0;s<D;s++)E[s]===e&&(y.permute[F++]=s);for(e=0;e<D;e++)_[E[e]]++;for(F=s=0,e=v;e<w;e++)F+=_[e],y.limit[e]=F-1,F<<=1,s+=_[e],y.base[e+1]=F-s;y.limit[w+1]=Number.MAX_VALUE,y.limit[w]=F+_[w]-1,y.base[v]=0}var x=new Uint32Array(256);for(e=0;e<256;e++)m[e]=e;var C,A=0,O=0,k=0,S=this.dbuf=new Uint32Array(this.dbufSize);for(D=0;;){for(D--||(D=49,k>=p&&c(u.DATA_ERROR),y=b[g[k++]]),e=y.minLen,t=r.read(e);e>y.maxLen&&c(u.DATA_ERROR),!(t<=y.limit[e]);e++)t=t<<1|r.read(1);((t-=y.base[e])<0||t>=258)&&c(u.DATA_ERROR);var j=y.permute[t];if(0!==j&&1!==j){if(A)for(A=0,O+s>this.dbufSize&&c(u.DATA_ERROR),x[C=l[m[0]]]+=s;s--;)S[O++]=C;if(j>f)break;O>=this.dbufSize&&c(u.DATA_ERROR),x[C=l[C=a(m,e=j-1)]]++,S[O++]=C}else A||(A=1,s=0),s+=0===j?A:2*A,A<<=1}for((o<0||o>=O)&&c(u.DATA_ERROR),t=0,e=0;e<256;e++)n=t+x[e],x[e]=t,t=n;for(e=0;e<O;e++)S[x[C=255&S[e]]]|=e<<8,x[C]++;var B=0,P=0,R=0;return O&&(P=255&(B=S[o]),B>>=8,R=-1),this.writePos=B,this.writeCurrent=P,this.writeCount=O,this.writeRun=R,!0},f.prototype._read_bunzip=function(e,t){var n,r,i;if(this.writeCount<0)return 0;for(var o=this.dbuf,s=this.writePos,a=this.writeCurrent,l=this.writeCount,f=(this.outputsize,this.writeRun);l;){for(l--,r=a,a=255&(s=o[s]),s>>=8,3==f++?(n=a,i=r,a=-1):(n=1,i=a),this.blockCRC.updateCRCRun(i,n);n--;)this.outputStream.writeByte(i),this.nextoutput++;a!=r&&(f=0)}return this.writeCount=l,this.blockCRC.getCRC()!==this.targetBlockCRC&&c(u.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var h=function(e){if("readByte"in e)return e;var t=new i;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t},d=function(e){var t=new i,n=!0;if(e)if("number"==typeof e)t.buffer=new Buffer(e),n=!1;else{if("writeByte"in e)return e;t.buffer=e,n=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var t=new Buffer(2*this.buffer.length);this.buffer.copy(t),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos),this.buffer=e}return this.buffer},t._coerced=!0,t};f.Err=u,f.decode=function(e,t,n){for(var r=h(e),i=d(t),o=new f(r,i);!("eof"in r)||!r.eof();)if(o._init_block())o._read_bunzip();else{var s=o.reader.read(32)>>>0;if(s!==o.streamCRC&&c(u.DATA_ERROR,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+s.toString(16)+")"),!n||!("eof"in r)||r.eof())break;o._start_bunzip(r,i)}if("getBuffer"in i)return i.getBuffer()},f.decodeBlock=function(e,t,n){var r=h(e),i=d(n),s=new f(r,i);if(s.reader.seek(t),s._get_next_block()&&(s.blockCRC=new o,s.writeCopies=0,s._read_bunzip()),"getBuffer"in i)return i.getBuffer()},f.table=function(e,t,n){var r=new i;r.delegate=h(e),r.pos=0,r.readByte=function(){return this.pos++,this.delegate.readByte()},r.delegate.eof&&(r.eof=r.delegate.eof.bind(r.delegate));var o=new i;o.pos=0,o.writeByte=function(){this.pos++};for(var s=new f(r,o),a=s.dbufSize;!("eof"in r)||!r.eof();){var u=8*r.pos+s.reader.bitOffset;if(s.reader.hasByte&&(u-=8),s._init_block()){var l=o.pos;s._read_bunzip(),t(u,o.pos-l)}else{if(s.reader.read(32),!n||!("eof"in r)||r.eof())break;s._start_bunzip(r,o),console.assert(s.dbufSize===a,"shouldn't change block size within multistream file")}}},f.Stream=i,f.version=s.version,f.license=s.license,e.exports=f},1513:e=>{var t=function(){};t.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")},t.prototype.read=function(e,t,n){for(var r=0;r<n;){var i=this.readByte();if(i<0)return 0===r?-1:r;e[t++]=i,r++}return r},t.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")},t.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")},t.prototype.write=function(e,t,n){var r;for(r=0;r<n;r++)this.writeByte(e[t++]);return n},t.prototype.flush=function(){},e.exports=t},4813:(e,t,n)=>{"use strict";const r=n(8395),i=n(1664),o=n(5895),s=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=r(e)).length)return 0;e=e.replace(o()," ");let t=0;for(let n=0;n<e.length;n++){const r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=i(r)?2:1)}return t};e.exports=s,e.exports.default=s},721:(e,t,n)=>{"use strict";var r=n(4503).Buffer,i=r.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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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,n=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!==n?n: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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}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,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):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 n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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}},4503:(e,t,n)=>{var r=n(181),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},8395:(e,t,n)=>{"use strict";const r=n(4764);e.exports=e=>"string"==typeof e?e.replace(r(),""):e},3460:(e,t,n)=>{"use strict";const r=n(6928),i=n(9023),o=n(8249);e.exports=function(e,t,n){if("string"!=typeof e)throw new TypeError(i.inspect(e)+" is not a string. First argument to strip-dirs must be a path string.");if(r.posix.isAbsolute(e)||r.win32.isAbsolute(e))throw new Error(`${e} is an absolute path. strip-dirs requires a relative path.`);if(!o(t,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+i.inspect(t)+".");if(n){if("object"!=typeof n)throw new TypeError(i.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(i.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&"boolean"!=typeof n.disallowOverflow)throw new TypeError(i.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};const s=r.normalize(e).split(r.sep);if(s.length>1&&"."===s[0]&&s.shift(),t>s.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");t=s.length-1}return r.join.apply(null,s.slice(t))}},459:(e,t,n)=>{"use strict";const r=n(857),i=n(2018),o=n(5704),{env:s}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const n=a||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||"codeship"===s.CI_NAME?1:n;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},1679:(e,t,n)=>{"use strict";const r=n(459),i=n(5704);function o(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function s(e){const{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&0===parseInt(t.FORCE_HYPERLINK,10));if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never"))return!1;if(i("hyperlink=true")||i("hyperlink=always"))return!0;if("NETLIFY"in t)return!0;if(!r.supportsColor(e))return!1;if(e&&!e.isTTY)return!1;if("win32"===process.platform)return!1;if("CI"in t)return!1;if("TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){const e=o(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return 3===e.major?e.minor>=1:e.major>3;case"WezTerm":return e.major>=20200620;case"vscode":return e.major>1||1===e.major&&e.minor>=72}}if("VTE_VERSION"in t){if("0.50.0"===t.VTE_VERSION)return!1;const e=o(t.VTE_VERSION);return e.major>0||e.minor>=50}return!1}e.exports={supportsHyperlink:s,stdout:s(process.stdout),stderr:s(process.stderr)}},6066:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,onDone:n}){let r="";return r+=`var _results = new Array(${this.options.taps.length});\n`,r+="var _checkDone = function() {\n",r+="for(var i = 0; i < _results.length; i++) {\n",r+="var item = _results[i];\n",r+="if(item === undefined) return false;\n",r+="if(item.result !== undefined) {\n",r+=t("item.result"),r+="return true;\n",r+="}\n",r+="if(item.error) {\n",r+=e("item.error"),r+="return true;\n",r+="}\n",r+="}\n",r+="return false;\n",r+="}\n",r+=this.callTapsParallel({onError:(e,t,n,r)=>{let i="";return i+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`,i+=r(!0),i+="} else {\n",i+=n(),i+="}\n",i},onResult:(e,t,n,r)=>{let i="";return i+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`,i+=r(!0),i+="} else {\n",i+=n(),i+="}\n",i},onTap:(e,t,n,r)=>{let i="";return e>0&&(i+=`if(${e} >= _results.length) {\n`,i+=n(),i+="} else {\n"),i+=t(),e>0&&(i+="}\n"),i},onDone:n}),r}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},7806:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t}){return this.callTapsParallel({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},2412:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)}\n} else {\n${r()}}\n`,resultReturns:n,onDone:r})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},1468:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},6170:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t}){return this.callTapsLooping({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},2522:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,onDone:n}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onResult:(e,t,n)=>{let r="";return r+=`if(${t} !== undefined) {\n`,r+=`${this._args[0]} = ${t};\n`,r+="}\n",r+=n(),r},onDone:()=>t(this._args[0])})}},s=function(e){return o.setup(this,e),o.create(e)};function a(e=[],t=void 0){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);return n.constructor=a,n.compile=s,n._call=void 0,n.call=void 0,n}a.prototype=null,e.exports=a},2995:(e,t,n)=>{"use strict";const r=n(9023).deprecate((()=>{}),"Hook.context is deprecated and will be removed"),i=function(...e){return this.call=this._createCall("sync"),this.call(...e)},o=function(...e){return this.callAsync=this._createCall("async"),this.callAsync(...e)},s=function(...e){return this.promise=this._createCall("promise"),this.promise(...e)};class a{constructor(e=[],t=void 0){this._args=e,this.name=t,this.taps=[],this.interceptors=[],this._call=i,this.call=i,this._callAsync=o,this.callAsync=o,this._promise=s,this.promise=s,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}compile(e){throw new Error("Abstract: should be overridden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}_tap(e,t,n){if("string"==typeof t)t={name:t.trim()};else if("object"!=typeof t||null===t)throw new Error("Invalid tap options");if("string"!=typeof t.name||""===t.name)throw new Error("Missing name for tap");void 0!==t.context&&r(),t=Object.assign({type:e,fn:n},t),t=this._runRegisterInterceptors(t),this._insert(t)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_runRegisterInterceptors(e){for(const t of this.interceptors)if(t.register){const n=t.register(e);void 0!==n&&(e=n)}return e}withOptions(e){const t=t=>Object.assign({},e,"string"==typeof t?{name:t}:t);return{name:this.name,tap:(e,n)=>this.tap(t(e),n),tapAsync:(e,n)=>this.tapAsync(t(e),n),tapPromise:(e,n)=>this.tapPromise(t(e),n),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){if(this._resetCompilation(),this.interceptors.push(Object.assign({},e)),e.register)for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}_resetCompilation(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise}_insert(e){let t;this._resetCompilation(),"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let n=0;"number"==typeof e.stage&&(n=e.stage);let r=this.taps.length;for(;r>0;){r--;const e=this.taps[r];this.taps[r+1]=e;const i=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=e}}Object.setPrototypeOf(a.prototype,null),e.exports=a},4978:e=>{"use strict";e.exports=class{constructor(e){this.config=e,this.options=void 0,this._args=void 0}create(e){let t;switch(this.init(e),this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:!0,onDone:()=>"",rethrowIfPossible:!0}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=!1;const n=this.contentWithInterceptors({onError:t=>(e=!0,`_error(${t});\n`),onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let r="";r+='"use strict";\n',r+=this.header(),r+="return new Promise((function(_resolve, _reject) {\n",e&&(r+="var _sync = true;\n",r+="function _error(_err) {\n",r+="if(_sync)\n",r+="_resolve(Promise.resolve().then((function() { throw _err; })));\n",r+="else\n",r+="_reject(_err);\n",r+="};\n"),r+=n,e&&(r+="_sync = false;\n"),r+="}));\n",t=new Function(this.args(),r)}return this.deinit(),t}setup(e,t){e._x=t.taps.map((e=>e.fn))}init(e){this.options=e,this._args=e.args.slice()}deinit(){this.options=void 0,this._args=void 0}contentWithInterceptors(e){if(this.options.interceptors.length>0){const t=e.onError,n=e.onResult,r=e.onDone;let i="";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];t.call&&(i+=`${this.getInterceptor(e)}.call(${this.args({before:t.context?"_context":void 0})});\n`)}return i+=this.content(Object.assign(e,{onError:t&&(e=>{let n="";for(let t=0;t<this.options.interceptors.length;t++)this.options.interceptors[t].error&&(n+=`${this.getInterceptor(t)}.error(${e});\n`);return n+=t(e),n}),onResult:n&&(e=>{let t="";for(let n=0;n<this.options.interceptors.length;n++)this.options.interceptors[n].result&&(t+=`${this.getInterceptor(n)}.result(${e});\n`);return t+=n(e),t}),onDone:r&&(()=>{let e="";for(let t=0;t<this.options.interceptors.length;t++)this.options.interceptors[t].done&&(e+=`${this.getInterceptor(t)}.done();\n`);return e+=r(),e})})),i}return this.content(e)}header(){let e="";return this.needContext()?e+="var _context = {};\n":e+="var _context;\n",e+="var _x = this._x;\n",this.options.interceptors.length>0&&(e+="var _taps = this.taps;\n",e+="var _interceptors = this.interceptors;\n"),e}needContext(){for(const e of this.options.taps)if(e.context)return!0;return!1}callTap(e,{onError:t,onResult:n,onDone:r,rethrowIfPossible:i}){let o="",s=!1;for(let t=0;t<this.options.interceptors.length;t++){const n=this.options.interceptors[t];n.tap&&(s||(o+=`var _tap${e} = ${this.getTap(e)};\n`,s=!0),o+=`${this.getInterceptor(t)}.tap(${n.context?"_context, ":""}_tap${e});\n`)}o+=`var _fn${e} = ${this.getTapFn(e)};\n`;const a=this.options.taps[e];switch(a.type){case"sync":i||(o+=`var _hasError${e} = false;\n`,o+="try {\n"),o+=n?`var _result${e} = _fn${e}(${this.args({before:a.context?"_context":void 0})});\n`:`_fn${e}(${this.args({before:a.context?"_context":void 0})});\n`,i||(o+="} catch(_err) {\n",o+=`_hasError${e} = true;\n`,o+=t("_err"),o+="}\n",o+=`if(!_hasError${e}) {\n`),n&&(o+=n(`_result${e}`)),r&&(o+=r()),i||(o+="}\n");break;case"async":let s="";s+=n?`(function(_err${e}, _result${e}) {\n`:`(function(_err${e}) {\n`,s+=`if(_err${e}) {\n`,s+=t(`_err${e}`),s+="} else {\n",n&&(s+=n(`_result${e}`)),r&&(s+=r()),s+="}\n",s+="})",o+=`_fn${e}(${this.args({before:a.context?"_context":void 0,after:s})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`,o+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":void 0})});\n`,o+=`if (!_promise${e} || !_promise${e}.then)\n`,o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`,o+=`_promise${e}.then((function(_result${e}) {\n`,o+=`_hasResult${e} = true;\n`,n&&(o+=n(`_result${e}`)),r&&(o+=r()),o+=`}), function(_err${e}) {\n`,o+=`if(_hasResult${e}) throw _err${e};\n`,o+=t(`_err${e}`),o+="});\n"}return o}callTapsSeries({onError:e,onResult:t,resultReturns:n,onDone:r,doneReturns:i,rethrowIfPossible:o}){if(0===this.options.taps.length)return r();const s=this.options.taps.findIndex((e=>"sync"!==e.type)),a=n||i;let u="",l=r,c=0;for(let n=this.options.taps.length-1;n>=0;n--){const i=n;l!==r&&("sync"!==this.options.taps[i].type||c++>20)&&(c=0,u+=`function _next${i}() {\n`,u+=l(),u+="}\n",l=()=>`${a?"return ":""}_next${i}();\n`);const f=l,h=e=>e?"":r(),d=this.callTap(i,{onError:t=>e(i,t,f,h),onResult:t&&(e=>t(i,e,f,h)),onDone:!t&&f,rethrowIfPossible:o&&(s<0||i<s)});l=()=>d}return u+=l(),u}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:n}){if(0===this.options.taps.length)return t();const r=this.options.taps.every((e=>"sync"===e.type));let i="";r||(i+="var _looper = (function() {\n",i+="var _loopAsync = false;\n"),i+="var _loop;\n",i+="do {\n",i+="_loop = false;\n";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];t.loop&&(i+=`${this.getInterceptor(e)}.loop(${this.args({before:t.context?"_context":void 0})});\n`)}return i+=this.callTapsSeries({onError:e,onResult:(e,t,n,i)=>{let o="";return o+=`if(${t} !== undefined) {\n`,o+="_loop = true;\n",r||(o+="if(_loopAsync) _looper();\n"),o+=i(!0),o+="} else {\n",o+=n(),o+="}\n",o},onDone:t&&(()=>{let e="";return e+="if(!_loop) {\n",e+=t(),e+="}\n",e}),rethrowIfPossible:n&&r}),i+="} while(_loop);\n",r||(i+="_loopAsync = true;\n",i+="});\n",i+="_looper();\n"),i}callTapsParallel({onError:e,onResult:t,onDone:n,rethrowIfPossible:r,onTap:i=(e,t)=>t()}){if(this.options.taps.length<=1)return this.callTapsSeries({onError:e,onResult:t,onDone:n,rethrowIfPossible:r});let o="";o+="do {\n",o+=`var _counter = ${this.options.taps.length};\n`,n&&(o+="var _done = (function() {\n",o+=n(),o+="});\n");for(let s=0;s<this.options.taps.length;s++){const a=()=>n?"if(--_counter === 0) _done();\n":"--_counter;",u=e=>e||!n?"_counter = 0;\n":"_counter = 0;\n_done();\n";o+="if(_counter <= 0) break;\n",o+=i(s,(()=>this.callTap(s,{onError:t=>{let n="";return n+="if(_counter > 0) {\n",n+=e(s,t,a,u),n+="}\n",n},onResult:t&&(e=>{let n="";return n+="if(_counter > 0) {\n",n+=t(s,e,a,u),n+="}\n",n}),onDone:!t&&(()=>a()),rethrowIfPossible:r})),a,u)}return o+="} while(false);\n",o}args({before:e,after:t}={}){let n=this._args;return e&&(n=[e].concat(n)),t&&(n=n.concat(t)),0===n.length?"":n.join(", ")}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}},4517:(e,t,n)=>{"use strict";const r=n(9023),i=(e,t)=>t;class o{constructor(e,t=void 0){this._map=new Map,this.name=t,this._factory=e,this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(void 0!==t)return t;let n=this._factory(e);const r=this._interceptors;for(let t=0;t<r.length;t++)n=r[t].factory(e,n);return this._map.set(e,n),n}intercept(e){this._interceptors.push(Object.assign({factory:i},e))}}o.prototype.tap=r.deprecate((function(e,t,n){return this.for(e).tap(t,n)}),"HookMap#tap(key,…) is deprecated. Use HookMap#for(key).tap(…) instead."),o.prototype.tapAsync=r.deprecate((function(e,t,n){return this.for(e).tapAsync(t,n)}),"HookMap#tapAsync(key,…) is deprecated. Use HookMap#for(key).tapAsync(…) instead."),o.prototype.tapPromise=r.deprecate((function(e,t,n){return this.for(e).tapPromise(t,n)}),"HookMap#tapPromise(key,…) is deprecated. Use HookMap#for(key).tapPromise(…) instead."),e.exports=o},9552:(e,t,n)=>{"use strict";n(2995);class r{constructor(e,t=void 0){this.hooks=e,this.name=t}tap(e,t){for(const n of this.hooks)n.tap(e,t)}tapAsync(e,t){for(const n of this.hooks)n.tapAsync(e,t)}tapPromise(e,t){for(const n of this.hooks)n.tapPromise(e,t)}isUsed(){for(const e of this.hooks)if(e.isUsed())return!0;return!1}intercept(e){for(const t of this.hooks)t.intercept(e)}withOptions(e){return new r(this.hooks.map((t=>t.withOptions(e))),this.name)}}e.exports=r},2440:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r,rethrowIfPossible:i}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)};\n} else {\n${r()}}\n`,resultReturns:n,onDone:r,rethrowIfPossible:i})}},s=()=>{throw new Error("tapAsync is not supported on a SyncBailHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncBailHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},8752:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}},s=()=>{throw new Error("tapAsync is not supported on a SyncHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},4502:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsLooping({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}},s=()=>{throw new Error("tapAsync is not supported on a SyncLoopHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncLoopHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},470:(e,t,n)=>{"use strict";const r=n(2995),i=n(4978),o=new class extends i{content({onError:e,onResult:t,resultReturns:n,rethrowIfPossible:r}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,t,n)=>{let r="";return r+=`if(${t} !== undefined) {\n`,r+=`${this._args[0]} = ${t};\n`,r+="}\n",r+=n(),r},onDone:()=>t(this._args[0]),doneReturns:n,rethrowIfPossible:r})}},s=()=>{throw new Error("tapAsync is not supported on a SyncWaterfallHook")},a=()=>{throw new Error("tapPromise is not supported on a SyncWaterfallHook")},u=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);return n.constructor=l,n.tapAsync=s,n.tapPromise=a,n.compile=u,n}l.prototype=null,e.exports=l},7554:(e,t,n)=>{"use strict";t.__esModule=!0,t.SyncHook=n(8752),t.SyncBailHook=n(2440),t.SyncWaterfallHook=n(470),t.SyncLoopHook=n(4502),t.AsyncParallelHook=n(7806),t.AsyncParallelBailHook=n(6066),t.AsyncSeriesHook=n(1468),t.AsyncSeriesBailHook=n(2412),t.AsyncSeriesLoopHook=n(6170),t.AsyncSeriesWaterfallHook=n(2522),t.HookMap=n(4517),t.MultiHook=n(9552)},7810:(e,t,n)=>{var r=n(9023),i=n(5303),o=n(7410),s=n(8605),a=n(1738).Writable,u=n(1738).PassThrough,l=function(){},c=function(e){return(e&=511)&&512-e},f=function(e,t){this._parent=e,this.offset=t,u.call(this)};r.inherits(f,u),f.prototype.destroy=function(e){this._parent.destroy(e)};var h=function(e){if(!(this instanceof h))return new h(e);a.call(this,e),e=e||{},this._offset=0,this._buffer=i(),this._missing=0,this._partial=!1,this._onparse=l,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,n=t._buffer,r=function(){t._continue()},u=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||r()},d=function(){t._stream=null;var e=c(t._header.size);e?t._parse(e,p):t._parse(512,b),t._locked||r()},p=function(){t._buffer.consume(c(t._header.size)),t._parse(512,b),r()},m=function(){var e=t._header.size;t._paxGlobal=s.decodePax(n.slice(0,e)),n.consume(e),d()},g=function(){var e=t._header.size;t._pax=s.decodePax(n.slice(0,e)),t._paxGlobal&&(t._pax=o(t._paxGlobal,t._pax)),n.consume(e),d()},y=function(){var r=t._header.size;this._gnuLongPath=s.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),d()},D=function(){var r=t._header.size;this._gnuLongLinkPath=s.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),d()},b=function(){var i,o=t._offset;try{i=t._header=s.decode(n.slice(0,512),e.filenameEncoding)}catch(e){t.emit("error",e)}return n.consume(512),i?"gnu-long-path"===i.type?(t._parse(i.size,y),void r()):"gnu-long-link-path"===i.type?(t._parse(i.size,D),void r()):"pax-global-header"===i.type?(t._parse(i.size,m),void r()):"pax-header"===i.type?(t._parse(i.size,g),void r()):(t._gnuLongPath&&(i.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(i.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=i=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e}(i,t._pax),t._pax=null),t._locked=!0,i.size&&"directory"!==i.type?(t._stream=new f(t,o),t.emit("entry",i,t._stream,u),t._parse(i.size,d),void r()):(t._parse(512,b),void t.emit("entry",i,function(e,t){var n=new f(e,t);return n.end(),n}(t,o),u))):(t._parse(512,b),void r())};this._onheader=b,this._parse(512,b)};r.inherits(h,a),h.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))},h.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},h.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=l,this._overflow?this._write(this._overflow,void 0,e):e()}},h.prototype._write=function(e,t,n){if(!this._destroyed){var r=this._stream,i=this._buffer,o=this._missing;if(e.length&&(this._partial=!0),e.length<o)return this._missing-=e.length,this._overflow=null,r?r.write(e,n):(i.append(e),n());this._cb=n,this._missing=0;var s=null;e.length>o&&(s=e.slice(o),e=e.slice(0,o)),r?r.end(e):i.append(e),this._overflow=s,this._onparse()}},h.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()},e.exports=h},8605:(e,t,n)=>{var r=n(93),i=n(9907),o="0".charCodeAt(0),s=parseInt("7777",8),a=function(e,t,n,r){for(;n<r;n++)if(e[n]===t)return n;return r},u=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var r=156;r<512;r++)t+=e[r];return t},l=function(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "},c=function(e,t,n){if(128&(e=e.slice(t,t+n))[t=0])return function(e){var t;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}for(var n=!1,r=[],i=e.length-1;i>0;i--){var o=e[i];t?r.push(o):n&&0===o?r.push(0):n?(n=!1,r.push(256-o)):r.push(255-o)}var s=0,a=r.length;for(i=0;i<a;i++)s+=r[i]*Math.pow(256,i);return t?s:-1*s}(e);for(;t<e.length&&32===e[t];)t++;for(var r=(i=a(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);t<r&&0===e[t];)t++;return r===t?0:parseInt(e.slice(t,r).toString(),8);var i,o,s},f=function(e,t,n,r){return e.slice(t,a(e,0,t,t+n)).toString(r)},h=function(e){var t=Buffer.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e};t.decodeLongPath=function(e,t){return f(e,0,e.length,t)},t.encodePax=function(e){var t="";e.name&&(t+=h(" path="+e.name+"\n")),e.linkname&&(t+=h(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var i in n)t+=h(" "+i+"="+n[i]+"\n");return r(t)},t.decodePax=function(e){for(var t={};e.length;){for(var n=0;n<e.length&&32!==e[n];)n++;var r=parseInt(e.slice(0,n).toString(),10);if(!r)return t;var i=e.slice(n+1,r-1).toString(),o=i.indexOf("=");if(-1===o)return t;t[i.slice(0,o)]=i.slice(o+1),e=e.slice(r)}return t},t.encode=function(e){var t=i(512),n=e.name,r="";if(5===e.typeflag&&"/"!==n[n.length-1]&&(n+="/"),Buffer.byteLength(n)!==n.length)return null;for(;Buffer.byteLength(n)>100;){var a=n.indexOf("/");if(-1===a)return null;r+=r?"/"+n.slice(0,a):n.slice(0,a),n=n.slice(a+1)}return Buffer.byteLength(n)>100||Buffer.byteLength(r)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(n),t.write(l(e.mode&s,6),100),t.write(l(e.uid,6),108),t.write(l(e.gid,6),116),t.write(l(e.size,11),124),t.write(l(e.mtime.getTime()/1e3|0,11),136),t[156]=o+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&&t.write(e.linkname,157),t.write("ustar\x0000",257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(l(e.devmajor||0,6),329),t.write(l(e.devminor||0,6),337),r&&t.write(r,345),t.write(l(u(t),6),148),t)},t.decode=function(e,t){var n=0===e[156]?0:e[156]-o,r=f(e,0,100,t),i=c(e,100,8),s=c(e,108,8),a=c(e,116,8),l=c(e,124,12),h=c(e,136,12),d=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}(n),p=0===e[157]?null:f(e,157,100,t),m=f(e,265,32),g=f(e,297,32),y=c(e,329,8),D=c(e,337,8);e[345]&&(r=f(e,345,155,t)+"/"+r),0===n&&r&&"/"===r[r.length-1]&&(n=5);var b=u(e);if(256===b)return null;if(b!==c(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:r,mode:i,uid:s,gid:a,size:l,mtime:new Date(1e3*h),type:d,linkname:p,uname:m,gname:g,devmajor:y,devminor:D}}},1339:(e,t,n)=>{t.extract=n(7810),t.pack=n(642)},5303:(e,t,n)=>{var r=n(5828),i=n(9023),o=n(1817).Buffer;function s(e){if(!(this instanceof s))return new s(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else this.append(e);r.call(this)}i.inherits(s,r),s.prototype._offset=function(e){var t,n=0,r=0;if(0===e)return[0,0];for(;r<this._bufs.length;r++){if(e<(t=n+this._bufs[r].length)||r==this._bufs.length-1)return[r,e-n];n=t}},s.prototype.append=function(e){var t=0;if(o.isBuffer(e))this._appendBuffer(e);else if(Array.isArray(e))for(;t<e.length;t++)this.append(e[t]);else if(e instanceof s)for(;t<e._bufs.length;t++)this.append(e._bufs[t]);else null!=e&&("number"==typeof e&&(e=e.toString()),this._appendBuffer(o.from(e)));return this},s.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},s.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},s.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},s.prototype.end=function(e){r.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},s.prototype.get=function(e){return this.slice(e,e+1)[0]},s.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},s.prototype.copy=function(e,t,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||o.alloc(0);if(r<=0)return e||o.alloc(0);var i,s,a=!!e,u=this._offset(n),l=r-n,c=l,f=a&&t||0,h=u[1];if(0===n&&r==this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(s=0;s<this._bufs.length;s++)this._bufs[s].copy(e,f),f+=this._bufs[s].length;return e}if(c<=this._bufs[u[0]].length-h)return a?this._bufs[u[0]].copy(e,t,h,h+c):this._bufs[u[0]].slice(h,h+c);for(a||(e=o.allocUnsafe(l)),s=u[0];s<this._bufs.length;s++){if(!(c>(i=this._bufs[s].length-h))){this._bufs[s].copy(e,f,h,h+c),f+=i;break}this._bufs[s].copy(e,f,h),f+=i,c-=i,h&&(h=0)}return e.length>f?e.slice(0,f):e},s.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0==r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!=n[1]&&(i[0]=i[0].slice(n[1])),new s(i)},s.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},s.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){for(var e=0,t=new s;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},s.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)!function(t){s.prototype[t]=function(n){return this.slice(n,n+e[t])[t](0)}}(t)}(),e.exports=s},642:(e,t,n)=>{var r=n(9457),i=n(3908),o=n(9023),s=n(9907),a=n(93),u=n(1738).Readable,l=n(1738).Writable,c=n(3193).StringDecoder,f=n(8605),h=parseInt("755",8),d=parseInt("644",8),p=s(1024),m=function(){},g=function(e,t){(t&=511)&&e.push(p.slice(0,512-t))},y=function(e){l.call(this),this.written=0,this._to=e,this._destroyed=!1};o.inherits(y,l),y.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var D=function(){l.call(this),this.linkname="",this._decoder=new c("utf-8"),this._destroyed=!1};o.inherits(D,l),D.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},D.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var b=function(){l.call(this),this._destroyed=!1};o.inherits(b,l),b.prototype._write=function(e,t,n){n(new Error("No body allowed for this entry"))},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var v=function(e){if(!(this instanceof v))return new v(e);u.call(this,e),this._drain=m,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};o.inherits(v,u),v.prototype.entry=function(e,t,n){if(this._stream)throw new Error("already piping an entry");if(!this._finalized&&!this._destroyed){"function"==typeof t&&(n=t,t=null),n||(n=m);var o=this;if(e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=function(e){switch(e&r.S_IFMT){case r.S_IFBLK:return"block-device";case r.S_IFCHR:return"character-device";case r.S_IFDIR:return"directory";case r.S_IFIFO:return"fifo";case r.S_IFLNK:return"symlink"}return"file"}(e.mode)),e.mode||(e.mode="directory"===e.type?h:d),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=a(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),g(o,e.size),process.nextTick(n),new b;if("symlink"===e.type&&!e.linkname){var s=new D;return i(s,(function(t){if(t)return o.destroy(),n(t);e.linkname=s.linkname,o._encode(e),n()})),s}if(this._encode(e),"file"!==e.type&&"contiguous-file"!==e.type)return process.nextTick(n),new b;var u=new y(this);return this._stream=u,i(u,(function(t){return o._stream=null,t?(o.destroy(),n(t)):u.written!==e.size?(o.destroy(),n(new Error("size mismatch"))):(g(o,e.size),o._finalizing&&o.finalize(),void n())})),u}},v.prototype.finalize=function(){this._stream?this._finalizing=!0:this._finalized||(this._finalized=!0,this.push(p),this.push(null))},v.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())},v.prototype._encode=function(e){if(!e.pax){var t=f.encode(e);if(t)return void this.push(t)}this._encodePax(e)},v.prototype._encodePax=function(e){var t=f.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(f.encode(n)),this.push(t),g(this,t.length),n.size=e.size,n.type=e.type,this.push(f.encode(n))},v.prototype._read=function(e){var t=this._drain;this._drain=m,t()},e.exports=v},3034:(e,t,n)=>{var r=n(2203);function i(e,t,n){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var i=!1,o=!1,s=[],a=!1,u=new r;function l(){for(;s.length&&!u.paused;){var e=s.shift();if(null===e)return u.emit("end");u.emit("data",e)}}return u.readable=u.writable=!0,u.paused=!1,u.autoDestroy=!(n&&!1===n.autoDestroy),u.write=function(t){return e.call(this,t),!u.paused},u.queue=u.push=function(e){return a||(null===e&&(a=!0),s.push(e),l()),u},u.on("end",(function(){u.readable=!1,!u.writable&&u.autoDestroy&&process.nextTick((function(){u.destroy()}))})),u.end=function(e){if(!i)return i=!0,arguments.length&&u.write(e),u.writable=!1,t.call(u),!u.readable&&u.autoDestroy&&u.destroy(),u},u.destroy=function(){if(!o)return o=!0,i=!0,s.length=0,u.writable=u.readable=!1,u.emit("close"),u},u.pause=function(){if(!u.paused)return u.paused=!0,u},u.resume=function(){return u.paused&&(u.paused=!1,u.emit("resume")),l(),u.paused||u.emit("drain"),u},u}e.exports=i,i.through=i},93:e=>{e.exports=function(e,n){if(Buffer.isBuffer(e))return e;if("string"==typeof e)return t(e,n);if(Array.isArray(e))return t(e);throw new Error("Input should be a buffer or a string")};var t=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:function(e,t){return new Buffer(e,t)}},8584:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(){await(0,c.validateSquidProject)();const e=h.default.resolve(process.cwd(),"dist");d.existsSync(e)&&d.rmSync(e,{recursive:!0,force:!0});const t=h.default.resolve(process.cwd(),m);let n;if(d.existsSync(t)){const e=(0,p.requirePath)(t);n=e(void 0,{mode:"production"}),n.mode="production"}else n=(0,l.default)({mode:"production"});try{console.log((0,f.primary)("Building...")),await new Promise(((e,t)=>{(0,a.default)(n,((n,r)=>n?(console.error("Build failed a fatal error."),t(n)):(r&&console.log(r.toString({all:!1,colors:y,errors:!0,warnings:!0,assets:!0,builtAt:!0,chunks:!0,modules:!0})),r?.hasErrors()?t(new Error("Build failed with errors.")):(console.log("Build succeeded."),void e()))))}))}catch(e){(0,u.exitWithError)(e.message)}};const a=s(n(6807)),u=n(8251),l=s(n(546)),c=n(2246),f=n(443),h=s(n(6928)),d=o(n(9896)),p=n(412),m="./webpack.config.js";function g(e){const t=process.env[e];return!t||"false"===t.toLowerCase()||"0"===t}const y=!g("FORCE_COLOR")||g("NO_COLOR")},8705:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,n,r,i,o,s,D,b,v){o||s||D||(console.log("Building code bundle..."),await(0,c.runInShell)("npm run build"));const w=new FormData,E=(0,d.appIdWithEnvironmentId)(t,v);w.append("appId",E);const _=await f.readFile(n),F=new Blob([_],{type:"application/octet-stream"});w.append("file",F);const x=(0,p.getConsoleAppRegionByStage)(e),C=o?(0,h.getApplicationUrl)(x,E,"application/updateApplicationCode"):(0,h.getApplicationUrl)(x,u.environment.consoleAppId,"webhooks/updateApplicationCode");console.log(`Deploying code bundle for appId '${t}' to the '${v}' environment...`),i&&console.log("Deploying bundle to:",C);try{const e=new Headers;r&&e.append("Authorization",`ApiKey ${r}`),b&&e.append("x-squid-secret",b);const t=await async function(e){let t="tsoa.json";if(!a.existsSync("tsoa.json")){const e=await(0,g.findModulePath)("@squidcloud/local-backend");e&&(t=y.default.relative(process.cwd(),y.default.resolve(e,"../../tsoa.json")))}try{const n=`npx tsoa spec -c ${t}`,r=`npx tsoa routes -c ${t}`;e&&(console.log(`Running: ${n}`),console.log(`Running: ${r}`)),await Promise.all([(0,c.runInShell)(n,!1),(0,c.runInShell)(r,!1)])}catch(t){const n="Unable to generate OpenAPI spec and controllers",r=t;if(r.combinedOutput?.some((e=>e.message.includes("no controllers found, check tsoa configuration"))))return void(e&&console.log("The application has no OpenAPI controllers, skipping OpenAPI update"));throw e&&(console.error(n,r.errorMessage||t),r.combinedOutput&&(0,c.printCombinedOutput)(r.combinedOutput)),new Error(n)}try{return{openApiSpecStr:await f.readFile("dist/swagger.json",{encoding:"utf8"}),openApiControllersStr:await f.readFile("dist/routes.ts",{encoding:"utf8"})}}catch(e){const t="Unable to deploy OpenAPI spec and controllers";throw console.error(t,e),new Error(t)}}(i);t&&(w.append("openApiSpecStr",t.openApiSpecStr),w.append("openApiControllersStr",t.openApiControllersStr));const n={method:"POST",body:w,headers:e},o=await fetch(C,n);o.ok||(0,l.exitWithError)("Unable to deploy bundle:",await o.text()),console.log("Code deployed")}catch(e){i&&console.error("VERBOSE: error deploying bundle:",e);const t=(0,m.getMessageFromError)(e,"");(0,l.exitWithError)("Unable to deploy bundle:",t||e)}};const a=o(n(9896)),u=n(722),l=n(8251),c=n(5699),f=o(n(1943)),h=n(866),d=n(3443),p=n(7580),m=n(7022),g=n(412),y=s(n(6928))},722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.environment=void 0,t.environment={consoleAppId:"console",region:"local"}},6568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),parseInt(process.version.split(".")[0].slice(1))<18&&(console.error(`Error: Squid requires Node.js version 18 or higher. You are using version ${process.version}.`),process.exit(1)),n(4291)},1838:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e="./",t,n,r,i,o){const s=`SQUID_APP_ID=${t}\nSQUID_REGION=${o}\nSQUID_API_KEY=${n}\nSQUID_ENVIRONMENT_ID=${r}\nSQUID_DEVELOPER_ID=${i}\n`;await a.writeFile(u.default.resolve(e,".env"),s),console.log("Created .env file")};const a=o(n(1943)),u=s(n(6928))},546:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({mode:e}){const t="production"===e;return{entry:"./src/index.ts",target:"node",mode:e||"none",devtool:t?"source-map":void 0,externalsPresets:{node:!0},output:{path:u.default.resolve(process.cwd(),"dist"),filename:"index.js",library:{type:"commonjs"}},optimization:{minimize:t,minimizer:[new i.default({terserOptions:{keep_classnames:!0,keep_fnames:!0,sourceMap:t}})]},plugins:[new o.default({patterns:[{from:"src/public",to:"public",noErrorOnMissing:!0}]}),new s({path:u.default.resolve(process.cwd(),"dist"),filename:"bundle.zip",include:[/([0-9]*\.)?index.js(.map)?/,/^public\/.*$/]})],module:{rules:[{test:/\.(ts|tsx)$/i,loader:"ts-loader",exclude:/node_modules/},{test:/\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i,type:"asset"}]},resolve:{plugins:[new a.TsconfigPathsPlugin({})],extensions:[".tsx",".ts",".jsx",".js"]}}};const i=r(n(3979)),o=r(n(1909)),s=n(7271),a=n(1144),u=r(n(6928))},4291:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(1771)),u=s(n(8705)),l=s(n(6928)),c=n(8251),f=o(n(8330)),h=s(n(496)),d=o(n(9650)),p=s(n(1838)),m=o(n(9896)),g=s(n(4328)),y=s(n(8584)),D=n(8058),b=n(2246),v=s(n(9478));function w(e){d.config({path:l.default.resolve(e||"./",".env")})}function E(e,t){e.option("appId",{type:"string",demandOption:t,describe:"The application ID (Can be retrieved from the Squid Console)"})}function _(e,t){e.option("apiKey",{type:"string",demandOption:t,describe:"The application API key (Can be retrieved from the Squid Console)"})}function F(e,t){e.option("environmentId",{alias:"e",type:"string",demandOption:t,describe:"The environment to use Squid with (Can be retrieved from the Squid Console)"})}function x(e,t){e.option("squidDeveloperId",{type:"string",demandOption:t,describe:"The developer ID to use Squid with (Can be retrieved in the profile dropdown in the Squid Console)"})}function C(e,t){e.option("region",{type:"string",demandOption:t,describe:"The squid region use Squid with (Can be retrieved from the Squid Console)"})}function A(e,t){if(process.env[e])return process.env[e];let n=`Missing environment variable: ${e}.`;t&&(n+=` You can also specify it using ${t}`),n+="\nTo learn more about deployment environment variables, visit https://docs.getsquid.ai/docs/development-tools/environments/#environment-variables",(0,c.exitWithError)(n)}function O(e){return e||A("SQUID_APP_ID","--appId")}function k(e){return e||A("SQUID_API_KEY","--apiKey")}function S(e){return e||A("SQUID_ENVIRONMENT_ID","--environmentId")}function j(e){e.option("stage",{type:"string",hidden:!0,default:"prod",choices:D.STAGES})}function B(e){const t=e?.replace("dist/bundle.zip","")||"";return m.existsSync(l.default.join(t,".env"))?t:m.existsSync(l.default.join(__dirname,".env"))?__dirname:process.cwd()}(0,a.default)(process.argv.slice(2)).strict(!0).demandCommand(1).scriptName("squid").version(f.version).option("verbose",{alias:"v",type:"boolean",description:"Run in verbose mode"}),a.default.command("start","Starts the local development server",(()=>{}),(async()=>{await(0,h.default)()})),a.default.command(["deploy [path]","upload [path]"],"Builds and deploys your backend code to the Squid server",(e=>{e.positional("path",{type:"string",description:"The path to the bundle file (e.g. dist/bundle.zip)"}),e.count("direct").alias("d","direct"),j(e),E(e,!1),_(e,!1),F(e,!1),function(e){e.option("internalApiKey",{type:"string",demandOption:!1})}(e),e.option("skipBuild",{type:"boolean",description:"Skip the build step",default:!1})}),(async e=>{await(0,b.validateSquidProject)();const t=!!e.path,n=e.path||"dist/bundle.zip";w(B(n));const r=O(e.appId),i=e.direct?void 0:k(e.apiKey),o=S(e.environmentId),s=e.direct?function(e){if(e)return e;const t=process.env.SQUID_INTERNAL_API_KEY;if(t)return t;(0,c.exitWithError)("Squid internal API key was not provided when using -d")}(e.internalApiKey):void 0;e.direct||i||(0,c.exitWithError)("Must provide an API key");const a=e.stage;(0,u.default)(a,r,n,i,!!e.verbose,e.direct,t,!!e.skipBuild,s,o).then()})),a.default.command(["undeploy"],"Undeploys your backend code from Squid Cloud",(e=>{j(e),E(e,!1),_(e,!1),F(e,!1)}),(async e=>{await(0,b.validateSquidProject)(),w(B());const t=O(e.appId),n=k(e.apiKey),r=S(e.environmentId);n||(0,c.exitWithError)("Must provide an API key");const i=e.stage;(0,v.default)(i,t,n,r).then()})),function(e){e.command("init-env [path]","Creates a .env file in your Squid project directory",(e=>{e.positional("path",{type:"string"}),E(e,!0),_(e,!0),F(e,!0),x(e,!0),C(e,!0)}),(async e=>{await(0,b.validateSquidProject)(),await(0,p.default)(e.path,e.appId,e.apiKey,e.environmentId,e.squidDeveloperId,e.region)}))}(a.default),function(e){e.command("init [path]","Creates a new Squid backend project",(e=>{e.positional("path",{type:"string"}).demandOption("path"),E(e,!1),_(e,!1),F(e,!1),x(e,!1),C(e,!1)}),(async e=>{await(0,g.default)(e.path,e.appId,e.apiKey,e.environmentId,e.squidDeveloperId,e.region,"backend",!!e.verbose)}))}(a.default),function(e){e.command("init-sample [path]","Initializes a Squid sample project",(e=>{e.positional("path",{type:"string"}).demandOption("path"),E(e,!1),_(e,!1),F(e,!1),x(e,!1),C(e,!1),function(e){e.option("template",{alias:"t",type:"string",demandOption:!0,describe:"The template to use for the project. https://github.com/squid-cloud-samples for available templates.",default:"starter"})}(e)}),(async e=>{await(0,g.default)(e.path,e.appId,e.apiKey,e.environmentId,e.squidDeveloperId,e.region,e.template,!!e.verbose)}))}(a.default),function(e){e.command("build","Builds a Squid backend project",(()=>{}),(async()=>{await(0,b.validateSquidProject)(),await(0,y.default)()}))}(a.default),a.default.parse()},4328:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,n,r,h,d,p,m=!1){try{await i.default.stat(s.default.resolve(e)),(0,u.exitWithError)(`Project already exists: ${e}`)}catch{}const g=`https://github.com/${f}/${p}`;200!==(await fetch(g,{method:"HEAD"})).status&&(0,u.exitWithError)(`Sample repository not found: ${g}`),console.log(`Downloading ${g}...`);try{await(0,l.downloadRepo)(f,p,e),await i.default.rm(`${e}/.github`,{recursive:!0,force:!0})}catch{(0,u.exitWithError)(`Unable to download repository: ${g}`)}console.log("Installing dependencies...");let y=!1;try{await i.default.access(s.default.resolve(e,"package.json")),await(0,o.runInShell)("npm install",m,s.default.resolve(e))}catch{}try{await i.default.access(s.default.resolve(e,"backend")),await(0,o.runInShell)("npm install",m,s.default.resolve(e,"backend")),y=!0}catch{}try{await i.default.access(s.default.resolve(e,"frontend")),await(0,o.runInShell)("npm install",m,s.default.resolve(e,"frontend"))}catch{}const D=t&&d&&n&&r&&h,b=`SQUID_APP_ID=${t||""}\nSQUID_REGION=${d||""}\nSQUID_API_KEY=${n||""}\nSQUID_ENVIRONMENT_ID=${r||""}\nSQUID_DEVELOPER_ID=${h||""}\n`;if(await i.default.writeFile(s.default.resolve(e,y?"backend":"",".env"),b),D&&console.log((y?"Backend ":"")+".env file created successfully"),y){const t=JSON.parse((await i.default.readFile(s.default.resolve(e,"frontend","package.json"))).toString());t.scripts?.["setup-env"]&&(await(0,o.runInShell)("npm run setup-env",m,s.default.resolve(e,"frontend")),D&&console.log("Frontend .env.local file created successfully"))}D?(console.log(`\n${(0,c.primary)("Done. Now run:")}\n\n cd ${e}\n npm run start\n`),await(0,a.reportLocalBackendInitialized)(t,n,"prod")):(console.log((0,c.link)("https://console.getsquid.ai")),console.log(`\n${(0,c.primary)("Done. Next steps:")}\n\n Update your ${y?"frontend and backend ":""}${(0,c.primary)(".env")} file${y?"s":""}\n Values can be found in the Squid Console: ${(0,c.link)("https://console.getsquid.ai")}\n\n cd ${e}\n npm run start\n`))};const i=r(n(1943)),o=n(5699),s=r(n(6928)),a=n(3066),u=n(8251),l=n(954),c=n(443),f="squid-cloud-samples"},496:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(){const e=await(0,h.validateSquidProject)();console.log((0,d.primary)("Please note:"),'to debug your application, you need to run the "start" npm script in your IDE in debug mode'),console.log((0,d.primary)("Starting..."));const t=await(0,c.findModulePath)("@squidcloud/local-backend");if(t||(0,l.exitWithError)(h.INVALID_PROJECT_ERROR),e.scripts?.["start-squid"])await(0,a.runInShell)("npm run start-squid");else{const e=f.default.resolve(t,"../main.js");try{await u.access(e),await(0,a.runInShell)(`npx nodemon --watch ./src --ext ts,js,json --quiet --exec node -r ts-node/register -r tsconfig-paths/register "${e}"`)}catch(e){(0,l.exitWithError)(h.INVALID_PROJECT_ERROR)}}};const a=n(5699),u=o(n(1943)),l=n(8251),c=n(412),f=s(n(6928)),h=n(2246),d=n(443)},9478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=async function(e,t,n,l){const c=(0,s.appIdWithEnvironmentId)(t,l),f=(0,a.getConsoleAppRegionByStage)(e),h=(0,o.getApplicationUrl)(f,r.environment.consoleAppId,"webhooks/deleteApplicationCode");console.log(`Undeploying code bundle for appId '${t}' from the '${l}' environment...`);try{const e=new Headers;n&&e.append("Authorization",`ApiKey ${n}`);const t={method:"POST",body:JSON.stringify({appId:c}),headers:e},r=await fetch(h,t);r.ok||(0,i.exitWithError)("Unable to undeploy code:",await r.text()),console.log("Code undeployed")}catch(e){const t=(0,u.getMessageFromError)(e,"");(0,i.exitWithError)("Unable to deploy bundle:",t||e)}};const r=n(722),i=n(8251),o=n(866),s=n(3443),a=n(7580),u=n(7022)},954:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadRepo=async function(e,t,n){let r;try{const s=`https://github.com/${e}/${t}/archive/main.zip`,a=await fetch(s);if(!a.ok||!a.body)throw new Error(`Failed to download repository: ${a.statusText}`);r=i.default.mkdtempSync("temp");const u=a.body.getReader();let l=await u.read();const c=[];for(;!l.done;){const{value:e}=l;c.push(e),l=await u.read()}await async function(e,t){i.default.mkdirSync(t,{recursive:!0}),await(0,o.default)(e,t)}(Buffer.concat(c),r);const f=`${r}/${t}-main`,h=`${n}`;i.default.existsSync(f)&&i.default.renameSync(f,h)}catch(e){throw i.default.rmSync(n,{recursive:!0,force:!0}),e}finally{r&&i.default.rmSync(r,{recursive:!0,force:!0})}};const i=r(n(9896)),o=r(n(482))},443:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.link=t.primary=void 0;const i=r(n(7459)),o=r(n(8894));t.primary=i.default.hex("#188FFF"),t.link=(e,t="")=>(0,o.default)(t||e,e,{fallback:!1})},8251:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.exitWithError=function(...e){console.error(...e),s.exit(1)};const s=o(n(932))},3066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportLocalBackendInitialized=async function(e,t,n){const u="local"===n?"local":n.endsWith(".sandbox")?"sandbox":"prod",l=(0,s.getConsoleAppRegionByStage)(u),c=`${(0,i.getApplicationUrl)(l,r.environment.consoleAppId,"webhooks/reportLocalBackendInitialized")}`;try{const n=new Headers;n.append("Authorization",`ApiKey ${t}`);const r=await fetch(c,{method:"POST",body:JSON.stringify({appId:e}),headers:n});if(!r.ok){const e=await r.text();console.warn(`Warning: Failed to report backend initialization to the Squid Console: ${e}`),o.DebugLogger.debug("Warning: unable to report backend initialization to squid",e)}}catch(e){const t=(0,a.getMessageFromError)(e);console.warn(`Warning: Failed to report backend initialization to the Squid Console: ${t}`),o.DebugLogger.debug("Warning: unable to report backend initialization to squid",e)}};const r=n(722),i=n(866),o=n(6334),s=n(7580),a=n(7022)},5699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runInShell=function(e,t=!0,n=process.cwd()){return new Promise(((a,u)=>{const l=(0,r.spawn)(e,{cwd:n,shell:!0,stdio:"pipe"}),c=[];l.stdout.on("data",(e=>{const n=e.toString();c.push({level:"info",message:n}),t&&o(n)})),l.stderr.on("data",(e=>{const n=e.toString();c.push({level:"error",message:n}),t&&s(n)})),l.on("error",(e=>{u(e)})),l.on("exit",(e=>{if(0===e)a({combinedOutput:c});else{const n=`The command exited with code ${e}`;t&&i(c),u({errorMessage:n,combinedOutput:c})}}))}))},t.printCombinedOutput=i;const r=n(5317);function i(e){for(const t of e)"error"===t.level?s(t.message):o(t.message)}function o(e){process.stdout.write(e)}function s(e){process.stderr.write(e)}},2246:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_PROJECT_ERROR=void 0,t.validateSquidProject=async function(){try{const e=await i.default.readFile("package.json","utf8"),n=JSON.parse(e),{scripts:r}=n;return r?.["start-squid"]||r?.start.startsWith("squid start")||(0,o.exitWithError)(t.INVALID_PROJECT_ERROR),n}catch(e){(0,o.exitWithError)(t.INVALID_PROJECT_ERROR)}};const i=r(n(1943)),o=n(8251);t.INVALID_PROJECT_ERROR="Please make sure you are running this command in your Squid project directory"},3443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAppId=i,t.appIdWithEnvironmentId=o,t.appIdWithEnvironmentIdAndDevId=function(e,t,n){return`${o(e,t)}${n?`-${n}`:""}`},t.validateEnvironment=function(e){const t=i(e);return(0,r.assertTruthy)("prod"!==t.environmentId||!t.squidDeveloperId,"Cannot use developer ID in production"),t},t.verifyWithSquidDevId=function(e){const t=i(e);(0,r.assertTruthy)(t.squidDeveloperId,"Must provide squid developer ID")},t.omitSquidDevId=function(e){const t=i(e);return o(t.appId,t.environmentId)};const r=n(5036);function i(e){(0,r.assertString)(e,"Invalid application ID");const[t,n,i,o]=e.split("-");return(0,r.assertTruthy)(!o,`Invalid application ID: ${e}`),{appId:t,environmentId:n??"prod",squidDeveloperId:i}}function o(e,t){return`${i(e).appId}${t&&"prod"!==t?`-${t}`:""}`}},7580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConsoleAppRegionByStage=function(e){switch(e){case"local":return"local";case"dev":return"us-east-1.aws-dev";case"prod":return"us-east-1.aws";case"sandbox":return"us-east-1.aws.sandbox"}}},8058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STAGES=void 0,t.STAGES=["local","dev","prod","sandbox"]},7022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromError=function(e,t){return e instanceof Error?e.message:t??`${e}`}},6334:(e,t)=>{"use strict";function n(){if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;throw new Error("Unable to locate global object")}function r(){const e=n();return!0===e?.SQUID_LOG_DEBUG_ENABLED}function i(e=!0){n().SQUID_LOG_DEBUG_ENABLED=e}function o(){const e=n();return!0===e?.SQUID_LOG_TIMESTAMPS_DISABLED}function s(){if(o()){const e=new Date;return`[${e.toLocaleTimeString()}.${e.getMilliseconds()}] squid`}return"squid"}Object.defineProperty(t,"__esModule",{value:!0}),t.DebugLogger=void 0,t.getGlobal=n,t.isDebugEnabled=r,t.enableDebugLogs=i,t.disableTimestampsInLog=function(){n().SQUID_LOG_TIMESTAMPS_DISABLED=!0},t.isTimestampEnabled=o,t.disableDebugLogs=function(){n().SQUID_LOG_DEBUG_ENABLED=!1},i(function(){let e="";return"undefined"!=typeof window&&window.location?e=new URLSearchParams(window.location.search).get("SQUID_DEBUG")||"":"undefined"!=typeof process&&process.env&&(e=process.env.SQUID_DEBUG||""),"1"===e||"true"===e}()),t.DebugLogger=class{static log(...e){console.log(`${s()} LOG`,...e)}static info(...e){console.info(`${s()} INFO`,...e)}static warn(...e){console.warn(`${s()} WARN`,...e)}static error(...e){console.error(`${s()} ERROR`,...e)}static debug(...e){r()&&console.debug(`${s()} DEBUG`,...e)}}},866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicationUrl=function(e,t,i){const o=new URL("https://squid.cloud");o.host=`${t}.${e}.${o.host}`;const s=i.replace(/^\//g,"").split("/")[0]||"";r(e)&&(o.protocol="http",o.port=n.includes(s)?"8001":"8000",function(e){return/android$/.test(e)}(e)?o.host="10.0.2.2":function(e){return/ios$/.test(e)}(e)&&(o.host="localhost"));const a=o.toString();i=i.startsWith("/")?i.slice(1):i;const u=a.replace(/\/$/g,"");return i.length?`${u}/${i}`:u},t.getApplicationHttpHeaders=function(e,t){const n={};return r(e)&&(n["x-squid-appid"]=t),n};const n=["aiData","api","application","application-kotlin","auth","backend-function","extraction","integration","internal-storage","internalCodeExecutor","mutation","named-query","native-query","observability","openapi","query","queue","quota","scheduler","secret","storage","webhooks","ws","personalStorage"];function r(e){return/^local/.test(e)}},412:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requirePath=void 0,t.findModulePath=async function(e,t=__dirname){let n=t;return await new Promise(((t,r)=>{const s=()=>{(0,o.default)(n,e,((o,a)=>{if(o){const t=i.default.resolve(n,"..");if(t===n)return r(new Error(`Module "${e}" not found`));n=t,s()}else t(a)}))};s()}))||null};const i=r(n(6928)),o=r(n(4506));t.requirePath=e=>require(e)},7982:(e,t,n)=>{var r=n(3034),i=n(5575),o=n(3042);e.exports=function(){var e=[],t=0,n=0,s=!1,a=null,u=null;function l(e){if(!s)try{return function(){if(n){var t=1e5*n,r=new Int32Array(t),o=[];return null===(u=i.decompress(a,(function(e){o.push(e)}),r,t,u))?(n=0,!1):(s=Buffer.from(o),e.queue(s),null!==s&&s.length,!0)}var s;return n=i.header(a),u=0,!0}()}catch(t){return e.emit("error",t),s=!0,!1}}return r((function(r){for(e.push(r),t+=r.length,null===a&&(a=o((function(){return e.shift()})));!s&&t-a.bytesRead+1>=(25e3+1e5*n||4);)l(this)}),(function(e){for(;!s&&a&&t>a.bytesRead;)l(this);s||(null!==u&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))}))}},3042:e=>{var t=[0,1,3,7,15,31,63,127,255];e.exports=function(e){var n=0,r=0,i=e(),o=function(s){if(null===s&&0!=n)return n=0,void r++;for(var a=0;s>0;){r>=i.length&&(r=0,i=e());var u=8-n;0===n&&s>0&&o.bytesRead++,s>=u?(a<<=u,a|=t[u]&i[r++],n=0,s-=u):(a<<=s,a|=(i[r]&t[s]<<8-s-n)>>8-s-n,n+=s,s=0)}return a};return o.bytesRead=0,o}},5575:e=>{function t(e){this.name="Bzip2Error",this.message=e,this.stack=(new Error).stack}t.prototype=new Error;var n=function(e){throw new t(e)},r={};r.Bzip2Error=t,r.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188],r.array=function(e){var t=0,n=0,r=[0,1,3,7,15,31,63,127,255];return function(i){for(var o=0;i>0;){var s=8-t;i>=s?(o<<=s,o|=r[s]&e[n++],t=0,i-=s):(o<<=i,o|=(e[n]&r[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return o}},r.simple=function(e,t){var n=r.array(e),i=!1,o=1e5*r.header(n),s=new Int32Array(o);do{i=r.decompress(n,t,s,o)}while(!i)},r.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),4348520!=e(24)&&n("No magic number found");var t=e(8)-48;return(t<1||t>9)&&n("Not a BZIP archive"),t},r.decompress=function(e,t,r,i,o){for(var s=-1,a="",u=0;u<6;u++)a+=e(8).toString(16);if("177245385090"==a)return(0|e(32))!==o&&n("Error in bzip2: crc32 do not match"),e(null),null;"314159265359"!=a&&n("eek not valid bzip data");var l=0|e(32);e(1)&&n("unsupported obsolete version");var c=e(24);c>i&&n("Initial position larger than buffer size");var f=e(16),h=0;for(u=0;u<16;u++)if(f&1<<15-u){var d=e(16);for(g=0;g<16;g++)d&1<<15-g&&(this.symToByte[h++]=16*u+g)}var p=e(3);(p<2||p>6)&&n("another error");var m=e(15);for(0==m&&n("meh"),u=0;u<p;u++)this.mtfSymbol[u]=u;for(u=0;u<m;u++){for(var g=0;e(1);g++)g>=p&&n("whoops another error");var y=this.mtfSymbol[g];for(d=g-1;d>=0;d--)this.mtfSymbol[d+1]=this.mtfSymbol[d];this.mtfSymbol[0]=y,this.selectors[u]=y}var D,b,v,w,E=h+2,_=[],F=new Uint8Array(258),x=new Uint16Array(21);for(g=0;g<p;g++){for(f=e(5),u=0;u<E;u++){for(;(f<1||f>20)&&n("I gave up a while ago on writing error messages"),e(1);)e(1)?f--:f++;F[u]=f}var C,A;for(C=A=F[0],u=1;u<E;u++)F[u]>A?A=F[u]:F[u]<C&&(C=F[u]);(D=_[g]={}).permute=new Int32Array(258),D.limit=new Int32Array(21),D.base=new Int32Array(21),D.minLen=C,D.maxLen=A;var O=D.base,k=D.limit,S=0;for(u=C;u<=A;u++)for(f=0;f<E;f++)F[f]==u&&(D.permute[S++]=f);for(u=C;u<=A;u++)x[u]=k[u]=0;for(u=0;u<E;u++)x[F[u]]++;for(S=f=0,u=C;u<A;u++)S+=x[u],k[u]=S-1,S<<=1,O[u+1]=S-(f+=x[u]);k[A]=S+x[A]-1,O[C]=0}for(u=0;u<256;u++)this.mtfSymbol[u]=u,this.byteCount[u]=0;for(b=v=E=w=0;;){for(E--||(E=49,w>=m&&n("meow i'm a kitty, that's an error"),O=(D=_[this.selectors[w++]]).base,k=D.limit),g=e(u=D.minLen);u>D.maxLen&&n("rawr i'm a dinosaur"),!(g<=k[u]);)u++,g=g<<1|e(1);((g-=O[u])<0||g>=258)&&n("moo i'm a cow");var j=D.permute[g];if(0!=j&&1!=j){if(b)for(b=0,v+f>i&&n("Boom."),y=this.symToByte[this.mtfSymbol[0]],this.byteCount[y]+=f;f--;)r[v++]=y;if(j>h)break;for(v>=i&&n("I can't think of anything. Error"),u=j-1,y=this.mtfSymbol[u],d=u-1;d>=0;d--)this.mtfSymbol[d+1]=this.mtfSymbol[d];this.mtfSymbol[0]=y,y=this.symToByte[y],this.byteCount[y]++,r[v++]=y}else b||(b=1,f=0),f+=0==j?b:2*b,b<<=1}for((c<0||c>=v)&&n("I'm a monkey and I'm throwing something at someone, namely you"),g=0,u=0;u<256;u++)d=g+this.byteCount[u],this.byteCount[u]=g,g=d;for(u=0;u<v;u++)y=255&r[u],r[this.byteCount[y]]|=u<<8,this.byteCount[y]++;var B,P,R,I=0,M=0,$=0;for(v&&(M=255&(I=r[c]),I>>=8,$=-1);v;){for(v--,P=M,M=255&(I=r[I]),I>>=8,3==$++?(B=M,R=P,M=-1):(B=1,R=M);B--;)s=4294967295&(s<<8^this.crcTable[255&(s>>24^R)]),t(R);M!=P&&($=0)}return(0|(s=~s>>>0))!=(0|l)&&n("Error in bzip2: crc32 do not match"),4294967295&(s^(o<<1|o>>>31))},e.exports=r},4323:(e,t,n)=>{e.exports=n(9023).deprecate},9359:(e,t,n)=>{"use strict";const r=n(4813),i=n(8395),o=n(7007),s=new Set(["","›"]),a="]8;;",u=e=>`${s.values().next().value}[${e}m`,l=e=>`${s.values().next().value}${a}${e}`,c=(e,t,n)=>{const o=[...t];let u=!1,l=!1,c=r(i(e[e.length-1]));for(const[t,i]of o.entries()){const f=r(i);c+f<=n?e[e.length-1]+=i:(e.push(i),c=0),s.has(i)&&(u=!0,l=o.slice(t+1).join("").startsWith(a)),u?l?""===i&&(u=!1,l=!1):"m"===i&&(u=!1):(c+=f,c===n&&t<o.length-1&&(e.push(""),c=0))}!c&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},f=e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(r(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")};e.exports=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,h,d="";const p=(e=>e.split(" ").map((e=>r(e))))(e);let m=[""];for(const[i,o]of e.split(" ").entries()){!1!==n.trim&&(m[m.length-1]=m[m.length-1].trimStart());let e=r(m[m.length-1]);if(0!==i&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(m.push(""),e=0),(e>0||!1===n.trim)&&(m[m.length-1]+=" ",e++)),n.hard&&p[i]>t){const n=t-e,r=1+Math.floor((p[i]-n-1)/t);Math.floor((p[i]-1)/t)<r&&m.push(""),c(m,o,t)}else{if(e+p[i]>t&&e>0&&p[i]>0){if(!1===n.wordWrap&&e<t){c(m,o,t);continue}m.push("")}e+p[i]>t&&!1===n.wordWrap?c(m,o,t):m[m.length-1]+=o}}!1!==n.trim&&(m=m.map(f));const g=[...m.join("\n")];for(const[e,t]of g.entries()){if(d+=t,s.has(t)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${a}(?<uri>.*))`).exec(g.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);i=39===e?void 0:e}else void 0!==t.uri&&(h=0===t.uri.length?void 0:t.uri)}const n=o.codes.get(Number(i));"\n"===g[e+1]?(h&&(d+=l("")),i&&n&&(d+=u(n))):"\n"===t&&(i&&n&&(d+=u(i)),h&&(d+=l(h)))}return d})(e,t,n))).join("\n")},1591:e=>{e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r}}},7410:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},8953:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8953,e.exports=t},7315:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7315,e.exports=t},5600:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=5600,e.exports=t},3660:(e,t,n)=>{var r=n(9896),i=n(3106),o=n(4602),s=n(9149),a=n(9023),u=n(4434).EventEmitter,l=n(2203).Transform,c=n(2203).PassThrough,f=n(2203).Writable;function h(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!1),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=O),r.fstat(e,(function(r,i){if(r)return n(r);d(o.createFromFd(e,{autoClose:!0}),i.size,t,n)}))}function d(e,t,n,r){"function"==typeof n&&(r=n,n=null),null==n&&(n={}),null==n.autoClose&&(n.autoClose=!0),null==n.lazyEntries&&(n.lazyEntries=!1),null==n.decodeStrings&&(n.decodeStrings=!0);var i=!!n.decodeStrings;if(null==n.validateEntrySizes&&(n.validateEntrySizes=!0),null==n.strictFileNames&&(n.strictFileNames=!1),null==r&&(r=O),"number"!=typeof t)throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var o=Math.min(65557,t),s=F(o),a=t-s.length;v(e,s,0,o,a,(function(u){if(u)return r(u);for(var l=o-22;l>=0;l-=1)if(101010256===s.readUInt32LE(l)){var c=s.slice(l),f=c.readUInt16LE(4);if(0!==f)return r(new Error("multi-disk zip files are not supported: found disk number: "+f));var h=c.readUInt16LE(10),d=c.readUInt32LE(16),m=c.readUInt16LE(20),g=c.length-22;if(m!==g)return r(new Error("invalid comment length. expected: "+g+". found: "+m));var y=i?C(c,22,c.length,!1):c.slice(22);if(65535!==h&&4294967295!==d)return r(null,new p(e,d,t,h,y,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames));var D=F(20),b=a+l-D.length;return void v(e,D,0,D.length,b,(function(o){if(o)return r(o);if(117853008!==D.readUInt32LE(0))return r(new Error("invalid zip64 end of central directory locator signature"));var s=A(D,8),a=F(56);v(e,a,0,a.length,s,(function(o){return o?r(o):101075792!==a.readUInt32LE(0)?r(new Error("invalid zip64 end of central directory record signature")):(h=A(a,32),d=A(a,48),r(null,new p(e,d,t,h,y,n.autoClose,n.lazyEntries,i,n.validateEntrySizes,n.strictFileNames)))}))}))}r(new Error("end of central directory record signature not found"))}))}function p(e,t,n,r,i,o,s,a,l,c){var f=this;u.call(f),f.reader=e,f.reader.on("error",(function(e){g(f,e)})),f.reader.once("close",(function(){f.emit("close")})),f.readEntryCursor=t,f.fileSize=n,f.entryCount=r,f.comment=i,f.entriesRead=0,f.autoClose=!!o,f.lazyEntries=!!s,f.decodeStrings=!!a,f.validateEntrySizes=!!l,f.strictFileNames=!!c,f.isOpen=!0,f.emittedError=!1,f.lazyEntries||f._readEntry()}function m(e,t){e.autoClose&&e.close(),g(e,t)}function g(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}function y(){}function D(e,t){return new Date(1980+(e>>9&127),(e>>5&15)-1,31&e,t>>11&31,t>>5&63,2*(31&t),0)}function b(e){return-1!==e.indexOf("\\")?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:-1!==e.split("/").indexOf("..")?"invalid relative path: "+e:null}function v(e,t,n,r,i,o){if(0===r)return setImmediate((function(){o(null,F(0))}));e.read(t,n,r,i,(function(e,t){return e?o(e):t<r?o(new Error("unexpected EOF")):void o()}))}function w(e){l.call(this),this.actualByteCount=0,this.expectedByteCount=e}function E(){u.call(this),this.refCount=0}function _(e){c.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}t.open=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!0),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=O),r.open(e,"r",(function(e,i){if(e)return n(e);h(i,t,(function(e,t){e&&r.close(i,O),n(e,t)}))}))},t.fromFd=h,t.fromBuffer=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),t.autoClose=!1,null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),d(o.createFromBuffer(e,{maxChunkSize:65536}),e.length,t,n)},t.fromRandomAccessReader=d,t.dosDateTimeToDate=D,t.validateFileName=b,t.ZipFile=p,t.Entry=y,t.RandomAccessReader=E,a.inherits(p,u),p.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())},p.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()},p.prototype._readEntry=function(){var e=this;if(e.entryCount!==e.entriesRead){if(!e.emittedError){var t=F(46);v(e.reader,t,0,t.length,e.readEntryCursor,(function(n){if(n)return m(e,n);if(!e.emittedError){var r=new y,i=t.readUInt32LE(0);if(33639248!==i)return m(e,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(r.versionMadeBy=t.readUInt16LE(4),r.versionNeededToExtract=t.readUInt16LE(6),r.generalPurposeBitFlag=t.readUInt16LE(8),r.compressionMethod=t.readUInt16LE(10),r.lastModFileTime=t.readUInt16LE(12),r.lastModFileDate=t.readUInt16LE(14),r.crc32=t.readUInt32LE(16),r.compressedSize=t.readUInt32LE(20),r.uncompressedSize=t.readUInt32LE(24),r.fileNameLength=t.readUInt16LE(28),r.extraFieldLength=t.readUInt16LE(30),r.fileCommentLength=t.readUInt16LE(32),r.internalFileAttributes=t.readUInt16LE(36),r.externalFileAttributes=t.readUInt32LE(38),r.relativeOffsetOfLocalHeader=t.readUInt32LE(42),64&r.generalPurposeBitFlag)return m(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=F(r.fileNameLength+r.extraFieldLength+r.fileCommentLength),v(e.reader,t,0,t.length,e.readEntryCursor,(function(n){if(n)return m(e,n);if(!e.emittedError){var i=!!(2048&r.generalPurposeBitFlag);r.fileName=e.decodeStrings?C(t,0,r.fileNameLength,i):t.slice(0,r.fileNameLength);var o=r.fileNameLength+r.extraFieldLength,a=t.slice(r.fileNameLength,o);r.extraFields=[];for(var u=0;u<a.length-3;){var l=a.readUInt16LE(u+0),c=a.readUInt16LE(u+2),f=u+4,h=f+c;if(h>a.length)return m(e,new Error("extra field length exceeds extra field buffer size"));var d=F(c);a.copy(d,0,f,h),r.extraFields.push({id:l,data:d}),u=h}if(r.fileComment=e.decodeStrings?C(t,o,o+r.fileCommentLength,i):t.slice(o,o+r.fileCommentLength),r.comment=r.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,4294967295===r.uncompressedSize||4294967295===r.compressedSize||4294967295===r.relativeOffsetOfLocalHeader){var p=null;for(u=0;u<r.extraFields.length;u++)if(1===(y=r.extraFields[u]).id){p=y.data;break}if(null==p)return m(e,new Error("expected zip64 extended information extra field"));var g=0;if(4294967295===r.uncompressedSize){if(g+8>p.length)return m(e,new Error("zip64 extended information extra field does not include uncompressed size"));r.uncompressedSize=A(p,g),g+=8}if(4294967295===r.compressedSize){if(g+8>p.length)return m(e,new Error("zip64 extended information extra field does not include compressed size"));r.compressedSize=A(p,g),g+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(g+8>p.length)return m(e,new Error("zip64 extended information extra field does not include relative header offset"));r.relativeOffsetOfLocalHeader=A(p,g),g+=8}}if(e.decodeStrings)for(u=0;u<r.extraFields.length;u++){var y;if(28789===(y=r.extraFields[u]).id){if(y.data.length<6)continue;if(1!==y.data.readUInt8(0))continue;var D=y.data.readUInt32LE(1);if(s.unsigned(t.slice(0,r.fileNameLength))!==D)continue;r.fileName=C(y.data,5,y.data.length,!0);break}}if(e.validateEntrySizes&&0===r.compressionMethod){var v=r.uncompressedSize;if(r.isEncrypted()&&(v+=12),r.compressedSize!==v){var w="compressed/uncompressed size mismatch for stored file: "+r.compressedSize+" != "+r.uncompressedSize;return m(e,new Error(w))}}if(e.decodeStrings){e.strictFileNames||(r.fileName=r.fileName.replace(/\\/g,"/"));var E=b(r.fileName,e.validateFileNameOptions);if(null!=E)return m(e,new Error(E))}e.emit("entry",r),e.lazyEntries||e._readEntry()}}))}}))}}else setImmediate((function(){e.autoClose&&e.close(),e.emittedError||e.emit("end")}))},p.prototype.openReadStream=function(e,t,n){var r=this,o=0,s=e.compressedSize;if(null==n)n=t,t={};else{if(null!=t.decrypt){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(!1!==t.decrypt)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&!1!==t.decompress)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(null!=t.decompress){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!1!==t.decompress&&!0!==t.decompress)throw new Error("invalid options.decompress value: "+t.decompress)}if(null!=t.start||null!=t.end){if(e.isCompressed()&&!1!==t.decompress)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&!1!==t.decrypt)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(null!=t.start){if((o=t.start)<0)throw new Error("options.start < 0");if(o>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=t.end){if((s=t.end)<0)throw new Error("options.end < 0");if(s>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<o)throw new Error("options.end < options.start")}}if(!r.isOpen)return n(new Error("closed"));if(e.isEncrypted()&&!1!==t.decrypt)return n(new Error("entry is encrypted, and options.decrypt !== false"));r.reader.ref();var a=F(30);v(r.reader,a,0,a.length,e.relativeOffsetOfLocalHeader,(function(u){try{if(u)return n(u);var l=a.readUInt32LE(0);if(67324752!==l)return n(new Error("invalid local file header signature: 0x"+l.toString(16)));var c,f=a.readUInt16LE(26),h=a.readUInt16LE(28),d=e.relativeOffsetOfLocalHeader+a.length+f+h;if(0===e.compressionMethod)c=!1;else{if(8!==e.compressionMethod)return n(new Error("unsupported compression method: "+e.compressionMethod));c=null==t.decompress||t.decompress}var p=d,m=p+e.compressedSize;if(0!==e.compressedSize&&m>r.fileSize)return n(new Error("file data overflows file bounds: "+p+" + "+e.compressedSize+" > "+r.fileSize));var g=r.reader.createReadStream({start:p+o,end:p+s}),y=g;if(c){var D=!1,b=i.createInflateRaw();g.on("error",(function(e){setImmediate((function(){D||b.emit("error",e)}))})),g.pipe(b),r.validateEntrySizes?(y=new w(e.uncompressedSize),b.on("error",(function(e){setImmediate((function(){D||y.emit("error",e)}))})),b.pipe(y)):y=b,y.destroy=function(){D=!0,b!==y&&b.unpipe(y),g.unpipe(b),g.destroy()}}n(null,y)}finally{r.reader.unref()}}))},y.prototype.getLastModDate=function(){return D(this.lastModFileDate,this.lastModFileTime)},y.prototype.isEncrypted=function(){return!!(1&this.generalPurposeBitFlag)},y.prototype.isCompressed=function(){return 8===this.compressionMethod},a.inherits(w,l),w.prototype._transform=function(e,t,n){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,e)},w.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()},a.inherits(E,u),E.prototype.ref=function(){this.refCount+=1},E.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.close((function(t){if(t)return e.emit("error",t);e.emit("close")}))}},E.prototype.createReadStream=function(e){var t=e.start,n=e.end;if(t===n){var r=new c;return setImmediate((function(){r.end()})),r}var i=this._readStreamForRange(t,n),o=!1,s=new _(this);i.on("error",(function(e){setImmediate((function(){o||s.emit("error",e)}))})),s.destroy=function(){i.unpipe(s),s.unref(),i.destroy()};var a=new w(n-t);return s.on("error",(function(e){setImmediate((function(){o||a.emit("error",e)}))})),a.destroy=function(){o=!0,s.unpipe(a),s.destroy()},i.pipe(s).pipe(a)},E.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")},E.prototype.read=function(e,t,n,r,i){var o=this.createReadStream({start:r,end:r+n}),s=new f,a=0;s._write=function(n,r,i){n.copy(e,t+a,0,n.length),a+=n.length,i()},s.on("finish",i),o.on("error",(function(e){i(e)})),o.pipe(s)},E.prototype.close=function(e){setImmediate(e)},a.inherits(_,c),_.prototype._flush=function(e){this.unref(),e()},_.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var F,x="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function C(e,t,n,r){if(r)return e.toString("utf8",t,n);for(var i="",o=t;o<n;o++)i+=x[e[o]];return i}function A(e,t){var n=e.readUInt32LE(t);return 4294967296*e.readUInt32LE(t+4)+n}function O(e){if(e)throw e}F="function"==typeof Buffer.allocUnsafe?function(e){return Buffer.allocUnsafe(e)}:function(e){return new Buffer(e)}},1909:e=>{"use strict";e.exports=require("copy-webpack-plugin")},3979:e=>{"use strict";e.exports=require("terser-webpack-plugin")},1144:e=>{"use strict";e.exports=require("tsconfig-paths-webpack-plugin")},6807:e=>{"use strict";e.exports=require("webpack")},7271:e=>{"use strict";e.exports=require("zip-webpack-plugin")},2613:e=>{"use strict";e.exports=require("assert")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},1943:e=>{"use strict";e.exports=require("fs/promises")},3339:e=>{"use strict";e.exports=require("module")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},932:e=>{"use strict";e.exports=require("process")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},164:(e,t,n)=>{"use strict";const r={right:function(e,t){e=e.trim();const n=s.stringWidth(e);return n<t?" ".repeat(t-n)+e:e},center:function(e,t){e=e.trim();const n=s.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}};class i{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let n=0;return t.forEach((e=>{e.length>1&&s.stringWidth(e[0])>n&&(n=Math.min(Math.floor(.5*this.width),s.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:0===r&&e.length>1?n:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=s.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((n,i)=>{let a="";n.forEach(((n,u)=>{const{width:l}=e[u],c=this.negatePadding(e[u]);let f=n;c>s.stringWidth(n)&&(f+=" ".repeat(c-s.stringWidth(n))),e[u].align&&"left"!==e[u].align&&this.wrap&&(f=(0,r[e[u].align])(f,c),s.stringWidth(f)<c&&(f+=" ".repeat((l||0)-s.stringWidth(f)-1)));const h=e[u].padding||[0,0,0,0];h[3]&&(a+=" ".repeat(h[3])),a+=o(e[u],f,"| "),a+=f,a+=o(e[u],f," |"),h[1]&&(a+=" ".repeat(h[1])),0===i&&t.length>0&&(a=this.renderInline(a,t[t.length-1]))})),t.push({text:a.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const n=e.match(/^ */),r=n?n[0].length:0,i=t.text,o=s.stringWidth(i.trimRight());return t.span?this.wrap?r<o?e:(t.hidden=!0,i.trimRight()+" ".repeat(r-o)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){const t=[],n=this.columnWidths(e);let r;return e.forEach(((e,i)=>{e.width=n[i],r=this.wrap?s.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach(((e,n)=>{t[n]||t.push([]);const r=t[n];for(let e=0;e<i;e++)void 0===r[e]&&r.push("");r.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||s.stringWidth(e.text)));let t=e.length,n=this.width;const r=e.map((e=>{if(e.width)return t--,n-=e.width,e.width})),i=t?Math.floor(n/t):0;return r.map(((t,n)=>void 0===t?Math.max(i,function(e){const t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);return e.border?n+4:n}(e[n])):t))}}function o(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?n:" ":""}let s;const a=n(4813),u=n(8395),l=n(9359);e.exports=function(e){return function(e,t){return s=t,new i({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:a,stripAnsi:u,wrap:l})}},9668:(e,t,n)=>{"use strict";var r=n(9896),i=n(9023),o=n(6928);let s;class a{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let n=function(){};return"function"==typeof e[e.length-1]&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),s.format.apply(s.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift();let i=function(){};"function"==typeof e[e.length-1]&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=1===r?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][1===r?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();const a=[o];return~o.indexOf("%d")&&a.push(r),s.format.apply(s.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach((function(e,r){const i=t[r+1];n+=e,void 0!==i&&(n+="%s")})),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,i=t.cb,o=this._resolveLocaleFile(n,r),a=JSON.stringify(this.cache[r],null,2);s.fs.writeFile(o,a,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{s.fs.readFileSync&&(e=JSON.parse(s.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),"ENOENT"!==n.code)throw n;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=s.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){const r=s.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return s.exists(e)}}var u={fs:{readFileSync:r.readFileSync,writeFile:r.writeFile},format:i.format,resolve:o.resolve,exists:e=>{try{return r.statSync(e).isFile()}catch(e){return!1}}};e.exports=e=>function(e,t){s=t;const n=new a(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}(e,u)},7058:(e,t,n)=>{"use strict";var r,i=n(9023),o=n(6928);function s(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let i=r?r[0].length:0;i<e.length;i++){let r=e.charAt(i);n&&(n=!1,r=r.toUpperCase()),0===i||"-"!==r&&"_"!==r?"-"!==r&&"_"!==r&&(t+=r):n=!0}return t}}function a(e,t){const n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){const o=n.charAt(i),s=e.charAt(i);r+=o!==s&&i>0?`${t}${n.charAt(i)}`:s}return r}function u(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let l;function c(e){return void 0!==e?e+1:1}function f(e){return"__proto__"===e?"___proto___":e}var h,d,p;n(9896),function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(r||(r={}));const m=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,g=null!==(d=null===(h=null===process||void 0===process?void 0:process.versions)||void 0===h?void 0:h.node)&&void 0!==d?d:null===(p=null===process||void 0===process?void 0:process.version)||void 0===p?void 0:p.slice(1);if(g&&Number(g.match(/^([^.]+)/)[1])<m)throw Error(`yargs parser supports a minimum Node.js version of ${m}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const y=process?process.env:{},D=new class{constructor(e){l=e}parse(e,t){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),i=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,n=null,r=null,i=null;const o=[];for(let s=0;s<e.length;s++)n=r,r=e.charAt(s)," "!==r||i?(r===i?i=null:"'"!==r&&'"'!==r||i||(i=r),o[t]||(o[t]=""),o[t]+=r):" "!==n&&t++;return o}(e),o="string"==typeof e,h=function(e){const t=[],n=Object.create(null);let r=!0;for(Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter((function(e){return-1!==t[n].indexOf(e)})).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach((function(e){e=e.filter((function(e,t,n){return n.indexOf(e)===t}));const t=e.pop();void 0!==t&&"string"==typeof t&&(n[t]=e)})),n}(Object.assign(Object.create(null),n.alias)),d=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),p=Object.assign(Object.create(null),n.default),m=n.configObjects||[],g=n.envPrefix,y=d["populate--"],D=y?"--":"_",b=Object.create(null),v=Object.create(null),w=n.__||l.format,E={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,F=new RegExp("^--"+d["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,n=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();n&&(E[n][t]=!0),E.arrays[t]=!0,E.keys.push(t)})),[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){E.bools[e]=!0,E.keys.push(e)})),[].concat(n.string||[]).filter(Boolean).forEach((function(e){E.strings[e]=!0,E.keys.push(e)})),[].concat(n.number||[]).filter(Boolean).forEach((function(e){E.numbers[e]=!0,E.keys.push(e)})),[].concat(n.count||[]).filter(Boolean).forEach((function(e){E.counts[e]=!0,E.keys.push(e)})),[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){E.normalize[e]=!0,E.keys.push(e)})),"object"==typeof n.narg&&Object.entries(n.narg).forEach((([e,t])=>{"number"==typeof t&&(E.nargs[e]=t,E.keys.push(e))})),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach((([e,t])=>{"function"==typeof t&&(E.coercions[e]=t,E.keys.push(e))})),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach((function(e){E.configs[e]=!0})):"object"==typeof n.config&&Object.entries(n.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(E.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){E.aliases[e]||(E.aliases[e]=[].concat(h[e]||[]),E.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&d["camel-case-expansion"]){const n=s(t);n!==e&&-1===E.aliases[e].indexOf(n)&&(E.aliases[e].push(n),b[n]=!0)}})),E.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&d["camel-case-expansion"]){const n=a(t,"-");n!==e&&-1===E.aliases[e].indexOf(n)&&(E.aliases[e].push(n),b[n]=!0)}})),E.aliases[e].forEach((function(t){E.aliases[t]=[e].concat(E.aliases[e].filter((function(e){return t!==e})))})))}))}))}(n.key,h,n.default,E.arrays),Object.keys(p).forEach((function(e){(E.aliases[e]||[]).forEach((function(t){p[t]=p[e]}))}));let x=null;Object.keys(E.counts).find((e=>q(e,E.arrays)?(x=Error(w("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!q(e,E.nargs)&&(x=Error(w("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let C=[];const A=Object.assign(Object.create(null),{_:[]}),O={};for(let e=0;e<i.length;e++){const t=i[e],n=t.replace(/^-{3,}/,"---");let r,o,s,a,u,l;if("--"!==t&&/^-/.test(t)&&U(t))k(t);else{if(n.match(/^---+(=|$)/)){k(t);continue}if(t.match(/^--.+=/)||!d["short-option-groups"]&&t.match(/^-.+=/))a=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&(q(a[1],E.arrays)?e=j(e,a[1],i,a[2]):!1!==q(a[1],E.nargs)?e=S(e,a[1],i,a[2]):B(a[1],a[2],!0));else if(t.match(F)&&d["boolean-negation"])a=t.match(F),null!==a&&Array.isArray(a)&&a.length>=2&&(o=a[1],B(o,!!q(o,E.arrays)&&[!1]));else if(t.match(/^--.+/)||!d["short-option-groups"]&&t.match(/^-[^-]+/))a=t.match(/^--?(.+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(o=a[1],q(o,E.arrays)?e=j(e,o,i):!1!==q(o,E.nargs)?e=S(e,o,i):(u=i[e+1],void 0===u||u.match(/^-/)&&!u.match(_)||q(o,E.bools)||q(o,E.counts)?/^(true|false)$/.test(u)?(B(o,u),e++):B(o,H(o)):(B(o,u),e++)));else if(t.match(/^-.\..+=/))a=t.match(/^-([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&B(a[1],a[2]);else if(t.match(/^-.\..+/)&&!t.match(_))u=i[e+1],a=t.match(/^-(.\..+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(o=a[1],void 0===u||u.match(/^-/)||q(o,E.bools)||q(o,E.counts)?B(o,H(o)):(B(o,u),e++));else if(t.match(/^-[^-]+/)&&!t.match(_)){s=t.slice(1,-1).split(""),r=!1;for(let n=0;n<s.length;n++){if(u=t.slice(n+2),s[n+1]&&"="===s[n+1]){l=t.slice(n+3),o=s[n],q(o,E.arrays)?e=j(e,o,i,l):!1!==q(o,E.nargs)?e=S(e,o,i,l):B(o,l),r=!0;break}if("-"!==u){if(/[A-Za-z]/.test(s[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(u)&&!1===q(u,E.bools)){B(s[n],u),r=!0;break}if(s[n+1]&&s[n+1].match(/\W/)){B(s[n],u),r=!0;break}B(s[n],H(s[n]))}else B(s[n],u)}o=t.slice(-1)[0],r||"-"===o||(q(o,E.arrays)?e=j(e,o,i):!1!==q(o,E.nargs)?e=S(e,o,i):(u=i[e+1],void 0===u||/^(-|--)[^-]/.test(u)&&!u.match(_)||q(o,E.bools)||q(o,E.counts)?/^(true|false)$/.test(u)?(B(o,u),e++):B(o,H(o)):(B(o,u),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(_)&&q(t.slice(1),E.bools))o=t.slice(1),B(o,H(o));else{if("--"===t){C=i.slice(e+1);break}if(d["halt-at-non-option"]){C=i.slice(e);break}k(t)}}}function k(e){const t=I("_",e);"string"!=typeof t&&"number"!=typeof t||A._.push(t)}function S(e,t,n,r){let i,o=q(t,E.nargs);if(o="number"!=typeof o||isNaN(o)?1:o,0===o)return W(r)||(x=Error(w("Argument unexpected for: %s",t))),B(t,H(t)),e;let s=W(r)?0:1;if(d["nargs-eats-options"])n.length-(e+1)+s<o&&(x=Error(w("Not enough arguments following: %s",t))),s=o;else{for(i=e+1;i<n.length&&(!n[i].match(/^-[^0-9]/)||n[i].match(_)||U(n[i]));i++)s++;s<o&&(x=Error(w("Not enough arguments following: %s",t)))}let a=Math.min(s,o);for(!W(r)&&a>0&&(B(t,r),a--),i=e+1;i<a+e+1;i++)B(t,n[i]);return e+a}function j(e,t,n,r){let i=[],s=r||n[e+1];const a=q(t,E.nargs);if(q(t,E.bools)&&!/^(true|false)$/.test(s))i.push(!0);else if(W(s)||W(r)&&/^-/.test(s)&&!_.test(s)&&!U(s)){if(void 0!==p[t]){const e=p[t];i=Array.isArray(e)?e:[e]}}else{W(r)||i.push(R(t,r,!0));for(let r=e+1;r<n.length&&!(!d["greedy-arrays"]&&i.length>0||a&&"number"==typeof a&&i.length>=a)&&(s=n[r],!/^-/.test(s)||_.test(s)||U(s));r++)e=r,i.push(R(t,s,o))}return"number"==typeof a&&(a&&i.length<a||isNaN(a)&&0===i.length)&&(x=Error(w("Not enough arguments following: %s",t))),B(t,i),e}function B(e,t,n=o){if(/-/.test(e)&&d["camel-case-expansion"]){const t=e.split(".").map((function(e){return s(e)})).join(".");P(e,t)}const r=R(e,t,n),i=e.split(".");L(A,i,r),E.aliases[e]&&E.aliases[e].forEach((function(e){const t=e.split(".");L(A,t,r)})),i.length>1&&d["dot-notation"]&&(E.aliases[i[0]]||[]).forEach((function(t){let n=t.split(".");const o=[].concat(i);o.shift(),n=n.concat(o),(E.aliases[e]||[]).includes(n.join("."))||L(A,n,r)})),q(e,E.normalize)&&!q(e,E.arrays)&&[e].concat(E.aliases[e]||[]).forEach((function(e){Object.defineProperty(O,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?l.normalize(e):e}})}))}function P(e,t){E.aliases[e]&&E.aliases[e].length||(E.aliases[e]=[t],b[t]=!0),E.aliases[t]&&E.aliases[t].length||P(t,e)}function R(e,t,n){n&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(q(e,E.bools)||q(e,E.counts))&&"string"==typeof t&&(t="true"===t);let r=Array.isArray(t)?t.map((function(t){return I(e,t)})):I(e,t);return q(e,E.counts)&&(W(r)||"boolean"==typeof r)&&(r=c()),q(e,E.normalize)&&q(e,E.arrays)&&(r=Array.isArray(t)?t.map((e=>l.normalize(e))):l.normalize(t)),r}function I(e,t){return d["parse-positional-numbers"]||"_"!==e?(q(e,E.strings)||q(e,E.bools)||Array.isArray(t)||(u(t)&&d["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!W(t)&&q(e,E.numbers))&&(t=Number(t)),t):t}function M(e,t){Object.keys(e).forEach((function(n){const r=e[n],i=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&d["dot-notation"]?M(r,i):(!N(A,i.split("."))||q(i,E.arrays)&&d["combine-arrays"])&&B(i,r)}))}function $(e,t){if(void 0===g)return;const n="string"==typeof g?g:"",r=l.env();Object.keys(r).forEach((function(i){if(""===n||0===i.lastIndexOf(n,0)){const o=i.split("__").map((function(e,t){return 0===t&&(e=e.substring(n.length)),s(e)}));(t&&E.configs[o.join(".")]||!t)&&!N(e,o)&&B(o.join("."),r[i])}}))}function T(e,t,n,r=!1){Object.keys(n).forEach((function(i){N(e,i.split("."))||(L(e,i.split("."),n[i]),r&&(v[i]=!0),(t[i]||[]).forEach((function(t){N(e,t.split("."))||L(e,t.split("."),n[i])})))}))}function N(e,t){let n=e;d["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const r=t[t.length-1];return"object"==typeof n&&r in n}function L(e,t,n){let r=e;d["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=f(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));const i=f(t[t.length-1]),o=q(t.join("."),E.arrays),s=Array.isArray(n);let a=d["duplicate-arguments-array"];!a&&q(i,E.nargs)&&(a=!0,(!W(r[i])&&1===E.nargs[i]||Array.isArray(r[i])&&r[i].length===E.nargs[i])&&(r[i]=void 0)),n===c()?r[i]=c(r[i]):Array.isArray(r[i])?a&&o&&s?r[i]=d["flatten-duplicate-arrays"]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):a||Boolean(o)!==Boolean(s)?r[i]=r[i].concat([n]):r[i]=n:void 0===r[i]&&o?r[i]=s?n:[n]:!a||void 0===r[i]||q(i,E.counts)||q(i,E.bools)?r[i]=n:r[i]=[r[i],n]}function q(e,t){const n=[].concat(E.aliases[e]||[],e),r=Object.keys(t),i=n.find((e=>r.includes(e)));return!!i&&t[i]}function z(e){const t=Object.keys(E);return[].concat(t.map((e=>E[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function U(e){return d["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(_)&&(!function(e){if(e.match(_)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let i=0;i<r.length;i++){if(t=e.slice(i+2),!z(r[i])){n=!1;break}if(r[i+1]&&"="===r[i+1]||"-"===t||/[A-Za-z]/.test(r[i])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||r[i+1]&&r[i+1].match(/\W/))break}return n}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const n=e.match(t);return n&&z(n[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,F,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function H(e){return q(e,E.bools)||q(e,E.counts)||!(`${e}`in p)?(t=function(e){let t=r.BOOLEAN;return q(e,E.strings)?t=r.STRING:q(e,E.numbers)?t=r.NUMBER:q(e,E.bools)?t=r.BOOLEAN:q(e,E.arrays)&&(t=r.ARRAY),t}(e),{[r.BOOLEAN]:!0,[r.STRING]:"",[r.NUMBER]:void 0,[r.ARRAY]:[]}[t]):p[e];var t}function W(e){return void 0===e}return $(A,!0),$(A,!1),function(e){const t=Object.create(null);T(t,E.aliases,p),Object.keys(E.configs).forEach((function(n){const r=e[n]||t[n];if(r)try{let e=null;const t=l.resolve(l.cwd(),r),i=E.configs[n];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(x=e)}else e=l.require(t);M(e)}catch(t){"PermissionDenied"===t.name?x=t:e[n]&&(x=Error(w("Invalid JSON config file: %s",r)))}}))}(A),void 0!==m&&m.forEach((function(e){M(e)})),T(A,E.aliases,p,!0),function(e){let t;const n=new Set;Object.keys(e).forEach((function(r){if(!n.has(r)&&(t=q(r,E.coercions),"function"==typeof t))try{const i=I(r,t(e[r]));[].concat(E.aliases[r]||[],r).forEach((t=>{n.add(t),e[t]=i}))}catch(e){x=e}}))}(A),d["set-placeholder-key"]&&function(e){E.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(A),Object.keys(E.counts).forEach((function(e){N(A,e.split("."))||B(e,0)})),y&&C.length&&(A[D]=[]),C.forEach((function(e){A[D].push(e)})),d["camel-case-expansion"]&&d["strip-dashed"]&&Object.keys(A).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete A[e]})),d["strip-aliased"]&&[].concat(...Object.keys(h).map((e=>h[e]))).forEach((e=>{d["camel-case-expansion"]&&e.includes("-")&&delete A[e.split(".").map((e=>s(e))).join(".")],delete A[e]})),{aliases:Object.assign({},E.aliases),argv:Object.assign(O,A),configuration:d,defaulted:Object.assign({},v),error:x,newAliases:Object.assign({},b)}}}({cwd:process.cwd,env:()=>y,format:i.format,normalize:o.normalize,resolve:o.resolve,require:e=>n(8953)(e)}),b=function(e,t){return D.parse(e.slice(),t).argv};b.detailed=function(e,t){return D.parse(e.slice(),t)},b.camelCase=s,b.decamelize=a,b.looksLikeNumber=u,e.exports=b},5338:(e,t,n)=>{"use strict";var r=n(2613);class i extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,i)}}let o,s=[];function a(e,t,r,l){o=l;let c={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return c;const u=/\.json|\..*rc$/.test(e.extends);let l=null;if(u)l=function(e,t){return o.path.resolve(e,t)}(t,e.extends);else try{l=n(7315).resolve(e.extends)}catch(t){return e}!function(e){if(s.indexOf(e)>-1)throw new i(`Circular extended configurations: '${e}'.`)}(l),s.push(l),c=u?JSON.parse(o.readFileSync(l,"utf8")):n(7315)(e.extends),delete e.extends,c=a(c,o.path.dirname(l),r,o)}return s=[],r?u(c,e):Object.assign({},c,e)}function u(e,t){const n={};function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(n,e);for(const i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=u(e[i],t[i]):n[i]=t[i];return n}function l(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${e}`);const i={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach(((e,r)=>{let o=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&r===t.length-1&&(o=!0),/^\[/.test(e)?i.optional.push({cmd:e.replace(n,"").split("|"),variadic:o}):i.demanded.push({cmd:e.replace(n,"").split("|"),variadic:o})})),i}const c=["first","second","third","fourth","fifth","sixth"];function f(e,t,n){try{let r=0;const[o,s,a]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[l(`cmd ${e}`),t,n],u=[].slice.call(s);for(;u.length&&void 0===u[u.length-1];)u.pop();const c=a||u.length;if(c<o.demanded.length)throw new i(`Not enough arguments provided. Expected ${o.demanded.length} but received ${u.length}.`);const f=o.demanded.length+o.optional.length;if(c>f)throw new i(`Too many arguments provided. Expected max ${f} but received ${c}.`);o.demanded.forEach((e=>{const t=h(u.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&d(t,e.cmd,r),r+=1})),o.optional.forEach((e=>{if(0===u.length)return;const t=h(u.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&d(t,e.cmd,r),r+=1}))}catch(e){console.warn(e.stack)}}function h(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function d(e,t,n){throw new i(`Invalid ${c[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}function p(e){return!!e&&!!e.then&&"function"==typeof e.then}function m(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function g(e,t){t.assert.strictEqual(typeof e,"string")}function y(e){return Object.keys(e)}function D(e={},t=()=>!0){const n={};return y(e).forEach((r=>{t(r,e[r])&&(n[r]=e[r])})),n}function b(){return process.versions.electron&&!process.defaultApp?0:1}function v(){return process.argv[b()]}var w=Object.freeze({__proto__:null,hideBin:function(e){return e.slice(b()+1)},getProcessArgvBin:v});function E(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function _(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}class F{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(f("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let r=0;r<e.length;r++){if("function"!=typeof e[r])throw Error("middleware must be a function");const i=e[r];i.applyBeforeValidation=t,i.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const i=e;i.applyBeforeValidation=t,i.global=n,i.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const r=[...n[t]||[],t];return!e.option||!r.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function x(e,t,n,r){return n.reduce(((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(n.mutates){if(n.applied)return e;n.applied=!0}if(p(e))return e.then((e=>Promise.all([e,n(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const r=n(e,t);return p(r)?r.then((t=>Object.assign(e,t))):Object.assign(e,r)}}),e)}function C(e,t,n=e=>{throw e}){try{const n="function"==typeof e?e():e;return p(n)?n.then((e=>t(e))):t(n)}catch(e){return n(e)}}const A=/(^\*)|(^\$0)/;class O{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){"boolean"!=typeof(r=r||{}).recurse&&(r.recurse=!1),Array.isArray(r.extensions)||(r.extensions=["js"]);const i="function"==typeof r.visit?r.visit:e=>e;r.visit=(e,t,n)=>{const r=i(e,t,n);if(r){if(this.requireCache.has(t))return r;this.requireCache.add(t),this.addHandler(r)}return r},this.shim.requireDirectory({require:t,filename:n},e,r)}addHandler(e,t,n,r,i,o){let s=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(i);if(r=r||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...s]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(k(n))return void this.addHandler([e].concat(s),t,n.builder,n.handler,n.middlewares,n.deprecated)}if("string"==typeof e){const i=l(e);s=s.map((e=>l(e).cmd));let u=!1;const c=[i.cmd].concat(s).filter((e=>!A.test(e)||(u=!0,!1)));0===c.length&&u&&c.push("$0"),u&&(i.cmd=c[0],s=c.slice(1),e=e.replace(A,i.cmd)),s.forEach((e=>{this.aliasMap[e]=i.cmd})),!1!==t&&this.usage.command(e,t,u,s,o),this.handlers[i.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:a,deprecated:o,demanded:i.demanded,optional:i.optional},u&&(this.defaultCommand=this.handlers[i.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,i,o){const s=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),u=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(s.original));const c=this.applyBuilderUpdateUsageAndParse(l,s,t,n.aliases,u,r,i,o);return p(c)?c.then((e=>this.applyMiddlewareAndGetResult(l,s,e.innerArgv,a,i,e.aliases,t))):this.applyMiddlewareAndGetResult(l,s,c.innerArgv,a,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,i,o,s,a){const u=t.builder;let l=n;if(S(u)){n.getInternalMethods().getUsageInstance().freeze();const c=u(n.getInternalMethods().reset(r),a);if(p(c))return c.then((r=>{var a;return l=(a=r)&&"function"==typeof a.getInternalMethods?r:n,this.parseAndUpdateUsage(e,t,l,i,o,s)}))}else(function(e){return"object"==typeof e})(u)&&(n.getInternalMethods().getUsageInstance().freeze(),l=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach((e=>{l.option(e,u[e])})));return this.parseAndUpdateUsage(e,t,l,i,o,s)}parseAndUpdateUsage(e,t,n,r,i,o){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);const s=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,o);return p(s)?s.then((e=>({aliases:n.parsed.aliases,innerArgv:e}))):{aliases:n.parsed.aliases,innerArgv:s}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const n=A.test(t.original)?t.original.replace(A,"").trim():t.original,r=e.filter((e=>!A.test(e)));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,i,o,s,a){if(!o.getInternalMethods().getHasOutput()){const t=o.getInternalMethods().runValidation(i,a,o.parsed.error,e);n=C(n,(e=>(t(e),e)))}if(t.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();const r=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(n,r,!1,!1),n=C(n=x(n,o,s,!1),(e=>{const n=t.handler(e);return p(n)?n.then((()=>e)):e})),e||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),p(n)&&!o.getInternalMethods().hasParseCallback()&&n.catch((e=>{try{o.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,i,o,s){let a={};if(i)return n;s.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,n,r,s));const u=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=x(n,s,u,!0);return p(l)?l.then((n=>this.handleValidationAndGetResult(e,t,n,r,o,s,u,a))):this.handleValidationAndGetResult(e,t,l,r,o,s,u,a)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);const i=e.demanded.slice(0),o=e.optional.slice(0),s={};for(this.validation.positionalCount(i.length,t._.length);i.length;){const e=i.shift();this.populatePositional(e,t,s)}for(;o.length;){const e=o.shift();this.populatePositional(e,t,s)}return t._=n.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,s,this.cmdToParseOptions(e.original),r),s}populatePositional(e,t,n){const r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},n=l(e);return n.demanded.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0})),n.optional.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r})),t}postProcessPositionals(e,t,n,r){const i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(const e of Object.keys(n.alias))i.alias[e]=(i.alias[e]||[]).concat(n.alias[e]);i.array=i.array.concat(n.array),i.config={};const o=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{i.configuration["unknown-options-as-args"]&&(i.key[e]=!0),o.push(`--${e}`),o.push(t)}))})),!o.length)return;const s=Object.assign({},i.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(o,Object.assign({},i,{configuration:s}));if(a.error)r.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const n=Object.keys(t);Object.keys(t).forEach((e=>{n.push(...a.aliases[e])})),Object.keys(a.argv).forEach((i=>{n.includes(i)&&(t[i]||(t[i]=a.argv[i]),!this.isInConfigs(r,i)&&!this.isDefaulted(r,i)&&Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(a.argv,i)&&(Array.isArray(e[i])||Array.isArray(a.argv[i]))?e[i]=[].concat(e[i],a.argv[i]):e[i]=a.argv[i])}))}}isDefaulted(e,t){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:n}=e.getOptions();return n.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||n.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=A.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(S(t))return t(e,!0);k(t)||Object.keys(t).forEach((n=>{e.option(n,t[n])}))}moduleName(e){const t=function(e){for(let t,r=0,i=Object.keys(n.c);r<i.length;r++)if(t=n.c[i[r]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:n}){for(const r of[e,t,n]){if("string"==typeof r||!1===r)return r;m(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();m(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function k(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function S(e){return"function"==typeof e}function j(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const n=t;n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)}))}function B(e){return"boolean"==typeof e}function P(e,t){const n=t.y18n.__,r={},o=[];r.failFn=function(e){o.push(e)};let s=null,a=null,u=!0;r.showHelpOnFail=function(t=!0,n){const[i,o]="string"==typeof t?[!0,t]:[t,n];return e.getInternalMethods().isGlobalContext()&&(a=o),s=o,u=i,r};let l=!1;r.fail=function(t,n){const c=e.getInternalMethods().getLoggerInstance();if(!o.length){if(e.getExitProcess()&&j(!0),!l){l=!0,u&&(e.showHelp("error"),c.error()),(t||n)&&c.error(t||n);const r=s||a;r&&((t||n)&&c.error(""),c.error(r))}if(n=n||new i(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,n);throw n}for(let e=o.length-1;e>=0;--e){const i=o[e];if(B(i)){if(n)throw n;if(t)throw Error(t)}else i(t,n,r)}};let c=[],f=!1;r.usage=(e,t)=>null===e?(f=!0,c=[],r):(f=!1,c.push([e,t||""]),r),r.getUsage=()=>c,r.getUsageDisabled=()=>f,r.getPositionalGroupName=()=>n("Positionals:");let h=[];r.example=(e,t)=>{h.push([e,t||""])};let d=[];r.command=function(e,t,n,r,i=!1){n&&(d=d.map((e=>(e[2]=!1,e)))),d.push([e,t||"",n,r,i])},r.getCommands=()=>d;let p={};r.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{r.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{r.describe(t,e[t])})):p[e]=t},r.getDescriptions=()=>p;let m=[];r.epilog=e=>{m.push(e)};let g,y=!1;r.wrap=e=>{y=!0,g=e},r.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(y||(g=t.process.stdColumns?Math.min(80,t.process.stdColumns):80,y=!0),g);const b="__yargsString__:";function v(e,n,r){let i=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{i=Math.max(t.stringWidth(r?`${r} ${M(e[0])}`:M(e[0]))+I(e[0]),i)})),n&&(i=Math.min(i,parseInt((.5*n).toString(),10))),i}let w;function E(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function _(e,t){let r=`[${n("default:")} `;if(void 0===e&&!t)return null;if(t)r+=t;else switch(typeof e){case"string":r+=`"${e}"`;break;case"object":r+=JSON.stringify(e);break;default:r+=e}return`${r}]`}r.deferY18nLookup=e=>b+e,r.help=function(){if(w)return w;!function(){const t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach((i=>{n.alias[i].forEach((o=>{p[o]&&r.describe(i,p[o]),o in t&&e.demandOption(i,t[o]),n.boolean.includes(o)&&e.boolean(i),n.count.includes(o)&&e.count(i),n.string.includes(o)&&e.string(i),n.normalize.includes(o)&&e.normalize(i),n.array.includes(o)&&e.array(i),n.number.includes(o)&&e.number(i)}))}))}();const i=e.customScriptName?e.$0:t.path.basename(e.$0),o=e.getDemandedOptions(),s=e.getDemandedCommands(),a=e.getDeprecatedOptions(),u=e.getGroups(),l=e.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(s)),g=g.concat(Object.keys(l.default)),g=g.filter(E),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const y=r.getWrap(),D=t.cliui({width:y,wrap:!!y});if(!f)if(c.length)c.forEach((e=>{D.div({text:`${e[0].replace(/\$0/g,i)}`}),e[1]&&D.div({text:`${e[1]}`,padding:[1,0,0,0]})})),D.div();else if(d.length){let e=null;e=s._?`${i} <${n("command")}>\n`:`${i} [${n("command")}]\n`,D.div(`${e}`)}if(d.length>1||1===d.length&&!d[0][2]){D.div(n("Commands:"));const t=e.getInternalMethods().getContext(),r=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((e,t)=>e[0].localeCompare(t[0]))));const o=i?`${i} `:"";d.forEach((e=>{const t=`${o}${r}${e[0].replace(/^\$0 ?/,"")}`;D.span({text:t,padding:[0,2,0,2],width:v(d,y,`${i}${r}`)+4},{text:e[1]});const s=[];e[2]&&s.push(`[${n("default")}]`),e[3]&&e[3].length&&s.push(`[${n("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?s.push(`[${n("deprecated: %s",e[4])}]`):s.push(`[${n("deprecated")}]`)),s.length?D.div({text:s.join(" "),padding:[0,0,0,2],align:"right"}):D.div()})),D.div()}const F=(Object.keys(l.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&F.every((e=>-1===(l.alias[e]||[]).indexOf(t)))));const x=n("Options:");u[x]||(u[x]=[]),function(e,t,n,r){let i=[],o=null;Object.keys(n).forEach((e=>{i=i.concat(n[e])})),e.forEach((e=>{o=[e].concat(t[e]),o.some((e=>-1!==i.indexOf(e)))||n[r].push(e)}))}(g,l.alias,u,x);const C=e=>/^--/.test(M(e)),A=Object.keys(u).filter((e=>u[e].length>0)).map((e=>({groupName:e,normalizedKeys:u[e].filter(E).map((e=>{if(F.includes(e))return e;for(let t,n=0;void 0!==(t=F[n]);n++)if((l.alias[t]||[]).includes(e))return t;return e}))}))).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const n=t.reduce(((t,n)=>(t[n]=[n].concat(l.alias[n]||[]).map((t=>e===r.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?l.boolean.includes(n)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>C(e)===C(t)?0:C(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:n}}));if(A.filter((({groupName:e})=>e!==r.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>C(t[e])))))&&A.filter((({groupName:e})=>e!==r.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var n;C(t[e])&&(t[e]=R(n=t[e])?{text:n.text,indentation:n.indentation+4}:{text:n,indentation:4})}))})),A.forEach((({groupName:t,normalizedKeys:i,switches:s})=>{D.div(t),i.forEach((t=>{const i=s[t];let u=p[t]||"",c=null;u.includes(b)&&(u=n(u.substring(16))),l.boolean.includes(t)&&(c=`[${n("boolean")}]`),l.count.includes(t)&&(c=`[${n("count")}]`),l.string.includes(t)&&(c=`[${n("string")}]`),l.normalize.includes(t)&&(c=`[${n("string")}]`),l.array.includes(t)&&(c=`[${n("array")}]`),l.number.includes(t)&&(c=`[${n("number")}]`);const f=[t in a?(h=a[t],"string"==typeof h?`[${n("deprecated: %s",h)}]`:`[${n("deprecated")}]`):null,c,t in o?`[${n("required")}]`:null,l.choices&&l.choices[t]?`[${n("choices:")} ${r.stringifiedValues(l.choices[t])}]`:null,_(l.default[t],l.defaultDescription[t])].filter(Boolean).join(" ");var h;D.span({text:M(i),padding:[0,2,0,2+I(i)],width:v(s,y)+4},u);const d=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];f&&!d?D.div({text:f,padding:[0,0,0,2],align:"right"}):D.div()})),D.div()})),h.length&&(D.div(n("Examples:")),h.forEach((e=>{e[0]=e[0].replace(/\$0/g,i)})),h.forEach((e=>{""===e[1]?D.div({text:e[0],padding:[0,2,0,2]}):D.div({text:e[0],padding:[0,2,0,2],width:v(h,y)+4},{text:e[1]})})),D.div()),m.length>0){const e=m.map((e=>e.replace(/\$0/g,i))).join("\n");D.div(`${e}\n`)}return D.toString().replace(/\s*$/,"")},r.cacheHelpMessage=function(){w=this.help()},r.clearCachedHelpMessage=function(){w=void 0},r.hasCachedHelpMessage=function(){return!!w},r.showHelp=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(r.help())},r.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):n("generated-value"),")"].join(""),r.stringifiedValues=function(e,t){let n="";const r=t||", ",i=[].concat(e);return e&&i.length?(i.forEach((e=>{n.length&&(n+=r),n+=JSON.stringify(e)})),n):n};let F=null;r.version=e=>{F=e},r.showVersion=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(F)},r.reset=function(e){return s=null,l=!1,c=[],f=!1,m=[],h=[],d=[],p=D(p,(t=>!e[t])),r};const x=[];return r.freeze=function(){x.push({failMessage:s,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:h,commands:d,descriptions:p})},r.unfreeze=function(e=!1){const t=x.pop();t&&(e?(p={...t.descriptions,...p},d=[...t.commands,...d],c=[...t.usages,...c],h=[...t.examples,...h],m=[...t.epilogs,...m]):({failMessage:s,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:h,commands:d,descriptions:p}=t))},r}function R(e){return"object"==typeof e}function I(e){return R(e)?e.indentation:0}function M(e){return R(e)?e.text:e}class ${constructor(e,t,n,r){var i,o,s;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(s=(null===(i=this.shim.getEnv("SHELL"))||void 0===i?void 0:i.includes("zsh"))||(null===(o=this.shim.getEnv("ZSH_NAME"))||void 0===o?void 0:o.includes("zsh")))&&void 0!==s&&s}defaultCompletion(e,t,n,r){const i=this.command.getCommandHandlers();for(let t=0,n=e.length;t<n;++t)if(i[e[t]]&&i[e[t]].builder){const n=i[e[t]].builder;if(S(n)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return n(e,!0),e.argv}}const o=[];this.commandCompletions(o,e,n),this.optionCompletions(o,e,t,n),this.choicesFromOptionsCompletions(o,e,t,n),this.choicesFromPositionalsCompletions(o,e,t,n),r(null,o)}commandCompletions(e,t,n){const r=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||r[r.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((n=>{const r=l(n[0]).cmd;if(-1===t.indexOf(r))if(this.zshShell){const t=n[1]||"";e.push(r.replace(/:/g,"\\:")+":"+t)}else e.push(r)}))}optionCompletions(e,t,n,r){if((r.match(/^-/)||""===r&&0===e.length)&&!this.previousArgHasChoices(t)){const n=this.yargs.getOptions(),i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(n.key).forEach((o=>{const s=!!n.configuration["boolean-negation"]&&n.boolean.includes(o);i.includes(o)||n.hiddenOptions.includes(o)||this.argsContainKey(t,o,s)||this.completeOptionKey(o,e,r,s&&!!n.default[o])}))}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){const n=this.getPreviousArgChoices(t);n&&n.length>0&&e.push(...n.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,r){if(""===r&&e.length>0&&this.previousArgHasChoices(t))return;const i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],o=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),s=i[n._.length-o-1];if(!s)return;const a=this.yargs.getOptions().choices[s]||[];for(const t of a)t.startsWith(r)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;const r=t.replace(/^-+/,""),i=this.yargs.getOptions(),o=[r,...this.yargs.getAliases()[r]||[]];let s;for(const e of o)if(Object.prototype.hasOwnProperty.call(i.key,e)&&Array.isArray(i.choices[e])){s=i.choices[e];break}return s?s.filter((e=>!n||e.startsWith(n))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,n){const r=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(r(t))return!0;if(n&&r(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(r(e))return!0;return!1}completeOptionKey(e,t,n,r){var i,o,s,a;let u=e;if(this.zshShell){const t=this.usage.getDescriptions(),n=null===(o=null===(i=null==this?void 0:this.aliases)||void 0===i?void 0:i[e])||void 0===o?void 0:o.find((e=>{const n=t[e];return"string"==typeof n&&n.length>0})),r=n?t[n]:void 0,l=null!==(a=null!==(s=t[e])&&void 0!==s?s:r)&&void 0!==a?a:"";u=`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(n)&&(e=>/^[^0-9]$/.test(e))(e)?"-":"--";t.push(l+u),r&&t.push(l+"no-"+u)}customCompletion(e,t,n,r){if(m(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(n,t);return p(e)?e.then((e=>{this.shim.process.nextTick((()=>{r(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{r(e,void 0)}))})):r(null,e)}return function(e){return e.length>3}(this.customCompletionFunction)?this.customCompletionFunction(n,t,((i=r)=>this.defaultCompletion(e,t,n,i)),(e=>{r(null,e)})):this.customCompletionFunction(n,t,(e=>{r(null,e)}))}getCompletion(e,t){const n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),i=this.customCompletionFunction?r=>this.customCompletion(e,r,n,t):r=>this.defaultCompletion(e,r,n,t);return p(r)?r.then(i):i(r)}generateCompletionScript(e,t){let n=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function T(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,i;for(r=0;r<=t.length;r++)n[r]=[r];for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:r>1&&i>1&&t.charAt(r-2)===e.charAt(i-1)&&t.charAt(r-1)===e.charAt(i-2)?n[r][i]=n[r-2][i-2]+1:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}const N=["$0","--","_"];var L,q,z,U,H,W,V,G,Y,K,J,Z,Q,X,ee,te,ne,re,ie,oe,se,ae,ue,le,ce,fe,he,de,pe,me,ge,ye,De,be,ve;const we=Symbol("copyDoubleDash"),Ee=Symbol("copyDoubleDash"),_e=Symbol("deleteFromParserHintObject"),Fe=Symbol("emitWarning"),xe=Symbol("freeze"),Ce=Symbol("getDollarZero"),Ae=Symbol("getParserConfiguration"),Oe=Symbol("getUsageConfiguration"),ke=Symbol("guessLocale"),Se=Symbol("guessVersion"),je=Symbol("parsePositionalNumbers"),Be=Symbol("pkgUp"),Pe=Symbol("populateParserHintArray"),Re=Symbol("populateParserHintSingleValueDictionary"),Ie=Symbol("populateParserHintArrayDictionary"),Me=Symbol("populateParserHintDictionary"),$e=Symbol("sanitizeKey"),Te=Symbol("setKey"),Ne=Symbol("unfreeze"),Le=Symbol("validateAsync"),qe=Symbol("getCommandInstance"),ze=Symbol("getContext"),Ue=Symbol("getHasOutput"),He=Symbol("getLoggerInstance"),We=Symbol("getParseContext"),Ve=Symbol("getUsageInstance"),Ge=Symbol("getValidationInstance"),Ye=Symbol("hasParseCallback"),Ke=Symbol("isGlobalContext"),Je=Symbol("postProcess"),Ze=Symbol("rebase"),Qe=Symbol("reset"),Xe=Symbol("runYargsParserAndExecuteCommands"),et=Symbol("runValidation"),tt=Symbol("setHasOutput"),nt=Symbol("kTrackManuallySetKeys");class rt{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),q.set(this,void 0),z.set(this,{commands:[],fullCommands:[]}),U.set(this,null),H.set(this,null),W.set(this,"show-hidden"),V.set(this,null),G.set(this,!0),Y.set(this,{}),K.set(this,!0),J.set(this,[]),Z.set(this,void 0),Q.set(this,{}),X.set(this,!1),ee.set(this,null),te.set(this,!0),ne.set(this,void 0),re.set(this,""),ie.set(this,void 0),oe.set(this,void 0),se.set(this,{}),ae.set(this,null),ue.set(this,null),le.set(this,{}),ce.set(this,{}),fe.set(this,void 0),he.set(this,!1),de.set(this,void 0),pe.set(this,!1),me.set(this,!1),ge.set(this,!1),ye.set(this,void 0),De.set(this,{}),be.set(this,null),ve.set(this,void 0),_(this,de,r,"f"),_(this,fe,e,"f"),_(this,q,t,"f"),_(this,oe,n,"f"),_(this,Z,new F(this),"f"),this.$0=this[Ce](),this[Qe](),_(this,L,E(this,L,"f"),"f"),_(this,ye,E(this,ye,"f"),"f"),_(this,ve,E(this,ve,"f"),"f"),_(this,ie,E(this,ie,"f"),"f"),E(this,ie,"f").showHiddenOpt=E(this,W,"f"),_(this,ne,this[Ee](),"f")}addHelpOpt(e,t){return f("[string|boolean] [string]",[e,t],arguments.length),E(this,ee,"f")&&(this[_e](E(this,ee,"f")),_(this,ee,null,"f")),!1===e&&void 0===t||(_(this,ee,"string"==typeof e?e:"help","f"),this.boolean(E(this,ee,"f")),this.describe(E(this,ee,"f"),t||E(this,ye,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(f("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const n="string"==typeof e?e:E(this,W,"f");return this.boolean(n),this.describe(n,t||E(this,ye,"f").deferY18nLookup("Show hidden options")),E(this,ie,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return f("<object|string|array> [string|array]",[e,t],arguments.length),this[Ie](this.alias.bind(this),"alias",e,t),this}array(e){return f("<array|string>",[e],arguments.length),this[Pe]("array",e),this[nt](e),this}boolean(e){return f("<array|string>",[e],arguments.length),this[Pe]("boolean",e),this[nt](e),this}check(e,t){return f("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,n)=>C((()=>e(t,n.getOptions())),(n=>(n?("string"==typeof n||n instanceof Error)&&E(this,ye,"f").fail(n.toString(),n):E(this,ye,"f").fail(E(this,de,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(E(this,ye,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return f("<object|string|array> [string|array]",[e,t],arguments.length),this[Ie](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(f("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new i("coerce callback must be provided");for(const n of e)this.coerce(n,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new i("coerce callback must be provided");return E(this,ie,"f").key[e]=!0,E(this,Z,"f").addCoerceMiddleware(((n,r)=>{let o;return Object.prototype.hasOwnProperty.call(n,e)?C((()=>(o=r.getAliases(),t(n[e]))),(t=>{n[e]=t;const i=r.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[e]&&!0!==i)for(const r of o[e])n[r]=t;return n}),(e=>{throw new i(e.message)})):n}),e),this}conflicts(e,t){return f("<string|object> [string|array]",[e,t],arguments.length),E(this,ve,"f").conflicts(e,t),this}config(e="config",t,n){return f("[object|string] [string|function] [function]",[e,t,n],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(n=t,t=void 0),this.describe(e,t||E(this,ye,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{E(this,ie,"f").config[e]=n||!0})),this):(e=a(e,E(this,q,"f"),this[Ae]()["deep-merge-config"]||!1,E(this,de,"f")),E(this,ie,"f").configObjects=(E(this,ie,"f").configObjects||[]).concat(e),this)}completion(e,t,n){return f("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),"function"==typeof t&&(n=t,t=void 0),_(this,H,e||E(this,H,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(E(this,H,"f"),t),n&&E(this,U,"f").registerFunction(n),this}command(e,t,n,r,i,o){return f("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,i,o],arguments.length),E(this,L,"f").addHandler(e,t,n,r,i,o),this}commands(e,t,n,r,i,o){return this.command(e,t,n,r,i,o)}commandDir(e,t){f("<string> [object]",[e,t],arguments.length);const n=E(this,oe,"f")||E(this,de,"f").require;return E(this,L,"f").addDirectory(e,n,E(this,de,"f").getCallerFile(),t),this}count(e){return f("<array|string>",[e],arguments.length),this[Pe]("count",e),this[nt](e),this}default(e,t,n){return f("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(g(e,E(this,de,"f")),E(this,ie,"f").defaultDescription[e]=n),"function"==typeof t&&(g(e,E(this,de,"f")),E(this,ie,"f").defaultDescription[e]||(E(this,ie,"f").defaultDescription[e]=E(this,ye,"f").functionDescription(t)),t=t.call()),this[Re](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return f("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),"number"!=typeof t&&(n=t,t=1/0),this.global("_",!1),E(this,ie,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach((e=>{m(n,!0,E(this,de,"f")),this.demandOption(e,n)})),t=1/0):"number"!=typeof t&&(n=t,t=1/0),"number"==typeof e?(m(n,!0,E(this,de,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach((e=>{m(n,!0,E(this,de,"f")),this.demandOption(e,n)})):"string"==typeof n?this.demandOption(e,n):!0!==n&&void 0!==n||this.demandOption(e),this}demandOption(e,t){return f("<object|string|array> [string]",[e,t],arguments.length),this[Re](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return f("<string> [string|boolean]",[e,t],arguments.length),E(this,ie,"f").deprecatedOptions[e]=t,this}describe(e,t){return f("<object|string|array> [string]",[e,t],arguments.length),this[Te](e,!0),E(this,ye,"f").describe(e,t),this}detectLocale(e){return f("<boolean>",[e],arguments.length),_(this,G,e,"f"),this}env(e){return f("[string|boolean]",[e],arguments.length),!1===e?delete E(this,ie,"f").envPrefix:E(this,ie,"f").envPrefix=e||"",this}epilogue(e){return f("<string>",[e],arguments.length),E(this,ye,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return f("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):E(this,ye,"f").example(e,t),this}exit(e,t){_(this,X,!0,"f"),_(this,V,t,"f"),E(this,K,"f")&&E(this,de,"f").process.exit(e)}exitProcess(e=!0){return f("[boolean]",[e],arguments.length),_(this,K,e,"f"),this}fail(e){if(f("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new i("Invalid first argument. Expected function or boolean 'false'");return E(this,ye,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return f("<array> [function]",[e,t],arguments.length),t?E(this,U,"f").getCompletion(e,t):new Promise(((t,n)=>{E(this,U,"f").getCompletion(e,((e,r)=>{e?n(e):t(r)}))}))}getDemandedOptions(){return f([],0),E(this,ie,"f").demandedOptions}getDemandedCommands(){return f([],0),E(this,ie,"f").demandedCommands}getDeprecatedOptions(){return f([],0),E(this,ie,"f").deprecatedOptions}getDetectLocale(){return E(this,G,"f")}getExitProcess(){return E(this,K,"f")}getGroups(){return Object.assign({},E(this,Q,"f"),E(this,ce,"f"))}getHelp(){if(_(this,X,!0,"f"),!E(this,ye,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Xe](E(this,fe,"f"),void 0,void 0,0,!0);if(p(e))return e.then((()=>E(this,ye,"f").help()))}const e=E(this,L,"f").runDefaultBuilderOn(this);if(p(e))return e.then((()=>E(this,ye,"f").help()))}return Promise.resolve(E(this,ye,"f").help())}getOptions(){return E(this,ie,"f")}getStrict(){return E(this,pe,"f")}getStrictCommands(){return E(this,me,"f")}getStrictOptions(){return E(this,ge,"f")}global(e,t){return f("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?E(this,ie,"f").local=E(this,ie,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{E(this,ie,"f").local.includes(e)||E(this,ie,"f").local.push(e)})),this}group(e,t){f("<string|array> <string>",[e,t],arguments.length);const n=E(this,ce,"f")[t]||E(this,Q,"f")[t];E(this,ce,"f")[t]&&delete E(this,ce,"f")[t];const r={};return E(this,Q,"f")[t]=(n||[]).concat(e).filter((e=>!r[e]&&(r[e]=!0))),this}hide(e){return f("<string>",[e],arguments.length),E(this,ie,"f").hiddenOptions.push(e),this}implies(e,t){return f("<string|object> [number|string|array]",[e,t],arguments.length),E(this,ve,"f").implies(e,t),this}locale(e){return f("[string]",[e],arguments.length),void 0===e?(this[ke](),E(this,de,"f").y18n.getLocale()):(_(this,G,!1,"f"),E(this,de,"f").y18n.setLocale(e),this)}middleware(e,t,n){return E(this,Z,"f").addMiddleware(e,!!t,n)}nargs(e,t){return f("<string|object|array> [number]",[e,t],arguments.length),this[Re](this.nargs.bind(this),"narg",e,t),this}normalize(e){return f("<array|string>",[e],arguments.length),this[Pe]("normalize",e),this}number(e){return f("<array|string>",[e],arguments.length),this[Pe]("number",e),this[nt](e),this}option(e,t){if(f("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[nt](e),!E(this,be,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[Fe](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),E(this,ie,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);const r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(E(this,ie,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const i=t.describe||t.description||t.desc,o=E(this,ye,"f").getDescriptions();Object.prototype.hasOwnProperty.call(o,e)&&"string"!=typeof i||this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){f("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[xe](),void 0===e&&(e=E(this,fe,"f")),"object"==typeof t&&(_(this,ue,t,"f"),t=n),"function"==typeof t&&(_(this,ae,t,"f"),t=!1),t||_(this,fe,e,"f"),E(this,ae,"f")&&_(this,K,!1,"f");const r=this[Xe](e,!!t),i=this.parsed;return E(this,U,"f").setParsed(this.parsed),p(r)?r.then((e=>(E(this,ae,"f")&&E(this,ae,"f").call(this,E(this,V,"f"),e,E(this,re,"f")),e))).catch((e=>{throw E(this,ae,"f")&&E(this,ae,"f")(e,this.parsed.argv,E(this,re,"f")),e})).finally((()=>{this[Ne](),this.parsed=i})):(E(this,ae,"f")&&E(this,ae,"f").call(this,E(this,V,"f"),r,E(this,re,"f")),this[Ne](),this.parsed=i,r)}parseAsync(e,t,n){const r=this.parse(e,t,n);return p(r)?r:Promise.resolve(r)}parseSync(e,t,n){const r=this.parse(e,t,n);if(p(r))throw new i(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return f("<object>",[e],arguments.length),_(this,se,e,"f"),this}pkgConf(e,t){f("<string> [string]",[e,t],arguments.length);let n=null;const r=this[Be](t||E(this,q,"f"));return r[e]&&"object"==typeof r[e]&&(n=a(r[e],t||E(this,q,"f"),this[Ae]()["deep-merge-config"]||!1,E(this,de,"f")),E(this,ie,"f").configObjects=(E(this,ie,"f").configObjects||[]).concat(n)),this}positional(e,t){f("<string> <object>",[e,t],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=D(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&n.includes(e)));const r=E(this,z,"f").fullCommands[E(this,z,"f").fullCommands.length-1],i=r?E(this,L,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return y(i).forEach((n=>{const r=i[n];Array.isArray(r)?-1!==r.indexOf(e)&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])})),this.group(e,E(this,ye,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return f("[boolean]",[e],arguments.length),_(this,he,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return f("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&E(this,ie,"f").narg[e]||this[Re](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return f("[string] [string]",[e,t],arguments.length),e=e||this.$0,E(this,ne,"f").log(E(this,U,"f").generateCompletionScript(e,t||E(this,H,"f")||"completion")),this}showHelp(e){if(f("[string|function]",[e],arguments.length),_(this,X,!0,"f"),!E(this,ye,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Xe](E(this,fe,"f"),void 0,void 0,0,!0);if(p(t))return t.then((()=>{E(this,ye,"f").showHelp(e)})),this}const t=E(this,L,"f").runDefaultBuilderOn(this);if(p(t))return t.then((()=>{E(this,ye,"f").showHelp(e)})),this}return E(this,ye,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return f("[boolean|string] [string]",[e,t],arguments.length),E(this,ye,"f").showHelpOnFail(e,t),this}showVersion(e){return f("[string|function]",[e],arguments.length),E(this,ye,"f").showVersion(e),this}skipValidation(e){return f("<array|string>",[e],arguments.length),this[Pe]("skipValidation",e),this}strict(e){return f("[boolean]",[e],arguments.length),_(this,pe,!1!==e,"f"),this}strictCommands(e){return f("[boolean]",[e],arguments.length),_(this,me,!1!==e,"f"),this}strictOptions(e){return f("[boolean]",[e],arguments.length),_(this,ge,!1!==e,"f"),this}string(e){return f("<array|string>",[e],arguments.length),this[Pe]("string",e),this[nt](e),this}terminalWidth(){return f([],0),E(this,de,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return f("<object>",[e],arguments.length),_(this,G,!1,"f"),E(this,de,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(f("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),void 0!==t){if(m(e,null,E(this,de,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new i(".usage() description must start with $0 if being used as alias for .command()")}return E(this,ye,"f").usage(e),this}usageConfiguration(e){return f("<object>",[e],arguments.length),_(this,De,e,"f"),this}version(e,t,n){const r="version";if(f("[boolean|string] [string] [string]",[e,t,n],arguments.length),E(this,be,"f")&&(this[_e](E(this,be,"f")),E(this,ye,"f").version(void 0),_(this,be,null,"f")),0===arguments.length)n=this[Se](),e=r;else if(1===arguments.length){if(!1===e)return this;n=e,e=r}else 2===arguments.length&&(n=t,t=void 0);return _(this,be,"string"==typeof e?e:r,"f"),t=t||E(this,ye,"f").deferY18nLookup("Show version number"),E(this,ye,"f").version(n||void 0),this.boolean(E(this,be,"f")),this.describe(E(this,be,"f"),t),this}wrap(e){return f("<number|null|undefined>",[e],arguments.length),E(this,ye,"f").wrap(e),this}[(L=new WeakMap,q=new WeakMap,z=new WeakMap,U=new WeakMap,H=new WeakMap,W=new WeakMap,V=new WeakMap,G=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,Q=new WeakMap,X=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,oe=new WeakMap,se=new WeakMap,ae=new WeakMap,ue=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap,he=new WeakMap,de=new WeakMap,pe=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=new WeakMap,De=new WeakMap,be=new WeakMap,ve=new WeakMap,we)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[Ee](){return{log:(...e)=>{this[Ye]()||console.log(...e),_(this,X,!0,"f"),E(this,re,"f").length&&_(this,re,E(this,re,"f")+"\n","f"),_(this,re,E(this,re,"f")+e.join(" "),"f")},error:(...e)=>{this[Ye]()||console.error(...e),_(this,X,!0,"f"),E(this,re,"f").length&&_(this,re,E(this,re,"f")+"\n","f"),_(this,re,E(this,re,"f")+e.join(" "),"f")}}}[_e](e){y(E(this,ie,"f")).forEach((t=>{if("configObjects"===t)return;const n=E(this,ie,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):"object"==typeof n&&delete n[e]})),delete E(this,ye,"f").getDescriptions()[e]}[Fe](e,t,n){E(this,Y,"f")[n]||(E(this,de,"f").process.emitWarning(e,t),E(this,Y,"f")[n]=!0)}[xe](){E(this,J,"f").push({options:E(this,ie,"f"),configObjects:E(this,ie,"f").configObjects.slice(0),exitProcess:E(this,K,"f"),groups:E(this,Q,"f"),strict:E(this,pe,"f"),strictCommands:E(this,me,"f"),strictOptions:E(this,ge,"f"),completionCommand:E(this,H,"f"),output:E(this,re,"f"),exitError:E(this,V,"f"),hasOutput:E(this,X,"f"),parsed:this.parsed,parseFn:E(this,ae,"f"),parseContext:E(this,ue,"f")}),E(this,ye,"f").freeze(),E(this,ve,"f").freeze(),E(this,L,"f").freeze(),E(this,Z,"f").freeze()}[Ce](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(E(this,de,"f").process.argv()[0])?E(this,de,"f").process.argv().slice(1,2):E(this,de,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[Ze](E(this,q,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),E(this,de,"f").getEnv("_")&&E(this,de,"f").getProcessArgvBin()===E(this,de,"f").getEnv("_")&&(t=E(this,de,"f").getEnv("_").replace(`${E(this,de,"f").path.dirname(E(this,de,"f").process.execPath())}/`,"")),t}[Ae](){return E(this,se,"f")}[Oe](){return E(this,De,"f")}[ke](){if(!E(this,G,"f"))return;const e=E(this,de,"f").getEnv("LC_ALL")||E(this,de,"f").getEnv("LC_MESSAGES")||E(this,de,"f").getEnv("LANG")||E(this,de,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[Se](){return this[Be]().version||"unknown"}[je](e){const t=e["--"]?e["--"]:e._;for(let e,n=0;void 0!==(e=t[n]);n++)E(this,de,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[n]=Number(e));return e}[Be](e){const t=e||"*";if(E(this,le,"f")[t])return E(this,le,"f")[t];let n={};try{let t=e||E(this,de,"f").mainFilename;!e&&E(this,de,"f").path.extname(t)&&(t=E(this,de,"f").path.dirname(t));const r=E(this,de,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));m(r,void 0,E(this,de,"f")),n=JSON.parse(E(this,de,"f").readFileSync(r,"utf8"))}catch(e){}return E(this,le,"f")[t]=n||{},E(this,le,"f")[t]}[Pe](e,t){(t=[].concat(t)).forEach((t=>{t=this[$e](t),E(this,ie,"f")[e].push(t)}))}[Re](e,t,n,r){this[Me](e,t,n,r,((e,t,n)=>{E(this,ie,"f")[e][t]=n}))}[Ie](e,t,n,r){this[Me](e,t,n,r,((e,t,n)=>{E(this,ie,"f")[e][t]=(E(this,ie,"f")[e][t]||[]).concat(n)}))}[Me](e,t,n,r,i){if(Array.isArray(n))n.forEach((t=>{e(t,r)}));else if((e=>"object"==typeof e)(n))for(const t of y(n))e(t,n[t]);else i(t,this[$e](n),r)}[$e](e){return"__proto__"===e?"___proto___":e}[Te](e,t){return this[Re](this[Te].bind(this),"key",e,t),this}[Ne](){var e,t,n,r,i,o,s,a,u,l,c,f;const h=E(this,J,"f").pop();let d;m(h,void 0,E(this,de,"f")),e=this,t=this,n=this,r=this,i=this,o=this,s=this,a=this,u=this,l=this,c=this,f=this,({options:{set value(t){_(e,ie,t,"f")}}.value,configObjects:d,exitProcess:{set value(e){_(t,K,e,"f")}}.value,groups:{set value(e){_(n,Q,e,"f")}}.value,output:{set value(e){_(r,re,e,"f")}}.value,exitError:{set value(e){_(i,V,e,"f")}}.value,hasOutput:{set value(e){_(o,X,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){_(s,pe,e,"f")}}.value,strictCommands:{set value(e){_(a,me,e,"f")}}.value,strictOptions:{set value(e){_(u,ge,e,"f")}}.value,completionCommand:{set value(e){_(l,H,e,"f")}}.value,parseFn:{set value(e){_(c,ae,e,"f")}}.value,parseContext:{set value(e){_(f,ue,e,"f")}}.value}=h),E(this,ie,"f").configObjects=d,E(this,ye,"f").unfreeze(),E(this,ve,"f").unfreeze(),E(this,L,"f").unfreeze(),E(this,Z,"f").unfreeze()}[Le](e,t){return C(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[qe].bind(this),getContext:this[ze].bind(this),getHasOutput:this[Ue].bind(this),getLoggerInstance:this[He].bind(this),getParseContext:this[We].bind(this),getParserConfiguration:this[Ae].bind(this),getUsageConfiguration:this[Oe].bind(this),getUsageInstance:this[Ve].bind(this),getValidationInstance:this[Ge].bind(this),hasParseCallback:this[Ye].bind(this),isGlobalContext:this[Ke].bind(this),postProcess:this[Je].bind(this),reset:this[Qe].bind(this),runValidation:this[et].bind(this),runYargsParserAndExecuteCommands:this[Xe].bind(this),setHasOutput:this[tt].bind(this)}}[qe](){return E(this,L,"f")}[ze](){return E(this,z,"f")}[Ue](){return E(this,X,"f")}[He](){return E(this,ne,"f")}[We](){return E(this,ue,"f")||{}}[Ve](){return E(this,ye,"f")}[Ge](){return E(this,ve,"f")}[Ye](){return!!E(this,ae,"f")}[Ke](){return E(this,te,"f")}[Je](e,t,n,r){return n||p(e)||(t||(e=this[we](e)),(this[Ae]()["parse-positional-numbers"]||void 0===this[Ae]()["parse-positional-numbers"])&&(e=this[je](e)),r&&(e=x(e,this,E(this,Z,"f").getMiddleware(),!1))),e}[Qe](e={}){_(this,ie,E(this,ie,"f")||{},"f");const t={};t.local=E(this,ie,"f").local||[],t.configObjects=E(this,ie,"f").configObjects||[];const n={};return t.local.forEach((t=>{n[t]=!0,(e[t]||[]).forEach((e=>{n[e]=!0}))})),Object.assign(E(this,ce,"f"),Object.keys(E(this,Q,"f")).reduce(((e,t)=>{const r=E(this,Q,"f")[t].filter((e=>!(e in n)));return r.length>0&&(e[t]=r),e}),{})),_(this,Q,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(E(this,ie,"f")[e]||[]).filter((e=>!n[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=D(E(this,ie,"f")[e],(e=>!n[e]))})),t.envPrefix=E(this,ie,"f").envPrefix,_(this,ie,t,"f"),_(this,ye,E(this,ye,"f")?E(this,ye,"f").reset(n):P(this,E(this,de,"f")),"f"),_(this,ve,E(this,ve,"f")?E(this,ve,"f").reset(n):function(e,t,n){const r=n.y18n.__,i=n.y18n.__n,o={nonOptionCount:function(n){const r=e.getDemandedCommands(),o=n._.length+(n["--"]?n["--"].length:0)-e.getInternalMethods().getContext().commands.length;r._&&(o<r._.min||o>r._.max)&&(o<r._.min?void 0!==r._.minMsg?t.fail(r._.minMsg?r._.minMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",o,o.toString(),r._.min.toString())):o>r._.max&&(void 0!==r._.maxMsg?t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,o.toString()).replace(/\$1/,r._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",o,o.toString(),r._.max.toString()))))},positionalCount:function(e,n){n<e&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",n,n+"",e+""))},requiredArguments:function(e,n){let r=null;for(const t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(r=r||{},r[t]=n[t]);if(r){const e=[];for(const t of Object.keys(r)){const n=r[t];n&&e.indexOf(n)<0&&e.push(n)}const n=e.length?`\n${e.join("\n")}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(r).length,Object.keys(r).join(", ")+n))}},unknownArguments:function(n,r,s,a,u=!0){var l;const c=e.getInternalMethods().getCommandInstance().getCommands(),f=[],h=e.getInternalMethods().getContext();if(Object.keys(n).forEach((t=>{N.includes(t)||Object.prototype.hasOwnProperty.call(s,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||o.isValidAndSomeAliasIsNotNew(t,r)||f.push(t)})),u&&(h.commands.length>0||c.length>0||a)&&n._.slice(h.commands.length).forEach((e=>{c.includes(""+e)||f.push(""+e)})),u){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,r=h.commands.length+t;r<n._.length&&n._.slice(r).forEach((e=>{e=String(e),h.commands.includes(e)||f.includes(e)||f.push(e)}))}f.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",f.length,f.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(n){const r=e.getInternalMethods().getCommandInstance().getCommands(),o=[],s=e.getInternalMethods().getContext();return(s.commands.length>0||r.length>0)&&n._.slice(s.commands.length).forEach((e=>{r.includes(""+e)||o.push(""+e)})),o.length>0&&(t.fail(i("Unknown command: %s","Unknown commands: %s",o.length,o.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;const r=e.parsed.newAliases;return[t,...n[t]].some((e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t]))},limitedChoices:function(n){const i=e.getOptions(),o={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach((e=>{-1===N.indexOf(e)&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach((t=>{-1===i.choices[e].indexOf(t)&&void 0!==t&&(o[e]=(o[e]||[]).concat(t))}))}));const s=Object.keys(o);if(!s.length)return;let a=r("Invalid values:");s.forEach((e=>{a+=`\n ${r("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(o[e]),t.stringifiedValues(i.choices[e]))}`})),t.fail(a)}};let s={};function a(e,t){const n=Number(t);return"number"==typeof(t=isNaN(n)?t:n)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}o.implies=function(t,r){f("<string|object> [array|number|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{o.implies(e,t[e])})):(e.global(t),s[t]||(s[t]=[]),Array.isArray(r)?r.forEach((e=>o.implies(t,e))):(m(r,void 0,n),s[t].push(r)))},o.getImplied=function(){return s},o.implications=function(e){const n=[];if(Object.keys(s).forEach((t=>{const r=t;(s[t]||[]).forEach((t=>{let i=r;const o=t;i=a(e,i),t=a(e,t),i&&!t&&n.push(` ${r} -> ${o}`)}))})),n.length){let e=`${r("Implications failed:")}\n`;n.forEach((t=>{e+=t})),t.fail(e)}};let u={};o.conflicts=function(t,n){f("<string|object> [array|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{o.conflicts(e,t[e])})):(e.global(t),u[t]||(u[t]=[]),Array.isArray(n)?n.forEach((e=>o.conflicts(t,e))):u[t].push(n))},o.getConflicting=()=>u,o.conflicting=function(i){Object.keys(i).forEach((e=>{u[e]&&u[e].forEach((n=>{n&&void 0!==i[e]&&void 0!==i[n]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,n))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((e=>{u[e].forEach((o=>{o&&void 0!==i[n.Parser.camelCase(e)]&&void 0!==i[n.Parser.camelCase(o)]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,o))}))}))},o.recommendCommands=function(e,n){n=n.sort(((e,t)=>t.length-e.length));let i=null,o=1/0;for(let t,r=0;void 0!==(t=n[r]);r++){const n=T(e,t);n<=3&&n<o&&(o=n,i=t)}i&&t.fail(r("Did you mean %s?",i))},o.reset=function(e){return s=D(s,(t=>!e[t])),u=D(u,(t=>!e[t])),o};const l=[];return o.freeze=function(){l.push({implied:s,conflicting:u})},o.unfreeze=function(){const e=l.pop();m(e,void 0,n),({implied:s,conflicting:u}=e)},o}(this,E(this,ye,"f"),E(this,de,"f")),"f"),_(this,L,E(this,L,"f")?E(this,L,"f").reset():function(e,t,n,r){return new O(e,t,n,r)}(E(this,ye,"f"),E(this,ve,"f"),E(this,Z,"f"),E(this,de,"f")),"f"),E(this,U,"f")||_(this,U,function(e,t,n,r){return new $(e,t,n,r)}(this,E(this,ye,"f"),E(this,L,"f"),E(this,de,"f")),"f"),E(this,Z,"f").reset(),_(this,H,null,"f"),_(this,re,"","f"),_(this,V,null,"f"),_(this,X,!1,"f"),this.parsed=!1,this}[Ze](e,t){return E(this,de,"f").path.relative(e,t)}[Xe](e,t,n,r=0,o=!1){let s=!!n||o;e=e||E(this,fe,"f"),E(this,ie,"f").__=E(this,de,"f").y18n.__,E(this,ie,"f").configuration=this[Ae]();const a=!!E(this,ie,"f").configuration["populate--"],u=Object.assign({},E(this,ie,"f").configuration,{"populate--":!0}),l=E(this,de,"f").Parser.detailed(e,Object.assign({},E(this,ie,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),c=Object.assign(l.argv,E(this,ue,"f"));let f;const h=l.aliases;let d=!1,m=!1;Object.keys(c).forEach((e=>{e===E(this,ee,"f")&&c[e]?d=!0:e===E(this,be,"f")&&c[e]&&(m=!0)})),c.$0=this.$0,this.parsed=l,0===r&&E(this,ye,"f").clearCachedHelpMessage();try{if(this[ke](),t)return this[Je](c,a,!!n,!1);E(this,ee,"f")&&[E(this,ee,"f")].concat(h[E(this,ee,"f")]||[]).filter((e=>e.length>1)).includes(""+c._[c._.length-1])&&(c._.pop(),d=!0),_(this,te,!1,"f");const u=E(this,L,"f").getCommands(),g=E(this,U,"f").completionKey in c,y=d||g||o;if(c._.length){if(u.length){let e;for(let t,i=r||0;void 0!==c._[i];i++){if(t=String(c._[i]),u.includes(t)&&t!==E(this,H,"f")){const e=E(this,L,"f").runCommand(t,this,l,i+1,o,d||m||o);return this[Je](e,a,!!n,!1)}if(!e&&t!==E(this,H,"f")){e=t;break}}!E(this,L,"f").hasDefaultCommand()&&E(this,he,"f")&&e&&!y&&E(this,ve,"f").recommendCommands(e,u)}E(this,H,"f")&&c._.includes(E(this,H,"f"))&&!g&&(E(this,K,"f")&&j(!0),this.showCompletionScript(),this.exit(0))}if(E(this,L,"f").hasDefaultCommand()&&!y){const e=E(this,L,"f").runCommand(null,this,l,0,o,d||m||o);return this[Je](e,a,!!n,!1)}if(g){E(this,K,"f")&&j(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${E(this,U,"f").completionKey}`)+1);return E(this,U,"f").getCompletion(t,((e,t)=>{if(e)throw new i(e.message);(t||[]).forEach((e=>{E(this,ne,"f").log(e)})),this.exit(0)})),this[Je](c,!a,!!n,!1)}if(E(this,X,"f")||(d?(E(this,K,"f")&&j(!0),s=!0,this.showHelp("log"),this.exit(0)):m&&(E(this,K,"f")&&j(!0),s=!0,E(this,ye,"f").showVersion("log"),this.exit(0))),!s&&E(this,ie,"f").skipValidation.length>0&&(s=Object.keys(c).some((e=>E(this,ie,"f").skipValidation.indexOf(e)>=0&&!0===c[e]))),!s){if(l.error)throw new i(l.error.message);if(!g){const e=this[et](h,{},l.error);n||(f=x(c,this,E(this,Z,"f").getMiddleware(),!0)),f=this[Le](e,null!=f?f:c),p(f)&&!n&&(f=f.then((()=>x(c,this,E(this,Z,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof i))throw e;E(this,ye,"f").fail(e.message,e)}return this[Je](null!=f?f:c,a,!!n,!0)}[et](e,t,n,r){const o={...this.getDemandedOptions()};return s=>{if(n)throw new i(n.message);E(this,ve,"f").nonOptionCount(s),E(this,ve,"f").requiredArguments(s,o);let a=!1;E(this,me,"f")&&(a=E(this,ve,"f").unknownCommands(s)),E(this,pe,"f")&&!a?E(this,ve,"f").unknownArguments(s,e,t,!!r):E(this,ge,"f")&&E(this,ve,"f").unknownArguments(s,e,{},!1,!1),E(this,ve,"f").limitedChoices(s),E(this,ve,"f").implications(s),E(this,ve,"f").conflicting(s)}}[tt](){_(this,X,!0,"f")}[nt](e){if("string"==typeof e)E(this,ie,"f").key[e]=!0;else for(const t of e)E(this,ie,"f").key[t]=!0}}var it,ot;const{readFileSync:st}=n(9896),{inspect:at}=n(9023),{resolve:ut}=n(6928),lt=n(9668),ct=n(7058);var ft,ht={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:n(164),findUp:n(7829),getEnv:e=>process.env[e],getCallerFile:n(2838),getProcessArgvBin:v,inspect:at,mainFilename:null!==(ot=null===(it=void 0===n(7315)?void 0:n.c[n.s])||void 0===it?void 0:it.filename)&&void 0!==ot?ot:process.cwd(),Parser:ct,path:n(6928),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e)},nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:st,require:n(7315),requireDirectory:n(9386),stringWidth:n(4813),y18n:lt({directory:ut(__dirname,"../locales"),updateFiles:!1})};const dt=(null===(ft=null===process||void 0===process?void 0:process.env)||void 0===ft?void 0:ft.YARGS_MIN_NODE_VERSION)?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<dt)throw Error(`yargs supports a minimum Node.js version of ${dt}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);const pt=n(7058);var mt,gt={applyExtends:a,cjsPlatformShim:ht,Yargs:(mt=ht,(e=[],t=mt.process.cwd(),n)=>{const r=new rt(e,t,n,mt);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}),argsert:f,isPromise:p,objFilter:D,parseCommand:l,Parser:pt,processArgv:w,YError:i};e.exports=gt},1771:(e,t,n)=>{"use strict";const{Yargs:r,processArgv:i}=n(5338);function o(e,t){const i=r(e,t,n(5600));var a;return a=i,[...Object.keys(a),...Object.getOwnPropertyNames(a.constructor.prototype)].forEach((e=>{"argv"===e?s(o,e,function(e,t){const n=Object.getOwnPropertyDescriptor(e,t);if(void 0!==n)return n.get}(a,e)):"function"==typeof a[e]?o[e]=a[e].bind(a):(s(o,"$0",(()=>a.$0)),s(o,"parsed",(()=>a.parsed)))})),i}function s(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:n})}o(i.hideBin(process.argv)),e.exports=o},7459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Chalk:()=>O,backgroundColorNames:()=>l,backgroundColors:()=>l,chalkStderr:()=>T,colorNames:()=>c,colors:()=>c,default:()=>N,foregroundColorNames:()=>u,foregroundColors:()=>u,modifierNames:()=>a,modifiers:()=>a,supportsColor:()=>w,supportsColorStderr:()=>E});const r=(e=0)=>t=>`[${t+e}m`,i=(e=0)=>t=>`[${38+e};5;${t}m`,o=(e=0)=>(t,n,r)=>`[${38+e};2;${t};${n};${r}m`,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},a=Object.keys(s.modifier),u=Object.keys(s.color),l=Object.keys(s.bgColor),c=[...u,...l],f=function(){const e=new Map;for(const[t,n]of Object.entries(s)){for(const[t,r]of Object.entries(n))s[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=s[t],e.set(r[0],r[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",s.color.ansi=r(),s.color.ansi256=i(),s.color.ansi16m=o(),s.bgColor.ansi=r(10),s.bgColor.ansi256=i(10),s.bgColor.ansi16m=o(10),Object.defineProperties(s,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;3===n.length&&(n=[...n].map((e=>e+e)).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},enumerable:!1},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,n,r;if(e>=232)t=(10*(e-232)+8)/255,n=t,r=t;else{const i=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const i=2*Math.max(t,n,r);if(0===i)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return 2===i&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:!1}}),s}(),h=require("node:process"),d=require("node:os"),p=require("node:tty");function m(e,t=(globalThis.Deno?globalThis.Deno.args:h.argv)){const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}const{env:g}=h;let y;function D(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const r=function(){if("FORCE_COLOR"in g)return"true"===g.FORCE_COLOR?1:"false"===g.FORCE_COLOR?0:0===g.FORCE_COLOR.length?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}();void 0!==r&&(y=r);const i=n?y:r;if(0===i)return 0;if(n){if(m("color=16m")||m("color=full")||m("color=truecolor"))return 3;if(m("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(e&&!t&&void 0===i)return 0;const o=i||0;if("dumb"===g.TERM)return o;if("win32"===h.platform){const e=d.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in g)return"GITHUB_ACTIONS"in g||"GITEA_ACTIONS"in g?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in g))||"codeship"===g.CI_NAME?1:o;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if("truecolor"===g.COLORTERM)return 3;if("xterm-kitty"===g.TERM)return 3;if("TERM_PROGRAM"in g){const e=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:o}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}m("no-color")||m("no-colors")||m("color=false")||m("color=never")?y=0:(m("color")||m("colors")||m("color=true")||m("color=always"))&&(y=1);const b={stdout:D({isTTY:p.isatty(1)}),stderr:D({isTTY:p.isatty(2)})};function v(e,t,n){let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.slice(o,r)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.slice(o),s}const{stdout:w,stderr:E}=b,_=Symbol("GENERATOR"),F=Symbol("STYLER"),x=Symbol("IS_EMPTY"),C=["ansi","ansi","ansi256","ansi16m"],A=Object.create(null);class O{constructor(e){return k(e)}}const k=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=w?w.level:0;e.level=void 0===t.level?n:t.level})(t,e),Object.setPrototypeOf(t,S.prototype),t};function S(e){return k(e)}Object.setPrototypeOf(S.prototype,Function.prototype);for(const[e,t]of Object.entries(f))A[e]={get(){const n=I(this,R(t.open,t.close,this[F]),this[x]);return Object.defineProperty(this,e,{value:n}),n}};A.visible={get(){const e=I(this,this[F],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const j=(e,t,n,...r)=>"rgb"===e?"ansi16m"===t?f[n].ansi16m(...r):"ansi256"===t?f[n].ansi256(f.rgbToAnsi256(...r)):f[n].ansi(f.rgbToAnsi(...r)):"hex"===e?j("rgb",t,n,...f.hexToRgb(...r)):f[n][e](...r),B=["rgb","hex","ansi256"];for(const e of B)A[e]={get(){const{level:t}=this;return function(...n){const r=R(j(e,C[t],"color",...n),f.color.close,this[F]);return I(this,r,this[x])}}},A["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=R(j(e,C[t],"bgColor",...n),f.bgColor.close,this[F]);return I(this,r,this[x])}}};const P=Object.defineProperties((()=>{}),{...A,level:{enumerable:!0,get(){return this[_].level},set(e){this[_].level=e}}}),R=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},I=(e,t,n)=>{const r=(...e)=>M(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,P),r[_]=e,r[F]=t,r[x]=n,r},M=(e,t)=>{if(e.level<=0||!t)return e[x]?"":t;let n=e[F];if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(t.includes(""))for(;void 0!==n;)t=v(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=function(e,t,n,r){let i=0,o="";do{const s="\r"===e[r-1];o+=e.slice(i,s?r-1:r)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.slice(i),o}(t,i,r,o)),r+t+i};Object.defineProperties(S.prototype,A);const $=S(),T=S({level:E?E.level:0}),N=$},8894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});const r="[",i="]",o="",s=";",a="Apple_Terminal"===process.env.TERM_PROGRAM,u={cursorTo:(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof t?r+(e+1)+"G":r+(t+1)+";"+(e+1)+"H"},cursorMove:(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let n="";return e<0?n+=r+-e+"D":e>0&&(n+=r+e+"C"),t<0?n+=r+-t+"A":t>0&&(n+=r+t+"B"),n},cursorUp:(e=1)=>r+e+"A",cursorDown:(e=1)=>r+e+"B",cursorForward:(e=1)=>r+e+"C",cursorBackward:(e=1)=>r+e+"D",cursorLeft:""};u.cursorSavePosition=a?"7":"",u.cursorRestorePosition=a?"8":"",u.cursorGetPosition="",u.cursorNextLine="",u.cursorPrevLine="",u.cursorHide="[?25l",u.cursorShow="[?25h",u.eraseLines=e=>{let t="";for(let n=0;n<e;n++)t+=u.eraseLine+(n<e-1?u.cursorUp():"");return e&&(t+=u.cursorLeft),t},u.eraseEndLine="",u.eraseStartLine="",u.eraseLine="",u.eraseDown="",u.eraseUp="",u.eraseScreen="",u.scrollUp="",u.scrollDown="",u.clearScreen="c",u.clearTerminal="win32"===process.platform?`${u.eraseScreen}${r}0f`:`${u.eraseScreen}${r}3J${r}H`,u.beep=o,u.link=(e,t)=>[i,"8",s,s,t,o,e,i,"8",s,s,o].join(""),u.image=(e,t={})=>{let n=`${i}1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),!1===t.preserveAspectRatio&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+o},u.iTerm={setCwd:(e=process.cwd())=>`${i}50;CurrentDir=${e}${o}`,annotation:(e,t={})=>{let n=`${i}1337;`;const r=void 0!==t.x,s=void 0!==t.y;if((r||s)&&(!r||!s||void 0===t.length))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?n+=(r?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):n+=e,n+o}};const l=u;var c=n(1679);function f(e,t,{target:n="stdout",...r}={}){return c[n]?l.link(e,t):!1===r.fallback?e:"function"==typeof r.fallback?r.fallback(e,t):`${e} (​${t}​)`}f.isSupported=c.stdout,f.stderr=(e,t,n={})=>f(e,t,{target:"stderr",...n}),f.stderr.isSupported=c.stderr},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@squidcloud/cli","version":"1.0.297","description":"The Squid CLI","main":"dist/index.js","scripts":{"start":"node dist/index.js","start-ts":"ts-node -r tsconfig-paths/register src/index.ts","prebuild":"rimraf dist","build":"webpack --mode=production","build:dev":"webpack --mode=development","build:prod":"webpack --mode=production","lint":"eslint . --ext .ts","link":"npm run build && chmod 755 dist/index.js && npm link","watch":"webpack --watch","deploy":"npm run build && npm pack --silent | xargs -I {} mv {} package.tgz && npm install -g package.tgz && rm -rf package.tgz","publish:public":"npm run build && npm publish --access public"},"files":["dist/**/*"],"bin":{"squid":"dist/index.js"},"keywords":[],"author":"","license":"ISC","engines":{"node":">=18.0.0"},"dependencies":{"@squidcloud/local-backend":"^1.0.297","copy-webpack-plugin":"^12.0.2","decompress":"^4.2.1","nodemon":"^3.1.3","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.95.0","zip-webpack-plugin":"^4.0.1"},"devDependencies":{"@types/decompress":"^4.2.7","@types/node":"^20.16.10","terminal-link":"^3.0.0"}}')},2108:e=>{"use strict";e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},1994:e=>{"use strict";e.exports=JSON.parse('{"name":"seek-bzip","version":"1.0.6","contributors":["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],"description":"a pure-JavaScript Node.JS module for random-access decoding bzip2 data","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/cscott/seek-bzip.git"},"license":"MIT","bin":{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},"directories":{"test":"test"},"dependencies":{"commander":"^2.8.1"},"devDependencies":{"fibers":"~1.0.6","mocha":"~2.2.5"},"scripts":{"test":"mocha"}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.c=t,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(n.s=6568),i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();