@wix/cli 1.1.51 → 1.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/DevCommand-74RYZYIJ.js +4 -0
- package/build/DevCommand-74RYZYIJ.js.map +1 -0
- package/build/DevCommand-LKSQSU4D.js +4 -0
- package/build/DevCommand-LKSQSU4D.js.map +1 -0
- package/build/LoginCommand-NYVD43UK.js +4 -0
- package/build/LoginCommand-NYVD43UK.js.map +1 -0
- package/build/{LogoutCommand-BDH3FYZO.js → LogoutCommand-S6XVACQ6.js} +2 -2
- package/build/{WhoamiCommand-5DMVQUBJ.js → WhoamiCommand-HOEXUJGJ.js} +2 -2
- package/build/{chunk-SEHFPYSE.js → chunk-4BTCJXQC.js} +3 -3
- package/build/chunk-4BTCJXQC.js.map +1 -0
- package/build/{chunk-TAWNBTSO.js → chunk-4NRHFR7Y.js} +2 -2
- package/build/chunk-6MEM22XR.js +15 -0
- package/build/chunk-6MEM22XR.js.map +1 -0
- package/build/chunk-7WD47GXQ.js +14 -0
- package/build/chunk-7WD47GXQ.js.map +1 -0
- package/build/chunk-A47ABA7B.js +4 -0
- package/build/chunk-A47ABA7B.js.map +1 -0
- package/build/chunk-B7EXWRCM.js +4 -0
- package/build/chunk-B7EXWRCM.js.map +1 -0
- package/build/{chunk-65R7SBZ5.js → chunk-E7Z3EVGI.js} +2 -2
- package/build/{chunk-62WSEYFO.js → chunk-EE5EBGQ7.js} +2 -2
- package/build/{chunk-5LAMPYWD.js → chunk-EFB2I2BN.js} +2 -2
- package/build/{chunk-67FBXKWP.js → chunk-FPM2JVPR.js} +2 -2
- package/build/{chunk-CLX2F62J.js → chunk-J4J4RXMY.js} +2 -2
- package/build/{chunk-KPKBCH3A.js → chunk-JGPN7XZF.js} +2 -2
- package/build/chunk-JYYNYTCQ.js +6 -0
- package/build/chunk-JYYNYTCQ.js.map +1 -0
- package/build/chunk-K3QK4XYS.js +4 -0
- package/build/chunk-K3QK4XYS.js.map +1 -0
- package/build/chunk-KOIVBNZR.js +4 -0
- package/build/chunk-KOIVBNZR.js.map +1 -0
- package/build/{chunk-ZUYRVEIZ.js → chunk-L2PG7C3H.js} +3 -3
- package/build/{chunk-ZUYRVEIZ.js.map → chunk-L2PG7C3H.js.map} +1 -1
- package/build/chunk-L434E44T.js +138 -0
- package/build/chunk-L434E44T.js.map +1 -0
- package/build/chunk-R5TGEMJ4.js +4 -0
- package/build/chunk-R5TGEMJ4.js.map +1 -0
- package/build/{chunk-SSWCDL27.js → chunk-SZ35DFLD.js} +2 -2
- package/build/{chunk-XALHWW5N.js → chunk-TCTTRAWM.js} +4 -4
- package/build/{chunk-XALHWW5N.js.map → chunk-TCTTRAWM.js.map} +1 -1
- package/build/chunk-TLPEI3DE.js +14 -0
- package/build/chunk-TLPEI3DE.js.map +1 -0
- package/build/chunk-WICGWF4N.js +4 -0
- package/build/chunk-WICGWF4N.js.map +1 -0
- package/build/{chunk-QF6TSJYM.js → chunk-X3AOPEF4.js} +10 -10
- package/build/{chunk-QF6TSJYM.js.map → chunk-X3AOPEF4.js.map} +1 -1
- package/build/{chunk-HUW5AFF4.js → chunk-ZNF7GN55.js} +55 -64
- package/build/chunk-ZNF7GN55.js.map +1 -0
- package/build/chunk-ZQFCZASC.js +4 -0
- package/build/chunk-ZQFCZASC.js.map +1 -0
- package/build/dev-D6J7EO7H.js +47 -0
- package/build/dev-D6J7EO7H.js.map +1 -0
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/install-WHE5Y4BG.js +4 -0
- package/build/{install-NJBNFBOD.js.map → install-WHE5Y4BG.js.map} +1 -1
- package/build/preview-ODRKZ7BQ.js +4 -0
- package/build/{preview-VSGRFUDT.js.map → preview-ODRKZ7BQ.js.map} +1 -1
- package/build/publish-C25WIDKP.js +4 -0
- package/build/{publish-EFDBBZIG.js.map → publish-C25WIDKP.js.map} +1 -1
- package/build/render-command-7OROM33D.js +4 -0
- package/build/render-command-7OROM33D.js.map +1 -0
- package/build/render-command-UM6STUPA.js +4 -0
- package/build/render-command-UM6STUPA.js.map +1 -0
- package/build/render-command-YKD46BVP.js +4 -0
- package/build/{render-command-QET4UNDW.js.map → render-command-YKD46BVP.js.map} +1 -1
- package/build/run-command-YXYU45I7.js +4 -0
- package/build/{run-command-MUXW6NCE.js.map → run-command-YXYU45I7.js.map} +1 -1
- package/build/{src-CIS5W66F.js → src-7KKODZIY.js} +2 -2
- package/build/src-7O5FMLWB.js +4 -0
- package/build/{src-BDIASQJX.js → src-CJFU3UWU.js} +2 -2
- package/build/{src-XHN4LXC2.js → src-IFWA4LD7.js} +2 -2
- package/build/src-IFWA4LD7.js.map +1 -0
- package/build/{src-7P3E3KRD.js → src-QPWACH3J.js} +2 -2
- package/build/src-TBIN5XRV.js +4 -0
- package/build/sync-types-2XUVNMLY.js +4 -0
- package/build/uninstall-ZHKKF5EM.js +4 -0
- package/build/{uninstall-J6U52MG2.js.map → uninstall-ZHKKF5EM.js.map} +1 -1
- package/package.json +3 -2
- package/build/DevCommand-KZX52XHC.js +0 -4
- package/build/DevCommand-KZX52XHC.js.map +0 -1
- package/build/LoginCommand-3HPXSPXY.js +0 -4
- package/build/LoginCommand-3HPXSPXY.js.map +0 -1
- package/build/chunk-7INB74CI.js +0 -4
- package/build/chunk-7INB74CI.js.map +0 -1
- package/build/chunk-BQHRJORL.js +0 -14
- package/build/chunk-BQHRJORL.js.map +0 -1
- package/build/chunk-DGA2THYK.js +0 -4
- package/build/chunk-DGA2THYK.js.map +0 -1
- package/build/chunk-GP3K4JBG.js +0 -4
- package/build/chunk-GP3K4JBG.js.map +0 -1
- package/build/chunk-HUW5AFF4.js.map +0 -1
- package/build/chunk-JQMLRPCS.js +0 -6
- package/build/chunk-JQMLRPCS.js.map +0 -1
- package/build/chunk-JTNRSVEB.js +0 -14
- package/build/chunk-JTNRSVEB.js.map +0 -1
- package/build/chunk-SEHFPYSE.js.map +0 -1
- package/build/dev-WESRS2HF.js +0 -179
- package/build/dev-WESRS2HF.js.map +0 -1
- package/build/install-NJBNFBOD.js +0 -4
- package/build/preview-VSGRFUDT.js +0 -4
- package/build/publish-EFDBBZIG.js +0 -4
- package/build/render-command-QET4UNDW.js +0 -4
- package/build/render-command-RSY3LUDV.js +0 -4
- package/build/render-command-RSY3LUDV.js.map +0 -1
- package/build/run-command-MUXW6NCE.js +0 -4
- package/build/src-AFQDLVDX.js +0 -4
- package/build/sync-types-EKGKI3NN.js +0 -4
- package/build/uninstall-J6U52MG2.js +0 -4
- /package/build/{LogoutCommand-BDH3FYZO.js.map → LogoutCommand-S6XVACQ6.js.map} +0 -0
- /package/build/{WhoamiCommand-5DMVQUBJ.js.map → WhoamiCommand-HOEXUJGJ.js.map} +0 -0
- /package/build/{chunk-TAWNBTSO.js.map → chunk-4NRHFR7Y.js.map} +0 -0
- /package/build/{chunk-65R7SBZ5.js.map → chunk-E7Z3EVGI.js.map} +0 -0
- /package/build/{chunk-62WSEYFO.js.map → chunk-EE5EBGQ7.js.map} +0 -0
- /package/build/{chunk-5LAMPYWD.js.map → chunk-EFB2I2BN.js.map} +0 -0
- /package/build/{chunk-67FBXKWP.js.map → chunk-FPM2JVPR.js.map} +0 -0
- /package/build/{chunk-CLX2F62J.js.map → chunk-J4J4RXMY.js.map} +0 -0
- /package/build/{chunk-KPKBCH3A.js.map → chunk-JGPN7XZF.js.map} +0 -0
- /package/build/{chunk-SSWCDL27.js.map → chunk-SZ35DFLD.js.map} +0 -0
- /package/build/{src-7P3E3KRD.js.map → src-7KKODZIY.js.map} +0 -0
- /package/build/{src-AFQDLVDX.js.map → src-7O5FMLWB.js.map} +0 -0
- /package/build/{src-BDIASQJX.js.map → src-CJFU3UWU.js.map} +0 -0
- /package/build/{src-CIS5W66F.js.map → src-QPWACH3J.js.map} +0 -0
- /package/build/{src-XHN4LXC2.js.map → src-TBIN5XRV.js.map} +0 -0
- /package/build/{sync-types-EKGKI3NN.js.map → sync-types-2XUVNMLY.js.map} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{b as a,c as n}from"./chunk-JGPN7XZF.js";import{m as c}from"./chunk-TLPEI3DE.js";import{g as s}from"./chunk-TCTTRAWM.js";import{i as t}from"./chunk-UO4ZAUJK.js";var l="1.1.52";var d={name:"@wix/cli",description:"CLI tool for building Wix sites and applications",version:l,bin:{wix:"bin/wix.cjs"},dependencies:{"node-gyp":"^8.4.1"},devDependencies:{"@commander-js/extra-typings":"^12.1.0","@types/columnify":"^1.5.4","@types/react":"^18.3.3","@types/update-notifier":"^6.0.8","@wix/bi-logger-wix-cli":"^1.44.0","@wix/cli-auth":"workspace:*","@wix/cli-command-contract":"workspace:*","@wix/cli-core-definitions":"workspace:*","@wix/cli-debug-log":"workspace:*","@wix/cli-error":"workspace:*","@wix/cli-error-reporting":"workspace:*","@wix/cli-fs":"workspace:*","@wix/cli-fs-cache":"workspace:*","@wix/cli-i18n":"workspace:*","@wix/cli-logger":"workspace:*","@wix/cli-site":"workspace:*","@wix/cli-site-live":"workspace:*","@wix/cli-site-old":"workspace:*","@wix/cli-telemetry":"workspace:*","@wix/cli-telemetry-react":"workspace:*","@wix/cli-test-overrides":"workspace:*","@wix/cli-ui-kit":"workspace:*","@wix/cli-user-config":"workspace:*","@wix/tsup-configs":"workspace:*",chalk:"^5.3.0",columnify:"^1.6.0",commander:"^12.1.0","p-timeout":"^6.1.2","package-json":"^8.1.1",react:"^18.3.1",semver:"^7.6.2","type-fest":"^4.18.1","update-notifier":"^7.0.0",variant:"^3.0.0-dev.27",zod:"^3.23.8"},engines:{node:">= 18.16"},files:["bin","build"],optionalDependencies:{fsevents:"^2.3.2"},perfer:{bundleSize:{files:[{glob:"./build/index.js",maxSize:"925kb"}]}},publishConfig:{registry:"https://registry.npmjs.org/",access:"public",versionBumpStrategy:"manual",logLevel:"verbose"},scripts:{build:"run -T tsup","build:watch":"run -T build:watch --filter='@wix/cli'",test:"yarn workspace @wix/cli-core-spec run test","test:watch":"yarn workspace @wix/cli-core-spec run test:watch",typecheck:"run -T tsc --noEmit"},type:"module",wix:{artifact:{groupId:"com.wixpress.npm",artifactId:"wix-cli"},validations:{postBuild:["typecheck"]}}};t();import{randomUUID as w}from"node:crypto";var b=async(e,r)=>{let o=await a({cliSessionId:w()},r);return e.on("errorReported",i=>{o.report(c({errorMessage:i.message,errorType:s(i)?"SystemError":"UserError",errorName:i.name}))}),{biLogger:o}},v=(e,r)=>n({biLogger:e,command:r,cliVersion:l,flow:null});export{l as a,d as b,b as c,v as d};
|
|
4
|
+
//# sourceMappingURL=chunk-R5TGEMJ4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/bi.ts"],"sourcesContent":["{\n \"name\": \"@wix/cli\",\n \"description\": \"CLI tool for building Wix sites and applications\",\n \"version\": \"1.1.52\",\n \"bin\": {\n \"wix\": \"bin/wix.cjs\"\n },\n \"dependencies\": {\n \"node-gyp\": \"^8.4.1\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^12.1.0\",\n \"@types/columnify\": \"^1.5.4\",\n \"@types/react\": \"^18.3.3\",\n \"@types/update-notifier\": \"^6.0.8\",\n \"@wix/bi-logger-wix-cli\": \"^1.44.0\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-fs-cache\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site\": \"workspace:*\",\n \"@wix/cli-site-live\": \"workspace:*\",\n \"@wix/cli-site-old\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/cli-user-config\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"chalk\": \"^5.3.0\",\n \"columnify\": \"^1.6.0\",\n \"commander\": \"^12.1.0\",\n \"p-timeout\": \"^6.1.2\",\n \"package-json\": \"^8.1.1\",\n \"react\": \"^18.3.1\",\n \"semver\": \"^7.6.2\",\n \"type-fest\": \"^4.18.1\",\n \"update-notifier\": \"^7.0.0\",\n \"variant\": \"^3.0.0-dev.27\",\n \"zod\": \"^3.23.8\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"files\": [\n \"bin\",\n \"build\"\n ],\n \"optionalDependencies\": {\n \"fsevents\": \"^2.3.2\"\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"925kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup\",\n \"build:watch\": \"run -T build:watch --filter='@wix/cli'\",\n \"test\": \"yarn workspace @wix/cli-core-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-core-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\"\n ]\n }\n }\n}\n","import { randomUUID } from 'node:crypto';\nimport type { BiLogger } from '@wix/cli-telemetry';\nimport {\n createBiLogger as createCliBiLogger,\n reportCommandStartEvent as originalReportCommandStartEvent,\n} from '@wix/cli-telemetry';\nimport { isCliSystemError } from '@wix/cli-error';\nimport type { ErrorReporter } from '@wix/cli-error-reporting';\nimport { wixCliCliError } from '@wix/bi-logger-wix-cli/v2';\nimport type { Command } from '@commander-js/extra-typings';\nimport { version } from '../package.json';\n\nexport { addUserFields } from '@wix/cli-telemetry';\n\nexport const createBiLogger = async (\n errorReporter: ErrorReporter,\n userId?: string\n) => {\n const biLogger = await createCliBiLogger(\n {\n cliSessionId: randomUUID(),\n },\n userId\n );\n\n errorReporter.on('errorReported', (error) => {\n void biLogger.report(\n wixCliCliError({\n errorMessage: error.message,\n errorType: isCliSystemError(error) ? 'SystemError' : 'UserError',\n errorName: error.name,\n })\n );\n });\n\n return {\n biLogger,\n };\n};\n\nexport const reportCommandStartEvent = (\n biLogger: BiLogger,\n command: Command<unknown[]>\n) => {\n return originalReportCommandStartEvent({\n biLogger,\n command,\n cliVersion: version,\n flow: null,\n });\n};\n"],"mappings":";;uKAGE,IAAAA,EAAW,SAHb,IAAAC,EAAA,CACE,KAAQ,WACR,YAAe,mDACf,QAAAC,EACA,IAAO,CACL,IAAO,aACT,EACA,aAAgB,CACd,WAAY,QACd,EACA,gBAAmB,CACjB,8BAA+B,UAC/B,mBAAoB,SACpB,eAAgB,UAChB,yBAA0B,SAC1B,yBAA0B,UAC1B,gBAAiB,cACjB,4BAA6B,cAC7B,4BAA6B,cAC7B,qBAAsB,cACtB,iBAAkB,cAClB,2BAA4B,cAC5B,cAAe,cACf,oBAAqB,cACrB,gBAAiB,cACjB,kBAAmB,cACnB,gBAAiB,cACjB,qBAAsB,cACtB,oBAAqB,cACrB,qBAAsB,cACtB,2BAA4B,cAC5B,0BAA2B,cAC3B,kBAAmB,cACnB,uBAAwB,cACxB,oBAAqB,cACrB,MAAS,SACT,UAAa,SACb,UAAa,UACb,YAAa,SACb,eAAgB,SAChB,MAAS,UACT,OAAU,SACV,YAAa,UACb,kBAAmB,SACnB,QAAW,gBACX,IAAO,SACT,EACA,QAAW,CACT,KAAQ,UACV,EACA,MAAS,CACP,MACA,OACF,EACA,qBAAwB,CACtB,SAAY,QACd,EACA,OAAU,CACR,WAAc,CACZ,MAAS,CACP,CACE,KAAQ,mBACR,QAAW,OACb,CACF,CACF,CACF,EACA,cAAiB,CACf,SAAY,8BACZ,OAAU,SACV,oBAAuB,SACvB,SAAY,SACd,EACA,QAAW,CACT,MAAS,cACT,cAAe,yCACf,KAAQ,6CACR,aAAc,mDACd,UAAa,qBACf,EACA,KAAQ,SACR,IAAO,CACL,SAAY,CACV,QAAW,mBACX,WAAc,SAChB,EACA,YAAe,CACb,UAAa,CACX,WACF,CACF,CACF,CACF,EC5FAC,IAAA,OAAS,cAAAC,MAAkB,cAcpB,IAAMC,EAAiB,MAC5BC,EACAC,IACG,CACH,IAAMC,EAAW,MAAMH,EACrB,CACE,aAAcI,EAAW,CAC3B,EACAF,CACF,EAEA,OAAAD,EAAc,GAAG,gBAAkBI,GAAU,CACtCF,EAAS,OACZG,EAAe,CACb,aAAcD,EAAM,QACpB,UAAWE,EAAiBF,CAAK,EAAI,cAAgB,YACrD,UAAWA,EAAM,IACnB,CAAC,CACH,CACF,CAAC,EAEM,CACL,SAAAF,CACF,CACF,EAEaK,EAA0B,CACrCL,EACAM,IAEOD,EAAgC,CACrC,SAAAL,EACA,QAAAM,EACA,WAAYC,EACZ,KAAM,IACR,CAAC","names":["version","package_default","version","init_esm_shims","randomUUID","createBiLogger","errorReporter","userId","biLogger","randomUUID","error","wixCliCliError","isCliSystemError","reportCommandStartEvent","command","version"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{b as en}from"./chunk-
|
|
3
|
+
import{b as en}from"./chunk-FPM2JVPR.js";import{a as p}from"./chunk-CUZEHDNU.js";import{a as x,c as y,e as Oe,i as s}from"./chunk-UO4ZAUJK.js";var Fe=y((qr,ke)=>{"use strict";s();var I=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",$e=x("path"),tn=I?";":":",Le=en(),De=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_e=(e,t)=>{let n=t.colon||tn,r=e.match(/\//)||I&&e.match(/\\/)?[""]:[...I?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=I?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=I?o.split(n):[""];return I&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},Me=(e,t,n)=>{typeof t=="function"&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:o,pathExtExe:i}=_e(e,t),a=[],c=u=>new Promise((l,m)=>{if(u===r.length)return t.all&&a.length?l(a):m(De(e));let d=r[u],S=/^".*"$/.test(d)?d.slice(1,-1):d,h=$e.join(S,e),g=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;l(f(g,u,0))}),f=(u,l,m)=>new Promise((d,S)=>{if(m===o.length)return d(c(l+1));let h=o[m];Le(u+h,{pathExt:i},(g,b)=>{if(!g&&b)if(t.all)a.push(u+h);else return d(u+h);return d(f(u,l,m+1))})});return n?c(0).then(u=>n(null,u),n):c(0)},nn=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:o}=_e(e,t),i=[];for(let a=0;a<n.length;a++){let c=n[a],f=/^".*"$/.test(c)?c.slice(1,-1):c,u=$e.join(f,e),l=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let m=0;m<r.length;m++){let d=l+r[m];try{if(Le.sync(d,{pathExt:o}))if(t.all)i.push(d);else return d}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw De(e)};ke.exports=Me;Me.sync=nn});var ze=y((Vr,q)=>{"use strict";s();var Ke=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};q.exports=Ke;q.exports.default=Ke});var Ve=y((Yr,He)=>{"use strict";s();var We=x("path"),rn=Fe(),on=ze();function qe(e,t){let n=e.options.env||process.env,r=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=rn.sync(e.command,{path:n[on({env:n})],pathExt:t?We.delimiter:void 0})}catch{}finally{i&&process.chdir(r)}return a&&(a=We.resolve(o?e.options.cwd:"",a)),a}function sn(e){return qe(e)||qe(e,!0)}He.exports=sn});var Xe=y((Qr,V)=>{"use strict";s();var H=/([()\][%!^"`<>&|;, *?])/g;function an(e){return e=e.replace(H,"^$1"),e}function cn(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(H,"^$1"),t&&(e=e.replace(H,"^$1")),e}V.exports.command=an;V.exports.argument=cn});var Ze=y((eo,Ye)=>{"use strict";s();Ye.exports=/^#!(.*)/});var Je=y((no,Qe)=>{"use strict";s();var un=Ze();Qe.exports=(e="")=>{let t=e.match(un);if(!t)return null;let[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return o==="env"?r:r?`${o} ${r}`:o}});var tt=y((oo,et)=>{"use strict";s();var X=x("fs"),fn=Je();function ln(e){let n=Buffer.alloc(150),r;try{r=X.openSync(e,"r"),X.readSync(r,n,0,150,0),X.closeSync(r)}catch{}return fn(n.toString())}et.exports=ln});var it=y((so,ot)=>{"use strict";s();var dn=x("path"),nt=Ve(),rt=Xe(),pn=tt(),mn=process.platform==="win32",hn=/\.(?:com|exe)$/i,Sn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function yn(e){e.file=nt(e);let t=e.file&&pn(e.file);return t?(e.args.unshift(e.file),e.command=t,nt(e)):e.file}function gn(e){if(!mn)return e;let t=yn(e),n=!hn.test(t);if(e.options.forceShell||n){let r=Sn.test(t);e.command=dn.normalize(e.command),e.command=rt.command(e.command),e.args=e.args.map(i=>rt.argument(i,r));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}function En(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:gn(r)}ot.exports=En});var ct=y((co,at)=>{"use strict";s();var Y=process.platform==="win32";function Z(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function bn(e,t){if(!Y)return;let n=e.emit;e.emit=function(r,o){if(r==="exit"){let i=st(o,t,"spawn");if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function st(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawn"):null}function xn(e,t){return Y&&e===1&&!t.file?Z(t.original,"spawnSync"):null}at.exports={hookChildProcess:bn,verifyENOENT:st,verifyENOENTSync:xn,notFoundError:Z}});var lt=y((fo,A)=>{"use strict";s();var ut=x("child_process"),Q=it(),J=ct();function ft(e,t,n){let r=Q(e,t,n),o=ut.spawn(r.command,r.args,r.options);return J.hookChildProcess(o,r),o}function wn(e,t,n){let r=Q(e,t,n),o=ut.spawnSync(r.command,r.args,r.options);return o.error=o.error||J.verifyENOENTSync(o.status,r),o}A.exports=ft;A.exports.spawn=ft;A.exports.sync=wn;A.exports._parse=Q;A.exports._enoent=J});var Dt=y((_i,Lt)=>{"use strict";s();var{PassThrough:Er}=x("stream");Lt.exports=function(){var e=[],t=new Er({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(i){return Array.isArray(i)?(i.forEach(n),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function r(){return e.length==0}function o(i){e=e.filter(function(a){return a!==i}),!e.length&&t.readable&&t.end()}}});s();var Pe;(function(e){e.UNKNOWN="UNKNOWN",e.EDITOR_REVISION="EDITOR_REVISION"})(Pe||(Pe={}));var Ne;(function(e){e.UNDEFINED="UNDEFINED",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.INVOKE_ERROR="INVOKE_ERROR",e.TIMEOUT="TIMEOUT",e.SKIPPED="SKIPPED"})(Ne||(Ne={}));var Ge;(function(e){e.UNDEFINED="UNDEFINED",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.RUNNING="RUNNING",e.ABORTED="ABORTED"})(Ge||(Ge={}));var w;(function(e){e.UNDEFINED="UNDEFINED",e.NONE="NONE",e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(w||(w={}));var ve;(function(e){e.UNKNOWN="UNKNOWN",e.RELEASE_MANAGER="RELEASE_MANAGER",e.BLOCKS="BLOCKS",e.WIX_CLI="WIX_CLI",e.MOBILE_APP_BUILDER="MOBILE_APP_BUILDER",e.SEO="SEO",e.FEEDBACK="FEEDBACK"})(ve||(ve={}));var Ue;(function(e){e.NONE="NONE",e.SITE="SITE",e.RC="RC"})(Ue||(Ue={}));var Be;(function(e){e.ASC="ASC",e.DESC="DESC"})(Be||(Be={}));var je;(function(e){e.UNKNOWN="UNKNOWN",e.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",e.MEMBER="MEMBER",e.WIX_USER="WIX_USER",e.APP="APP"})(je||(je={}));s();var Zt=Oe(lt(),1);import{Buffer as Lr}from"node:buffer";import Dr from"node:path";import Ie from"node:child_process";import W from"node:process";s();function ee(e){let t=typeof e=="string"?`
|
|
4
4
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}s();import U from"node:process";import C from"node:path";import In from"node:url";s();function v(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"}function An(e={}){let{cwd:t=U.cwd(),path:n=U.env[v()],execPath:r=U.execPath}=e,o,i=t instanceof URL?In.fileURLToPath(t):t,a=C.resolve(i),c=[];for(;o!==a;)c.push(C.join(a,"node_modules/.bin")),o=a,a=C.resolve(a,"..");return c.push(C.resolve(i,r,"..")),[...c,n].join(C.delimiter)}function dt({env:e=U.env,...t}={}){e={...e};let n=v({env:e});return t.path=e[n],e[n]=An(t),e}s();s();var Cn=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Rn(o,i)&&r||Object.defineProperty(e,n,i)},Rn=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Tn=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},On=(e,t)=>`/* Wrapped ${e}*/
|
|
5
5
|
${t}`,Pn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Nn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Gn=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=On.bind(null,r,t.toString());Object.defineProperty(o,"name",Nn),Object.defineProperty(e,"toString",{...Pn,value:o})};function te(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Cn(e,t,o,n);return Tn(e,t),Gn(e,t,r),e}var B=new WeakMap,pt=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...a){if(B.set(i,++r),r===1)n=e.apply(this,a),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return te(i,e),B.set(i,r),i};pt.callCount=e=>{if(!B.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return B.get(e)};var mt=pt;s();import kn from"node:process";s();import{constants as jn}from"node:os";s();var ht=()=>{let e=yt-St+1;return Array.from({length:e},vn)},vn=(e,t)=>({name:`SIGRT${t+1}`,number:St+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),St=34,yt=64;s();import{constants as Un}from"node:os";s();var gt=[{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"}];var ne=()=>{let e=ht();return[...gt,...e].map(Bn)},Bn=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{let{signals:{[e]:a}}=Un,c=a!==void 0;return{name:e,number:c?a:t,description:n,supported:c,action:r,forced:o,standard:i}};var $n=()=>{let e=ne();return Object.fromEntries(e.map(Ln))},Ln=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:a})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:a}],Et=$n(),Dn=()=>{let e=ne(),t=65,n=Array.from({length:t},(r,o)=>_n(o,e));return Object.assign({},...n)},_n=(e,t)=>{let n=Mn(e,t);if(n===void 0)return{};let{name:r,description:o,supported:i,action:a,forced:c,standard:f}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:a,forced:c,standard:f}}},Mn=(e,t)=>{let n=t.find(({name:r})=>jn.signals[r]===e);return n!==void 0?n:t.find(r=>r.number===e)},_o=Dn();var Fn=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":n!==void 0?`failed with ${n}`:r!==void 0?`was killed with ${r} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",R=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:a,escapedCommand:c,timedOut:f,isCanceled:u,killed:l,parsed:{options:{timeout:m,cwd:d=kn.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let S=o===void 0?void 0:Et[o].description,h=r&&r.code,b=`Command ${Fn({timedOut:f,timeout:m,errorCode:h,signal:o,signalDescription:S,exitCode:i,isCanceled:u})}: ${a}`,P=Object.prototype.toString.call(r)==="[object Error]",N=P?`${b}
|
|
6
6
|
${r.message}`:b,G=[N,t,e].filter(Boolean).join(`
|
|
7
7
|
`);return P?(r.originalMessage=r.message,r.message=G):r=new Error(G),r.shortMessage=N,r.command=a,r.escapedCommand=c,r.exitCode=i,r.signal=o,r.signalDescription=S,r.stdout=e,r.stderr=t,r.cwd=d,n!==void 0&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!f,r.isCanceled=u,r.killed=l&&!f,r};s();var j=["stdin","stdout","stderr"],Kn=e=>j.some(t=>e[t]!==void 0),bt=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return j.map(r=>e[r]);if(Kn(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${j.map(r=>`\`${r}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,j.length);return Array.from({length:n},(r,o)=>t[o])};s();import qn from"node:os";s();s();var E=[];E.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&E.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&E.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var $=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",re=Symbol.for("signal-exit emitter"),oe=globalThis,zn=Object.defineProperty.bind(Object),ie=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(oe[re])return oe[re];zn(oe,re,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},L=class{},Wn=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),se=class extends L{onExit(){return()=>{}}load(){}unload(){}},ae=class extends L{#s=ce.platform==="win32"?"SIGINT":"SIGHUP";#t=new ie;#e;#o;#i;#r={};#n=!1;constructor(t){super(),this.#e=t,this.#r={};for(let n of E)this.#r[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#t,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let a=this.#t.emit("exit",null,n),c=n==="SIGHUP"?this.#s:n;a||t.kill(t.pid,c)}};this.#i=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!$(this.#e))return()=>{};this.#n===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#t.on(r,t),()=>{this.#t.removeListener(r,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#n){this.#n=!0,this.#t.count+=1;for(let t of E)try{let n=this.#r[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#c(t,...n),this.#e.reallyExit=t=>this.#a(t)}}unload(){this.#n&&(this.#n=!1,E.forEach(t=>{let n=this.#r[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#i,this.#t.count-=1)}#a(t){return $(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#c(t,...n){let r=this.#o;if(t==="exit"&&$(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#t.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},ce=globalThis.process,{onExit:xt,load:Zo,unload:Qo}=Wn($(ce)?new ae(ce):new se);var Hn=1e3*5,wt=(e,t="SIGTERM",n={})=>{let r=e(t);return Vn(e,t,n,r),r},Vn=(e,t,n,r)=>{if(!Xn(t,n,r))return;let o=Zn(n),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},Xn=(e,{forceKillAfterTimeout:t},n)=>Yn(e)&&t!==!1&&n,Yn=e=>e===qn.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",Zn=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return Hn;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},It=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Qn=(e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},At=(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(t===0||t===void 0)return r;let o,i=new Promise((c,f)=>{o=setTimeout(()=>{Qn(e,n,f)},t)}),a=r.finally(()=>{clearTimeout(o)});return Promise.race([i,a])},Ct=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Rt=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let o=xt(()=>{e.kill()});return r.finally(()=>{o()})};s();import{createWriteStream as Jn}from"node:fs";import{ChildProcess as er}from"node:child_process";s();function D(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function ue(e){return D(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var tr=e=>e instanceof er&&typeof e.then=="function",fe=(e,t,n)=>{if(typeof n=="string")return e[t].pipe(Jn(n)),e;if(ue(n))return e[t].pipe(n),e;if(!tr(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!ue(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n},Tt=e=>{e.stdout!==null&&(e.pipeStdout=fe.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=fe.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=fe.bind(void 0,e,"all"))};s();import{createReadStream as br,readFileSync as xr}from"node:fs";import{setTimeout as wr}from"node:timers/promises";s();s();s();var T=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:a,finalize:c},{maxBuffer:f=Number.POSITIVE_INFINITY}={})=>{if(!rr(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let u=t();u.length=0;try{for await(let l of e){let m=or(l),d=n[m](l,u);Nt({convertedChunk:d,state:u,getSize:r,truncateChunk:o,addChunk:i,maxBuffer:f})}return nr({state:u,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:a,maxBuffer:f}),c(u)}catch(l){throw l.bufferedData=c(u),l}},nr=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:o,maxBuffer:i})=>{let a=o(e);a!==void 0&&Nt({convertedChunk:a,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:i})},Nt=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:o,maxBuffer:i})=>{let a=n(e),c=t.length+a;if(c<=i){Ot(e,t,o,c);return}let f=r(e,i-t.length);throw f!==void 0&&Ot(f,t,o,i),new _},Ot=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},rr=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",or=e=>{let t=typeof e;if(t==="string")return"string";if(t!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let n=Pt.call(e);return n==="[object ArrayBuffer]"?"arrayBuffer":n==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Pt.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Pt}=Object.prototype,_=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}};s();var le=e=>e,de=()=>{},pe=({contents:e})=>e,M=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},k=e=>e.length;s();async function me(e,t){return T(e,pr,t)}var ir=()=>({contents:new ArrayBuffer(0)}),sr=e=>ar.encode(e),ar=new TextEncoder,Gt=e=>new Uint8Array(e),vt=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),cr=(e,t)=>e.slice(0,t),ur=(e,{contents:t,length:n},r)=>{let o=jt()?lr(t,r):fr(t,r);return new Uint8Array(o).set(e,n),o},fr=(e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(Bt(t));return new Uint8Array(n).set(new Uint8Array(e),0),n},lr=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:Bt(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n},Bt=e=>Ut**Math.ceil(Math.log(e)/Math.log(Ut)),Ut=2,dr=({contents:e,length:t})=>jt()?e:e.slice(0,t),jt=()=>"resize"in ArrayBuffer.prototype,pr={init:ir,convertChunk:{string:sr,buffer:Gt,arrayBuffer:Gt,dataView:vt,typedArray:vt,others:M},getSize:k,truncateChunk:cr,addChunk:ur,getFinalChunk:de,finalize:dr};s();async function F(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return $t(await me(e,t))}catch(n){throw n.bufferedData!==void 0&&(n.bufferedData=$t(n.bufferedData)),n}}var $t=e=>globalThis.Buffer.from(e);s();async function he(e,t){return T(e,gr,t)}var mr=()=>({contents:"",textDecoder:new TextDecoder}),K=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),hr=(e,{contents:t})=>t+e,Sr=(e,t)=>e.slice(0,t),yr=({textDecoder:e})=>{let t=e.decode();return t===""?void 0:t},gr={init:mr,convertChunk:{string:le,buffer:K,arrayBuffer:K,dataView:K,typedArray:K,others:M},getSize:k,truncateChunk:Sr,addChunk:hr,getFinalChunk:yr,finalize:pe};var _t=Oe(Dt(),1),Mt=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Ir=({input:e,inputFile:t})=>typeof t!="string"?e:(Mt(e),xr(t)),kt=e=>{let t=Ir(e);if(D(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},Ar=({input:e,inputFile:t})=>typeof t!="string"?e:(Mt(e),br(t)),Ft=(e,t)=>{let n=Ar(t);n!==void 0&&(D(n)?n.pipe(e.stdin):e.stdin.end(n))},Kt=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,_t.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},Se=async(e,t)=>{if(!(!e||t===void 0)){await wr(0),e.destroy();try{return await t}catch(n){return n.bufferedData}}},ye=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t==="utf8"||t==="utf-8"?he(e,{maxBuffer:r}):t===null||t==="buffer"?F(e,{maxBuffer:r}):Cr(e,r,t)},Cr=async(e,t,n)=>(await F(e,{maxBuffer:t})).toString(n),zt=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},a)=>{let c=ye(e,{encoding:r,buffer:o,maxBuffer:i}),f=ye(t,{encoding:r,buffer:o,maxBuffer:i}),u=ye(n,{encoding:r,buffer:o,maxBuffer:i*2});try{return await Promise.all([a,c,f,u])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Se(e,c),Se(t,f),Se(n,u)])}};s();var Rr=(async()=>{})().constructor.prototype,Tr=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Rr,e)]),ge=(e,t)=>{for(let[n,r]of Tr){let o=typeof t=="function"?(...i)=>Reflect.apply(r.value,t(),i):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Wt=e=>new Promise((t,n)=>{e.on("exit",(r,o)=>{t({exitCode:r,signal:o})}),e.on("error",r=>{n(r)}),e.stdin&&e.stdin.on("error",r=>{n(r)})});s();import{Buffer as Or}from"node:buffer";import{ChildProcess as Pr}from"node:child_process";var Vt=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Nr=/^[\w.-]+$/,Gr=e=>typeof e!="string"||Nr.test(e)?e:`"${e.replaceAll('"','\\"')}"`,Ee=(e,t)=>Vt(e,t).join(" "),be=(e,t)=>Vt(e,t).map(n=>Gr(n)).join(" "),vr=/ +/g;var qt=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Pr)&&"stdout"in e){let n=typeof e.stdout;if(n==="string")return e.stdout;if(Or.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${n}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},Ht=(e,t,n)=>n||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Ur=({templates:e,expressions:t,tokens:n,index:r,template:o})=>{let i=o??e.raw[r],a=i.split(vr).filter(Boolean),c=Ht(n,a,i.startsWith(" "));if(r===t.length)return c;let f=t[r],u=Array.isArray(f)?f.map(l=>qt(l)):[qt(f)];return Ht(c,u,i.endsWith(" "))},xe=(e,t)=>{let n=[];for(let[r,o]of e.entries())n=Ur({templates:e,expressions:t,tokens:n,index:r,template:o});return n};s();import{debuglog as Br}from"node:util";import jr from"node:process";var Xt=Br("execa").enabled,z=(e,t)=>String(e).padStart(t,"0"),$r=()=>{let e=new Date;return`${z(e.getHours(),2)}:${z(e.getMinutes(),2)}:${z(e.getSeconds(),2)}.${z(e.getMilliseconds(),3)}`},we=(e,{verbose:t})=>{t&&jr.stderr.write(`[${$r()}] ${e}
|
|
8
8
|
`)};var _r=1e3*1e3*100,Mr=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{let i=t?{...W.env,...e}:e;return n?dt({env:i,cwd:r,execPath:o}):i},Qt=(e,t,n={})=>{let r=Zt.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n={maxBuffer:_r,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||W.cwd(),execPath:W.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Xt,...n},n.env=Mr(n),n.stdio=bt(n),W.platform==="win32"&&Dr.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},O=(e,t,n)=>typeof t!="string"&&!Lr.isBuffer(t)?n===void 0?void 0:"":e.stripFinalNewline?ee(t):t;function kr(e,t,n){let r=Qt(e,t,n),o=Ee(e,t),i=be(e,t);we(i,r.options),Ct(r.options);let a;try{a=Ie.spawn(r.file,r.args,r.options)}catch(S){let h=new Ie.ChildProcess,g=Promise.reject(R({error:S,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ge(h,g),h}let c=Wt(a),f=At(a,r.options,c),u=Rt(a,r.options,f),l={isCanceled:!1};a.kill=wt.bind(null,a.kill.bind(a)),a.cancel=It.bind(null,a,l);let d=mt(async()=>{let[{error:S,exitCode:h,signal:g,timedOut:b},P,N,G]=await zt(a,r.options,u),Ae=O(r.options,P),Ce=O(r.options,N),Re=O(r.options,G);if(S||h!==0||g!==null){let Te=R({error:S,exitCode:h,signal:g,stdout:Ae,stderr:Ce,all:Re,command:o,escapedCommand:i,parsed:r,timedOut:b,isCanceled:l.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:a.killed});if(!r.options.reject)return Te;throw Te}return{command:o,escapedCommand:i,exitCode:0,stdout:Ae,stderr:Ce,all:Re,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Ft(a,r.options),a.all=Kt(a,r.options),Tt(a),ge(a,d),a}function Fr(e,t,n){let r=Qt(e,t,n),o=Ee(e,t),i=be(e,t);we(i,r.options);let a=kt(r.options),c;try{c=Ie.spawnSync(r.file,r.args,{...r.options,input:a})}catch(l){throw R({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}let f=O(r.options,c.stdout,c.error),u=O(r.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let l=R({stdout:f,stderr:u,error:c.error,signal:c.signal,exitCode:c.status,command:o,escapedCommand:i,parsed:r,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!r.options.reject)return l;throw l}return{command:o,escapedCommand:i,exitCode:0,stdout:f,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var Kr=({input:e,inputFile:t,stdio:n})=>e===void 0&&t===void 0&&n===void 0?{stdin:"inherit"}:{},Yt=(e={})=>({preferLocal:!0,...Kr(e),...e});function Jt(e){function t(n,...r){if(!Array.isArray(n))return Jt({...e,...n});let[o,...i]=xe(n,r);return kr(o,i,Yt(e))}return t.sync=(n,...r)=>{if(!Array.isArray(n))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=xe(n,r);return Fr(o,i,Yt(e))},t}var bs=Jt();s();var Cs=p.object({deploymentInfo:p.object({deploymentId:p.string(),deploymentUrl:p.string().url(),deploymentShortUrl:p.string().nullish(),deployedRevision:p.string(),isPublishPipelineDeployment:p.boolean()})}),Rs=p.object({jobId:p.string().uuid()}),Ts=p.object({result:p.object({npmDependenciesLockFile:p.string().url()})}),Os=p.object({deployment:p.object({deploymentPipelinesStatus:p.enum([w.IN_PROGRESS,w.SUCCESS,w.ERROR])})});export{kr as a,w as b,Cs as c,Rs as d,Ts as e,Os as f};
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-SZ35DFLD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as x,c as b,e as H,i as a}from"./chunk-UO4ZAUJK.js";var Be=b((en,Le)=>{"use strict";a();var ee=x("assert"),Ot=x("stream").Stream,Ft=x("util"),Tt=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function Oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function I(e,t,r,n,i){throw new ee.AssertionError({message:Ft.format("%s (%s) is required",e,t),actual:i===void 0?typeof n:i(n),expected:t,operator:r||"===",stackStartFunction:I.caller})}function Fe(e){return Object.prototype.toString.call(e).slice(8,-1)}function L(){}var J={bool:{check:function(e){return typeof e=="boolean"}},func:{check:function(e){return typeof e=="function"}},string:{check:function(e){return typeof e=="string"}},object:{check:function(e){return typeof e=="object"&&e!==null}},number:{check:function(e){return typeof e=="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof Ot},operator:"instanceof",actual:Fe},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:Fe},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:Fe},uuid:{check:function(e){return typeof e=="string"&&Tt.test(e)},operator:"isUUID"}};function xe(e){var t=Object.keys(J),r;return process.env.NODE_NDEBUG?r=L:r=function(n,i){n||I(i,"true",n)},t.forEach(function(n){if(e){r[n]=L;return}var i=J[n];r[n]=function(s,u){i.check(s)||I(u,n,i.operator,s,i.actual)}}),t.forEach(function(n){var i="optional"+Oe(n);if(e){r[i]=L;return}var s=J[n];r[i]=function(u,l){u!=null&&(s.check(u)||I(l,n,s.operator,u,s.actual))}}),t.forEach(function(n){var i="arrayOf"+Oe(n);if(e){r[i]=L;return}var s=J[n],u="["+n+"]";r[i]=function(l,g){Array.isArray(l)||I(g,u,s.operator,l,s.actual);var d;for(d=0;d<l.length;d++)s.check(l[d])||I(g,u,s.operator,l,s.actual)}}),t.forEach(function(n){var i="optionalArrayOf"+Oe(n);if(e){r[i]=L;return}var s=J[n],u="["+n+"]";r[i]=function(l,g){if(l!=null){Array.isArray(l)||I(g,u,s.operator,l,s.actual);var d;for(d=0;d<l.length;d++)s.check(l[d])||I(g,u,s.operator,l,s.actual)}}}),Object.keys(ee).forEach(function(n){if(n==="AssertionError"){r[n]=ee[n];return}if(e){r[n]=L;return}r[n]=ee[n]}),r._setExports=xe,r}Le.exports=xe(process.env.NODE_NDEBUG)});var He=b(te=>{"use strict";a();var Q=x("assert"),_t=x("util");te.sprintf=_e;te.printf=Et;te.fprintf=We;function _e(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(t),n=Array.prototype.slice.call(arguments,1),i=e,s,u,l,g,d,c,v,m,h,O="",_=1,E=0,k
|
|
4
|
-
Caused by: `+ze(r))}return t}});var Je=b(T=>{"use strict";a();function Ct(e){return Array.isArray?Array.isArray(e):re(e)==="[object Array]"}T.isArray=Ct;function Pt(e){return typeof e=="boolean"}T.isBoolean=Pt;function
|
|
5
|
-
caused by: `+y.fullStack(t):e.stack};y.errorFromList=function(e){return F.arrayOfObject(e,"errors"),e.length===0?null:(e.forEach(function(t){F.ok(C(t))}),e.length==1?e[0]:new B(e))};y.errorForEach=function(e,t){F.ok(C(e),"err must be an Error"),F.func(t,"func"),e instanceof B?e.errors().forEach(function(n){t(n)}):t(e)};function Y(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof Y?(r=Ee({argv:e,strict:!0}),n=r.options,y.call(this,n,"%s",r.shortmessage),this):(t=Object.create(Y.prototype),Y.apply(t,arguments),t)}ne.inherits(Y,y);function B(e){F.array(e,"list of errors"),F.ok(e.length>0,"must be at least one error"),this.ase_errors=e,y.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}ne.inherits(B,y);B.prototype.name="MultiError";B.prototype.errors=function(){return this.ase_errors.slice(0)};function w(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof w?(r=Ee({argv:e,strict:!1}),n=r.options,n.skipCauseMessage=!0,y.call(this,n,"%s",r.shortmessage),this):(t=Object.create(w.prototype),w.apply(t,e),t)}ne.inherits(w,y);w.prototype.name="WError";w.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(t+="; caused by "+this.jse_cause.toString()),t};w.prototype.cause=function(t){return C(t)&&(this.jse_cause=t),this.jse_cause}});var Pe=b(ie=>{"use strict";a();Object.defineProperty(ie,"__esModule",{value:!0});ie.isTypeImpl=void 0;function Bt(e){function t(r,n){if(r!=null)if(typeof r=="function"||typeof r=="string"){let i=r,s=typeof i=="string"?i:i.output.type;return u=>t(u,s)}else{let i=r,s=typeof n=="string"?n:n.output.type;return i!=null&&i[e??"type"]===s}else return!1}return{isType:t}}ie.isTypeImpl=Bt});var ke=b(S=>{"use strict";a();Object.defineProperty(S,"__esModule",{value:!0});S.HOI=S.isPromise=S.identityFunc=void 0;var Wt=(e={})=>e;S.identityFunc=Wt;function zt(e){return e!=null&&typeof e=="object"&&"then"in e&&typeof e.then=="function"}S.isPromise=zt;var Ht=()=>e=>e;S.HOI=Ht});var M=b(P=>{"use strict";a();Object.defineProperty(P,"__esModule",{value:!0});P.variantImpl=P.isVariantCreator=P.scopeType=void 0;var oe=ke(),Jt=(e,t)=>`${e}/${t}`;P.scopeType=Jt;function Kt(e){var t;return(t=e.split("/")[1])!==null&&t!==void 0?t:e}var Ae=Symbol("Variant Creator");function Ye(e){return Ae in e}P.isVariantCreator=Ye;function Qt(e){function t(l,g){return Object.keys(g).reduce((d,c)=>Object.assign(Object.assign({},d),{[c]:n((0,P.scopeType)(l,c),typeof g[c]=="function"?g[c]:oe.identityFunc)}),{})}function r(l){return Object.assign(Object.assign({},l),{[e]:Kt(l[e])})}function n(l,g){let d=(...v)=>{let m=(g??oe.identityFunc)(...v);return(0,oe.isPromise)(m)?m.then(h=>e in(h??{})?h:Object.assign(h??{},{[e]:l})):e in(m??{})?m:Object.assign(m??{},{[e]:l})};return Object.defineProperty(d,"name",{value:l,writable:!1}),Object.assign(d,{output:{key:e,type:l}},{[Ae]:Ae,toString:function(){return this.output.type}})}function i(l){return Object.entries(l).reduce((g,[d,c])=>{let v=typeof c=="function"?Ye(c)?c:n(d,c):n(d,oe.identityFunc);return Object.assign(Object.assign({},g),{[d]:v})},{})}function s(l){return l.map(g=>typeof g=="string"?n(g):g).reduce((g,d)=>{let c=typeof d=="string"?n(d):d;return Object.assign(Object.assign({},g),{[c.output.type]:c})},{})}function u(l){return Array.isArray(l)?s(l):i(l)}return{descope:r,scoped:t,variant:u,variantList:s,variantModule:i,variation:n}}P.variantImpl=Qt});var Ze=b(ae=>{"use strict";a();Object.defineProperty(ae,"__esModule",{value:!0});ae.DEFAULT_KEY=void 0;ae.DEFAULT_KEY="default"});var Ie=b(se=>{"use strict";a();Object.defineProperty(se,"__esModule",{value:!0});se.matchImpl=void 0;var Yt=M(),Xe=Ze();function Zt(e){let t=d=>c=>v=>r(v,c);function r(...d){var c,v;if(d.length===1){let[m]=d;return h=>r(h,m)}else if(d.length===2){let[m,h]=d,O=typeof m=="string"?s(m):m,_=typeof h=="function"?h(O):h,E=O==null?void 0:(0,Yt.isVariantCreator)(O)?O.output.type:O[e];if(O!=null&&E!==void 0&&E in _)return(c=_[E])===null||c===void 0?void 0:c.call(_,O);if(Xe.DEFAULT_KEY in _)return(v=_[Xe.DEFAULT_KEY])===null||v===void 0?void 0:v.call(_,O)}}let n=d=>()=>d,i=s;function s(d){return{[e]:d}}function u(d){let c=Object.keys(d).reduce((v,m)=>Object.assign(Object.assign({},v),{[m]:()=>d[m]}),{});return v=>c}function l(d,c){return v=>Object.assign(Object.assign({},d),{default:c})}function g(d,c){return v=>Object.assign(Object.assign({},d),{default:c})}return{match:r,ofLiteral:s,onLiteral:i,otherwise:l,partial:n,prematch:t,lookup:u,withFallback:g}}se.matchImpl=Zt});var $e=b(ue=>{"use strict";a();Object.defineProperty(ue,"__esModule",{value:!0});ue.typesImpl=void 0;var Xt=M();function $t(e){function t(n){return Array.isArray(n)?n.length&&(0,Xt.isVariantCreator)(n[0])?n.map(i=>i.output.type):n.map(i=>i[e]):Object.values(n).map(i=>i.output.type)}function r(n){return new Proxy({},{get:(i,s)=>s})}return{types:t,inferTypes:r}}ue.typesImpl=$t});var we=b(ce=>{"use strict";a();Object.defineProperty(ce,"__esModule",{value:!0});ce.flagsImpl=void 0;function er(e){function t(r){return r.reduce((n,i)=>Object.assign(Object.assign({},n),{[i[e]]:i}),Object.create(null))}return{flags:t}}ce.flagsImpl=er});var et=b(le=>{"use strict";a();Object.defineProperty(le,"__esModule",{value:!0});le.isOfVariantImpl=void 0;function tr(e){function t(...r){if(r.length===1){let[n]=r;return i=>i!=null&&Object.values(n).some(s=>s.output.type===i[e])}else if(r.length===2){let[n,i]=r;return n!=null&&Object.values(i).some(s=>s.output.type===n[e])}return!1}return{isOfVariant:t}}le.isOfVariantImpl=tr});var tt=b(R=>{"use strict";a();Object.defineProperty(R,"__esModule",{value:!0});R.remoteImpl=R.CompareResult=void 0;var rr=Pe(),nr=Ie(),ir=M(),or;(function(e){e[e.Lesser=-1]="Lesser",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater"})(or=R.CompareResult||(R.CompareResult={}));function ar(e){let{isType:t}=(0,rr.isTypeImpl)(e),{match:r}=(0,nr.matchImpl)(e),{variantList:n}=(0,ir.variantImpl)(e);function i(c){return Object.keys(c).reduce((m,h)=>Object.assign(Object.assign({},m),{[h]:t(h)}),{})}function s(c){return{key:e,is:i(c),new:c,match:r}}function u(c){return typeof c=="string"?c:typeof c=="function"?c.output.type:c[e]}function l(c,v){let h=s(c),O=v.map(u);return Object.assign(Object.assign({},h),{length:v.length,compare:(_,E)=>{let k=O.findIndex(je=>je===u(_)),A=O.findIndex(je=>je===u(E)),$=k-A;return $===0?$:$/Math.abs($)},get(_){let E=this.types[_];return this.new[E]},index:_=>O.findIndex(E=>E===u(_)),types:O})}function g(c){let v=n(c);return l(v,c)}function d(c,v){return Array.isArray(c)?g(c):l(c,v)}return{remote:s,sequence:d}}R.remoteImpl=ar});var Se=b(G=>{"use strict";a();Object.defineProperty(G,"__esModule",{value:!0});G.typedImpl=G.pass=void 0;var sr=e=>e;G.pass=sr;function ur(e){function t(r){return typeof r=="function"?r(G.pass):r}return{typed:t}}G.typedImpl=ur});var Me=b(q=>{"use strict";a();Object.defineProperty(q,"__esModule",{value:!0});q.unpack=q.just=q.constant=void 0;function rt(e){return()=>e}q.constant=rt;q.just=rt;var cr=e=>e.payload;q.unpack=cr});var nt=b(D=>{"use strict";a();Object.defineProperty(D,"__esModule",{value:!0});D.matcherImpl=D.Matcher=D.tableToHandler=void 0;var lr=Me(),pr=M();function qe(e){return Object.keys(e).reduce((t,r)=>{let n=r;return Object.assign(Object.assign({},t),{[n]:(0,lr.just)(e[n])})},{})}D.tableToHandler=qe;var pe=class e{constructor(t,r,n){this.target=t,this.key=r,this.handler=n,this.complete=i=>{var s,u;if(this.target!=null&&this.target[this.key]in this.handler)return(u=(s=this.handler)[this.target[this.key]])===null||u===void 0?void 0:u.call(s,this.target);if(i?.withFallback!=null)return i.withFallback(this.target)}}execute(){let t=this.handler[this.target[this.key]];return t?.(this.target)}exhaust(t){var r;let n=Object.assign(Object.assign({},this.handler),t);return(r=n[this.target[this.key]])===null||r===void 0?void 0:r.call(n,this.target)}remaining(t){return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}else(t){var r,n;return this.target[this.key]in this.handler?(n=(r=this.handler)[this.target[this.key]])===null||n===void 0?void 0:n.call(r,this.target):t(this.target)}register(t){let r=Object.assign(Object.assign({},this.handler),qe(t));return new e(this.target,this.key,r)}lookup(t){var r;let n=Object.assign(Object.assign({},this.handler),qe(t));return(r=n[this.target[this.key]])===null||r===void 0?void 0:r.call(n,this.target)}with(t){return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}when(t,r){if(r!=null){let i=(Array.isArray(t)?t:[t]).reduce((s,u)=>{let l=typeof u=="string"?u:(0,pr.isVariantCreator)(u)?u.output.type:void 0;return l!=null?Object.assign(Object.assign({},s),{[l]:r}):s},{});return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),i))}else return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}};D.Matcher=pe;function dr(e){function t(r){let n=typeof r=="string"?{[e]:r}:r;return new pe(n,e,{})}return{matcher:t}}D.matcherImpl=dr});var De=b(de=>{"use strict";a();Object.defineProperty(de,"__esModule",{value:!0});de.variantCosmos=void 0;var fr=Pe(),gr=Ie(),mr=M(),yr=$e(),hr=we(),vr=et(),br=tt(),jr=Se(),Or=nt();function Fr({key:e}){let{isType:t}=(0,fr.isTypeImpl)(e),{flags:r}=(0,hr.flagsImpl)(e);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:e,isType:t,flags:r},(0,vr.isOfVariantImpl)(e)),(0,gr.matchImpl)(e)),(0,Or.matcherImpl)(e)),(0,br.remoteImpl)(e)),(0,jr.typedImpl)(e)),(0,yr.typesImpl)(e)),(0,mr.variantImpl)(e))}de.variantCosmos=Fr});var Ne=b(p=>{"use strict";a();var j;Object.defineProperty(p,"__esModule",{value:!0});p.withFallback=p.variation=p.variantModule=p.variantList=p.variant=p.types=p.typed=p.lookup=p.sequence=p.scoped=p.remote=p.prematch=p.partial=p.otherwise=p.onLiteral=p.ofLiteral=p.matcher=p.match=p.isType=p.isOfVariant=p.inferTypes=p.flags=p.descope=void 0;var Tr=De();j=(0,Tr.variantCosmos)({key:"type"}),p.descope=j.descope,p.flags=j.flags,p.inferTypes=j.inferTypes,p.isOfVariant=j.isOfVariant,p.isType=j.isType,p.match=j.match,p.matcher=j.matcher,p.ofLiteral=j.ofLiteral,p.onLiteral=j.onLiteral,p.otherwise=j.otherwise,p.partial=j.partial,p.prematch=j.prematch,p.remote=j.remote,p.scoped=j.scoped,p.sequence=j.sequence,p.lookup=j.lookup,p.typed=j.typed,p.types=j.types,p.variant=j.variant,p.variantList=j.variantList,p.variantModule=j.variantModule,p.variation=j.variation,p.withFallback=j.withFallback});var it=b(fe=>{"use strict";a();Object.defineProperty(fe,"__esModule",{value:!0});fe.augment=void 0;var _r=Ne(),Er=M();function Cr(e,t){return Object.keys(e).reduce((r,n)=>{let i=e[n],s=(0,Er.isVariantCreator)(i)?(0,_r.variation)(i.output.type,(...u)=>{let l=i(...u);return Object.assign(Object.assign({},t(l)),l)}):(...u)=>{let l=e[n],g=typeof l=="function"?l(...u):{};return Object.assign(Object.assign({},t(g)),g)};return Object.assign(Object.assign({},r),{[n]:s})},{})}fe.augment=Cr});var ot=b(ge=>{"use strict";a();Object.defineProperty(ge,"__esModule",{value:!0});ge.constrained=void 0;function Pr(e,t){return t}ge.constrained=Pr});var at=b(me=>{"use strict";a();Object.defineProperty(me,"__esModule",{value:!0});me.construct=void 0;function kr(e){return(...t)=>new e(t)}me.construct=kr});var ut=b(U=>{"use strict";a();Object.defineProperty(U,"__esModule",{value:!0});U.Alpha=U.onTerms=void 0;var Ar=we(),Ir=M(),wr=Symbol("VARIANT GENERIC TEMPLATE");function Sr(e){return Object.assign(Object.assign({},e(U.Alpha)),{[wr]:void 0})}U.onTerms=Sr;var st="__term",Mr=(0,Ir.variantImpl)(st).variant,qr=(0,Ar.flagsImpl)(st).flags,Dr=Mr(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]);U.Alpha=qr(Object.values(Dr).map(e=>e()))});var ct=b(W=>{"use strict";a();Object.defineProperty(W,"__esModule",{value:!0});W.typeMap=W.typeCatalog=void 0;function Nr(e){return Object.values(e).reduce((t,r)=>Object.assign(Object.assign({},t),{[r.output.type]:r.output.type}),{})}W.typeCatalog=Nr;function Vr(e){return Object.keys(e).reduce((t,r)=>Object.assign(Object.assign({},t),{[r]:e[r].output.type}),{})}W.typeMap=Vr});var pt=b(z=>{"use strict";a();Object.defineProperty(z,"__esModule",{value:!0});z.literalist=z.catalog=void 0;function lt(e,t){return Array.isArray(e)?e.reduce((r,n,i)=>Object.assign(Object.assign({},r),{[n]:t!=null?t(n,i):n}),{}):e}z.catalog=lt;z.literalist=lt});var dt=b(ye=>{"use strict";a();Object.defineProperty(ye,"__esModule",{value:!0});ye.patterned=void 0;function Rr(e,t){return t}ye.patterned=Rr});var ft=b(N=>{"use strict";a();Object.defineProperty(N,"__esModule",{value:!0});N.nil=N.payload=N.fields=void 0;function Gr(e={}){return(...t)=>{let[r]=t;return Object.assign(Object.assign({},e),r)}}N.fields=Gr;function Ur(e){return t=>({payload:t})}N.payload=Ur;var xr=()=>({});N.nil=xr});var yt=b(f=>{"use strict";a();Object.defineProperty(f,"__esModule",{value:!0});f.payload=f.nil=f.fields=f.HOI=f.pass=f.patterned=f.unpack=f.just=f.constant=f.literalist=f.catalog=f.typeCatalog=f.typeMap=f.onTerms=f.variantCosmos=f.construct=f.constrained=f.augment=void 0;var Lr=it();Object.defineProperty(f,"augment",{enumerable:!0,get:function(){return Lr.augment}});var Br=ot();Object.defineProperty(f,"constrained",{enumerable:!0,get:function(){return Br.constrained}});var Wr=at();Object.defineProperty(f,"construct",{enumerable:!0,get:function(){return Wr.construct}});var zr=De();Object.defineProperty(f,"variantCosmos",{enumerable:!0,get:function(){return zr.variantCosmos}});var Hr=ut();Object.defineProperty(f,"onTerms",{enumerable:!0,get:function(){return Hr.onTerms}});var gt=ct();Object.defineProperty(f,"typeMap",{enumerable:!0,get:function(){return gt.typeMap}});Object.defineProperty(f,"typeCatalog",{enumerable:!0,get:function(){return gt.typeCatalog}});var mt=pt();Object.defineProperty(f,"catalog",{enumerable:!0,get:function(){return mt.catalog}});Object.defineProperty(f,"literalist",{enumerable:!0,get:function(){return mt.literalist}});var Ve=Me();Object.defineProperty(f,"constant",{enumerable:!0,get:function(){return Ve.constant}});Object.defineProperty(f,"just",{enumerable:!0,get:function(){return Ve.just}});Object.defineProperty(f,"unpack",{enumerable:!0,get:function(){return Ve.unpack}});var Jr=dt();Object.defineProperty(f,"patterned",{enumerable:!0,get:function(){return Jr.patterned}});var Kr=Se();Object.defineProperty(f,"pass",{enumerable:!0,get:function(){return Kr.pass}});var Qr=ke();Object.defineProperty(f,"HOI",{enumerable:!0,get:function(){return Qr.HOI}});var Re=ft();Object.defineProperty(f,"fields",{enumerable:!0,get:function(){return Re.fields}});Object.defineProperty(f,"nil",{enumerable:!0,get:function(){return Re.nil}});Object.defineProperty(f,"payload",{enumerable:!0,get:function(){return Re.payload}})});var he=b(V=>{"use strict";a();var Yr=V&&V.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ht=V&&V.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Yr(t,e,r)};Object.defineProperty(V,"__esModule",{value:!0});ht(yt(),V);ht(Ne(),V)});a();a();var Qe=H(Ce(),1),{WError:Lt}=Qe.default,Z=class extends Lt{cliCode;constructor(t){let r=t.cause instanceof Error?t.cause:new Error(JSON.stringify(t.cause));super({name:t.code.type,cause:r,info:t.info},t.code.type),this.cliCode=t.code,this.name=t.code.type}};a();var o=H(he(),1),ve=(0,o.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,o.fields)(),UnknownFailure:(0,o.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,o.fields)(),FailedToCreateVersion:{},FailedToReadCache:(0,o.fields)(),FailedToWriteCache:(0,o.fields)(),UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},FailedToGetPlacements:{},FailedToGetAppSecret:{},FailedToCreateTunnel:{},FailedToDeleteTunnel:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:(0,o.fields)(),InvalidResponseData:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},InvalidGetDeploymentResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},ViteFileNotFoundInOutput:(0,o.fields)(),FailedToCreateBackendDeployment:{},FailedToUpdateBackendDeployment:{},InvalidDeploymentUrl:(0,o.fields)(),FailedToGetBackendDeployment:{},FailedToDeployBackend:{},FailedToGetUserInfo:{},FailedToGetMyAccount:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToGetRequiredApps:{},FailedToQueryApps:{},FailedToGetMarketListing:{},FailedToAddRequiredApp:{},FailedToGetAppValidity:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},FailedToPublishDeployment:{},FailedToMarkDeploymentAsPermanent:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToCreateComponents:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{},FailedToCheckDeprecatedStatus:{},FailedToCreateSiteOverride:{},FailedToGetDeploymentStatus:{},FailedToGetPipelineErrorInfo:{},FailedToGenerateAppMarketQueryParam:{},InvalidDependenciesJsonSchemaError:(0,o.fields)(),FailedToParseLog:{},FailedToConnectToLogsService:{},LogsConnectionTimeout:{},FailedToFetchAppForVersion:{},InvalidSiteOverrideID:{},FailedToFindEsbuildOutputFile:{},FailedOptimizingWithEsbuild:(0,o.fields)(),FailedReadingEsbuildOutputFile:{},InvalidGitUrl:(0,o.fields)(),TemplatePathNotFound:(0,o.fields)(),FailedToQueryCliAppTemplates:{},FailedToCreateDevCenterAppFromTemplate:{},FailedToGetSiteInstalledApps:{},FailedToGetClientSpecMap:{}}),Ge=(0,o.variant)({LatestVersionOfCreateAppRequired:(0,o.fields)(),FailedToCreateProjectFolder:(0,o.fields)(),EmptyDirectoryRequiredAppGeneration:(0,o.fields)(),InvalidNewPackageName:(0,o.fields)(),UnsupportedPackageManager:(0,o.fields)(),UnsupportedPackageManagerWorkspaces:(0,o.fields)(),FailedAddingPackageToWorkspace:{},SitePermissionDenied:(0,o.fields)(),AppPermissionDenied:(0,o.fields)(),BuiltProjectNeeded:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,o.fields)(),FailedToWriteJson:(0,o.fields)(),InvalidJsonFile:(0,o.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,o.fields)(),DashboardPageConfigNotFound:(0,o.fields)(),EmbeddedScriptConfigNotFound:(0,o.fields)(),NoExtensionsFound:{},CustomElementConfigNotFound:(0,o.fields)(),SitePluginConfigNotFound:(0,o.fields)(),NoPagesDirectoryFound:(0,o.fields)(),DashboardPluginConfigNotFound:(0,o.fields)(),DashboardMenuPluginConfigNotFound:(0,o.fields)(),ServicePluginConfigNotFound:(0,o.fields)(),DashboardModalConfigNotFound:(0,o.fields)(),InvalidConfigSchemaError:(0,o.fields)(),InvalidParamsOverrideSchemaError:(0,o.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,o.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,o.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,o.fields)(),FailedToSaveDevelopmentSite:(0,o.fields)(),FailedToBuildApp:(0,o.fields)(),FailedToInitializeGitRepo:(0,o.fields)(),FailedToInstallDependencies:(0,o.fields)(),FailedToCommitChanges:(0,o.fields)(),FailedToDeleteAuthData:(0,o.fields)(),FailedToDeleteLegacyAuthData:(0,o.fields)(),FailedToSaveAuthData:(0,o.fields)(),FailedToSaveApiKeyAuthData:(0,o.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,o.fields)(),FailedToRenewAuthTokenRefreshTokenRevoked:{},FailedToInstallPackage:(0,o.fields)(),FailedToInstallPackages:(0,o.fields)(),FailedToUninstallPackage:(0,o.fields)(),FailedMigrationToAnyNpm:{},DeprecatedVersion:(0,o.fields)(),FailedToCloneRepo:(0,o.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,o.fields)(),InvalidApiKey:{},CliAppVersionMismatch:(0,o.fields)(),NetworkError:(0,o.fields)(),AppForVersionNotFound:(0,o.fields)(),UnknownServicePlugin:(0,o.fields)(),InvalidServicePluginFolder:(0,o.fields)(),FailedToGetLogsTopology:{},FailedInstallCloudflareNoAccess:(0,o.fields)(),CliAppTemplateNotFound:(0,o.fields)(),LocalTemplatePathNotFound:(0,o.fields)()}),Zr=(0,o.variant)({InvalidDashboardPageRoute:(0,o.fields)(),InvalidEmbeddedScriptFolder:(0,o.fields)(),InvalidEmbeddedScriptTemplate:(0,o.fields)(),InvalidCustomElementTagName:(0,o.fields)(),InvalidSiteFrontendPackageVersion:(0,o.fields)(),InvalidServicePluginImplementation:(0,o.fields)()}),X=(0,o.variant)({...ve,...Ge,...Zr});a();var Ue=H(he(),1);function be(e){return e&&typeof e=="object"&&"cliCode"in e?(0,Ue.isOfVariant)(e.cliCode,X):!1}function Xr(e){return(0,Ue.isOfVariant)(e.cliCode,ve)}a();var vt=H(he(),1),bt=H(Ce(),1);function jt(e){if(be(e)&&(0,vt.isOfVariant)(e.cliCode,Ge))return e;let t=bt.default.cause(e);return t?jt(t):null}function $r(e){let t=be(e)?e:new Z({code:X.UnknownFailure({error:e})});return jt(t)??t}export{he as a,Ce as b,Z as c,ve as d,X as e,be as f,Xr as g,$r as h};
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as x,c as b,e as H,i as a}from"./chunk-UO4ZAUJK.js";var Be=b((en,Le)=>{"use strict";a();var ee=x("assert"),Ot=x("stream").Stream,Ft=x("util"),Tt=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function Oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function I(e,t,r,n,i){throw new ee.AssertionError({message:Ft.format("%s (%s) is required",e,t),actual:i===void 0?typeof n:i(n),expected:t,operator:r||"===",stackStartFunction:I.caller})}function Fe(e){return Object.prototype.toString.call(e).slice(8,-1)}function L(){}var J={bool:{check:function(e){return typeof e=="boolean"}},func:{check:function(e){return typeof e=="function"}},string:{check:function(e){return typeof e=="string"}},object:{check:function(e){return typeof e=="object"&&e!==null}},number:{check:function(e){return typeof e=="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof Ot},operator:"instanceof",actual:Fe},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:Fe},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:Fe},uuid:{check:function(e){return typeof e=="string"&&Tt.test(e)},operator:"isUUID"}};function xe(e){var t=Object.keys(J),r;return process.env.NODE_NDEBUG?r=L:r=function(n,i){n||I(i,"true",n)},t.forEach(function(n){if(e){r[n]=L;return}var i=J[n];r[n]=function(s,u){i.check(s)||I(u,n,i.operator,s,i.actual)}}),t.forEach(function(n){var i="optional"+Oe(n);if(e){r[i]=L;return}var s=J[n];r[i]=function(u,l){u!=null&&(s.check(u)||I(l,n,s.operator,u,s.actual))}}),t.forEach(function(n){var i="arrayOf"+Oe(n);if(e){r[i]=L;return}var s=J[n],u="["+n+"]";r[i]=function(l,g){Array.isArray(l)||I(g,u,s.operator,l,s.actual);var d;for(d=0;d<l.length;d++)s.check(l[d])||I(g,u,s.operator,l,s.actual)}}),t.forEach(function(n){var i="optionalArrayOf"+Oe(n);if(e){r[i]=L;return}var s=J[n],u="["+n+"]";r[i]=function(l,g){if(l!=null){Array.isArray(l)||I(g,u,s.operator,l,s.actual);var d;for(d=0;d<l.length;d++)s.check(l[d])||I(g,u,s.operator,l,s.actual)}}}),Object.keys(ee).forEach(function(n){if(n==="AssertionError"){r[n]=ee[n];return}if(e){r[n]=L;return}r[n]=ee[n]}),r._setExports=xe,r}Le.exports=xe(process.env.NODE_NDEBUG)});var He=b(te=>{"use strict";a();var Q=x("assert"),_t=x("util");te.sprintf=_e;te.printf=Et;te.fprintf=We;function _e(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),r=new RegExp(t),n=Array.prototype.slice.call(arguments,1),i=e,s,u,l,g,d,c,v,m,h,O="",_=1,E=0,A,k;for(Q.equal("string",typeof i,"first argument must be a format string");(h=r.exec(i))!==null;){if(O+=h[1],i=i.substring(h[0].length),k=h[0].substring(h[1].length),A=E+h[1].length+1,E+=h[0].length,s=h[2]||"",u=h[3]||0,l=h[4]||"",g=h[6],d=!1,v=!1,c=" ",g=="%"){O+="%";continue}if(n.length===0)throw K(e,A,k,"has no matching argument (too few arguments passed)");if(m=n.shift(),_++,s.match(/[\' #]/))throw K(e,A,k,"uses unsupported flags");if(l.length>0)throw K(e,A,k,"uses non-zero precision (not supported)");switch(s.match(/-/)&&(d=!0),s.match(/0/)&&(c="0"),s.match(/\+/)&&(v=!0),g){case"s":if(m==null)throw K(e,A,k,"attempted to print undefined or null as a string (argument "+_+" to sprintf)");O+=Te(c,u,d,m.toString());break;case"d":m=Math.floor(m);case"f":v=v&&m>0?"+":"",O+=v+Te(c,u,d,m.toString());break;case"x":O+=Te(c,u,d,m.toString(16));break;case"j":u===0&&(u=10),O+=_t.inspect(m,!1,u);break;case"r":O+=ze(m);break;default:throw K(e,A,k,"is not supported")}}return O+=i,O}function K(e,t,r,n){return Q.equal(typeof e,"string"),Q.equal(typeof r,"string"),Q.equal(typeof t,"number"),Q.equal(typeof n,"string"),new Error('format string "'+e+'": conversion specifier "'+r+'" at character '+t+" "+n)}function Et(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout),We.apply(null,e)}function We(e){var t=Array.prototype.slice.call(arguments,1);return e.write(_e.apply(this,t))}function Te(e,t,r,n){for(var i=n;i.length<t;)r?i+=e:i=e+i;return i}function ze(e){var t;if(!(e instanceof Error))throw new Error(_e("invalid type for %%r: %j",e));if(t="EXCEPTION: "+e.constructor.name+": "+e.stack,e.cause&&typeof e.cause=="function"){var r=e.cause();r&&(t+=`
|
|
4
|
+
Caused by: `+ze(r))}return t}});var Je=b(T=>{"use strict";a();function Ct(e){return Array.isArray?Array.isArray(e):re(e)==="[object Array]"}T.isArray=Ct;function Pt(e){return typeof e=="boolean"}T.isBoolean=Pt;function At(e){return e===null}T.isNull=At;function kt(e){return e==null}T.isNullOrUndefined=kt;function It(e){return typeof e=="number"}T.isNumber=It;function St(e){return typeof e=="string"}T.isString=St;function wt(e){return typeof e=="symbol"}T.isSymbol=wt;function Mt(e){return e===void 0}T.isUndefined=Mt;function qt(e){return re(e)==="[object RegExp]"}T.isRegExp=qt;function Dt(e){return typeof e=="object"&&e!==null}T.isObject=Dt;function Nt(e){return re(e)==="[object Date]"}T.isDate=Nt;function Vt(e){return re(e)==="[object Error]"||e instanceof Error}T.isError=Vt;function Rt(e){return typeof e=="function"}T.isFunction=Rt;function Gt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}T.isPrimitive=Gt;T.isBuffer=Buffer.isBuffer;function re(e){return Object.prototype.toString.call(e)}});var Ce=b((sn,Ke)=>{"use strict";a();var F=Be(),ne=x("util"),Ut=He(),C=Je().isError,xt=Ut.sprintf;Ke.exports=y;y.VError=y;y.SError=Y;y.WError=S;y.MultiError=B;function Ee(e){var t,r,n,i,s;if(F.object(e,"args"),F.bool(e.strict,"args.strict"),F.array(e.argv,"args.argv"),t=e.argv,t.length===0)r={},n=[];else if(C(t[0]))r={cause:t[0]},n=t.slice(1);else if(typeof t[0]=="object"){r={};for(s in t[0])r[s]=t[0][s];n=t.slice(1)}else F.string(t[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),r={},n=t;return F.object(r),!r.strict&&!e.strict&&(n=n.map(function(u){return u===null?"null":u===void 0?"undefined":u})),n.length===0?i="":i=xt.apply(null,n),{options:r,shortmessage:i}}function y(){var e,t,r,n,i,s,u;if(e=Array.prototype.slice.call(arguments,0),!(this instanceof y))return t=Object.create(y.prototype),y.apply(t,arguments),t;if(r=Ee({argv:e,strict:!1}),r.options.name&&(F.string(r.options.name,`error's "name" must be a string`),this.name=r.options.name),this.jse_shortmsg=r.shortmessage,s=r.shortmessage,n=r.options.cause,n&&(F.ok(C(n),"cause is not an Error"),this.jse_cause=n,r.options.skipCauseMessage||(s+=": "+n.message)),this.jse_info={},r.options.info)for(u in r.options.info)this.jse_info[u]=r.options.info[u];return this.message=s,Error.call(this,s),Error.captureStackTrace&&(i=r.options.constructorOpt||this.constructor,Error.captureStackTrace(this,i)),this}ne.inherits(y,Error);y.prototype.name="VError";y.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),t};y.prototype.cause=function(){var t=y.cause(this);return t===null?void 0:t};y.cause=function(e){return F.ok(C(e),"err must be an Error"),C(e.jse_cause)?e.jse_cause:null};y.info=function(e){var t,r,n;if(F.ok(C(e),"err must be an Error"),r=y.cause(e),r!==null?t=y.info(r):t={},typeof e.jse_info=="object"&&e.jse_info!==null)for(n in e.jse_info)t[n]=e.jse_info[n];return t};y.findCauseByName=function(e,t){var r;for(F.ok(C(e),"err must be an Error"),F.string(t,"name"),F.ok(t.length>0,"name cannot be empty"),r=e;r!==null;r=y.cause(r))if(F.ok(C(r)),r.name==t)return r;return null};y.hasCauseWithName=function(e,t){return y.findCauseByName(e,t)!==null};y.fullStack=function(e){F.ok(C(e),"err must be an Error");var t=y.cause(e);return t?e.stack+`
|
|
5
|
+
caused by: `+y.fullStack(t):e.stack};y.errorFromList=function(e){return F.arrayOfObject(e,"errors"),e.length===0?null:(e.forEach(function(t){F.ok(C(t))}),e.length==1?e[0]:new B(e))};y.errorForEach=function(e,t){F.ok(C(e),"err must be an Error"),F.func(t,"func"),e instanceof B?e.errors().forEach(function(n){t(n)}):t(e)};function Y(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof Y?(r=Ee({argv:e,strict:!0}),n=r.options,y.call(this,n,"%s",r.shortmessage),this):(t=Object.create(Y.prototype),Y.apply(t,arguments),t)}ne.inherits(Y,y);function B(e){F.array(e,"list of errors"),F.ok(e.length>0,"must be at least one error"),this.ase_errors=e,y.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}ne.inherits(B,y);B.prototype.name="MultiError";B.prototype.errors=function(){return this.ase_errors.slice(0)};function S(){var e,t,r,n;return e=Array.prototype.slice.call(arguments,0),this instanceof S?(r=Ee({argv:e,strict:!1}),n=r.options,n.skipCauseMessage=!0,y.call(this,n,"%s",r.shortmessage),this):(t=Object.create(S.prototype),S.apply(t,e),t)}ne.inherits(S,y);S.prototype.name="WError";S.prototype.toString=function(){var t=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(t+="; caused by "+this.jse_cause.toString()),t};S.prototype.cause=function(t){return C(t)&&(this.jse_cause=t),this.jse_cause}});var Pe=b(ie=>{"use strict";a();Object.defineProperty(ie,"__esModule",{value:!0});ie.isTypeImpl=void 0;function Bt(e){function t(r,n){if(r!=null)if(typeof r=="function"||typeof r=="string"){let i=r,s=typeof i=="string"?i:i.output.type;return u=>t(u,s)}else{let i=r,s=typeof n=="string"?n:n.output.type;return i!=null&&i[e??"type"]===s}else return!1}return{isType:t}}ie.isTypeImpl=Bt});var Ae=b(w=>{"use strict";a();Object.defineProperty(w,"__esModule",{value:!0});w.HOI=w.isPromise=w.identityFunc=void 0;var Wt=(e={})=>e;w.identityFunc=Wt;function zt(e){return e!=null&&typeof e=="object"&&"then"in e&&typeof e.then=="function"}w.isPromise=zt;var Ht=()=>e=>e;w.HOI=Ht});var M=b(P=>{"use strict";a();Object.defineProperty(P,"__esModule",{value:!0});P.variantImpl=P.isVariantCreator=P.scopeType=void 0;var oe=Ae(),Jt=(e,t)=>`${e}/${t}`;P.scopeType=Jt;function Kt(e){var t;return(t=e.split("/")[1])!==null&&t!==void 0?t:e}var ke=Symbol("Variant Creator");function Ye(e){return ke in e}P.isVariantCreator=Ye;function Qt(e){function t(l,g){return Object.keys(g).reduce((d,c)=>Object.assign(Object.assign({},d),{[c]:n((0,P.scopeType)(l,c),typeof g[c]=="function"?g[c]:oe.identityFunc)}),{})}function r(l){return Object.assign(Object.assign({},l),{[e]:Kt(l[e])})}function n(l,g){let d=(...v)=>{let m=(g??oe.identityFunc)(...v);return(0,oe.isPromise)(m)?m.then(h=>e in(h??{})?h:Object.assign(h??{},{[e]:l})):e in(m??{})?m:Object.assign(m??{},{[e]:l})};return Object.defineProperty(d,"name",{value:l,writable:!1}),Object.assign(d,{output:{key:e,type:l}},{[ke]:ke,toString:function(){return this.output.type}})}function i(l){return Object.entries(l).reduce((g,[d,c])=>{let v=typeof c=="function"?Ye(c)?c:n(d,c):n(d,oe.identityFunc);return Object.assign(Object.assign({},g),{[d]:v})},{})}function s(l){return l.map(g=>typeof g=="string"?n(g):g).reduce((g,d)=>{let c=typeof d=="string"?n(d):d;return Object.assign(Object.assign({},g),{[c.output.type]:c})},{})}function u(l){return Array.isArray(l)?s(l):i(l)}return{descope:r,scoped:t,variant:u,variantList:s,variantModule:i,variation:n}}P.variantImpl=Qt});var Ze=b(ae=>{"use strict";a();Object.defineProperty(ae,"__esModule",{value:!0});ae.DEFAULT_KEY=void 0;ae.DEFAULT_KEY="default"});var Ie=b(se=>{"use strict";a();Object.defineProperty(se,"__esModule",{value:!0});se.matchImpl=void 0;var Yt=M(),Xe=Ze();function Zt(e){let t=d=>c=>v=>r(v,c);function r(...d){var c,v;if(d.length===1){let[m]=d;return h=>r(h,m)}else if(d.length===2){let[m,h]=d,O=typeof m=="string"?s(m):m,_=typeof h=="function"?h(O):h,E=O==null?void 0:(0,Yt.isVariantCreator)(O)?O.output.type:O[e];if(O!=null&&E!==void 0&&E in _)return(c=_[E])===null||c===void 0?void 0:c.call(_,O);if(Xe.DEFAULT_KEY in _)return(v=_[Xe.DEFAULT_KEY])===null||v===void 0?void 0:v.call(_,O)}}let n=d=>()=>d,i=s;function s(d){return{[e]:d}}function u(d){let c=Object.keys(d).reduce((v,m)=>Object.assign(Object.assign({},v),{[m]:()=>d[m]}),{});return v=>c}function l(d,c){return v=>Object.assign(Object.assign({},d),{default:c})}function g(d,c){return v=>Object.assign(Object.assign({},d),{default:c})}return{match:r,ofLiteral:s,onLiteral:i,otherwise:l,partial:n,prematch:t,lookup:u,withFallback:g}}se.matchImpl=Zt});var $e=b(ue=>{"use strict";a();Object.defineProperty(ue,"__esModule",{value:!0});ue.typesImpl=void 0;var Xt=M();function $t(e){function t(n){return Array.isArray(n)?n.length&&(0,Xt.isVariantCreator)(n[0])?n.map(i=>i.output.type):n.map(i=>i[e]):Object.values(n).map(i=>i.output.type)}function r(n){return new Proxy({},{get:(i,s)=>s})}return{types:t,inferTypes:r}}ue.typesImpl=$t});var Se=b(ce=>{"use strict";a();Object.defineProperty(ce,"__esModule",{value:!0});ce.flagsImpl=void 0;function er(e){function t(r){return r.reduce((n,i)=>Object.assign(Object.assign({},n),{[i[e]]:i}),Object.create(null))}return{flags:t}}ce.flagsImpl=er});var et=b(le=>{"use strict";a();Object.defineProperty(le,"__esModule",{value:!0});le.isOfVariantImpl=void 0;function tr(e){function t(...r){if(r.length===1){let[n]=r;return i=>i!=null&&Object.values(n).some(s=>s.output.type===i[e])}else if(r.length===2){let[n,i]=r;return n!=null&&Object.values(i).some(s=>s.output.type===n[e])}return!1}return{isOfVariant:t}}le.isOfVariantImpl=tr});var tt=b(R=>{"use strict";a();Object.defineProperty(R,"__esModule",{value:!0});R.remoteImpl=R.CompareResult=void 0;var rr=Pe(),nr=Ie(),ir=M(),or;(function(e){e[e.Lesser=-1]="Lesser",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater"})(or=R.CompareResult||(R.CompareResult={}));function ar(e){let{isType:t}=(0,rr.isTypeImpl)(e),{match:r}=(0,nr.matchImpl)(e),{variantList:n}=(0,ir.variantImpl)(e);function i(c){return Object.keys(c).reduce((m,h)=>Object.assign(Object.assign({},m),{[h]:t(h)}),{})}function s(c){return{key:e,is:i(c),new:c,match:r}}function u(c){return typeof c=="string"?c:typeof c=="function"?c.output.type:c[e]}function l(c,v){let h=s(c),O=v.map(u);return Object.assign(Object.assign({},h),{length:v.length,compare:(_,E)=>{let A=O.findIndex(je=>je===u(_)),k=O.findIndex(je=>je===u(E)),$=A-k;return $===0?$:$/Math.abs($)},get(_){let E=this.types[_];return this.new[E]},index:_=>O.findIndex(E=>E===u(_)),types:O})}function g(c){let v=n(c);return l(v,c)}function d(c,v){return Array.isArray(c)?g(c):l(c,v)}return{remote:s,sequence:d}}R.remoteImpl=ar});var we=b(G=>{"use strict";a();Object.defineProperty(G,"__esModule",{value:!0});G.typedImpl=G.pass=void 0;var sr=e=>e;G.pass=sr;function ur(e){function t(r){return typeof r=="function"?r(G.pass):r}return{typed:t}}G.typedImpl=ur});var Me=b(q=>{"use strict";a();Object.defineProperty(q,"__esModule",{value:!0});q.unpack=q.just=q.constant=void 0;function rt(e){return()=>e}q.constant=rt;q.just=rt;var cr=e=>e.payload;q.unpack=cr});var nt=b(D=>{"use strict";a();Object.defineProperty(D,"__esModule",{value:!0});D.matcherImpl=D.Matcher=D.tableToHandler=void 0;var lr=Me(),pr=M();function qe(e){return Object.keys(e).reduce((t,r)=>{let n=r;return Object.assign(Object.assign({},t),{[n]:(0,lr.just)(e[n])})},{})}D.tableToHandler=qe;var pe=class e{constructor(t,r,n){this.target=t,this.key=r,this.handler=n,this.complete=i=>{var s,u;if(this.target!=null&&this.target[this.key]in this.handler)return(u=(s=this.handler)[this.target[this.key]])===null||u===void 0?void 0:u.call(s,this.target);if(i?.withFallback!=null)return i.withFallback(this.target)}}execute(){let t=this.handler[this.target[this.key]];return t?.(this.target)}exhaust(t){var r;let n=Object.assign(Object.assign({},this.handler),t);return(r=n[this.target[this.key]])===null||r===void 0?void 0:r.call(n,this.target)}remaining(t){return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}else(t){var r,n;return this.target[this.key]in this.handler?(n=(r=this.handler)[this.target[this.key]])===null||n===void 0?void 0:n.call(r,this.target):t(this.target)}register(t){let r=Object.assign(Object.assign({},this.handler),qe(t));return new e(this.target,this.key,r)}lookup(t){var r;let n=Object.assign(Object.assign({},this.handler),qe(t));return(r=n[this.target[this.key]])===null||r===void 0?void 0:r.call(n,this.target)}with(t){return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}when(t,r){if(r!=null){let i=(Array.isArray(t)?t:[t]).reduce((s,u)=>{let l=typeof u=="string"?u:(0,pr.isVariantCreator)(u)?u.output.type:void 0;return l!=null?Object.assign(Object.assign({},s),{[l]:r}):s},{});return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),i))}else return new e(this.target,this.key,Object.assign(Object.assign({},this.handler),t))}};D.Matcher=pe;function dr(e){function t(r){let n=typeof r=="string"?{[e]:r}:r;return new pe(n,e,{})}return{matcher:t}}D.matcherImpl=dr});var De=b(de=>{"use strict";a();Object.defineProperty(de,"__esModule",{value:!0});de.variantCosmos=void 0;var fr=Pe(),gr=Ie(),mr=M(),yr=$e(),hr=Se(),vr=et(),br=tt(),jr=we(),Or=nt();function Fr({key:e}){let{isType:t}=(0,fr.isTypeImpl)(e),{flags:r}=(0,hr.flagsImpl)(e);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:e,isType:t,flags:r},(0,vr.isOfVariantImpl)(e)),(0,gr.matchImpl)(e)),(0,Or.matcherImpl)(e)),(0,br.remoteImpl)(e)),(0,jr.typedImpl)(e)),(0,yr.typesImpl)(e)),(0,mr.variantImpl)(e))}de.variantCosmos=Fr});var Ne=b(p=>{"use strict";a();var j;Object.defineProperty(p,"__esModule",{value:!0});p.withFallback=p.variation=p.variantModule=p.variantList=p.variant=p.types=p.typed=p.lookup=p.sequence=p.scoped=p.remote=p.prematch=p.partial=p.otherwise=p.onLiteral=p.ofLiteral=p.matcher=p.match=p.isType=p.isOfVariant=p.inferTypes=p.flags=p.descope=void 0;var Tr=De();j=(0,Tr.variantCosmos)({key:"type"}),p.descope=j.descope,p.flags=j.flags,p.inferTypes=j.inferTypes,p.isOfVariant=j.isOfVariant,p.isType=j.isType,p.match=j.match,p.matcher=j.matcher,p.ofLiteral=j.ofLiteral,p.onLiteral=j.onLiteral,p.otherwise=j.otherwise,p.partial=j.partial,p.prematch=j.prematch,p.remote=j.remote,p.scoped=j.scoped,p.sequence=j.sequence,p.lookup=j.lookup,p.typed=j.typed,p.types=j.types,p.variant=j.variant,p.variantList=j.variantList,p.variantModule=j.variantModule,p.variation=j.variation,p.withFallback=j.withFallback});var it=b(fe=>{"use strict";a();Object.defineProperty(fe,"__esModule",{value:!0});fe.augment=void 0;var _r=Ne(),Er=M();function Cr(e,t){return Object.keys(e).reduce((r,n)=>{let i=e[n],s=(0,Er.isVariantCreator)(i)?(0,_r.variation)(i.output.type,(...u)=>{let l=i(...u);return Object.assign(Object.assign({},t(l)),l)}):(...u)=>{let l=e[n],g=typeof l=="function"?l(...u):{};return Object.assign(Object.assign({},t(g)),g)};return Object.assign(Object.assign({},r),{[n]:s})},{})}fe.augment=Cr});var ot=b(ge=>{"use strict";a();Object.defineProperty(ge,"__esModule",{value:!0});ge.constrained=void 0;function Pr(e,t){return t}ge.constrained=Pr});var at=b(me=>{"use strict";a();Object.defineProperty(me,"__esModule",{value:!0});me.construct=void 0;function Ar(e){return(...t)=>new e(t)}me.construct=Ar});var ut=b(U=>{"use strict";a();Object.defineProperty(U,"__esModule",{value:!0});U.Alpha=U.onTerms=void 0;var kr=Se(),Ir=M(),Sr=Symbol("VARIANT GENERIC TEMPLATE");function wr(e){return Object.assign(Object.assign({},e(U.Alpha)),{[Sr]:void 0})}U.onTerms=wr;var st="__term",Mr=(0,Ir.variantImpl)(st).variant,qr=(0,kr.flagsImpl)(st).flags,Dr=Mr(["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]);U.Alpha=qr(Object.values(Dr).map(e=>e()))});var ct=b(W=>{"use strict";a();Object.defineProperty(W,"__esModule",{value:!0});W.typeMap=W.typeCatalog=void 0;function Nr(e){return Object.values(e).reduce((t,r)=>Object.assign(Object.assign({},t),{[r.output.type]:r.output.type}),{})}W.typeCatalog=Nr;function Vr(e){return Object.keys(e).reduce((t,r)=>Object.assign(Object.assign({},t),{[r]:e[r].output.type}),{})}W.typeMap=Vr});var pt=b(z=>{"use strict";a();Object.defineProperty(z,"__esModule",{value:!0});z.literalist=z.catalog=void 0;function lt(e,t){return Array.isArray(e)?e.reduce((r,n,i)=>Object.assign(Object.assign({},r),{[n]:t!=null?t(n,i):n}),{}):e}z.catalog=lt;z.literalist=lt});var dt=b(ye=>{"use strict";a();Object.defineProperty(ye,"__esModule",{value:!0});ye.patterned=void 0;function Rr(e,t){return t}ye.patterned=Rr});var ft=b(N=>{"use strict";a();Object.defineProperty(N,"__esModule",{value:!0});N.nil=N.payload=N.fields=void 0;function Gr(e={}){return(...t)=>{let[r]=t;return Object.assign(Object.assign({},e),r)}}N.fields=Gr;function Ur(e){return t=>({payload:t})}N.payload=Ur;var xr=()=>({});N.nil=xr});var yt=b(f=>{"use strict";a();Object.defineProperty(f,"__esModule",{value:!0});f.payload=f.nil=f.fields=f.HOI=f.pass=f.patterned=f.unpack=f.just=f.constant=f.literalist=f.catalog=f.typeCatalog=f.typeMap=f.onTerms=f.variantCosmos=f.construct=f.constrained=f.augment=void 0;var Lr=it();Object.defineProperty(f,"augment",{enumerable:!0,get:function(){return Lr.augment}});var Br=ot();Object.defineProperty(f,"constrained",{enumerable:!0,get:function(){return Br.constrained}});var Wr=at();Object.defineProperty(f,"construct",{enumerable:!0,get:function(){return Wr.construct}});var zr=De();Object.defineProperty(f,"variantCosmos",{enumerable:!0,get:function(){return zr.variantCosmos}});var Hr=ut();Object.defineProperty(f,"onTerms",{enumerable:!0,get:function(){return Hr.onTerms}});var gt=ct();Object.defineProperty(f,"typeMap",{enumerable:!0,get:function(){return gt.typeMap}});Object.defineProperty(f,"typeCatalog",{enumerable:!0,get:function(){return gt.typeCatalog}});var mt=pt();Object.defineProperty(f,"catalog",{enumerable:!0,get:function(){return mt.catalog}});Object.defineProperty(f,"literalist",{enumerable:!0,get:function(){return mt.literalist}});var Ve=Me();Object.defineProperty(f,"constant",{enumerable:!0,get:function(){return Ve.constant}});Object.defineProperty(f,"just",{enumerable:!0,get:function(){return Ve.just}});Object.defineProperty(f,"unpack",{enumerable:!0,get:function(){return Ve.unpack}});var Jr=dt();Object.defineProperty(f,"patterned",{enumerable:!0,get:function(){return Jr.patterned}});var Kr=we();Object.defineProperty(f,"pass",{enumerable:!0,get:function(){return Kr.pass}});var Qr=Ae();Object.defineProperty(f,"HOI",{enumerable:!0,get:function(){return Qr.HOI}});var Re=ft();Object.defineProperty(f,"fields",{enumerable:!0,get:function(){return Re.fields}});Object.defineProperty(f,"nil",{enumerable:!0,get:function(){return Re.nil}});Object.defineProperty(f,"payload",{enumerable:!0,get:function(){return Re.payload}})});var he=b(V=>{"use strict";a();var Yr=V&&V.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ht=V&&V.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Yr(t,e,r)};Object.defineProperty(V,"__esModule",{value:!0});ht(yt(),V);ht(Ne(),V)});a();a();var Qe=H(Ce(),1),{WError:Lt}=Qe.default,Z=class extends Lt{cliCode;constructor(t){let r=t.cause instanceof Error?t.cause:new Error(JSON.stringify(t.cause));super({name:t.code.type,cause:r,info:t.info},t.code.type),this.cliCode=t.code,this.name=t.code.type}};a();var o=H(he(),1),ve=(0,o.variant)({FailedToGetDeviceCode:{},FailedToGetAuthToken:{},FailedToRenewAuthToken:{},FailedToRefreshTokenForSite:{},FailedToRevokeRefreshToken:(0,o.fields)(),UnknownFailure:(0,o.fields)(),FailedToFetchPackageJson:{},FailedToGetDeveloperApps:{},FailedToUpdateTelemetryConfig:{},FailedToSyncToRevision:(0,o.fields)(),FailedToCreateVersion:{},FailedToReadCache:(0,o.fields)(),FailedToWriteCache:(0,o.fields)(),UploadApplicationFailed:{},FailedToCreateDevCenterApp:{},FailedToGetPlacements:{},FailedToGetAppSecret:{},FailedToCreateTunnel:{},FailedToDeleteTunnel:{},GridAppFailedToUpdateFiles:{},FailedToCreateGridApp:(0,o.fields)(),InvalidResponseData:{},InvalidCreateAppResponse:{},InvalidDeployAppResponse:{},InvalidGetDeploymentResponse:{},FailedToGetPagesDiff:{},InvalidViteBuildOutput:{},ViteModuleBundleNotFound:{},ViteFileNotFoundInOutput:(0,o.fields)(),FailedToCreateBackendDeployment:{},FailedToUpdateBackendDeployment:{},InvalidDeploymentUrl:(0,o.fields)(),FailedToGetBackendDeployment:{},FailedToDeployBackend:{},FailedToGetUserInfo:{},FailedToGetMyAccount:{},FailedToCreateDevelopmentSite:{},FailedToGetDevelopmentSites:{},FailedToGetDevelopmentSitesLimit:{},FailedToGetRequiredApps:{},FailedToQueryApps:{},FailedToGetMarketListing:{},FailedToAddRequiredApp:{},FailedToGetAppValidity:{},FailedToQuerySites:{},FailedToGetSite:{},FailedToDeploySite:{},FailedToPublishDeployment:{},FailedToMarkDeploymentAsPermanent:{},FailedToCheckIfAppInstalled:{},TypeErrorInvalidUrl:{},FailedToGenerateSelfsignedCertificate:{},FailedToResolveViteOrigin:{},FailedToCreateAppRelease:{},FailedToUpdateAppRelease:{},FailedToCreateComponents:{},FailedToGetResolveNpmDependenciesResult:{},FailedToResolveNpmDependencies:{},FailedToCheckDeprecatedStatus:{},FailedToCreateSiteOverride:{},FailedToGetDeploymentStatus:{},FailedToGetPipelineErrorInfo:{},FailedToGenerateAppMarketQueryParam:{},InvalidDependenciesJsonSchemaError:(0,o.fields)(),FailedToParseLog:{},FailedToConnectToLogsService:{},LogsConnectionTimeout:{},FailedToFetchAppForVersion:{},InvalidSiteOverrideID:{},FailedToFindEsbuildOutputFile:{},FailedOptimizingWithEsbuild:(0,o.fields)(),FailedReadingEsbuildOutputFile:{},InvalidGitUrl:(0,o.fields)(),TemplatePathNotFound:(0,o.fields)(),FailedToQueryCliAppTemplates:{},FailedToCreateDevCenterAppFromTemplate:{},FailedToGetSiteInstalledApps:{},FailedToGetClientSpecMap:{},FailedToCreateVeloApp:{}}),Ge=(0,o.variant)({LatestVersionOfCreateAppRequired:(0,o.fields)(),FailedToCreateProjectFolder:(0,o.fields)(),EmptyDirectoryRequiredAppGeneration:(0,o.fields)(),InvalidNewPackageName:(0,o.fields)(),UnsupportedPackageManager:(0,o.fields)(),UnsupportedPackageManagerWorkspaces:(0,o.fields)(),FailedAddingPackageToWorkspace:{},SitePermissionDenied:(0,o.fields)(),AppPermissionDenied:(0,o.fields)(),BuiltProjectNeeded:{},WixUninstallMissingPackageName:{},FailedToReadJson:(0,o.fields)(),FailedToWriteJson:(0,o.fields)(),InvalidJsonFile:(0,o.fields)(),FailedToWriteWixLock:{},InvalidVeloConfigJson:(0,o.fields)(),DashboardPageConfigNotFound:(0,o.fields)(),EmbeddedScriptConfigNotFound:(0,o.fields)(),NoExtensionsFound:{},CustomElementConfigNotFound:(0,o.fields)(),SitePluginConfigNotFound:(0,o.fields)(),NoPagesDirectoryFound:(0,o.fields)(),DashboardPluginConfigNotFound:(0,o.fields)(),DashboardMenuPluginConfigNotFound:(0,o.fields)(),ServicePluginConfigNotFound:(0,o.fields)(),DashboardModalConfigNotFound:(0,o.fields)(),InvalidConfigSchemaError:(0,o.fields)(),InvalidParamsOverrideSchemaError:(0,o.fields)(),PermissionDenied:{},SiteSelectorTimedout:{},FailedToReadProjectFiles:(0,o.fields)(),FailedToCreateVersionForSubmittedApp:{},GridAppFilesMaxLengthExcceeded:(0,o.fields)(),DeviceCodeTimedOut:{},DuplicateComponentIdsError:(0,o.fields)(),FailedToSaveDevelopmentSite:(0,o.fields)(),FailedToBuildApp:(0,o.fields)(),FailedToInitializeGitRepo:(0,o.fields)(),FailedToInstallDependencies:(0,o.fields)(),FailedToCommitChanges:(0,o.fields)(),FailedToDeleteAuthData:(0,o.fields)(),FailedToDeleteLegacyAuthData:(0,o.fields)(),FailedToSaveAuthData:(0,o.fields)(),FailedToSaveApiKeyAuthData:(0,o.fields)(),FailedToRenewAuthTokenSiteNotFound:(0,o.fields)(),FailedToRenewAuthTokenRefreshTokenRevoked:{},FailedToInstallPackage:(0,o.fields)(),FailedToInstallPackages:(0,o.fields)(),FailedToUninstallPackage:(0,o.fields)(),FailedMigrationToAnyNpm:{},DeprecatedVersion:(0,o.fields)(),FailedToCloneRepo:(0,o.fields)(),AuthenticationRequired:{},SiteConfiguredRequired:{},NonInteractiveTerminal:{},FailedToWatchFiles:(0,o.fields)(),InvalidApiKey:{},CliAppVersionMismatch:(0,o.fields)(),NetworkError:(0,o.fields)(),AppForVersionNotFound:(0,o.fields)(),UnknownServicePlugin:(0,o.fields)(),InvalidServicePluginFolder:(0,o.fields)(),FailedToGetLogsTopology:{},FailedInstallCloudflareNoAccess:(0,o.fields)(),CliAppTemplateNotFound:(0,o.fields)(),LocalTemplatePathNotFound:(0,o.fields)(),DeniedPermissionToGetAppSecret:{}}),Zr=(0,o.variant)({InvalidDashboardPageRoute:(0,o.fields)(),InvalidEmbeddedScriptFolder:(0,o.fields)(),InvalidEmbeddedScriptTemplate:(0,o.fields)(),InvalidCustomElementTagName:(0,o.fields)(),InvalidSiteFrontendPackageVersion:(0,o.fields)(),InvalidServicePluginImplementation:(0,o.fields)()}),X=(0,o.variant)({...ve,...Ge,...Zr});a();var Ue=H(he(),1);function be(e){return e&&typeof e=="object"&&"cliCode"in e?(0,Ue.isOfVariant)(e.cliCode,X):!1}function Xr(e){return(0,Ue.isOfVariant)(e.cliCode,ve)}a();var vt=H(he(),1),bt=H(Ce(),1);function jt(e){if(be(e)&&(0,vt.isOfVariant)(e.cliCode,Ge))return e;let t=bt.default.cause(e);return t?jt(t):null}function $r(e){let t=be(e)?e:new Z({code:X.UnknownFailure({error:e})});return jt(t)??t}export{he as a,Ce as b,Z as c,ve as d,X as e,be as f,Xr as g,$r as h};
|
|
6
|
+
//# sourceMappingURL=chunk-TCTTRAWM.js.map
|