@doubao-dev/cli 0.0.25 → 0.0.27
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/dist/2168.js +60 -0
- package/dist/{4091.js → 2611.js} +14 -14
- package/dist/275.js +25 -0
- package/dist/2932.js +1 -1
- package/dist/318.js +1 -1
- package/dist/3768.js +1 -0
- package/dist/3974.js +10 -10
- package/dist/4594.js +7 -0
- package/dist/4931.js +2 -2
- package/dist/{react.js → 6831.js} +1 -1
- package/dist/7410.js +1 -1
- package/dist/@byted-doubao-apps/create.js +1 -1
- package/dist/@byted-doubao-apps/login.js +1 -1
- package/dist/@byted-doubao-apps/login~1.js +1 -1
- package/dist/@byted-doubao-apps/template-empty/package.json +3 -3
- package/dist/@byted-doubao-apps/template-starter/package.json +3 -3
- package/dist/@byted-hdt/cli.js +1 -1
- package/dist/@inquirer/select.js +1 -1
- package/dist/agentic-service.js +1 -0
- package/dist/app.js +1 -1
- package/dist/assets/web-sdk-debugger/index.html +1 -1
- package/dist/assets/web-sdk-debugger/static/css/index.cc3b255797.css +1 -0
- package/dist/assets/web-sdk-debugger/static/js/index.1448a806d8.js +26 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-api.template.js +0 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-framework.template.js +0 -0
- package/dist/browser.js +1 -1
- package/dist/check.js +1 -0
- package/dist/dbx.js +2 -2
- package/dist/demo-server.js +3 -3
- package/dist/demo.js +2 -0
- package/dist/dev-config.js +2 -2
- package/dist/dev-service-client.js +1 -25
- package/dist/dev-shell.js +1 -1
- package/dist/dev.js +10 -10
- package/dist/gen-explore.js +1 -1
- package/dist/gen-trajectory.js +1 -1
- package/dist/get.js +1 -1
- package/dist/init.js +4 -4
- package/dist/ink.js +3 -3
- package/dist/json-file.js +1 -1
- package/dist/login.js +1 -1
- package/dist/main.js +1 -1
- package/dist/manifest-mcp-config.js +1 -1
- package/dist/ora.js +1 -1
- package/dist/portal.js +1 -1
- package/dist/project-layout.js +1 -1
- package/dist/prompt.js +7 -7
- package/dist/prompts.js +1 -1
- package/dist/report.js +1 -1
- package/dist/run-registry.js +1 -1
- package/dist/run.js +122 -122
- package/dist/sandbox.js +1 -1
- package/dist/scan.js +1 -1
- package/dist/sdk.js +20 -20
- package/dist/sdk~1.js +20 -20
- package/dist/server.js +4 -4
- package/dist/simulator-client.js +1 -1
- package/dist/skill.js +1 -1
- package/dist/skills.js +1 -1
- package/dist/skills~2.js +2 -2
- package/dist/status.js +2 -2
- package/dist/status~1.js +1 -1
- package/dist/stop.js +1 -1
- package/dist/templates/README.md +1 -1
- package/dist/update.js +1 -1
- package/dist/upgrade.js +1 -1
- package/dist/upload.js +6 -6
- package/dist/workspace.js +1 -1
- package/dist/yaml.js +2 -2
- package/package.json +2 -2
- package/skills/dbx-eval/SKILL.md +2 -2
- package/skills/doubao-agentic-service-development/SKILL.md +8 -8
- package/skills/doubao-agentic-service-development/references/auth.md +2 -2
- package/skills/doubao-agentic-service-development/references/business-template-debug.md +3 -3
- package/skills/doubao-agentic-service-development/references/dev-debug.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/01-/345/237/272/347/241/200.md +175 -15
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/02-/347/263/273/347/273/237.md +3 -3
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/03-/350/207/252/345/256/232/344/271/211/351/200/232/344/277/241.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/04-/345/256/232/344/275/215.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/08-/344/272/244/344/272/222.md +221 -7
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/10-/347/275/221/347/273/234.md +20 -20
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/11-/345/252/222/344/275/223.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/12-/344/270/232/345/212/241/350/203/275/345/212/233.md +3 -4
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/16-/350/223/235/347/211/231.md +3 -3
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/25-/346/227/240/351/232/234/347/242/215.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/26-/345/237/272/347/241/200/344/277/241/346/201/257.md +3 -3
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/28-/345/211/252/350/264/264/346/235/277.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/32-/346/211/253/347/240/201.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/33-/345/261/217/345/271/225.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/34-/351/234/207/345/212/250.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/common-errors.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/groups.md +3 -3
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/quick-reference.md +7 -3
- package/skills/doubao-agentic-service-development/references/frontend-dev.md +3 -3
- package/skills/doubao-agentic-service-development/references/generate-skill.md +1 -1
- package/skills/doubao-agentic-service-development/references/local-debug/simulator-eval.md +26 -22
- package/skills/doubao-agentic-service-development/references/manifest-guide.md +3 -3
- package/skills/doubao-agentic-service-development/references/mcp-protocol.md +1 -1
- package/skills/doubao-agentic-service-development/references/overview.md +2 -3
- package/skills/doubao-agentic-service-development/references/service-notice.md +1 -3
- package/skills/doubao-agentic-service-development/references/task-management.md +1 -3
- package/dist/1664.js +0 -66
- package/dist/assets/web-sdk-debugger/static/css/index.3fba1d83fd.css +0 -1
- package/dist/assets/web-sdk-debugger/static/js/index.c19e6628b4.js +0 -26
- package/dist/dbx-demo.js +0 -2
- package/dist/eval.js +0 -1
- package/dist/validate.js +0 -1
- /package/dist/{4091.js.LICENSE.txt → 2611.js.LICENSE.txt} +0 -0
- /package/dist/{dev-service-client.js.LICENSE.txt → 275.js.LICENSE.txt} +0 -0
- /package/dist/{react.js.LICENSE.txt → 6831.js.LICENSE.txt} +0 -0
package/dist/4594.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
let e,t,n;import"node:module";import{__webpack_require__ as r}from"./rslib-runtime.js";import{external_node_stream_promises_namespaceObject as o,external_node_tty_namespaceObject as i,external_node_process_namespaceObject as s}from"./3768.js";import"./3551.js";import"./180.js";r.add({"../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/lib/config-manager.js"(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0});let o=n("../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/package.json"),i=60*new Date().getTimezoneOffset(),s=new Proxy({darwin:"mac",win32:"windows"},{get:(e,t)=>e[t]||t});t.default=class{get headerFields(){return Object.assign(Object.assign({},this.partialHeaderFields),{custom:JSON.stringify(this.customField)})}get logger(){return this.options.logger}get caller(){return this.options.caller}get appId(){return this.options.app_id}constructor(e){this.options=e,this.userFields={},this.customField={},this.partialHeaderFields={app_id:e.app_id},Object.assign(this.partialHeaderFields,{platform:"Node.js",os_name:s[process.platform],tz_offset:i,sdk_version:o.version})}configure(e){var t;e.header&&this.logger.trace("Re-configure header with %o",e.header),e.user&&this.logger.trace("Re-configure user with %o",e.user),(null==(t=e.header)?void 0:t.custom)&&this.logger.warn("Set custom params inside header is deprecated, use `config` instead. which looks like:",`
|
|
2
|
+
teaSDK.config({
|
|
3
|
+
header: { ... },
|
|
4
|
+
user: { ... },
|
|
5
|
+
custom: {/** custom content */},
|
|
6
|
+
})`);let n=e.header||{},{custom:o}=n,i=r(n,["custom"]);this.customField=JSON.parse(o||"{}"),Object.assign(this.partialHeaderFields,i),Object.assign(this.userFields,e.user),Object.assign(this.customField,e.custom)}get(e){try{if(!e)return{user:this.userFields,header:this.partialHeaderFields};if(Object.hasOwnProperty.call(this.userFields,e))return this.userFields[e];if(Object.hasOwnProperty.call(this.partialHeaderFields,e))return this.partialHeaderFields[e];else return this.customField[e]?this.customField[e]:void 0}catch(e){this.logger.warn("applog node config get error");return}}compose(e,t){let n=Object.assign({},this.userFields,e.user);n.user_unique_id||(n.user_unique_id="anonymous",this.logger.warn("Composing events without specifying `user_unique_id` is strongly deprecated, use `sdk.config()` to add a global fallback value for anonymous users"));let r=Object.assign({},this.customField,e.customOfHeader);return this.partialHeaderFields&&this.partialHeaderFields.app_id&&this.logger.trace("report appid with %o",this.partialHeaderFields.app_id),{id:(null==t?void 0:t.id)||Math.random().toString(32).slice(2),originatedBy:(null==t?void 0:t.originatedBy)||"logsdk",createdAt:(null==t?void 0:t.createdAt)||Date.now(),event:{server_time:Math.ceil(Date.now()/1e3),caller:e.caller||this.caller||"",user:n,header:Object.assign({custom:JSON.stringify(r)},this.partialHeaderFields,e.header),events:e.events.map(e=>Object.assign(Object.assign({},e),{_staging_flag:this.options.isolated}))}}}}},"../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/lib/constants.js"(e,t){t.SDK_VERSION=void 0,t.SDK_VERSION="3.0.10"},"../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/lib/index.js"(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TeaSDK=void 0;let i=o(n("assert")),s=o(n("../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/lib/config-manager.js")),l=n("../../../node_modules/.pnpm/@logsdk+node-utils@3.0.8/node_modules/@logsdk/node-utils/lib/index.js"),a=n("../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/package.json"),d=n("../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/lib/constants.js");t.TeaSDK=class{get meta(){return{caller:this.configManager.caller,user:this.configManager.userFields,header:this.configManager.headerFields,appId:this.configManager.appId,version:a.version,instanceID:this.instanceID,installedPlugins:[]}}constructor(e){this.plugins=[],this.instanceID=Math.random().toString(32).slice(2),this.config=e=>{this.plugins.map(t=>{var n;null==(n=t.beforeConfig)||n.call(t,e)}),this.configManager.configure(e),this.plugins.map(t=>{var n;null==(n=t.afterConfig)||n.call(t,e)})},this.logger=new l.Logger("Logsdk"),this.logger.setLevel(e.logLevel||"silent"),e.isolated&&this.logger.warn("Global isolation is enabled"),(0,i.default)("number"==typeof(null==e?void 0:e.app_id)),this.configManager=new s.default(Object.assign(Object.assign({},e),{logger:this.logger})),this.logger.trace("initialized success with options %o",e),this.logger.trace("initialized sdk version %o",d.SDK_VERSION)}composeHookContext(e){let t=this;return{get metaInfo(){return t.meta},logger:this.logger.propagate(e.name),collect:(t,n)=>{this.trigger(Object.assign({events:t.map(e=>Object.assign(Object.assign({},e.extra),{event:e.name,params:JSON.stringify(e.params),time:Math.ceil(Date.now()/1e3)}))},n),{originatedBy:e.name})}}}trigger(...e){let[t,n]=e,r=this.configManager.compose(t,n);this.logger.trace("Composed event %o",r),this.plugins.map(e=>{var t,n;null==(t=e.beforeSendEvent)||t.call(e,r),null==(n=e.onSendEvent)||n.call(e,r)})}use(...e){this.plugins.push(...e),e.map(e=>{var t;null==(t=e.install)||t.call(e,this.composeHookContext(e)),this.logger.trace("Plugin %s installed",e.name)})}collectEvents(e,t,n,r){this.trigger({events:n,user:e,header:t,caller:r||this.configManager.caller})}getConfig(e){return this.configManager.get(e)}collect(e,t,n){let o=Array.isArray(e)?e.map(({name:e,params:t})=>({event:e,params:JSON.stringify(t||{})})):[{event:e,params:JSON.stringify(t||{})}],i=(Array.isArray(e)?t:n)||{},{custom:s}=i,l=r(i,["custom"]);this.plugins.length||this.logger.warn("Dry run since no plugin applied"),this.trigger(Object.assign({events:o.map(e=>Object.assign(Object.assign({},e),{time:Math.ceil(Date.now()/1e3)})),customOfHeader:s},l))}}},"../../../node_modules/.pnpm/@logsdk+node-plugin-http@4.0.8/node_modules/@logsdk/node-plugin-http/lib/constants.js"(e,t){t.pathMap=t.ReportURL=void 0,t.ReportURL={cn:"https://mcs.zijieapi.com",sg:"https://sgali-mcs.byteoversea.com",va:"https://maliva-mcs.byteoversea.com"},t.pathMap={REPORT_PATH:"/v1/list",ABConfigPath:"/service/2/abtest_config/"}},"../../../node_modules/.pnpm/@logsdk+node-plugin-http@4.0.8/node_modules/@logsdk/node-plugin-http/lib/index.js"(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{a(r.next(e))}catch(e){i(e)}}function l(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,l)}a((r=r.apply(e,t||[])).next())})},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.httpPlugin=t.HttpController=void 0;let s=n("events"),l=i(n("../../../node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.mjs")),a=i(n("node-fetch")),d=n("../../../node_modules/.pnpm/@logsdk+node-plugin-http@4.0.8/node_modules/@logsdk/node-plugin-http/lib/constants.js"),u=n("../../../node_modules/.pnpm/@logsdk+node-plugin-http@4.0.8/node_modules/@logsdk/node-plugin-http/lib/utility.js");function c(e){try{return JSON.parse(e||"{}")}catch(e){return{}}}class p extends s.EventEmitter{get concurrent(){return this.options.concurrent||10}constructor(e,t){super(),this.options=e,this.channelDomain=t,this.pending=!1,this.queue=[],this.name="http"}flush(){return r(this,void 0,void 0,function*(){let e;if(this.pending)return;this.pending=!0;let t=this.queue.splice(0,this.concurrent),n=[],{event_verify_url:r,retry:o,timeout:i=3e3}=this.options,s=!1;try{e=AbortController||l.default}catch(t){e=l.default}let c=new e;this.channelDomain.endsWith("/")&&(this.channelDomain=this.channelDomain.slice(0,-1));let p=this.channelDomain+d.pathMap.REPORT_PATH;try{if(t.length){if(r){let e=setTimeout(()=>{this.emit("submit-et-timeout"),this.pluginContext.logger.trace("verify %d event timeout",t.length),c.abort()},i);this.pluginContext.logger.trace("verify %d events with event verify url: %s",t.length);let s=(0,u.doWithRetry)({incremental:!0,durationMS:500,count:o||0,name:"verify"},()=>(0,a.default)(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.map(({event:e})=>Object.assign(Object.assign({},e),{verbose:1}))),signal:c.signal}).then(e=>e.json())).then(n=>{this.pluginContext.logger.trace("new verify events %o result %s",t.map(e=>e.id),n),clearTimeout(e)}).catch(t=>{let n=null==t?void 0:t.stack,r=null==t?void 0:t.message;n&&r?this.pluginContext.logger.error("network error: %s $o",r,n):this.pluginContext.logger.error("network error: %o",null==t?void 0:t.message),this.emit("submit-et-error",{message:r,stack:n}),clearTimeout(e)});n.push(s)}this.pluginContext.logger.trace("with channel domain %s",this.channelDomain);let e=setTimeout(()=>{this.emit("submit-timeout"),this.pluginContext.logger.trace("event %o timeout",t.map(({id:e})=>e)),c.abort()},i),l=(0,u.doWithRetry)({incremental:!0,durationMS:500,count:o||2,name:"event"},()=>(0,a.default)(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.map(({event:e})=>Object.assign(Object.assign({},e),{verbose:1}))),signal:c.signal}).then(e=>e.json())).then(n=>{s=!0,this.pluginContext.logger.trace("new sent events %o result %s",t.map(({id:e})=>e),n),clearTimeout(e)}).catch(t=>{let n=null==t?void 0:t.stack,r=null==t?void 0:t.message;n&&r?this.pluginContext.logger.trace("network error: %s %o",r,n):this.pluginContext.logger.trace("network error: %o",t),this.emit("submit-error",{message:r,stack:n}),clearTimeout(e)});n.push(l)}yield Promise.all(n).finally(()=>{var e,n;for(let{event:r}of t)this.emit("end",{event:r,hasSucceed:s}),null==(n=(e=this.options).onEnd)||n.call(e,r,s)})}finally{this.pending=!1}this.queue.length>0?this.flush():(this.pluginContext.logger.trace("queue drained, last sent %d",t.length),this.emit("drain",{lastEvents:t,hasSucceed:s}))})}install(e){this.pluginContext=e}onSendEvent({event:e,id:t}){let{events:n}=e,r=o(e,["events"]),i=(0,u.divide)(n,50).map(e=>({id:t,event:Object.assign(Object.assign({},r),{events:e})}));this.queue.push(...i),this.flush()}getVar(e,t){var n,o,i,s;return r(this,void 0,void 0,function*(){let{header:r,user:l}=this.pluginContext.metaInfo,a=Object.assign(Object.assign(Object.assign(Object.assign({aid:r.app_id},r),l),null==t?void 0:t.extraProperties),{custom:Object.assign(Object.assign({},c(r.custom)),null==t?void 0:t.extraProperties.custom)});this.pluginContext.logger.trace("abRequest config: %o",a);let d=yield this.abRequest(a,{timeout:(null==t?void 0:t.timeout)||3e3});if(null==(n=d[e])?void 0:n.vid){let{user_unique_id:n,uuid:r}=null!=(o=null==t?void 0:t.extraProperties)?o:{};this.pluginContext.logger.trace("abtest_exposure name: %s, vid: %s, val: %o",e,d[e].vid,d[e].val),this.pluginContext.collect([{extra:{ab_sdk_version:String(d[e].vid)},name:"abtest_exposure",params:{}}],{user:{user_unique_id:n||r},header:{ab_sdk_version:String(d[e].vid)}})}return null!=(s=null==(i=d[e])?void 0:i.val)?s:null==t?void 0:t.defaultValue})}getAllVars(e){return r(this,void 0,void 0,function*(){let{header:t,user:n}=this.pluginContext.metaInfo,r=Object.assign(Object.assign(Object.assign(Object.assign({aid:t.app_id},t),n),null==e?void 0:e.extraProperties),{custom:Object.assign(Object.assign({},c(t.custom)),null==e?void 0:e.extraProperties.custom)});return this.pluginContext.logger.trace("abRequest config: %o",r),this.abRequest(r,{timeout:(null==e?void 0:e.timeout)||3e3})})}abRequest(e,t){return r(this,void 0,void 0,function*(){let n,r;try{let e=new URL(this.options.abServiceOrigin);e.pathname=d.pathMap.ABConfigPath,n=e.toJSON(),this.pluginContext.logger.trace("request abtest config with url %s",n)}catch(e){this.pluginContext.logger.error("invalid service origin %O",e)}try{r=AbortController||l.default}catch(e){r=l.default}let o=new r,i=setTimeout(()=>{this.emit("submit-ab-timeout"),this.pluginContext.logger.trace("ab requesttimeout"),o.abort()},t.timeout);if(!n)return{};let s=(0,a.default)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({header:e}),signal:o.signal}).then(e=>e.json()).then(e=>(this.pluginContext.logger.trace("abRequest response %O",e),clearTimeout(i),null==e?void 0:e.data));return(yield s.catch(e=>{this.pluginContext.logger.error("unexpected_error_when_request_ab_ata"),this.pluginContext.logger.error(e),clearTimeout(i)}))||{}})}}t.HttpController=p,t.httpPlugin=function(e){let t=e.channel_domain||e.channel&&d.ReportURL[e.channel];if(!t)throw Error("plugin 'http': channel or channel_domain can't be both undefined");return new p(e,t)}},"../../../node_modules/.pnpm/@logsdk+node-plugin-http@4.0.8/node_modules/@logsdk/node-plugin-http/lib/utility.js"(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{a(r.next(e))}catch(e){i(e)}}function l(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,l)}a((r=r.apply(e,t||[])).next())})};function r(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e).unref()})}Object.defineProperty(t,"__esModule",{value:!0}),t.doWithRetry=t.waitUntil=t.divide=void 0,t.divide=function(e,t){return e.reduce((e,n)=>{let r=e[e.length-1];return r.length>=t&&(r=[],e.push(r)),r.push(n),e},[[]])},t.waitUntil=r,t.doWithRetry=function(e,t){return n(this,void 0,void 0,function*(){let n,o=e.count>=0?e.count:0,i=o+1;for(;i>0;){i--;try{return yield null==t?void 0:t()}catch(e){n=e}let s=o+1-i;yield r(e.durationMS*s)}return Promise.reject(n)})}},"../../../node_modules/.pnpm/@logsdk+node-utils@3.0.8/node_modules/@logsdk/node-utils/lib/format.js"(e,t,n){t.format=void 0;let r=/%[sdjo%]/g;t.format=function(e,...t){var o;return"object"==typeof process&&"string"==typeof(null==(o=null==process?void 0:process.versions)?void 0:o.node)?n("util").format(e,...t):function(e){let t=1,n=arguments,o=n.length,i=String(e).replace(r,e=>{if("%%"===e)return"%";if(t>=o)return e;switch(e){case"%s":return String(n[t++]);case"%d":return Number(n[t++]).toString();case"%j":try{return JSON.stringify(n[t++])}catch(e){return"[Circular]"}default:return e}});for(var s,l=n[t];t<o;l=n[++t])null!==l&&"object"==typeof(s=l)&&null!==s?i+=" "+JSON.stringify(l):i+=" "+l;return i}(e,...t)}},"../../../node_modules/.pnpm/@logsdk+node-utils@3.0.8/node_modules/@logsdk/node-utils/lib/index.js"(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n("../../../node_modules/.pnpm/@logsdk+node-utils@3.0.8/node_modules/@logsdk/node-utils/lib/logger.js"),t)},"../../../node_modules/.pnpm/@logsdk+node-utils@3.0.8/node_modules/@logsdk/node-utils/lib/logger.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;let r=n("../../../node_modules/.pnpm/@logsdk+node-utils@3.0.8/node_modules/@logsdk/node-utils/lib/format.js"),o={silent:0,error:1,warn:2,verbose:3},i={write(e,t){switch(e){case"error":console.error(t);break;case"warn":console.warn(t);break;default:console.log(t)}}};t.Logger=class e{constructor(e){this.product=e,this.levelIndex=1,this.consumer=i,this.getLevelIndex=()=>this.levelIndex,this.getConsumer=()=>this.consumer}propagate(t){let n=new e(`${this.product}.${t}`);return n.getLevelIndex=()=>this.levelIndex,n.getConsumer=()=>this.consumer,n}setLevel(e){this.levelIndex=o[e]||1}log(e,t,...n){let o=(0,r.format)(t,...n);this.getConsumer().write(e,`[${this.product}] [${e}] ${o}`)}error(e,...t){this.getLevelIndex()>=1&&this.log("error",e,...t)}warn(e,...t){this.getLevelIndex()>=2&&this.log("warn",e,...t)}trace(e,...t){this.getLevelIndex()>=3&&this.log("trace",e,...t)}}},"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(e,t,n){let r=n("child_process"),o=n("../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"),i=n("../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");function s(e,t,n){let s=o(e,t,n),l=r.spawn(s.command,s.args,s.options);return i.hookChildProcess(l,s),l}e.exports=s,e.exports.spawn=s,e.exports.sync=function(e,t,n){let s=o(e,t,n),l=r.spawnSync(s.command,s.args,s.options);return l.error=l.error||i.verifyENOENTSync(l.status,s),l},e.exports._parse=o,e.exports._enoent=i},"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(e){let t="win32"===process.platform;function n(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function r(e,r){return t&&1===e&&!r.file?n(r.original,"spawn"):null}e.exports={hookChildProcess:function(e,n){if(!t)return;let o=e.emit;e.emit=function(t,i){if("exit"===t){let t=r(i,n);if(t)return o.call(e,"error",t)}return o.apply(e,arguments)}},verifyENOENT:r,verifyENOENTSync:function(e,r){return t&&1===e&&!r.file?n(r.original,"spawnSync"):null},notFoundError:n}},"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(e,t,n){let r=n("path"),o=n("../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"),i=n("../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"),s=n("../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"),l="win32"===process.platform,a=/\.(?:com|exe)$/i,d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;e.exports=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);let u={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?u:function(e){let t;if(!l)return e;let n=(e.file=o(e),(t=e.file&&s(e.file))?(e.args.unshift(e.file),e.command=t,o(e)):e.file),u=!a.test(n);if(e.options.forceShell||u){let t=d.test(n);e.command=r.normalize(e.command),e.command=i.command(e.command),e.args=e.args.map(e=>i.argument(e,t));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}(u)}},"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(e){let t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,n){return e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1"),e=(e=`"${e}"`).replace(t,"^$1"),n&&(e=e.replace(t,"^$1")),e}},"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(e,t,n){let r=n("fs"),o=n("../../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");e.exports=function(e){let t,n=Buffer.alloc(150);try{t=r.openSync(e,"r"),r.readSync(t,n,0,150,0),r.closeSync(t)}catch(e){}return o(n.toString())}},"../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(e,t,n){let r=n("path"),o=n("../../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"),i=n("../../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");function s(e,t){let n,s=e.options.env||process.env,l=process.cwd(),a=null!=e.options.cwd,d=a&&void 0!==process.chdir&&!process.chdir.disabled;if(d)try{process.chdir(e.options.cwd)}catch(e){}try{n=o.sync(e.command,{path:s[i({env:s})],pathExt:t?r.delimiter:void 0})}catch(e){}finally{d&&process.chdir(l)}return n&&(n=r.resolve(a?e.options.cwd:"",n)),n}e.exports=function(e){return s(e)||s(e,!0)}},"../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(e,t,n){var r;function o(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(n,r){o(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}n("fs"),r="win32"===process.platform||globalThis.TESTING_WINDOWS?n("../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"):n("../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"),e.exports=o,o.sync=function(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},"../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(e,t,n){e.exports=o,o.sync=function(e,t){return i(r.statSync(e),t)};var r=n("fs");function o(e,t,n){r.stat(e,function(e,r){n(e,!e&&i(r,t))})}function i(e,t){var n,r,o,i,s,l,a,d,u;return e.isFile()&&(n=e,r=t,o=n.mode,i=n.uid,s=n.gid,l=void 0!==r.uid?r.uid:process.getuid&&process.getuid(),a=void 0!==r.gid?r.gid:process.getgid&&process.getgid(),d=parseInt("100",8),u=parseInt("010",8),o&parseInt("001",8)||o&u&&s===a||o&d&&i===l||o&(d|u)&&0===l)}},"../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(e,t,n){e.exports=i,i.sync=function(e,t){return o(r.statSync(e),e,t)};var r=n("fs");function o(e,t,n){if(!e.isSymbolicLink()&&!e.isFile())return!1;var r=void 0!==n.pathExt?n.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var o=0;o<r.length;o++){var i=r[o].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function i(e,t,n){r.stat(e,function(r,i){n(r,!r&&o(i,e,t))})}},"../../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(e){let t=(e={})=>{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};e.exports=t,e.exports.default=t},"../../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(e,t,n){let r=n("../../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");e.exports=(e="")=>{let t=e.match(r);if(!t)return null;let[n,o]=t[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}},"../../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(e){e.exports=/^#!(.*)/},"../../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(e,t,n){let r="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=n("path"),i=r?";":":",s=n("../../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"),l=e=>Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),a=(e,t)=>{let n=t.colon||i,o=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],s=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",l=r?s.split(n):[""];return r&&-1!==e.indexOf(".")&&""!==l[0]&&l.unshift(""),{pathEnv:o,pathExt:l,pathExtExe:s}},d=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:i,pathExtExe:d}=a(e,t),u=[],c=n=>new Promise((i,s)=>{if(n===r.length)return t.all&&u.length?i(u):s(l(e));let a=r[n],d=/^".*"$/.test(a)?a.slice(1,-1):a,c=o.join(d,e);i(p(!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c,n,0))}),p=(e,n,r)=>new Promise((o,l)=>{if(r===i.length)return o(c(n+1));let a=i[r];s(e+a,{pathExt:d},(i,s)=>{if(!i&&s)if(!t.all)return o(e+a);else u.push(e+a);return o(p(e,n,r+1))})});return n?c(0).then(e=>n(null,e),n):c(0)};e.exports=d,d.sync=(e,t)=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=a(e,t=t||{}),d=[];for(let l=0;l<n.length;l++){let a=n[l],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=o.join(u,e),p=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<r.length;e++){let n=p+r[e];try{if(s.sync(n,{pathExt:i}))if(!t.all)return n;else d.push(n)}catch(e){}}}if(t.all&&d.length)return d;if(t.nothrow)return null;throw l(e)}},"../../../node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.mjs"(e,t,n){n.r(t);var r=n("../../../node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.mjs");class o extends r.SF{constructor(){throw super(),TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=i.get(this);if("boolean"!=typeof e)throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}}(0,r.Ui)(o.prototype,"abort");let i=new WeakMap;Object.defineProperties(o.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(o.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class s{constructor(){let e;l.set(this,(e=Object.create(o.prototype),r.SF.call(e),i.set(e,!1),e))}get signal(){return a(this)}abort(){var e;e=a(this),!1===i.get(e)&&(i.set(e,!0),e.dispatchEvent({type:"abort"}))}}let l=new WeakMap;function a(e){let t=l.get(e);if(null==t)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${null===e?"null":typeof e}`);return t}Object.defineProperties(s.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(s.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),n.d(t,{AbortController:()=>s,AbortSignal:()=>o},{default:s})},"../../../node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.mjs"(e,t,n){let r=new WeakMap,o=new WeakMap;function i(e){let t=r.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function s(e){if(null!=e.passiveListener){"u">typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener);return}e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault())}function l(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let n=Object.keys(t);for(let e=0;e<n.length;++e){let t=n[e];t in this||Object.defineProperty(this,t,a(t))}}function a(e){return{get(){return i(this).event[e]},set(t){i(this).event[e]=t},configurable:!0,enumerable:!0}}function d(e,t){i(e).passiveListener=t}l.prototype={get type(){return i(this).event.type},get target(){return i(this).eventTarget},get currentTarget(){return i(this).currentTarget},composedPath(){let e=i(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return i(this).eventPhase},stopPropagation(){let e=i(this);e.stopped=!0,"function"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){let e=i(this);e.stopped=!0,e.immediateStopped=!0,"function"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return!!i(this).event.bubbles},get cancelable(){return!!i(this).event.cancelable},preventDefault(){s(i(this))},get defaultPrevented(){return i(this).canceled},get composed(){return!!i(this).event.composed},get timeStamp(){return i(this).timeStamp},get srcElement(){return i(this).eventTarget},get cancelBubble(){return i(this).stopped},set cancelBubble(value){if(!value)return;let e=i(this);e.stopped=!0,"boolean"==typeof e.event.cancelBubble&&(e.event.cancelBubble=!0)},get returnValue(){return!i(this).canceled},set returnValue(value){value||s(i(this))},initEvent(){}},Object.defineProperty(l.prototype,"constructor",{value:l,configurable:!0,writable:!0}),"u">typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(l.prototype,window.Event.prototype),o.set(window.Event.prototype,l));let u=new WeakMap;function c(e){return null!==e&&"object"==typeof e}function p(e){let t=u.get(e);if(null==t)throw TypeError("'this' is expected an EventTarget object, but got another value.");return t}function h(e,t){Object.defineProperty(e,`on${t}`,{get(){let e=p(this).get(t);for(;null!=e;){if(3===e.listenerType)return e.listener;e=e.next}return null},set(e){"function"==typeof e||c(e)||(e=null);let n=p(this),r=null,o=n.get(t);for(;null!=o;)3===o.listenerType?null!==r?r.next=o.next:null!==o.next?n.set(t,o.next):n.delete(t):r=o,o=o.next;if(null!==e){let o={listener:e,listenerType:3,passive:!1,once:!1,next:null};null===r?n.set(t,o):r.next=o}},configurable:!0,enumerable:!0})}function m(e){function t(){g.call(this)}t.prototype=Object.create(g.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let n=0;n<e.length;++n)h(t.prototype,e[n]);return t}function g(){if(this instanceof g)return void u.set(this,new Map);if(1==arguments.length&&Array.isArray(arguments[0]))return m(arguments[0]);if(arguments.length>0){let e=Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return m(e)}throw TypeError("Cannot call a class as a function")}g.prototype={addEventListener(e,t,n){if(null==t)return;if("function"!=typeof t&&!c(t))throw TypeError("'listener' should be a function or an object.");let r=p(this),o=c(n),i=(o?n.capture:n)?1:2,s={listener:t,listenerType:i,passive:o&&!!n.passive,once:o&&!!n.once,next:null},l=r.get(e);if(void 0===l)return void r.set(e,s);let a=null;for(;null!=l;){if(l.listener===t&&l.listenerType===i)return;a=l,l=l.next}a.next=s},removeEventListener(e,t,n){if(null==t)return;let r=p(this),o=(c(n)?n.capture:n)?1:2,i=null,s=r.get(e);for(;null!=s;){if(s.listener===t&&s.listenerType===o)return void(null!==i?i.next=s.next:null!==s.next?r.set(e,s.next):r.delete(e));i=s,s=s.next}},dispatchEvent(e){if(null==e||"string"!=typeof e.type)throw TypeError('"event.type" should be a string.');let t=p(this),n=e.type,r=t.get(n);if(null==r)return!0;let s=new(function e(t){if(null==t||t===Object.prototype)return l;let n=o.get(t);return null==n&&(n=function(e,t){let n=Object.keys(t);if(0===n.length)return e;function r(t,n){e.call(this,t,n)}r.prototype=Object.create(e.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let o=0;o<n.length;++o){let s=n[o];if(!(s in e.prototype)){let e="function"==typeof Object.getOwnPropertyDescriptor(t,s).value;Object.defineProperty(r.prototype,s,e?function(e){return{value(){let t=i(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}(s):a(s))}}return r}(e(Object.getPrototypeOf(t)),t),o.set(t,n)),n}(Object.getPrototypeOf(e)))(this,e),u=null;for(;null!=r;){if(r.once?null!==u?u.next=r.next:null!==r.next?t.set(n,r.next):t.delete(n):u=r,d(s,r.passive?r.listener:null),"function"==typeof r.listener)try{r.listener.call(this,s)}catch(e){"u">typeof console&&"function"==typeof console.error&&console.error(e)}else 3!==r.listenerType&&"function"==typeof r.listener.handleEvent&&r.listener.handleEvent(s);if(i(s).immediateStopped)break;r=r.next}return d(s,null),i(s).eventPhase=0,i(s).currentTarget=null,!s.defaultPrevented}},Object.defineProperty(g.prototype,"constructor",{value:g,configurable:!0,writable:!0}),"u">typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(g.prototype,window.EventTarget.prototype),n.d(t,{SF:()=>g,Ui:()=>h})},"../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/package.json"(e){e.exports={version:"3.0.12"}}});let l=r("node:crypto"),a=r("node:fs"),d=r("node:os"),u=r("node:path");function c(e){try{return(0,a.readFileSync)(e,"utf8").trim()||void 0}catch{return}}let p=r("../../../node_modules/.pnpm/@dp+tea-sdk-node@3.0.12/node_modules/@dp/tea-sdk-node/lib/index.js"),h=r("../../../node_modules/.pnpm/@logsdk+node-plugin-http@4.0.8/node_modules/@logsdk/node-plugin-http/lib/index.js");class m{constructor(e=function(e=u.join((0,d.homedir)(),".doubao-apps")){let t=u.join(e,"monitor-user-id"),n=c(t);if(n)return n;let r=(0,l.randomUUID)();try{return(0,a.mkdirSync)(e,{recursive:!0,mode:448}),(0,a.writeFileSync)(t,`${r}
|
|
7
|
+
`,{encoding:"utf8",flag:"wx",mode:384}),r}catch{return c(t)??"anonymous-unpersisted"}}()){this.pendingCount=0,this.sdk=new p.TeaSDK({app_id:944787,logLevel:"silent"}),this.controller=(0,h.httpPlugin)({channel:"cn",retry:2,timeout:2e3}),this.controller.on("end",({hasSucceed:e})=>{this.pendingCount=Math.max(0,this.pendingCount-1),this.sdk.logger.trace("Tea event upload completed, hasSucceed: %s",e),e||this.sdk.logger.warn("Tea event upload did not succeed")}),this.controller.on("submit-error",({message:e})=>{this.sdk.logger.warn("Tea event upload failed: %s",e??"unknown network error")}),this.controller.on("submit-timeout",()=>{this.sdk.logger.warn("Tea event upload timed out after %d ms",2e3)}),this.sdk.use(this.controller),this.sdk.config({user:{user_unique_id:e}})}async upload(e){this.pendingCount+=1;try{this.sdk.collect(e.name,e.params)}catch(e){throw this.pendingCount-=1,e}}async flush(e){0!==this.pendingCount&&await new Promise(t=>{let n=()=>{clearTimeout(r),this.controller.off("drain",n),t()},r=setTimeout(n,e);this.controller.once("drain",n)})}}function g(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let f={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},b={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},y={...f,...b},v={...f,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},w=function(){let{env:e}=s,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==s.platform?"linux"!==t:!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}()?y:v;Object.entries(b);let x=i?.WriteStream?.prototype?.hasColors?.()??!1,O=(e,t)=>{if(!x)return e=>e;let n=`\u001B[${e}m`,r=`\u001B[${t}m`;return e=>{let o=e+"",i=o.indexOf(r);if(-1===i)return n+o+r;let s=n,l=0,a=(22===t?r:"")+n;for(;-1!==i;)s+=o.slice(l,i)+a,l=i+r.length,i=o.indexOf(r,l);return s+(o.slice(l)+r)}};O(0,0);let S=O(1,22);O(2,22),O(3,23),O(4,24),O("4:2",24),O("4:3",24),O("4:4",24),O("4:5",24),O(53,55),O(7,27),O(8,28),O(9,29),O(30,39),O(31,39),O(32,39),O(33,39),O(34,39),O(35,39),O(36,39),O(37,39);let _=O(90,39);O(40,49),O(41,49),O(42,49),O(43,49),O(44,49),O(45,49),O(46,49),O(47,49),O(100,49);let D=O(91,39);O(92,39);let j=O(93,39);function T(e={}){let{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"}O(94,39),O(95,39),O(96,39),O(97,39),O(101,49),O(102,49),O(103,49),O(104,49),O(105,49),O(106,49),O(107,49),O("58;5;0",59),O("58;5;1",59),O("58;5;2",59),O("58;5;3",59),O("58;5;4",59),O("58;5;5",59),O("58;5;6",59),O("58;5;7",59),O("58;5;8",59),O("58;5;9",59),O("58;5;10",59),O("58;5;11",59),O("58;5;12",59),O("58;5;13",59),O("58;5;14",59),O("58;5;15",59);let E=r("node:util"),R=r("node:child_process"),B=r("node:url");function P(e){return e instanceof URL?(0,B.fileURLToPath)(e):e}(0,E.promisify)(R.execFile);let C=({env:e=s.env,...t}={})=>{let n=T({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=s.cwd(),path:t=s.env[T()],preferLocal:n=!0,execPath:r=s.execPath,addExecPath:o=!0}={})=>{var i,l,a,d;let c,p=u.resolve(P(e)),h=[],m=t.split(u.delimiter);return n&&((e,t,n)=>{for(let r of{*[Symbol.iterator](){let e,t=u.resolve(P(n));for(;e!==t;)yield t,e=t,t=u.resolve(t,"..")}}){let n=u.join(r,"node_modules/.bin");t.includes(n)||e.push(n)}})(h,m,p),o&&(i=h,l=m,a=r,d=p,c=u.resolve(d,P(a),".."),l.includes(c)||i.push(c)),""===t||t===u.delimiter?`${h.join(u.delimiter)}${t}`:[...h,t].join(u.delimiter)})(t),e},L=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],k=(e,t)=>({name:`SIGRT${t+1}`,number:I+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),I=34,A=()=>[...L,...Array.from({length:64-I+1},k)].map(U),U=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=d.constants,l=void 0!==s;return{name:e,number:l?s:t,description:n,supported:l,action:r,forced:o,standard:i}},M=Object.fromEntries(A().map(({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s}])),N=(e,t)=>{let n=t.find(({name:t})=>d.constants.signals[t]===e);return void 0!==n?n:t.find(t=>t.number===e)};function G(e){if("string"==typeof e)return F(e);if(!(ArrayBuffer.isView(e)&&1===e.BYTES_PER_ELEMENT))throw Error("Input must be a string or a Uint8Array");return $(e)}t=A(),Object.assign({},...Array.from({length:65},(e,n)=>((e,t)=>{let n=N(e,t);if(void 0===n)return{};let{name:r,description:o,supported:i,action:s,forced:l,standard:a}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:l,standard:a}}})(n,t)));let F=e=>e.at(-1)===H?e.slice(0,e.at(-2)===V?-2:-1):e,$=e=>e.at(-1)===q?e.subarray(0,e.at(-2)===W?-2:-1):e,H="\n",q=H.codePointAt(0),V="\r",W=V.codePointAt(0);function z(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function K(e,{checkOpen:t=!0}={}){return z(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function Y(e,{checkOpen:t=!0}={}){return z(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function J(e,t){return K(e,t)&&Y(e,t)}let X=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Q{#e;#t;#n=!1;#r=void 0;constructor(e,t){this.#e=e,this.#t=t}next(){let e=()=>this.#o();return this.#r=this.#r?this.#r.then(e,e):e(),this.#r}return(e){let t=()=>this.#i(e);return this.#r?this.#r.then(t,t):t()}async #o(){let e;if(this.#n)return{done:!0,value:void 0};try{e=await this.#e.read()}catch(e){throw this.#r=void 0,this.#n=!0,this.#e.releaseLock(),e}return e.done&&(this.#r=void 0,this.#n=!0,this.#e.releaseLock()),e}async #i(e){if(this.#n)return{done:!0,value:e};if(this.#n=!0,!this.#t){let t=this.#e.cancel(e);return this.#e.releaseLock(),await t,{done:!0,value:e}}return this.#e.releaseLock(),{done:!0,value:e}}}let Z=Symbol();function ee(){return this[Z].next()}function et(e){return this[Z].return(e)}Object.defineProperty(ee,"name",{value:"next"}),Object.defineProperty(et,"name",{value:"return"});let en=Object.create(X,{next:{enumerable:!0,configurable:!0,writable:!0,value:ee},return:{enumerable:!0,configurable:!0,writable:!0,value:et}});function er({preventCancel:e=!1}={}){let t=new Q(this.getReader(),e),n=Object.create(en);return n[Z]=t,n}let{toString:eo}=Object.prototype,ei=async function*(e){let t=new AbortController,n={};es(e,t,n);try{for await(let[n]of el.on(e,"data",{signal:t.signal}))yield n}catch(e){if(void 0!==n.error)throw n.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},es=async(e,t,n)=>{try{await el.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){n.error=e}finally{t.abort()}},el={},ea=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:l},{maxBuffer:a=1/0}={})=>{let d=(e=>{if(Y(e,{checkOpen:!1})&&void 0!==el.on)return ei(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===eo.call(e))return er.call(e);throw TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")})(e),u=t();u.length=0;try{for await(let e of d){let t=n[ep(e)](e,u);eu({convertedChunk:t,state:u,getSize:r,truncateChunk:o,addChunk:i,maxBuffer:a})}return ed({state:u,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:a}),l(u)}catch(t){let e="object"==typeof t&&null!==t?t:Error(t);throw e.bufferedData=l(u),e}},ed=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:o,maxBuffer:i})=>{let s=o(e);void 0!==s&&eu({convertedChunk:s,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:i})},eu=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:o,maxBuffer:i})=>{let s=n(e),l=t.length+s;if(l<=i)return void ec(e,t,o,l);let a=r(e,i-t.length);throw void 0!==a&&ec(a,t,o,i),new em},ec=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},ep=e=>{let t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let n=eh.call(e);return"[object ArrayBuffer]"===n?"arrayBuffer":"[object DataView]"===n?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===eh.call(e.buffer)?"typedArray":"others"},{toString:eh}=Object.prototype;class em extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}let eg=e=>Number.isFinite(e)?e:0,ef=24n*60n*60n*1000n;function eb(e,t){let n="bigint"==typeof e;if(!n&&!Number.isFinite(e))throw TypeError("Expected a finite number or bigint");t={...t};let r=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(e,n,r,i)=>{if(!((0===o.length||!t.colonNotation)&&(0===e||0n===e))||t.colonNotation&&"m"===r){if(i??=String(e),t.colonNotation){let e=i.includes(".")?i.split(".")[0].length:i.length,t=o.length>0?2:1;i="0".repeat(Math.max(0,t-e))+i}else i+=t.verbose?" "+(1===e||1n===e?n:`${n}s`):r;o.push(i)}},s=function(e){switch(typeof e){case"number":if(Number.isFinite(e))return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(eg(1e3*e)%1e3),nanoseconds:Math.trunc(eg(1e6*e)%1e3)};break;case"bigint":return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}throw TypeError("Expected a finite number or bigint")}(e),l=BigInt(s.days);if(t.hideYearAndDays?i(24n*BigInt(l)+BigInt(s.hours),"hour","h"):(t.hideYear?i(l,"day","d"):(i(l/365n,"year","y"),i(l%365n,"day","d")),i(Number(s.hours),"hour","h")),i(Number(s.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let e=Number(s.seconds),n=Number(s.milliseconds),r=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(n,"millisecond","ms"),i(r,"microsecond","\xb5s"),i(o,"nanosecond","ns");else{let e=n+r/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,l=e>=1?Math.round(e):Math.ceil(e),a=s?e.toFixed(s):l;i(Number.parseFloat(a),"millisecond","ms",a)}}else{let r=(n?Number(e%ef):e)/1e3%60,o="number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1,s=(Math.round(Math.floor(r*10**o+1e-7))/10**o).toFixed(o),l=t.keepDecimalsOnWholeSeconds?s:s.replace(/\.0+$/,"");i(Number.parseFloat(l),"second","s",l)}if(0===o.length)return r+"0"+(t.verbose?" milliseconds":"ms");let a=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(o=o.slice(0,Math.max(t.unitCount,1))),r+o.join(a)}let ey=r("node:events"),ev=r("node:stream");function ew(e){if(!Array.isArray(e))throw TypeError(`Expected an array, got \`${typeof e}\`.`);for(let t of e)ej(t);let t=e.some(({readableObjectMode:e})=>e),n=ex(e,t),r=new eO({objectMode:t,writableHighWaterMark:n,readableHighWaterMark:n});for(let t of e)r.add(t);return r}let ex=(e,t)=>0===e.length?(0,ev.getDefaultHighWaterMark)(t):Math.max(...e.filter(({readableObjectMode:e})=>e===t).map(({readableHighWaterMark:e})=>e));class eO extends ev.PassThrough{#s=new Set([]);#l=new Set([]);#a=new Set([]);#d;#u=Symbol("unpipe");#c=new WeakMap;add(e){if(ej(e),this.#s.has(e))return;this.#s.add(e),this.#d??=eS(this,this.#s,this.#u);let t=eT({passThroughStream:this,stream:e,streams:this.#s,ended:this.#l,aborted:this.#a,onFinished:this.#d,unpipeEvent:this.#u});this.#c.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(ej(e),!this.#s.has(e))return!1;let t=this.#c.get(e);return void 0!==t&&(this.#c.delete(e),e.unpipe(this),await t,!0)}}let eS=async(e,t,n)=>{eU(e,eM);let r=new AbortController;try{await Promise.race([e_(e,r),eD(e,t,n,r)])}finally{r.abort(),eU(e,-eM)}},e_=async(e,{signal:t})=>{try{await (0,o.finished)(e,{signal:t,cleanup:!0})}catch(t){throw eC(e,t),t}},eD=async(e,t,n,{signal:r})=>{for await(let[o]of(0,ey.on)(e,"unpipe",{signal:r}))t.has(o)&&o.emit(n)},ej=e=>{if("function"!=typeof e?.pipe)throw TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},eT=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:o,onFinished:i,unpipeEvent:s})=>{eU(e,eN);let l=new AbortController;try{await Promise.race([eE(i,t,l),eR({passThroughStream:e,stream:t,streams:n,ended:r,aborted:o,controller:l}),eB({stream:t,streams:n,ended:r,aborted:o,unpipeEvent:s,controller:l})])}finally{l.abort(),eU(e,-eN)}n.size>0&&n.size===r.size+o.size&&(0===r.size&&o.size>0?ek(e):eP(e))},eE=async(e,t,{signal:n})=>{try{await e,n.aborted||ek(t)}catch(e){n.aborted||eC(t,e)}},eR=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,controller:{signal:s}})=>{try{await (0,o.finished)(t,{signal:s,cleanup:!0,readable:!0,writable:!1}),n.has(t)&&r.add(t)}catch(r){if(s.aborted||!n.has(t))return;eL(r)?i.add(t):eI(e,r)}},eB=async({stream:e,streams:t,ended:n,aborted:r,unpipeEvent:o,controller:{signal:i}})=>{if(await (0,ey.once)(e,o,{signal:i}),!e.readable)return(0,ey.once)(i,"abort",{signal:i});t.delete(e),n.delete(e),r.delete(e)},eP=e=>{e.writable&&e.end()},eC=(e,t)=>{eL(t)?ek(e):eI(e,t)},eL=e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE",ek=e=>{(e.readable||e.writable)&&e.destroy()},eI=(e,t)=>{e.destroyed||(e.once("error",eA),e.destroy(t))},eA=()=>{},eU=(e,t)=>{let n=e.getMaxListeners();0!==n&&n!==1/0&&e.setMaxListeners(n+t)},eM=2,eN=1,eG=[];eG.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&eG.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&eG.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let eF=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,e$=Symbol.for("signal-exit emitter"),eH=globalThis,eq=Object.defineProperty.bind(Object);class eV{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(eH[e$])return eH[e$];eq(eH,e$,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let n=this.listeners[e],r=n.indexOf(t);-1!==r&&(0===r&&1===n.length?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let o of this.listeners[e])r=!0===o(t,n)||r;return"exit"===e&&(r=this.emit("afterExit",t,n)||r),r}}class eW{}class ez extends eW{#p="win32"===eK.platform?"SIGINT":"SIGHUP";#h=new eV;#m;#g;#f;#b={};#y=!1;constructor(e){for(let t of(super(),this.#m=e,this.#b={},eG))this.#b[t]=()=>{let n=this.#m.listeners(t),{count:r}=this.#h;if("object"==typeof e.__signal_exit_emitter__&&"number"==typeof e.__signal_exit_emitter__.count&&(r+=e.__signal_exit_emitter__.count),n.length===r){this.unload();let n=this.#h.emit("exit",null,t),r="SIGHUP"===t?this.#p:t;n||e.kill(e.pid,r)}};this.#f=e.reallyExit,this.#g=e.emit}onExit(e,t){if(!eF(this.#m))return()=>{};!1===this.#y&&this.load();let n=t?.alwaysLast?"afterExit":"exit";return this.#h.on(n,e),()=>{this.#h.removeListener(n,e),0===this.#h.listeners.exit.length&&0===this.#h.listeners.afterExit.length&&this.unload()}}load(){if(!this.#y){for(let e of(this.#y=!0,this.#h.count+=1,eG))try{let t=this.#b[e];t&&this.#m.on(e,t)}catch(e){}this.#m.emit=(e,...t)=>this.#v(e,...t),this.#m.reallyExit=e=>this.#w(e)}}unload(){this.#y&&(this.#y=!1,eG.forEach(e=>{let t=this.#b[e];if(!t)throw Error("Listener not defined for signal: "+e);try{this.#m.removeListener(e,t)}catch(e){}}),this.#m.emit=this.#g,this.#m.reallyExit=this.#f,this.#h.count-=1)}#w(e){return eF(this.#m)?(this.#m.exitCode=e||0,this.#h.emit("exit",this.#m.exitCode,null),this.#f.call(this.#m,this.#m.exitCode)):0}#v(e,...t){let n=this.#g;if(!("exit"===e&&eF(this.#m)))return n.call(this.#m,e,...t);{"number"==typeof t[0]&&(this.#m.exitCode=t[0]);let r=n.call(this.#m,e,...t);return this.#h.emit("exit",this.#m.exitCode,null),r}}}let eK=globalThis.process,{onExit:eY,load:eJ,unload:eX}=(n=eF(eK)?new ez(eK):new class extends eW{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>n.onExit(e,t),load:()=>n.load(),unload:()=>n.unload()}),eQ=e=>e,eZ=()=>void 0,e0=({contents:e})=>e,e1=e=>{throw Error(`Streams in object mode are not supported: ${String(e)}`)},e3=e=>e.length;async function e2(e,t){return ea(e,e5,t)}let e5={init:()=>({contents:[]}),convertChunk:{string:eQ,buffer:eQ,arrayBuffer:eQ,dataView:eQ,typedArray:eQ,others:eQ},getSize:()=>1,truncateChunk:eZ,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:eZ,finalize:e0};async function e9(e,t){return ea(e,tt,t)}let e4=new TextEncoder,e6=e=>new Uint8Array(e),e8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),e7=e=>te**Math.ceil(Math.log(e)/Math.log(te)),te=2,tt={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>e4.encode(e),buffer:e6,arrayBuffer:e6,dataView:e8,typedArray:e8,others:e1},getSize:e3,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:n},r)=>{let o="resize"in ArrayBuffer.prototype?((e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:e7(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n})(t,r):((e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(e7(t));return new Uint8Array(n).set(new Uint8Array(e),0),n})(t,r);return new Uint8Array(o).set(e,n),o},getFinalChunk:eZ,finalize:({contents:e,length:t})=>"resize"in ArrayBuffer.prototype?e:e.slice(0,t)};async function tn(e,t){return ea(e,to,t)}let tr=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),to={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:eQ,buffer:tr,arrayBuffer:tr,dataView:tr,typedArray:tr,others:e1},getSize:e3,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{let t=e.decode();return""===t?void 0:t},finalize:e0},ti=(e=0)=>t=>`\u001B[${t+e}m`,ts=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,tl=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,ta={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(ta.modifier),[...Object.keys(ta.color),...Object.keys(ta.bgColor)];let td=function(){let e=new Map;for(let[t,n]of Object.entries(ta)){for(let[t,r]of Object.entries(n))ta[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=ta[t],e.set(r[0],r[1]);Object.defineProperty(ta,t,{value:n,enumerable:!1})}return Object.defineProperty(ta,"codes",{value:e,enumerable:!1}),ta.color.close="\x1b[39m",ta.bgColor.close="\x1b[49m",ta.color.ansi=ti(),ta.color.ansi256=ts(),ta.color.ansi16m=tl(),ta.bgColor.ansi=ti(10),ta.bgColor.ansi256=ts(10),ta.bgColor.ansi16m=tl(10),Object.defineProperties(ta,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;3===n.length&&(n=[...n].map(e=>e+e).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},enumerable:!1},hexToAnsi256:{value:e=>ta.rgbToAnsi256(...ta.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){let t,n,r;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)n=t=((e-232)*10+8)/255,r=t;else{let o=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(o/6)/5,r=o%6/5}let o=2*Math.max(t,n,r);if(0===o)return 30;let i=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return 2===o&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>ta.ansi256ToAnsi(ta.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>ta.ansi256ToAnsi(ta.hexToAnsi256(e)),enumerable:!1}}),ta}();function tu(e,t=globalThis.Deno?globalThis.Deno.args:s.argv){let n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return -1!==r&&(-1===o||r<o)}let{env:tc}=s;function tp(t,n={}){var r;return 0!==(r=function(t,{streamIsTTY:n,sniffFlags:r=!0}={}){let o=function(){if("FORCE_COLOR"in tc)return"true"===tc.FORCE_COLOR?1:"false"===tc.FORCE_COLOR?0:0===tc.FORCE_COLOR.length?1:Math.min(Number.parseInt(tc.FORCE_COLOR,10),3)}();void 0!==o&&(e=o);let i=r?e:o;if(0===i)return 0;if(r){if(tu("color=16m")||tu("color=full")||tu("color=truecolor"))return 3;if(tu("color=256"))return 2}if("TF_BUILD"in tc&&"AGENT_NAME"in tc)return 1;if(t&&!n&&void 0===i)return 0;let l=i||0;if("dumb"===tc.TERM)return l;if("win32"===s.platform){let e=d.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in tc)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in tc)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in tc)||"codeship"===tc.CI_NAME?1:l;if("TEAMCITY_VERSION"in tc)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(tc.TEAMCITY_VERSION);if("truecolor"===tc.COLORTERM||"xterm-kitty"===tc.TERM||"xterm-ghostty"===tc.TERM||"wezterm"===tc.TERM)return 3;if("TERM_PROGRAM"in tc){let e=Number.parseInt((tc.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(tc.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(tc.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(tc.TERM)||"COLORTERM"in tc?1:l}(t,{streamIsTTY:t&&t.isTTY,...n}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}tu("no-color")||tu("no-colors")||tu("color=false")||tu("color=never")?e=0:(tu("color")||tu("colors")||tu("color=true")||tu("color=always"))&&(e=1);let{stdout:th,stderr:tm}={stdout:tp({isTTY:i.isatty(1)}),stderr:tp({isTTY:i.isatty(2)})},tg=Symbol("GENERATOR"),tf=Symbol("STYLER"),tb=Symbol("IS_EMPTY"),ty=["ansi","ansi","ansi256","ansi16m"],tv=Object.create(null);class tw{constructor(e){return tx(e)}}let tx=e=>{let t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=th?th.level:0;e.level=void 0===t.level?n:t.level})(t,e),Object.setPrototypeOf(t,tO.prototype),t};function tO(e){return tx(e)}for(let[e,t]of(Object.setPrototypeOf(tO.prototype,Function.prototype),Object.entries(td)))tv[e]={get(){let n=tj(this,tD(t.open,t.close,this[tf]),this[tb]);return Object.defineProperty(this,e,{value:n}),n}};tv.visible={get(){let e=tj(this,this[tf],!0);return Object.defineProperty(this,"visible",{value:e}),e}};let tS=(e,t,n,...r)=>"rgb"===e?"ansi16m"===t?td[n].ansi16m(...r):"ansi256"===t?td[n].ansi256(td.rgbToAnsi256(...r)):td[n].ansi(td.rgbToAnsi(...r)):"hex"===e?tS("rgb",t,n,...td.hexToRgb(...r)):td[n][e](...r);for(let e of["rgb","hex","ansi256"])tv[e]={get(){let{level:t}=this;return function(...n){return tj(this,tD(tS(e,ty[t],"color",...n),td.color.close,this[tf]),this[tb])}}},tv["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...n){return tj(this,tD(tS(e,ty[t],"bgColor",...n),td.bgColor.close,this[tf]),this[tb])}}};let t_=Object.defineProperties(()=>{},{...tv,level:{enumerable:!0,get(){return this[tg].level},set(e){this[tg].level=e}}}),tD=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},tj=(e,t,n)=>{let r=(...e)=>tT(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,t_),r[tg]=e,r[tf]=t,r[tb]=n,r},tT=(e,t)=>{if(e.level<=0||!t)return e[tb]?"":t;let n=e[tf];if(void 0===n)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1b"))for(;void 0!==n;)t=function(e,t,n){let r=e.indexOf(t);if(-1===r)return e;let o=t.length,i=0,s="";do s+=e.slice(i,r)+t+n,i=r+o,r=e.indexOf(t,i);while(-1!==r);return s+e.slice(i)}(t,n.close,n.open),n=n.parent;let i=t.indexOf("\n");return -1!==i&&(t=function(e,t,n,r){let o=0,i="";do{let s="\r"===e[r-1];i+=e.slice(o,s?r-1:r)+t+(s?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+e.slice(o)}(t,o,r,i)),r+t+o};Object.defineProperties(tO.prototype,tv);let tE=tx(void 0);tx({level:tm?tm.level:0});let tR=tE;export{tw as Chalk,em as MaxBufferError,m as TeaUploader,S as bold,e2 as getStreamAsArray,e9 as getStreamAsArrayBuffer,tn as getStreamAsString,_ as gray,J as isDuplexStream,g as isPlainObject,Y as isReadableStream,z as isStream,K as isWritableStream,ew as mergeStreams,w as node_modules_figures,C as npmRunPathEnv,eY as onExit,eb as prettyMilliseconds,D as redBright,M as signalsByName,tR as source,G as stripFinalNewline,j as yellowBright};
|
package/dist/4931.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e;import"node:module";import{__webpack_require__ as t}from"./rslib-runtime.js";import{onExit as i,external_node_process_namespaceObject as l,external_node_readline_namespaceObject as n}from"./1664.js";import"./180.js";t.add({"../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js"(e,t,i){e.exports=function(e){let t,l=(t={defaultWidth:0,output:process.stdout,tty:i("tty")},e?(Object.keys(t).forEach(function(i){e[i]||(e[i]=t[i])}),e):t);if(l.output.getWindowSize)return l.output.getWindowSize()[0]||l.defaultWidth;if(l.tty.getWindowSize)return l.tty.getWindowSize()[1]||l.defaultWidth;if(l.output.columns)return l.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return l.defaultWidth}},"../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"(e,t,i){let l=i("stream");e.exports=class extends l{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#i(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#i("destroy",...e)}destroySoon(...e){return this.#i("destroySoon",...e)}close(...e){return this.#i("close",...e)}}}});let o={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},r={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},s={...o,...r},a={...o,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},u=(l.platform.startsWith("win")?!l.env.CI&&!l.env.WT_SESSION&&!l.env.TERMINUS_SUBLIME&&"{cmd::Cmder}"!==l.env.ConEmuTask&&"Terminus-Sublime"!==l.env.TERM_PROGRAM&&"vscode"!==l.env.TERM_PROGRAM&&"xterm-256color"!==l.env.TERM&&"alacritty"!==l.env.TERM&&"JetBrains-JediTerm"!==l.env.TERMINAL_EMULATOR:"linux"===l.env.TERM)?a:s;Object.entries(r);let h=t("node:util");class d{separator=(0,h.styleText)("dim",Array.from({length:15}).join(u.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}let c=(e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t=>{let i=0;for(e.lastIndex=0;e.test(t);)i+=1;return t.length-i}),p=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,f=e=>8987===e||9001===e||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,g=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,m=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,D=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,w=/\t{1,1000}/y,b=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,B=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,R=/\p{M}+/gu,L={limit:1/0,ellipsis:""},x=(e,t={},i={})=>{let l=t.limit??1/0,n=t.ellipsis??"",o=t?.ellipsisWidth??(n?x(n,L,i).width:0),r=i.controlWidth??0,s=i.tabWidth??8,a=i.emojiWidth??2,u=i.regularWidth??1,h=i.wideWidth??2,d=[[B,u],[g,0],[m,r],[w,s],[b,a],[D,h]],y=0,U=0,E=e.length,S=0,_=!1,T=E,v=Math.max(0,l-o),k=0,C=0,F=0,P=0;e:for(;;){if(C>k||U>=E&&U>y){for(let t of(S=0,(e.slice(k,C)||e.slice(y,U)).replaceAll(R,""))){let e=t.codePointAt(0)||0;if(F+(P=p(e)?2:f(e)?h:u)>v&&(T=Math.min(T,Math.max(k,y)+S)),F+P>l){_=!0;break e}S+=t.length,F+=P}k=C=0}if(U>=E)break;for(let t=0,i=d.length;t<i;t++){let[i,n]=d[t];if(i.lastIndex=U,i.test(e)){if(F+(P=(S=i===D?c(e.slice(U,i.lastIndex)):i===b?1:i.lastIndex-U)*n)>v&&(T=Math.min(T,U+Math.floor((v-F)/n))),F+P>l){_=!0;break e}F+=P,k=y,C=U,U=y=i.lastIndex;continue e}}U+=1}return{width:_?v:F,index:_?T:E,truncated:_,ellipsed:_&&l>=o}},y={limit:1/0,ellipsis:"",ellipsisWidth:0},U=(e,t={})=>x(e,y,t).width,E="]8;;",S=RegExp(`(?:\\[(?<code>\\d+)m|\\${E}(?<uri>.*)\u0007)`,"y"),_=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,T=e=>`\x1b[${e}m`,v=e=>`\x1b${E}${e}\u0007`,k=(e,t,i)=>{let l=t[Symbol.iterator](),n=!1,o=!1,r=e.at(-1),s=void 0===r?0:U(r),a=l.next(),u=l.next(),h=0;for(;!a.done;){let r=a.value,d=U(r);s+d<=i?e[e.length-1]+=r:(e.push(r),s=0),("\x1b"===r||"\x9b"===r)&&(n=!0,o=t.startsWith(E,h+1)),n?o?"\x07"===r&&(n=!1,o=!1):"m"===r&&(n=!1):(s+=d)!==i||u.done||(e.push(""),s=0),a=u,u=l.next(),h+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length&&e.length>1&&(e[e.length-2]+=e.pop())},C=/\r?\n/;class F extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class P extends Error{name="CancelPromptError";message="Prompt was canceled"}class M extends Error{name="ExitPromptError"}class O extends Error{name="HookError"}class A extends Error{name="ValidationError"}let j=t("node:async_hooks"),I=new j.AsyncLocalStorage;function W(){let e=I.getStore();if(!e)throw new O("[Inquirer] Hook functions can only be called from within a prompt");return e}function N(e){return j.AsyncResource.bind((...t)=>{let i=W(),l=!1,n=i.handleChange;i.handleChange=()=>{l=!0};let o=e(...t);return l&&n(),i.handleChange=n,o})}function q(e){let t=W(),{index:i}=t,l=e({get:()=>t.hooks[i],set(e){t.hooks[i]=e},initialized:i in t.hooks});return t.index++,l}let V={queue(e){let t=W(),{index:i}=t;t.hooksEffect.push(()=>{t.hooksCleanup[i]?.();let l=e(W().rl);if(null!=l&&"function"!=typeof l)throw new A("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[i]=l})},run(){let e=W();N(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=W();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}},K=t("../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js");function $(e,t){return e.split("\n").flatMap(e=>{var i;return(i={trim:!1,wordWrap:!1},String(e).normalize().split(C).map(e=>((e,t,i={})=>{let l,n;if(!1!==i.trim&&""===e.trim())return"";let o="",r=e.split(" "),s=[""],a=0;for(let e=0;e<r.length;e++){let l=r[e];if(!1!==i.trim){let e=s.at(-1)??"",t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,a=U(t))}0!==e&&(a>=t&&(!1===i.wordWrap||!1===i.trim)&&(s.push(""),a=0),(a||!1===i.trim)&&(s[s.length-1]+=" ",a++));let n=U(l);if(i.hard&&n>t){let e=1+Math.floor((n-(t-a)-1)/t);Math.floor((n-1)/t)<e&&s.push(""),k(s,l,t),a=U(s.at(-1)??"");continue}if(a+n>t&&a&&n){if(!1===i.wordWrap&&a<t){k(s,l,t),a=U(s.at(-1)??"");continue}s.push(""),a=0}if(a+n>t&&!1===i.wordWrap){k(s,l,t),a=U(s.at(-1)??"");continue}s[s.length-1]+=l,a+=n}!1!==i.trim&&(s=s.map(e=>(e=>{let t=e.split(" "),i=t.length;for(;i&&!U(t[i-1]);)i--;return i===t.length?e:t.slice(0,i).join(" ")+t.slice(i).join("")})(e)));let u=s.join("\n"),h=!1;for(let e=0;e<u.length;e++){let t=u[e];if(o+=t,h)h=!1;else if(h=t>="\uD800"&&t<="\uDBFF")continue;if("\x1b"===t||"\x9b"===t){S.lastIndex=e+1;let t=S.exec(u),i=t?.groups;if(i?.code!==void 0){let e=Number.parseFloat(i.code);l=39===e?void 0:e}else i?.uri!==void 0&&(n=0===i.uri.length?void 0:i.uri)}if("\n"===u[e+1]){n&&(o+=v(""));let e=l?_(l):void 0;l&&e&&(o+=T(e))}else"\n"===t&&(l&&_(l)&&(o+=T(l)),n&&(o+=v(n)))}return o})(e,t,i)).join("\n")).split("\n").map(e=>e.trimEnd())}).join("\n")}function H(){return K({defaultWidth:80,output:W().rl.output})}let z=(e=1)=>e>0?`\u001B[${e}A`:"",G=(e=1)=>e>0?`\u001B[${e}B`:"",Y=(e,t)=>"number"!=typeof t||Number.isNaN(t)?`\u001B[${e+1}G`:`\u001B[${t+1};${e+1}H`,Q="\x1b[2K",J=e=>e>0?(Q+z(1)).repeat(e-1)+Q+"\x1b[G":"";class Z{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){let i=e.split("\n").pop()??"",l=(0,h.stripVTControlCharacters)(i),n=l;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();let o=H();e=$(e,o),t=$(t,o),l.length%o==0&&(e+="\n");let r=e+(t?"\n"+t:""),s=Math.floor(l.length/o)-this.cursorPos.rows+(t?t.split("\n").length:0);s>0&&(r+=z(s)),r+=Y(this.cursorPos.cols),this.write(G(this.extraLinesUnderPrompt)+J(this.height)+r),this.extraLinesUnderPrompt=s,this.height=r.split("\n").length}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(Y(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=G(this.extraLinesUnderPrompt);t+=e?J(this.height):"\n",t+="\x1b[G",t+="\x1b[?25h",this.write(t),this.rl.close()}}class X extends Promise{static withResolver(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}}let ee=t("../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"),et=t("node:path"),ei=globalThis.setImmediate;function el(e){let t=function(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,i)=>{let l=i.slice(1);return t=l,l},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}();return(l,o={})=>{let{input:r=process.stdin,signal:s}=o,a=new Set,u=new ee;u.pipe(o.output??process.stdout);let h=n.createInterface({terminal:!0,input:r,output:u});u.mute();let d=new Z(h),{promise:c,resolve:p,reject:f}=X.withResolver(),g=()=>f(new P);if(s){let e=()=>f(new F({cause:s.reason}));if(s.aborted)return e(),Object.assign(c,{cancel:g});s.addEventListener("abort",e),a.add(()=>s.removeEventListener("abort",e))}a.add(i((e,t)=>{f(new M(`User force closed the prompt with ${e} ${t}`))}));let m=()=>f(new M("User force closed the prompt with SIGINT"));h.on("SIGINT",m),a.add(()=>h.removeListener("SIGINT",m));let D={rl:h,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return I.run(D,()=>{var i;let n,s;return i=function(e){D.handleChange=()=>{D.index=0,e()},D.handleChange()},n=j.AsyncResource.bind(()=>V.clearAll()),h.on("close",n),a.add(()=>h.removeListener("close",n)),s=()=>{let n=()=>d.checkCursorPos();h.input.on("keypress",n),a.add(()=>h.input.removeListener("keypress",n));let o=null;i(()=>{let i=!1;try{let n=e(l,e=>{i?p(e):o={value:e}});if(void 0===n){let e=t[1]?.getFileName();throw e&&!e.startsWith("file://")&&(e=et.resolve(e)),Error(`Prompt functions must return a string.
|
|
2
|
-
at ${e}`)}let[r,s]="string"==typeof n?[n]:n;d.render(r,s),V.run()}catch(e){f(e)}if(i=!0,null!==o){let{value:e}=o;o=null,p(e)}})},"readableFlowing"in r?ei(s):s(),Object.assign(c.then(e=>(V.clearAll(),e),e=>{throw V.clearAll(),e}).finally(()=>{a.forEach(e=>e()),d.done({clearContent:!!o.clearPromptOnDone}),u.end()}).then(()=>c),{cancel:g})})}}let en=new Set(["emacs","vim"]);function eo(e){return en.has(e)}let er=(e,t=[])=>"up"===e.name||t.includes("vim")&&"k"===e.name||t.includes("emacs")&&e.ctrl&&"p"===e.name,es=(e,t=[])=>"down"===e.name||t.includes("vim")&&"j"===e.name||t.includes("emacs")&&e.ctrl&&"n"===e.name,ea=e=>"space"===e.name,eu=e=>"backspace"===e.name,eh=e=>"tab"===e.name,ed=e=>"1234567890".includes(e.name),ec=e=>"enter"===e.name||"return"===e.name,ep={prefix:{idle:(0,h.styleText)("blue","?"),done:(0,h.styleText)("green",u.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>(0,h.styleText)("yellow",e))},keybindings:[],style:{answer:e=>(0,h.styleText)("cyan",e),message:e=>(0,h.styleText)("bold",e),error:e=>(0,h.styleText)("red",`> ${e}`),defaultAnswer:e=>(0,h.styleText)("dim",`(${e})`),help:e=>(0,h.styleText)("dim",e),highlight:e=>(0,h.styleText)("cyan",e),key:e=>(0,h.styleText)("cyan",(0,h.styleText)("bold",`<${e}>`))}};function ef(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function eg(...e){let t;return function e(...t){let i={};for(let l of t)for(let[t,n]of Object.entries(l)){let l=i[t];i[t]=ef(l)&&ef(n)?e(l,n):n}return i}({...ep,keybindings:(t=process.env.INQUIRER_KEYBINDINGS)?Array.from(new Set(t.toLowerCase().split(/[\s,]+/).filter(eo))):[]},...e.filter(e=>null!=e))}function em(e){return q(t=>{let i=j.AsyncResource.bind(function(e){t.get()!==e&&(t.set(e),W().handleChange())});if(t.initialized)return[t.get(),i];let l="function"==typeof e?e():e;return t.set(l),[l,i]})}function eD(e,t){q(i=>{let l=i.get();(!Array.isArray(l)||t.some((e,t)=>!Object.is(e,l[t])))&&V.queue(e),i.set(t)})}function ew({status:e="idle",theme:t}){let[i,l]=em(!1),[n,o]=em(0),{prefix:r,spinner:s}=eg(t);if(eD(()=>{if("loading"===e){let e,t=-1,i=setTimeout(()=>{l(!0),e=setInterval(()=>{o((t+=1)%s.frames.length)},s.interval)},300);return()=>{clearTimeout(i),clearInterval(e)}}l(!1)},[e]),i)return s.frames[n];let a="loading"===e?"idle":e;return"string"==typeof r?r:r[a]??r.idle}function eb(e){return em({current:e})[0]}function eB(e,t){return q(i=>{let l=i.get();if(!l||l.dependencies.length!==t.length||l.dependencies.some((e,i)=>e!==t[i])){let l=e();return i.set({value:l,dependencies:t}),l}return l.value})}function eR(e){let t=eb(e);t.current=e,eD(e=>{let i=!1,l=N((l,n)=>{i||t.current(n,e)});return e.input.on("keypress",l),()=>{i=!0,e.input.removeListener("keypress",l)}},[])}function eL({items:e,active:t,renderItem:i,pageSize:l,loop:n=!0}){let o=H(),r=t=>(t%e.length+e.length)%e.length,s=e.map((e,l)=>null==e?[]:$(i({item:e,index:l,isActive:l===t}),o).split("\n")),a=s.reduce((e,t)=>e+t.length,0),u=e=>s[e]??[],h=function({active:e,renderedItems:t,pageSize:i,loop:l}){let n=eb({lastPointer:e,lastActive:void 0}),{lastPointer:o,lastActive:r}=n.current,s=Math.floor(i/2),a=t.reduce((e,t)=>e+t.length,0),u=t.slice(0,e).reduce((e,t)=>e+t.length,0),h=u;if(a>i)if(l)h=o,null!=r&&r<e&&e-r<i&&(h=Math.min(s,1===Math.abs(e-r)?Math.min(o+(t[r]?.length??0),Math.max(u,o)):o+e-r));else{let l=t.slice(e).reduce((e,t)=>e+t.length,0);h=l<i-s?i-l:Math.min(u,s)}return n.current.lastPointer=h,n.current.lastActive=e,h}({active:t,renderedItems:s,pageSize:l,loop:n}),d=u(t).slice(0,l),c=h+d.length<=l?h:l-d.length,p=Array.from({length:l});p.splice(c,d.length,...d);let f=new Set([t]),g=c+d.length,m=r(t+1);for(;g<l&&!f.has(m)&&(n&&a>l?m!==t:m>t);){let e=u(m).slice(0,l-g);p.splice(g,e.length,...e),f.add(m),g+=e.length,m=r(m+1)}for(g=c-1,m=r(t-1);g>=0&&!f.has(m)&&(n&&a>l?m!==t:m<t);){let e=u(m),t=e.slice(Math.max(0,e.length-g-1));p.splice(g-t.length+1,t.length,...t),f.add(m),g-=t.length,m=r(m-1)}return p.filter(e=>"string"==typeof e).join("\n")}export{F as AbortPromptError,d as Separator,A as ValidationError,el as createPrompt,u as dist,eu as isBackspaceKey,es as isDownKey,ec as isEnterKey,ed as isNumberKey,ea as isSpaceKey,eh as isTabKey,er as isUpKey,eg as makeTheme,eD as useEffect,eR as useKeypress,eB as useMemo,eL as usePagination,ew as usePrefix,eb as useRef,em as useState};
|
|
1
|
+
let e;import"node:module";import{__webpack_require__ as t}from"./rslib-runtime.js";import{external_node_readline_namespaceObject as i,external_node_process_namespaceObject as l}from"./3768.js";import{onExit as n}from"./4594.js";import"./180.js";t.add({"../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js"(e,t,i){e.exports=function(e){let t,l=(t={defaultWidth:0,output:process.stdout,tty:i("tty")},e?(Object.keys(t).forEach(function(i){e[i]||(e[i]=t[i])}),e):t);if(l.output.getWindowSize)return l.output.getWindowSize()[0]||l.defaultWidth;if(l.tty.getWindowSize)return l.tty.getWindowSize()[1]||l.defaultWidth;if(l.output.columns)return l.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return l.defaultWidth}},"../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"(e,t,i){let l=i("stream");e.exports=class extends l{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#i(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#i("destroy",...e)}destroySoon(...e){return this.#i("destroySoon",...e)}close(...e){return this.#i("close",...e)}}}});let o=(e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t=>{let i=0;for(e.lastIndex=0;e.test(t);)i+=1;return t.length-i}),r=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,s=e=>8987===e||9001===e||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,a=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,u=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,h=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,d=/\t{1,1000}/y,c=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,p=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,f=/\p{M}+/gu,g={limit:1/0,ellipsis:""},m=(e,t={},i={})=>{let l=t.limit??1/0,n=t.ellipsis??"",D=t?.ellipsisWidth??(n?m(n,g,i).width:0),w=i.controlWidth??0,b=i.tabWidth??8,B=i.emojiWidth??2,R=i.regularWidth??1,L=i.wideWidth??2,x=[[p,R],[a,0],[u,w],[d,b],[c,B],[h,L]],y=0,U=0,E=e.length,_=0,S=!1,T=E,v=Math.max(0,l-D),k=0,C=0,F=0,P=0;e:for(;;){if(C>k||U>=E&&U>y){for(let t of(_=0,(e.slice(k,C)||e.slice(y,U)).replaceAll(f,""))){let e=t.codePointAt(0)||0;if(F+(P=r(e)?2:s(e)?L:R)>v&&(T=Math.min(T,Math.max(k,y)+_)),F+P>l){S=!0;break e}_+=t.length,F+=P}k=C=0}if(U>=E)break;for(let t=0,i=x.length;t<i;t++){let[i,n]=x[t];if(i.lastIndex=U,i.test(e)){if(F+(P=(_=i===h?o(e.slice(U,i.lastIndex)):i===c?1:i.lastIndex-U)*n)>v&&(T=Math.min(T,U+Math.floor((v-F)/n))),F+P>l){S=!0;break e}F+=P,k=y,C=U,U=y=i.lastIndex;continue e}}U+=1}return{width:S?v:F,index:S?T:E,truncated:S,ellipsed:S&&l>=D}},D={limit:1/0,ellipsis:"",ellipsisWidth:0},w=(e,t={})=>m(e,D,t).width,b="]8;;",B=RegExp(`(?:\\[(?<code>\\d+)m|\\${b}(?<uri>.*)\u0007)`,"y"),R=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,L=e=>`\x1b[${e}m`,x=e=>`\x1b${b}${e}\u0007`,y=(e,t,i)=>{let l=t[Symbol.iterator](),n=!1,o=!1,r=e.at(-1),s=void 0===r?0:w(r),a=l.next(),u=l.next(),h=0;for(;!a.done;){let r=a.value,d=w(r);s+d<=i?e[e.length-1]+=r:(e.push(r),s=0),("\x1b"===r||"\x9b"===r)&&(n=!0,o=t.startsWith(b,h+1)),n?o?"\x07"===r&&(n=!1,o=!1):"m"===r&&(n=!1):(s+=d)!==i||u.done||(e.push(""),s=0),a=u,u=l.next(),h+=r.length}r=e.at(-1),!s&&void 0!==r&&r.length&&e.length>1&&(e[e.length-2]+=e.pop())},U=/\r?\n/;class E extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class _ extends Error{name="CancelPromptError";message="Prompt was canceled"}class S extends Error{name="ExitPromptError"}class T extends Error{name="HookError"}class v extends Error{name="ValidationError"}let k=t("node:async_hooks"),C=new k.AsyncLocalStorage;function F(){let e=C.getStore();if(!e)throw new T("[Inquirer] Hook functions can only be called from within a prompt");return e}function P(e){return k.AsyncResource.bind((...t)=>{let i=F(),l=!1,n=i.handleChange;i.handleChange=()=>{l=!0};let o=e(...t);return l&&n(),i.handleChange=n,o})}function M(e){let t=F(),{index:i}=t,l=e({get:()=>t.hooks[i],set(e){t.hooks[i]=e},initialized:i in t.hooks});return t.index++,l}let A={queue(e){let t=F(),{index:i}=t;t.hooksEffect.push(()=>{t.hooksCleanup[i]?.();let l=e(F().rl);if(null!=l&&"function"!=typeof l)throw new v("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[i]=l})},run(){let e=F();P(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=F();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}},O=t("../../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js");function j(e,t){return e.split("\n").flatMap(e=>{var i;return(i={trim:!1,wordWrap:!1},String(e).normalize().split(U).map(e=>((e,t,i={})=>{let l,n;if(!1!==i.trim&&""===e.trim())return"";let o="",r=e.split(" "),s=[""],a=0;for(let e=0;e<r.length;e++){let l=r[e];if(!1!==i.trim){let e=s.at(-1)??"",t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,a=w(t))}0!==e&&(a>=t&&(!1===i.wordWrap||!1===i.trim)&&(s.push(""),a=0),(a||!1===i.trim)&&(s[s.length-1]+=" ",a++));let n=w(l);if(i.hard&&n>t){let e=1+Math.floor((n-(t-a)-1)/t);Math.floor((n-1)/t)<e&&s.push(""),y(s,l,t),a=w(s.at(-1)??"");continue}if(a+n>t&&a&&n){if(!1===i.wordWrap&&a<t){y(s,l,t),a=w(s.at(-1)??"");continue}s.push(""),a=0}if(a+n>t&&!1===i.wordWrap){y(s,l,t),a=w(s.at(-1)??"");continue}s[s.length-1]+=l,a+=n}!1!==i.trim&&(s=s.map(e=>(e=>{let t=e.split(" "),i=t.length;for(;i&&!w(t[i-1]);)i--;return i===t.length?e:t.slice(0,i).join(" ")+t.slice(i).join("")})(e)));let u=s.join("\n"),h=!1;for(let e=0;e<u.length;e++){let t=u[e];if(o+=t,h)h=!1;else if(h=t>="\uD800"&&t<="\uDBFF")continue;if("\x1b"===t||"\x9b"===t){B.lastIndex=e+1;let t=B.exec(u),i=t?.groups;if(i?.code!==void 0){let e=Number.parseFloat(i.code);l=39===e?void 0:e}else i?.uri!==void 0&&(n=0===i.uri.length?void 0:i.uri)}if("\n"===u[e+1]){n&&(o+=x(""));let e=l?R(l):void 0;l&&e&&(o+=L(e))}else"\n"===t&&(l&&R(l)&&(o+=L(l)),n&&(o+=x(n)))}return o})(e,t,i)).join("\n")).split("\n").map(e=>e.trimEnd())}).join("\n")}function I(){return O({defaultWidth:80,output:F().rl.output})}let N=(e=1)=>e>0?`\u001B[${e}A`:"",W=(e=1)=>e>0?`\u001B[${e}B`:"",q=(e,t)=>"number"!=typeof t||Number.isNaN(t)?`\u001B[${e+1}G`:`\u001B[${t+1};${e+1}H`,K="\x1b[2K",V=e=>e>0?(K+N(1)).repeat(e-1)+K+"\x1b[G":"",$=t("node:util");class H{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){let i=e.split("\n").pop()??"",l=(0,$.stripVTControlCharacters)(i),n=l;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();let o=I();e=j(e,o),t=j(t,o),l.length%o==0&&(e+="\n");let r=e+(t?"\n"+t:""),s=Math.floor(l.length/o)-this.cursorPos.rows+(t?t.split("\n").length:0);s>0&&(r+=N(s)),r+=q(this.cursorPos.cols),this.write(W(this.extraLinesUnderPrompt)+V(this.height)+r),this.extraLinesUnderPrompt=s,this.height=r.split("\n").length}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(q(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=W(this.extraLinesUnderPrompt);t+=e?V(this.height):"\n",t+="\x1b[G",t+="\x1b[?25h",this.write(t),this.rl.close()}}class z extends Promise{static withResolver(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}}let G=t("../../../node_modules/.pnpm/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js"),Y=t("node:path"),Q=globalThis.setImmediate;function J(e){let t=function(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,i)=>{let l=i.slice(1);return t=l,l},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}();return(l,o={})=>{let{input:r=process.stdin,signal:s}=o,a=new Set,u=new G;u.pipe(o.output??process.stdout);let h=i.createInterface({terminal:!0,input:r,output:u});u.mute();let d=new H(h),{promise:c,resolve:p,reject:f}=z.withResolver(),g=()=>f(new _);if(s){let e=()=>f(new E({cause:s.reason}));if(s.aborted)return e(),Object.assign(c,{cancel:g});s.addEventListener("abort",e),a.add(()=>s.removeEventListener("abort",e))}a.add(n((e,t)=>{f(new S(`User force closed the prompt with ${e} ${t}`))}));let m=()=>f(new S("User force closed the prompt with SIGINT"));h.on("SIGINT",m),a.add(()=>h.removeListener("SIGINT",m));let D={rl:h,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return C.run(D,()=>{var i;let n,s;return i=function(e){D.handleChange=()=>{D.index=0,e()},D.handleChange()},n=k.AsyncResource.bind(()=>A.clearAll()),h.on("close",n),a.add(()=>h.removeListener("close",n)),s=()=>{let n=()=>d.checkCursorPos();h.input.on("keypress",n),a.add(()=>h.input.removeListener("keypress",n));let o=null;i(()=>{let i=!1;try{let n=e(l,e=>{i?p(e):o={value:e}});if(void 0===n){let e=t[1]?.getFileName();throw e&&!e.startsWith("file://")&&(e=Y.resolve(e)),Error(`Prompt functions must return a string.
|
|
2
|
+
at ${e}`)}let[r,s]="string"==typeof n?[n]:n;d.render(r,s),A.run()}catch(e){f(e)}if(i=!0,null!==o){let{value:e}=o;o=null,p(e)}})},"readableFlowing"in r?Q(s):s(),Object.assign(c.then(e=>(A.clearAll(),e),e=>{throw A.clearAll(),e}).finally(()=>{a.forEach(e=>e()),d.done({clearContent:!!o.clearPromptOnDone}),u.end()}).then(()=>c),{cancel:g})})}}let Z={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},X={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},ee={...Z,...X},et={...Z,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},ei=(l.platform.startsWith("win")?!l.env.CI&&!l.env.WT_SESSION&&!l.env.TERMINUS_SUBLIME&&"{cmd::Cmder}"!==l.env.ConEmuTask&&"Terminus-Sublime"!==l.env.TERM_PROGRAM&&"vscode"!==l.env.TERM_PROGRAM&&"xterm-256color"!==l.env.TERM&&"alacritty"!==l.env.TERM&&"JetBrains-JediTerm"!==l.env.TERMINAL_EMULATOR:"linux"===l.env.TERM)?et:ee;Object.entries(X);let el=new Set(["emacs","vim"]);function en(e){return el.has(e)}let eo=(e,t=[])=>"up"===e.name||t.includes("vim")&&"k"===e.name||t.includes("emacs")&&e.ctrl&&"p"===e.name,er=(e,t=[])=>"down"===e.name||t.includes("vim")&&"j"===e.name||t.includes("emacs")&&e.ctrl&&"n"===e.name,es=e=>"space"===e.name,ea=e=>"backspace"===e.name,eu=e=>"tab"===e.name,eh=e=>"1234567890".includes(e.name),ed=e=>"enter"===e.name||"return"===e.name,ec={prefix:{idle:(0,$.styleText)("blue","?"),done:(0,$.styleText)("green",ei.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>(0,$.styleText)("yellow",e))},keybindings:[],style:{answer:e=>(0,$.styleText)("cyan",e),message:e=>(0,$.styleText)("bold",e),error:e=>(0,$.styleText)("red",`> ${e}`),defaultAnswer:e=>(0,$.styleText)("dim",`(${e})`),help:e=>(0,$.styleText)("dim",e),highlight:e=>(0,$.styleText)("cyan",e),key:e=>(0,$.styleText)("cyan",(0,$.styleText)("bold",`<${e}>`))}};function ep(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ef(...e){let t;return function e(...t){let i={};for(let l of t)for(let[t,n]of Object.entries(l)){let l=i[t];i[t]=ep(l)&&ep(n)?e(l,n):n}return i}({...ec,keybindings:(t=process.env.INQUIRER_KEYBINDINGS)?Array.from(new Set(t.toLowerCase().split(/[\s,]+/).filter(en))):[]},...e.filter(e=>null!=e))}function eg(e){return M(t=>{let i=k.AsyncResource.bind(function(e){t.get()!==e&&(t.set(e),F().handleChange())});if(t.initialized)return[t.get(),i];let l="function"==typeof e?e():e;return t.set(l),[l,i]})}function em(e,t){M(i=>{let l=i.get();(!Array.isArray(l)||t.some((e,t)=>!Object.is(e,l[t])))&&A.queue(e),i.set(t)})}function eD({status:e="idle",theme:t}){let[i,l]=eg(!1),[n,o]=eg(0),{prefix:r,spinner:s}=ef(t);if(em(()=>{if("loading"===e){let e,t=-1,i=setTimeout(()=>{l(!0),e=setInterval(()=>{o((t+=1)%s.frames.length)},s.interval)},300);return()=>{clearTimeout(i),clearInterval(e)}}l(!1)},[e]),i)return s.frames[n];let a="loading"===e?"idle":e;return"string"==typeof r?r:r[a]??r.idle}function ew(e){return eg({current:e})[0]}function eb(e){let t=ew(e);t.current=e,em(e=>{let i=!1,l=P((l,n)=>{i||t.current(n,e)});return e.input.on("keypress",l),()=>{i=!0,e.input.removeListener("keypress",l)}},[])}class eB{separator=(0,$.styleText)("dim",Array.from({length:15}).join(ei.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}function eR(e,t){return M(i=>{let l=i.get();if(!l||l.dependencies.length!==t.length||l.dependencies.some((e,i)=>e!==t[i])){let l=e();return i.set({value:l,dependencies:t}),l}return l.value})}function eL({items:e,active:t,renderItem:i,pageSize:l,loop:n=!0}){let o=I(),r=t=>(t%e.length+e.length)%e.length,s=e.map((e,l)=>null==e?[]:j(i({item:e,index:l,isActive:l===t}),o).split("\n")),a=s.reduce((e,t)=>e+t.length,0),u=e=>s[e]??[],h=function({active:e,renderedItems:t,pageSize:i,loop:l}){let n=ew({lastPointer:e,lastActive:void 0}),{lastPointer:o,lastActive:r}=n.current,s=Math.floor(i/2),a=t.reduce((e,t)=>e+t.length,0),u=t.slice(0,e).reduce((e,t)=>e+t.length,0),h=u;if(a>i)if(l)h=o,null!=r&&r<e&&e-r<i&&(h=Math.min(s,1===Math.abs(e-r)?Math.min(o+(t[r]?.length??0),Math.max(u,o)):o+e-r));else{let l=t.slice(e).reduce((e,t)=>e+t.length,0);h=l<i-s?i-l:Math.min(u,s)}return n.current.lastPointer=h,n.current.lastActive=e,h}({active:t,renderedItems:s,pageSize:l,loop:n}),d=u(t).slice(0,l),c=h+d.length<=l?h:l-d.length,p=Array.from({length:l});p.splice(c,d.length,...d);let f=new Set([t]),g=c+d.length,m=r(t+1);for(;g<l&&!f.has(m)&&(n&&a>l?m!==t:m>t);){let e=u(m).slice(0,l-g);p.splice(g,e.length,...e),f.add(m),g+=e.length,m=r(m+1)}for(g=c-1,m=r(t-1);g>=0&&!f.has(m)&&(n&&a>l?m!==t:m<t);){let e=u(m),t=e.slice(Math.max(0,e.length-g-1));p.splice(g-t.length+1,t.length,...t),f.add(m),g-=t.length,m=r(m-1)}return p.filter(e=>"string"==typeof e).join("\n")}export{E as AbortPromptError,eB as Separator,v as ValidationError,J as createPrompt,ei as figures_dist,ea as isBackspaceKey,er as isDownKey,ed as isEnterKey,eh as isNumberKey,es as isSpaceKey,eu as isTabKey,eo as isUpKey,ef as makeTheme,em as useEffect,eb as useKeypress,eR as useMemo,eL as usePagination,eD as usePrefix,ew as useRef,eg as useState};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! LICENSE:
|
|
1
|
+
/*! LICENSE: 6831.js.LICENSE.txt */
|
|
2
2
|
import"node:module";import{__webpack_require__ as e}from"./rslib-runtime.js";e.add({"../../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react.development.js"(e,t,r){e=r.nmd(e),"production"!==process.env.NODE_ENV&&function(){function r(e,t){var r=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+t;z[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),z[r]=!0)}function n(e,t,r){this.props=e,this.context=t,this.refs=B,this.updater=r||F}function o(){}function a(e,t,r){this.props=e,this.context=t,this.refs=B,this.updater=r||F}function u(){}function s(e){try{var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),""+e}}function i(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===W?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case I:return"Profiler";case A:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList";case q:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case $:return"Portal";case H:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:i(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return i(e(t))}catch(e){}}return null}function c(e){if(e===x)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===U)return"<...>";try{var t=i(e);return t?"<"+t+">":"<...>"}catch(e){return"<...>"}}function l(){var e=Q.A;return null===e?null:e.getOwner()}function f(){return Error("react-stack-top-frame")}function p(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function d(){var e=i(this.type);return Z[e]||(Z[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function y(e,t,r,n,o,a){var u=r.ref;return e={$$typeof:T,type:e,key:t,props:r,_owner:n},null!==(void 0!==u?u:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:d}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function h(e){m(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===U&&("fulfilled"===e._payload.status?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return"object"==typeof e&&null!==e&&e.$$typeof===T}function _(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(s(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function b(e,t,r){if(null==e)return e;var n=[],o=0;return!function e(t,r,n,o,a){var i,c=typeof t;("undefined"===c||"boolean"===c)&&(t=null);var l=!1;if(null===t)l=!0;else switch(c){case"bigint":case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case T:case $:l=!0;break;case U:return e((l=t._init)(t._payload),r,n,o,a)}}if(l){a=a(l=t);var f,p,d=""===o?"."+_(l,0):o;return K(a)?(n="",null!=d&&(n=d.replace(en,"$&/")+"/"),e(a,r,n,"",function(e){return e})):null!=a&&(m(a)&&(null!=a.key&&(l&&l.key===a.key||s(a.key)),f=a,p=n+(null==a.key||l&&l.key===a.key?"":(""+a.key).replace(en,"$&/")+"/")+d,p=y(f.type,p,f.props,f._owner,f._debugStack,f._debugTask),f._store&&(p._store.validated=f._store.validated),n=p,""!==o&&null!=l&&m(l)&&null==l.key&&l._store&&!l._store.validated&&(n._store.validated=2),a=n),r.push(a)),1}if(l=0,d=""===o?".":o+":",K(t))for(var h=0;h<t.length;h++)c=d+_(o=t[h],h),l+=e(o,r,n,c,a);else if("function"==typeof(h=null===(i=t)||"object"!=typeof i?null:"function"==typeof(i=V&&i[V]||i["@@iterator"])?i:null))for(h===t.entries&&(er||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),er=!0),t=h.call(t),h=0;!(o=t.next()).done;)c=d+_(o=o.value,h++),l+=e(o,r,n,c,a);else if("object"===c){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(u,u):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,o,a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return l}(e,n,"","",function(e){return t.call(r,e,o++)}),n}function v(e){if(-1===e._status){var t=e._ioInfo;null!=t&&(t.start=t.end=performance.now());var r=(t=e._result)();if(r.then(function(t){if(0===e._status||-1===e._status){e._status=1,e._result=t;var n=e._ioInfo;null!=n&&(n.end=performance.now()),void 0===r.status&&(r.status="fulfilled",r.value=t)}},function(t){if(0===e._status||-1===e._status){e._status=2,e._result=t;var n=e._ioInfo;null!=n&&(n.end=performance.now()),void 0===r.status&&(r.status="rejected",r.reason=t)}}),null!=(t=e._ioInfo)){t.value=r;var n=r.displayName;"string"==typeof n&&(t.name=n)}-1===e._status&&(e._status=0,e._result=r)}if(1===e._status)return void 0===(t=e._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",t),"default"in t||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),t.default;throw e._result}function g(){var e=Q.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function w(){Q.asyncTransitions--}function S(t){if(null===eu)try{var r=("require"+Math.random()).slice(0,7);eu=(e&&e[r]).call(e,"timers").setImmediate}catch(e){eu=function(e){!1===ea&&(ea=!0,"u"<typeof MessageChannel&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return eu(t)}function E(e){return 1<e.length&&"function"==typeof AggregateError?AggregateError(e):e[0]}function k(e,t){t!==es-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),es=t}function O(e,t,r){var n=Q.actQueue;if(null!==n)if(0!==n.length)try{j(n),S(function(){return O(e,t,r)});return}catch(e){Q.thrownErrors.push(e)}else Q.actQueue=null;0<Q.thrownErrors.length?(n=E(Q.thrownErrors),Q.thrownErrors.length=0,r(n)):t(e)}function j(e){if(!ec){ec=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){Q.didUsePromise=!1;var n=r(!1);if(null!==n){if(Q.didUsePromise){e[t]=r,e.splice(0,t);return}r=n}else break}e.length=0}catch(r){e.splice(0,t+1),Q.thrownErrors.push(r)}finally{ec=!1}}}"u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var R,C,T=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),H=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),V=Symbol.iterator,z={},F={isMounted:function(){return!1},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e){r(e,"replaceState")},enqueueSetState:function(e){r(e,"setState")}},Y=Object.assign,B={};Object.freeze(B),n.prototype.isReactComponent={},n.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var G={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(ef in G)G.hasOwnProperty(ef)&&function(e,t){Object.defineProperty(n.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(ef,G[ef]);o.prototype=n.prototype,(G=a.prototype=new o).constructor=a,Y(G,n.prototype),G.isPureReactComponent=!0;var K=Array.isArray,W=Symbol.for("react.client.reference"),Q={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},J=Object.prototype.hasOwnProperty,X=console.createTask?console.createTask:function(){return null},Z={},ee=(G={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(G,f)(),et=X(c(f)),er=!1,en=/\/+/g,eo="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ea=!1,eu=null,es=0,ei=!1,ec=!1,el="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:S;G=Object.freeze({__proto__:null,c:function(e){return g().useMemoCache(e)}});var ef={map:b,forEach:function(e,t,r){b(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return b(e,function(){t++}),t},toArray:function(e){return b(e,function(e){return e})||[]},only:function(e){if(!m(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=q,t.Children=ef,t.Component=n,t.Fragment=x,t.Profiler=I,t.PureComponent=a,t.StrictMode=A,t.Suspense=N,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,t.__COMPILER_RUNTIME=G,t.act=function(e){var t=Q.actQueue,r=es;es++;var n=Q.actQueue=null!==t?t:[],o=!1;try{var a=e()}catch(e){Q.thrownErrors.push(e)}if(0<Q.thrownErrors.length)throw k(t,r),e=E(Q.thrownErrors),Q.thrownErrors.length=0,e;if(null!==a&&"object"==typeof a&&"function"==typeof a.then){var u=a;return el(function(){o||ei||(ei=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,a){o=!0,u.then(function(o){if(k(t,r),0===r){try{j(n),S(function(){return O(o,e,a)})}catch(e){Q.thrownErrors.push(e)}if(0<Q.thrownErrors.length){var u=E(Q.thrownErrors);Q.thrownErrors.length=0,a(u)}}else e(o)},function(e){k(t,r),0<Q.thrownErrors.length&&(e=E(Q.thrownErrors),Q.thrownErrors.length=0),a(e)})}}}var s=a;if(k(t,r),0===r&&(j(n),0!==n.length&&el(function(){o||ei||(ei=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Q.actQueue=null),0<Q.thrownErrors.length)throw e=E(Q.thrownErrors),Q.thrownErrors.length=0,e;return{then:function(e,t){o=!0,0===r?(Q.actQueue=n,S(function(){return O(s,e,t)})):e(s)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var e=Q.getCurrentStack;return null===e?null:e()},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n,o=Y({},e.props),a=e.key,u=e._owner;if(null!=t){e:{if(J.call(t,"ref")&&(n=Object.getOwnPropertyDescriptor(t,"ref").get)&&n.isReactWarning){n=!1;break e}n=void 0!==t.ref}for(i in n&&(u=l()),p(t)&&(s(t.key),a=""+t.key),t)J.call(t,i)&&"key"!==i&&"__self"!==i&&"__source"!==i&&("ref"!==i||void 0!==t.ref)&&(o[i]=t[i])}var i=arguments.length-2;if(1===i)o.children=r;else if(1<i){n=Array(i);for(var c=0;c<i;c++)n[c]=arguments[c+2];o.children=n}for(o=y(e.type,a,o,u,e._debugStack,e._debugTask),a=2;a<arguments.length;a++)h(arguments[a]);return o},t.createContext=function(e){return(e={$$typeof:H,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:P,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,t,r){for(var n=2;n<arguments.length;n++)h(arguments[n]);n={};var o=null;if(null!=t)for(f in C||!("__self"in t)||"key"in t||(C=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(t)&&(s(t.key),o=""+t.key),t)J.call(t,f)&&"key"!==f&&"__self"!==f&&"__source"!==f&&(n[f]=t[f]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),i=0;i<a;i++)u[i]=arguments[i+2];Object.freeze&&Object.freeze(u),n.children=u}if(e&&e.defaultProps)for(f in a=e.defaultProps)void 0===n[f]&&(n[f]=a[f]);o&&function(e,t){function r(){R||(R=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof e?e.displayName||e.name||"Unknown":e);var f=1e4>Q.recentlyCreatedOwnerStacks++;return y(e,o,n,l(),f?Error("react-stack-top-frame"):ee,f?X(c(e)):et)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===D?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?console.error("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,r={$$typeof:M,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(Object.defineProperty(e,"name",{value:r}),e.displayName=r)}}),r},t.isValidElement=m,t.lazy=function(e){var t={$$typeof:U,_payload:e={_status:-1,_result:e},_init:v},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return e._ioInfo=r,t._debugInfo=[{awaited:r}],t},t.memo=function(e,t){var r;return null==e&&console.error("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),Object.defineProperty(t={$$typeof:D,type:e,compare:void 0===t?null:t},"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},t.startTransition=function(e){var t=Q.T,r={};r._updatedFibers=new Set,Q.T=r;try{var n=e(),o=Q.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&(Q.asyncTransitions++,n.then(w,w),n.then(u,eo))}catch(e){eo(e)}finally{null===t&&r._updatedFibers&&(e=r._updatedFibers.size,r._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),null!==t&&null!==r.types&&(null!==t.types&&t.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),t.types=r.types),Q.T=t}},t.unstable_useCacheRefresh=function(){return g().useCacheRefresh()},t.use=function(e){return g().use(e)},t.useActionState=function(e,t,r){return g().useActionState(e,t,r)},t.useCallback=function(e,t){return g().useCallback(e,t)},t.useContext=function(e){var t=g();return e.$$typeof===P&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return g().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return g().useDeferredValue(e,t)},t.useEffect=function(e,t){return null==e&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useEffect(e,t)},t.useEffectEvent=function(e){return g().useEffectEvent(e)},t.useId=function(){return g().useId()},t.useImperativeHandle=function(e,t,r){return g().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return null==e&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return null==e&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useLayoutEffect(e,t)},t.useMemo=function(e,t){return g().useMemo(e,t)},t.useOptimistic=function(e,t){return g().useOptimistic(e,t)},t.useReducer=function(e,t,r){return g().useReducer(e,t,r)},t.useRef=function(e){return g().useRef(e)},t.useState=function(e){return g().useState(e)},t.useSyncExternalStore=function(e,t,r){return g().useSyncExternalStore(e,t,r)},t.useTransition=function(){return g().useTransition()},t.version="19.2.7","u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()},"../../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react.production.js"(e,t){var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),y=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function b(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||h}function v(){}function g(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var w=g.prototype=new v;w.constructor=g,m(w,b.prototype),w.isPureReactComponent=!0;var S=Array.isArray;function E(){}var k={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function j(e,t,n){var o=n.ref;return{$$typeof:r,type:e,key:t,ref:void 0!==o?o:null,props:n}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var C=/\/+/g;function T(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function $(e,t,o){if(null==e)return e;var a=[],u=0;return!function e(t,o,a,u,s){var i,c,l,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case r:case n:d=!0;break;case p:return e((d=t._init)(t._payload),o,a,u,s)}}if(d)return s=s(t),d=""===u?"."+T(t,0):u,S(s)?(a="",null!=d&&(a=d.replace(C,"$&/")+"/"),e(s,o,a,"",function(e){return e})):null!=s&&(R(s)&&(i=s,c=a+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+d,s=j(i.type,c,i.props)),o.push(s)),1;d=0;var h=""===u?".":u+":";if(S(t))for(var m=0;m<t.length;m++)f=h+T(u=t[m],m),d+=e(u,o,a,f,s);else if("function"==typeof(m=null===(l=t)||"object"!=typeof l?null:"function"==typeof(l=y&&l[y]||l["@@iterator"])?l:null))for(t=m.call(t),m=0;!(u=t.next()).done;)f=h+T(u=u.value,m++),d+=e(u,o,a,f,s);else if("object"===f){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(E,E):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),o,a,u,s);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return d}(e,a,"","",function(e){return t.call(o,e,u++)}),a}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};t.Activity=d,t.Children={map:$,forEach:function(e,t,r){$(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $(e,function(){t++}),t},toArray:function(e){return $(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=u,t.PureComponent=g,t.StrictMode=a,t.Suspense=l,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=m({},e.props),o=e.key;if(null!=t)for(a in void 0!==t.key&&(o=""+t.key),t)O.call(t,a)&&"key"!==a&&"__self"!==a&&"__source"!==a&&("ref"!==a||void 0!==t.ref)&&(n[a]=t[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),s=0;s<a;s++)u[s]=arguments[s+2];n.children=u}return j(e.type,o,n)},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,r){var n,o={},a=null;if(null!=t)for(n in void 0!==t.key&&(a=""+t.key),t)O.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),i=0;i<u;i++)s[i]=arguments[i+2];o.children=s}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return j(e,a,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,r={};k.T=r;try{var n=e(),o=k.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(E,A)}catch(e){A(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,r){return k.H.useActionState(e,t,r)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return k.H.useEffect(e,t)},t.useEffectEvent=function(e){return k.H.useEffectEvent(e)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,r){return k.H.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,r){return k.H.useReducer(e,t,r)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,r){return k.H.useSyncExternalStore(e,t,r)},t.useTransition=function(){return k.H.useTransition()},t.version="19.2.7"},"../../../node_modules/.pnpm/react@19.2.7/node_modules/react/index.js"(e,t,r){"production"===process.env.NODE_ENV?e.exports=r("../../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react.production.js"):e.exports=r("../../../node_modules/.pnpm/react@19.2.7/node_modules/react/cjs/react.development.js")}});
|