edgeone 1.6.4-beta.1 → 1.6.5

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.
@@ -564,7 +564,7 @@ ${A.join(`
564
564
  `;y.forEach(A=>{v+=A}),e.fail(v)}};let p={};s.conflicts=function(g,y){ii("<string|object> [array|string]",[g,y],arguments.length),typeof g=="object"?Object.keys(g).forEach(v=>{s.conflicts(v,g[v])}):(t.global(g),p[g]||(p[g]=[]),Array.isArray(y)?y.forEach(v=>s.conflicts(g,v)):p[g].push(y))},s.getConflicting=()=>p,s.conflicting=function(g){Object.keys(g).forEach(y=>{p[y]&&p[y].forEach(v=>{v&&g[y]!==void 0&&g[v]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",y,v))})}),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(p).forEach(y=>{p[y].forEach(v=>{v&&g[r.Parser.camelCase(y)]!==void 0&&g[r.Parser.camelCase(v)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",y,v))})})},s.recommendCommands=function(g,y){y=y.sort((E,k)=>k.length-E.length);let A=null,S=1/0;for(let E=0,k;(k=y[E])!==void 0;E++){let R=i3e(g,k);R<=3&&R<S&&(S=R,A=k)}A&&e.fail(n("Did you mean %s?",A))},s.reset=function(g){return c=UI(c,y=>!g[y]),p=UI(p,y=>!g[y]),s};let f=[];return s.freeze=function(){f.push({implied:c,conflicting:p})},s.unfreeze=function(){let g=f.pop();rg(g,void 0,r),{implied:c,conflicting:p}=g},s}var oi=function(t,e,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r},Ve=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Np,iD,_8,Ev,JA,LV,zI,sD,jV,wv,MV,_v,Ow,KA,Sv,QV,lF,pd,Ti,qV,UV,XA,aD,pF,oD,HI,$V,vs,cD,uD,lD,Os,zV,Fw,sp;function C3e(t){return(e=[],r=t.process.cwd(),n)=>{let a=new Eue(e,r,n,t);return Object.defineProperty(a,"argv",{get:()=>a.parse(),enumerable:!0}),a.help(),a.version(),a}}var o3e=Symbol("copyDoubleDash"),c3e=Symbol("copyDoubleDash"),fue=Symbol("deleteFromParserHintObject"),u3e=Symbol("emitWarning"),l3e=Symbol("freeze"),p3e=Symbol("getDollarZero"),pD=Symbol("getParserConfiguration"),f3e=Symbol("getUsageConfiguration"),due=Symbol("guessLocale"),d3e=Symbol("guessVersion"),h3e=Symbol("parsePositionalNumbers"),hue=Symbol("pkgUp"),VI=Symbol("populateParserHintArray"),fF=Symbol("populateParserHintSingleValueDictionary"),mue=Symbol("populateParserHintArrayDictionary"),gue=Symbol("populateParserHintDictionary"),Aue=Symbol("sanitizeKey"),yue=Symbol("setKey"),vue=Symbol("unfreeze"),m3e=Symbol("validateAsync"),g3e=Symbol("getCommandInstance"),A3e=Symbol("getContext"),y3e=Symbol("getHasOutput"),v3e=Symbol("getLoggerInstance"),x3e=Symbol("getParseContext"),b3e=Symbol("getUsageInstance"),E3e=Symbol("getValidationInstance"),HV=Symbol("hasParseCallback"),w3e=Symbol("isGlobalContext"),fD=Symbol("postProcess"),_3e=Symbol("rebase"),xue=Symbol("reset"),S8=Symbol("runYargsParserAndExecuteCommands"),bue=Symbol("runValidation"),S3e=Symbol("setHasOutput"),dD=Symbol("kTrackManuallySetKeys"),Eue=class{constructor(e=[],r,n,a){this.customScriptName=!1,this.parsed=!1,Np.set(this,void 0),iD.set(this,void 0),_8.set(this,{commands:[],fullCommands:[]}),Ev.set(this,null),JA.set(this,null),LV.set(this,"show-hidden"),zI.set(this,null),sD.set(this,!0),jV.set(this,{}),wv.set(this,!0),MV.set(this,[]),_v.set(this,void 0),Ow.set(this,{}),KA.set(this,!1),Sv.set(this,null),QV.set(this,!0),lF.set(this,void 0),pd.set(this,""),Ti.set(this,void 0),qV.set(this,void 0),UV.set(this,{}),XA.set(this,null),aD.set(this,null),pF.set(this,{}),oD.set(this,{}),HI.set(this,void 0),$V.set(this,!1),vs.set(this,void 0),cD.set(this,!1),uD.set(this,!1),lD.set(this,!1),Os.set(this,void 0),zV.set(this,{}),Fw.set(this,null),sp.set(this,void 0),oi(this,vs,a,"f"),oi(this,HI,e,"f"),oi(this,iD,r,"f"),oi(this,qV,n,"f"),oi(this,_v,new NV(this),"f"),this.$0=this[p3e](),this[xue](),oi(this,Np,Ve(this,Np,"f"),"f"),oi(this,Os,Ve(this,Os,"f"),"f"),oi(this,sp,Ve(this,sp,"f"),"f"),oi(this,Ti,Ve(this,Ti,"f"),"f"),Ve(this,Ti,"f").showHiddenOpt=Ve(this,LV,"f"),oi(this,lF,this[c3e](),"f")}addHelpOpt(e,r){let n="help";return ii("[string|boolean] [string]",[e,r],arguments.length),Ve(this,Sv,"f")&&(this[fue](Ve(this,Sv,"f")),oi(this,Sv,null,"f")),e===!1&&r===void 0?this:(oi(this,Sv,typeof e=="string"?e:n,"f"),this.boolean(Ve(this,Sv,"f")),this.describe(Ve(this,Sv,"f"),r||Ve(this,Os,"f").deferY18nLookup("Show help")),this)}help(e,r){return this.addHelpOpt(e,r)}addShowHiddenOpt(e,r){if(ii("[string|boolean] [string]",[e,r],arguments.length),e===!1&&r===void 0)return this;let n=typeof e=="string"?e:Ve(this,LV,"f");return this.boolean(n),this.describe(n,r||Ve(this,Os,"f").deferY18nLookup("Show hidden options")),Ve(this,Ti,"f").showHiddenOpt=n,this}showHidden(e,r){return this.addShowHiddenOpt(e,r)}alias(e,r){return ii("<object|string|array> [string|array]",[e,r],arguments.length),this[mue](this.alias.bind(this),"alias",e,r),this}array(e){return ii("<array|string>",[e],arguments.length),this[VI]("array",e),this[dD](e),this}boolean(e){return ii("<array|string>",[e],arguments.length),this[VI]("boolean",e),this[dD](e),this}check(e,r){return ii("<function> [boolean]",[e,r],arguments.length),this.middleware((n,a)=>nD(()=>e(n,a.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&Ve(this,Os,"f").fail(s.toString(),s):Ve(this,Os,"f").fail(Ve(this,vs,"f").y18n.__("Argument check failed: %s",e.toString())),n),s=>(Ve(this,Os,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(e,r){return ii("<object|string|array> [string|array]",[e,r],arguments.length),this[mue](this.choices.bind(this),"choices",e,r),this}coerce(e,r){if(ii("<object|string|array> [function]",[e,r],arguments.length),Array.isArray(e)){if(!r)throw new Ru("coerce callback must be provided");for(let n of e)this.coerce(n,r);return this}else if(typeof e=="object"){for(let n of Object.keys(e))this.coerce(n,e[n]);return this}if(!r)throw new Ru("coerce callback must be provided");return Ve(this,Ti,"f").key[e]=!0,Ve(this,_v,"f").addCoerceMiddleware((n,a)=>{let s;return Object.prototype.hasOwnProperty.call(n,e)?nD(()=>(s=a.getAliases(),r(n[e])),u=>{n[e]=u;let p=a.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[e]&&p!==!0)for(let f of s[e])n[f]=u;return n},u=>{throw new Ru(u.message)}):n},e),this}conflicts(e,r){return ii("<string|object> [string|array]",[e,r],arguments.length),Ve(this,sp,"f").conflicts(e,r),this}config(e="config",r,n){return ii("[object|string] [string|function] [function]",[e,r,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=b8(e,Ve(this,iD,"f"),this[pD]()["deep-merge-config"]||!1,Ve(this,vs,"f")),Ve(this,Ti,"f").configObjects=(Ve(this,Ti,"f").configObjects||[]).concat(e),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(e,r||Ve(this,Os,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(a=>{Ve(this,Ti,"f").config[a]=n||!0}),this)}completion(e,r,n){return ii("[string] [string|boolean|function] [function]",[e,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),oi(this,JA,e||Ve(this,JA,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(Ve(this,JA,"f"),r),n&&Ve(this,Ev,"f").registerFunction(n),this}command(e,r,n,a,s,c){return ii("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,r,n,a,s,c],arguments.length),Ve(this,Np,"f").addHandler(e,r,n,a,s,c),this}commands(e,r,n,a,s,c){return this.command(e,r,n,a,s,c)}commandDir(e,r){ii("<string> [object]",[e,r],arguments.length);let n=Ve(this,qV,"f")||Ve(this,vs,"f").require;return Ve(this,Np,"f").addDirectory(e,n,Ve(this,vs,"f").getCallerFile(),r),this}count(e){return ii("<array|string>",[e],arguments.length),this[VI]("count",e),this[dD](e),this}default(e,r,n){return ii("<object|string|array> [*] [string]",[e,r,n],arguments.length),n&&(oue(e,Ve(this,vs,"f")),Ve(this,Ti,"f").defaultDescription[e]=n),typeof r=="function"&&(oue(e,Ve(this,vs,"f")),Ve(this,Ti,"f").defaultDescription[e]||(Ve(this,Ti,"f").defaultDescription[e]=Ve(this,Os,"f").functionDescription(r)),r=r.call()),this[fF](this.default.bind(this),"default",e,r),this}defaults(e,r,n){return this.default(e,r,n)}demandCommand(e=1,r,n,a){return ii("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,r,n,a],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),Ve(this,Ti,"f").demandedCommands._={min:e,max:r,minMsg:n,maxMsg:a},this}demand(e,r,n){return Array.isArray(r)?(r.forEach(a=>{rg(n,!0,Ve(this,vs,"f")),this.demandOption(a,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof e=="number"?(rg(n,!0,Ve(this,vs,"f")),this.demandCommand(e,r,n,n)):Array.isArray(e)?e.forEach(a=>{rg(n,!0,Ve(this,vs,"f")),this.demandOption(a,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,r){return ii("<object|string|array> [string]",[e,r],arguments.length),this[fF](this.demandOption.bind(this),"demandedOptions",e,r),this}deprecateOption(e,r){return ii("<string> [string|boolean]",[e,r],arguments.length),Ve(this,Ti,"f").deprecatedOptions[e]=r,this}describe(e,r){return ii("<object|string|array> [string]",[e,r],arguments.length),this[yue](e,!0),Ve(this,Os,"f").describe(e,r),this}detectLocale(e){return ii("<boolean>",[e],arguments.length),oi(this,sD,e,"f"),this}env(e){return ii("[string|boolean]",[e],arguments.length),e===!1?delete Ve(this,Ti,"f").envPrefix:Ve(this,Ti,"f").envPrefix=e||"",this}epilogue(e){return ii("<string>",[e],arguments.length),Ve(this,Os,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,r){return ii("<string|array> [string]",[e,r],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):Ve(this,Os,"f").example(e,r),this}exit(e,r){oi(this,KA,!0,"f"),oi(this,zI,r,"f"),Ve(this,wv,"f")&&Ve(this,vs,"f").process.exit(e)}exitProcess(e=!0){return ii("[boolean]",[e],arguments.length),oi(this,wv,e,"f"),this}fail(e){if(ii("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new Ru("Invalid first argument. Expected function or boolean 'false'");return Ve(this,Os,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,r){return ii("<array> [function]",[e,r],arguments.length),r?Ve(this,Ev,"f").getCompletion(e,r):new Promise((n,a)=>{Ve(this,Ev,"f").getCompletion(e,(s,c)=>{s?a(s):n(c)})})}getDemandedOptions(){return ii([],0),Ve(this,Ti,"f").demandedOptions}getDemandedCommands(){return ii([],0),Ve(this,Ti,"f").demandedCommands}getDeprecatedOptions(){return ii([],0),Ve(this,Ti,"f").deprecatedOptions}getDetectLocale(){return Ve(this,sD,"f")}getExitProcess(){return Ve(this,wv,"f")}getGroups(){return Object.assign({},Ve(this,Ow,"f"),Ve(this,oD,"f"))}getHelp(){if(oi(this,KA,!0,"f"),!Ve(this,Os,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[S8](Ve(this,HI,"f"),void 0,void 0,0,!0);if(Nu(r))return r.then(()=>Ve(this,Os,"f").help())}let e=Ve(this,Np,"f").runDefaultBuilderOn(this);if(Nu(e))return e.then(()=>Ve(this,Os,"f").help())}return Promise.resolve(Ve(this,Os,"f").help())}getOptions(){return Ve(this,Ti,"f")}getStrict(){return Ve(this,cD,"f")}getStrictCommands(){return Ve(this,uD,"f")}getStrictOptions(){return Ve(this,lD,"f")}global(e,r){return ii("<string|array> [boolean]",[e,r],arguments.length),e=[].concat(e),r!==!1?Ve(this,Ti,"f").local=Ve(this,Ti,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{Ve(this,Ti,"f").local.includes(n)||Ve(this,Ti,"f").local.push(n)}),this}group(e,r){ii("<string|array> <string>",[e,r],arguments.length);let n=Ve(this,oD,"f")[r]||Ve(this,Ow,"f")[r];Ve(this,oD,"f")[r]&&delete Ve(this,oD,"f")[r];let a={};return Ve(this,Ow,"f")[r]=(n||[]).concat(e).filter(s=>a[s]?!1:a[s]=!0),this}hide(e){return ii("<string>",[e],arguments.length),Ve(this,Ti,"f").hiddenOptions.push(e),this}implies(e,r){return ii("<string|object> [number|string|array]",[e,r],arguments.length),Ve(this,sp,"f").implies(e,r),this}locale(e){return ii("[string]",[e],arguments.length),e===void 0?(this[due](),Ve(this,vs,"f").y18n.getLocale()):(oi(this,sD,!1,"f"),Ve(this,vs,"f").y18n.setLocale(e),this)}middleware(e,r,n){return Ve(this,_v,"f").addMiddleware(e,!!r,n)}nargs(e,r){return ii("<string|object|array> [number]",[e,r],arguments.length),this[fF](this.nargs.bind(this),"narg",e,r),this}normalize(e){return ii("<array|string>",[e],arguments.length),this[VI]("normalize",e),this}number(e){return ii("<array|string>",[e],arguments.length),this[VI]("number",e),this[dD](e),this}option(e,r){if(ii("<string|object> [object]",[e,r],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof r!="object"&&(r={}),this[dD](e),Ve(this,Fw,"f")&&(e==="version"||(r==null?void 0:r.alias)==="version")&&this[u3e](['"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(`
565
565
  `),void 0,"versionWarning"),Ve(this,Ti,"f").key[e]=!0,r.alias&&this.alias(e,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(e,n);let a=r.demand||r.required||r.require;a&&this.demand(e,a),r.demandOption&&this.demandOption(e,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(e,r.conflicts),"default"in r&&this.default(e,r.default),r.implies!==void 0&&this.implies(e,r.implies),r.nargs!==void 0&&this.nargs(e,r.nargs),r.config&&this.config(e,r.configParser),r.normalize&&this.normalize(e),r.choices&&this.choices(e,r.choices),r.coerce&&this.coerce(e,r.coerce),r.group&&this.group(e,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(e),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(e),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(e),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(e),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(e),typeof r.global=="boolean"&&this.global(e,r.global),r.defaultDescription&&(Ve(this,Ti,"f").defaultDescription[e]=r.defaultDescription),r.skipValidation&&this.skipValidation(e);let s=r.describe||r.description||r.desc,c=Ve(this,Os,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(c,e)||typeof s=="string")&&this.describe(e,s),r.hidden&&this.hide(e),r.requiresArg&&this.requiresArg(e)}return this}options(e,r){return this.option(e,r)}parse(e,r,n){ii("[string|array] [function|boolean|object] [function]",[e,r,n],arguments.length),this[l3e](),typeof e>"u"&&(e=Ve(this,HI,"f")),typeof r=="object"&&(oi(this,aD,r,"f"),r=n),typeof r=="function"&&(oi(this,XA,r,"f"),r=!1),r||oi(this,HI,e,"f"),Ve(this,XA,"f")&&oi(this,wv,!1,"f");let a=this[S8](e,!!r),s=this.parsed;return Ve(this,Ev,"f").setParsed(this.parsed),Nu(a)?a.then(c=>(Ve(this,XA,"f")&&Ve(this,XA,"f").call(this,Ve(this,zI,"f"),c,Ve(this,pd,"f")),c)).catch(c=>{throw Ve(this,XA,"f")&&Ve(this,XA,"f")(c,this.parsed.argv,Ve(this,pd,"f")),c}).finally(()=>{this[vue](),this.parsed=s}):(Ve(this,XA,"f")&&Ve(this,XA,"f").call(this,Ve(this,zI,"f"),a,Ve(this,pd,"f")),this[vue](),this.parsed=s,a)}parseAsync(e,r,n){let a=this.parse(e,r,n);return Nu(a)?a:Promise.resolve(a)}parseSync(e,r,n){let a=this.parse(e,r,n);if(Nu(a))throw new Ru(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return a}parserConfiguration(e){return ii("<object>",[e],arguments.length),oi(this,UV,e,"f"),this}pkgConf(e,r){ii("<string> [string]",[e,r],arguments.length);let n=null,a=this[hue](r||Ve(this,iD,"f"));return a[e]&&typeof a[e]=="object"&&(n=b8(a[e],r||Ve(this,iD,"f"),this[pD]()["deep-merge-config"]||!1,Ve(this,vs,"f")),Ve(this,Ti,"f").configObjects=(Ve(this,Ti,"f").configObjects||[]).concat(n)),this}positional(e,r){ii("<string> <object>",[e,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=UI(r,(c,u)=>c==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(c));let a=Ve(this,_8,"f").fullCommands[Ve(this,_8,"f").fullCommands.length-1],s=a?Ve(this,Np,"f").cmdToParseOptions(a):{array:[],alias:{},default:{},demand:{}};return cF(s).forEach(c=>{let u=s[c];Array.isArray(u)?u.indexOf(e)!==-1&&(r[c]=!0):u[e]&&!(c in r)&&(r[c]=u[e])}),this.group(e,Ve(this,Os,"f").getPositionalGroupName()),this.option(e,r)}recommendCommands(e=!0){return ii("[boolean]",[e],arguments.length),oi(this,$V,e,"f"),this}required(e,r,n){return this.demand(e,r,n)}require(e,r,n){return this.demand(e,r,n)}requiresArg(e){return ii("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&Ve(this,Ti,"f").narg[e]?this:(this[fF](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,r){return ii("[string] [string]",[e,r],arguments.length),e=e||this.$0,Ve(this,lF,"f").log(Ve(this,Ev,"f").generateCompletionScript(e,r||Ve(this,JA,"f")||"completion")),this}showHelp(e){if(ii("[string|function]",[e],arguments.length),oi(this,KA,!0,"f"),!Ve(this,Os,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[S8](Ve(this,HI,"f"),void 0,void 0,0,!0);if(Nu(n))return n.then(()=>{Ve(this,Os,"f").showHelp(e)}),this}let r=Ve(this,Np,"f").runDefaultBuilderOn(this);if(Nu(r))return r.then(()=>{Ve(this,Os,"f").showHelp(e)}),this}return Ve(this,Os,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,r){return ii("[boolean|string] [string]",[e,r],arguments.length),Ve(this,Os,"f").showHelpOnFail(e,r),this}showVersion(e){return ii("[string|function]",[e],arguments.length),Ve(this,Os,"f").showVersion(e),this}skipValidation(e){return ii("<array|string>",[e],arguments.length),this[VI]("skipValidation",e),this}strict(e){return ii("[boolean]",[e],arguments.length),oi(this,cD,e!==!1,"f"),this}strictCommands(e){return ii("[boolean]",[e],arguments.length),oi(this,uD,e!==!1,"f"),this}strictOptions(e){return ii("[boolean]",[e],arguments.length),oi(this,lD,e!==!1,"f"),this}string(e){return ii("<array|string>",[e],arguments.length),this[VI]("string",e),this[dD](e),this}terminalWidth(){return ii([],0),Ve(this,vs,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return ii("<object>",[e],arguments.length),oi(this,sD,!1,"f"),Ve(this,vs,"f").y18n.updateLocale(e),this}usage(e,r,n,a){if(ii("<string|null|undefined> [string|boolean] [function|object] [function]",[e,r,n,a],arguments.length),r!==void 0){if(rg(e,null,Ve(this,vs,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,r,n,a);throw new Ru(".usage() description must start with $0 if being used as alias for .command()")}else return Ve(this,Os,"f").usage(e),this}usageConfiguration(e){return ii("<object>",[e],arguments.length),oi(this,zV,e,"f"),this}version(e,r,n){let a="version";if(ii("[boolean|string] [string] [string]",[e,r,n],arguments.length),Ve(this,Fw,"f")&&(this[fue](Ve(this,Fw,"f")),Ve(this,Os,"f").version(void 0),oi(this,Fw,null,"f")),arguments.length===0)n=this[d3e](),e=a;else if(arguments.length===1){if(e===!1)return this;n=e,e=a}else arguments.length===2&&(n=r,r=void 0);return oi(this,Fw,typeof e=="string"?e:a,"f"),r=r||Ve(this,Os,"f").deferY18nLookup("Show version number"),Ve(this,Os,"f").version(n||void 0),this.boolean(Ve(this,Fw,"f")),this.describe(Ve(this,Fw,"f"),r),this}wrap(e){return ii("<number|null|undefined>",[e],arguments.length),Ve(this,Os,"f").wrap(e),this}[(Np=new WeakMap,iD=new WeakMap,_8=new WeakMap,Ev=new WeakMap,JA=new WeakMap,LV=new WeakMap,zI=new WeakMap,sD=new WeakMap,jV=new WeakMap,wv=new WeakMap,MV=new WeakMap,_v=new WeakMap,Ow=new WeakMap,KA=new WeakMap,Sv=new WeakMap,QV=new WeakMap,lF=new WeakMap,pd=new WeakMap,Ti=new WeakMap,qV=new WeakMap,UV=new WeakMap,XA=new WeakMap,aD=new WeakMap,pF=new WeakMap,oD=new WeakMap,HI=new WeakMap,$V=new WeakMap,vs=new WeakMap,cD=new WeakMap,uD=new WeakMap,lD=new WeakMap,Os=new WeakMap,zV=new WeakMap,Fw=new WeakMap,sp=new WeakMap,o3e)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[c3e](){return{log:(...e)=>{this[HV]()||console.log(...e),oi(this,KA,!0,"f"),Ve(this,pd,"f").length&&oi(this,pd,Ve(this,pd,"f")+`
566
566
  `,"f"),oi(this,pd,Ve(this,pd,"f")+e.join(" "),"f")},error:(...e)=>{this[HV]()||console.error(...e),oi(this,KA,!0,"f"),Ve(this,pd,"f").length&&oi(this,pd,Ve(this,pd,"f")+`
567
- `,"f"),oi(this,pd,Ve(this,pd,"f")+e.join(" "),"f")}}}[fue](e){cF(Ve(this,Ti,"f")).forEach(r=>{if((a=>a==="configObjects")(r))return;let n=Ve(this,Ti,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete Ve(this,Os,"f").getDescriptions()[e]}[u3e](e,r,n){Ve(this,jV,"f")[n]||(Ve(this,vs,"f").process.emitWarning(e,r),Ve(this,jV,"f")[n]=!0)}[l3e](){Ve(this,MV,"f").push({options:Ve(this,Ti,"f"),configObjects:Ve(this,Ti,"f").configObjects.slice(0),exitProcess:Ve(this,wv,"f"),groups:Ve(this,Ow,"f"),strict:Ve(this,cD,"f"),strictCommands:Ve(this,uD,"f"),strictOptions:Ve(this,lD,"f"),completionCommand:Ve(this,JA,"f"),output:Ve(this,pd,"f"),exitError:Ve(this,zI,"f"),hasOutput:Ve(this,KA,"f"),parsed:this.parsed,parseFn:Ve(this,XA,"f"),parseContext:Ve(this,aD,"f")}),Ve(this,Os,"f").freeze(),Ve(this,sp,"f").freeze(),Ve(this,Np,"f").freeze(),Ve(this,_v,"f").freeze()}[p3e](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(Ve(this,vs,"f").process.argv()[0])?r=Ve(this,vs,"f").process.argv().slice(1,2):r=Ve(this,vs,"f").process.argv().slice(0,1),e=r.map(n=>{let a=this[_3e](Ve(this,iD,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&a.length<n.length?a:n}).join(" ").trim(),Ve(this,vs,"f").getEnv("_")&&Ve(this,vs,"f").getProcessArgvBin()===Ve(this,vs,"f").getEnv("_")&&(e=Ve(this,vs,"f").getEnv("_").replace(`${Ve(this,vs,"f").path.dirname(Ve(this,vs,"f").process.execPath())}/`,"")),e}[pD](){return Ve(this,UV,"f")}[f3e](){return Ve(this,zV,"f")}[due](){if(!Ve(this,sD,"f"))return;let e=Ve(this,vs,"f").getEnv("LC_ALL")||Ve(this,vs,"f").getEnv("LC_MESSAGES")||Ve(this,vs,"f").getEnv("LANG")||Ve(this,vs,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[d3e](){return this[hue]().version||"unknown"}[h3e](e){let r=e["--"]?e["--"]:e._;for(let n=0,a;(a=r[n])!==void 0;n++)Ve(this,vs,"f").Parser.looksLikeNumber(a)&&Number.isSafeInteger(Math.floor(parseFloat(`${a}`)))&&(r[n]=Number(a));return e}[hue](e){let r=e||"*";if(Ve(this,pF,"f")[r])return Ve(this,pF,"f")[r];let n={};try{let a=e||Ve(this,vs,"f").mainFilename;!e&&Ve(this,vs,"f").path.extname(a)&&(a=Ve(this,vs,"f").path.dirname(a));let s=Ve(this,vs,"f").findUp(a,(c,u)=>{if(u.includes("package.json"))return"package.json"});rg(s,void 0,Ve(this,vs,"f")),n=JSON.parse(Ve(this,vs,"f").readFileSync(s,"utf8"))}catch{}return Ve(this,pF,"f")[r]=n||{},Ve(this,pF,"f")[r]}[VI](e,r){r=[].concat(r),r.forEach(n=>{n=this[Aue](n),Ve(this,Ti,"f")[e].push(n)})}[fF](e,r,n,a){this[gue](e,r,n,a,(s,c,u)=>{Ve(this,Ti,"f")[s][c]=u})}[mue](e,r,n,a){this[gue](e,r,n,a,(s,c,u)=>{Ve(this,Ti,"f")[s][c]=(Ve(this,Ti,"f")[s][c]||[]).concat(u)})}[gue](e,r,n,a,s){if(Array.isArray(n))n.forEach(c=>{e(c,a)});else if((c=>typeof c=="object")(n))for(let c of cF(n))e(c,n[c]);else s(r,this[Aue](n),a)}[Aue](e){return e==="__proto__"?"___proto___":e}[yue](e,r){return this[fF](this[yue].bind(this),"key",e,r),this}[vue](){var e,r,n,a,s,c,u,p,f,h,g,y;let v=Ve(this,MV,"f").pop();rg(v,void 0,Ve(this,vs,"f"));let A;e=this,r=this,n=this,a=this,s=this,c=this,u=this,p=this,f=this,h=this,g=this,y=this,{options:{set value(S){oi(e,Ti,S,"f")}}.value,configObjects:A,exitProcess:{set value(S){oi(r,wv,S,"f")}}.value,groups:{set value(S){oi(n,Ow,S,"f")}}.value,output:{set value(S){oi(a,pd,S,"f")}}.value,exitError:{set value(S){oi(s,zI,S,"f")}}.value,hasOutput:{set value(S){oi(c,KA,S,"f")}}.value,parsed:this.parsed,strict:{set value(S){oi(u,cD,S,"f")}}.value,strictCommands:{set value(S){oi(p,uD,S,"f")}}.value,strictOptions:{set value(S){oi(f,lD,S,"f")}}.value,completionCommand:{set value(S){oi(h,JA,S,"f")}}.value,parseFn:{set value(S){oi(g,XA,S,"f")}}.value,parseContext:{set value(S){oi(y,aD,S,"f")}}.value}=v,Ve(this,Ti,"f").configObjects=A,Ve(this,Os,"f").unfreeze(),Ve(this,sp,"f").unfreeze(),Ve(this,Np,"f").unfreeze(),Ve(this,_v,"f").unfreeze()}[m3e](e,r){return nD(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[g3e].bind(this),getContext:this[A3e].bind(this),getHasOutput:this[y3e].bind(this),getLoggerInstance:this[v3e].bind(this),getParseContext:this[x3e].bind(this),getParserConfiguration:this[pD].bind(this),getUsageConfiguration:this[f3e].bind(this),getUsageInstance:this[b3e].bind(this),getValidationInstance:this[E3e].bind(this),hasParseCallback:this[HV].bind(this),isGlobalContext:this[w3e].bind(this),postProcess:this[fD].bind(this),reset:this[xue].bind(this),runValidation:this[bue].bind(this),runYargsParserAndExecuteCommands:this[S8].bind(this),setHasOutput:this[S3e].bind(this)}}[g3e](){return Ve(this,Np,"f")}[A3e](){return Ve(this,_8,"f")}[y3e](){return Ve(this,KA,"f")}[v3e](){return Ve(this,lF,"f")}[x3e](){return Ve(this,aD,"f")||{}}[b3e](){return Ve(this,Os,"f")}[E3e](){return Ve(this,sp,"f")}[HV](){return!!Ve(this,XA,"f")}[w3e](){return Ve(this,QV,"f")}[fD](e,r,n,a){return n||Nu(e)||(r||(e=this[o3e](e)),(this[pD]()["parse-positional-numbers"]||this[pD]()["parse-positional-numbers"]===void 0)&&(e=this[h3e](e)),a&&(e=rD(e,this,Ve(this,_v,"f").getMiddleware(),!1))),e}[xue](e={}){oi(this,Ti,Ve(this,Ti,"f")||{},"f");let r={};r.local=Ve(this,Ti,"f").local||[],r.configObjects=Ve(this,Ti,"f").configObjects||[];let n={};r.local.forEach(c=>{n[c]=!0,(e[c]||[]).forEach(u=>{n[u]=!0})}),Object.assign(Ve(this,oD,"f"),Object.keys(Ve(this,Ow,"f")).reduce((c,u)=>{let p=Ve(this,Ow,"f")[u].filter(f=>!(f in n));return p.length>0&&(c[u]=p),c},{})),oi(this,Ow,{},"f");let a=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return a.forEach(c=>{r[c]=(Ve(this,Ti,"f")[c]||[]).filter(u=>!n[u])}),s.forEach(c=>{r[c]=UI(Ve(this,Ti,"f")[c],u=>!n[u])}),r.envPrefix=Ve(this,Ti,"f").envPrefix,oi(this,Ti,r,"f"),oi(this,Os,Ve(this,Os,"f")?Ve(this,Os,"f").reset(n):e3e(this,Ve(this,vs,"f")),"f"),oi(this,sp,Ve(this,sp,"f")?Ve(this,sp,"f").reset(n):a3e(this,Ve(this,Os,"f"),Ve(this,vs,"f")),"f"),oi(this,Np,Ve(this,Np,"f")?Ve(this,Np,"f").reset():K4e(Ve(this,Os,"f"),Ve(this,sp,"f"),Ve(this,_v,"f"),Ve(this,vs,"f")),"f"),Ve(this,Ev,"f")||oi(this,Ev,n3e(this,Ve(this,Os,"f"),Ve(this,Np,"f"),Ve(this,vs,"f")),"f"),Ve(this,_v,"f").reset(),oi(this,JA,null,"f"),oi(this,pd,"","f"),oi(this,zI,null,"f"),oi(this,KA,!1,"f"),this.parsed=!1,this}[_3e](e,r){return Ve(this,vs,"f").path.relative(e,r)}[S8](e,r,n,a=0,s=!1){let c=!!n||s;e=e||Ve(this,HI,"f"),Ve(this,Ti,"f").__=Ve(this,vs,"f").y18n.__,Ve(this,Ti,"f").configuration=this[pD]();let u=!!Ve(this,Ti,"f").configuration["populate--"],p=Object.assign({},Ve(this,Ti,"f").configuration,{"populate--":!0}),f=Ve(this,vs,"f").Parser.detailed(e,Object.assign({},Ve(this,Ti,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),h=Object.assign(f.argv,Ve(this,aD,"f")),g,y=f.aliases,v=!1,A=!1;Object.keys(h).forEach(S=>{S===Ve(this,Sv,"f")&&h[S]?v=!0:S===Ve(this,Fw,"f")&&h[S]&&(A=!0)}),h.$0=this.$0,this.parsed=f,a===0&&Ve(this,Os,"f").clearCachedHelpMessage();try{if(this[due](),r)return this[fD](h,u,!!n,!1);Ve(this,Sv,"f")&&[Ve(this,Sv,"f")].concat(y[Ve(this,Sv,"f")]||[]).filter(j=>j.length>1).includes(""+h._[h._.length-1])&&(h._.pop(),v=!0),oi(this,QV,!1,"f");let S=Ve(this,Np,"f").getCommands(),E=Ve(this,Ev,"f").completionKey in h,k=v||E||s;if(h._.length){if(S.length){let R;for(let j=a||0,L;h._[j]!==void 0;j++)if(L=String(h._[j]),S.includes(L)&&L!==Ve(this,JA,"f")){let $=Ve(this,Np,"f").runCommand(L,this,f,j+1,s,v||A||s);return this[fD]($,u,!!n,!1)}else if(!R&&L!==Ve(this,JA,"f")){R=L;break}!Ve(this,Np,"f").hasDefaultCommand()&&Ve(this,$V,"f")&&R&&!k&&Ve(this,sp,"f").recommendCommands(R,S)}Ve(this,JA,"f")&&h._.includes(Ve(this,JA,"f"))&&!E&&(Ve(this,wv,"f")&&$I(!0),this.showCompletionScript(),this.exit(0))}if(Ve(this,Np,"f").hasDefaultCommand()&&!k){let R=Ve(this,Np,"f").runCommand(null,this,f,0,s,v||A||s);return this[fD](R,u,!!n,!1)}if(E){Ve(this,wv,"f")&&$I(!0),e=[].concat(e);let R=e.slice(e.indexOf(`--${Ve(this,Ev,"f").completionKey}`)+1);return Ve(this,Ev,"f").getCompletion(R,(j,L)=>{if(j)throw new Ru(j.message);(L||[]).forEach($=>{Ve(this,lF,"f").log($)}),this.exit(0)}),this[fD](h,!u,!!n,!1)}if(Ve(this,KA,"f")||(v?(Ve(this,wv,"f")&&$I(!0),c=!0,this.showHelp("log"),this.exit(0)):A&&(Ve(this,wv,"f")&&$I(!0),c=!0,Ve(this,Os,"f").showVersion("log"),this.exit(0))),!c&&Ve(this,Ti,"f").skipValidation.length>0&&(c=Object.keys(h).some(R=>Ve(this,Ti,"f").skipValidation.indexOf(R)>=0&&h[R]===!0)),!c){if(f.error)throw new Ru(f.error.message);if(!E){let R=this[bue](y,{},f.error);n||(g=rD(h,this,Ve(this,_v,"f").getMiddleware(),!0)),g=this[m3e](R,g!=null?g:h),Nu(g)&&!n&&(g=g.then(()=>rD(h,this,Ve(this,_v,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof Ru)Ve(this,Os,"f").fail(S.message,S);else throw S}return this[fD](g!=null?g:h,u,!!n,!0)}[bue](e,r,n,a){let s={...this.getDemandedOptions()};return c=>{if(n)throw new Ru(n.message);Ve(this,sp,"f").nonOptionCount(c),Ve(this,sp,"f").requiredArguments(c,s);let u=!1;Ve(this,uD,"f")&&(u=Ve(this,sp,"f").unknownCommands(c)),Ve(this,cD,"f")&&!u?Ve(this,sp,"f").unknownArguments(c,e,r,!!a):Ve(this,lD,"f")&&Ve(this,sp,"f").unknownArguments(c,e,{},!1,!1),Ve(this,sp,"f").limitedChoices(c),Ve(this,sp,"f").implications(c),Ve(this,sp,"f").conflicting(c)}}[S3e](){oi(this,KA,!0,"f")}[dD](e){if(typeof e=="string")Ve(this,Ti,"f").key[e]=!0;else for(let r of e)Ve(this,Ti,"f").key[r]=!0}};function X4e(t){return!!t&&typeof t.getInternalMethods=="function"}var dtr=C3e(aue),I3e=dtr;var mb={name:"edgeone",version:"1.6.4-beta.1",description:"Command-line interface for TencentCloud Pages Functions",bin:{edgeone:"./edgeone-bin/edgeone.js"},files:["./edgeone-bin/edgeone.js","./edgeone-dist/cli.js","./edgeone-dist/pages/templates","./edgeone-dist/pages/dev/runner-worker.js","./edgeone-dist/pages/observability-python/**","./edgeone-dist/libs-pages-blob-python/**","./edgeone-dist/libs-pages-agent-toolkit/**","./edgeone-dist/studio/**","./libs-pages-blob-python/**","./libs-pages-agent-toolkit/**"],author:"",keywords:["tencent","edgeone","edgefunctions","edgeone","cli","typescript"],scripts:{clean:"rimraf ./edgeone-dist ./edgeone-bin ./libs-node-ai ./libs-kv-client",bundle:"node -r esbuild-register ./scripts/bundle.ts",watch:"node -r esbuild-register ./scripts/bundle.ts watch",build:"npm run clean && npm run build:pages-ai && npm run build:kv-client && npm run prepare:blob-wheel && npm run prepare:agent-toolkit-wheel && npm run bundle","build:pages-ai":"node ./scripts/build-pages-ai.js","build:kv-client":"node ./scripts/build-kv-client.js","prepare:blob-wheel":"node ./scripts/prepare-pages-blob-wheel.js","prepare:agent-toolkit-wheel":"node ./scripts/prepare-pages-agent-toolkit-wheel.js","verify:publish-assets":"node ./scripts/verify-publish-assets.js","upload:agent-version-manifest":"node ./scripts/upload-agent-version-manifest.js",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}" "scripts/**/*.{ts,js}" "*.{json,md}"',prepack:"npm run build && npm run verify:publish-assets",prepublishOnly:"npm run build && npm run verify:publish-assets",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:observability":"vitest run --config src/agent/observability/node/tests/vitest.config.ts && cd src/agent/observability/python && uv run pytest tests/ -q"},dependencies:{"@edgeone/framework-detect":"^0.0.2","@edgeone/is-spa":"^0.0.3","@edgeone/nuxt-pages":"1.1.0","@edgeone/opennextjs-pages":"0.2.4","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"0.0.12",archiver:"^7.0.1",chokidar:"^4.0.1","common-path-prefix":"^1.0.0","cos-nodejs-sdk-v5":"^2.14.7","cross-spawn":"^7.0.6",crypto:"^1.0.1","detect-port":"^2.1.0",esbuild:"^0.19.2","esbuild-plugin-polyfill-node":"^0.3.0","esbuild-plugin-vue":"^0.2.4","fast-glob":"^3.3.0","fs-extra":"^11.3.1",giget:"^2.0.0","ink-table":"^3.1.0",inquirer:"^8.2.4",install:"^0.13.0",lodash:"^4.17.21","mime-types":"^3.0.1",minimatch:"^9.0.5","node-persist":"^4.0.3",npm:"^10.9.1",open:"^8.4.2","p-map":"^5.5.0","parse-gitignore":"^2.0.0",portfinder:"^1.0.32",undici:"^5.29.0",vitest:"^4.0.17"},devDependencies:{"@babel/generator":"^7.28.0","@babel/parser":"^7.28.0","@babel/traverse":"^7.28.0","@babel/types":"^7.28.0","@opentelemetry/api":"^1.9.1","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/otlp-transformer":"^0.55.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/sdk-trace-node":"^1.30.1","@opentelemetry/semantic-conventions":"^1.40.0","@tencent/capi-nodejs-sdk":"^2.3.2","@types/http-proxy":"^1.17.12","@types/inquirer":"^9.0.8","@types/ip":"^1.1.0","@types/lodash":"^4.14.198","@types/prompts":"^2.4.4","@types/react":"^17.0.2","@types/uuid":"^9.0.3","@types/ws":"^8.5.7","@types/yargs":"^17.0.24","@vitest/coverage-v8":"^4.0.17",axios:"^1.7.9",chalk:"^5.3.0",cookie:"^1.0.2",dotenv:"^16.3.1","esbuild-register":"^3.6.0",execa:"^7.1.1","http-proxy":"^1.18.1",husky:"^8.0.3",ink:"^3.2.0",ip:"^2.0.1",json5:"^2.2.3","lint-staged":"^15.2.0",lodash:"^4.17.21",moment:"^2.30.1","node-fetch":"^3.3.2",prettier:"^3.1.1",prompts:"^2.4.2",protobufjs:"^8.4.2",react:"^17.0.2",rimraf:"^6.0.1",semiver:"^1.1.0",sirv:"^2.0.3","tencentcloud-cls-sdk-js-web":"^1.0.13","ts-node":"^10.9.2",typescript:"^5.9.3","update-check":"^1.5.4",uuid:"^9.0.0",ws:"^8.14.2",yargs:"^17.6.2",zod:"^3.23.8","zod-to-json-schema":"^3.23.5"},engines:{node:">=12"},"lint-staged":{"*.{ts,tsx,js,jsx,json,md}":["prettier --write"]}};var gVe=Rt(Wc()),AVe=Rt(TF()),yVe=Rt(Spe());function wq(t,e){return function(){return t.apply(e,arguments)}}var{toString:dar}=Object.prototype,{getPrototypeOf:FG}=Object,{iterator:LG,toStringTag:d6e}=Symbol,jG=(t=>e=>{let r=dar.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_b=t=>(t=t.toLowerCase(),e=>jG(e)===t),MG=t=>e=>typeof e===t,{isArray:CD}=Array,PF=MG("undefined");function RF(t){return t!==null&&!PF(t)&&t.constructor!==null&&!PF(t.constructor)&&R0(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var h6e=_b("ArrayBuffer");function har(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&h6e(t.buffer),e}var mar=MG("string"),R0=MG("function"),m6e=MG("number"),_q=t=>t!==null&&typeof t=="object",gar=t=>t===!0||t===!1,OG=t=>{if(jG(t)!=="object")return!1;let e=FG(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(d6e in t)&&!(LG in t)},Aar=t=>{if(!_q(t)||RF(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},yar=_b("Date"),xar=_b("File"),bar=t=>!!(t&&typeof t.uri<"u"),Ear=t=>t&&typeof t.getParts<"u",war=_b("Blob"),_ar=_b("FileList"),Sar=t=>_q(t)&&R0(t.pipe);function Car(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var p6e=Car(),f6e=typeof p6e.FormData<"u"?p6e.FormData:void 0,Iar=t=>{if(!t)return!1;if(f6e&&t instanceof f6e)return!0;let e=FG(t);if(!e||e===Object.prototype||!R0(t.append))return!1;let r=jG(t);return r==="formdata"||r==="object"&&R0(t.toString)&&t.toString()==="[object FormData]"},kar=_b("URLSearchParams"),[Tar,Bar,Dar,Par]=["ReadableStream","Request","Response","Headers"].map(_b),Rar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sq(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),CD(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{if(RF(t))return;let s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length,u;for(n=0;n<c;n++)u=s[n],e.call(null,t[u],u,t)}}function g6e(t,e){if(RF(t))return null;e=e.toLowerCase();let r=Object.keys(t),n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}var SD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A6e=t=>!PF(t)&&t!==SD;function Cpe(...t){let{caseless:e,skipUndefined:r}=A6e(this)&&this||{},n={},a=(s,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;let u=e&&typeof c=="string"&&g6e(n,c)||c,p=Ipe(n,u)?n[u]:void 0;OG(p)&&OG(s)?n[u]=Cpe(p,s):OG(s)?n[u]=Cpe({},s):CD(s)?n[u]=s.slice():(!r||!PF(s))&&(n[u]=s)};for(let s=0,c=t.length;s<c;s++){let u=t[s];if(!u||RF(u)||(Sq(u,a),typeof u!="object"||CD(u)))continue;let p=Object.getOwnPropertySymbols(u);for(let f=0;f<p.length;f++){let h=p[f];Har.call(u,h)&&a(u[h],h)}}return n}var Nar=(t,e,r,{allOwnKeys:n}={})=>(Sq(e,(a,s)=>{r&&R0(a)?Object.defineProperty(t,s,{__proto__:null,value:wq(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Oar=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Far=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},Lar=(t,e,r,n)=>{let a,s,c,u={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),s=a.length;s-- >0;)c=a[s],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=r!==!1&&FG(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},jar=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},Mar=t=>{if(!t)return null;if(CD(t))return t;let e=t.length;if(!m6e(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Qar=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&FG(Uint8Array)),qar=(t,e)=>{let n=(t&&t[LG]).call(t),a;for(;(a=n.next())&&!a.done;){let s=a.value;e.call(t,s[0],s[1])}},Uar=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},$ar=_b("HTMLFormElement"),zar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Ipe=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),{propertyIsEnumerable:Har}=Object.prototype,Var=_b("RegExp"),y6e=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Sq(r,(a,s)=>{let c;(c=e(a,s,t))!==!1&&(n[s]=c||a)}),Object.defineProperties(t,n)},Gar=t=>{y6e(t,(e,r)=>{if(R0(t)&&["arguments","caller","callee"].includes(r))return!1;let n=t[r];if(R0(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},War=(t,e)=>{let r={},n=a=>{a.forEach(s=>{r[s]=!0})};return CD(t)?n(t):n(String(t).split(e)),r},Yar=()=>{},Jar=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Kar(t){return!!(t&&R0(t.append)&&t[d6e]==="FormData"&&t[LG])}var Xar=t=>{let e=new WeakSet,r=n=>{if(_q(n)){if(e.has(n))return;if(RF(n))return n;if(!("toJSON"in n)){e.add(n);let a=CD(n)?[]:{};return Sq(n,(s,c)=>{let u=r(s);!PF(u)&&(a[c]=u)}),e.delete(n),a}}return n};return r(t)},Zar=_b("AsyncFunction"),eor=t=>t&&(_q(t)||R0(t))&&R0(t.then)&&R0(t.catch),v6e=((t,e)=>t?setImmediate:e?((r,n)=>(SD.addEventListener("message",({source:a,data:s})=>{a===SD&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),SD.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",R0(SD.postMessage)),tor=typeof queueMicrotask<"u"?queueMicrotask.bind(SD):typeof process<"u"&&process.nextTick||v6e,ror=t=>t!=null&&R0(t[LG]),pt={isArray:CD,isArrayBuffer:h6e,isBuffer:RF,isFormData:Iar,isArrayBufferView:har,isString:mar,isNumber:m6e,isBoolean:gar,isObject:_q,isPlainObject:OG,isEmptyObject:Aar,isReadableStream:Tar,isRequest:Bar,isResponse:Dar,isHeaders:Par,isUndefined:PF,isDate:yar,isFile:xar,isReactNativeBlob:bar,isReactNative:Ear,isBlob:war,isRegExp:Var,isFunction:R0,isStream:Sar,isURLSearchParams:kar,isTypedArray:Qar,isFileList:_ar,forEach:Sq,merge:Cpe,extend:Nar,trim:Rar,stripBOM:Oar,inherits:Far,toFlatObject:Lar,kindOf:jG,kindOfTest:_b,endsWith:jar,toArray:Mar,forEachEntry:qar,matchAll:Uar,isHTMLForm:$ar,hasOwnProperty:Ipe,hasOwnProp:Ipe,reduceDescriptors:y6e,freezeMethods:Gar,toObjectSet:War,toCamelCase:zar,noop:Yar,toFiniteNumber:Jar,findKey:g6e,global:SD,isContextDefined:A6e,isSpecCompliantForm:Kar,toJSONObject:Xar,isAsyncFn:Zar,isThenable:eor,setImmediate:v6e,asap:tor,isIterable:ror};var nor=pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),x6e=t=>{let e={},r,n,a;return t&&t.split(`
567
+ `,"f"),oi(this,pd,Ve(this,pd,"f")+e.join(" "),"f")}}}[fue](e){cF(Ve(this,Ti,"f")).forEach(r=>{if((a=>a==="configObjects")(r))return;let n=Ve(this,Ti,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete Ve(this,Os,"f").getDescriptions()[e]}[u3e](e,r,n){Ve(this,jV,"f")[n]||(Ve(this,vs,"f").process.emitWarning(e,r),Ve(this,jV,"f")[n]=!0)}[l3e](){Ve(this,MV,"f").push({options:Ve(this,Ti,"f"),configObjects:Ve(this,Ti,"f").configObjects.slice(0),exitProcess:Ve(this,wv,"f"),groups:Ve(this,Ow,"f"),strict:Ve(this,cD,"f"),strictCommands:Ve(this,uD,"f"),strictOptions:Ve(this,lD,"f"),completionCommand:Ve(this,JA,"f"),output:Ve(this,pd,"f"),exitError:Ve(this,zI,"f"),hasOutput:Ve(this,KA,"f"),parsed:this.parsed,parseFn:Ve(this,XA,"f"),parseContext:Ve(this,aD,"f")}),Ve(this,Os,"f").freeze(),Ve(this,sp,"f").freeze(),Ve(this,Np,"f").freeze(),Ve(this,_v,"f").freeze()}[p3e](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(Ve(this,vs,"f").process.argv()[0])?r=Ve(this,vs,"f").process.argv().slice(1,2):r=Ve(this,vs,"f").process.argv().slice(0,1),e=r.map(n=>{let a=this[_3e](Ve(this,iD,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&a.length<n.length?a:n}).join(" ").trim(),Ve(this,vs,"f").getEnv("_")&&Ve(this,vs,"f").getProcessArgvBin()===Ve(this,vs,"f").getEnv("_")&&(e=Ve(this,vs,"f").getEnv("_").replace(`${Ve(this,vs,"f").path.dirname(Ve(this,vs,"f").process.execPath())}/`,"")),e}[pD](){return Ve(this,UV,"f")}[f3e](){return Ve(this,zV,"f")}[due](){if(!Ve(this,sD,"f"))return;let e=Ve(this,vs,"f").getEnv("LC_ALL")||Ve(this,vs,"f").getEnv("LC_MESSAGES")||Ve(this,vs,"f").getEnv("LANG")||Ve(this,vs,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[d3e](){return this[hue]().version||"unknown"}[h3e](e){let r=e["--"]?e["--"]:e._;for(let n=0,a;(a=r[n])!==void 0;n++)Ve(this,vs,"f").Parser.looksLikeNumber(a)&&Number.isSafeInteger(Math.floor(parseFloat(`${a}`)))&&(r[n]=Number(a));return e}[hue](e){let r=e||"*";if(Ve(this,pF,"f")[r])return Ve(this,pF,"f")[r];let n={};try{let a=e||Ve(this,vs,"f").mainFilename;!e&&Ve(this,vs,"f").path.extname(a)&&(a=Ve(this,vs,"f").path.dirname(a));let s=Ve(this,vs,"f").findUp(a,(c,u)=>{if(u.includes("package.json"))return"package.json"});rg(s,void 0,Ve(this,vs,"f")),n=JSON.parse(Ve(this,vs,"f").readFileSync(s,"utf8"))}catch{}return Ve(this,pF,"f")[r]=n||{},Ve(this,pF,"f")[r]}[VI](e,r){r=[].concat(r),r.forEach(n=>{n=this[Aue](n),Ve(this,Ti,"f")[e].push(n)})}[fF](e,r,n,a){this[gue](e,r,n,a,(s,c,u)=>{Ve(this,Ti,"f")[s][c]=u})}[mue](e,r,n,a){this[gue](e,r,n,a,(s,c,u)=>{Ve(this,Ti,"f")[s][c]=(Ve(this,Ti,"f")[s][c]||[]).concat(u)})}[gue](e,r,n,a,s){if(Array.isArray(n))n.forEach(c=>{e(c,a)});else if((c=>typeof c=="object")(n))for(let c of cF(n))e(c,n[c]);else s(r,this[Aue](n),a)}[Aue](e){return e==="__proto__"?"___proto___":e}[yue](e,r){return this[fF](this[yue].bind(this),"key",e,r),this}[vue](){var e,r,n,a,s,c,u,p,f,h,g,y;let v=Ve(this,MV,"f").pop();rg(v,void 0,Ve(this,vs,"f"));let A;e=this,r=this,n=this,a=this,s=this,c=this,u=this,p=this,f=this,h=this,g=this,y=this,{options:{set value(S){oi(e,Ti,S,"f")}}.value,configObjects:A,exitProcess:{set value(S){oi(r,wv,S,"f")}}.value,groups:{set value(S){oi(n,Ow,S,"f")}}.value,output:{set value(S){oi(a,pd,S,"f")}}.value,exitError:{set value(S){oi(s,zI,S,"f")}}.value,hasOutput:{set value(S){oi(c,KA,S,"f")}}.value,parsed:this.parsed,strict:{set value(S){oi(u,cD,S,"f")}}.value,strictCommands:{set value(S){oi(p,uD,S,"f")}}.value,strictOptions:{set value(S){oi(f,lD,S,"f")}}.value,completionCommand:{set value(S){oi(h,JA,S,"f")}}.value,parseFn:{set value(S){oi(g,XA,S,"f")}}.value,parseContext:{set value(S){oi(y,aD,S,"f")}}.value}=v,Ve(this,Ti,"f").configObjects=A,Ve(this,Os,"f").unfreeze(),Ve(this,sp,"f").unfreeze(),Ve(this,Np,"f").unfreeze(),Ve(this,_v,"f").unfreeze()}[m3e](e,r){return nD(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[g3e].bind(this),getContext:this[A3e].bind(this),getHasOutput:this[y3e].bind(this),getLoggerInstance:this[v3e].bind(this),getParseContext:this[x3e].bind(this),getParserConfiguration:this[pD].bind(this),getUsageConfiguration:this[f3e].bind(this),getUsageInstance:this[b3e].bind(this),getValidationInstance:this[E3e].bind(this),hasParseCallback:this[HV].bind(this),isGlobalContext:this[w3e].bind(this),postProcess:this[fD].bind(this),reset:this[xue].bind(this),runValidation:this[bue].bind(this),runYargsParserAndExecuteCommands:this[S8].bind(this),setHasOutput:this[S3e].bind(this)}}[g3e](){return Ve(this,Np,"f")}[A3e](){return Ve(this,_8,"f")}[y3e](){return Ve(this,KA,"f")}[v3e](){return Ve(this,lF,"f")}[x3e](){return Ve(this,aD,"f")||{}}[b3e](){return Ve(this,Os,"f")}[E3e](){return Ve(this,sp,"f")}[HV](){return!!Ve(this,XA,"f")}[w3e](){return Ve(this,QV,"f")}[fD](e,r,n,a){return n||Nu(e)||(r||(e=this[o3e](e)),(this[pD]()["parse-positional-numbers"]||this[pD]()["parse-positional-numbers"]===void 0)&&(e=this[h3e](e)),a&&(e=rD(e,this,Ve(this,_v,"f").getMiddleware(),!1))),e}[xue](e={}){oi(this,Ti,Ve(this,Ti,"f")||{},"f");let r={};r.local=Ve(this,Ti,"f").local||[],r.configObjects=Ve(this,Ti,"f").configObjects||[];let n={};r.local.forEach(c=>{n[c]=!0,(e[c]||[]).forEach(u=>{n[u]=!0})}),Object.assign(Ve(this,oD,"f"),Object.keys(Ve(this,Ow,"f")).reduce((c,u)=>{let p=Ve(this,Ow,"f")[u].filter(f=>!(f in n));return p.length>0&&(c[u]=p),c},{})),oi(this,Ow,{},"f");let a=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return a.forEach(c=>{r[c]=(Ve(this,Ti,"f")[c]||[]).filter(u=>!n[u])}),s.forEach(c=>{r[c]=UI(Ve(this,Ti,"f")[c],u=>!n[u])}),r.envPrefix=Ve(this,Ti,"f").envPrefix,oi(this,Ti,r,"f"),oi(this,Os,Ve(this,Os,"f")?Ve(this,Os,"f").reset(n):e3e(this,Ve(this,vs,"f")),"f"),oi(this,sp,Ve(this,sp,"f")?Ve(this,sp,"f").reset(n):a3e(this,Ve(this,Os,"f"),Ve(this,vs,"f")),"f"),oi(this,Np,Ve(this,Np,"f")?Ve(this,Np,"f").reset():K4e(Ve(this,Os,"f"),Ve(this,sp,"f"),Ve(this,_v,"f"),Ve(this,vs,"f")),"f"),Ve(this,Ev,"f")||oi(this,Ev,n3e(this,Ve(this,Os,"f"),Ve(this,Np,"f"),Ve(this,vs,"f")),"f"),Ve(this,_v,"f").reset(),oi(this,JA,null,"f"),oi(this,pd,"","f"),oi(this,zI,null,"f"),oi(this,KA,!1,"f"),this.parsed=!1,this}[_3e](e,r){return Ve(this,vs,"f").path.relative(e,r)}[S8](e,r,n,a=0,s=!1){let c=!!n||s;e=e||Ve(this,HI,"f"),Ve(this,Ti,"f").__=Ve(this,vs,"f").y18n.__,Ve(this,Ti,"f").configuration=this[pD]();let u=!!Ve(this,Ti,"f").configuration["populate--"],p=Object.assign({},Ve(this,Ti,"f").configuration,{"populate--":!0}),f=Ve(this,vs,"f").Parser.detailed(e,Object.assign({},Ve(this,Ti,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),h=Object.assign(f.argv,Ve(this,aD,"f")),g,y=f.aliases,v=!1,A=!1;Object.keys(h).forEach(S=>{S===Ve(this,Sv,"f")&&h[S]?v=!0:S===Ve(this,Fw,"f")&&h[S]&&(A=!0)}),h.$0=this.$0,this.parsed=f,a===0&&Ve(this,Os,"f").clearCachedHelpMessage();try{if(this[due](),r)return this[fD](h,u,!!n,!1);Ve(this,Sv,"f")&&[Ve(this,Sv,"f")].concat(y[Ve(this,Sv,"f")]||[]).filter(j=>j.length>1).includes(""+h._[h._.length-1])&&(h._.pop(),v=!0),oi(this,QV,!1,"f");let S=Ve(this,Np,"f").getCommands(),E=Ve(this,Ev,"f").completionKey in h,k=v||E||s;if(h._.length){if(S.length){let R;for(let j=a||0,L;h._[j]!==void 0;j++)if(L=String(h._[j]),S.includes(L)&&L!==Ve(this,JA,"f")){let $=Ve(this,Np,"f").runCommand(L,this,f,j+1,s,v||A||s);return this[fD]($,u,!!n,!1)}else if(!R&&L!==Ve(this,JA,"f")){R=L;break}!Ve(this,Np,"f").hasDefaultCommand()&&Ve(this,$V,"f")&&R&&!k&&Ve(this,sp,"f").recommendCommands(R,S)}Ve(this,JA,"f")&&h._.includes(Ve(this,JA,"f"))&&!E&&(Ve(this,wv,"f")&&$I(!0),this.showCompletionScript(),this.exit(0))}if(Ve(this,Np,"f").hasDefaultCommand()&&!k){let R=Ve(this,Np,"f").runCommand(null,this,f,0,s,v||A||s);return this[fD](R,u,!!n,!1)}if(E){Ve(this,wv,"f")&&$I(!0),e=[].concat(e);let R=e.slice(e.indexOf(`--${Ve(this,Ev,"f").completionKey}`)+1);return Ve(this,Ev,"f").getCompletion(R,(j,L)=>{if(j)throw new Ru(j.message);(L||[]).forEach($=>{Ve(this,lF,"f").log($)}),this.exit(0)}),this[fD](h,!u,!!n,!1)}if(Ve(this,KA,"f")||(v?(Ve(this,wv,"f")&&$I(!0),c=!0,this.showHelp("log"),this.exit(0)):A&&(Ve(this,wv,"f")&&$I(!0),c=!0,Ve(this,Os,"f").showVersion("log"),this.exit(0))),!c&&Ve(this,Ti,"f").skipValidation.length>0&&(c=Object.keys(h).some(R=>Ve(this,Ti,"f").skipValidation.indexOf(R)>=0&&h[R]===!0)),!c){if(f.error)throw new Ru(f.error.message);if(!E){let R=this[bue](y,{},f.error);n||(g=rD(h,this,Ve(this,_v,"f").getMiddleware(),!0)),g=this[m3e](R,g!=null?g:h),Nu(g)&&!n&&(g=g.then(()=>rD(h,this,Ve(this,_v,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof Ru)Ve(this,Os,"f").fail(S.message,S);else throw S}return this[fD](g!=null?g:h,u,!!n,!0)}[bue](e,r,n,a){let s={...this.getDemandedOptions()};return c=>{if(n)throw new Ru(n.message);Ve(this,sp,"f").nonOptionCount(c),Ve(this,sp,"f").requiredArguments(c,s);let u=!1;Ve(this,uD,"f")&&(u=Ve(this,sp,"f").unknownCommands(c)),Ve(this,cD,"f")&&!u?Ve(this,sp,"f").unknownArguments(c,e,r,!!a):Ve(this,lD,"f")&&Ve(this,sp,"f").unknownArguments(c,e,{},!1,!1),Ve(this,sp,"f").limitedChoices(c),Ve(this,sp,"f").implications(c),Ve(this,sp,"f").conflicting(c)}}[S3e](){oi(this,KA,!0,"f")}[dD](e){if(typeof e=="string")Ve(this,Ti,"f").key[e]=!0;else for(let r of e)Ve(this,Ti,"f").key[r]=!0}};function X4e(t){return!!t&&typeof t.getInternalMethods=="function"}var dtr=C3e(aue),I3e=dtr;var mb={name:"edgeone",version:"1.6.5",description:"Command-line interface for TencentCloud Pages Functions",bin:{edgeone:"./edgeone-bin/edgeone.js"},files:["./edgeone-bin/edgeone.js","./edgeone-dist/cli.js","./edgeone-dist/pages/templates","./edgeone-dist/pages/dev/runner-worker.js","./edgeone-dist/pages/observability-python/**","./edgeone-dist/libs-pages-blob-python/**","./edgeone-dist/libs-pages-agent-toolkit/**","./edgeone-dist/studio/**","./libs-pages-blob-python/**","./libs-pages-agent-toolkit/**"],author:"",keywords:["tencent","edgeone","edgefunctions","edgeone","cli","typescript"],scripts:{clean:"rimraf ./edgeone-dist ./edgeone-bin ./libs-node-ai ./libs-kv-client",bundle:"node -r esbuild-register ./scripts/bundle.ts",watch:"node -r esbuild-register ./scripts/bundle.ts watch",build:"npm run clean && npm run build:pages-ai && npm run build:kv-client && npm run prepare:blob-wheel && npm run prepare:agent-toolkit-wheel && npm run bundle","build:pages-ai":"node ./scripts/build-pages-ai.js","build:kv-client":"node ./scripts/build-kv-client.js","prepare:blob-wheel":"node ./scripts/prepare-pages-blob-wheel.js","prepare:agent-toolkit-wheel":"node ./scripts/prepare-pages-agent-toolkit-wheel.js","verify:publish-assets":"node ./scripts/verify-publish-assets.js","upload:agent-version-manifest":"node ./scripts/upload-agent-version-manifest.js",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,md}" "scripts/**/*.{ts,js}" "*.{json,md}"',prepack:"npm run build && npm run verify:publish-assets",prepublishOnly:"npm run build && npm run verify:publish-assets",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:observability":"vitest run --config src/agent/observability/node/tests/vitest.config.ts && cd src/agent/observability/python && uv run pytest tests/ -q"},dependencies:{"@edgeone/framework-detect":"^0.0.2","@edgeone/is-spa":"^0.0.3","@edgeone/nuxt-pages":"1.1.0","@edgeone/opennextjs-pages":"0.2.4","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"0.0.12",archiver:"^7.0.1",chokidar:"^4.0.1","common-path-prefix":"^1.0.0","cos-nodejs-sdk-v5":"^2.14.7","cross-spawn":"^7.0.6",crypto:"^1.0.1","detect-port":"^2.1.0",esbuild:"^0.19.2","esbuild-plugin-polyfill-node":"^0.3.0","esbuild-plugin-vue":"^0.2.4","fast-glob":"^3.3.0","fs-extra":"^11.3.1",giget:"^2.0.0","ink-table":"^3.1.0",inquirer:"^8.2.4",install:"^0.13.0",lodash:"^4.17.21","mime-types":"^3.0.1",minimatch:"^9.0.5","node-persist":"^4.0.3",npm:"^10.9.1",open:"^8.4.2","p-map":"^5.5.0","parse-gitignore":"^2.0.0",portfinder:"^1.0.32",undici:"^5.29.0",vitest:"^4.0.17"},devDependencies:{"@babel/generator":"^7.28.0","@babel/parser":"^7.28.0","@babel/traverse":"^7.28.0","@babel/types":"^7.28.0","@opentelemetry/api":"^1.9.1","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/otlp-transformer":"^0.55.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/sdk-trace-node":"^1.30.1","@opentelemetry/semantic-conventions":"^1.40.0","@tencent/capi-nodejs-sdk":"^2.3.2","@types/http-proxy":"^1.17.12","@types/inquirer":"^9.0.8","@types/ip":"^1.1.0","@types/lodash":"^4.14.198","@types/prompts":"^2.4.4","@types/react":"^17.0.2","@types/uuid":"^9.0.3","@types/ws":"^8.5.7","@types/yargs":"^17.0.24","@vitest/coverage-v8":"^4.0.17",axios:"^1.7.9",chalk:"^5.3.0",cookie:"^1.0.2",dotenv:"^16.3.1","esbuild-register":"^3.6.0",execa:"^7.1.1","http-proxy":"^1.18.1",husky:"^8.0.3",ink:"^3.2.0",ip:"^2.0.1",json5:"^2.2.3","lint-staged":"^15.2.0",lodash:"^4.17.21",moment:"^2.30.1","node-fetch":"^3.3.2",prettier:"^3.1.1",prompts:"^2.4.2",protobufjs:"^8.4.2",react:"^17.0.2",rimraf:"^6.0.1",semiver:"^1.1.0",sirv:"^2.0.3","tencentcloud-cls-sdk-js-web":"^1.0.13","ts-node":"^10.9.2",typescript:"^5.9.3","update-check":"^1.5.4",uuid:"^9.0.0",ws:"^8.14.2",yargs:"^17.6.2",zod:"^3.23.8","zod-to-json-schema":"^3.23.5"},engines:{node:">=12"},"lint-staged":{"*.{ts,tsx,js,jsx,json,md}":["prettier --write"]}};var gVe=Rt(Wc()),AVe=Rt(TF()),yVe=Rt(Spe());function wq(t,e){return function(){return t.apply(e,arguments)}}var{toString:dar}=Object.prototype,{getPrototypeOf:FG}=Object,{iterator:LG,toStringTag:d6e}=Symbol,jG=(t=>e=>{let r=dar.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_b=t=>(t=t.toLowerCase(),e=>jG(e)===t),MG=t=>e=>typeof e===t,{isArray:CD}=Array,PF=MG("undefined");function RF(t){return t!==null&&!PF(t)&&t.constructor!==null&&!PF(t.constructor)&&R0(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var h6e=_b("ArrayBuffer");function har(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&h6e(t.buffer),e}var mar=MG("string"),R0=MG("function"),m6e=MG("number"),_q=t=>t!==null&&typeof t=="object",gar=t=>t===!0||t===!1,OG=t=>{if(jG(t)!=="object")return!1;let e=FG(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(d6e in t)&&!(LG in t)},Aar=t=>{if(!_q(t)||RF(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},yar=_b("Date"),xar=_b("File"),bar=t=>!!(t&&typeof t.uri<"u"),Ear=t=>t&&typeof t.getParts<"u",war=_b("Blob"),_ar=_b("FileList"),Sar=t=>_q(t)&&R0(t.pipe);function Car(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var p6e=Car(),f6e=typeof p6e.FormData<"u"?p6e.FormData:void 0,Iar=t=>{if(!t)return!1;if(f6e&&t instanceof f6e)return!0;let e=FG(t);if(!e||e===Object.prototype||!R0(t.append))return!1;let r=jG(t);return r==="formdata"||r==="object"&&R0(t.toString)&&t.toString()==="[object FormData]"},kar=_b("URLSearchParams"),[Tar,Bar,Dar,Par]=["ReadableStream","Request","Response","Headers"].map(_b),Rar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sq(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),CD(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{if(RF(t))return;let s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length,u;for(n=0;n<c;n++)u=s[n],e.call(null,t[u],u,t)}}function g6e(t,e){if(RF(t))return null;e=e.toLowerCase();let r=Object.keys(t),n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}var SD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,A6e=t=>!PF(t)&&t!==SD;function Cpe(...t){let{caseless:e,skipUndefined:r}=A6e(this)&&this||{},n={},a=(s,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;let u=e&&typeof c=="string"&&g6e(n,c)||c,p=Ipe(n,u)?n[u]:void 0;OG(p)&&OG(s)?n[u]=Cpe(p,s):OG(s)?n[u]=Cpe({},s):CD(s)?n[u]=s.slice():(!r||!PF(s))&&(n[u]=s)};for(let s=0,c=t.length;s<c;s++){let u=t[s];if(!u||RF(u)||(Sq(u,a),typeof u!="object"||CD(u)))continue;let p=Object.getOwnPropertySymbols(u);for(let f=0;f<p.length;f++){let h=p[f];Har.call(u,h)&&a(u[h],h)}}return n}var Nar=(t,e,r,{allOwnKeys:n}={})=>(Sq(e,(a,s)=>{r&&R0(a)?Object.defineProperty(t,s,{__proto__:null,value:wq(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Oar=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Far=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},Lar=(t,e,r,n)=>{let a,s,c,u={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),s=a.length;s-- >0;)c=a[s],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=r!==!1&&FG(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},jar=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},Mar=t=>{if(!t)return null;if(CD(t))return t;let e=t.length;if(!m6e(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Qar=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&FG(Uint8Array)),qar=(t,e)=>{let n=(t&&t[LG]).call(t),a;for(;(a=n.next())&&!a.done;){let s=a.value;e.call(t,s[0],s[1])}},Uar=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},$ar=_b("HTMLFormElement"),zar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Ipe=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),{propertyIsEnumerable:Har}=Object.prototype,Var=_b("RegExp"),y6e=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Sq(r,(a,s)=>{let c;(c=e(a,s,t))!==!1&&(n[s]=c||a)}),Object.defineProperties(t,n)},Gar=t=>{y6e(t,(e,r)=>{if(R0(t)&&["arguments","caller","callee"].includes(r))return!1;let n=t[r];if(R0(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},War=(t,e)=>{let r={},n=a=>{a.forEach(s=>{r[s]=!0})};return CD(t)?n(t):n(String(t).split(e)),r},Yar=()=>{},Jar=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Kar(t){return!!(t&&R0(t.append)&&t[d6e]==="FormData"&&t[LG])}var Xar=t=>{let e=new WeakSet,r=n=>{if(_q(n)){if(e.has(n))return;if(RF(n))return n;if(!("toJSON"in n)){e.add(n);let a=CD(n)?[]:{};return Sq(n,(s,c)=>{let u=r(s);!PF(u)&&(a[c]=u)}),e.delete(n),a}}return n};return r(t)},Zar=_b("AsyncFunction"),eor=t=>t&&(_q(t)||R0(t))&&R0(t.then)&&R0(t.catch),v6e=((t,e)=>t?setImmediate:e?((r,n)=>(SD.addEventListener("message",({source:a,data:s})=>{a===SD&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),SD.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",R0(SD.postMessage)),tor=typeof queueMicrotask<"u"?queueMicrotask.bind(SD):typeof process<"u"&&process.nextTick||v6e,ror=t=>t!=null&&R0(t[LG]),pt={isArray:CD,isArrayBuffer:h6e,isBuffer:RF,isFormData:Iar,isArrayBufferView:har,isString:mar,isNumber:m6e,isBoolean:gar,isObject:_q,isPlainObject:OG,isEmptyObject:Aar,isReadableStream:Tar,isRequest:Bar,isResponse:Dar,isHeaders:Par,isUndefined:PF,isDate:yar,isFile:xar,isReactNativeBlob:bar,isReactNative:Ear,isBlob:war,isRegExp:Var,isFunction:R0,isStream:Sar,isURLSearchParams:kar,isTypedArray:Qar,isFileList:_ar,forEach:Sq,merge:Cpe,extend:Nar,trim:Rar,stripBOM:Oar,inherits:Far,toFlatObject:Lar,kindOf:jG,kindOfTest:_b,endsWith:jar,toArray:Mar,forEachEntry:qar,matchAll:Uar,isHTMLForm:$ar,hasOwnProperty:Ipe,hasOwnProp:Ipe,reduceDescriptors:y6e,freezeMethods:Gar,toObjectSet:War,toCamelCase:zar,noop:Yar,toFiniteNumber:Jar,findKey:g6e,global:SD,isContextDefined:A6e,isSpecCompliantForm:Kar,toJSONObject:Xar,isAsyncFn:Zar,isThenable:eor,setImmediate:v6e,asap:tor,isIterable:ror};var nor=pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),x6e=t=>{let e={},r,n,a;return t&&t.split(`
568
568
  `).forEach(function(c){a=c.indexOf(":"),r=c.substring(0,a).trim().toLowerCase(),n=c.substring(a+1).trim(),!(!r||e[r]&&nor[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};function ior(t){let e=0,r=t.length;for(;e<r;){let n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){let n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}var sor=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),aor=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function kpe(t,e){return pt.isArray(t)?t.map(r=>kpe(r,e)):ior(String(t).replace(e,""))}var b6e=t=>kpe(t,sor),oor=t=>kpe(t,aor);function NF(t){let e=Object.create(null);return pt.forEach(t.toJSON(),(r,n)=>{e[n]=oor(r)}),e}var E6e=Symbol("internals");function Cq(t){return t&&String(t).trim().toLowerCase()}function QG(t){return t===!1||t==null?t:pt.isArray(t)?t.map(QG):b6e(String(t))}function cor(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var uor=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Tpe(t,e,r,n,a){if(pt.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!pt.isString(e)){if(pt.isString(n))return e.indexOf(n)!==-1;if(pt.isRegExp(n))return n.test(e)}}function lor(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function por(t,e){let r=pt.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(a,s,c){return this[n].call(this,e,a,s,c)},configurable:!0})})}var OF=class{constructor(e){e&&this.set(e)}set(e,r,n){let a=this;function s(u,p,f){let h=Cq(p);if(!h)return;let g=pt.findKey(a,h);(!g||a[g]===void 0||f===!0||f===void 0&&a[g]!==!1)&&(a[g||p]=QG(u))}let c=(u,p)=>pt.forEach(u,(f,h)=>s(f,h,p));if(pt.isPlainObject(e)||e instanceof this.constructor)c(e,r);else if(pt.isString(e)&&(e=e.trim())&&!uor(e))c(x6e(e),r);else if(pt.isObject(e)&&pt.isIterable(e)){let u={},p,f;for(let h of e){if(!pt.isArray(h))throw new TypeError("Object iterator must return a key-value pair");u[f=h[0]]=(p=u[f])?pt.isArray(p)?[...p,h[1]]:[p,h[1]]:h[1]}c(u,r)}else e!=null&&s(r,e,n);return this}get(e,r){if(e=Cq(e),e){let n=pt.findKey(this,e);if(n){let a=this[n];if(!r)return a;if(r===!0)return cor(a);if(pt.isFunction(r))return r.call(this,a,n);if(pt.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Cq(e),e){let n=pt.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Tpe(this,this[n],n,r)))}return!1}delete(e,r){let n=this,a=!1;function s(c){if(c=Cq(c),c){let u=pt.findKey(n,c);u&&(!r||Tpe(n,n[u],u,r))&&(delete n[u],a=!0)}}return pt.isArray(e)?e.forEach(s):s(e),a}clear(e){let r=Object.keys(this),n=r.length,a=!1;for(;n--;){let s=r[n];(!e||Tpe(this,this[s],s,e,!0))&&(delete this[s],a=!0)}return a}normalize(e){let r=this,n={};return pt.forEach(this,(a,s)=>{let c=pt.findKey(n,s);if(c){r[c]=QG(a),delete r[s];return}let u=e?lor(s):String(s).trim();u!==s&&delete r[s],r[u]=QG(a),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return pt.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&pt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
569
569
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[E6e]=this[E6e]={accessors:{}}).accessors,a=this.prototype;function s(c){let u=Cq(c);n[u]||(por(a,c),n[u]=!0)}return pt.isArray(e)?e.forEach(s):s(e),this}};OF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pt.reduceDescriptors(OF.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});pt.freezeMethods(OF);var Fu=OF;var dor="[REDACTED ****]";function hor(t){if(pt.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(pt.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function mor(t,e){let r=new Set(e.map(s=>String(s).toLowerCase())),n=[],a=s=>{if(s===null||typeof s!="object"||pt.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof Fu&&(s=s.toJSON()),n.push(s);let c;if(pt.isArray(s))c=[],s.forEach((u,p)=>{let f=a(u);pt.isUndefined(f)||(c[p]=f)});else{if(!pt.isPlainObject(s)&&hor(s))return n.pop(),s;c=Object.create(null);for(let[u,p]of Object.entries(s)){let f=r.has(u.toLowerCase())?dor:a(p);pt.isUndefined(f)||(c[u]=f)}}return n.pop(),c};return a(t)}var uh=class t extends Error{static from(e,r,n,a,s,c){let u=new t(e.message,r||e.code,n,a,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),c&&Object.assign(u,c),u}constructor(e,r,n,a,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),a&&(this.request=a),s&&(this.response=s,this.status=s.status)}toJSON(){let e=this.config,r=e&&pt.hasOwnProp(e,"redact")?e.redact:void 0,n=pt.isArray(r)&&r.length>0?mor(e,r):pt.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};uh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";uh.ERR_BAD_OPTION="ERR_BAD_OPTION";uh.ECONNABORTED="ECONNABORTED";uh.ETIMEDOUT="ETIMEDOUT";uh.ECONNREFUSED="ECONNREFUSED";uh.ERR_NETWORK="ERR_NETWORK";uh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";uh.ERR_DEPRECATED="ERR_DEPRECATED";uh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";uh.ERR_BAD_REQUEST="ERR_BAD_REQUEST";uh.ERR_CANCELED="ERR_CANCELED";uh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";uh.ERR_INVALID_URL="ERR_INVALID_URL";uh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Jr=uh;var _Ue=Rt(wUe(),1),XG=_Ue.default;function Kpe(t){return pt.isPlainObject(t)||pt.isArray(t)}function SUe(t){return pt.endsWith(t,"[]")?t.slice(0,-2):t}function Jpe(t,e,r){return t?t.concat(e).map(function(a,s){return a=SUe(a),!r&&s?"["+a+"]":a}).join(r?".":""):e}function eur(t){return pt.isArray(t)&&!t.some(Kpe)}var tur=pt.toFlatObject(pt,{},null,function(e){return/^is[A-Z]/.test(e)});function rur(t,e,r){if(!pt.isObject(t))throw new TypeError("target must be an object");e=e||new(XG||FormData),r=pt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,k){return!pt.isUndefined(k[E])});let n=r.metaTokens,a=r.visitor||g,s=r.dots,c=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,p=r.maxDepth===void 0?100:r.maxDepth,f=u&&pt.isSpecCompliantForm(e);if(!pt.isFunction(a))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(pt.isDate(S))return S.toISOString();if(pt.isBoolean(S))return S.toString();if(!f&&pt.isBlob(S))throw new Jr("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(S)||pt.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,E,k){let R=S;if(pt.isReactNative(e)&&pt.isReactNativeBlob(S))return e.append(Jpe(k,E,s),h(S)),!1;if(S&&!k&&typeof S=="object"){if(pt.endsWith(E,"{}"))E=n?E:E.slice(0,-2),S=JSON.stringify(S);else if(pt.isArray(S)&&eur(S)||(pt.isFileList(S)||pt.endsWith(E,"[]"))&&(R=pt.toArray(S)))return E=SUe(E),R.forEach(function(L,$){!(pt.isUndefined(L)||L===null)&&e.append(c===!0?Jpe([E],$,s):c===null?E:E+"[]",h(L))}),!1}return Kpe(S)?!0:(e.append(Jpe(k,E,s),h(S)),!1)}let y=[],v=Object.assign(tur,{defaultVisitor:g,convertValue:h,isVisitable:Kpe});function A(S,E,k=0){if(!pt.isUndefined(S)){if(k>p)throw new Jr("Object is too deeply nested ("+k+" levels). Max depth: "+p,Jr.ERR_FORM_DATA_DEPTH_EXCEEDED);if(y.indexOf(S)!==-1)throw new Error("Circular reference detected in "+E.join("."));y.push(S),pt.forEach(S,function(j,L){(!(pt.isUndefined(j)||j===null)&&a.call(e,j,pt.isString(L)?L.trim():L,E,v))===!0&&A(j,E?E.concat(L):[L],k+1)}),y.pop()}}if(!pt.isObject(t))throw new TypeError("data must be an object");return A(t),e}var ZI=rur;function CUe(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function IUe(t,e){this._pairs=[],t&&ZI(t,this,e)}var kUe=IUe.prototype;kUe.append=function(e,r){this._pairs.push([e,r])};kUe.toString=function(e){let r=e?function(n){return e.call(this,n,CUe)}:CUe;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var TUe=IUe;function nur(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function kD(t,e,r){if(!e)return t;let n=r&&r.encode||nur,a=pt.isFunction(r)?{serialize:r}:r,s=a&&a.serialize,c;if(s?c=s(e,a):c=pt.isURLSearchParams(e)?e.toString():new TUe(e,a).toString(n),c){let u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}var Xpe=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pt.forEach(this.handlers,function(n){n!==null&&e(n)})}},Zpe=Xpe;var ek={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1};var RUe=Rt(require("crypto"),1);var BUe=Rt(require("url"),1),DUe=BUe.default.URLSearchParams;var efe="abcdefghijklmnopqrstuvwxyz",PUe="0123456789",NUe={DIGIT:PUe,ALPHA:efe,ALPHA_DIGIT:efe+efe.toUpperCase()+PUe},iur=(t=16,e=NUe.ALPHA_DIGIT)=>{let r="",{length:n}=e,a=new Uint32Array(t);RUe.default.randomFillSync(a);for(let s=0;s<t;s++)r+=e[a[s]%n];return r},OUe={isNode:!0,classes:{URLSearchParams:DUe,FormData:XG,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:NUe,generateString:iur,protocols:["http","https","file","data"]};var nfe={};Gce(nfe,{hasBrowserEnv:()=>rfe,hasStandardBrowserEnv:()=>sur,hasStandardBrowserWebWorkerEnv:()=>aur,navigator:()=>tfe,origin:()=>our});var rfe=typeof window<"u"&&typeof document<"u",tfe=typeof navigator=="object"&&navigator||void 0,sur=rfe&&(!tfe||["ReactNative","NativeScript","NS"].indexOf(tfe.product)<0),aur=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",our=rfe&&window.location.href||"http://localhost";var Ho={...nfe,...OUe};function ife(t,e){return ZI(t,new Ho.classes.URLSearchParams,{visitor:function(r,n,a,s){return Ho.isNode&&pt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function cur(t){return pt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function uur(t){let e={},r=Object.keys(t),n,a=r.length,s;for(n=0;n<a;n++)s=r[n],e[s]=t[s];return e}function lur(t){function e(r,n,a,s){let c=r[s++];if(c==="__proto__")return!0;let u=Number.isFinite(+c),p=s>=r.length;return c=!c&&pt.isArray(a)?a.length:c,p?(pt.hasOwnProp(a,c)?a[c]=pt.isArray(a[c])?a[c].concat(n):[a[c],n]:a[c]=n,!u):((!pt.hasOwnProp(a,c)||!pt.isObject(a[c]))&&(a[c]=[]),e(r,n,a[c],s)&&pt.isArray(a[c])&&(a[c]=uur(a[c])),!u)}if(pt.isFormData(t)&&pt.isFunction(t.entries)){let r={};return pt.forEachEntry(t,(n,a)=>{e(cur(n),a,r,0)}),r}return null}var ZG=lur;var QF=(t,e)=>t!=null&&pt.hasOwnProp(t,e)?t[e]:void 0;function pur(t,e,r){if(pt.isString(t))try{return(e||JSON.parse)(t),pt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var sfe={transitional:ek,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){let n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=pt.isObject(e);if(s&&pt.isHTMLForm(e)&&(e=new FormData(e)),pt.isFormData(e))return a?JSON.stringify(ZG(e)):e;if(pt.isArrayBuffer(e)||pt.isBuffer(e)||pt.isStream(e)||pt.isFile(e)||pt.isBlob(e)||pt.isReadableStream(e))return e;if(pt.isArrayBufferView(e))return e.buffer;if(pt.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){let p=QF(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ife(e,p).toString();if((u=pt.isFileList(e))||n.indexOf("multipart/form-data")>-1){let f=QF(this,"env"),h=f&&f.FormData;return ZI(u?{"files[]":e}:e,h&&new h,p)}}return s||a?(r.setContentType("application/json",!1),pur(e)):e}],transformResponse:[function(e){let r=QF(this,"transitional")||sfe.transitional,n=r&&r.forcedJSONParsing,a=QF(this,"responseType"),s=a==="json";if(pt.isResponse(e)||pt.isReadableStream(e))return e;if(e&&pt.isString(e)&&(n&&!a||s)){let u=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(e,QF(this,"parseReviver"))}catch(p){if(u)throw p.name==="SyntaxError"?Jr.from(p,Jr.ERR_BAD_RESPONSE,this,null,QF(this,"response")):p}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ho.classes.FormData,Blob:Ho.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pt.forEach(["delete","get","head","post","put","patch","query"],t=>{sfe.headers[t]={}});var qF=sfe;function Dq(t,e){let r=this||qF,n=e||r,a=Fu.from(n.headers),s=n.data;return pt.forEach(t,function(u){s=u.call(r,s,a.normalize(),e?e.status:void 0)}),a.normalize(),s}function Pq(t){return!!(t&&t.__CANCEL__)}var afe=class extends Jr{constructor(e,r,n){super(e==null?"canceled":e,Jr.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}},ty=afe;function qw(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new Jr("Request failed with status code "+r.status,r.status>=400&&r.status<500?Jr.ERR_BAD_REQUEST:Jr.ERR_BAD_RESPONSE,r.config,r.request,r))}function ofe(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cfe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function TD(t,e,r){let n=!ofe(e);return t&&(n||r===!1)?cfe(t,e):e}var fur={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function dur(t){try{return new URL(t)}catch{return null}}function FUe(t){var e=(typeof t=="string"?dur(t):t)||{},r=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||fur[r]||0,!hur(n,a)))return"";var s=ufe(r+"_proxy")||ufe("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function hur(t,e){var r=ufe("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),s=a?a[1]:n,c=a?parseInt(a[2]):0;return c&&c!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!t.endsWith(s)):t!==s}):!0}function ufe(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var qfe=Rt(XUe(),1),k9e=Rt(require("http"),1),T9e=Rt(require("https"),1),B9e=Rt(require("http2"),1),D9e=Rt(require("util"),1),Qfe=require("path"),P9e=Rt(Dfe(),1),ry=Rt(require("zlib"),1);var YS="1.17.0";function qq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var hlr=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Pfe(t,e,r){let n=r&&r.Blob||Ho.classes.Blob,a=qq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let s=hlr.exec(t);if(!s)throw new Jr("Invalid URL",Jr.ERR_INVALID_URL);let c=s[1],u=s[2],p=s[3]?"base64":"utf8",f=s[4],h;c?h=u?c+u:c:u&&(h="text/plain"+u);let g=Buffer.from(decodeURIComponent(f),p);if(e){if(!n)throw new Jr("Blob is not supported",Jr.ERR_NOT_SUPPORT);return new n([g],{type:h})}return g}throw new Jr("Unsupported protocol "+a,Jr.ERR_NOT_SUPPORT)}var Bv=Rt(require("stream"),1);var s9e=Rt(require("stream"),1);var Rfe=Symbol("internals"),Nfe=class extends s9e.default.Transform{constructor(e){e=pt.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!pt.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let r=this[Rfe]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(e){let r=this[Rfe];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,n){let a=this[Rfe],s=a.maxRate,c=this.readableHighWaterMark,u=a.timeWindow,p=1e3/u,f=s/p,h=a.minChunkSize!==!1?Math.max(a.minChunkSize,f*.01):0,g=(v,A)=>{let S=Buffer.byteLength(v);a.bytesSeen+=S,a.bytes+=S,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(v)?process.nextTick(A):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(A)}},y=(v,A)=>{let S=Buffer.byteLength(v),E=null,k=c,R,j=0;if(s){let L=Date.now();(!a.ts||(j=L-a.ts)>=u)&&(a.ts=L,R=f-a.bytes,a.bytes=R<0?-R:0,j=0),R=f-a.bytes}if(s){if(R<=0)return setTimeout(()=>{A(null,v)},u-j);R<k&&(k=R)}k&&S>k&&S-k>h&&(E=v.subarray(k),v=v.subarray(0,k)),g(v,E?()=>{process.nextTick(A,null,E)}:A)};y(e,function v(A,S){if(A)return n(A);S?y(S,v):n(null)})}},Ofe=Nfe;var R9e=require("events");var o9e=Rt(require("util"),1),c9e=require("stream");var{asyncIterator:a9e}=Symbol,mlr=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[a9e]?yield*t[a9e]():yield t},sW=mlr;var glr=Ho.ALPHABET.ALPHA_DIGIT+"-_",Uq=typeof TextEncoder=="function"?new TextEncoder:new o9e.default.TextEncoder,OD=`\r
570
570
  `,Alr=Uq.encode(OD),ylr=2,Ffe=class{constructor(e,r){let{escapeName:n}=this.constructor,a=pt.isString(r),s=`Content-Disposition: form-data; name="${n(e)}"${!a&&r.name?`; filename="${n(r.name)}"`:""}${OD}`;if(a)r=Uq.encode(String(r).replace(/\r?\n|\r\n?/g,OD));else{let c=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");s+=`Content-Type: ${c}${OD}`}this.headers=Uq.encode(s+OD),this.contentLength=a?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+ylr,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;pt.isTypedArray(e)?yield e:yield*sW(e),yield Alr}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},vlr=(t,e,r)=>{let{tag:n="form-data-boundary",size:a=25,boundary:s=n+"-"+Ho.generateString(a,glr)}=r||{};if(!pt.isFormData(t))throw new TypeError("FormData instance required");if(s.length<1||s.length>70)throw new Error("boundary must be 1-70 characters long");let c=Uq.encode("--"+s+OD),u=Uq.encode("--"+s+"--"+OD),p=u.byteLength,f=Array.from(t.entries()).map(([g,y])=>{let v=new Ffe(g,y);return p+=v.size,v});p+=c.byteLength*f.length,p=pt.toFiniteNumber(p);let h={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(p)&&(h["Content-Length"]=p),e&&e(h),c9e.Readable.from(async function*(){for(let g of f)yield c,yield*g.encode();yield u}())},u9e=vlr;var l9e=Rt(require("stream"),1),Lfe=class extends l9e.default.Transform{__transform(e,r,n){this.push(e),n()}_transform(e,r,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let a=Buffer.alloc(2);a[0]=120,a[1]=156,this.push(a,r)}this.__transform(e,r,n)}},p9e=Lfe;var f9e=Rt(require("http2"),1),d9e=Rt(require("util"),1),jfe=class{constructor(){this.sessions=Object.create(null)}getSession(e,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[e];if(n){let g=n.length;for(let y=0;y<g;y++){let[v,A]=n[y];if(!v.destroyed&&!v.closed&&d9e.default.isDeepStrictEqual(A,r))return v}}let a=f9e.default.connect(e,r),s,c,u=()=>{if(s)return;s=!0,c&&(clearTimeout(c),c=null);let g=n,y=g.length,v=y;for(;v--;)if(g[v][0]===a){y===1?delete this.sessions[e]:g.splice(v,1),a.closed||a.close();return}},p=a.request,{sessionTimeout:f}=r;if(f!=null){let g=0;a.request=function(){let y=p.apply(this,arguments);return g++,c&&(clearTimeout(c),c=null),y.once("close",()=>{--g||(c=setTimeout(()=>{c=null,u()},f))}),y}}a.once("close",u);let h=[a,r];return n?n.push(h):n=this.sessions[e]=[h],a}},h9e=jfe;var xlr=(t,e)=>pt.isAsyncFn(t)?function(...r){let n=r.pop();t.apply(this,r).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(s){n(s)}},n)}:t,m9e=xlr;var blr=new Set(["localhost"]),y9e=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},Elr=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return y9e(e[1]);let r=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let a=parseInt(r[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},g9e=t=>t?blr.has(t)||y9e(t)?!0:Elr(t):!1,wlr={http:80,https:443,ws:80,wss:443,ftp:21},_lr=t=>{let e=t,r=0;if(e.charAt(0)==="["){let s=e.indexOf("]");if(s!==-1){let c=e.slice(1,s),u=e.slice(s+1);return u.charAt(0)===":"&&/^\d+$/.test(u.slice(1))&&(r=Number.parseInt(u.slice(1),10)),[c,r]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(r=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,r]},Slr=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Clr=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,Ilr=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(Slr);if(e)return e[1];let r=t.match(Clr);if(r){let n=parseInt(r[1],16),a=parseInt(r[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},A9e=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),Ilr(t.replace(/\.+$/,"")));function Mfe(t){let e;try{e=new URL(t)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let n=Number.parseInt(e.port,10)||wlr[e.protocol.split(":",1)[0]]||0,a=A9e(e.hostname.toLowerCase());return r.split(/[\s,]+/).some(s=>{if(!s)return!1;let[c,u]=_lr(s);return c=A9e(c),!c||u&&u!==n?!1:(c.charAt(0)==="*"&&(c=c.slice(1)),c.charAt(0)==="."?a.endsWith(c):a===c||g9e(a)&&g9e(c))})}function klr(t,e){t=t||10;let r=new Array(t),n=new Array(t),a=0,s=0,c;return e=e!==void 0?e:1e3,function(p){let f=Date.now(),h=n[s];c||(c=f),r[a]=p,n[a]=f;let g=s,y=0;for(;g!==a;)y+=r[g++],g=g%t;if(a=(a+1)%t,a===s&&(s=(s+1)%t),f-c<e)return;let v=h&&f-h;return v?Math.round(y*1e3/v):void 0}}var v9e=klr;function Tlr(t,e){let r=0,n=1e3/e,a,s,c=(f,h=Date.now())=>{r=h,a=null,s&&(clearTimeout(s),s=null),t(...f)};return[(...f)=>{let h=Date.now(),g=h-r;g>=n?c(f,h):(a=f,s||(s=setTimeout(()=>{s=null,c(a)},n-g)))},()=>a&&c(a)]}var x9e=Tlr;var JS=(t,e,r=3)=>{let n=0,a=v9e(50,250);return x9e(s=>{if(!s||typeof s.loaded!="number")return;let c=s.loaded,u=s.lengthComputable?s.total:void 0,p=u!=null?Math.min(c,u):c,f=Math.max(0,p-n),h=a(f);n=Math.max(n,p);let g={loaded:p,total:u,progress:u?p/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u?(u-p)/h:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(g)},r)},VF=(t,e)=>{let r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},GF=t=>(...e)=>pt.asap(()=>t(...e));function $q(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let c=n.length,u=n.length;for(let v=0;v<u;v++)if(n.charCodeAt(v)===37&&v+2<u){let A=n.charCodeAt(v+1),S=n.charCodeAt(v+2);(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102)&&(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102)&&(c-=2,v+=2)}let p=0,f=u-1,h=v=>v>=2&&n.charCodeAt(v-2)===37&&n.charCodeAt(v-1)===51&&(n.charCodeAt(v)===68||n.charCodeAt(v)===100);f>=0&&(n.charCodeAt(f)===61?(p++,f--):h(f)&&(p++,f-=3)),p===1&&f>=0&&(n.charCodeAt(f)===61||h(f))&&p++;let y=Math.floor(c/4)*3-(p||0);return y>0?y:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let s=0;for(let c=0,u=n.length;c<u;c++){let p=n.charCodeAt(c);if(p<128)s+=1;else if(p<2048)s+=2;else if(p>=55296&&p<=56319&&c+1<u){let f=n.charCodeAt(c+1);f>=56320&&f<=57343?(s+=4,c++):s+=3}else s+=3}return s}var b9e={flush:ry.default.constants.Z_SYNC_FLUSH,finishFlush:ry.default.constants.Z_SYNC_FLUSH},Blr={flush:ry.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:ry.default.constants.BROTLI_OPERATION_FLUSH},Dlr={flush:ry.default.constants.ZSTD_e_flush,finishFlush:ry.default.constants.ZSTD_e_flush},N9e=pt.isFunction(ry.default.createBrotliDecompress),O9e=pt.isFunction(ry.default.createZstdDecompress),F9e="gzip, compress, deflate"+(N9e?", br":""),Plr=F9e+(O9e?", zstd":""),{http:Rlr,https:Nlr}=P9e.default,L9e=/https:?/,Olr=["content-type","content-length"];function Flr(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{Olr.includes(n.toLowerCase())&&t.set(n,a)})}var E9e=Symbol("axios.http.socketListener"),aW=Symbol("axios.http.currentReq"),j9e=Symbol("axios.http.installedTunnel"),Llr=new Map,w9e=new WeakMap;function jlr(t,e){let r=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?w9e.get(e)||w9e.set(e,new Map).get(e):Llr,a=n.get(r);if(a)return a;let s=e&&e.options?{...e.options,...t}:t;if(a=new qfe.default(s),e&&e.options){let c={...e.options},u=a.callback;a.callback=function(f,h){return u.call(this,f,{...c,...h})}}return a[j9e]=!0,n.set(r,a),a}var _9e=Ho.protocols.map(t=>t+":"),S9e=t=>{if(!pt.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},C9e=(t,[e,r])=>(t.on("end",r).on("error",r),e),Mlr=new h9e;function Qlr(t,e,r){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.auth&&t.beforeRedirects.auth(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,r)}function M9e(t,e,r,n,a){let s=e;if(!s&&s!==!1){let c=FUe(r);c&&(Mfe(r)||(s=new URL(c)))}if(n&&t.headers)for(let c of Object.keys(t.headers))c.toLowerCase()==="proxy-authorization"&&delete t.headers[c];if(n&&t.agent&&t.agent[j9e]&&(t.agent=void 0),s){let c=s instanceof URL,u=y=>c||pt.hasOwnProp(s,y)?s[y]:void 0,p=u("username"),f=u("password"),h=pt.hasOwnProp(s,"auth")?s.auth:void 0;if(p&&(h=(p||"")+":"+(f||"")),h){let y=typeof h=="object",v=y&&pt.hasOwnProp(h,"username")?h.username:void 0,A=y&&pt.hasOwnProp(h,"password")?h.password:void 0;if(!!(v||A))h=(v||"")+":"+(A||"");else if(y)throw new Jr("Invalid proxy authorization",Jr.ERR_BAD_OPTION,{proxy:s})}if(L9e.test(t.protocol)){if(!(a instanceof qfe.default)){let y=u("hostname")||u("host"),v=u("port"),A=u("protocol"),S=A?A.includes(":")?A:`${A}:`:"http:",E=y&&y.includes(":")&&!y.startsWith("[")?`[${y}]`:y,k=new URL(`${S}//${E}${v?":"+v:""}`),R={protocol:k.protocol,hostname:k.hostname.replace(/^\[|\]$/g,""),port:k.port,auth:h&&typeof h=="string"?h:void 0};k.protocol==="https:"&&(R.ALPNProtocols=["http/1.1"]);let j=jlr(R,a);t.agent=j,t.agents&&(t.agents.https=j)}}else{if(h){let S=Buffer.from(h,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+S}let y=!1;for(let S of Object.keys(t.headers))if(S.toLowerCase()==="host"){y=!0;break}y||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let v=u("hostname")||u("host");t.hostname=v,t.host=v,t.port=u("port"),t.path=r;let A=u("protocol");A&&(t.protocol=A.includes(":")?A:`${A}:`)}}t.beforeRedirects.proxy=function(u){M9e(u,e,u.href,!0,a)}}var qlr=typeof process<"u"&&pt.kindOf(process)==="process",Ulr=t=>new Promise((e,r)=>{let n,a,s=(p,f)=>{a||(a=!0,n&&n(p,f))},c=p=>{s(p),e(p)},u=p=>{s(p,!0),r(p)};t(c,u,p=>n=p).catch(u)}),$lr=({address:t,family:e})=>{if(!pt.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},I9e=(t,e)=>$lr(pt.isObject(t)?t:{address:t,family:e}),zlr={request(t,e){let r=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,s=Mlr.getSession(r,n),{HTTP2_HEADER_SCHEME:c,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:p,HTTP2_HEADER_STATUS:f}=B9e.default.constants,h={[c]:t.protocol.replace(":",""),[u]:t.method,[p]:t.path};pt.forEach(a,(y,v)=>{v.charAt(0)!==":"&&(h[v]=y)});let g=s.request(h);return g.once("response",y=>{let v=g;y=Object.assign({},y);let A=y[f];delete y[f],v.headers=y,v.statusCode=+A,e(v)}),g}},Q9e=qlr&&function(e){return Ulr(async function(n,a,s){let c=St=>pt.hasOwnProp(e,St)?e[St]:void 0,u=c("transitional")||ek,p=c("data"),f=c("lookup"),h=c("family"),g=c("httpVersion");g===void 0&&(g=1);let y=c("http2Options"),v=c("responseType"),A=c("responseEncoding"),S=e.method.toUpperCase(),E,k=!1,R,j;if(g=+g,Number.isNaN(g))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(g!==1&&g!==2)throw TypeError(`Unsupported protocol version '${g}'`);let L=g===2;if(f){let St=m9e(f,Et=>pt.isArray(Et)?Et:[Et]);f=(Et,mt,B)=>{St(Et,mt,(Ye,ut,Ce)=>{if(Ye)return B(Ye);let _e=pt.isArray(ut)?ut.map(We=>I9e(We)):[I9e(ut,Ce)];mt.all?B(Ye,_e):B(Ye,_e[0].address,_e[0].family)})}}let $=new R9e.EventEmitter;function re(St){try{$.emit("abort",!St||St.type?new ty(null,e,R):St)}catch{}}function Y(){j&&(clearTimeout(j),j=null)}function me(){let St=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";return e.timeoutErrorMessage&&(St=e.timeoutErrorMessage),new Jr(St,u.clarifyTimeoutError?Jr.ETIMEDOUT:Jr.ECONNABORTED,e,R)}$.once("abort",a);let ne=()=>{Y(),e.cancelToken&&e.cancelToken.unsubscribe(re),e.signal&&e.signal.removeEventListener("abort",re),$.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(re),e.signal&&(e.signal.aborted?re():e.signal.addEventListener("abort",re))),s((St,Et)=>{if(E=!0,Y(),Et){k=!0,ne();return}let{data:mt}=St;if(mt instanceof Bv.default.Readable||mt instanceof Bv.default.Duplex){let B=Bv.default.finished(mt,()=>{B(),ne()})}else ne()});let ce=TD(e.baseURL,e.url,e.allowAbsoluteUrls),ee=new URL(ce,Ho.hasBrowserEnv?Ho.origin:void 0),ge=ee.protocol||_9e[0];if(ge==="data:"){if(e.maxContentLength>-1){let Et=String(e.url||ce||"");if($q(Et)>e.maxContentLength)return a(new Jr("maxContentLength size of "+e.maxContentLength+" exceeded",Jr.ERR_BAD_RESPONSE,e))}let St;if(S!=="GET")return qw(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{St=Pfe(e.url,v==="blob",{Blob:e.env&&e.env.Blob})}catch(Et){throw Jr.from(Et,Jr.ERR_BAD_REQUEST,e)}return v==="text"?(St=St.toString(A),(!A||A==="utf8")&&(St=pt.stripBOM(St))):v==="stream"&&(St=Bv.default.Readable.from(St)),qw(n,a,{data:St,status:200,statusText:"OK",headers:new Fu,config:e})}if(_9e.indexOf(ge)===-1)return a(new Jr("Unsupported protocol "+ge,Jr.ERR_BAD_REQUEST,e));let J=Fu.from(e.headers).normalize();J.set("User-Agent","axios/"+YS,!1);let{onUploadProgress:U,onDownloadProgress:de}=e,Fe=e.maxRate,ye,be;if(pt.isSpecCompliantForm(p)){let St=J.getContentType(/boundary=([-_\w\d]{10,70})/i);p=u9e(p,Et=>{J.set(Et)},{tag:`axios-${YS}-boundary`,boundary:St&&St[1]||void 0})}else if(pt.isFormData(p)&&pt.isFunction(p.getHeaders)&&p.getHeaders!==Object.prototype.getHeaders){if(Flr(J,p.getHeaders(),c("formDataHeaderPolicy")),!J.hasContentLength())try{let St=await D9e.default.promisify(p.getLength).call(p);Number.isFinite(St)&&St>=0&&J.setContentLength(St)}catch{}}else if(pt.isBlob(p)||pt.isFile(p))p.size&&J.setContentType(p.type||"application/octet-stream"),J.setContentLength(p.size||0),p=Bv.default.Readable.from(sW(p));else if(p&&!pt.isStream(p)){if(!Buffer.isBuffer(p))if(pt.isArrayBuffer(p))p=Buffer.from(new Uint8Array(p));else if(pt.isString(p))p=Buffer.from(p,"utf-8");else return a(new Jr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Jr.ERR_BAD_REQUEST,e));if(J.setContentLength(p.length,!1),e.maxBodyLength>-1&&p.length>e.maxBodyLength)return a(new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,e))}let Ne=pt.toFiniteNumber(J.getContentLength());pt.isArray(Fe)?(ye=Fe[0],be=Fe[1]):ye=be=Fe,p&&(U||ye)&&(pt.isStream(p)||(p=Bv.default.Readable.from(p,{objectMode:!1})),p=Bv.default.pipeline([p,new Ofe({maxRate:pt.toFiniteNumber(ye)})],pt.noop),U&&p.on("progress",C9e(p,VF(Ne,JS(GF(U),!1,3)))));let He,_t=c("auth");if(_t){let St=_t.username||"",Et=_t.password||"";He=St+":"+Et}if(!He&&(ee.username||ee.password)){let St=S9e(ee.username),Et=S9e(ee.password);He=St+":"+Et}He&&J.delete("authorization");let It;try{It=kD(ee.pathname+ee.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(St){let Et=new Error(St.message);return Et.config=e,Et.url=e.url,Et.exists=!0,a(Et)}J.set("Accept-Encoding",pt.hasOwnProp(u,"advertiseZstdAcceptEncoding")&&u.advertiseZstdAcceptEncoding===!0?Plr:F9e,!1);let Ze=Object.assign(Object.create(null),{path:It,method:S,headers:NF(J),agents:{http:e.httpAgent,https:e.httpsAgent},auth:He,protocol:ge,family:h,beforeRedirect:Qlr,beforeRedirects:Object.create(null),http2Options:y});!pt.isUndefined(f)&&(Ze.lookup=f);let Ke=c("socketPath");if(Ke){if(typeof Ke!="string")return a(new Jr("socketPath must be a string",Jr.ERR_BAD_OPTION_VALUE,e));let St=c("allowedSocketPaths");if(St!=null){let Et=Array.isArray(St)?St:[St],mt=(0,Qfe.resolve)(Ke);if(!Et.some(Ye=>typeof Ye=="string"&&(0,Qfe.resolve)(Ye)===mt))return a(new Jr(`socketPath "${Ke}" is not permitted by allowedSocketPaths`,Jr.ERR_BAD_OPTION_VALUE,e))}Ze.socketPath=Ke}else Ze.hostname=ee.hostname.startsWith("[")?ee.hostname.slice(1,-1):ee.hostname,Ze.port=ee.port,M9e(Ze,e.proxy,ge+"//"+ee.hostname+(ee.port?":"+ee.port:"")+Ze.path,!1,e.httpsAgent);let Me,et=!1,ot=L9e.test(Ze.protocol);if(Ze.agent==null&&(Ze.agent=ot?e.httpsAgent:e.httpAgent),L)Me=zlr;else{let St=c("transport");if(St)Me=St;else if(e.maxRedirects===0)Me=ot?T9e.default:k9e.default,et=!0;else{e.maxRedirects&&(Ze.maxRedirects=e.maxRedirects);let Et=c("beforeRedirect");if(Et&&(Ze.beforeRedirects.config=Et),He){let mt=ee.origin,B=He;Ze.beforeRedirects.auth=function(ut){try{new URL(ut.href).origin===mt&&(ut.auth=B)}catch{}}}Me=ot?Nlr:Rlr}}e.maxBodyLength>-1?Ze.maxBodyLength=e.maxBodyLength:Ze.maxBodyLength=1/0,Ze.insecureHTTPParser=!!c("insecureHTTPParser"),R=Me.request(Ze,function(Et){if(Y(),R.destroyed)return;let mt=[Et],B=pt.toFiniteNumber(Et.headers["content-length"]);if(de||be){let _e=new Ofe({maxRate:pt.toFiniteNumber(be)});de&&_e.on("progress",C9e(_e,VF(B,JS(GF(de),!0,3)))),mt.push(_e)}let Ye=Et,ut=Et.req||R;if(e.decompress!==!1&&Et.headers["content-encoding"])switch((S==="HEAD"||Et.statusCode===204)&&delete Et.headers["content-encoding"],(Et.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":mt.push(ry.default.createUnzip(b9e)),delete Et.headers["content-encoding"];break;case"deflate":mt.push(new p9e),mt.push(ry.default.createUnzip(b9e)),delete Et.headers["content-encoding"];break;case"br":N9e&&(mt.push(ry.default.createBrotliDecompress(Blr)),delete Et.headers["content-encoding"]);break;case"zstd":O9e&&(mt.push(ry.default.createZstdDecompress(Dlr)),delete Et.headers["content-encoding"]);break}Ye=mt.length>1?Bv.default.pipeline(mt,pt.noop):mt[0];let Ce={status:Et.statusCode,statusText:Et.statusMessage,headers:new Fu(Et.headers),config:e,request:ut};if(v==="stream"){if(e.maxContentLength>-1){let _e=e.maxContentLength,We=Ye;async function*rt(){let pe=0;for await(let Je of We){if(pe+=Je.length,pe>_e)throw new Jr("maxContentLength size of "+_e+" exceeded",Jr.ERR_BAD_RESPONSE,e,ut);yield Je}}Ye=Bv.default.Readable.from(rt(),{objectMode:!1})}Ce.data=Ye,qw(n,a,Ce)}else{let _e=[],We=0;Ye.on("data",function(pe){_e.push(pe),We+=pe.length,e.maxContentLength>-1&&We>e.maxContentLength&&(k=!0,Ye.destroy(),re(new Jr("maxContentLength size of "+e.maxContentLength+" exceeded",Jr.ERR_BAD_RESPONSE,e,ut)))}),Ye.on("aborted",function(){if(k)return;let pe=new Jr("stream has been aborted",Jr.ERR_BAD_RESPONSE,e,ut,Ce);Ye.destroy(pe),a(pe)}),Ye.on("error",function(pe){k||a(Jr.from(pe,null,e,ut,Ce))}),Ye.on("end",function(){try{let pe=_e.length===1?_e[0]:Buffer.concat(_e);v!=="arraybuffer"&&(pe=pe.toString(A),(!A||A==="utf8")&&(pe=pt.stripBOM(pe))),Ce.data=pe}catch(pe){return a(Jr.from(pe,null,e,Ce.request,Ce))}qw(n,a,Ce)})}$.once("abort",_e=>{Ye.destroyed||(Ye.emit("error",_e),Ye.destroy())})}),$.once("abort",St=>{R.close?R.close():R.destroy(St)}),R.on("error",function(Et){a(Jr.from(Et,null,e,R))});let Mt=new Set;if(R.on("socket",function(Et){Et.setKeepAlive(!0,1e3*60),Et[E9e]||(Et.on("error",function(B){let Ye=Et[aW];Ye&&!Ye.destroyed&&Ye.destroy(B)}),Et[E9e]=!0),Et[aW]=R,Mt.add(Et)}),R.once("close",function(){Y();for(let Et of Mt)Et[aW]===R&&(Et[aW]=null);Mt.clear()}),e.timeout){let St=parseInt(e.timeout,10);if(Number.isNaN(St)){re(new Jr("error trying to parse `config.timeout` to int",Jr.ERR_BAD_OPTION_VALUE,e,R));return}let Et=function(){E||re(me())};et&&St>0&&(j=setTimeout(Et,St)),R.setTimeout(St,Et)}else R.setTimeout(0);if(pt.isStream(p)){let St=!1,Et=!1;p.on("end",()=>{St=!0}),p.once("error",B=>{Et=!0,R.destroy(B)}),p.on("close",()=>{!St&&!Et&&re(new ty("Request stream has been aborted",e,R))});let mt=p;if(e.maxBodyLength>-1&&e.maxRedirects===0){let B=e.maxBodyLength,Ye=0;mt=Bv.default.pipeline([p,new Bv.default.Transform({transform(ut,Ce,_e){if(Ye+=ut.length,Ye>B)return _e(new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,e,R));_e(null,ut)}})],pt.noop),mt.on("error",ut=>{R.destroyed||R.destroy(ut)})}mt.pipe(R)}else p&&R.write(p),R.end()})};var q9e=Ho.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Ho.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Ho.origin),Ho.navigator&&/(msie|trident)/i.test(Ho.navigator.userAgent)):()=>!0;var U9e=Ho.hasStandardBrowserEnv?{write(t,e,r,n,a,s,c){if(typeof document>"u")return;let u=[`${t}=${encodeURIComponent(e)}`];pt.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),pt.isString(n)&&u.push(`path=${n}`),pt.isString(a)&&u.push(`domain=${a}`),s===!0&&u.push("secure"),pt.isString(c)&&u.push(`SameSite=${c}`),document.cookie=u.join("; ")},read(t){if(typeof document>"u")return null;let e=document.cookie.split(";");for(let r=0;r<e.length;r++){let n=e[r].replace(/^\s+/,""),a=n.indexOf("=");if(a!==-1&&n.slice(0,a)===t)return decodeURIComponent(n.slice(a+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var $9e=t=>t instanceof Fu?{...t}:t;function Cb(t,e){e=e||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(f,h,g,y){return pt.isPlainObject(f)&&pt.isPlainObject(h)?pt.merge.call({caseless:y},f,h):pt.isPlainObject(h)?pt.merge({},h):pt.isArray(h)?h.slice():h}function a(f,h,g,y){if(pt.isUndefined(h)){if(!pt.isUndefined(f))return n(void 0,f,g,y)}else return n(f,h,g,y)}function s(f,h){if(!pt.isUndefined(h))return n(void 0,h)}function c(f,h){if(pt.isUndefined(h)){if(!pt.isUndefined(f))return n(void 0,f)}else return n(void 0,h)}function u(f,h,g){if(pt.hasOwnProp(e,g))return n(f,h);if(pt.hasOwnProp(t,g))return n(void 0,f)}let p={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:u,headers:(f,h,g)=>a($9e(f),$9e(h),g,!0)};return pt.forEach(Object.keys({...t,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;let g=pt.hasOwnProp(p,h)?p[h]:a,y=pt.hasOwnProp(t,h)?t[h]:void 0,v=pt.hasOwnProp(e,h)?e[h]:void 0,A=g(y,v,h);pt.isUndefined(A)&&g!==u||(r[h]=A)}),r}var Hlr=["content-type","content-length"];function Vlr(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{Hlr.includes(n.toLowerCase())&&t.set(n,a)})}var Glr=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16)));function Wlr(t){let e=Cb({},t),r=y=>pt.hasOwnProp(e,y)?e[y]:void 0,n=r("data"),a=r("withXSRFToken"),s=r("xsrfHeaderName"),c=r("xsrfCookieName"),u=r("headers"),p=r("auth"),f=r("baseURL"),h=r("allowAbsoluteUrls"),g=r("url");if(e.headers=u=Fu.from(u),e.url=kD(TD(f,g,h),r("params"),r("paramsSerializer")),p&&u.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?Glr(p.password):""))),pt.isFormData(n)&&(Ho.hasStandardBrowserEnv||Ho.hasStandardBrowserWebWorkerEnv||pt.isReactNative(n)?u.setContentType(void 0):pt.isFunction(n.getHeaders)&&Vlr(u,n.getHeaders(),r("formDataHeaderPolicy"))),Ho.hasStandardBrowserEnv&&(pt.isFunction(a)&&(a=a(e)),a===!0||a==null&&q9e(e.url))){let v=s&&c&&U9e.read(c);v&&u.set(s,v)}return e}var oW=Wlr;var Ylr=typeof XMLHttpRequest<"u",z9e=Ylr&&function(t){return new Promise(function(r,n){let a=oW(t),s=a.data,c=Fu.from(a.headers).normalize(),{responseType:u,onUploadProgress:p,onDownloadProgress:f}=a,h,g,y,v,A;function S(){v&&v(),A&&A(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let E=new XMLHttpRequest;E.open(a.method.toUpperCase(),a.url,!0),E.timeout=a.timeout;function k(){if(!E)return;let j=Fu.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),$={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:j,config:t,request:E};qw(function(Y){r(Y),S()},function(Y){n(Y),S()},$),E=null}"onloadend"in E?E.onloadend=k:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.startsWith("file:"))||setTimeout(k)},E.onabort=function(){E&&(n(new Jr("Request aborted",Jr.ECONNABORTED,t,E)),S(),E=null)},E.onerror=function(L){let $=L&&L.message?L.message:"Network Error",re=new Jr($,Jr.ERR_NETWORK,t,E);re.event=L||null,n(re),S(),E=null},E.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",$=a.transitional||ek;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),n(new Jr(L,$.clarifyTimeoutError?Jr.ETIMEDOUT:Jr.ECONNABORTED,t,E)),S(),E=null},s===void 0&&c.setContentType(null),"setRequestHeader"in E&&pt.forEach(NF(c),function(L,$){E.setRequestHeader($,L)}),pt.isUndefined(a.withCredentials)||(E.withCredentials=!!a.withCredentials),u&&u!=="json"&&(E.responseType=a.responseType),f&&([y,A]=JS(f,!0),E.addEventListener("progress",y)),p&&E.upload&&([g,v]=JS(p),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(h=j=>{E&&(n(!j||j.type?new ty(null,t,E):j),E.abort(),S(),E=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));let R=qq(a.url);if(R&&!Ho.protocols.includes(R)){n(new Jr("Unsupported protocol "+R+":",Jr.ERR_BAD_REQUEST,t));return}E.send(s||null)})};var Jlr=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let r=new AbortController,n=!1,a=function(p){if(!n){n=!0,c();let f=p instanceof Error?p:this.reason;r.abort(f instanceof Jr?f:new ty(f instanceof Error?f.message:f))}},s=e&&setTimeout(()=>{s=null,a(new Jr(`timeout of ${e}ms exceeded`,Jr.ETIMEDOUT))},e),c=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),t=null)};t.forEach(p=>p.addEventListener("abort",a));let{signal:u}=r;return u.unsubscribe=()=>pt.asap(c),u},H9e=Jlr;var Klr=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,a;for(;n<r;)a=n+e,yield t.slice(n,a),n=a},Xlr=async function*(t,e){for await(let r of Zlr(t))yield*Klr(r,e)},Zlr=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Ufe=(t,e,r,n)=>{let a=Xlr(t,e),s=0,c,u=p=>{c||(c=!0,n&&n(p))};return new ReadableStream({async pull(p){try{let{done:f,value:h}=await a.next();if(f){u(),p.close();return}let g=h.byteLength;if(r){let y=s+=g;r(y)}p.enqueue(new Uint8Array(h))}catch(f){throw u(f),f}},cancel(p){return u(p),a.return()}},{highWaterMark:2})};var V9e=64*1024,{isFunction:cW}=pt,epr=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),G9e=t=>{if(!pt.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},W9e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},tpr=t=>{let e=t.indexOf("://"),r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},rpr=t=>{let e=pt.global!==void 0&&pt.global!==null?pt.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=pt.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:s,Response:c}=t,u=a?cW(a):typeof fetch=="function",p=cW(s),f=cW(c);if(!u)return!1;let h=u&&cW(r),g=u&&(typeof n=="function"?(k=>R=>k.encode(R))(new n):async k=>new Uint8Array(await new s(k).arrayBuffer())),y=p&&h&&W9e(()=>{let k=!1,R=new s(Ho.origin,{body:new r,method:"POST",get duplex(){return k=!0,"half"}}),j=R.headers.has("Content-Type");return R.body!=null&&R.body.cancel(),k&&!j}),v=f&&h&&W9e(()=>pt.isReadableStream(new c("").body)),A={stream:v&&(k=>k.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!A[k]&&(A[k]=(R,j)=>{let L=R&&R[k];if(L)return L.call(R);throw new Jr(`Response type '${k}' is not supported`,Jr.ERR_NOT_SUPPORT,j)})});let S=async k=>{if(k==null)return 0;if(pt.isBlob(k))return k.size;if(pt.isSpecCompliantForm(k))return(await new s(Ho.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(pt.isArrayBufferView(k)||pt.isArrayBuffer(k))return k.byteLength;if(pt.isURLSearchParams(k)&&(k=k+""),pt.isString(k))return(await g(k)).byteLength},E=async(k,R)=>{let j=pt.toFiniteNumber(k.getContentLength());return j==null?S(R):j};return async k=>{let{url:R,method:j,data:L,signal:$,cancelToken:re,timeout:Y,onDownloadProgress:me,onUploadProgress:ne,responseType:ce,headers:ee,withCredentials:ge="same-origin",fetchOptions:J,maxContentLength:U,maxBodyLength:de}=oW(k),Fe=pt.isNumber(U)&&U>-1,ye=pt.isNumber(de)&&de>-1,be=Ke=>pt.hasOwnProp(k,Ke)?k[Ke]:void 0,Ne=a||fetch;ce=ce?(ce+"").toLowerCase():"text";let He=H9e([$,re&&re.toAbortSignal()],Y),_t=null,It=He&&He.unsubscribe&&(()=>{He.unsubscribe()}),Ze;try{let Ke,Me=be("auth");if(Me){let mt=Me.username||"",B=Me.password||"";Ke={username:mt,password:B}}if(tpr(R)){let mt=new URL(R,Ho.origin);if(!Ke&&(mt.username||mt.password)){let B=G9e(mt.username),Ye=G9e(mt.password);Ke={username:B,password:Ye}}(mt.username||mt.password)&&(mt.username="",mt.password="",R=mt.href)}if(Ke&&(ee.delete("authorization"),ee.set("Authorization","Basic "+btoa(epr((Ke.username||"")+":"+(Ke.password||""))))),Fe&&typeof R=="string"&&R.startsWith("data:")&&$q(R)>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,_t);if(ye&&j!=="get"&&j!=="head"){let mt=await E(ee,L);if(typeof mt=="number"&&isFinite(mt)&&mt>de)throw new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,k,_t)}if(ne&&y&&j!=="get"&&j!=="head"&&(Ze=await E(ee,L))!==0){let mt=new s(R,{method:"POST",body:L,duplex:"half"}),B;if(pt.isFormData(L)&&(B=mt.headers.get("content-type"))&&ee.setContentType(B),mt.body){let[Ye,ut]=VF(Ze,JS(GF(ne)));L=Ufe(mt.body,V9e,Ye,ut)}}pt.isString(ge)||(ge=ge?"include":"omit");let et=p&&"credentials"in s.prototype;if(pt.isFormData(L)){let mt=ee.getContentType();mt&&/^multipart\/form-data/i.test(mt)&&!/boundary=/i.test(mt)&&ee.delete("content-type")}ee.set("User-Agent","axios/"+YS,!1);let ot={...J,signal:He,method:j.toUpperCase(),headers:NF(ee.normalize()),body:L,duplex:"half",credentials:et?ge:void 0};_t=p&&new s(R,ot);let Mt=await(p?Ne(_t,J):Ne(R,ot));if(Fe){let mt=pt.toFiniteNumber(Mt.headers.get("content-length"));if(mt!=null&&mt>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,_t)}let St=v&&(ce==="stream"||ce==="response");if(v&&Mt.body&&(me||Fe||St&&It)){let mt={};["status","statusText","headers"].forEach(We=>{mt[We]=Mt[We]});let B=pt.toFiniteNumber(Mt.headers.get("content-length")),[Ye,ut]=me&&VF(B,JS(GF(me),!0))||[],Ce=0,_e=We=>{if(Fe&&(Ce=We,Ce>U))throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,_t);Ye&&Ye(We)};Mt=new c(Ufe(Mt.body,V9e,_e,()=>{ut&&ut(),It&&It()}),mt)}ce=ce||"text";let Et=await A[pt.findKey(A,ce)||"text"](Mt,k);if(Fe&&!v&&!St){let mt;if(Et!=null&&(typeof Et.byteLength=="number"?mt=Et.byteLength:typeof Et.size=="number"?mt=Et.size:typeof Et=="string"&&(mt=typeof n=="function"?new n().encode(Et).byteLength:Et.length)),typeof mt=="number"&&mt>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,_t)}return!St&&It&&It(),await new Promise((mt,B)=>{qw(mt,B,{data:Et,headers:Fu.from(Mt.headers),status:Mt.status,statusText:Mt.statusText,config:k,request:_t})})}catch(Ke){if(It&&It(),He&&He.aborted&&He.reason instanceof Jr){let Me=He.reason;throw Me.config=k,_t&&(Me.request=_t),Ke!==Me&&(Me.cause=Ke),Me}throw Ke&&Ke.name==="TypeError"&&/Load failed|fetch/i.test(Ke.message)?Object.assign(new Jr("Network Error",Jr.ERR_NETWORK,k,_t,Ke&&Ke.response),{cause:Ke.cause||Ke}):Jr.from(Ke,Ke&&Ke.code,k,_t,Ke&&Ke.response)}}},npr=new Map,$fe=t=>{let e=t&&t.env||{},{fetch:r,Request:n,Response:a}=e,s=[n,a,r],c=s.length,u=c,p,f,h=npr;for(;u--;)p=s[u],f=h.get(p),f===void 0&&h.set(p,f=u?new Map:rpr(e)),h=f;return f},shi=$fe();var zfe={http:Q9e,xhr:z9e,fetch:{get:$fe}};pt.forEach(zfe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Y9e=t=>`- ${t}`,spr=t=>pt.isFunction(t)||t===null||t===!1;function apr(t,e){t=pt.isArray(t)?t:[t];let{length:r}=t,n,a,s={};for(let c=0;c<r;c++){n=t[c];let u;if(a=n,!spr(n)&&(a=zfe[(u=String(n)).toLowerCase()],a===void 0))throw new Jr(`Unknown adapter '${u}'`);if(a&&(pt.isFunction(a)||(a=a.get(e))))break;s[u||"#"+c]=a}if(!a){let c=Object.entries(s).map(([p,f])=>`adapter ${p} `+(f===!1?"is not supported by the environment":"is not available in the build")),u=r?c.length>1?`since :