edgeone 1.6.18 → 1.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/edgeone-dist/cli.js +80 -76
- package/edgeone-dist/pages/dev/runner-worker.js +80 -76
- package/edgeone-dist/pages/templates/agent-python/adapter.py +5 -6
- package/edgeone-dist/studio/ui/assets/agent-obs-Dvi4IpEy.js +4 -0
- package/edgeone-dist/studio/ui/assets/agent-obs-qDJCE0TQ.css +1 -0
- package/edgeone-dist/studio/ui/assets/{index-DN8YhmEp.js → index-DD3d108t.js} +1 -1
- package/edgeone-dist/studio/ui/index.html +3 -3
- package/package.json +1 -1
- package/edgeone-dist/studio/ui/assets/agent-obs-BpTIot8x.js +0 -4
- package/edgeone-dist/studio/ui/assets/agent-obs-CEOY4DZz.css +0 -1
package/edgeone-dist/cli.js
CHANGED
|
@@ -566,7 +566,7 @@ ${A.join(`
|
|
|
566
566
|
`;y.forEach(A=>{v+=A}),e.fail(v)}};let p={};s.conflicts=function(g,y){si("<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 P=C3e(g,k);P<=3&&P<S&&(S=P,A=k)}A&&e.fail(n("Did you mean %s?",A))},s.reset=function(g){return c=YI(c,y=>!g[y]),p=YI(p,y=>!g[y]),s};let f=[];return s.freeze=function(){f.push({implied:c,conflicting:p})},s.unfreeze=function(){let g=f.pop();ig(g,void 0,r),{implied:c,conflicting:p}=g},s}var ci=function(t,e,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.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)},Fp,lD,R8,Sv,JA,GV,KI,pD,WV,Cv,YV,Iv,Mw,KA,kv,JV,dF,md,Bi,KV,XV,XA,fD,hF,dD,XI,ZV,xs,hD,mD,gD,Ls,eG,Qw,cp;function W3e(t){return(e=[],r=t.process.cwd(),n)=>{let o=new Mue(e,r,n,t);return Object.defineProperty(o,"argv",{get:()=>o.parse(),enumerable:!0}),o.help(),o.version(),o}}var T3e=Symbol("copyDoubleDash"),B3e=Symbol("copyDoubleDash"),Tue=Symbol("deleteFromParserHintObject"),D3e=Symbol("emitWarning"),P3e=Symbol("freeze"),R3e=Symbol("getDollarZero"),AD=Symbol("getParserConfiguration"),N3e=Symbol("getUsageConfiguration"),Bue=Symbol("guessLocale"),O3e=Symbol("guessVersion"),F3e=Symbol("parsePositionalNumbers"),Due=Symbol("pkgUp"),ZI=Symbol("populateParserHintArray"),mF=Symbol("populateParserHintSingleValueDictionary"),Pue=Symbol("populateParserHintArrayDictionary"),Rue=Symbol("populateParserHintDictionary"),Nue=Symbol("sanitizeKey"),Oue=Symbol("setKey"),Fue=Symbol("unfreeze"),L3e=Symbol("validateAsync"),j3e=Symbol("getCommandInstance"),M3e=Symbol("getContext"),Q3e=Symbol("getHasOutput"),q3e=Symbol("getLoggerInstance"),U3e=Symbol("getParseContext"),$3e=Symbol("getUsageInstance"),z3e=Symbol("getValidationInstance"),tG=Symbol("hasParseCallback"),H3e=Symbol("isGlobalContext"),yD=Symbol("postProcess"),V3e=Symbol("rebase"),Lue=Symbol("reset"),N8=Symbol("runYargsParserAndExecuteCommands"),jue=Symbol("runValidation"),G3e=Symbol("setHasOutput"),vD=Symbol("kTrackManuallySetKeys"),Mue=class{constructor(e=[],r,n,o){this.customScriptName=!1,this.parsed=!1,Fp.set(this,void 0),lD.set(this,void 0),R8.set(this,{commands:[],fullCommands:[]}),Sv.set(this,null),JA.set(this,null),GV.set(this,"show-hidden"),KI.set(this,null),pD.set(this,!0),WV.set(this,{}),Cv.set(this,!0),YV.set(this,[]),Iv.set(this,void 0),Mw.set(this,{}),KA.set(this,!1),kv.set(this,null),JV.set(this,!0),dF.set(this,void 0),md.set(this,""),Bi.set(this,void 0),KV.set(this,void 0),XV.set(this,{}),XA.set(this,null),fD.set(this,null),hF.set(this,{}),dD.set(this,{}),XI.set(this,void 0),ZV.set(this,!1),xs.set(this,void 0),hD.set(this,!1),mD.set(this,!1),gD.set(this,!1),Ls.set(this,void 0),eG.set(this,{}),Qw.set(this,null),cp.set(this,void 0),ci(this,xs,o,"f"),ci(this,XI,e,"f"),ci(this,lD,r,"f"),ci(this,KV,n,"f"),ci(this,Iv,new zV(this),"f"),this.$0=this[R3e](),this[Lue](),ci(this,Fp,Ve(this,Fp,"f"),"f"),ci(this,Ls,Ve(this,Ls,"f"),"f"),ci(this,cp,Ve(this,cp,"f"),"f"),ci(this,Bi,Ve(this,Bi,"f"),"f"),Ve(this,Bi,"f").showHiddenOpt=Ve(this,GV,"f"),ci(this,dF,this[B3e](),"f")}addHelpOpt(e,r){let n="help";return si("[string|boolean] [string]",[e,r],arguments.length),Ve(this,kv,"f")&&(this[Tue](Ve(this,kv,"f")),ci(this,kv,null,"f")),e===!1&&r===void 0?this:(ci(this,kv,typeof e=="string"?e:n,"f"),this.boolean(Ve(this,kv,"f")),this.describe(Ve(this,kv,"f"),r||Ve(this,Ls,"f").deferY18nLookup("Show help")),this)}help(e,r){return this.addHelpOpt(e,r)}addShowHiddenOpt(e,r){if(si("[string|boolean] [string]",[e,r],arguments.length),e===!1&&r===void 0)return this;let n=typeof e=="string"?e:Ve(this,GV,"f");return this.boolean(n),this.describe(n,r||Ve(this,Ls,"f").deferY18nLookup("Show hidden options")),Ve(this,Bi,"f").showHiddenOpt=n,this}showHidden(e,r){return this.addShowHiddenOpt(e,r)}alias(e,r){return si("<object|string|array> [string|array]",[e,r],arguments.length),this[Pue](this.alias.bind(this),"alias",e,r),this}array(e){return si("<array|string>",[e],arguments.length),this[ZI]("array",e),this[vD](e),this}boolean(e){return si("<array|string>",[e],arguments.length),this[ZI]("boolean",e),this[vD](e),this}check(e,r){return si("<function> [boolean]",[e,r],arguments.length),this.middleware((n,o)=>uD(()=>e(n,o.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&Ve(this,Ls,"f").fail(s.toString(),s):Ve(this,Ls,"f").fail(Ve(this,xs,"f").y18n.__("Argument check failed: %s",e.toString())),n),s=>(Ve(this,Ls,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(e,r){return si("<object|string|array> [string|array]",[e,r],arguments.length),this[Pue](this.choices.bind(this),"choices",e,r),this}coerce(e,r){if(si("<object|string|array> [function]",[e,r],arguments.length),Array.isArray(e)){if(!r)throw new ju("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 ju("coerce callback must be provided");return Ve(this,Bi,"f").key[e]=!0,Ve(this,Iv,"f").addCoerceMiddleware((n,o)=>{let s;return Object.prototype.hasOwnProperty.call(n,e)?uD(()=>(s=o.getAliases(),r(n[e])),u=>{n[e]=u;let p=o.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[e]&&p!==!0)for(let f of s[e])n[f]=u;return n},u=>{throw new ju(u.message)}):n},e),this}conflicts(e,r){return si("<string|object> [string|array]",[e,r],arguments.length),Ve(this,cp,"f").conflicts(e,r),this}config(e="config",r,n){return si("[object|string] [string|function] [function]",[e,r,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=B8(e,Ve(this,lD,"f"),this[AD]()["deep-merge-config"]||!1,Ve(this,xs,"f")),Ve(this,Bi,"f").configObjects=(Ve(this,Bi,"f").configObjects||[]).concat(e),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(e,r||Ve(this,Ls,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(o=>{Ve(this,Bi,"f").config[o]=n||!0}),this)}completion(e,r,n){return si("[string] [string|boolean|function] [function]",[e,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),ci(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,Sv,"f").registerFunction(n),this}command(e,r,n,o,s,c){return si("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,r,n,o,s,c],arguments.length),Ve(this,Fp,"f").addHandler(e,r,n,o,s,c),this}commands(e,r,n,o,s,c){return this.command(e,r,n,o,s,c)}commandDir(e,r){si("<string> [object]",[e,r],arguments.length);let n=Ve(this,KV,"f")||Ve(this,xs,"f").require;return Ve(this,Fp,"f").addDirectory(e,n,Ve(this,xs,"f").getCallerFile(),r),this}count(e){return si("<array|string>",[e],arguments.length),this[ZI]("count",e),this[vD](e),this}default(e,r,n){return si("<object|string|array> [*] [string]",[e,r,n],arguments.length),n&&(_ue(e,Ve(this,xs,"f")),Ve(this,Bi,"f").defaultDescription[e]=n),typeof r=="function"&&(_ue(e,Ve(this,xs,"f")),Ve(this,Bi,"f").defaultDescription[e]||(Ve(this,Bi,"f").defaultDescription[e]=Ve(this,Ls,"f").functionDescription(r)),r=r.call()),this[mF](this.default.bind(this),"default",e,r),this}defaults(e,r,n){return this.default(e,r,n)}demandCommand(e=1,r,n,o){return si("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,r,n,o],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),Ve(this,Bi,"f").demandedCommands._={min:e,max:r,minMsg:n,maxMsg:o},this}demand(e,r,n){return Array.isArray(r)?(r.forEach(o=>{ig(n,!0,Ve(this,xs,"f")),this.demandOption(o,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof e=="number"?(ig(n,!0,Ve(this,xs,"f")),this.demandCommand(e,r,n,n)):Array.isArray(e)?e.forEach(o=>{ig(n,!0,Ve(this,xs,"f")),this.demandOption(o,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,r){return si("<object|string|array> [string]",[e,r],arguments.length),this[mF](this.demandOption.bind(this),"demandedOptions",e,r),this}deprecateOption(e,r){return si("<string> [string|boolean]",[e,r],arguments.length),Ve(this,Bi,"f").deprecatedOptions[e]=r,this}describe(e,r){return si("<object|string|array> [string]",[e,r],arguments.length),this[Oue](e,!0),Ve(this,Ls,"f").describe(e,r),this}detectLocale(e){return si("<boolean>",[e],arguments.length),ci(this,pD,e,"f"),this}env(e){return si("[string|boolean]",[e],arguments.length),e===!1?delete Ve(this,Bi,"f").envPrefix:Ve(this,Bi,"f").envPrefix=e||"",this}epilogue(e){return si("<string>",[e],arguments.length),Ve(this,Ls,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,r){return si("<string|array> [string]",[e,r],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):Ve(this,Ls,"f").example(e,r),this}exit(e,r){ci(this,KA,!0,"f"),ci(this,KI,r,"f"),Ve(this,Cv,"f")&&Ve(this,xs,"f").process.exit(e)}exitProcess(e=!0){return si("[boolean]",[e],arguments.length),ci(this,Cv,e,"f"),this}fail(e){if(si("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new ju("Invalid first argument. Expected function or boolean 'false'");return Ve(this,Ls,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,r){return si("<array> [function]",[e,r],arguments.length),r?Ve(this,Sv,"f").getCompletion(e,r):new Promise((n,o)=>{Ve(this,Sv,"f").getCompletion(e,(s,c)=>{s?o(s):n(c)})})}getDemandedOptions(){return si([],0),Ve(this,Bi,"f").demandedOptions}getDemandedCommands(){return si([],0),Ve(this,Bi,"f").demandedCommands}getDeprecatedOptions(){return si([],0),Ve(this,Bi,"f").deprecatedOptions}getDetectLocale(){return Ve(this,pD,"f")}getExitProcess(){return Ve(this,Cv,"f")}getGroups(){return Object.assign({},Ve(this,Mw,"f"),Ve(this,dD,"f"))}getHelp(){if(ci(this,KA,!0,"f"),!Ve(this,Ls,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[N8](Ve(this,XI,"f"),void 0,void 0,0,!0);if(Mu(r))return r.then(()=>Ve(this,Ls,"f").help())}let e=Ve(this,Fp,"f").runDefaultBuilderOn(this);if(Mu(e))return e.then(()=>Ve(this,Ls,"f").help())}return Promise.resolve(Ve(this,Ls,"f").help())}getOptions(){return Ve(this,Bi,"f")}getStrict(){return Ve(this,hD,"f")}getStrictCommands(){return Ve(this,mD,"f")}getStrictOptions(){return Ve(this,gD,"f")}global(e,r){return si("<string|array> [boolean]",[e,r],arguments.length),e=[].concat(e),r!==!1?Ve(this,Bi,"f").local=Ve(this,Bi,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{Ve(this,Bi,"f").local.includes(n)||Ve(this,Bi,"f").local.push(n)}),this}group(e,r){si("<string|array> <string>",[e,r],arguments.length);let n=Ve(this,dD,"f")[r]||Ve(this,Mw,"f")[r];Ve(this,dD,"f")[r]&&delete Ve(this,dD,"f")[r];let o={};return Ve(this,Mw,"f")[r]=(n||[]).concat(e).filter(s=>o[s]?!1:o[s]=!0),this}hide(e){return si("<string>",[e],arguments.length),Ve(this,Bi,"f").hiddenOptions.push(e),this}implies(e,r){return si("<string|object> [number|string|array]",[e,r],arguments.length),Ve(this,cp,"f").implies(e,r),this}locale(e){return si("[string]",[e],arguments.length),e===void 0?(this[Bue](),Ve(this,xs,"f").y18n.getLocale()):(ci(this,pD,!1,"f"),Ve(this,xs,"f").y18n.setLocale(e),this)}middleware(e,r,n){return Ve(this,Iv,"f").addMiddleware(e,!!r,n)}nargs(e,r){return si("<string|object|array> [number]",[e,r],arguments.length),this[mF](this.nargs.bind(this),"narg",e,r),this}normalize(e){return si("<array|string>",[e],arguments.length),this[ZI]("normalize",e),this}number(e){return si("<array|string>",[e],arguments.length),this[ZI]("number",e),this[vD](e),this}option(e,r){if(si("<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[vD](e),Ve(this,Qw,"f")&&(e==="version"||(r==null?void 0:r.alias)==="version")&&this[D3e](['"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(`
|
|
567
567
|
`),void 0,"versionWarning"),Ve(this,Bi,"f").key[e]=!0,r.alias&&this.alias(e,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(e,n);let o=r.demand||r.required||r.require;o&&this.demand(e,o),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,Bi,"f").defaultDescription[e]=r.defaultDescription),r.skipValidation&&this.skipValidation(e);let s=r.describe||r.description||r.desc,c=Ve(this,Ls,"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){si("[string|array] [function|boolean|object] [function]",[e,r,n],arguments.length),this[P3e](),typeof e>"u"&&(e=Ve(this,XI,"f")),typeof r=="object"&&(ci(this,fD,r,"f"),r=n),typeof r=="function"&&(ci(this,XA,r,"f"),r=!1),r||ci(this,XI,e,"f"),Ve(this,XA,"f")&&ci(this,Cv,!1,"f");let o=this[N8](e,!!r),s=this.parsed;return Ve(this,Sv,"f").setParsed(this.parsed),Mu(o)?o.then(c=>(Ve(this,XA,"f")&&Ve(this,XA,"f").call(this,Ve(this,KI,"f"),c,Ve(this,md,"f")),c)).catch(c=>{throw Ve(this,XA,"f")&&Ve(this,XA,"f")(c,this.parsed.argv,Ve(this,md,"f")),c}).finally(()=>{this[Fue](),this.parsed=s}):(Ve(this,XA,"f")&&Ve(this,XA,"f").call(this,Ve(this,KI,"f"),o,Ve(this,md,"f")),this[Fue](),this.parsed=s,o)}parseAsync(e,r,n){let o=this.parse(e,r,n);return Mu(o)?o:Promise.resolve(o)}parseSync(e,r,n){let o=this.parse(e,r,n);if(Mu(o))throw new ju(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return o}parserConfiguration(e){return si("<object>",[e],arguments.length),ci(this,XV,e,"f"),this}pkgConf(e,r){si("<string> [string]",[e,r],arguments.length);let n=null,o=this[Due](r||Ve(this,lD,"f"));return o[e]&&typeof o[e]=="object"&&(n=B8(o[e],r||Ve(this,lD,"f"),this[AD]()["deep-merge-config"]||!1,Ve(this,xs,"f")),Ve(this,Bi,"f").configObjects=(Ve(this,Bi,"f").configObjects||[]).concat(n)),this}positional(e,r){si("<string> <object>",[e,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=YI(r,(c,u)=>c==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(c));let o=Ve(this,R8,"f").fullCommands[Ve(this,R8,"f").fullCommands.length-1],s=o?Ve(this,Fp,"f").cmdToParseOptions(o):{array:[],alias:{},default:{},demand:{}};return pF(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,Ls,"f").getPositionalGroupName()),this.option(e,r)}recommendCommands(e=!0){return si("[boolean]",[e],arguments.length),ci(this,ZV,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 si("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&Ve(this,Bi,"f").narg[e]?this:(this[mF](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,r){return si("[string] [string]",[e,r],arguments.length),e=e||this.$0,Ve(this,dF,"f").log(Ve(this,Sv,"f").generateCompletionScript(e,r||Ve(this,JA,"f")||"completion")),this}showHelp(e){if(si("[string|function]",[e],arguments.length),ci(this,KA,!0,"f"),!Ve(this,Ls,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[N8](Ve(this,XI,"f"),void 0,void 0,0,!0);if(Mu(n))return n.then(()=>{Ve(this,Ls,"f").showHelp(e)}),this}let r=Ve(this,Fp,"f").runDefaultBuilderOn(this);if(Mu(r))return r.then(()=>{Ve(this,Ls,"f").showHelp(e)}),this}return Ve(this,Ls,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,r){return si("[boolean|string] [string]",[e,r],arguments.length),Ve(this,Ls,"f").showHelpOnFail(e,r),this}showVersion(e){return si("[string|function]",[e],arguments.length),Ve(this,Ls,"f").showVersion(e),this}skipValidation(e){return si("<array|string>",[e],arguments.length),this[ZI]("skipValidation",e),this}strict(e){return si("[boolean]",[e],arguments.length),ci(this,hD,e!==!1,"f"),this}strictCommands(e){return si("[boolean]",[e],arguments.length),ci(this,mD,e!==!1,"f"),this}strictOptions(e){return si("[boolean]",[e],arguments.length),ci(this,gD,e!==!1,"f"),this}string(e){return si("<array|string>",[e],arguments.length),this[ZI]("string",e),this[vD](e),this}terminalWidth(){return si([],0),Ve(this,xs,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return si("<object>",[e],arguments.length),ci(this,pD,!1,"f"),Ve(this,xs,"f").y18n.updateLocale(e),this}usage(e,r,n,o){if(si("<string|null|undefined> [string|boolean] [function|object] [function]",[e,r,n,o],arguments.length),r!==void 0){if(ig(e,null,Ve(this,xs,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,r,n,o);throw new ju(".usage() description must start with $0 if being used as alias for .command()")}else return Ve(this,Ls,"f").usage(e),this}usageConfiguration(e){return si("<object>",[e],arguments.length),ci(this,eG,e,"f"),this}version(e,r,n){let o="version";if(si("[boolean|string] [string] [string]",[e,r,n],arguments.length),Ve(this,Qw,"f")&&(this[Tue](Ve(this,Qw,"f")),Ve(this,Ls,"f").version(void 0),ci(this,Qw,null,"f")),arguments.length===0)n=this[O3e](),e=o;else if(arguments.length===1){if(e===!1)return this;n=e,e=o}else arguments.length===2&&(n=r,r=void 0);return ci(this,Qw,typeof e=="string"?e:o,"f"),r=r||Ve(this,Ls,"f").deferY18nLookup("Show version number"),Ve(this,Ls,"f").version(n||void 0),this.boolean(Ve(this,Qw,"f")),this.describe(Ve(this,Qw,"f"),r),this}wrap(e){return si("<number|null|undefined>",[e],arguments.length),Ve(this,Ls,"f").wrap(e),this}[(Fp=new WeakMap,lD=new WeakMap,R8=new WeakMap,Sv=new WeakMap,JA=new WeakMap,GV=new WeakMap,KI=new WeakMap,pD=new WeakMap,WV=new WeakMap,Cv=new WeakMap,YV=new WeakMap,Iv=new WeakMap,Mw=new WeakMap,KA=new WeakMap,kv=new WeakMap,JV=new WeakMap,dF=new WeakMap,md=new WeakMap,Bi=new WeakMap,KV=new WeakMap,XV=new WeakMap,XA=new WeakMap,fD=new WeakMap,hF=new WeakMap,dD=new WeakMap,XI=new WeakMap,ZV=new WeakMap,xs=new WeakMap,hD=new WeakMap,mD=new WeakMap,gD=new WeakMap,Ls=new WeakMap,eG=new WeakMap,Qw=new WeakMap,cp=new WeakMap,T3e)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[B3e](){return{log:(...e)=>{this[tG]()||console.log(...e),ci(this,KA,!0,"f"),Ve(this,md,"f").length&&ci(this,md,Ve(this,md,"f")+`
|
|
568
568
|
`,"f"),ci(this,md,Ve(this,md,"f")+e.join(" "),"f")},error:(...e)=>{this[tG]()||console.error(...e),ci(this,KA,!0,"f"),Ve(this,md,"f").length&&ci(this,md,Ve(this,md,"f")+`
|
|
569
|
-
`,"f"),ci(this,md,Ve(this,md,"f")+e.join(" "),"f")}}}[Tue](e){pF(Ve(this,Bi,"f")).forEach(r=>{if((o=>o==="configObjects")(r))return;let n=Ve(this,Bi,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete Ve(this,Ls,"f").getDescriptions()[e]}[D3e](e,r,n){Ve(this,WV,"f")[n]||(Ve(this,xs,"f").process.emitWarning(e,r),Ve(this,WV,"f")[n]=!0)}[P3e](){Ve(this,YV,"f").push({options:Ve(this,Bi,"f"),configObjects:Ve(this,Bi,"f").configObjects.slice(0),exitProcess:Ve(this,Cv,"f"),groups:Ve(this,Mw,"f"),strict:Ve(this,hD,"f"),strictCommands:Ve(this,mD,"f"),strictOptions:Ve(this,gD,"f"),completionCommand:Ve(this,JA,"f"),output:Ve(this,md,"f"),exitError:Ve(this,KI,"f"),hasOutput:Ve(this,KA,"f"),parsed:this.parsed,parseFn:Ve(this,XA,"f"),parseContext:Ve(this,fD,"f")}),Ve(this,Ls,"f").freeze(),Ve(this,cp,"f").freeze(),Ve(this,Fp,"f").freeze(),Ve(this,Iv,"f").freeze()}[R3e](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(Ve(this,xs,"f").process.argv()[0])?r=Ve(this,xs,"f").process.argv().slice(1,2):r=Ve(this,xs,"f").process.argv().slice(0,1),e=r.map(n=>{let o=this[V3e](Ve(this,lD,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&o.length<n.length?o:n}).join(" ").trim(),Ve(this,xs,"f").getEnv("_")&&Ve(this,xs,"f").getProcessArgvBin()===Ve(this,xs,"f").getEnv("_")&&(e=Ve(this,xs,"f").getEnv("_").replace(`${Ve(this,xs,"f").path.dirname(Ve(this,xs,"f").process.execPath())}/`,"")),e}[AD](){return Ve(this,XV,"f")}[N3e](){return Ve(this,eG,"f")}[Bue](){if(!Ve(this,pD,"f"))return;let e=Ve(this,xs,"f").getEnv("LC_ALL")||Ve(this,xs,"f").getEnv("LC_MESSAGES")||Ve(this,xs,"f").getEnv("LANG")||Ve(this,xs,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[O3e](){return this[Due]().version||"unknown"}[F3e](e){let r=e["--"]?e["--"]:e._;for(let n=0,o;(o=r[n])!==void 0;n++)Ve(this,xs,"f").Parser.looksLikeNumber(o)&&Number.isSafeInteger(Math.floor(parseFloat(`${o}`)))&&(r[n]=Number(o));return e}[Due](e){let r=e||"*";if(Ve(this,hF,"f")[r])return Ve(this,hF,"f")[r];let n={};try{let o=e||Ve(this,xs,"f").mainFilename;!e&&Ve(this,xs,"f").path.extname(o)&&(o=Ve(this,xs,"f").path.dirname(o));let s=Ve(this,xs,"f").findUp(o,(c,u)=>{if(u.includes("package.json"))return"package.json"});ig(s,void 0,Ve(this,xs,"f")),n=JSON.parse(Ve(this,xs,"f").readFileSync(s,"utf8"))}catch{}return Ve(this,hF,"f")[r]=n||{},Ve(this,hF,"f")[r]}[ZI](e,r){r=[].concat(r),r.forEach(n=>{n=this[Nue](n),Ve(this,Bi,"f")[e].push(n)})}[mF](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=u})}[Pue](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=(Ve(this,Bi,"f")[s][c]||[]).concat(u)})}[Rue](e,r,n,o,s){if(Array.isArray(n))n.forEach(c=>{e(c,o)});else if((c=>typeof c=="object")(n))for(let c of pF(n))e(c,n[c]);else s(r,this[Nue](n),o)}[Nue](e){return e==="__proto__"?"___proto___":e}[Oue](e,r){return this[mF](this[Oue].bind(this),"key",e,r),this}[Fue](){var e,r,n,o,s,c,u,p,f,h,g,y;let v=Ve(this,YV,"f").pop();ig(v,void 0,Ve(this,xs,"f"));let A;e=this,r=this,n=this,o=this,s=this,c=this,u=this,p=this,f=this,h=this,g=this,y=this,{options:{set value(S){ci(e,Bi,S,"f")}}.value,configObjects:A,exitProcess:{set value(S){ci(r,Cv,S,"f")}}.value,groups:{set value(S){ci(n,Mw,S,"f")}}.value,output:{set value(S){ci(o,md,S,"f")}}.value,exitError:{set value(S){ci(s,KI,S,"f")}}.value,hasOutput:{set value(S){ci(c,KA,S,"f")}}.value,parsed:this.parsed,strict:{set value(S){ci(u,hD,S,"f")}}.value,strictCommands:{set value(S){ci(p,mD,S,"f")}}.value,strictOptions:{set value(S){ci(f,gD,S,"f")}}.value,completionCommand:{set value(S){ci(h,JA,S,"f")}}.value,parseFn:{set value(S){ci(g,XA,S,"f")}}.value,parseContext:{set value(S){ci(y,fD,S,"f")}}.value}=v,Ve(this,Bi,"f").configObjects=A,Ve(this,Ls,"f").unfreeze(),Ve(this,cp,"f").unfreeze(),Ve(this,Fp,"f").unfreeze(),Ve(this,Iv,"f").unfreeze()}[L3e](e,r){return uD(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[j3e].bind(this),getContext:this[M3e].bind(this),getHasOutput:this[Q3e].bind(this),getLoggerInstance:this[q3e].bind(this),getParseContext:this[U3e].bind(this),getParserConfiguration:this[AD].bind(this),getUsageConfiguration:this[N3e].bind(this),getUsageInstance:this[$3e].bind(this),getValidationInstance:this[z3e].bind(this),hasParseCallback:this[tG].bind(this),isGlobalContext:this[H3e].bind(this),postProcess:this[yD].bind(this),reset:this[Lue].bind(this),runValidation:this[jue].bind(this),runYargsParserAndExecuteCommands:this[N8].bind(this),setHasOutput:this[G3e].bind(this)}}[j3e](){return Ve(this,Fp,"f")}[M3e](){return Ve(this,R8,"f")}[Q3e](){return Ve(this,KA,"f")}[q3e](){return Ve(this,dF,"f")}[U3e](){return Ve(this,fD,"f")||{}}[$3e](){return Ve(this,Ls,"f")}[z3e](){return Ve(this,cp,"f")}[tG](){return!!Ve(this,XA,"f")}[H3e](){return Ve(this,JV,"f")}[yD](e,r,n,o){return n||Mu(e)||(r||(e=this[T3e](e)),(this[AD]()["parse-positional-numbers"]||this[AD]()["parse-positional-numbers"]===void 0)&&(e=this[F3e](e)),o&&(e=cD(e,this,Ve(this,Iv,"f").getMiddleware(),!1))),e}[Lue](e={}){ci(this,Bi,Ve(this,Bi,"f")||{},"f");let r={};r.local=Ve(this,Bi,"f").local||[],r.configObjects=Ve(this,Bi,"f").configObjects||[];let n={};r.local.forEach(c=>{n[c]=!0,(e[c]||[]).forEach(u=>{n[u]=!0})}),Object.assign(Ve(this,dD,"f"),Object.keys(Ve(this,Mw,"f")).reduce((c,u)=>{let p=Ve(this,Mw,"f")[u].filter(f=>!(f in n));return p.length>0&&(c[u]=p),c},{})),ci(this,Mw,{},"f");let o=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return o.forEach(c=>{r[c]=(Ve(this,Bi,"f")[c]||[]).filter(u=>!n[u])}),s.forEach(c=>{r[c]=YI(Ve(this,Bi,"f")[c],u=>!n[u])}),r.envPrefix=Ve(this,Bi,"f").envPrefix,ci(this,Bi,r,"f"),ci(this,Ls,Ve(this,Ls,"f")?Ve(this,Ls,"f").reset(n):E3e(this,Ve(this,xs,"f")),"f"),ci(this,cp,Ve(this,cp,"f")?Ve(this,cp,"f").reset(n):k3e(this,Ve(this,Ls,"f"),Ve(this,xs,"f")),"f"),ci(this,Fp,Ve(this,Fp,"f")?Ve(this,Fp,"f").reset():v3e(Ve(this,Ls,"f"),Ve(this,cp,"f"),Ve(this,Iv,"f"),Ve(this,xs,"f")),"f"),Ve(this,Sv,"f")||ci(this,Sv,S3e(this,Ve(this,Ls,"f"),Ve(this,Fp,"f"),Ve(this,xs,"f")),"f"),Ve(this,Iv,"f").reset(),ci(this,JA,null,"f"),ci(this,md,"","f"),ci(this,KI,null,"f"),ci(this,KA,!1,"f"),this.parsed=!1,this}[V3e](e,r){return Ve(this,xs,"f").path.relative(e,r)}[N8](e,r,n,o=0,s=!1){let c=!!n||s;e=e||Ve(this,XI,"f"),Ve(this,Bi,"f").__=Ve(this,xs,"f").y18n.__,Ve(this,Bi,"f").configuration=this[AD]();let u=!!Ve(this,Bi,"f").configuration["populate--"],p=Object.assign({},Ve(this,Bi,"f").configuration,{"populate--":!0}),f=Ve(this,xs,"f").Parser.detailed(e,Object.assign({},Ve(this,Bi,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),h=Object.assign(f.argv,Ve(this,fD,"f")),g,y=f.aliases,v=!1,A=!1;Object.keys(h).forEach(S=>{S===Ve(this,kv,"f")&&h[S]?v=!0:S===Ve(this,Qw,"f")&&h[S]&&(A=!0)}),h.$0=this.$0,this.parsed=f,o===0&&Ve(this,Ls,"f").clearCachedHelpMessage();try{if(this[Bue](),r)return this[yD](h,u,!!n,!1);Ve(this,kv,"f")&&[Ve(this,kv,"f")].concat(y[Ve(this,kv,"f")]||[]).filter(j=>j.length>1).includes(""+h._[h._.length-1])&&(h._.pop(),v=!0),ci(this,JV,!1,"f");let S=Ve(this,Fp,"f").getCommands(),E=Ve(this,Sv,"f").completionKey in h,k=v||E||s;if(h._.length){if(S.length){let P;for(let j=o||0,L;h._[j]!==void 0;j++)if(L=String(h._[j]),S.includes(L)&&L!==Ve(this,JA,"f")){let z=Ve(this,Fp,"f").runCommand(L,this,f,j+1,s,v||A||s);return this[yD](z,u,!!n,!1)}else if(!P&&L!==Ve(this,JA,"f")){P=L;break}!Ve(this,Fp,"f").hasDefaultCommand()&&Ve(this,ZV,"f")&&P&&!k&&Ve(this,cp,"f").recommendCommands(P,S)}Ve(this,JA,"f")&&h._.includes(Ve(this,JA,"f"))&&!E&&(Ve(this,Cv,"f")&&JI(!0),this.showCompletionScript(),this.exit(0))}if(Ve(this,Fp,"f").hasDefaultCommand()&&!k){let P=Ve(this,Fp,"f").runCommand(null,this,f,0,s,v||A||s);return this[yD](P,u,!!n,!1)}if(E){Ve(this,Cv,"f")&&JI(!0),e=[].concat(e);let P=e.slice(e.indexOf(`--${Ve(this,Sv,"f").completionKey}`)+1);return Ve(this,Sv,"f").getCompletion(P,(j,L)=>{if(j)throw new ju(j.message);(L||[]).forEach(z=>{Ve(this,dF,"f").log(z)}),this.exit(0)}),this[yD](h,!u,!!n,!1)}if(Ve(this,KA,"f")||(v?(Ve(this,Cv,"f")&&JI(!0),c=!0,this.showHelp("log"),this.exit(0)):A&&(Ve(this,Cv,"f")&&JI(!0),c=!0,Ve(this,Ls,"f").showVersion("log"),this.exit(0))),!c&&Ve(this,Bi,"f").skipValidation.length>0&&(c=Object.keys(h).some(P=>Ve(this,Bi,"f").skipValidation.indexOf(P)>=0&&h[P]===!0)),!c){if(f.error)throw new ju(f.error.message);if(!E){let P=this[jue](y,{},f.error);n||(g=cD(h,this,Ve(this,Iv,"f").getMiddleware(),!0)),g=this[L3e](P,g!=null?g:h),Mu(g)&&!n&&(g=g.then(()=>cD(h,this,Ve(this,Iv,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof ju)Ve(this,Ls,"f").fail(S.message,S);else throw S}return this[yD](g!=null?g:h,u,!!n,!0)}[jue](e,r,n,o){let s={...this.getDemandedOptions()};return c=>{if(n)throw new ju(n.message);Ve(this,cp,"f").nonOptionCount(c),Ve(this,cp,"f").requiredArguments(c,s);let u=!1;Ve(this,mD,"f")&&(u=Ve(this,cp,"f").unknownCommands(c)),Ve(this,hD,"f")&&!u?Ve(this,cp,"f").unknownArguments(c,e,r,!!o):Ve(this,gD,"f")&&Ve(this,cp,"f").unknownArguments(c,e,{},!1,!1),Ve(this,cp,"f").limitedChoices(c),Ve(this,cp,"f").implications(c),Ve(this,cp,"f").conflicting(c)}}[G3e](){ci(this,KA,!0,"f")}[vD](e){if(typeof e=="string")Ve(this,Bi,"f").key[e]=!0;else for(let r of e)Ve(this,Bi,"f").key[r]=!0}};function x3e(t){return!!t&&typeof t.getInternalMethods=="function"}var Jtr=W3e(wue),Y3e=Jtr;var yb={name:"edgeone",version:"1.6.18",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.10","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"^0.0.13",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 Fde=Bt(Wc()),Lde=Bt(PF()),jde=Bt(Upe());function Pq(t,e){return function(){return t.apply(e,arguments)}}var{toString:Kor}=Object.prototype,{getPrototypeOf:VG}=Object,{iterator:GG,toStringTag:O6e}=Symbol,WG=(t=>e=>{let r=Kor.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ib=t=>(t=t.toLowerCase(),e=>WG(e)===t),YG=t=>e=>typeof e===t,{isArray:PD}=Array,OF=YG("undefined");function FF(t){return t!==null&&!OF(t)&&t.constructor!==null&&!OF(t.constructor)&&O0(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var F6e=Ib("ArrayBuffer");function Xor(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&F6e(t.buffer),e}var Zor=YG("string"),O0=YG("function"),L6e=YG("number"),Rq=t=>t!==null&&typeof t=="object",ear=t=>t===!0||t===!1,HG=t=>{if(WG(t)!=="object")return!1;let e=VG(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(O6e in t)&&!(GG in t)},tar=t=>{if(!Rq(t)||FF(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},rar=Ib("Date"),nar=Ib("File"),iar=t=>!!(t&&typeof t.uri<"u"),sar=t=>t&&typeof t.getParts<"u",oar=Ib("Blob"),aar=Ib("FileList"),car=t=>Rq(t)&&O0(t.pipe);function uar(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var R6e=uar(),N6e=typeof R6e.FormData<"u"?R6e.FormData:void 0,lar=t=>{if(!t)return!1;if(N6e&&t instanceof N6e)return!0;let e=VG(t);if(!e||e===Object.prototype||!O0(t.append))return!1;let r=WG(t);return r==="formdata"||r==="object"&&O0(t.toString)&&t.toString()==="[object FormData]"},par=Ib("URLSearchParams"),[far,dar,har,mar]=["ReadableStream","Request","Response","Headers"].map(Ib),gar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nq(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),PD(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(FF(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 j6e(t,e){if(FF(t))return null;e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var DD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,M6e=t=>!OF(t)&&t!==DD;function $pe(...t){let{caseless:e,skipUndefined:r}=M6e(this)&&this||{},n={},o=(s,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;let u=e&&typeof c=="string"&&j6e(n,c)||c,p=zpe(n,u)?n[u]:void 0;HG(p)&&HG(s)?n[u]=$pe(p,s):HG(s)?n[u]=$pe({},s):PD(s)?n[u]=s.slice():(!r||!OF(s))&&(n[u]=s)};for(let s=0,c=t.length;s<c;s++){let u=t[s];if(!u||FF(u)||(Nq(u,o),typeof u!="object"||PD(u)))continue;let p=Object.getOwnPropertySymbols(u);for(let f=0;f<p.length;f++){let h=p[f];Tar.call(u,h)&&o(u[h],h)}}return n}var Aar=(t,e,r,{allOwnKeys:n}={})=>(Nq(e,(o,s)=>{r&&O0(o)?Object.defineProperty(t,s,{__proto__:null,value:Pq(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),yar=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),xar=(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)},bar=(t,e,r,n)=>{let o,s,c,u={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=r!==!1&&VG(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ear=(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},war=t=>{if(!t)return null;if(PD(t))return t;let e=t.length;if(!L6e(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},_ar=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&VG(Uint8Array)),Sar=(t,e)=>{let n=(t&&t[GG]).call(t),o;for(;(o=n.next())&&!o.done;){let s=o.value;e.call(t,s[0],s[1])}},Car=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Iar=Ib("HTMLFormElement"),kar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),zpe=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),{propertyIsEnumerable:Tar}=Object.prototype,Bar=Ib("RegExp"),Q6e=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Nq(r,(o,s)=>{let c;(c=e(o,s,t))!==!1&&(n[s]=c||o)}),Object.defineProperties(t,n)},Dar=t=>{Q6e(t,(e,r)=>{if(O0(t)&&["arguments","caller","callee"].includes(r))return!1;let n=t[r];if(O0(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+"'")})}})},Par=(t,e)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return PD(t)?n(t):n(String(t).split(e)),r},Rar=()=>{},Nar=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Oar(t){return!!(t&&O0(t.append)&&t[O6e]==="FormData"&&t[GG])}var Far=t=>{let e=new WeakSet,r=n=>{if(Rq(n)){if(e.has(n))return;if(FF(n))return n;if(!("toJSON"in n)){e.add(n);let o=PD(n)?[]:{};return Nq(n,(s,c)=>{let u=r(s);!OF(u)&&(o[c]=u)}),e.delete(n),o}}return n};return r(t)},Lar=Ib("AsyncFunction"),jar=t=>t&&(Rq(t)||O0(t))&&O0(t.then)&&O0(t.catch),q6e=((t,e)=>t?setImmediate:e?((r,n)=>(DD.addEventListener("message",({source:o,data:s})=>{o===DD&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),DD.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",O0(DD.postMessage)),Mar=typeof queueMicrotask<"u"?queueMicrotask.bind(DD):typeof process<"u"&&process.nextTick||q6e,Qar=t=>t!=null&&O0(t[GG]),lt={isArray:PD,isArrayBuffer:F6e,isBuffer:FF,isFormData:lar,isArrayBufferView:Xor,isString:Zor,isNumber:L6e,isBoolean:ear,isObject:Rq,isPlainObject:HG,isEmptyObject:tar,isReadableStream:far,isRequest:dar,isResponse:har,isHeaders:mar,isUndefined:OF,isDate:rar,isFile:nar,isReactNativeBlob:iar,isReactNative:sar,isBlob:oar,isRegExp:Bar,isFunction:O0,isStream:car,isURLSearchParams:par,isTypedArray:_ar,isFileList:aar,forEach:Nq,merge:$pe,extend:Aar,trim:gar,stripBOM:yar,inherits:xar,toFlatObject:bar,kindOf:WG,kindOfTest:Ib,endsWith:Ear,toArray:war,forEachEntry:Sar,matchAll:Car,isHTMLForm:Iar,hasOwnProperty:zpe,hasOwnProp:zpe,reduceDescriptors:Q6e,freezeMethods:Dar,toObjectSet:Par,toCamelCase:kar,noop:Rar,toFiniteNumber:Nar,findKey:j6e,global:DD,isContextDefined:M6e,isSpecCompliantForm:Oar,toJSONObject:Far,isAsyncFn:Lar,isThenable:jar,setImmediate:q6e,asap:Mar,isIterable:Qar};var qar=lt.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"]),U6e=t=>{let e={},r,n,o;return t&&t.split(`
|
|
569
|
+
`,"f"),ci(this,md,Ve(this,md,"f")+e.join(" "),"f")}}}[Tue](e){pF(Ve(this,Bi,"f")).forEach(r=>{if((o=>o==="configObjects")(r))return;let n=Ve(this,Bi,"f")[r];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete Ve(this,Ls,"f").getDescriptions()[e]}[D3e](e,r,n){Ve(this,WV,"f")[n]||(Ve(this,xs,"f").process.emitWarning(e,r),Ve(this,WV,"f")[n]=!0)}[P3e](){Ve(this,YV,"f").push({options:Ve(this,Bi,"f"),configObjects:Ve(this,Bi,"f").configObjects.slice(0),exitProcess:Ve(this,Cv,"f"),groups:Ve(this,Mw,"f"),strict:Ve(this,hD,"f"),strictCommands:Ve(this,mD,"f"),strictOptions:Ve(this,gD,"f"),completionCommand:Ve(this,JA,"f"),output:Ve(this,md,"f"),exitError:Ve(this,KI,"f"),hasOutput:Ve(this,KA,"f"),parsed:this.parsed,parseFn:Ve(this,XA,"f"),parseContext:Ve(this,fD,"f")}),Ve(this,Ls,"f").freeze(),Ve(this,cp,"f").freeze(),Ve(this,Fp,"f").freeze(),Ve(this,Iv,"f").freeze()}[R3e](){let e="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(Ve(this,xs,"f").process.argv()[0])?r=Ve(this,xs,"f").process.argv().slice(1,2):r=Ve(this,xs,"f").process.argv().slice(0,1),e=r.map(n=>{let o=this[V3e](Ve(this,lD,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&o.length<n.length?o:n}).join(" ").trim(),Ve(this,xs,"f").getEnv("_")&&Ve(this,xs,"f").getProcessArgvBin()===Ve(this,xs,"f").getEnv("_")&&(e=Ve(this,xs,"f").getEnv("_").replace(`${Ve(this,xs,"f").path.dirname(Ve(this,xs,"f").process.execPath())}/`,"")),e}[AD](){return Ve(this,XV,"f")}[N3e](){return Ve(this,eG,"f")}[Bue](){if(!Ve(this,pD,"f"))return;let e=Ve(this,xs,"f").getEnv("LC_ALL")||Ve(this,xs,"f").getEnv("LC_MESSAGES")||Ve(this,xs,"f").getEnv("LANG")||Ve(this,xs,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[O3e](){return this[Due]().version||"unknown"}[F3e](e){let r=e["--"]?e["--"]:e._;for(let n=0,o;(o=r[n])!==void 0;n++)Ve(this,xs,"f").Parser.looksLikeNumber(o)&&Number.isSafeInteger(Math.floor(parseFloat(`${o}`)))&&(r[n]=Number(o));return e}[Due](e){let r=e||"*";if(Ve(this,hF,"f")[r])return Ve(this,hF,"f")[r];let n={};try{let o=e||Ve(this,xs,"f").mainFilename;!e&&Ve(this,xs,"f").path.extname(o)&&(o=Ve(this,xs,"f").path.dirname(o));let s=Ve(this,xs,"f").findUp(o,(c,u)=>{if(u.includes("package.json"))return"package.json"});ig(s,void 0,Ve(this,xs,"f")),n=JSON.parse(Ve(this,xs,"f").readFileSync(s,"utf8"))}catch{}return Ve(this,hF,"f")[r]=n||{},Ve(this,hF,"f")[r]}[ZI](e,r){r=[].concat(r),r.forEach(n=>{n=this[Nue](n),Ve(this,Bi,"f")[e].push(n)})}[mF](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=u})}[Pue](e,r,n,o){this[Rue](e,r,n,o,(s,c,u)=>{Ve(this,Bi,"f")[s][c]=(Ve(this,Bi,"f")[s][c]||[]).concat(u)})}[Rue](e,r,n,o,s){if(Array.isArray(n))n.forEach(c=>{e(c,o)});else if((c=>typeof c=="object")(n))for(let c of pF(n))e(c,n[c]);else s(r,this[Nue](n),o)}[Nue](e){return e==="__proto__"?"___proto___":e}[Oue](e,r){return this[mF](this[Oue].bind(this),"key",e,r),this}[Fue](){var e,r,n,o,s,c,u,p,f,h,g,y;let v=Ve(this,YV,"f").pop();ig(v,void 0,Ve(this,xs,"f"));let A;e=this,r=this,n=this,o=this,s=this,c=this,u=this,p=this,f=this,h=this,g=this,y=this,{options:{set value(S){ci(e,Bi,S,"f")}}.value,configObjects:A,exitProcess:{set value(S){ci(r,Cv,S,"f")}}.value,groups:{set value(S){ci(n,Mw,S,"f")}}.value,output:{set value(S){ci(o,md,S,"f")}}.value,exitError:{set value(S){ci(s,KI,S,"f")}}.value,hasOutput:{set value(S){ci(c,KA,S,"f")}}.value,parsed:this.parsed,strict:{set value(S){ci(u,hD,S,"f")}}.value,strictCommands:{set value(S){ci(p,mD,S,"f")}}.value,strictOptions:{set value(S){ci(f,gD,S,"f")}}.value,completionCommand:{set value(S){ci(h,JA,S,"f")}}.value,parseFn:{set value(S){ci(g,XA,S,"f")}}.value,parseContext:{set value(S){ci(y,fD,S,"f")}}.value}=v,Ve(this,Bi,"f").configObjects=A,Ve(this,Ls,"f").unfreeze(),Ve(this,cp,"f").unfreeze(),Ve(this,Fp,"f").unfreeze(),Ve(this,Iv,"f").unfreeze()}[L3e](e,r){return uD(r,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[j3e].bind(this),getContext:this[M3e].bind(this),getHasOutput:this[Q3e].bind(this),getLoggerInstance:this[q3e].bind(this),getParseContext:this[U3e].bind(this),getParserConfiguration:this[AD].bind(this),getUsageConfiguration:this[N3e].bind(this),getUsageInstance:this[$3e].bind(this),getValidationInstance:this[z3e].bind(this),hasParseCallback:this[tG].bind(this),isGlobalContext:this[H3e].bind(this),postProcess:this[yD].bind(this),reset:this[Lue].bind(this),runValidation:this[jue].bind(this),runYargsParserAndExecuteCommands:this[N8].bind(this),setHasOutput:this[G3e].bind(this)}}[j3e](){return Ve(this,Fp,"f")}[M3e](){return Ve(this,R8,"f")}[Q3e](){return Ve(this,KA,"f")}[q3e](){return Ve(this,dF,"f")}[U3e](){return Ve(this,fD,"f")||{}}[$3e](){return Ve(this,Ls,"f")}[z3e](){return Ve(this,cp,"f")}[tG](){return!!Ve(this,XA,"f")}[H3e](){return Ve(this,JV,"f")}[yD](e,r,n,o){return n||Mu(e)||(r||(e=this[T3e](e)),(this[AD]()["parse-positional-numbers"]||this[AD]()["parse-positional-numbers"]===void 0)&&(e=this[F3e](e)),o&&(e=cD(e,this,Ve(this,Iv,"f").getMiddleware(),!1))),e}[Lue](e={}){ci(this,Bi,Ve(this,Bi,"f")||{},"f");let r={};r.local=Ve(this,Bi,"f").local||[],r.configObjects=Ve(this,Bi,"f").configObjects||[];let n={};r.local.forEach(c=>{n[c]=!0,(e[c]||[]).forEach(u=>{n[u]=!0})}),Object.assign(Ve(this,dD,"f"),Object.keys(Ve(this,Mw,"f")).reduce((c,u)=>{let p=Ve(this,Mw,"f")[u].filter(f=>!(f in n));return p.length>0&&(c[u]=p),c},{})),ci(this,Mw,{},"f");let o=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return o.forEach(c=>{r[c]=(Ve(this,Bi,"f")[c]||[]).filter(u=>!n[u])}),s.forEach(c=>{r[c]=YI(Ve(this,Bi,"f")[c],u=>!n[u])}),r.envPrefix=Ve(this,Bi,"f").envPrefix,ci(this,Bi,r,"f"),ci(this,Ls,Ve(this,Ls,"f")?Ve(this,Ls,"f").reset(n):E3e(this,Ve(this,xs,"f")),"f"),ci(this,cp,Ve(this,cp,"f")?Ve(this,cp,"f").reset(n):k3e(this,Ve(this,Ls,"f"),Ve(this,xs,"f")),"f"),ci(this,Fp,Ve(this,Fp,"f")?Ve(this,Fp,"f").reset():v3e(Ve(this,Ls,"f"),Ve(this,cp,"f"),Ve(this,Iv,"f"),Ve(this,xs,"f")),"f"),Ve(this,Sv,"f")||ci(this,Sv,S3e(this,Ve(this,Ls,"f"),Ve(this,Fp,"f"),Ve(this,xs,"f")),"f"),Ve(this,Iv,"f").reset(),ci(this,JA,null,"f"),ci(this,md,"","f"),ci(this,KI,null,"f"),ci(this,KA,!1,"f"),this.parsed=!1,this}[V3e](e,r){return Ve(this,xs,"f").path.relative(e,r)}[N8](e,r,n,o=0,s=!1){let c=!!n||s;e=e||Ve(this,XI,"f"),Ve(this,Bi,"f").__=Ve(this,xs,"f").y18n.__,Ve(this,Bi,"f").configuration=this[AD]();let u=!!Ve(this,Bi,"f").configuration["populate--"],p=Object.assign({},Ve(this,Bi,"f").configuration,{"populate--":!0}),f=Ve(this,xs,"f").Parser.detailed(e,Object.assign({},Ve(this,Bi,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),h=Object.assign(f.argv,Ve(this,fD,"f")),g,y=f.aliases,v=!1,A=!1;Object.keys(h).forEach(S=>{S===Ve(this,kv,"f")&&h[S]?v=!0:S===Ve(this,Qw,"f")&&h[S]&&(A=!0)}),h.$0=this.$0,this.parsed=f,o===0&&Ve(this,Ls,"f").clearCachedHelpMessage();try{if(this[Bue](),r)return this[yD](h,u,!!n,!1);Ve(this,kv,"f")&&[Ve(this,kv,"f")].concat(y[Ve(this,kv,"f")]||[]).filter(j=>j.length>1).includes(""+h._[h._.length-1])&&(h._.pop(),v=!0),ci(this,JV,!1,"f");let S=Ve(this,Fp,"f").getCommands(),E=Ve(this,Sv,"f").completionKey in h,k=v||E||s;if(h._.length){if(S.length){let P;for(let j=o||0,L;h._[j]!==void 0;j++)if(L=String(h._[j]),S.includes(L)&&L!==Ve(this,JA,"f")){let z=Ve(this,Fp,"f").runCommand(L,this,f,j+1,s,v||A||s);return this[yD](z,u,!!n,!1)}else if(!P&&L!==Ve(this,JA,"f")){P=L;break}!Ve(this,Fp,"f").hasDefaultCommand()&&Ve(this,ZV,"f")&&P&&!k&&Ve(this,cp,"f").recommendCommands(P,S)}Ve(this,JA,"f")&&h._.includes(Ve(this,JA,"f"))&&!E&&(Ve(this,Cv,"f")&&JI(!0),this.showCompletionScript(),this.exit(0))}if(Ve(this,Fp,"f").hasDefaultCommand()&&!k){let P=Ve(this,Fp,"f").runCommand(null,this,f,0,s,v||A||s);return this[yD](P,u,!!n,!1)}if(E){Ve(this,Cv,"f")&&JI(!0),e=[].concat(e);let P=e.slice(e.indexOf(`--${Ve(this,Sv,"f").completionKey}`)+1);return Ve(this,Sv,"f").getCompletion(P,(j,L)=>{if(j)throw new ju(j.message);(L||[]).forEach(z=>{Ve(this,dF,"f").log(z)}),this.exit(0)}),this[yD](h,!u,!!n,!1)}if(Ve(this,KA,"f")||(v?(Ve(this,Cv,"f")&&JI(!0),c=!0,this.showHelp("log"),this.exit(0)):A&&(Ve(this,Cv,"f")&&JI(!0),c=!0,Ve(this,Ls,"f").showVersion("log"),this.exit(0))),!c&&Ve(this,Bi,"f").skipValidation.length>0&&(c=Object.keys(h).some(P=>Ve(this,Bi,"f").skipValidation.indexOf(P)>=0&&h[P]===!0)),!c){if(f.error)throw new ju(f.error.message);if(!E){let P=this[jue](y,{},f.error);n||(g=cD(h,this,Ve(this,Iv,"f").getMiddleware(),!0)),g=this[L3e](P,g!=null?g:h),Mu(g)&&!n&&(g=g.then(()=>cD(h,this,Ve(this,Iv,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof ju)Ve(this,Ls,"f").fail(S.message,S);else throw S}return this[yD](g!=null?g:h,u,!!n,!0)}[jue](e,r,n,o){let s={...this.getDemandedOptions()};return c=>{if(n)throw new ju(n.message);Ve(this,cp,"f").nonOptionCount(c),Ve(this,cp,"f").requiredArguments(c,s);let u=!1;Ve(this,mD,"f")&&(u=Ve(this,cp,"f").unknownCommands(c)),Ve(this,hD,"f")&&!u?Ve(this,cp,"f").unknownArguments(c,e,r,!!o):Ve(this,gD,"f")&&Ve(this,cp,"f").unknownArguments(c,e,{},!1,!1),Ve(this,cp,"f").limitedChoices(c),Ve(this,cp,"f").implications(c),Ve(this,cp,"f").conflicting(c)}}[G3e](){ci(this,KA,!0,"f")}[vD](e){if(typeof e=="string")Ve(this,Bi,"f").key[e]=!0;else for(let r of e)Ve(this,Bi,"f").key[r]=!0}};function x3e(t){return!!t&&typeof t.getInternalMethods=="function"}var Jtr=W3e(wue),Y3e=Jtr;var yb={name:"edgeone",version:"1.6.20",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.10","@edgeone/pages-agent-toolkit":"^0.1.34","@edgeone/pages-blob":"^0.0.13",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 Fde=Bt(Wc()),Lde=Bt(PF()),jde=Bt(Upe());function Pq(t,e){return function(){return t.apply(e,arguments)}}var{toString:Kor}=Object.prototype,{getPrototypeOf:VG}=Object,{iterator:GG,toStringTag:O6e}=Symbol,WG=(t=>e=>{let r=Kor.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ib=t=>(t=t.toLowerCase(),e=>WG(e)===t),YG=t=>e=>typeof e===t,{isArray:PD}=Array,OF=YG("undefined");function FF(t){return t!==null&&!OF(t)&&t.constructor!==null&&!OF(t.constructor)&&O0(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var F6e=Ib("ArrayBuffer");function Xor(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&F6e(t.buffer),e}var Zor=YG("string"),O0=YG("function"),L6e=YG("number"),Rq=t=>t!==null&&typeof t=="object",ear=t=>t===!0||t===!1,HG=t=>{if(WG(t)!=="object")return!1;let e=VG(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(O6e in t)&&!(GG in t)},tar=t=>{if(!Rq(t)||FF(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},rar=Ib("Date"),nar=Ib("File"),iar=t=>!!(t&&typeof t.uri<"u"),sar=t=>t&&typeof t.getParts<"u",oar=Ib("Blob"),aar=Ib("FileList"),car=t=>Rq(t)&&O0(t.pipe);function uar(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var R6e=uar(),N6e=typeof R6e.FormData<"u"?R6e.FormData:void 0,lar=t=>{if(!t)return!1;if(N6e&&t instanceof N6e)return!0;let e=VG(t);if(!e||e===Object.prototype||!O0(t.append))return!1;let r=WG(t);return r==="formdata"||r==="object"&&O0(t.toString)&&t.toString()==="[object FormData]"},par=Ib("URLSearchParams"),[far,dar,har,mar]=["ReadableStream","Request","Response","Headers"].map(Ib),gar=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nq(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),PD(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(FF(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 j6e(t,e){if(FF(t))return null;e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var DD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,M6e=t=>!OF(t)&&t!==DD;function $pe(...t){let{caseless:e,skipUndefined:r}=M6e(this)&&this||{},n={},o=(s,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;let u=e&&typeof c=="string"&&j6e(n,c)||c,p=zpe(n,u)?n[u]:void 0;HG(p)&&HG(s)?n[u]=$pe(p,s):HG(s)?n[u]=$pe({},s):PD(s)?n[u]=s.slice():(!r||!OF(s))&&(n[u]=s)};for(let s=0,c=t.length;s<c;s++){let u=t[s];if(!u||FF(u)||(Nq(u,o),typeof u!="object"||PD(u)))continue;let p=Object.getOwnPropertySymbols(u);for(let f=0;f<p.length;f++){let h=p[f];Tar.call(u,h)&&o(u[h],h)}}return n}var Aar=(t,e,r,{allOwnKeys:n}={})=>(Nq(e,(o,s)=>{r&&O0(o)?Object.defineProperty(t,s,{__proto__:null,value:Pq(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),yar=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),xar=(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)},bar=(t,e,r,n)=>{let o,s,c,u={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=r!==!1&&VG(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ear=(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},war=t=>{if(!t)return null;if(PD(t))return t;let e=t.length;if(!L6e(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},_ar=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&VG(Uint8Array)),Sar=(t,e)=>{let n=(t&&t[GG]).call(t),o;for(;(o=n.next())&&!o.done;){let s=o.value;e.call(t,s[0],s[1])}},Car=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Iar=Ib("HTMLFormElement"),kar=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),zpe=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),{propertyIsEnumerable:Tar}=Object.prototype,Bar=Ib("RegExp"),Q6e=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Nq(r,(o,s)=>{let c;(c=e(o,s,t))!==!1&&(n[s]=c||o)}),Object.defineProperties(t,n)},Dar=t=>{Q6e(t,(e,r)=>{if(O0(t)&&["arguments","caller","callee"].includes(r))return!1;let n=t[r];if(O0(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+"'")})}})},Par=(t,e)=>{let r={},n=o=>{o.forEach(s=>{r[s]=!0})};return PD(t)?n(t):n(String(t).split(e)),r},Rar=()=>{},Nar=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Oar(t){return!!(t&&O0(t.append)&&t[O6e]==="FormData"&&t[GG])}var Far=t=>{let e=new WeakSet,r=n=>{if(Rq(n)){if(e.has(n))return;if(FF(n))return n;if(!("toJSON"in n)){e.add(n);let o=PD(n)?[]:{};return Nq(n,(s,c)=>{let u=r(s);!OF(u)&&(o[c]=u)}),e.delete(n),o}}return n};return r(t)},Lar=Ib("AsyncFunction"),jar=t=>t&&(Rq(t)||O0(t))&&O0(t.then)&&O0(t.catch),q6e=((t,e)=>t?setImmediate:e?((r,n)=>(DD.addEventListener("message",({source:o,data:s})=>{o===DD&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),DD.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",O0(DD.postMessage)),Mar=typeof queueMicrotask<"u"?queueMicrotask.bind(DD):typeof process<"u"&&process.nextTick||q6e,Qar=t=>t!=null&&O0(t[GG]),lt={isArray:PD,isArrayBuffer:F6e,isBuffer:FF,isFormData:lar,isArrayBufferView:Xor,isString:Zor,isNumber:L6e,isBoolean:ear,isObject:Rq,isPlainObject:HG,isEmptyObject:tar,isReadableStream:far,isRequest:dar,isResponse:har,isHeaders:mar,isUndefined:OF,isDate:rar,isFile:nar,isReactNativeBlob:iar,isReactNative:sar,isBlob:oar,isRegExp:Bar,isFunction:O0,isStream:car,isURLSearchParams:par,isTypedArray:_ar,isFileList:aar,forEach:Nq,merge:$pe,extend:Aar,trim:gar,stripBOM:yar,inherits:xar,toFlatObject:bar,kindOf:WG,kindOfTest:Ib,endsWith:Ear,toArray:war,forEachEntry:Sar,matchAll:Car,isHTMLForm:Iar,hasOwnProperty:zpe,hasOwnProp:zpe,reduceDescriptors:Q6e,freezeMethods:Dar,toObjectSet:Par,toCamelCase:kar,noop:Rar,toFiniteNumber:Nar,findKey:j6e,global:DD,isContextDefined:M6e,isSpecCompliantForm:Oar,toJSONObject:Far,isAsyncFn:Lar,isThenable:jar,setImmediate:q6e,asap:Mar,isIterable:Qar};var qar=lt.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"]),U6e=t=>{let e={},r,n,o;return t&&t.split(`
|
|
570
570
|
`).forEach(function(c){o=c.indexOf(":"),r=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!r||e[r]&&qar[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};function Uar(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 $ar=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),zar=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Hpe(t,e){return lt.isArray(t)?t.map(r=>Hpe(r,e)):Uar(String(t).replace(e,""))}var $6e=t=>Hpe(t,$ar),Har=t=>Hpe(t,zar);function LF(t){let e=Object.create(null);return lt.forEach(t.toJSON(),(r,n)=>{e[n]=Har(r)}),e}var z6e=Symbol("internals");function Oq(t){return t&&String(t).trim().toLowerCase()}function JG(t){return t===!1||t==null?t:lt.isArray(t)?t.map(JG):$6e(String(t))}function Var(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 Gar=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Vpe(t,e,r,n,o){if(lt.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!lt.isString(e)){if(lt.isString(n))return e.indexOf(n)!==-1;if(lt.isRegExp(n))return n.test(e)}}function War(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Yar(t,e){let r=lt.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(o,s,c){return this[n].call(this,e,o,s,c)},configurable:!0})})}var jF=class{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function s(u,p,f){let h=Oq(p);if(!h)return;let g=lt.findKey(o,h);(!g||o[g]===void 0||f===!0||f===void 0&&o[g]!==!1)&&(o[g||p]=JG(u))}let c=(u,p)=>lt.forEach(u,(f,h)=>s(f,h,p));if(lt.isPlainObject(e)||e instanceof this.constructor)c(e,r);else if(lt.isString(e)&&(e=e.trim())&&!Gar(e))c(U6e(e),r);else if(lt.isObject(e)&<.isIterable(e)){let u={},p,f;for(let h of e){if(!lt.isArray(h))throw new TypeError("Object iterator must return a key-value pair");u[f=h[0]]=(p=u[f])?lt.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=Oq(e),e){let n=lt.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return Var(o);if(lt.isFunction(r))return r.call(this,o,n);if(lt.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Oq(e),e){let n=lt.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Vpe(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function s(c){if(c=Oq(c),c){let u=lt.findKey(n,c);u&&(!r||Vpe(n,n[u],u,r))&&(delete n[u],o=!0)}}return lt.isArray(e)?e.forEach(s):s(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let s=r[n];(!e||Vpe(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){let r=this,n={};return lt.forEach(this,(o,s)=>{let c=lt.findKey(n,s);if(c){r[c]=JG(o),delete r[s];return}let u=e?War(s):String(s).trim();u!==s&&delete r[s],r[u]=JG(o),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return lt.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&<.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(`
|
|
571
571
|
`)}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(o=>n.set(o)),n}static accessor(e){let n=(this[z6e]=this[z6e]={accessors:{}}).accessors,o=this.prototype;function s(c){let u=Oq(c);n[u]||(Yar(o,c),n[u]=!0)}return lt.isArray(e)?e.forEach(s):s(e),this}};jF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);lt.reduceDescriptors(jF.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});lt.freezeMethods(jF);var qu=jF;var Jar="[REDACTED ****]";function Kar(t){if(lt.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(lt.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Xar(t,e){let r=new Set(e.map(s=>String(s).toLowerCase())),n=[],o=s=>{if(s===null||typeof s!="object"||lt.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof qu&&(s=s.toJSON()),n.push(s);let c;if(lt.isArray(s))c=[],s.forEach((u,p)=>{let f=o(u);lt.isUndefined(f)||(c[p]=f)});else{if(!lt.isPlainObject(s)&&Kar(s))return n.pop(),s;c=Object.create(null);for(let[u,p]of Object.entries(s)){let f=r.has(u.toLowerCase())?Jar:o(p);lt.isUndefined(f)||(c[u]=f)}}return n.pop(),c};return o(t)}var ph=class t extends Error{static from(e,r,n,o,s,c){let u=new t(e.message,r||e.code,n,o,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,o,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),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){let e=this.config,r=e&<.hasOwnProp(e,"redact")?e.redact:void 0,n=lt.isArray(r)&&r.length>0?Xar(e,r):lt.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}}};ph.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ph.ERR_BAD_OPTION="ERR_BAD_OPTION";ph.ECONNABORTED="ECONNABORTED";ph.ETIMEDOUT="ETIMEDOUT";ph.ECONNREFUSED="ECONNREFUSED";ph.ERR_NETWORK="ERR_NETWORK";ph.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ph.ERR_DEPRECATED="ERR_DEPRECATED";ph.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ph.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ph.ERR_CANCELED="ERR_CANCELED";ph.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ph.ERR_INVALID_URL="ERR_INVALID_URL";ph.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Jr=ph;var V5e=Bt(H5e(),1),cW=V5e.default;function hfe(t){return lt.isPlainObject(t)||lt.isArray(t)}function G5e(t){return lt.endsWith(t,"[]")?t.slice(0,-2):t}function dfe(t,e,r){return t?t.concat(e).map(function(o,s){return o=G5e(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function Lur(t){return lt.isArray(t)&&!t.some(hfe)}var jur=lt.toFlatObject(lt,{},null,function(e){return/^is[A-Z]/.test(e)});function Mur(t,e,r){if(!lt.isObject(t))throw new TypeError("target must be an object");e=e||new(cW||FormData),r=lt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,k){return!lt.isUndefined(k[E])});let n=r.metaTokens,o=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&<.isSpecCompliantForm(e);if(!lt.isFunction(o))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(lt.isDate(S))return S.toISOString();if(lt.isBoolean(S))return S.toString();if(!f&<.isBlob(S))throw new Jr("Blob is not supported. Use a Buffer instead.");return lt.isArrayBuffer(S)||lt.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,E,k){let P=S;if(lt.isReactNative(e)&<.isReactNativeBlob(S))return e.append(dfe(k,E,s),h(S)),!1;if(S&&!k&&typeof S=="object"){if(lt.endsWith(E,"{}"))E=n?E:E.slice(0,-2),S=JSON.stringify(S);else if(lt.isArray(S)&&Lur(S)||(lt.isFileList(S)||lt.endsWith(E,"[]"))&&(P=lt.toArray(S)))return E=G5e(E),P.forEach(function(L,z){!(lt.isUndefined(L)||L===null)&&e.append(c===!0?dfe([E],z,s):c===null?E:E+"[]",h(L))}),!1}return hfe(S)?!0:(e.append(dfe(k,E,s),h(S)),!1)}let y=[],v=Object.assign(jur,{defaultVisitor:g,convertValue:h,isVisitable:hfe});function A(S,E,k=0){if(!lt.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),lt.forEach(S,function(j,L){(!(lt.isUndefined(j)||j===null)&&o.call(e,j,lt.isString(L)?L.trim():L,E,v))===!0&&A(j,E?E.concat(L):[L],k+1)}),y.pop()}}if(!lt.isObject(t))throw new TypeError("data must be an object");return A(t),e}var ok=Mur;function W5e(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function Y5e(t,e){this._pairs=[],t&&ok(t,this,e)}var J5e=Y5e.prototype;J5e.append=function(e,r){this._pairs.push([e,r])};J5e.toString=function(e){let r=e?function(n){return e.call(this,n,W5e)}:W5e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var K5e=Y5e;function Qur(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ND(t,e,r){if(!e)return t;let n=r&&r.encode||Qur,o=lt.isFunction(r)?{serialize:r}:r,s=o&&o.serialize,c;if(s?c=s(e,o):c=lt.isURLSearchParams(e)?e.toString():new K5e(e,o).toString(n),c){let u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}var mfe=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){lt.forEach(this.handlers,function(n){n!==null&&e(n)})}},gfe=mfe;var ak={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1};var t9e=Bt(require("crypto"),1);var X5e=Bt(require("url"),1),Z5e=X5e.default.URLSearchParams;var Afe="abcdefghijklmnopqrstuvwxyz",e9e="0123456789",r9e={DIGIT:e9e,ALPHA:Afe,ALPHA_DIGIT:Afe+Afe.toUpperCase()+e9e},qur=(t=16,e=r9e.ALPHA_DIGIT)=>{let r="",{length:n}=e,o=new Uint32Array(t);t9e.default.randomFillSync(o);for(let s=0;s<t;s++)r+=e[o[s]%n];return r},n9e={isNode:!0,classes:{URLSearchParams:Z5e,FormData:cW,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:r9e,generateString:qur,protocols:["http","https","file","data"]};var xfe={};lue(xfe,{hasBrowserEnv:()=>vfe,hasStandardBrowserEnv:()=>Uur,hasStandardBrowserWebWorkerEnv:()=>$ur,navigator:()=>yfe,origin:()=>zur});var vfe=typeof window<"u"&&typeof document<"u",yfe=typeof navigator=="object"&&navigator||void 0,Uur=vfe&&(!yfe||["ReactNative","NativeScript","NS"].indexOf(yfe.product)<0),$ur=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zur=vfe&&window.location.href||"http://localhost";var Va={...xfe,...n9e};function bfe(t,e){return ok(t,new Va.classes.URLSearchParams,{visitor:function(r,n,o,s){return Va.isNode&<.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Hur(t){return lt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Vur(t){let e={},r=Object.keys(t),n,o=r.length,s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function Gur(t){function e(r,n,o,s){let c=r[s++];if(c==="__proto__")return!0;let u=Number.isFinite(+c),p=s>=r.length;return c=!c&<.isArray(o)?o.length:c,p?(lt.hasOwnProp(o,c)?o[c]=lt.isArray(o[c])?o[c].concat(n):[o[c],n]:o[c]=n,!u):((!lt.hasOwnProp(o,c)||!lt.isObject(o[c]))&&(o[c]=[]),e(r,n,o[c],s)&<.isArray(o[c])&&(o[c]=Vur(o[c])),!u)}if(lt.isFormData(t)&<.isFunction(t.entries)){let r={};return lt.forEachEntry(t,(n,o)=>{e(Hur(n),o,r,0)}),r}return null}var uW=Gur;var $F=(t,e)=>t!=null&<.hasOwnProp(t,e)?t[e]:void 0;function Wur(t,e,r){if(lt.isString(t))try{return(e||JSON.parse)(t),lt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Efe={transitional:ak,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=lt.isObject(e);if(s&<.isHTMLForm(e)&&(e=new FormData(e)),lt.isFormData(e))return o?JSON.stringify(uW(e)):e;if(lt.isArrayBuffer(e)||lt.isBuffer(e)||lt.isStream(e)||lt.isFile(e)||lt.isBlob(e)||lt.isReadableStream(e))return e;if(lt.isArrayBufferView(e))return e.buffer;if(lt.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){let p=$F(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return bfe(e,p).toString();if((u=lt.isFileList(e))||n.indexOf("multipart/form-data")>-1){let f=$F(this,"env"),h=f&&f.FormData;return ok(u?{"files[]":e}:e,h&&new h,p)}}return s||o?(r.setContentType("application/json",!1),Wur(e)):e}],transformResponse:[function(e){let r=$F(this,"transitional")||Efe.transitional,n=r&&r.forcedJSONParsing,o=$F(this,"responseType"),s=o==="json";if(lt.isResponse(e)||lt.isReadableStream(e))return e;if(e&<.isString(e)&&(n&&!o||s)){let u=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(e,$F(this,"parseReviver"))}catch(p){if(u)throw p.name==="SyntaxError"?Jr.from(p,Jr.ERR_BAD_RESPONSE,this,null,$F(this,"response")):p}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Va.classes.FormData,Blob:Va.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};lt.forEach(["delete","get","head","post","put","patch","query"],t=>{Efe.headers[t]={}});var zF=Efe;function Qq(t,e){let r=this||zF,n=e||r,o=qu.from(n.headers),s=n.data;return lt.forEach(t,function(u){s=u.call(r,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function qq(t){return!!(t&&t.__CANCEL__)}var wfe=class extends Jr{constructor(e,r,n){super(e==null?"canceled":e,Jr.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}},ty=wfe;function Hw(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 _fe(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Sfe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function OD(t,e,r){let n=!_fe(e);return t&&(n||r===!1)?Sfe(t,e):e}var Yur={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Jur(t){try{return new URL(t)}catch{return null}}function i9e(t){var e=(typeof t=="string"?Jur(t):t)||{},r=e.protocol,n=e.host,o=e.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||Yur[r]||0,!Kur(n,o)))return"";var s=Cfe(r+"_proxy")||Cfe("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function Kur(t,e){var r=Cfe("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),s=o?o[1]:n,c=o?parseInt(o[2]):0;return c&&c!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!t.endsWith(s)):t!==s}):!0}function Cfe(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var ide=Bt(x9e(),1),J9e=Bt(require("http"),1),K9e=Bt(require("https"),1),X9e=Bt(require("http2"),1),Z9e=Bt(require("util"),1),nde=require("path"),e7e=Bt(Wfe(),1),ry=Bt(require("zlib"),1);var rC="1.17.0";function Jq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var Klr=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Yfe(t,e,r){let n=r&&r.Blob||Va.classes.Blob,o=Jq(t);if(e===void 0&&n&&(e=!0),o==="data"){t=o.length?t.slice(o.length+1):t;let s=Klr.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 "+o,Jr.ERR_NOT_SUPPORT)}var Rv=Bt(require("stream"),1);var I9e=Bt(require("stream"),1);var Jfe=Symbol("internals"),Kfe=class extends I9e.default.Transform{constructor(e){e=lt.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!lt.isUndefined(o[n])),super({readableHighWaterMark:e.chunkSize});let r=this[Jfe]={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[Jfe];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,n){let o=this[Jfe],s=o.maxRate,c=this.readableHighWaterMark,u=o.timeWindow,p=1e3/u,f=s/p,h=o.minChunkSize!==!1?Math.max(o.minChunkSize,f*.01):0,g=(v,A)=>{let S=Buffer.byteLength(v);o.bytesSeen+=S,o.bytes+=S,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(v)?process.nextTick(A):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(A)}},y=(v,A)=>{let S=Buffer.byteLength(v),E=null,k=c,P,j=0;if(s){let L=Date.now();(!o.ts||(j=L-o.ts)>=u)&&(o.ts=L,P=f-o.bytes,o.bytes=P<0?-P:0,j=0),P=f-o.bytes}if(s){if(P<=0)return setTimeout(()=>{A(null,v)},u-j);P<k&&(k=P)}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)})}},Xfe=Kfe;var t7e=require("events");var T9e=Bt(require("util"),1),B9e=require("stream");var{asyncIterator:k9e}=Symbol,Xlr=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[k9e]?yield*t[k9e]():yield t},mW=Xlr;var Zlr=Va.ALPHABET.ALPHA_DIGIT+"-_",Kq=typeof TextEncoder=="function"?new TextEncoder:new T9e.default.TextEncoder,qD=`\r
|
|
572
572
|
`,epr=Kq.encode(qD),tpr=2,Zfe=class{constructor(e,r){let{escapeName:n}=this.constructor,o=lt.isString(r),s=`Content-Disposition: form-data; name="${n(e)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${qD}`;if(o)r=Kq.encode(String(r).replace(/\r?\n|\r\n?/g,qD));else{let c=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");s+=`Content-Type: ${c}${qD}`}this.headers=Kq.encode(s+qD),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+tpr,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;lt.isTypedArray(e)?yield e:yield*mW(e),yield epr}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},rpr=(t,e,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:s=n+"-"+Va.generateString(o,Zlr)}=r||{};if(!lt.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=Kq.encode("--"+s+qD),u=Kq.encode("--"+s+"--"+qD),p=u.byteLength,f=Array.from(t.entries()).map(([g,y])=>{let v=new Zfe(g,y);return p+=v.size,v});p+=c.byteLength*f.length,p=lt.toFiniteNumber(p);let h={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(p)&&(h["Content-Length"]=p),e&&e(h),B9e.Readable.from(async function*(){for(let g of f)yield c,yield*g.encode();yield u}())},D9e=rpr;var P9e=Bt(require("stream"),1),ede=class extends P9e.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 o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(e,r,n)}},R9e=ede;var N9e=Bt(require("http2"),1),O9e=Bt(require("util"),1),tde=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&&O9e.default.isDeepStrictEqual(A,r))return v}}let o=N9e.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]===o){y===1?delete this.sessions[e]:g.splice(v,1),o.closed||o.close();return}},p=o.request,{sessionTimeout:f}=r;if(f!=null){let g=0;o.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}}o.once("close",u);let h=[o,r];return n?n.push(h):n=this.sessions[e]=[h],o}},F9e=tde;var npr=(t,e)=>lt.isAsyncFn(t)?function(...r){let n=r.pop();t.apply(this,r).then(o=>{try{e?n(null,...e(o)):n(null,o)}catch(s){n(s)}},n)}:t,L9e=npr;var ipr=new Set(["localhost"]),Q9e=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)},spr=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return Q9e(e[1]);let r=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=t.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},j9e=t=>t?ipr.has(t)||Q9e(t)?!0:spr(t):!1,opr={http:80,https:443,ws:80,wss:443,ftp:21},apr=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(":"),o=e.lastIndexOf(":");return n!==-1&&n===o&&/^\d+$/.test(e.slice(o+1))&&(r=Number.parseInt(e.slice(o+1),10),e=e.slice(0,o)),[e,r]},cpr=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,upr=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,lpr=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(cpr);if(e)return e[1];let r=t.match(upr);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return t},M9e=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),lpr(t.replace(/\.+$/,"")));function rde(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)||opr[e.protocol.split(":",1)[0]]||0,o=M9e(e.hostname.toLowerCase());return r.split(/[\s,]+/).some(s=>{if(!s)return!1;let[c,u]=apr(s);return c=M9e(c),!c||u&&u!==n?!1:(c.charAt(0)==="*"&&(c=c.slice(1)),c.charAt(0)==="."?o.endsWith(c):o===c||j9e(o)&&j9e(c))})}function ppr(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,s=0,c;return e=e!==void 0?e:1e3,function(p){let f=Date.now(),h=n[s];c||(c=f),r[o]=p,n[o]=f;let g=s,y=0;for(;g!==o;)y+=r[g++],g=g%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),f-c<e)return;let v=h&&f-h;return v?Math.round(y*1e3/v):void 0}}var q9e=ppr;function fpr(t,e){let r=0,n=1e3/e,o,s,c=(f,h=Date.now())=>{r=h,o=null,s&&(clearTimeout(s),s=null),t(...f)};return[(...f)=>{let h=Date.now(),g=h-r;g>=n?c(f,h):(o=f,s||(s=setTimeout(()=>{s=null,c(o)},n-g)))},()=>o&&c(o)]}var U9e=fpr;var nC=(t,e,r=3)=>{let n=0,o=q9e(50,250);return U9e(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=o(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)},YF=(t,e)=>{let r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},JF=t=>(...e)=>lt.asap(()=>t(...e));function Xq(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 $9e={flush:ry.default.constants.Z_SYNC_FLUSH,finishFlush:ry.default.constants.Z_SYNC_FLUSH},dpr={flush:ry.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:ry.default.constants.BROTLI_OPERATION_FLUSH},hpr={flush:ry.default.constants.ZSTD_e_flush,finishFlush:ry.default.constants.ZSTD_e_flush},r7e=lt.isFunction(ry.default.createBrotliDecompress),n7e=lt.isFunction(ry.default.createZstdDecompress),i7e="gzip, compress, deflate"+(r7e?", br":""),mpr=i7e+(n7e?", zstd":""),{http:gpr,https:Apr}=e7e.default,s7e=/https:?/,ypr=["content-type","content-length"];function vpr(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,o])=>{ypr.includes(n.toLowerCase())&&t.set(n,o)})}var z9e=Symbol("axios.http.socketListener"),gW=Symbol("axios.http.currentReq"),o7e=Symbol("axios.http.installedTunnel"),xpr=new Map,H9e=new WeakMap;function bpr(t,e){let r=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?H9e.get(e)||H9e.set(e,new Map).get(e):xpr,o=n.get(r);if(o)return o;let s=e&&e.options?{...e.options,...t}:t;if(o=new ide.default(s),e&&e.options){let c={...e.options},u=o.callback;o.callback=function(f,h){return u.call(this,f,{...c,...h})}}return o[o7e]=!0,n.set(r,o),o}var V9e=Va.protocols.map(t=>t+":"),G9e=t=>{if(!lt.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},W9e=(t,[e,r])=>(t.on("end",r).on("error",r),e),Epr=new F9e;function wpr(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 a7e(t,e,r,n,o){let s=e;if(!s&&s!==!1){let c=i9e(r);c&&(rde(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[o7e]&&(t.agent=void 0),s){let c=s instanceof URL,u=y=>c||lt.hasOwnProp(s,y)?s[y]:void 0,p=u("username"),f=u("password"),h=lt.hasOwnProp(s,"auth")?s.auth:void 0;if(p&&(h=(p||"")+":"+(f||"")),h){let y=typeof h=="object",v=y&<.hasOwnProp(h,"username")?h.username:void 0,A=y&<.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(s7e.test(t.protocol)){if(!(o instanceof ide.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:""}`),P={protocol:k.protocol,hostname:k.hostname.replace(/^\[|\]$/g,""),port:k.port,auth:h&&typeof h=="string"?h:void 0};k.protocol==="https:"&&(P.ALPNProtocols=["http/1.1"]);let j=bpr(P,o);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){a7e(u,e,u.href,!0,o)}}var _pr=typeof process<"u"&<.kindOf(process)==="process",Spr=t=>new Promise((e,r)=>{let n,o,s=(p,f)=>{o||(o=!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)}),Cpr=({address:t,family:e})=>{if(!lt.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},Y9e=(t,e)=>Cpr(lt.isObject(t)?t:{address:t,family:e}),Ipr={request(t,e){let r=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:o}=t,s=Epr.getSession(r,n),{HTTP2_HEADER_SCHEME:c,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:p,HTTP2_HEADER_STATUS:f}=X9e.default.constants,h={[c]:t.protocol.replace(":",""),[u]:t.method,[p]:t.path};lt.forEach(o,(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}},c7e=_pr&&function(e){return Spr(async function(n,o,s){let c=Et=>lt.hasOwnProp(e,Et)?e[Et]:void 0,u=c("transitional")||ak,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,P,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 Et=L9e(f,gt=>lt.isArray(gt)?gt:[gt]);f=(gt,ft,B)=>{Et(gt,ft,(Ye,ct,Ce)=>{if(Ye)return B(Ye);let we=lt.isArray(ct)?ct.map(We=>Y9e(We)):[Y9e(ct,Ce)];ft.all?B(Ye,we):B(Ye,we[0].address,we[0].family)})}}let z=new t7e.EventEmitter;function re(Et){try{z.emit("abort",!Et||Et.type?new ty(null,e,P):Et)}catch{}}function Y(){j&&(clearTimeout(j),j=null)}function me(){let Et=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";return e.timeoutErrorMessage&&(Et=e.timeoutErrorMessage),new Jr(Et,u.clarifyTimeoutError?Jr.ETIMEDOUT:Jr.ECONNABORTED,e,P)}z.once("abort",o);let ne=()=>{Y(),e.cancelToken&&e.cancelToken.unsubscribe(re),e.signal&&e.signal.removeEventListener("abort",re),z.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(re),e.signal&&(e.signal.aborted?re():e.signal.addEventListener("abort",re))),s((Et,gt)=>{if(E=!0,Y(),gt){k=!0,ne();return}let{data:ft}=Et;if(ft instanceof Rv.default.Readable||ft instanceof Rv.default.Duplex){let B=Rv.default.finished(ft,()=>{B(),ne()})}else ne()});let ce=OD(e.baseURL,e.url,e.allowAbsoluteUrls),ee=new URL(ce,Va.hasBrowserEnv?Va.origin:void 0),ge=ee.protocol||V9e[0];if(ge==="data:"){if(e.maxContentLength>-1){let gt=String(e.url||ce||"");if(Xq(gt)>e.maxContentLength)return o(new Jr("maxContentLength size of "+e.maxContentLength+" exceeded",Jr.ERR_BAD_RESPONSE,e))}let Et;if(S!=="GET")return Hw(n,o,{status:405,statusText:"method not allowed",headers:{},config:e});try{Et=Yfe(e.url,v==="blob",{Blob:e.env&&e.env.Blob})}catch(gt){throw Jr.from(gt,Jr.ERR_BAD_REQUEST,e)}return v==="text"?(Et=Et.toString(A),(!A||A==="utf8")&&(Et=lt.stripBOM(Et))):v==="stream"&&(Et=Rv.default.Readable.from(Et)),Hw(n,o,{data:Et,status:200,statusText:"OK",headers:new qu,config:e})}if(V9e.indexOf(ge)===-1)return o(new Jr("Unsupported protocol "+ge,Jr.ERR_BAD_REQUEST,e));let J=qu.from(e.headers).normalize();J.set("User-Agent","axios/"+rC,!1);let{onUploadProgress:U,onDownloadProgress:de}=e,Fe=e.maxRate,ye,be;if(lt.isSpecCompliantForm(p)){let Et=J.getContentType(/boundary=([-_\w\d]{10,70})/i);p=D9e(p,gt=>{J.set(gt)},{tag:`axios-${rC}-boundary`,boundary:Et&&Et[1]||void 0})}else if(lt.isFormData(p)&<.isFunction(p.getHeaders)&&p.getHeaders!==Object.prototype.getHeaders){if(vpr(J,p.getHeaders(),c("formDataHeaderPolicy")),!J.hasContentLength())try{let Et=await Z9e.default.promisify(p.getLength).call(p);Number.isFinite(Et)&&Et>=0&&J.setContentLength(Et)}catch{}}else if(lt.isBlob(p)||lt.isFile(p))p.size&&J.setContentType(p.type||"application/octet-stream"),J.setContentLength(p.size||0),p=Rv.default.Readable.from(mW(p));else if(p&&!lt.isStream(p)){if(!Buffer.isBuffer(p))if(lt.isArrayBuffer(p))p=Buffer.from(new Uint8Array(p));else if(lt.isString(p))p=Buffer.from(p,"utf-8");else return o(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 o(new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,e))}let Ne=lt.toFiniteNumber(J.getContentLength());lt.isArray(Fe)?(ye=Fe[0],be=Fe[1]):ye=be=Fe,p&&(U||ye)&&(lt.isStream(p)||(p=Rv.default.Readable.from(p,{objectMode:!1})),p=Rv.default.pipeline([p,new Xfe({maxRate:lt.toFiniteNumber(ye)})],lt.noop),U&&p.on("progress",W9e(p,YF(Ne,nC(JF(U),!1,3)))));let He,St=c("auth");if(St){let Et=St.username||"",gt=St.password||"";He=Et+":"+gt}if(!He&&(ee.username||ee.password)){let Et=G9e(ee.username),gt=G9e(ee.password);He=Et+":"+gt}He&&J.delete("authorization");let It;try{It=ND(ee.pathname+ee.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(Et){let gt=new Error(Et.message);return gt.config=e,gt.url=e.url,gt.exists=!0,o(gt)}J.set("Accept-Encoding",lt.hasOwnProp(u,"advertiseZstdAcceptEncoding")&&u.advertiseZstdAcceptEncoding===!0?mpr:i7e,!1);let Xe=Object.assign(Object.create(null),{path:It,method:S,headers:LF(J),agents:{http:e.httpAgent,https:e.httpsAgent},auth:He,protocol:ge,family:h,beforeRedirect:wpr,beforeRedirects:Object.create(null),http2Options:y});!lt.isUndefined(f)&&(Xe.lookup=f);let Ke=c("socketPath");if(Ke){if(typeof Ke!="string")return o(new Jr("socketPath must be a string",Jr.ERR_BAD_OPTION_VALUE,e));let Et=c("allowedSocketPaths");if(Et!=null){let gt=Array.isArray(Et)?Et:[Et],ft=(0,nde.resolve)(Ke);if(!gt.some(Ye=>typeof Ye=="string"&&(0,nde.resolve)(Ye)===ft))return o(new Jr(`socketPath "${Ke}" is not permitted by allowedSocketPaths`,Jr.ERR_BAD_OPTION_VALUE,e))}Xe.socketPath=Ke}else Xe.hostname=ee.hostname.startsWith("[")?ee.hostname.slice(1,-1):ee.hostname,Xe.port=ee.port,a7e(Xe,e.proxy,ge+"//"+ee.hostname+(ee.port?":"+ee.port:"")+Xe.path,!1,e.httpsAgent);let Me,et=!1,At=s7e.test(Xe.protocol);if(Xe.agent==null&&(Xe.agent=At?e.httpsAgent:e.httpAgent),L)Me=Ipr;else{let Et=c("transport");if(Et)Me=Et;else if(e.maxRedirects===0)Me=At?K9e.default:J9e.default,et=!0;else{e.maxRedirects&&(Xe.maxRedirects=e.maxRedirects);let gt=c("beforeRedirect");if(gt&&(Xe.beforeRedirects.config=gt),He){let ft=ee.origin,B=He;Xe.beforeRedirects.auth=function(ct){try{new URL(ct.href).origin===ft&&(ct.auth=B)}catch{}}}Me=At?Apr:gpr}}e.maxBodyLength>-1?Xe.maxBodyLength=e.maxBodyLength:Xe.maxBodyLength=1/0,Xe.insecureHTTPParser=!!c("insecureHTTPParser"),P=Me.request(Xe,function(gt){if(Y(),P.destroyed)return;let ft=[gt],B=lt.toFiniteNumber(gt.headers["content-length"]);if(de||be){let we=new Xfe({maxRate:lt.toFiniteNumber(be)});de&&we.on("progress",W9e(we,YF(B,nC(JF(de),!0,3)))),ft.push(we)}let Ye=gt,ct=gt.req||P;if(e.decompress!==!1&>.headers["content-encoding"])switch((S==="HEAD"||gt.statusCode===204)&&delete gt.headers["content-encoding"],(gt.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ft.push(ry.default.createUnzip($9e)),delete gt.headers["content-encoding"];break;case"deflate":ft.push(new R9e),ft.push(ry.default.createUnzip($9e)),delete gt.headers["content-encoding"];break;case"br":r7e&&(ft.push(ry.default.createBrotliDecompress(dpr)),delete gt.headers["content-encoding"]);break;case"zstd":n7e&&(ft.push(ry.default.createZstdDecompress(hpr)),delete gt.headers["content-encoding"]);break}Ye=ft.length>1?Rv.default.pipeline(ft,lt.noop):ft[0];let Ce={status:gt.statusCode,statusText:gt.statusMessage,headers:new qu(gt.headers),config:e,request:ct};if(v==="stream"){if(e.maxContentLength>-1){let we=e.maxContentLength,We=Ye;async function*rt(){let pe=0;for await(let Je of We){if(pe+=Je.length,pe>we)throw new Jr("maxContentLength size of "+we+" exceeded",Jr.ERR_BAD_RESPONSE,e,ct);yield Je}}Ye=Rv.default.Readable.from(rt(),{objectMode:!1})}Ce.data=Ye,Hw(n,o,Ce)}else{let we=[],We=0;Ye.on("data",function(pe){we.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,ct)))}),Ye.on("aborted",function(){if(k)return;let pe=new Jr("stream has been aborted",Jr.ERR_BAD_RESPONSE,e,ct,Ce);Ye.destroy(pe),o(pe)}),Ye.on("error",function(pe){k||o(Jr.from(pe,null,e,ct,Ce))}),Ye.on("end",function(){try{let pe=we.length===1?we[0]:Buffer.concat(we);v!=="arraybuffer"&&(pe=pe.toString(A),(!A||A==="utf8")&&(pe=lt.stripBOM(pe))),Ce.data=pe}catch(pe){return o(Jr.from(pe,null,e,Ce.request,Ce))}Hw(n,o,Ce)})}z.once("abort",we=>{Ye.destroyed||(Ye.emit("error",we),Ye.destroy())})}),z.once("abort",Et=>{P.close?P.close():P.destroy(Et)}),P.on("error",function(gt){o(Jr.from(gt,null,e,P))});let Nt=new Set;if(P.on("socket",function(gt){gt.setKeepAlive(!0,1e3*60),gt[z9e]||(gt.on("error",function(B){let Ye=gt[gW];Ye&&!Ye.destroyed&&Ye.destroy(B)}),gt[z9e]=!0),gt[gW]=P,Nt.add(gt)}),P.once("close",function(){Y();for(let gt of Nt)gt[gW]===P&&(gt[gW]=null);Nt.clear()}),e.timeout){let Et=parseInt(e.timeout,10);if(Number.isNaN(Et)){re(new Jr("error trying to parse `config.timeout` to int",Jr.ERR_BAD_OPTION_VALUE,e,P));return}let gt=function(){E||re(me())};et&&Et>0&&(j=setTimeout(gt,Et)),P.setTimeout(Et,gt)}else P.setTimeout(0);if(lt.isStream(p)){let Et=!1,gt=!1;p.on("end",()=>{Et=!0}),p.once("error",B=>{gt=!0,P.destroy(B)}),p.on("close",()=>{!Et&&!gt&&re(new ty("Request stream has been aborted",e,P))});let ft=p;if(e.maxBodyLength>-1&&e.maxRedirects===0){let B=e.maxBodyLength,Ye=0;ft=Rv.default.pipeline([p,new Rv.default.Transform({transform(ct,Ce,we){if(Ye+=ct.length,Ye>B)return we(new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,e,P));we(null,ct)}})],lt.noop),ft.on("error",ct=>{P.destroyed||P.destroy(ct)})}ft.pipe(P)}else p&&P.write(p),P.end()})};var u7e=Va.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Va.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Va.origin),Va.navigator&&/(msie|trident)/i.test(Va.navigator.userAgent)):()=>!0;var l7e=Va.hasStandardBrowserEnv?{write(t,e,r,n,o,s,c){if(typeof document>"u")return;let u=[`${t}=${encodeURIComponent(e)}`];lt.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),lt.isString(n)&&u.push(`path=${n}`),lt.isString(o)&&u.push(`domain=${o}`),s===!0&&u.push("secure"),lt.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+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===t)return decodeURIComponent(n.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var p7e=t=>t instanceof qu?{...t}:t;function Tb(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 lt.isPlainObject(f)&<.isPlainObject(h)?lt.merge.call({caseless:y},f,h):lt.isPlainObject(h)?lt.merge({},h):lt.isArray(h)?h.slice():h}function o(f,h,g,y){if(lt.isUndefined(h)){if(!lt.isUndefined(f))return n(void 0,f,g,y)}else return n(f,h,g,y)}function s(f,h){if(!lt.isUndefined(h))return n(void 0,h)}function c(f,h){if(lt.isUndefined(h)){if(!lt.isUndefined(f))return n(void 0,f)}else return n(void 0,h)}function u(f,h,g){if(lt.hasOwnProp(e,g))return n(f,h);if(lt.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)=>o(p7e(f),p7e(h),g,!0)};return lt.forEach(Object.keys({...t,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;let g=lt.hasOwnProp(p,h)?p[h]:o,y=lt.hasOwnProp(t,h)?t[h]:void 0,v=lt.hasOwnProp(e,h)?e[h]:void 0,A=g(y,v,h);lt.isUndefined(A)&&g!==u||(r[h]=A)}),r}var kpr=["content-type","content-length"];function Tpr(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,o])=>{kpr.includes(n.toLowerCase())&&t.set(n,o)})}var Bpr=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16)));function Dpr(t){let e=Tb({},t),r=y=>lt.hasOwnProp(e,y)?e[y]:void 0,n=r("data"),o=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=qu.from(u),e.url=ND(OD(f,g,h),r("params"),r("paramsSerializer")),p&&u.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?Bpr(p.password):""))),lt.isFormData(n)&&(Va.hasStandardBrowserEnv||Va.hasStandardBrowserWebWorkerEnv||lt.isReactNative(n)?u.setContentType(void 0):lt.isFunction(n.getHeaders)&&Tpr(u,n.getHeaders(),r("formDataHeaderPolicy"))),Va.hasStandardBrowserEnv&&(lt.isFunction(o)&&(o=o(e)),o===!0||o==null&&u7e(e.url))){let v=s&&c&&l7e.read(c);v&&u.set(s,v)}return e}var AW=Dpr;var Ppr=typeof XMLHttpRequest<"u",f7e=Ppr&&function(t){return new Promise(function(r,n){let o=AW(t),s=o.data,c=qu.from(o.headers).normalize(),{responseType:u,onUploadProgress:p,onDownloadProgress:f}=o,h,g,y,v,A;function S(){v&&v(),A&&A(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function k(){if(!E)return;let j=qu.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),z={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:j,config:t,request:E};Hw(function(Y){r(Y),S()},function(Y){n(Y),S()},z),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 z=L&&L.message?L.message:"Network Error",re=new Jr(z,Jr.ERR_NETWORK,t,E);re.event=L||null,n(re),S(),E=null},E.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",z=o.transitional||ak;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),n(new Jr(L,z.clarifyTimeoutError?Jr.ETIMEDOUT:Jr.ECONNABORTED,t,E)),S(),E=null},s===void 0&&c.setContentType(null),"setRequestHeader"in E&<.forEach(LF(c),function(L,z){E.setRequestHeader(z,L)}),lt.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),u&&u!=="json"&&(E.responseType=o.responseType),f&&([y,A]=nC(f,!0),E.addEventListener("progress",y)),p&&E.upload&&([g,v]=nC(p),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(h=j=>{E&&(n(!j||j.type?new ty(null,t,E):j),E.abort(),S(),E=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));let P=Jq(o.url);if(P&&!Va.protocols.includes(P)){n(new Jr("Unsupported protocol "+P+":",Jr.ERR_BAD_REQUEST,t));return}E.send(s||null)})};var Rpr=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let r=new AbortController,n=!1,o=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,o(new Jr(`timeout of ${e}ms exceeded`,Jr.ETIMEDOUT))},e),c=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),t=null)};t.forEach(p=>p.addEventListener("abort",o));let{signal:u}=r;return u.unsubscribe=()=>lt.asap(c),u},d7e=Rpr;var Npr=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},Opr=async function*(t,e){for await(let r of Fpr(t))yield*Npr(r,e)},Fpr=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()}},sde=(t,e,r,n)=>{let o=Opr(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 o.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),o.return()}},{highWaterMark:2})};var h7e=64*1024,{isFunction:yW}=lt,Lpr=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),m7e=t=>{if(!lt.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},g7e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},jpr=t=>{let e=t.indexOf("://"),r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},Mpr=t=>{let e=lt.global!==void 0&<.global!==null?lt.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=lt.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:o,Request:s,Response:c}=t,u=o?yW(o):typeof fetch=="function",p=yW(s),f=yW(c);if(!u)return!1;let h=u&&yW(r),g=u&&(typeof n=="function"?(k=>P=>k.encode(P))(new n):async k=>new Uint8Array(await new s(k).arrayBuffer())),y=p&&h&&g7e(()=>{let k=!1,P=new s(Va.origin,{body:new r,method:"POST",get duplex(){return k=!0,"half"}}),j=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),k&&!j}),v=f&&h&&g7e(()=>lt.isReadableStream(new c("").body)),A={stream:v&&(k=>k.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!A[k]&&(A[k]=(P,j)=>{let L=P&&P[k];if(L)return L.call(P);throw new Jr(`Response type '${k}' is not supported`,Jr.ERR_NOT_SUPPORT,j)})});let S=async k=>{if(k==null)return 0;if(lt.isBlob(k))return k.size;if(lt.isSpecCompliantForm(k))return(await new s(Va.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(lt.isArrayBufferView(k)||lt.isArrayBuffer(k))return k.byteLength;if(lt.isURLSearchParams(k)&&(k=k+""),lt.isString(k))return(await g(k)).byteLength},E=async(k,P)=>{let j=lt.toFiniteNumber(k.getContentLength());return j==null?S(P):j};return async k=>{let{url:P,method:j,data:L,signal:z,cancelToken:re,timeout:Y,onDownloadProgress:me,onUploadProgress:ne,responseType:ce,headers:ee,withCredentials:ge="same-origin",fetchOptions:J,maxContentLength:U,maxBodyLength:de}=AW(k),Fe=lt.isNumber(U)&&U>-1,ye=lt.isNumber(de)&&de>-1,be=Ke=>lt.hasOwnProp(k,Ke)?k[Ke]:void 0,Ne=o||fetch;ce=ce?(ce+"").toLowerCase():"text";let He=d7e([z,re&&re.toAbortSignal()],Y),St=null,It=He&&He.unsubscribe&&(()=>{He.unsubscribe()}),Xe;try{let Ke,Me=be("auth");if(Me){let ft=Me.username||"",B=Me.password||"";Ke={username:ft,password:B}}if(jpr(P)){let ft=new URL(P,Va.origin);if(!Ke&&(ft.username||ft.password)){let B=m7e(ft.username),Ye=m7e(ft.password);Ke={username:B,password:Ye}}(ft.username||ft.password)&&(ft.username="",ft.password="",P=ft.href)}if(Ke&&(ee.delete("authorization"),ee.set("Authorization","Basic "+btoa(Lpr((Ke.username||"")+":"+(Ke.password||""))))),Fe&&typeof P=="string"&&P.startsWith("data:")&&Xq(P)>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St);if(ye&&j!=="get"&&j!=="head"){let ft=await E(ee,L);if(typeof ft=="number"&&isFinite(ft)&&ft>de)throw new Jr("Request body larger than maxBodyLength limit",Jr.ERR_BAD_REQUEST,k,St)}if(ne&&y&&j!=="get"&&j!=="head"&&(Xe=await E(ee,L))!==0){let ft=new s(P,{method:"POST",body:L,duplex:"half"}),B;if(lt.isFormData(L)&&(B=ft.headers.get("content-type"))&&ee.setContentType(B),ft.body){let[Ye,ct]=YF(Xe,nC(JF(ne)));L=sde(ft.body,h7e,Ye,ct)}}lt.isString(ge)||(ge=ge?"include":"omit");let et=p&&"credentials"in s.prototype;if(lt.isFormData(L)){let ft=ee.getContentType();ft&&/^multipart\/form-data/i.test(ft)&&!/boundary=/i.test(ft)&&ee.delete("content-type")}ee.set("User-Agent","axios/"+rC,!1);let At={...J,signal:He,method:j.toUpperCase(),headers:LF(ee.normalize()),body:L,duplex:"half",credentials:et?ge:void 0};St=p&&new s(P,At);let Nt=await(p?Ne(St,J):Ne(P,At));if(Fe){let ft=lt.toFiniteNumber(Nt.headers.get("content-length"));if(ft!=null&&ft>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St)}let Et=v&&(ce==="stream"||ce==="response");if(v&&Nt.body&&(me||Fe||Et&&It)){let ft={};["status","statusText","headers"].forEach(We=>{ft[We]=Nt[We]});let B=lt.toFiniteNumber(Nt.headers.get("content-length")),[Ye,ct]=me&&YF(B,nC(JF(me),!0))||[],Ce=0,we=We=>{if(Fe&&(Ce=We,Ce>U))throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St);Ye&&Ye(We)};Nt=new c(sde(Nt.body,h7e,we,()=>{ct&&ct(),It&&It()}),ft)}ce=ce||"text";let gt=await A[lt.findKey(A,ce)||"text"](Nt,k);if(Fe&&!v&&!Et){let ft;if(gt!=null&&(typeof gt.byteLength=="number"?ft=gt.byteLength:typeof gt.size=="number"?ft=gt.size:typeof gt=="string"&&(ft=typeof n=="function"?new n().encode(gt).byteLength:gt.length)),typeof ft=="number"&&ft>U)throw new Jr("maxContentLength size of "+U+" exceeded",Jr.ERR_BAD_RESPONSE,k,St)}return!Et&&It&&It(),await new Promise((ft,B)=>{Hw(ft,B,{data:gt,headers:qu.from(Nt.headers),status:Nt.status,statusText:Nt.statusText,config:k,request:St})})}catch(Ke){if(It&&It(),He&&He.aborted&&He.reason instanceof Jr){let Me=He.reason;throw Me.config=k,St&&(Me.request=St),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,St,Ke&&Ke.response),{cause:Ke.cause||Ke}):Jr.from(Ke,Ke&&Ke.code,k,St,Ke&&Ke.response)}}},Qpr=new Map,ode=t=>{let e=t&&t.env||{},{fetch:r,Request:n,Response:o}=e,s=[n,o,r],c=s.length,u=c,p,f,h=Qpr;for(;u--;)p=s[u],f=h.get(p),f===void 0&&h.set(p,f=u?new Map:Mpr(e)),h=f;return f},cmi=ode();var ade={http:c7e,xhr:f7e,fetch:{get:ode}};lt.forEach(ade,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var A7e=t=>`- ${t}`,Upr=t=>lt.isFunction(t)||t===null||t===!1;function $pr(t,e){t=lt.isArray(t)?t:[t];let{length:r}=t,n,o,s={};for(let c=0;c<r;c++){n=t[c];let u;if(o=n,!Upr(n)&&(o=ade[(u=String(n)).toLowerCase()],o===void 0))throw new Jr(`Unknown adapter '${u}'`);if(o&&(lt.isFunction(o)||(o=o.get(e))))break;s[u||"#"+c]=o}if(!o){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 :
|
|
@@ -1717,7 +1717,6 @@ export default {
|
|
|
1717
1717
|
message: "The requested path does not exist"
|
|
1718
1718
|
}));
|
|
1719
1719
|
const endTime = Date.now();
|
|
1720
|
-
console.log(\`Makers response status: 404\`);
|
|
1721
1720
|
return;
|
|
1722
1721
|
}
|
|
1723
1722
|
|
|
@@ -1865,7 +1864,6 @@ ${e?`
|
|
|
1865
1864
|
}));
|
|
1866
1865
|
} finally {
|
|
1867
1866
|
const endTime = Date.now();
|
|
1868
|
-
console.log(\`Makers response status: \${response?.status || 'unknown'}\`);
|
|
1869
1867
|
}
|
|
1870
1868
|
}
|
|
1871
1869
|
`}function VJ(){return FHr()}function FHr(){return`
|
|
@@ -6694,7 +6692,7 @@ globalThis.__EDGEONE_CLOUD_FUNCTION_AGENT_STORE__ = {
|
|
|
6694
6692
|
finalHeaders[REQUEST_CONVERSATION_ID_HEADER] = context.agent.conversation_id;
|
|
6695
6693
|
}
|
|
6696
6694
|
|
|
6697
|
-
console.log('Makers
|
|
6695
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (context.server ? context.server.requestId : '') + '|statusCode=' + String(finalStatusCode) + '|');
|
|
6698
6696
|
|
|
6699
6697
|
return originalWriteHead.call(res, finalStatusCode, statusMessage, finalHeaders);
|
|
6700
6698
|
};
|
|
@@ -6819,6 +6817,7 @@ globalThis.__EDGEONE_CLOUD_FUNCTION_AGENT_STORE__ = {
|
|
|
6819
6817
|
// Internal error from user function - intercept
|
|
6820
6818
|
console.error('Framework function error:', frameworkError);
|
|
6821
6819
|
if (!res.headersSent) {
|
|
6820
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (context.server ? context.server.requestId : '') + '|statusCode=502|');
|
|
6822
6821
|
res.writeHead(502, {
|
|
6823
6822
|
'Content-Type': 'application/json',
|
|
6824
6823
|
'Functions-Request-Id': context.server ? context.server.requestId : '',
|
|
@@ -6876,6 +6875,7 @@ globalThis.__EDGEONE_CLOUD_FUNCTION_AGENT_STORE__ = {
|
|
|
6876
6875
|
const requestEndTime = Date.now();
|
|
6877
6876
|
// console.log(\`Request processing time: \${requestEndTime - requestStartTime}ms\`);
|
|
6878
6877
|
|
|
6878
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (context.server ? context.server.requestId : '') + '|statusCode=' + String(response?.status || 200) + '|');
|
|
6879
6879
|
await handleResponse(res, response, getResponsePassHeaders(context, agentConversationId));
|
|
6880
6880
|
return;
|
|
6881
6881
|
}
|
|
@@ -6923,6 +6923,7 @@ globalThis.__EDGEONE_CLOUD_FUNCTION_AGENT_STORE__ = {
|
|
|
6923
6923
|
// console.log(\`Request processing time: \${requestEndTime - requestStartTime}ms\`);
|
|
6924
6924
|
|
|
6925
6925
|
|
|
6926
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (context.server ? context.server.requestId : '') + '|statusCode=' + String(response?.status || 200) + '|');
|
|
6926
6927
|
await handleResponse(res, response, getResponsePassHeaders(context, agentConversationId));
|
|
6927
6928
|
return;
|
|
6928
6929
|
}
|
|
@@ -6957,6 +6958,7 @@ globalThis.__EDGEONE_CLOUD_FUNCTION_AGENT_STORE__ = {
|
|
|
6957
6958
|
const requestEndTime = Date.now();
|
|
6958
6959
|
// console.log(\`Request processing time: \${requestEndTime - requestStartTime}ms\`);
|
|
6959
6960
|
|
|
6961
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (context.server ? context.server.requestId : '') + '|statusCode=' + String(response?.status || 200) + '|');
|
|
6960
6962
|
await handleResponse(res, response, getResponsePassHeaders(context, agentConversationId));
|
|
6961
6963
|
return;
|
|
6962
6964
|
}`}generateMethodHandlerCode(e){return`
|
|
@@ -7085,7 +7087,7 @@ globalThis.__EDGEONE_CLOUD_FUNCTION_AGENT_STORE__ = {
|
|
|
7085
7087
|
}
|
|
7086
7088
|
} catch (handlerError) {
|
|
7087
7089
|
// \u7528\u6237\u51FD\u6570\u5185\u90E8\u9519\u8BEF - \u62E6\u622A
|
|
7088
|
-
console.log('Makers
|
|
7090
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (context.server ? context.server.requestId : '') + '|statusCode=502|');
|
|
7089
7091
|
response = new Response(JSON.stringify({
|
|
7090
7092
|
error: 'Internal Server Error',
|
|
7091
7093
|
message: handlerError.message
|
|
@@ -7485,10 +7487,10 @@ const server = http.createServer(async (req, res) => {
|
|
|
7485
7487
|
}
|
|
7486
7488
|
}
|
|
7487
7489
|
|
|
7488
|
-
|
|
7490
|
+
const scfRequestId = req.headers['x-scf-request-id'] || '';
|
|
7489
7491
|
|
|
7490
7492
|
let response = null;
|
|
7491
|
-
|
|
7493
|
+
|
|
7492
7494
|
${r}
|
|
7493
7495
|
|
|
7494
7496
|
// Return 404 if no matching route is found
|
|
@@ -7511,11 +7513,13 @@ const server = http.createServer(async (req, res) => {
|
|
|
7511
7513
|
if (!res.headers) {
|
|
7512
7514
|
res.headers = {};
|
|
7513
7515
|
}
|
|
7516
|
+
console.log(\`Makers request path: \${fullPath} |scfRequestId=\${scfRequestId}|statusCode=\${response?.status || 200}|\`);
|
|
7514
7517
|
// Handle response, set functions-request-id header
|
|
7515
7518
|
await handleResponse(res, response, getResponsePassHeaders(context, agentConversationId));
|
|
7516
7519
|
|
|
7517
7520
|
} catch (error) {
|
|
7518
7521
|
console.error('server error', error);
|
|
7522
|
+
console.log('Makers request path: ' + fullPath + ' |scfRequestId=' + (req.headers['x-scf-request-id'] || '') + '|statusCode=502|');
|
|
7519
7523
|
// User function internal error / internal 502 - intercept
|
|
7520
7524
|
res.writeHead(502, {
|
|
7521
7525
|
"Content-Type": "application/json",
|
|
@@ -8594,45 +8598,45 @@ export = cryptoShim;
|
|
|
8594
8598
|
addEventListener('fetch', (event, hookCtx) => {
|
|
8595
8599
|
const res = usercode(event, hookCtx);
|
|
8596
8600
|
event.respondWith(res);
|
|
8597
|
-
});`,bu(sVr,this.bundleText),Mt("\u2728 Compiled edge functions successfully"),mr({event_name:"Pages Build:Edge Function:Success",event_scope:hr.LOCAL_FLOW,event_phase:"builder",event_result:pr.SUCCESS,command:"pages",subcommand:"build",builder_type:"edge-function",duration_ms:Date.now()-e})}let o=f=>![/\(\?[=!<]/,/\(\?>/,/\\(\d+)/,/\(\?\(/].some(g=>g.test(f)),s=((p=this.middlewareConfig)==null?void 0:p.normalizedMatcher)||[],c=s.some(f=>f.regex&&!o(f.regex)),u=this.middlewareConfig?{runtime:this.middlewareConfig.runtime||"edge-functions",matcher:c?[{source:"/:path*"}]:s.map(f=>({source:f.source}))}:null;if(this.logicText||this.middlewareBundleCode||await Dye()){let f=(this.functionList||[]).map(E=>{let k=DP(E.routePath);return{src:k.src,routePath:E.routePath,method:E.method,_specificity:k.specificity,_matchType:PP(k.src),_prefix:zJ(k.src)}});f.sort((E,k)=>E._prefix!==k._prefix?E._prefix.localeCompare(k._prefix):E._matchType!==k._matchType?E._matchType-k._matchType:k._specificity-E._specificity);let h=f.map(E=>{let k=E.method,P=fh.every(L=>k.includes(L))&&k.length===fh.length,j={src:E.src};return!P&&k.length>0&&(j.methods=k),j}),g=JSON.stringify({routes:h,middleware:u},null,2);bu(SZe,g);let y=Vb.readFileSync(tr(SZe),"utf-8"),v=JSON.parse(y),A=v.routes.map((E,k)=>{var P;return{...E,routePath:(P=f[k])==null?void 0:P.routePath}}),S=JSON.stringify({routes:A,middleware:v.middleware});return{bundle:this.bundleText,meta:S,routes:v.routes,middleware:u,watch:[]}}return{bundle:this.bundleText,meta:JSON.stringify({routes:[],middleware:null}),routes:[],middleware:u,watch:[]}}async readIndexFiles(e){try{let r=Vb.readdirSync(e);for(let n of r){let o=nVr.join(e,n);if(Vb.statSync(o).isDirectory())this.readIndexFiles(o);else if(/\.(ts|js|cjs|tsx|jsx)$/.test(n)){let c=Vb.readFileSync(o,"utf-8");if(this.isPagesFunction(c)){let u=this.bundleAndGetString(o);u&&this.isPagesFunction(u.text)&&this.arrangeText(u)}}}}catch(r){this.mode==="dev"&&console.log("error",r.message)}}isPagesFunction(e){return e.indexOf("onRequest")>-1}calculateSpecificity(e){let r=e.split("/").filter(u=>u.length>0),n=0,o=0;for(let u of r)u.startsWith("[[")&&u.endsWith("]]")?o+=2:u.startsWith("[")&&u.endsWith("]")?o+=1:n+=1;let s=r.length;return n*1e3+s*100-o*10}matchPath(e){let r=/^\/(?:[^/]+\/)*\[\[(.+?)\]\]$/;if(r.test(e)&&e.indexOf("[[")>-1){let n=r.exec(e);if(n[1])return{id:n[1],mode:2,left:e.replace(`[[${n[1]}]]`,"")}}else if(CZe.test(e)){let n=CZe.exec(e),o=/\[(.*?)\]/g,c=e.match(o).map(p=>p.slice(1,-1)),u=JSON.parse(JSON.stringify(e));if(c==null||c.forEach(p=>{u=u.replace(`[${p}]`,"([^/]*)")}),u=u.replace(/\//g,"\\/"),n[1])return{id:c,mode:1,left:u}}else return{id:"",mode:0,left:""}}arrangeText(e){let r=e.text
|
|
8601
|
+
});`,bu(sVr,this.bundleText),Mt("\u2728 Compiled edge functions successfully"),mr({event_name:"Pages Build:Edge Function:Success",event_scope:hr.LOCAL_FLOW,event_phase:"builder",event_result:pr.SUCCESS,command:"pages",subcommand:"build",builder_type:"edge-function",duration_ms:Date.now()-e})}let o=f=>![/\(\?[=!<]/,/\(\?>/,/\\(\d+)/,/\(\?\(/].some(g=>g.test(f)),s=((p=this.middlewareConfig)==null?void 0:p.normalizedMatcher)||[],c=s.some(f=>f.regex&&!o(f.regex)),u=this.middlewareConfig?{runtime:this.middlewareConfig.runtime||"edge-functions",matcher:c?[{source:"/:path*"}]:s.map(f=>({source:f.source}))}:null;if(this.logicText||this.middlewareBundleCode||await Dye()){let f=(this.functionList||[]).map(E=>{let k=DP(E.routePath);return{src:k.src,routePath:E.routePath,method:E.method,_specificity:k.specificity,_matchType:PP(k.src),_prefix:zJ(k.src)}});f.sort((E,k)=>E._prefix!==k._prefix?E._prefix.localeCompare(k._prefix):E._matchType!==k._matchType?E._matchType-k._matchType:k._specificity-E._specificity);let h=f.map(E=>{let k=E.method,P=fh.every(L=>k.includes(L))&&k.length===fh.length,j={src:E.src};return!P&&k.length>0&&(j.methods=k),j}),g=JSON.stringify({routes:h,middleware:u},null,2);bu(SZe,g);let y=Vb.readFileSync(tr(SZe),"utf-8"),v=JSON.parse(y),A=v.routes.map((E,k)=>{var P;return{...E,routePath:(P=f[k])==null?void 0:P.routePath}}),S=JSON.stringify({routes:A,middleware:v.middleware});return{bundle:this.bundleText,meta:S,routes:v.routes,middleware:u,watch:[]}}return{bundle:this.bundleText,meta:JSON.stringify({routes:[],middleware:null}),routes:[],middleware:u,watch:[]}}async readIndexFiles(e){try{let r=Vb.readdirSync(e);for(let n of r){let o=nVr.join(e,n);if(Vb.statSync(o).isDirectory())this.readIndexFiles(o);else if(/\.(ts|js|cjs|tsx|jsx)$/.test(n)){let c=Vb.readFileSync(o,"utf-8");if(this.isPagesFunction(c)){let u=this.bundleAndGetString(o);u&&this.isPagesFunction(u.text)&&this.arrangeText(u)}}}}catch(r){this.mode==="dev"&&console.log("error",r.message)}}isPagesFunction(e){return e.indexOf("onRequest")>-1}calculateSpecificity(e){let r=e.split("/").filter(u=>u.length>0),n=0,o=0;for(let u of r)u.startsWith("[[")&&u.endsWith("]]")?o+=2:u.startsWith("[")&&u.endsWith("]")?o+=1:n+=1;let s=r.length;return n*1e3+s*100-o*10}matchPath(e){let r=/^\/(?:[^/]+\/)*\[\[(.+?)\]\]$/;if(r.test(e)&&e.indexOf("[[")>-1){let n=r.exec(e);if(n[1])return{id:n[1],mode:2,left:e.replace(`[[${n[1]}]]`,"")}}else if(CZe.test(e)){let n=CZe.exec(e),o=/\[(.*?)\]/g,c=e.match(o).map(p=>p.slice(1,-1)),u=JSON.parse(JSON.stringify(e));if(c==null||c.forEach(p=>{u=u.replace(`[${p}]`,"([^/]*)")}),u=u.replace(/\//g,"\\/"),n[1])return{id:c,mode:1,left:u}}else return{id:"",mode:0,left:""}}arrangeText(e){let r=e.text,o=/onRequest(?![a-zA-Z])/.test(e.text);if(o&&this.recordFunc(e,"onRequest"),ZW.forEach(s=>{if(e.text.indexOf(s.funcName)>-1){r=e.text.replace(/\}\)\(\)\;\n(?:\/\*[\s\S]*?\*\/\n?)*responseFoo/,`
|
|
8602
|
+
pagesFunctionResponse = ${s.funcName};
|
|
8603
|
+
})();`);let c=this.matchPath(e.path)||{id:"",mode:0,left:""};if(c.mode===0){let u=`
|
|
8604
|
+
if(!matchedFunc && '${e.path}' === urlInfo.pathname && request.method === '${s.method}') {
|
|
8605
|
+
matchedFunc = true;
|
|
8606
|
+
${r}
|
|
8607
|
+
}
|
|
8608
|
+
`;this.addLogicSnippet(c.mode,u,e.path),this.recordFunc(e,s.funcName)}else if(c.mode===1){let u=`
|
|
8609
|
+
if(!matchedFunc && /^${c.left}$/.test(urlInfo.pathname) && request.method === '${s.method}') {
|
|
8610
|
+
routeParams = ${JSON.stringify(c)};
|
|
8611
|
+
matchedFunc = true;
|
|
8612
|
+
${r}
|
|
8613
|
+
}
|
|
8614
|
+
`;this.addLogicSnippet(c.mode,u,e.path),this.recordFunc(e,s.funcName)}else if(c.mode===2){let u=IZe.exec(`${e.path}`),f=`
|
|
8615
|
+
if(!matchedFunc && /^${`${e.path}`.replace(`[[${u[1]}]]`,"").replace(/\//g,"\\/")}(.+?)$/.test(urlInfo.pathname) && request.method === '${s.method}') {
|
|
8616
|
+
routeParams = ${JSON.stringify(c)};
|
|
8617
|
+
matchedFunc = true;
|
|
8618
|
+
${r}
|
|
8619
|
+
}
|
|
8620
|
+
`;this.addLogicSnippet(c.mode,f,e.path),this.recordFunc(e,s.funcName)}}}),o){r=e.text.replace(/\}\)\(\)\;\n(?:\/\*[\s\S]*?\*\/\n?)*responseFoo/,`
|
|
8598
8621
|
pagesFunctionResponse = onRequest;
|
|
8599
|
-
})();`);let
|
|
8622
|
+
})();`);let s=this.matchPath(`${e.path}`)||{id:"",mode:0,left:""};if(s.mode===0){let c=`
|
|
8600
8623
|
if(!matchedFunc && '${e.path}' === urlInfo.pathname) {
|
|
8601
8624
|
matchedFunc = true;
|
|
8602
8625
|
${r}
|
|
8603
8626
|
}
|
|
8604
|
-
`;this.addLogicSnippet(
|
|
8605
|
-
if(!matchedFunc && /^${
|
|
8606
|
-
routeParams = ${JSON.stringify(
|
|
8627
|
+
`;this.addLogicSnippet(s.mode,c,e.path)}else if(s.mode===1){let c=`
|
|
8628
|
+
if(!matchedFunc && /^${s.left}$/.test(urlInfo.pathname)) {
|
|
8629
|
+
routeParams = ${JSON.stringify(s)};
|
|
8607
8630
|
matchedFunc = true;
|
|
8608
8631
|
${r}
|
|
8609
8632
|
}
|
|
8610
|
-
`;this.addLogicSnippet(
|
|
8611
|
-
if(!matchedFunc && /^${`${e.path}`.replace(`[[${
|
|
8612
|
-
routeParams = ${JSON.stringify(
|
|
8633
|
+
`;this.addLogicSnippet(s.mode,c,e.path)}else if(s.mode===2){let c=IZe.exec(`${e.path}`),p=`
|
|
8634
|
+
if(!matchedFunc && /^${`${e.path}`.replace(`[[${c[1]}]]`,"").replace(/\//g,"\\/")}(.+?)$/.test(urlInfo.pathname)) {
|
|
8635
|
+
routeParams = ${JSON.stringify(s)};
|
|
8613
8636
|
matchedFunc = true;
|
|
8614
8637
|
${r}
|
|
8615
8638
|
}
|
|
8616
|
-
`;this.addLogicSnippet(
|
|
8617
|
-
pagesFunctionResponse = ${o.funcName};
|
|
8618
|
-
})();`);let s=this.matchPath(e.path)||{id:"",mode:0,left:""};if(s.mode===0){let c=`
|
|
8619
|
-
if(!matchedFunc && '${e.path}' === urlInfo.pathname && request.method === '${o.method}') {
|
|
8620
|
-
matchedFunc = true;
|
|
8621
|
-
${r}
|
|
8622
|
-
}
|
|
8623
|
-
`;this.addLogicSnippet(s.mode,c,e.path),this.recordFunc(e,o.funcName)}else if(s.mode===1){let c=`
|
|
8624
|
-
if(!matchedFunc && /^${s.left}$/.test(urlInfo.pathname) && request.method === '${o.method}') {
|
|
8625
|
-
routeParams = ${JSON.stringify(s)};
|
|
8626
|
-
matchedFunc = true;
|
|
8627
|
-
${r}
|
|
8628
|
-
}
|
|
8629
|
-
`;this.addLogicSnippet(s.mode,c,e.path),this.recordFunc(e,o.funcName)}else if(s.mode===2){let c=IZe.exec(`${e.path}`),p=`
|
|
8630
|
-
if(!matchedFunc && /^${`${e.path}`.replace(`[[${c[1]}]]`,"").replace(/\//g,"\\/")}(.+?)$/.test(urlInfo.pathname) && request.method === '${o.method}') {
|
|
8631
|
-
routeParams = ${JSON.stringify(s)};
|
|
8632
|
-
matchedFunc = true;
|
|
8633
|
-
${r}
|
|
8634
|
-
}
|
|
8635
|
-
`;this.addLogicSnippet(s.mode,p,e.path),this.recordFunc(e,o.funcName)}}}),this.functionIndex=this.functionIndex+1}getMountPath(e){let r=e.replace(/\/([^/]+)$/g,"");return r||"/"}recordFunc(e,r){try{let n=e.path.replace(this.FUNCTIONPATH.replace(/\.\//,""),"").replace(/\/\[\[([^/]+)\]\]$/,"/:$1*").replace(/\/\[([^/]+)\]/g,"/:$1").replace(/[^\w/:*\-]/g,"");this.functionListKeys.push(n);let o=fh,s=[];if(r==="onRequest"){for(let u of o)e.text.toLowerCase().includes("onrequest"+u.toLowerCase())&&s.push(u);s.length||(s=[...fh])}else s=[r.replace("onRequest","").toUpperCase()];let c=this.functionList.findIndex(u=>u.routePath===n);if(c>=0){let u=this.functionList[c],p=Array.isArray(u.method)?u.method:[u.method],f=Array.isArray(s)?s:[s],h=[...new Set([...p,...f])],g=[...new Set([...u.module,`${e.filePath}:${r}`])];this.functionList[c]={...u,method:h,module:g}}else{let u={routePath:n,mountPath:this.getMountPath(n),method:s,module:[`${e.filePath}:${r}`]};this.functionList.push(u)}}catch(n){console.log(n.message)}}addLogicSnippet(e,r,n){let o=this.calculateSpecificity(n);this.logicSegments.push({priority:e,specificity:o,index:this.logicSegmentsIndex++,code:r})}bundleAndGetString(e){let r={};for(let c in this.env)/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(c)&&typeof this.env[c]=="string"&&(r[`env.${c}`]=JSON.stringify(this.env[c]));let n=iVr.buildSync({entryPoints:[e],bundle:!0,write:!1,outfile:"./.tef_dist/assets.js",define:r}),{outputFiles:o}=n,s;for(let c of o)if(c.path.includes(".css"))this.cssText+=c.text;else{let u=/\.(js|ts|cjs|tsx|jsx)$/,p=c.text;e=e.replace(/\\/g,"/");let f=e.replace(/\/index\.(js|ts|cjs|tsx|jsx)/,".js").replace(u,"").replace(this.FUNCTIONPATH.replace(/\.\//,""),"");s={filePath:e.replace(this.FUNCTIONPATH,""),path:f===""?"/":f,text:`${p}responseFoo`}}return s}};var ba=Bt(require("fs")),na=Bt(require("path")),oK=Bt(require("esbuild")),Fye=require("module"),JZe=Bt(r1()),rj=Bt(Bs());var f1=Bt(require("fs")),TC=Bt(require("path")),RZe=require("child_process");var oVr=[{name:"langchain",specifiers:{prefix:["@langchain/"],exact:["deepagents"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-langchain",instrumentationExport:"LangChainInstrumentation",targetModule:"@langchain/core/callbacks/manager"},{name:"claude-agent-sdk",specifiers:{exact:["@anthropic-ai/claude-agent-sdk"]},strategy:"iitm",instrumentationPackage:"@arizeai/openinference-instrumentation-claude-agent-sdk",instrumentationExport:"ClaudeAgentSDKInstrumentation",iitmInclude:["@anthropic-ai/claude-agent-sdk"]},{name:"openai",specifiers:{exact:["openai"],prefix:["openai/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-openai",instrumentationExport:"OpenAIInstrumentation",targetModule:"openai",suppressedBy:["langchain","openai-agents"]},{name:"openai-agents",specifiers:{exact:["@openai/agents"],prefix:["@openai/agents/"]},strategy:"manual",instrumentationPackage:"@edgeone/openinference-instrumentation-openai-agents",instrumentationExport:"OpenAIAgentsInstrumentation",targetModule:"@openai/agents"},{name:"anthropic",specifiers:{exact:["@anthropic-ai/sdk"],prefix:["@anthropic-ai/sdk/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-anthropic",instrumentationExport:"AnthropicInstrumentation",targetModule:"@anthropic-ai/sdk"},{name:"beeai",specifiers:{exact:["beeai-framework"],prefix:["beeai-framework/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-beeai",instrumentationExport:"BeeAIInstrumentation",targetModule:"beeai-framework"},{name:"vercel-ai-sdk",specifiers:{exact:["ai"],prefix:["ai/"]},strategy:"spanProcessor",instrumentationPackage:"@arizeai/openinference-vercel",instrumentationExport:"OpenInferenceSimpleSpanProcessor"},{name:"llama-index",specifiers:{exact:["llamaindex"],prefix:["llamaindex/","@llamaindex/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-llama-index",instrumentationExport:"LlamaIndexInstrumentation",targetModule:"llamaindex"},{name:"bedrock",specifiers:{prefix:["@aws-sdk/client-bedrock-runtime"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-bedrock",instrumentationExport:"BedrockInstrumentation",targetModule:"@aws-sdk/client-bedrock-runtime"},{name:"bedrock-agent-runtime",specifiers:{prefix:["@aws-sdk/client-bedrock-agent-runtime"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-bedrock-agent-runtime",instrumentationExport:"BedrockAgentInstrumentation",targetModule:"@aws-sdk/client-bedrock-agent-runtime"}];function kZe(t){let e=new Set;for(let o of t)for(let s of oVr)aVr(o,s.specifiers)&&e.add(s);let r=[...e],n=new Set(r.map(o=>o.name));return r.filter(o=>{var s;return!((s=o.suppressedBy)!=null&&s.some(c=>n.has(c)))})}function aVr(t,e){var r,n;return!!((r=e.exact)!=null&&r.some(o=>o===t)||(n=e.prefix)!=null&&n.some(o=>t.startsWith(o)))}function TZe(t){let e=t.filter(r=>r.strategy==="spanProcessor");if(e.length>1)throw new Error(`[observability] multiple spanProcessor entries matched (${e.map(r=>r.name).join(", ")}). Only one spanProcessor strategy is supported per runtime.`)}var Pye={"@opentelemetry/api":"^1.9.0","@opentelemetry/sdk-trace-node":"^1.28.0","@opentelemetry/sdk-trace-base":"^1.28.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/resources":"^1.28.0","@opentelemetry/semantic-conventions":"^1.28.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/core":"^1.28.0"},BZe=Object.keys(Pye),DZe={"@arizeai/openinference-instrumentation-langchain":"^4.0.0","@arizeai/openinference-instrumentation-claude-agent-sdk":"^0.2.3","@arizeai/openinference-instrumentation-openai":"^4.1.0","@edgeone/openinference-instrumentation-openai-agents":"^0.1.0","@arizeai/openinference-instrumentation-anthropic":"^0.1.10","@arizeai/openinference-instrumentation-beeai":"^1.5.13","@arizeai/openinference-vercel":"^2.7.4","import-in-the-middle":"^1.15.0"};function NZe(t){let e=kZe(t);if(e.length===0)return{entries:[],requiredDeps:{...Pye},requiredExternals:[...BZe],needsIitmLoader:!1,iitmIncludeModules:[]};TZe(e);let r={...Pye};for(let c of e){let u=DZe[c.instrumentationPackage];u&&(r[c.instrumentationPackage]=u)}let n=e.some(c=>c.strategy==="iitm");if(n){let c=DZe["import-in-the-middle"];c&&(r["import-in-the-middle"]=c)}let o=[];for(let c of e)c.strategy==="iitm"&&c.iitmInclude&&o.push(...c.iitmInclude);let s=[...BZe];for(let c of e)c.strategy==="manual"&&c.targetModule&&s.push(c.targetModule),c.strategy==="iitm"&&c.iitmInclude&&s.push(...c.iitmInclude);return{entries:e,requiredDeps:r,requiredExternals:s,needsIitmLoader:n,iitmIncludeModules:o}}function OZe(t){let e=JSON.stringify(t.entries.map(o=>({name:o.name,strategy:o.strategy,instrumentationPackage:o.instrumentationPackage,instrumentationExport:o.instrumentationExport,targetModule:o.targetModule,specifiers:o.specifiers}))),r=t.needsIitmLoader?`
|
|
8639
|
+
`;this.addLogicSnippet(s.mode,p,e.path)}}this.functionIndex=this.functionIndex+1}getMountPath(e){let r=e.replace(/\/([^/]+)$/g,"");return r||"/"}recordFunc(e,r){try{let n=e.path.replace(this.FUNCTIONPATH.replace(/\.\//,""),"").replace(/\/\[\[([^/]+)\]\]$/,"/:$1*").replace(/\/\[([^/]+)\]/g,"/:$1").replace(/[^\w/:*\-]/g,"");this.functionListKeys.push(n);let o=fh,s=[];if(r==="onRequest"){for(let u of o)e.text.toLowerCase().includes("onrequest"+u.toLowerCase())&&s.push(u);s.length||(s=[...fh])}else s=[r.replace("onRequest","").toUpperCase()];let c=this.functionList.findIndex(u=>u.routePath===n);if(c>=0){let u=this.functionList[c],p=Array.isArray(u.method)?u.method:[u.method],f=Array.isArray(s)?s:[s],h=[...new Set([...p,...f])],g=[...new Set([...u.module,`${e.filePath}:${r}`])];this.functionList[c]={...u,method:h,module:g}}else{let u={routePath:n,mountPath:this.getMountPath(n),method:s,module:[`${e.filePath}:${r}`]};this.functionList.push(u)}}catch(n){console.log(n.message)}}addLogicSnippet(e,r,n){let o=this.calculateSpecificity(n);this.logicSegments.push({priority:e,specificity:o,index:this.logicSegmentsIndex++,code:r})}bundleAndGetString(e){let r={};for(let c in this.env)/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(c)&&typeof this.env[c]=="string"&&(r[`env.${c}`]=JSON.stringify(this.env[c]));let n=iVr.buildSync({entryPoints:[e],bundle:!0,write:!1,outfile:"./.tef_dist/assets.js",define:r}),{outputFiles:o}=n,s;for(let c of o)if(c.path.includes(".css"))this.cssText+=c.text;else{let u=/\.(js|ts|cjs|tsx|jsx)$/,p=c.text;e=e.replace(/\\/g,"/");let f=e.replace(/\/index\.(js|ts|cjs|tsx|jsx)/,".js").replace(u,"").replace(this.FUNCTIONPATH.replace(/\.\//,""),"");s={filePath:e.replace(this.FUNCTIONPATH,""),path:f===""?"/":f,text:`${p}responseFoo`}}return s}};var ba=Bt(require("fs")),na=Bt(require("path")),oK=Bt(require("esbuild")),Fye=require("module"),JZe=Bt(r1()),rj=Bt(Bs());var f1=Bt(require("fs")),TC=Bt(require("path")),RZe=require("child_process");var oVr=[{name:"langchain",specifiers:{prefix:["@langchain/"],exact:["deepagents"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-langchain",instrumentationExport:"LangChainInstrumentation",targetModule:"@langchain/core/callbacks/manager"},{name:"claude-agent-sdk",specifiers:{exact:["@anthropic-ai/claude-agent-sdk"]},strategy:"iitm",instrumentationPackage:"@arizeai/openinference-instrumentation-claude-agent-sdk",instrumentationExport:"ClaudeAgentSDKInstrumentation",iitmInclude:["@anthropic-ai/claude-agent-sdk"]},{name:"openai",specifiers:{exact:["openai"],prefix:["openai/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-openai",instrumentationExport:"OpenAIInstrumentation",targetModule:"openai",suppressedBy:["langchain","openai-agents"]},{name:"openai-agents",specifiers:{exact:["@openai/agents"],prefix:["@openai/agents/"]},strategy:"manual",instrumentationPackage:"@edgeone/openinference-instrumentation-openai-agents",instrumentationExport:"OpenAIAgentsInstrumentation",targetModule:"@openai/agents"},{name:"anthropic",specifiers:{exact:["@anthropic-ai/sdk"],prefix:["@anthropic-ai/sdk/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-anthropic",instrumentationExport:"AnthropicInstrumentation",targetModule:"@anthropic-ai/sdk"},{name:"beeai",specifiers:{exact:["beeai-framework"],prefix:["beeai-framework/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-beeai",instrumentationExport:"BeeAIInstrumentation",targetModule:"beeai-framework"},{name:"vercel-ai-sdk",specifiers:{exact:["ai"],prefix:["ai/"]},strategy:"spanProcessor",instrumentationPackage:"@arizeai/openinference-vercel",instrumentationExport:"OpenInferenceSimpleSpanProcessor"},{name:"llama-index",specifiers:{exact:["llamaindex"],prefix:["llamaindex/","@llamaindex/"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-llama-index",instrumentationExport:"LlamaIndexInstrumentation",targetModule:"llamaindex"},{name:"bedrock",specifiers:{prefix:["@aws-sdk/client-bedrock-runtime"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-bedrock",instrumentationExport:"BedrockInstrumentation",targetModule:"@aws-sdk/client-bedrock-runtime"},{name:"bedrock-agent-runtime",specifiers:{prefix:["@aws-sdk/client-bedrock-agent-runtime"]},strategy:"manual",instrumentationPackage:"@arizeai/openinference-instrumentation-bedrock-agent-runtime",instrumentationExport:"BedrockAgentInstrumentation",targetModule:"@aws-sdk/client-bedrock-agent-runtime"}];function kZe(t){let e=new Set;for(let o of t)for(let s of oVr)aVr(o,s.specifiers)&&e.add(s);let r=[...e],n=new Set(r.map(o=>o.name));return r.filter(o=>{var s;return!((s=o.suppressedBy)!=null&&s.some(c=>n.has(c)))})}function aVr(t,e){var r,n;return!!((r=e.exact)!=null&&r.some(o=>o===t)||(n=e.prefix)!=null&&n.some(o=>t.startsWith(o)))}function TZe(t){let e=t.filter(r=>r.strategy==="spanProcessor");if(e.length>1)throw new Error(`[observability] multiple spanProcessor entries matched (${e.map(r=>r.name).join(", ")}). Only one spanProcessor strategy is supported per runtime.`)}var Pye={"@opentelemetry/api":"^1.9.0","@opentelemetry/sdk-trace-node":"^1.28.0","@opentelemetry/sdk-trace-base":"^1.28.0","@opentelemetry/exporter-trace-otlp-http":"^0.55.0","@opentelemetry/exporter-metrics-otlp-http":"^0.55.0","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/resources":"^1.28.0","@opentelemetry/semantic-conventions":"^1.28.0","@opentelemetry/instrumentation":"^0.55.0","@opentelemetry/core":"^1.28.0"},BZe=Object.keys(Pye),DZe={"@arizeai/openinference-instrumentation-langchain":"^4.0.0","@arizeai/openinference-instrumentation-claude-agent-sdk":"^0.2.3","@arizeai/openinference-instrumentation-openai":"^4.1.0","@edgeone/openinference-instrumentation-openai-agents":"^0.1.0","@arizeai/openinference-instrumentation-anthropic":"^0.1.10","@arizeai/openinference-instrumentation-beeai":"^1.5.13","@arizeai/openinference-vercel":"^2.7.4","import-in-the-middle":"^1.15.0"};function NZe(t){let e=kZe(t);if(e.length===0)return{entries:[],requiredDeps:{...Pye},requiredExternals:[...BZe],needsIitmLoader:!1,iitmIncludeModules:[]};TZe(e);let r={...Pye};for(let c of e){let u=DZe[c.instrumentationPackage];u&&(r[c.instrumentationPackage]=u)}let n=e.some(c=>c.strategy==="iitm");if(n){let c=DZe["import-in-the-middle"];c&&(r["import-in-the-middle"]=c)}let o=[];for(let c of e)c.strategy==="iitm"&&c.iitmInclude&&o.push(...c.iitmInclude);let s=[...BZe];for(let c of e)c.strategy==="manual"&&c.targetModule&&s.push(c.targetModule),c.strategy==="iitm"&&c.iitmInclude&&s.push(...c.iitmInclude);return{entries:e,requiredDeps:r,requiredExternals:s,needsIitmLoader:n,iitmIncludeModules:o}}function OZe(t){let e=JSON.stringify(t.entries.map(o=>({name:o.name,strategy:o.strategy,instrumentationPackage:o.instrumentationPackage,instrumentationExport:o.instrumentationExport,targetModule:o.targetModule,specifiers:o.specifiers}))),r=t.needsIitmLoader?`
|
|
8636
8640
|
try {
|
|
8637
8641
|
const nodeModule = require("node:module");
|
|
8638
8642
|
if (typeof nodeModule.register === 'function') {
|
|
@@ -8989,8 +8993,6 @@ async function requestHandler(req, res) {
|
|
|
8989
8993
|
}
|
|
8990
8994
|
runtimeUrl = xForwardedProto + '://' + host + pathname + search;
|
|
8991
8995
|
}
|
|
8992
|
-
console.log(\`Makers request path: \${fullPath}\`);
|
|
8993
|
-
|
|
8994
8996
|
const rawBody = await readBody(req);
|
|
8995
8997
|
// \u6309 content-type \u505A\u4E00\u6B21\u534F\u8BAE\u5C42\u89E3\u7801\uFF0C\u4E1A\u52A1 handler \u76F4\u63A5\u6D88\u8D39\u7ED3\u6784\u5316 body\u3002
|
|
8996
8998
|
const body = EdgeoneBodyParser.parseBodyByContentType(rawBody, String(req.headers['content-type'] || ''));
|
|
@@ -9011,6 +9013,9 @@ async function requestHandler(req, res) {
|
|
|
9011
9013
|
body,
|
|
9012
9014
|
});
|
|
9013
9015
|
|
|
9016
|
+
const statusCode = runtimeResponse.status || 200;
|
|
9017
|
+
console.log(\`Makers request path: \${fullPath} |scfRequestId=\${requestId}|statusCode=\${statusCode}|\`);
|
|
9018
|
+
|
|
9014
9019
|
// handleResponse \u8D1F\u8D23\u628A\u6807\u51C6 Response \u5199\u56DE Node res\uFF0C\u5E76\u8865\u5145\u5E73\u53F0\u8FFD\u8E2A\u5934\u3002
|
|
9015
9020
|
await handleResponse(res, runtimeResponse, {
|
|
9016
9021
|
'functions-request-id': requestId,
|
|
@@ -9031,6 +9036,7 @@ const server = http.createServer((req, res) => {
|
|
|
9031
9036
|
const requestId = String(req.headers['x-scf-request-id'] || '');
|
|
9032
9037
|
// \u4EC5\u515C\u5E95\u672A\u6355\u83B7\u5F02\u5E38\uFF1B\u4E1A\u52A1\u53EF\u9884\u671F\u9519\u8BEF\u5E94\u5728 runtime \u5185\u88AB\u6620\u5C04\u4E3A\u6807\u51C6\u4E1A\u52A1\u7801\u8FD4\u56DE\u3002
|
|
9033
9038
|
console.error('[agent-runtime] Request failed with status 502:', error?.message || 'Unknown error');
|
|
9039
|
+
console.log(\`Makers request path: \${req.url || '/'} |scfRequestId=\${requestId}|statusCode=502|\`);
|
|
9034
9040
|
res.writeHead(502, {
|
|
9035
9041
|
"Content-Type": "application/json",
|
|
9036
9042
|
"Functions-Request-Id": requestId,
|
|
@@ -89494,17 +89500,17 @@ ${this.generateStoreInitCode()}
|
|
|
89494
89500
|
# ============================================================
|
|
89495
89501
|
|
|
89496
89502
|
def _pages_log_request(method, path, headers=None):
|
|
89497
|
-
"""\
|
|
89503
|
+
"""\u8BA1\u7B97\u5E76\u8FD4\u56DE full_path \u548C scf_request_id\uFF0C\u4E0D\u6253\u5370\u65E5\u5FD7\uFF08\u65E5\u5FD7\u5408\u5E76\u5230 _pages_log_response\uFF09"""
|
|
89498
89504
|
full_path = path
|
|
89505
|
+
scf_request_id = ''
|
|
89499
89506
|
if headers:
|
|
89500
|
-
# \u5224\u65AD\u662F\u5426\u4E3A\u7C7B dict \u63A5\u53E3\uFF08dict / Flask EnvironHeaders / Werkzeug Headers \u7B49\uFF09
|
|
89501
|
-
# Flask \u7684 request.headers \u4E0D\u662F dict\uFF0C\u4F46\u6709 .get() \u65B9\u6CD5
|
|
89502
89507
|
is_dict_like = hasattr(headers, 'get') and not isinstance(headers, list)
|
|
89503
89508
|
host = headers.get('eo-pages-host', '') if is_dict_like else _get_asgi_header(headers, b'eo-pages-host')
|
|
89509
|
+
scf_request_id = headers.get('x-scf-request-id', '') if is_dict_like else _get_asgi_header(headers, b'x-scf-request-id')
|
|
89504
89510
|
if host:
|
|
89505
89511
|
proto = headers.get('x-forwarded-proto', 'https') if is_dict_like else (_get_asgi_header(headers, b'x-forwarded-proto') or 'https')
|
|
89506
89512
|
full_path = f"{proto}://{host}{path}"
|
|
89507
|
-
|
|
89513
|
+
return full_path, scf_request_id
|
|
89508
89514
|
|
|
89509
89515
|
def _get_asgi_header(headers, name):
|
|
89510
89516
|
"""\u4ECE ASGI headers\uFF08list of (bytes, bytes) \u5143\u7EC4\uFF09\u4E2D\u83B7\u53D6\u6307\u5B9A header \u503C"""
|
|
@@ -89515,9 +89521,14 @@ def _get_asgi_header(headers, name):
|
|
|
89515
89521
|
return v.decode('latin1') if isinstance(v, bytes) else v
|
|
89516
89522
|
return ''
|
|
89517
89523
|
|
|
89518
|
-
def _pages_log_response(method, path, status_code, elapsed_ms=None):
|
|
89519
|
-
"""\u8F93\u51FA Pages \u5E73\u53F0\
|
|
89520
|
-
|
|
89524
|
+
def _pages_log_response(method, path, status_code, elapsed_ms=None, headers=None, full_path=None, scf_request_id=None):
|
|
89525
|
+
"""\u8F93\u51FA Pages \u5E73\u53F0\u7EDF\u4E00\u65E5\u5FD7\uFF08path + scfRequestId + statusCode \u5408\u5E76\u4E3A\u4E00\u6761\uFF09"""
|
|
89526
|
+
_full_path = full_path or path
|
|
89527
|
+
_scf_request_id = scf_request_id or ''
|
|
89528
|
+
if not _scf_request_id and headers:
|
|
89529
|
+
is_dict_like = hasattr(headers, 'get') and not isinstance(headers, list)
|
|
89530
|
+
_scf_request_id = headers.get('x-scf-request-id', '') if is_dict_like else _get_asgi_header(headers, b'x-scf-request-id')
|
|
89531
|
+
print(f"Makers request path: {_full_path} |scfRequestId={_scf_request_id}|statusCode={status_code}|", file=sys.stderr)
|
|
89521
89532
|
|
|
89522
89533
|
def _pages_inject_headers(headers_dict, status_code, request_headers=None):
|
|
89523
89534
|
"""
|
|
@@ -89913,7 +89924,7 @@ class ASGIPathStripMiddleware:
|
|
|
89913
89924
|
scope = dict(scope)
|
|
89914
89925
|
request_path = scope.get('path', '/')
|
|
89915
89926
|
request_method = scope.get('method', 'GET')
|
|
89916
|
-
_pages_log_request(request_method, request_path, scope.get('headers'))
|
|
89927
|
+
_full_path, _scf_request_id = _pages_log_request(request_method, request_path, scope.get('headers'))
|
|
89917
89928
|
start_time = time.time()
|
|
89918
89929
|
|
|
89919
89930
|
# \u4F7F\u7528\u9759\u6001\u524D\u7F00\u8FDB\u884C\u8DEF\u5F84\u5265\u79BB
|
|
@@ -89983,7 +89994,7 @@ class ASGIPathStripMiddleware:
|
|
|
89983
89994
|
if not response_logged:
|
|
89984
89995
|
response_logged = True
|
|
89985
89996
|
elapsed_ms = (time.time() - start_time) * 1000
|
|
89986
|
-
_pages_log_response(request_method, request_path, status_code, elapsed_ms)
|
|
89997
|
+
_pages_log_response(request_method, request_path, status_code, elapsed_ms, _scope_req_headers, _full_path, _scf_request_id)
|
|
89987
89998
|
await send(message)
|
|
89988
89999
|
else:
|
|
89989
90000
|
# \u6709 body \u7684\u8BF7\u6C42\u6216\u5DF2\u5E26\u5C3E\u90E8\u659C\u6760\uFF1A\u76F4\u63A5\u8C03\u7528\uFF0C\u4E0D\u505A probe+retry
|
|
@@ -90000,7 +90011,7 @@ class ASGIPathStripMiddleware:
|
|
|
90000
90011
|
if not response_logged:
|
|
90001
90012
|
response_logged = True
|
|
90002
90013
|
elapsed_ms = (time.time() - start_time) * 1000
|
|
90003
|
-
_pages_log_response(request_method, request_path, status_code, elapsed_ms)
|
|
90014
|
+
_pages_log_response(request_method, request_path, status_code, elapsed_ms, _scope_req_headers, _full_path, _scf_request_id)
|
|
90004
90015
|
await send(message)
|
|
90005
90016
|
await self.app(scope, receive, pages_send)
|
|
90006
90017
|
else:
|
|
@@ -90126,24 +90137,24 @@ class ASGIDispatcher:
|
|
|
90126
90137
|
|
|
90127
90138
|
request_path = scope['path']
|
|
90128
90139
|
request_method = scope.get('method', 'GET')
|
|
90129
|
-
_pages_log_request(request_method, request_path, scope.get('headers'))
|
|
90140
|
+
_full_path, _scf_request_id = _pages_log_request(request_method, request_path, scope.get('headers'))
|
|
90130
90141
|
start_time = time.time()
|
|
90131
|
-
|
|
90142
|
+
|
|
90132
90143
|
# \u5C1D\u8BD5\u7528\u539F\u59CB path \u5339\u914D\u8DEF\u7531\uFF08\u540C\u65F6\u68C0\u67E5 HTTP \u65B9\u6CD5\uFF09
|
|
90133
90144
|
app_type, handler, route_config, _, params = self._match_route(request_path, request_method)
|
|
90134
|
-
|
|
90145
|
+
|
|
90135
90146
|
if app_type == 'method_not_allowed':
|
|
90136
90147
|
elapsed_ms = (time.time() - start_time) * 1000
|
|
90137
|
-
_pages_log_response(request_method, request_path, 405, elapsed_ms)
|
|
90148
|
+
_pages_log_response(request_method, request_path, 405, elapsed_ms, scope.get('headers'), _full_path, _scf_request_id)
|
|
90138
90149
|
await self._send_response(send, 405, b'Method Not Allowed')
|
|
90139
90150
|
return
|
|
90140
|
-
|
|
90151
|
+
|
|
90141
90152
|
if app_type is None:
|
|
90142
90153
|
elapsed_ms = (time.time() - start_time) * 1000
|
|
90143
|
-
_pages_log_response(request_method, request_path, 404, elapsed_ms)
|
|
90154
|
+
_pages_log_response(request_method, request_path, 404, elapsed_ms, scope.get('headers'), _full_path, _scf_request_id)
|
|
90144
90155
|
await self._send_response(send, 404, b'Not Found')
|
|
90145
90156
|
return
|
|
90146
|
-
|
|
90157
|
+
|
|
90147
90158
|
# \u5305\u88C5 send \u51FD\u6570\uFF0C\u6CE8\u5165 Pages \u5E73\u53F0 header \u548C\u65E5\u5FD7
|
|
90148
90159
|
response_logged = False
|
|
90149
90160
|
_scope_req_headers = scope.get('headers')
|
|
@@ -90158,9 +90169,9 @@ class ASGIDispatcher:
|
|
|
90158
90169
|
if not response_logged:
|
|
90159
90170
|
response_logged = True
|
|
90160
90171
|
elapsed_ms = (time.time() - start_time) * 1000
|
|
90161
|
-
_pages_log_response(request_method, request_path, status_code, elapsed_ms)
|
|
90172
|
+
_pages_log_response(request_method, request_path, status_code, elapsed_ms, _scope_req_headers, _full_path, _scf_request_id)
|
|
90162
90173
|
await send(message)
|
|
90163
|
-
|
|
90174
|
+
|
|
90164
90175
|
# \u5265\u79BB\u8DEF\u7531\u524D\u7F00\uFF08\u4EC5\u5BF9\u9759\u6001\u6302\u8F7D\u8DEF\u5F84\u751F\u6548\uFF0C\u52A8\u6001\u8DEF\u7531\u4E0D\u5265\u79BB\uFF09
|
|
90165
90176
|
mount_path = route_config['path'] if route_config else '/'
|
|
90166
90177
|
static_prefix = _extract_static_prefix(mount_path)
|
|
@@ -90625,10 +90636,10 @@ app = Flask(__name__)
|
|
|
90625
90636
|
def catch_all(path):
|
|
90626
90637
|
"""\u6355\u83B7\u6240\u6709\u8BF7\u6C42\u5E76\u5206\u53D1\u5230\u5BF9\u5E94\u7684\u5904\u7406\u51FD\u6570"""
|
|
90627
90638
|
request_path = '/' + path if path else '/'
|
|
90628
|
-
_pages_log_request(request.method, request_path, request.headers)
|
|
90639
|
+
_full_path, _scf_request_id = _pages_log_request(request.method, request_path, request.headers)
|
|
90629
90640
|
start_time = time.time()
|
|
90630
90641
|
app_type, handler, route, params = get_handler_for_path(request_path, request.method)
|
|
90631
|
-
|
|
90642
|
+
|
|
90632
90643
|
if app_type == 'method_not_allowed':
|
|
90633
90644
|
resp = Response('Method Not Allowed', status=405, content_type='text/plain')
|
|
90634
90645
|
elif app_type == 'handler':
|
|
@@ -90639,7 +90650,7 @@ def catch_all(path):
|
|
|
90639
90650
|
resp = _handle_asgi_request(handler, request, route)
|
|
90640
90651
|
else:
|
|
90641
90652
|
resp = Response('Not Found', status=404, content_type='text/plain')
|
|
90642
|
-
|
|
90653
|
+
|
|
90643
90654
|
elapsed_ms = (time.time() - start_time) * 1000
|
|
90644
90655
|
# \u76F4\u63A5\u8BBE\u7F6E\u5E73\u53F0 header \u5230 resp \u4E0A (align with Node cloud function)
|
|
90645
90656
|
scf_request_id = request.headers.get('X-Scf-Request-Id', '') or os.environ.get('_LAMBDA_RUNTIME_REQUEST_ID', '')
|
|
@@ -90650,7 +90661,7 @@ def catch_all(path):
|
|
|
90650
90661
|
_cid = getattr(_current_conversation_id, 'value', None) if '_current_conversation_id' in globals() else None
|
|
90651
90662
|
if _cid:
|
|
90652
90663
|
resp.headers['makers-conversation-id'] = _cid
|
|
90653
|
-
_pages_log_response(request.method, request_path, resp.status_code, elapsed_ms)
|
|
90664
|
+
_pages_log_response(request.method, request_path, resp.status_code, elapsed_ms, request.headers, _full_path, _scf_request_id)
|
|
90654
90665
|
return resp
|
|
90655
90666
|
|
|
90656
90667
|
def _handle_handler_request(handler, req, params=None):
|
|
@@ -91252,7 +91263,6 @@ func __edgeonePagesMiddleware() gin.HandlerFunc {
|
|
|
91252
91263
|
}
|
|
91253
91264
|
fullPath = fmt.Sprintf("%s://%s%s", proto, host, r.RequestURI)
|
|
91254
91265
|
}
|
|
91255
|
-
fmt.Printf("Makers request path: %s\\n", fullPath)
|
|
91256
91266
|
|
|
91257
91267
|
// 2. SCF request ID
|
|
91258
91268
|
scfRequestID := r.Header.Get("x-scf-request-id")
|
|
@@ -91269,7 +91279,7 @@ func __edgeonePagesMiddleware() gin.HandlerFunc {
|
|
|
91269
91279
|
"code": "FUNCTION_INVOCATION_FAILED",
|
|
91270
91280
|
"message": fmt.Sprintf("%v", err),
|
|
91271
91281
|
})
|
|
91272
|
-
fmt.Printf("Makers
|
|
91282
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, http.StatusBadGateway)
|
|
91273
91283
|
}
|
|
91274
91284
|
}()
|
|
91275
91285
|
|
|
@@ -91291,7 +91301,7 @@ func __edgeonePagesMiddleware() gin.HandlerFunc {
|
|
|
91291
91301
|
}
|
|
91292
91302
|
}
|
|
91293
91303
|
|
|
91294
|
-
fmt.Printf("Makers
|
|
91304
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, statusCode)
|
|
91295
91305
|
}
|
|
91296
91306
|
}
|
|
91297
91307
|
`}generateEchoPagesMiddleware(e="main",r="/"){return`package ${e}
|
|
@@ -91405,8 +91415,6 @@ func __edgeonePagesMiddleware() echo.MiddlewareFunc {
|
|
|
91405
91415
|
}
|
|
91406
91416
|
fullPath = fmt.Sprintf("%s://%s%s", proto, host, r.RequestURI)
|
|
91407
91417
|
}
|
|
91408
|
-
fmt.Printf("Makers request path: %s\\n", fullPath)
|
|
91409
|
-
|
|
91410
91418
|
// 2. SCF request ID
|
|
91411
91419
|
scfRequestID := r.Header.Get("x-scf-request-id")
|
|
91412
91420
|
c.Response().Header().Set("Functions-Request-Id", scfRequestID)
|
|
@@ -91434,7 +91442,7 @@ func __edgeonePagesMiddleware() echo.MiddlewareFunc {
|
|
|
91434
91442
|
}
|
|
91435
91443
|
}
|
|
91436
91444
|
|
|
91437
|
-
fmt.Printf("Makers
|
|
91445
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, statusCode)
|
|
91438
91446
|
return err
|
|
91439
91447
|
}
|
|
91440
91448
|
}
|
|
@@ -91564,7 +91572,6 @@ ${n}
|
|
|
91564
91572
|
}
|
|
91565
91573
|
fullPath = fmt.Sprintf("%s://%s%s", proto, host, c.OriginalURL())
|
|
91566
91574
|
}
|
|
91567
|
-
fmt.Printf("Makers request path: %s\\n", fullPath)
|
|
91568
91575
|
|
|
91569
91576
|
// 2. SCF request ID
|
|
91570
91577
|
scfRequestID := c.Get("x-scf-request-id")
|
|
@@ -91589,7 +91596,7 @@ ${n}
|
|
|
91589
91596
|
}
|
|
91590
91597
|
}
|
|
91591
91598
|
|
|
91592
|
-
fmt.Printf("Makers
|
|
91599
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, statusCode)
|
|
91593
91600
|
return err
|
|
91594
91601
|
}
|
|
91595
91602
|
}
|
|
@@ -91702,7 +91709,6 @@ func __edgeonePagesMiddleware(next http.Handler) http.Handler {
|
|
|
91702
91709
|
}
|
|
91703
91710
|
fullPath = fmt.Sprintf("%s://%s%s", proto, host, r.RequestURI)
|
|
91704
91711
|
}
|
|
91705
|
-
fmt.Printf("\\nMakers request path: %s\\n", fullPath)
|
|
91706
91712
|
|
|
91707
91713
|
// 2. SCF request ID
|
|
91708
91714
|
scfRequestID := r.Header.Get("x-scf-request-id")
|
|
@@ -91721,7 +91727,7 @@ func __edgeonePagesMiddleware(next http.Handler) http.Handler {
|
|
|
91721
91727
|
"code": "FUNCTION_INVOCATION_FAILED",
|
|
91722
91728
|
"message": fmt.Sprintf("%v", err),
|
|
91723
91729
|
})
|
|
91724
|
-
fmt.Printf("Makers
|
|
91730
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, http.StatusBadGateway)
|
|
91725
91731
|
}
|
|
91726
91732
|
}()
|
|
91727
91733
|
|
|
@@ -91741,7 +91747,7 @@ func __edgeonePagesMiddleware(next http.Handler) http.Handler {
|
|
|
91741
91747
|
}
|
|
91742
91748
|
}
|
|
91743
91749
|
|
|
91744
|
-
fmt.Printf("Makers
|
|
91750
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, statusCode)
|
|
91745
91751
|
})
|
|
91746
91752
|
}
|
|
91747
91753
|
|
|
@@ -91924,8 +91930,6 @@ func main() {
|
|
|
91924
91930
|
fullPath = fmt.Sprintf("%s://%s%s", proto, host, r.RequestURI)
|
|
91925
91931
|
}
|
|
91926
91932
|
|
|
91927
|
-
fmt.Printf("Makers request path: %s\\n", fullPath)
|
|
91928
|
-
|
|
91929
91933
|
// SCF context headers
|
|
91930
91934
|
scfRequestID := r.Header.Get("x-scf-request-id")
|
|
91931
91935
|
w.Header().Set("Functions-Request-Id", scfRequestID)
|
|
@@ -91940,7 +91944,7 @@ func main() {
|
|
|
91940
91944
|
"error": "Not Found",
|
|
91941
91945
|
"message": "The requested path does not exist",
|
|
91942
91946
|
})
|
|
91943
|
-
fmt.Printf("Makers
|
|
91947
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, http.StatusNotFound)
|
|
91944
91948
|
return
|
|
91945
91949
|
}
|
|
91946
91950
|
|
|
@@ -91959,9 +91963,9 @@ func main() {
|
|
|
91959
91963
|
"code": "FUNCTION_INVOCATION_FAILED",
|
|
91960
91964
|
"message": fmt.Sprintf("%v", err),
|
|
91961
91965
|
})
|
|
91962
|
-
fmt.Printf("Makers
|
|
91966
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, http.StatusBadGateway)
|
|
91963
91967
|
} else {
|
|
91964
|
-
fmt.Printf("Makers
|
|
91968
|
+
fmt.Printf("Makers request path: %s |scfRequestId=%s|statusCode=%d|\\n", fullPath, scfRequestID, rec.statusCode)
|
|
91965
91969
|
}
|
|
91966
91970
|
}()
|
|
91967
91971
|
|