@visulima/vis 1.0.0-alpha.15 → 1.0.0-alpha.16
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/CHANGELOG.md +49 -0
- package/LICENSE.md +44 -233
- package/dist/bin.js +1 -1
- package/dist/config/index.d.ts +121 -94
- package/dist/config/index.js +1 -1
- package/dist/packem_chunks/bin.js +271 -271
- package/dist/packem_chunks/config.js +18 -0
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -1
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +4 -4
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +5 -5
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +2 -1
- package/dist/packem_chunks/handler21.js +18 -1
- package/dist/packem_chunks/handler22.js +1 -5
- package/dist/packem_chunks/handler23.js +1 -1
- package/dist/packem_chunks/handler24.js +5 -3
- package/dist/packem_chunks/handler25.js +1 -1
- package/dist/packem_chunks/handler26.js +3 -1
- package/dist/packem_chunks/handler27.js +1 -7
- package/dist/packem_chunks/handler28.js +1 -23
- package/dist/packem_chunks/handler29.js +7 -3
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler30.js +23 -18
- package/dist/packem_chunks/handler31.js +3 -1
- package/dist/packem_chunks/handler32.js +1 -2
- package/dist/packem_chunks/handler33.js +2 -25
- package/dist/packem_chunks/handler34.js +25 -2
- package/dist/packem_chunks/handler35.js +2 -2
- package/dist/packem_chunks/handler36.js +8 -8
- package/dist/packem_chunks/handler37.js +3 -3
- package/dist/packem_chunks/handler38.js +4 -4
- package/dist/packem_chunks/handler39.js +6 -6
- package/dist/packem_chunks/handler40.js +5 -5
- package/dist/packem_chunks/handler41.js +9 -9
- package/dist/packem_chunks/handler42.js +10 -10
- package/dist/packem_chunks/handler43.js +1 -1
- package/dist/packem_chunks/handler44.js +5 -5
- package/dist/packem_chunks/handler45.js +3 -3
- package/dist/packem_chunks/handler46.js +9 -9
- package/dist/packem_chunks/handler47.js +161 -36
- package/dist/packem_chunks/handler48.js +1 -1
- package/dist/packem_chunks/handler5.js +5 -5
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +2 -2
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +16 -16
- package/dist/packem_chunks/index.js +1 -1
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_shared/{ai-analysis-CGVjqwdc.js → ai-analysis-C_GpXikx.js} +3 -3
- package/dist/packem_shared/ai-cache-DrCLD4gc.js +1 -0
- package/dist/packem_shared/ai-fix-CWOz12Om.js +43 -0
- package/dist/packem_shared/applyDefaults-DLY94gWA.js +1 -0
- package/dist/packem_shared/cache-directory-C_U1qsIw.js +1 -0
- package/dist/packem_shared/definePlugin-CWm4Dv_t.js +1 -0
- package/dist/packem_shared/dependency-scan-YdgNVvoz.js +2 -0
- package/dist/packem_shared/docker-Dl0AoVTZ.js +60 -0
- package/dist/packem_shared/failure-log-CSC6KfcO.js +2 -0
- package/dist/packem_shared/flakiness-Dzz-I3dB.js +1 -0
- package/dist/packem_shared/lifecycle-BC6Nst6i.js +2 -0
- package/dist/packem_shared/{lockfile-B7JJzxnL.js → lockfile-i-qvq_k8.js} +1 -1
- package/dist/packem_shared/otelPlugin-CJR2T_lk.js +1 -0
- package/dist/packem_shared/{readTomlSync-1fKo0R52-DAKNI1Me.js → readTomlSync-1fKo0R52-DtxWULlF.js} +1 -1
- package/dist/packem_shared/run-summary-utils-CJv75pla.js +1 -0
- package/dist/packem_shared/runtime-check-CBU6W8qG.js +1 -0
- package/dist/packem_shared/{selectors-Sem2CTYA.js → selectors-B2ISH581.js} +1 -1
- package/dist/packem_shared/toolchain-B7dckBQ1.js +5 -0
- package/dist/packem_shared/typosquats-B3A38-qx.js +1 -0
- package/dist/packem_shared/verify-WDStBFvK.js +1 -0
- package/dist/packem_shared/vis-update-app-D0uL3eO5.js +1 -0
- package/package.json +13 -13
- package/schemas/project.schema.json +12 -2
- package/schemas/vis-config.schema.json +248 -3
- package/dist/packem_chunks/applyDefaults.js +0 -2
- package/dist/packem_shared/ai-cache-BdPgSfg2.js +0 -1
- package/dist/packem_shared/ai-fix-iHtGLkJS.js +0 -43
- package/dist/packem_shared/cache-directory-DTfMSzT9.js +0 -1
- package/dist/packem_shared/dependency-scan-SQeRzrpJ.js +0 -2
- package/dist/packem_shared/docker-D5p9mRPU.js +0 -2
- package/dist/packem_shared/failure-log-CElcbnb9.js +0 -2
- package/dist/packem_shared/flakiness-C4t4_NoA.js +0 -1
- package/dist/packem_shared/otel-CO8UEfTa.js +0 -17
- package/dist/packem_shared/otelPlugin-DTynZDWh.js +0 -1
- package/dist/packem_shared/registry-D04iOQ5H.js +0 -2
- package/dist/packem_shared/run-summary-utils-BPraMTcm.js +0 -1
- package/dist/packem_shared/runtime-check-l4qFpo08.js +0 -1
- package/dist/packem_shared/toolchain-BhZNts--.js +0 -5
- package/dist/packem_shared/typosquats-Dr7VIL2B.js +0 -1
- package/dist/packem_shared/verify-C6NNOhTA.js +0 -1
- package/dist/packem_shared/vis-update-app-DGiMc5kb.js +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var la=Object.defineProperty;var c=(g,n)=>la(g,"name",{value:n,configurable:!0});import{createRequire as fa}from"node:module";import{h as ma,K as ui,M as Be,n as Mo,B as Vi,a as ya,z as va}from"../packem_chunks/config.js";import{aY as Aa,bh as ba}from"../packem_chunks/bin.js";const pa=fa(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,da=c(g=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[n,h]=vr.versions.node.split(".").map(Number);if(n>22||n===22&&h>=3||n===20&&h>=16)return vr.getBuiltinModule(g)}return pa(g)},"__cjs_getBuiltinModule"),{cpSync:Io,lstatSync:ha,readdirSync:ga,existsSync:No,rmSync:ai,readFileSync:Wi}=da("node:fs");var Ca=Object.defineProperty,$a=c((g,n)=>Ca(g,"name",{value:n,configurable:!0}),"t$1");class vt extends Error{static{c(this,"LockfilePruneError")}static{$a(this,"LockfilePruneError")}constructor(n){super(n),this.name="LockfilePruneError"}}var Sa=Object.defineProperty,$r=c((g,n)=>Sa(g,"name",{value:n,configurable:!0}),"l");const Ea=$r(g=>{let n="",h=!1,y=!1,S=!1;for(let a=0;a<g.length;a+=1){const m=g[a],e=g[a+1];if(y){m===`
|
|
2
|
+
`&&(y=!1,n+=m);continue}if(S){m==="*"&&e==="/"&&(S=!1,a+=1);continue}if(h){if(m==="\\"){n+=m,e!==void 0&&(n+=e,a+=1);continue}m==='"'&&(h=!1),n+=m;continue}if(m==='"'){h=!0,n+=m;continue}if(m==="/"&&e==="/"){y=!0,a+=1;continue}if(m==="/"&&e==="*"){S=!0,a+=1;continue}n+=m}return n},"stripJsonComments"),wa=$r(g=>{const n=[];for(const h of[g.dependencies,g.devDependencies,g.optionalDependencies,g.peerDependencies])if(h)for(const[y,S]of Object.entries(h))typeof S=="string"&&n.push({name:y,spec:S});return n},"collectWorkspaceDeps"),ka=$r(g=>{for(const n of g)if(typeof n=="object"&&n!==null&&!Array.isArray(n))return n},"extractMetadata"),xa=$r(g=>{if(!g)return[];const n=[];for(const h of["dependencies","optionalDependencies","peerDependencies"]){const y=g[h];y!==null&&typeof y=="object"&&!Array.isArray(y)&&n.push(...Object.keys(y))}return n},"collectMetadataDeps"),Oa=$r(g=>{if(Buffer.isBuffer(g.lockfileContent))return{message:"bun.lockb is binary; run `bun install --save-text-lockfile` to regenerate as bun.lock, then rerun `vis docker scaffold`.",status:"skipped"};const n=Ea(g.lockfileContent);let h;try{h=JSON.parse(n)}catch(v){throw new vt(`bun.lock: parse failed — ${v.message}`)}if(!h||typeof h!="object")throw new vt("bun.lock: top-level value is not an object");const y=h.workspaces??{},S=h.packages??{},a=new Set([""]);for(const v of g.closure)a.add(v.relativeRoot===""?"":v.relativeRoot);const m={},e=[];for(const[v,C]of Object.entries(y))a.has(v)&&(m[v]=C,e.push(...wa(C)));const A=new Set;for(const{name:v}of e)A.add(v);const x=[...A];for(;x.length>0;){const v=x.shift();for(const C of Object.keys(S)){if(C.split("/")[0]!==v&&C!==v)continue;const z=ka(S[C]);for(const fe of xa(z))A.has(fe)||(A.add(fe),x.push(fe))}}const b={};for(const[v,C]of Object.entries(S)){const z=v.split("/")[0];(A.has(z)||A.has(v))&&(b[v]=C)}const E={...h,packages:b,workspaces:m},O=Object.keys(S).length,F=Object.keys(b).length,$=O-F;return{content:`${JSON.stringify(E,null,2)}
|
|
3
|
+
`,message:`bun.lock: kept ${F}/${O} packages (dropped ${$})`,status:"pruned"}},"pruneBunLockfile");var ja=Object.defineProperty,ci=c((g,n)=>ja(g,"name",{value:n,configurable:!0}),"g");const jn="node_modules/",_a=ci((g,n,h)=>{let y=n;for(;;){const S=y===""?`${jn}${h}`:`${y}/${jn}${h}`;if(g[S]!==void 0)return S;if(y==="")return;const a=y.lastIndexOf(`/${jn.slice(0,-1)}/`);a===-1?y="":y=y.slice(0,a)}},"resolveDep"),Ta=ci(g=>{const n=[];for(const h of[g.dependencies,g.devDependencies,g.optionalDependencies,g.peerDependencies])if(h)for(const y of Object.keys(h))n.push(y);return n},"collectDepNames"),Ra=ci(g=>{const n=typeof g.lockfileContent=="string"?g.lockfileContent:g.lockfileContent.toString("utf8");let h;try{h=JSON.parse(n)}catch(F){throw new vt(`package-lock.json: parse failed — ${F.message}`)}if(!h||typeof h!="object")throw new vt("package-lock.json: top-level value is not an object");const y=h.packages??{},S=new Set([""]);for(const F of g.closure)F.relativeRoot!==""&&S.add(F.relativeRoot);const a=new Set,m=[];for(const F of Object.keys(y))S.has(F)&&(a.add(F),m.push(F));for(const[F,$]of Object.entries(y))$.link===!0&&typeof $.resolved=="string"&&S.has($.resolved)&&a.add(F);for(;m.length>0;){const F=m.shift(),$=y[F];if($)for(const v of Ta($)){const C=_a(y,F,v);if(!C||a.has(C))continue;a.add(C);const z=y[C];z.link===!0&&typeof z.resolved=="string"&&y[z.resolved]!==void 0&&!a.has(z.resolved)?(a.add(z.resolved),m.push(z.resolved)):m.push(C)}}const e={};for(const F of Object.keys(y))a.has(F)&&(e[F]=y[F]);const A=e[""];A&&Array.isArray(A.workspaces)&&(A.workspaces=A.workspaces.filter(F=>{if(typeof F!="string")return!1;const $=F.replace(/\/?\*+$/,"").replace(/\/$/,"");if($===""||$==="*")return!0;for(const v of S)if(v===F||v===$||v.startsWith(`${$}/`))return!0;return!1}));const x={...h,packages:e};delete x.dependencies;const b=Object.keys(y).length,E=Object.keys(e).length,O=b-E;return{content:`${JSON.stringify(x,null,2)}
|
|
4
|
+
`,message:`package-lock.json: kept ${E}/${b} entries (dropped ${O})`,status:"pruned"}},"pruneNpmLockfile");var La=Object.defineProperty,Zt=c((g,n)=>La(g,"name",{value:n,configurable:!0}),"a");const Do=Zt(g=>{let n=g.startsWith("/")?g.slice(1):g;const h=n.indexOf("(");return h!==-1&&(n=n.slice(0,h)),n},"canonicalKey"),Fa=Zt((g,n)=>{if(!(n.startsWith("link:")||n.startsWith("file:")||n.startsWith("workspace:")))return`${g}@${n}`},"resolveDepKey"),Pa=Zt(g=>{const n=[];for(const h of[g.dependencies,g.devDependencies,g.optionalDependencies])if(h)for(const[y,S]of Object.entries(h))S?.version&&n.push({name:y,version:S.version});return n},"collectImporterDeps"),Ji=Zt(g=>{const n=[];for(const h of[g.dependencies,g.optionalDependencies])if(h)for(const[y,S]of Object.entries(h))typeof S=="string"&&n.push({name:y,version:S});return n},"collectPackageDeps"),Gi=Zt(g=>{const n=new Map;if(!g)return n;for(const h of Object.keys(g)){const y=Do(h),S=n.get(y);S?S.push(h):n.set(y,[h])}return n},"buildKeyIndex"),Ia=Zt(g=>{const n=typeof g.lockfileContent=="string"?g.lockfileContent:g.lockfileContent.toString("utf8");let h;try{h=Aa(n)}catch(C){throw new vt(`pnpm-lock.yaml: parse failed — ${C.message}`)}if(!h||typeof h!="object")throw new vt("pnpm-lock.yaml: top-level value is not an object");const y=h.importers??{},S=Gi(h.packages),a=Gi(h.snapshots),m=new Set(["."]);for(const C of g.closure)m.add(C.relativeRoot===""?".":C.relativeRoot);const e={};for(const[C,z]of Object.entries(y))m.has(C)&&(e[C]=z);const A=new Set,x=new Set,b=[];for(const C of Object.values(e))for(const z of Pa(C))b.push(z);for(;b.length>0;){const{name:C,version:z}=b.shift(),fe=Fa(C,z);if(!fe)continue;const ve=Do(fe),I=a.get(ve)??a.get(fe)??[];for(const pe of I){if(x.has(pe))continue;x.add(pe);const q=h.snapshots?.[pe];if(q)for(const se of Ji(q))b.push(se)}const oe=S.get(ve)??S.get(fe)??[];for(const pe of oe){if(A.has(pe))continue;A.add(pe);const q=h.packages?.[pe];if(q&&!h.snapshots)for(const se of Ji(q))b.push(se)}}const E={lockfileVersion:h.lockfileVersion};for(const C of["settings","overrides","patchedDependencies","catalogs"])h[C]!==void 0&&(E[C]=h[C]);if(E.importers=e,h.packages){const C={};for(const z of Object.keys(h.packages))A.has(z)&&(C[z]=h.packages[z]);E.packages=C}if(h.snapshots){const C={};for(const z of Object.keys(h.snapshots))x.has(z)&&(C[z]=h.snapshots[z]);E.snapshots=C}const O=Object.keys(h.packages??{}).length,F=Object.keys(E.packages??{}).length,$=O-F,v=Object.keys(y).length-Object.keys(e).length;return{content:ba(E,{lineWidth:0}),message:`pnpm-lock.yaml: kept ${F}/${O} packages and ${Object.keys(e).length} importers (dropped ${$} packages, ${v} importers)`,status:"pruned"}},"prunePnpmLockfile");var _n={},Le={},Tn,Ki;function Na(){if(Ki)return Tn;Ki=1;var g=Object.defineProperty,n=c((a,m)=>g(a,"name",{value:m,configurable:!0}),"a");function h(a,m){function e(){this.constructor=a}c(e,"s"),n(e,"ctor"),e.prototype=m.prototype,a.prototype=new e}c(h,"peg$subclass"),n(h,"peg$subclass");function y(a,m,e,A){this.message=a,this.expected=m,this.found=e,this.location=A,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,y)}c(y,"peg$SyntaxError"),n(y,"peg$SyntaxError"),h(y,Error),y.buildMessage=function(a,m){var e={literal:n(function($){return'"'+x($.text)+'"'},"literal"),class:n(function($){var v="",C;for(C=0;C<$.parts.length;C++)v+=$.parts[C]instanceof Array?b($.parts[C][0])+"-"+b($.parts[C][1]):b($.parts[C]);return"["+($.inverted?"^":"")+v+"]"},"class"),any:n(function($){return"any character"},"any"),end:n(function($){return"end of input"},"end"),other:n(function($){return $.description},"other")};function A($){return $.charCodeAt(0).toString(16).toUpperCase()}c(A,"T"),n(A,"hex");function x($){return $.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+A(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+A(v)})}c(x,"q"),n(x,"literalEscape");function b($){return $.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+A(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+A(v)})}c(b,"_"),n(b,"classEscape");function E($){return e[$.type]($)}c(E,"re"),n(E,"describeExpectation");function O($){var v=new Array($.length),C,z;for(C=0;C<$.length;C++)v[C]=E($[C]);if(v.sort(),v.length>0){for(C=1,z=1;C<v.length;C++)v[C-1]!==v[C]&&(v[z]=v[C],z++);v.length=z}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}c(O,"le"),n(O,"describeExpected");function F($){return $?'"'+x($)+'"':"end of input"}return c(F,"te"),n(F,"describeFound"),"Expected "+O(a)+" but "+F(m)+" found."};function S(a,m){m=m!==void 0?m:{};var e={},A={Start:fn},x=fn,b=n(function(t){return t||[]},"peg$c0"),E=n(function(t,o,u){return[{command:t,type:o}].concat(u||[])},"peg$c1"),O=n(function(t,o){return[{command:t,type:o||";"}]},"peg$c2"),F=n(function(t){return t},"peg$c3"),$=";",v=ue(";",!1),C="&",z=ue("&",!1),fe=n(function(t,o){return o?{chain:t,then:o}:{chain:t}},"peg$c8"),ve=n(function(t,o){return{type:t,line:o}},"peg$c9"),I="&&",oe=ue("&&",!1),pe="||",q=ue("||",!1),se=n(function(t,o){return o?{...t,then:o}:t},"peg$c14"),Oe=n(function(t,o){return{type:t,chain:o}},"peg$c15"),Ae="|&",Ne=ue("|&",!1),Me="|",De=ue("|",!1),qe="=",rt=ue("=",!1),Se=n(function(t,o){return{name:t,args:[o]}},"peg$c22"),He=n(function(t){return{name:t,args:[]}},"peg$c23"),Ke="(",Qe=ue("(",!1),re=")",Fe=ue(")",!1),We=n(function(t,o){return{type:"subshell",subshell:t,args:o}},"peg$c28"),we="{",ke=ue("{",!1),Ce="}",Re=ue("}",!1),ye=n(function(t,o){return{type:"group",group:t,args:o}},"peg$c33"),Ye=n(function(t,o){return{type:"command",args:o,envs:t}},"peg$c34"),Ue=n(function(t){return{type:"envs",envs:t}},"peg$c35"),Ve=n(function(t){return t},"peg$c36"),Je=n(function(t){return t},"peg$c37"),B=/^[0-9]/,W=Ze([["0","9"]],!1,!1),ae=n(function(t,o,u){return{type:"redirection",subtype:o,fd:t!==null?parseInt(t):null,args:[u]}},"peg$c40"),be=">>",nt=ue(">>",!1),at=">&",st=ue(">&",!1),At=">",Ge=ue(">",!1),ft="<<<",et=ue("<<<",!1),ze="<&",pt=ue("<&",!1),bt="<",dt=ue("<",!1),r=n(function(t){return{type:"argument",segments:[].concat(...t)}},"peg$c53"),_=n(function(t){return t},"peg$c54"),T="$'",Z=ue("$'",!1),H="'",l=ue("'",!1),w=n(function(t){return[{type:"text",text:t}]},"peg$c59"),R='""',L=ue('""',!1),Y=n(function(){return{type:"text",text:""}},"peg$c62"),V='"',P=ue('"',!1),X=n(function(t){return t},"peg$c65"),J=n(function(t){return{type:"arithmetic",arithmetic:t,quoted:!0}},"peg$c66"),ne=n(function(t){return{type:"shell",shell:t,quoted:!0}},"peg$c67"),me=n(function(t){return{type:"variable",...t,quoted:!0}},"peg$c68"),le=n(function(t){return{type:"text",text:t}},"peg$c69"),je=n(function(t){return{type:"arithmetic",arithmetic:t,quoted:!1}},"peg$c70"),Kr=n(function(t){return{type:"shell",shell:t,quoted:!1}},"peg$c71"),Qr=n(function(t){return{type:"variable",...t,quoted:!1}},"peg$c72"),Er=n(function(t){return{type:"glob",pattern:t}},"peg$c73"),Ht=/^[^']/,Ut=Ze(["'"],!0,!1),wt=n(function(t){return t.join("")},"peg$c76"),wr=/^[^$"]/,kr=Ze(["$",'"'],!0,!1),tr=`\\
|
|
5
|
+
`,zr=ue(`\\
|
|
6
|
+
`,!1),Zr=n(function(){return""},"peg$c81"),kt="\\",xt=ue("\\",!1),Xr=/^[\\$"`]/,xr=Ze(["\\","$",'"',"`"],!1,!1),ut=n(function(t){return t},"peg$c86"),Or="\\a",jr=ue("\\a",!1),_r=n(function(){return"a"},"peg$c89"),rr="\\b",en=ue("\\b",!1),tn=n(function(){return"\b"},"peg$c92"),rn=/^[Ee]/,nn=Ze(["E","e"],!1,!1),on=n(function(){return"\x1B"},"peg$c95"),p="\\f",ge=ue("\\f",!1),Wt=n(function(){return"\f"},"peg$c98"),tt="\\n",nr=ue("\\n",!1),te=n(function(){return`
|
|
7
|
+
`},"peg$c101"),Ft="\\r",ir=ue("\\r",!1),an=n(function(){return"\r"},"peg$c104"),Tr="\\t",sn=ue("\\t",!1),Ee=n(function(){return" "},"peg$c107"),it="\\v",Rr=ue("\\v",!1),Lr=n(function(){return"\v"},"peg$c110"),Ct=/^[\\'"?]/,or=Ze(["\\","'",'"',"?"],!1,!1),ht=n(function(t){return String.fromCharCode(parseInt(t,16))},"peg$c113"),ie="\\x",Fr=ue("\\x",!1),Vt="\\u",ar=ue("\\u",!1),sr="\\U",ur=ue("\\U",!1),cr=n(function(t){return String.fromCodePoint(parseInt(t,16))},"peg$c120"),lr=/^[0-7]/,Pt=Ze([["0","7"]],!1,!1),Ot=/^[0-9a-fA-f]/,Pr=Ze([["0","9"],["a","f"],["A","f"]],!1,!1),gt=Si(),jt="{}",fr=ue("{}",!1),$t=n(function(){return"{}"},"peg$c128"),It="-",Nt=ue("-",!1),_t="+",St=ue("+",!1),pr=".",Ir=ue(".",!1),Mt=n(function(t,o,u){return{type:"number",value:(t==="-"?-1:1)*parseFloat(o.join("")+"."+u.join(""))}},"peg$c135"),Nr=n(function(t,o){return{type:"number",value:(t==="-"?-1:1)*parseInt(o.join(""))}},"peg$c136"),dr=n(function(t){return{type:"variable",...t}},"peg$c137"),Dt=n(function(t){return{type:"variable",name:t}},"peg$c138"),_e=n(function(t){return t},"peg$c139"),Mr="*",ct=ue("*",!1),lt="/",hr=ue("/",!1),qt=n(function(t,o,u){return{type:o==="*"?"multiplication":"division",right:u}},"peg$c144"),s=n(function(t,o){return o.reduce((u,f)=>({left:u,...f}),t)},"peg$c145"),d=n(function(t,o,u){return{type:o==="+"?"addition":"subtraction",right:u}},"peg$c146"),j="$((",G=ue("$((",!1),U="))",ee=ue("))",!1),de=n(function(t){return t},"peg$c151"),$e="$(",Tt=ue("$(",!1),Uo=n(function(t){return t},"peg$c154"),mt="${",gr=ue("${",!1),li=":-",Wo=ue(":-",!1),Vo=n(function(t,o){return{name:t,defaultValue:o}},"peg$c159"),fi=":-}",Jo=ue(":-}",!1),Go=n(function(t){return{name:t,defaultValue:[]}},"peg$c162"),pi=":+",Ko=ue(":+",!1),Qo=n(function(t,o){return{name:t,alternativeValue:o}},"peg$c165"),di=":+}",zo=ue(":+}",!1),Zo=n(function(t){return{name:t,alternativeValue:[]}},"peg$c168"),hi=n(function(t){return{name:t}},"peg$c169"),Xo="$",ea=ue("$",!1),ta=n(function(t){return m.isGlobPattern(t)},"peg$c172"),ra=n(function(t){return t},"peg$c173"),gi=/^[a-zA-Z0-9_]/,mi=Ze([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),yi=n(function(){return $i()},"peg$c176"),vi=/^[$@*?#a-zA-Z0-9_\-]/,Ai=Ze(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),na=/^[()}<>$|&; \t"']/,ia=Ze(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),oa=/^[<>&; \t"']/,aa=Ze(["<",">","&",";"," "," ",'"',"'"],!1,!1),bi=/^[ \t]/,Ci=Ze([" "," "],!1,!1),i=0,K=0,Dr=[{line:1,column:1}],yt=0,un=[],N=0,qr;if("startRule"in m){if(!(m.startRule in A))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');x=A[m.startRule]}function $i(){return a.substring(K,i)}c($i,"Di"),n($i,"text");function sa(){return Jt(K,i)}c(sa,"er"),n(sa,"location");function ua(t,o){throw o=o!==void 0?o:Jt(K,i),ln([wi(t)],a.substring(K,i),o)}c(ua,"sr"),n(ua,"expected");function ca(t,o){throw o=o!==void 0?o:Jt(K,i),ki(t,o)}c(ca,"fr"),n(ca,"error");function ue(t,o){return{type:"literal",text:t,ignoreCase:o}}c(ue,"$"),n(ue,"peg$literalExpectation");function Ze(t,o,u){return{type:"class",parts:t,inverted:o,ignoreCase:u}}c(Ze,"y"),n(Ze,"peg$classExpectation");function Si(){return{type:"any"}}c(Si,"Qi"),n(Si,"peg$anyExpectation");function Ei(){return{type:"end"}}c(Ei,"Ri"),n(Ei,"peg$endExpectation");function wi(t){return{type:"other",description:t}}c(wi,"Vi"),n(wi,"peg$otherExpectation");function cn(t){var o=Dr[t],u;if(o)return o;for(u=t-1;!Dr[u];)u--;for(o=Dr[u],o={line:o.line,column:o.column};u<t;)a.charCodeAt(u)===10?(o.line++,o.column=1):o.column++,u++;return Dr[t]=o,o}c(cn,"bs"),n(cn,"peg$computePosDetails");function Jt(t,o){var u=cn(t),f=cn(o);return{start:{offset:t,line:u.line,column:u.column},end:{offset:o,line:f.line,column:f.column}}}c(Jt,"Z"),n(Jt,"peg$computeLocation");function D(t){i<yt||(i>yt&&(yt=i,un=[]),un.push(t))}c(D,"g"),n(D,"peg$fail");function ki(t,o){return new y(t,null,null,o)}c(ki,"Ii"),n(ki,"peg$buildSimpleError");function ln(t,o,u){return new y(y.buildMessage(t,o),t,o,u)}c(ln,"ms"),n(ln,"peg$buildStructuredError");function fn(){var t,o,u;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();return o!==e?(u=Gt(),u===e&&(u=null),u!==e?(K=t,o=b(u),t=o):(i=t,t=e)):(i=t,t=e),t}c(fn,"ys"),n(fn,"peg$parseStart");function Gt(){var t,o,u,f,k;if(t=i,o=Yr(),o!==e){for(u=[],f=Q();f!==e;)u.push(f),f=Q();u!==e?(f=pn(),f!==e?(k=xi(),k===e&&(k=null),k!==e?(K=t,o=E(o,f,k),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e)}else i=t,t=e;if(t===e)if(t=i,o=Yr(),o!==e){for(u=[],f=Q();f!==e;)u.push(f),f=Q();u!==e?(f=pn(),f===e&&(f=null),f!==e?(K=t,o=O(o,f),t=o):(i=t,t=e)):(i=t,t=e)}else i=t,t=e;return t}c(Gt,"H"),n(Gt,"peg$parseShellLine");function xi(){var t,o,u,f,k;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e)if(u=Gt(),u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();f!==e?(K=t,o=F(u),t=o):(i=t,t=e)}else i=t,t=e;else i=t,t=e;return t}c(xi,"Li"),n(xi,"peg$parseShellLineThen");function pn(){var t;return a.charCodeAt(i)===59?(t=$,i++):(t=e,N===0&&D(v)),t===e&&(a.charCodeAt(i)===38?(t=C,i++):(t=e,N===0&&D(z))),t}c(pn,"xs"),n(pn,"peg$parseShellLineType");function Yr(){var t,o,u;return t=i,o=dn(),o!==e?(u=Oi(),u===e&&(u=null),u!==e?(K=t,o=fe(o,u),t=o):(i=t,t=e)):(i=t,t=e),t}c(Yr,"oe"),n(Yr,"peg$parseCommandLine");function Oi(){var t,o,u,f,k,M,ce;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e)if(u=ji(),u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();if(f!==e)if(k=Yr(),k!==e){for(M=[],ce=Q();ce!==e;)M.push(ce),ce=Q();M!==e?(K=t,o=ve(u,k),t=o):(i=t,t=e)}else i=t,t=e;else i=t,t=e}else i=t,t=e;else i=t,t=e;return t}c(Oi,"ji"),n(Oi,"peg$parseCommandLineThen");function ji(){var t;return a.substr(i,2)===I?(t=I,i+=2):(t=e,N===0&&D(oe)),t===e&&(a.substr(i,2)===pe?(t=pe,i+=2):(t=e,N===0&&D(q))),t}c(ji,"qi"),n(ji,"peg$parseCommandLineType");function dn(){var t,o,u;return t=i,o=Ri(),o!==e?(u=_i(),u===e&&(u=null),u!==e?(K=t,o=se(o,u),t=o):(i=t,t=e)):(i=t,t=e),t}c(dn,"Ss"),n(dn,"peg$parseCommandChain");function _i(){var t,o,u,f,k,M,ce;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e)if(u=Ti(),u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();if(f!==e)if(k=dn(),k!==e){for(M=[],ce=Q();ce!==e;)M.push(ce),ce=Q();M!==e?(K=t,o=Oe(u,k),t=o):(i=t,t=e)}else i=t,t=e;else i=t,t=e}else i=t,t=e;else i=t,t=e;return t}c(_i,"_i"),n(_i,"peg$parseCommandChainThen");function Ti(){var t;return a.substr(i,2)===Ae?(t=Ae,i+=2):(t=e,N===0&&D(Ne)),t===e&&(a.charCodeAt(i)===124?(t=Me,i++):(t=e,N===0&&D(De))),t}c(Ti,"zi"),n(Ti,"peg$parseCommandChainType");function mr(){var t,o,u,f,k,M;if(t=i,o=wn(),o!==e)if(a.charCodeAt(i)===61?(u=qe,i++):(u=e,N===0&&D(rt)),u!==e)if(f=mn(),f!==e){for(k=[],M=Q();M!==e;)k.push(M),M=Q();k!==e?(K=t,o=Se(o,f),t=o):(i=t,t=e)}else i=t,t=e;else i=t,t=e;else i=t,t=e;if(t===e)if(t=i,o=wn(),o!==e)if(a.charCodeAt(i)===61?(u=qe,i++):(u=e,N===0&&D(rt)),u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();f!==e?(K=t,o=He(o),t=o):(i=t,t=e)}else i=t,t=e;else i=t,t=e;return t}c(mr,"fe"),n(mr,"peg$parseVariableAssignment");function Ri(){var t,o,u,f,k,M,ce,he,Te,Pe,ot;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e)if(a.charCodeAt(i)===40?(u=Ke,i++):(u=e,N===0&&D(Qe)),u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();if(f!==e)if(k=Gt(),k!==e){for(M=[],ce=Q();ce!==e;)M.push(ce),ce=Q();if(M!==e)if(a.charCodeAt(i)===41?(ce=re,i++):(ce=e,N===0&&D(Fe)),ce!==e){for(he=[],Te=Q();Te!==e;)he.push(Te),Te=Q();if(he!==e){for(Te=[],Pe=Kt();Pe!==e;)Te.push(Pe),Pe=Kt();if(Te!==e){for(Pe=[],ot=Q();ot!==e;)Pe.push(ot),ot=Q();Pe!==e?(K=t,o=We(k,Te),t=o):(i=t,t=e)}else i=t,t=e}else i=t,t=e}else i=t,t=e;else i=t,t=e}else i=t,t=e;else i=t,t=e}else i=t,t=e;else i=t,t=e;if(t===e){for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e)if(a.charCodeAt(i)===123?(u=we,i++):(u=e,N===0&&D(ke)),u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();if(f!==e)if(k=Gt(),k!==e){for(M=[],ce=Q();ce!==e;)M.push(ce),ce=Q();if(M!==e)if(a.charCodeAt(i)===125?(ce=Ce,i++):(ce=e,N===0&&D(Re)),ce!==e){for(he=[],Te=Q();Te!==e;)he.push(Te),Te=Q();if(he!==e){for(Te=[],Pe=Kt();Pe!==e;)Te.push(Pe),Pe=Kt();if(Te!==e){for(Pe=[],ot=Q();ot!==e;)Pe.push(ot),ot=Q();Pe!==e?(K=t,o=ye(k,Te),t=o):(i=t,t=e)}else i=t,t=e}else i=t,t=e}else i=t,t=e;else i=t,t=e}else i=t,t=e;else i=t,t=e}else i=t,t=e;else i=t,t=e;if(t===e){for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e){for(u=[],f=mr();f!==e;)u.push(f),f=mr();if(u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();if(f!==e){if(k=[],M=gn(),M!==e)for(;M!==e;)k.push(M),M=gn();else k=e;if(k!==e){for(M=[],ce=Q();ce!==e;)M.push(ce),ce=Q();M!==e?(K=t,o=Ye(u,k),t=o):(i=t,t=e)}else i=t,t=e}else i=t,t=e}else i=t,t=e}else i=t,t=e;if(t===e){for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e){if(u=[],f=mr(),f!==e)for(;f!==e;)u.push(f),f=mr();else u=e;if(u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();f!==e?(K=t,o=Ue(u),t=o):(i=t,t=e)}else i=t,t=e}else i=t,t=e}}}return t}c(Ri,"Gi"),n(Ri,"peg$parseCommand");function hn(){var t,o,u,f,k;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e){if(u=[],f=yr(),f!==e)for(;f!==e;)u.push(f),f=yr();else u=e;if(u!==e){for(f=[],k=Q();k!==e;)f.push(k),k=Q();f!==e?(K=t,o=Ve(u),t=o):(i=t,t=e)}else i=t,t=e}else i=t,t=e;return t}c(hn,"Es"),n(hn,"peg$parseCommandString");function gn(){var t,o,u;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();if(o!==e?(u=Kt(),u!==e?(K=t,o=Je(u),t=o):(i=t,t=e)):(i=t,t=e),t===e){for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();o!==e?(u=yr(),u!==e?(K=t,o=Je(u),t=o):(i=t,t=e)):(i=t,t=e)}return t}c(gn,"Fs"),n(gn,"peg$parseArgument");function Kt(){var t,o,u,f,k;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();return o!==e?(B.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(W)),u===e&&(u=null),u!==e?(f=Li(),f!==e?(k=yr(),k!==e?(K=t,o=ae(u,f,k),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t}c(Kt,"U"),n(Kt,"peg$parseRedirectArgument");function Li(){var t;return a.substr(i,2)===be?(t=be,i+=2):(t=e,N===0&&D(nt)),t===e&&(a.substr(i,2)===at?(t=at,i+=2):(t=e,N===0&&D(st)),t===e&&(a.charCodeAt(i)===62?(t=At,i++):(t=e,N===0&&D(Ge)),t===e&&(a.substr(i,3)===ft?(t=ft,i+=3):(t=e,N===0&&D(et)),t===e&&(a.substr(i,2)===ze?(t=ze,i+=2):(t=e,N===0&&D(pt)),t===e&&(a.charCodeAt(i)===60?(t=bt,i++):(t=e,N===0&&D(dt))))))),t}c(Li,"Zi"),n(Li,"peg$parseRedirectType");function yr(){var t,o,u;for(t=i,o=[],u=Q();u!==e;)o.push(u),u=Q();return o!==e?(u=mn(),u!==e?(K=t,o=Je(u),t=o):(i=t,t=e)):(i=t,t=e),t}c(yr,"ie"),n(yr,"peg$parseValueArgument");function mn(){var t,o,u;if(t=i,o=[],u=yn(),u!==e)for(;u!==e;)o.push(u),u=yn();else o=e;return o!==e&&(K=t,o=r(o)),t=o,t}c(mn,"Ts"),n(mn,"peg$parseStrictValueArgument");function yn(){var t,o;return t=i,o=Fi(),o!==e&&(K=t,o=_(o)),t=o,t===e&&(t=i,o=Pi(),o!==e&&(K=t,o=_(o)),t=o,t===e&&(t=i,o=Ii(),o!==e&&(K=t,o=_(o)),t=o,t===e&&(t=i,o=Ni(),o!==e&&(K=t,o=_(o)),t=o))),t}c(yn,"Ps"),n(yn,"peg$parseArgumentSegment");function Fi(){var t,o,u,f;return t=i,a.substr(i,2)===T?(o=T,i+=2):(o=e,N===0&&D(Z)),o!==e?(u=qi(),u!==e?(a.charCodeAt(i)===39?(f=H,i++):(f=e,N===0&&D(l)),f!==e?(K=t,o=w(u),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t}c(Fi,"Hi"),n(Fi,"peg$parseCQuoteString");function Pi(){var t,o,u,f;return t=i,a.charCodeAt(i)===39?(o=H,i++):(o=e,N===0&&D(l)),o!==e?(u=Mi(),u!==e?(a.charCodeAt(i)===39?(f=H,i++):(f=e,N===0&&D(l)),f!==e?(K=t,o=w(u),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t}c(Pi,"Ui"),n(Pi,"peg$parseSglQuoteString");function Ii(){var t,o,u,f;if(t=i,a.substr(i,2)===R?(o=R,i+=2):(o=e,N===0&&D(L)),o!==e&&(K=t,o=Y()),t=o,t===e)if(t=i,a.charCodeAt(i)===34?(o=V,i++):(o=e,N===0&&D(P)),o!==e){for(u=[],f=vn();f!==e;)u.push(f),f=vn();u!==e?(a.charCodeAt(i)===34?(f=V,i++):(f=e,N===0&&D(P)),f!==e?(K=t,o=X(u),t=o):(i=t,t=e)):(i=t,t=e)}else i=t,t=e;return t}c(Ii,"ki"),n(Ii,"peg$parseDblQuoteString");function Ni(){var t,o,u;if(t=i,o=[],u=An(),u!==e)for(;u!==e;)o.push(u),u=An();else o=e;return o!==e&&(K=t,o=X(o)),t=o,t}c(Ni,"Mi"),n(Ni,"peg$parsePlainString");function vn(){var t,o;return t=i,o=Sn(),o!==e&&(K=t,o=J(o)),t=o,t===e&&(t=i,o=En(),o!==e&&(K=t,o=ne(o)),t=o,t===e&&(t=i,o=Wr(),o!==e&&(K=t,o=me(o)),t=o,t===e&&(t=i,o=Di(),o!==e&&(K=t,o=le(o)),t=o))),t}c(vn,"Ds"),n(vn,"peg$parseDblQuoteStringSegment");function An(){var t,o;return t=i,o=Sn(),o!==e&&(K=t,o=je(o)),t=o,t===e&&(t=i,o=En(),o!==e&&(K=t,o=Kr(o)),t=o,t===e&&(t=i,o=Wr(),o!==e&&(K=t,o=Qr(o)),t=o,t===e&&(t=i,o=Hi(),o!==e&&(K=t,o=Er(o)),t=o,t===e&&(t=i,o=Bi(),o!==e&&(K=t,o=le(o)),t=o)))),t}c(An,"Qs"),n(An,"peg$parsePlainStringSegment");function Mi(){var t,o,u;for(t=i,o=[],Ht.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(Ut));u!==e;)o.push(u),Ht.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(Ut));return o!==e&&(K=t,o=wt(o)),t=o,t}c(Mi,"Ni"),n(Mi,"peg$parseSglQuoteStringText");function Di(){var t,o,u;if(t=i,o=[],u=bn(),u===e&&(wr.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(kr))),u!==e)for(;u!==e;)o.push(u),u=bn(),u===e&&(wr.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(kr)));else o=e;return o!==e&&(K=t,o=wt(o)),t=o,t}c(Di,"Bi"),n(Di,"peg$parseDblQuoteStringText");function bn(){var t,o,u;return t=i,a.substr(i,2)===tr?(o=tr,i+=2):(o=e,N===0&&D(zr)),o!==e&&(K=t,o=Zr()),t=o,t===e&&(t=i,a.charCodeAt(i)===92?(o=kt,i++):(o=e,N===0&&D(xt)),o!==e?(Xr.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(xr)),u!==e?(K=t,o=ut(u),t=o):(i=t,t=e)):(i=t,t=e)),t}c(bn,"Rs"),n(bn,"peg$parseDblQuoteEscapedChar");function qi(){var t,o,u;for(t=i,o=[],u=Cn(),u===e&&(Ht.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(Ut)));u!==e;)o.push(u),u=Cn(),u===e&&(Ht.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(Ut)));return o!==e&&(K=t,o=wt(o)),t=o,t}c(qi,"Oi"),n(qi,"peg$parseCQuoteStringText");function Cn(){var t,o,u;return t=i,a.substr(i,2)===Or?(o=Or,i+=2):(o=e,N===0&&D(jr)),o!==e&&(K=t,o=_r()),t=o,t===e&&(t=i,a.substr(i,2)===rr?(o=rr,i+=2):(o=e,N===0&&D(en)),o!==e&&(K=t,o=tn()),t=o,t===e&&(t=i,a.charCodeAt(i)===92?(o=kt,i++):(o=e,N===0&&D(xt)),o!==e?(rn.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(nn)),u!==e?(K=t,o=on(),t=o):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===p?(o=p,i+=2):(o=e,N===0&&D(ge)),o!==e&&(K=t,o=Wt()),t=o,t===e&&(t=i,a.substr(i,2)===tt?(o=tt,i+=2):(o=e,N===0&&D(nr)),o!==e&&(K=t,o=te()),t=o,t===e&&(t=i,a.substr(i,2)===Ft?(o=Ft,i+=2):(o=e,N===0&&D(ir)),o!==e&&(K=t,o=an()),t=o,t===e&&(t=i,a.substr(i,2)===Tr?(o=Tr,i+=2):(o=e,N===0&&D(sn)),o!==e&&(K=t,o=Ee()),t=o,t===e&&(t=i,a.substr(i,2)===it?(o=it,i+=2):(o=e,N===0&&D(Rr)),o!==e&&(K=t,o=Lr()),t=o,t===e&&(t=i,a.charCodeAt(i)===92?(o=kt,i++):(o=e,N===0&&D(xt)),o!==e?(Ct.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(or)),u!==e?(K=t,o=ut(u),t=o):(i=t,t=e)):(i=t,t=e),t===e&&(t=Yi()))))))))),t}c(Cn,"Vs"),n(Cn,"peg$parseCQuoteEscapedChar");function Yi(){var t,o,u,f,k,M,ce,he,Te,Pe,ot,On;return t=i,a.charCodeAt(i)===92?(o=kt,i++):(o=e,N===0&&D(xt)),o!==e?(u=Br(),u!==e?(K=t,o=ht(u),t=o):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===ie?(o=ie,i+=2):(o=e,N===0&&D(Fr)),o!==e?(u=i,f=i,k=Br(),k!==e?(M=Xe(),M!==e?(k=[k,M],f=k):(i=f,f=e)):(i=f,f=e),f===e&&(f=Br()),f!==e?u=a.substring(u,i):u=f,u!==e?(K=t,o=ht(u),t=o):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===Vt?(o=Vt,i+=2):(o=e,N===0&&D(ar)),o!==e?(u=i,f=i,k=Xe(),k!==e?(M=Xe(),M!==e?(ce=Xe(),ce!==e?(he=Xe(),he!==e?(k=[k,M,ce,he],f=k):(i=f,f=e)):(i=f,f=e)):(i=f,f=e)):(i=f,f=e),f!==e?u=a.substring(u,i):u=f,u!==e?(K=t,o=ht(u),t=o):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===sr?(o=sr,i+=2):(o=e,N===0&&D(ur)),o!==e?(u=i,f=i,k=Xe(),k!==e?(M=Xe(),M!==e?(ce=Xe(),ce!==e?(he=Xe(),he!==e?(Te=Xe(),Te!==e?(Pe=Xe(),Pe!==e?(ot=Xe(),ot!==e?(On=Xe(),On!==e?(k=[k,M,ce,he,Te,Pe,ot,On],f=k):(i=f,f=e)):(i=f,f=e)):(i=f,f=e)):(i=f,f=e)):(i=f,f=e)):(i=f,f=e)):(i=f,f=e)):(i=f,f=e),f!==e?u=a.substring(u,i):u=f,u!==e?(K=t,o=cr(u),t=o):(i=t,t=e)):(i=t,t=e)))),t}c(Yi,"Xi"),n(Yi,"peg$parseHexCodeString");function Br(){var t;return lr.test(a.charAt(i))?(t=a.charAt(i),i++):(t=e,N===0&&D(Pt)),t}c(Br,"$e"),n(Br,"peg$parseHexCodeChar0");function Xe(){var t;return Ot.test(a.charAt(i))?(t=a.charAt(i),i++):(t=e,N===0&&D(Pr)),t}c(Xe,"x"),n(Xe,"peg$parseHexCodeChar");function Bi(){var t,o,u,f,k;if(t=i,o=[],u=i,a.charCodeAt(i)===92?(f=kt,i++):(f=e,N===0&&D(xt)),f!==e?(a.length>i?(k=a.charAt(i),i++):(k=e,N===0&&D(gt)),k!==e?(K=u,f=ut(k),u=f):(i=u,u=e)):(i=u,u=e),u===e&&(u=i,a.substr(i,2)===jt?(f=jt,i+=2):(f=e,N===0&&D(fr)),f!==e&&(K=u,f=$t()),u=f,u===e&&(u=i,f=i,N++,k=kn(),N--,k===e?f=void 0:(i=f,f=e),f!==e?(a.length>i?(k=a.charAt(i),i++):(k=e,N===0&&D(gt)),k!==e?(K=u,f=ut(k),u=f):(i=u,u=e)):(i=u,u=e))),u!==e)for(;u!==e;)o.push(u),u=i,a.charCodeAt(i)===92?(f=kt,i++):(f=e,N===0&&D(xt)),f!==e?(a.length>i?(k=a.charAt(i),i++):(k=e,N===0&&D(gt)),k!==e?(K=u,f=ut(k),u=f):(i=u,u=e)):(i=u,u=e),u===e&&(u=i,a.substr(i,2)===jt?(f=jt,i+=2):(f=e,N===0&&D(fr)),f!==e&&(K=u,f=$t()),u=f,u===e&&(u=i,f=i,N++,k=kn(),N--,k===e?f=void 0:(i=f,f=e),f!==e?(a.length>i?(k=a.charAt(i),i++):(k=e,N===0&&D(gt)),k!==e?(K=u,f=ut(k),u=f):(i=u,u=e)):(i=u,u=e)));else o=e;return o!==e&&(K=t,o=wt(o)),t=o,t}c(Bi,"Ji"),n(Bi,"peg$parsePlainStringText");function Hr(){var t,o,u,f,k,M;if(t=i,a.charCodeAt(i)===45?(o=It,i++):(o=e,N===0&&D(Nt)),o===e&&(a.charCodeAt(i)===43?(o=_t,i++):(o=e,N===0&&D(St))),o===e&&(o=null),o!==e){if(u=[],B.test(a.charAt(i))?(f=a.charAt(i),i++):(f=e,N===0&&D(W)),f!==e)for(;f!==e;)u.push(f),B.test(a.charAt(i))?(f=a.charAt(i),i++):(f=e,N===0&&D(W));else u=e;if(u!==e)if(a.charCodeAt(i)===46?(f=pr,i++):(f=e,N===0&&D(Ir)),f!==e){if(k=[],B.test(a.charAt(i))?(M=a.charAt(i),i++):(M=e,N===0&&D(W)),M!==e)for(;M!==e;)k.push(M),B.test(a.charAt(i))?(M=a.charAt(i),i++):(M=e,N===0&&D(W));else k=e;k!==e?(K=t,o=Mt(o,u,k),t=o):(i=t,t=e)}else i=t,t=e;else i=t,t=e}else i=t,t=e;if(t===e){if(t=i,a.charCodeAt(i)===45?(o=It,i++):(o=e,N===0&&D(Nt)),o===e&&(a.charCodeAt(i)===43?(o=_t,i++):(o=e,N===0&&D(St))),o===e&&(o=null),o!==e){if(u=[],B.test(a.charAt(i))?(f=a.charAt(i),i++):(f=e,N===0&&D(W)),f!==e)for(;f!==e;)u.push(f),B.test(a.charAt(i))?(f=a.charAt(i),i++):(f=e,N===0&&D(W));else u=e;u!==e?(K=t,o=Nr(o,u),t=o):(i=t,t=e)}else i=t,t=e;if(t===e&&(t=i,o=Wr(),o!==e&&(K=t,o=dr(o)),t=o,t===e&&(t=i,o=Rt(),o!==e&&(K=t,o=Dt(o)),t=o,t===e)))if(t=i,a.charCodeAt(i)===40?(o=Ke,i++):(o=e,N===0&&D(Qe)),o!==e){for(u=[],f=Q();f!==e;)u.push(f),f=Q();if(u!==e)if(f=$n(),f!==e){for(k=[],M=Q();M!==e;)k.push(M),M=Q();k!==e?(a.charCodeAt(i)===41?(M=re,i++):(M=e,N===0&&D(Fe)),M!==e?(K=t,o=_e(f),t=o):(i=t,t=e)):(i=t,t=e)}else i=t,t=e;else i=t,t=e}else i=t,t=e}return t}c(Hr,"Ae"),n(Hr,"peg$parseArithmeticPrimary");function Ur(){var t,o,u,f,k,M,ce,he;if(t=i,o=Hr(),o!==e){for(u=[],f=i,k=[],M=Q();M!==e;)k.push(M),M=Q();if(k!==e)if(a.charCodeAt(i)===42?(M=Mr,i++):(M=e,N===0&&D(ct)),M===e&&(a.charCodeAt(i)===47?(M=lt,i++):(M=e,N===0&&D(hr))),M!==e){for(ce=[],he=Q();he!==e;)ce.push(he),he=Q();ce!==e?(he=Hr(),he!==e?(K=f,k=qt(o,M,he),f=k):(i=f,f=e)):(i=f,f=e)}else i=f,f=e;else i=f,f=e;for(;f!==e;){for(u.push(f),f=i,k=[],M=Q();M!==e;)k.push(M),M=Q();if(k!==e)if(a.charCodeAt(i)===42?(M=Mr,i++):(M=e,N===0&&D(ct)),M===e&&(a.charCodeAt(i)===47?(M=lt,i++):(M=e,N===0&&D(hr))),M!==e){for(ce=[],he=Q();he!==e;)ce.push(he),he=Q();ce!==e?(he=Hr(),he!==e?(K=f,k=qt(o,M,he),f=k):(i=f,f=e)):(i=f,f=e)}else i=f,f=e;else i=f,f=e}u!==e?(K=t,o=s(o,u),t=o):(i=t,t=e)}else i=t,t=e;return t}c(Ur,"de"),n(Ur,"peg$parseArithmeticTimesExpression");function $n(){var t,o,u,f,k,M,ce,he;if(t=i,o=Ur(),o!==e){for(u=[],f=i,k=[],M=Q();M!==e;)k.push(M),M=Q();if(k!==e)if(a.charCodeAt(i)===43?(M=_t,i++):(M=e,N===0&&D(St)),M===e&&(a.charCodeAt(i)===45?(M=It,i++):(M=e,N===0&&D(Nt))),M!==e){for(ce=[],he=Q();he!==e;)ce.push(he),he=Q();ce!==e?(he=Ur(),he!==e?(K=f,k=d(o,M,he),f=k):(i=f,f=e)):(i=f,f=e)}else i=f,f=e;else i=f,f=e;for(;f!==e;){for(u.push(f),f=i,k=[],M=Q();M!==e;)k.push(M),M=Q();if(k!==e)if(a.charCodeAt(i)===43?(M=_t,i++):(M=e,N===0&&D(St)),M===e&&(a.charCodeAt(i)===45?(M=It,i++):(M=e,N===0&&D(Nt))),M!==e){for(ce=[],he=Q();he!==e;)ce.push(he),he=Q();ce!==e?(he=Ur(),he!==e?(K=f,k=d(o,M,he),f=k):(i=f,f=e)):(i=f,f=e)}else i=f,f=e;else i=f,f=e}u!==e?(K=t,o=s(o,u),t=o):(i=t,t=e)}else i=t,t=e;return t}c($n,"Is"),n($n,"peg$parseArithmeticExpression");function Sn(){var t,o,u,f,k,M;if(t=i,a.substr(i,3)===j?(o=j,i+=3):(o=e,N===0&&D(G)),o!==e){for(u=[],f=Q();f!==e;)u.push(f),f=Q();if(u!==e)if(f=$n(),f!==e){for(k=[],M=Q();M!==e;)k.push(M),M=Q();k!==e?(a.substr(i,2)===U?(M=U,i+=2):(M=e,N===0&&D(ee)),M!==e?(K=t,o=de(f),t=o):(i=t,t=e)):(i=t,t=e)}else i=t,t=e;else i=t,t=e}else i=t,t=e;return t}c(Sn,"Ls"),n(Sn,"peg$parseArithmetic");function En(){var t,o,u,f;return t=i,a.substr(i,2)===$e?(o=$e,i+=2):(o=e,N===0&&D(Tt)),o!==e?(u=Gt(),u!==e?(a.charCodeAt(i)===41?(f=re,i++):(f=e,N===0&&D(Fe)),f!==e?(K=t,o=Uo(u),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t}c(En,"js"),n(En,"peg$parseSubshell");function Wr(){var t,o,u,f,k,M;return t=i,a.substr(i,2)===mt?(o=mt,i+=2):(o=e,N===0&&D(gr)),o!==e?(u=Rt(),u!==e?(a.substr(i,2)===li?(f=li,i+=2):(f=e,N===0&&D(Wo)),f!==e?(k=hn(),k!==e?(a.charCodeAt(i)===125?(M=Ce,i++):(M=e,N===0&&D(Re)),M!==e?(K=t,o=Vo(u,k),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===mt?(o=mt,i+=2):(o=e,N===0&&D(gr)),o!==e?(u=Rt(),u!==e?(a.substr(i,3)===fi?(f=fi,i+=3):(f=e,N===0&&D(Jo)),f!==e?(K=t,o=Go(u),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===mt?(o=mt,i+=2):(o=e,N===0&&D(gr)),o!==e?(u=Rt(),u!==e?(a.substr(i,2)===pi?(f=pi,i+=2):(f=e,N===0&&D(Ko)),f!==e?(k=hn(),k!==e?(a.charCodeAt(i)===125?(M=Ce,i++):(M=e,N===0&&D(Re)),M!==e?(K=t,o=Qo(u,k),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===mt?(o=mt,i+=2):(o=e,N===0&&D(gr)),o!==e?(u=Rt(),u!==e?(a.substr(i,3)===di?(f=di,i+=3):(f=e,N===0&&D(zo)),f!==e?(K=t,o=Zo(u),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.substr(i,2)===mt?(o=mt,i+=2):(o=e,N===0&&D(gr)),o!==e?(u=Rt(),u!==e?(a.charCodeAt(i)===125?(f=Ce,i++):(f=e,N===0&&D(Re)),f!==e?(K=t,o=hi(u),t=o):(i=t,t=e)):(i=t,t=e)):(i=t,t=e),t===e&&(t=i,a.charCodeAt(i)===36?(o=Xo,i++):(o=e,N===0&&D(ea)),o!==e?(u=Rt(),u!==e?(K=t,o=hi(u),t=o):(i=t,t=e)):(i=t,t=e)))))),t}c(Wr,"we"),n(Wr,"peg$parseVariable");function Hi(){var t,o,u;return t=i,o=Ui(),o!==e?(K=i,u=ta(o),u?u=void 0:u=e,u!==e?(K=t,o=ra(o),t=o):(i=t,t=e)):(i=t,t=e),t}c(Hi,"Ki"),n(Hi,"peg$parseGlob");function Ui(){var t,o,u,f,k;if(t=i,o=[],u=i,f=i,N++,k=xn(),N--,k===e?f=void 0:(i=f,f=e),f!==e?(a.length>i?(k=a.charAt(i),i++):(k=e,N===0&&D(gt)),k!==e?(K=u,f=ut(k),u=f):(i=u,u=e)):(i=u,u=e),u!==e)for(;u!==e;)o.push(u),u=i,f=i,N++,k=xn(),N--,k===e?f=void 0:(i=f,f=e),f!==e?(a.length>i?(k=a.charAt(i),i++):(k=e,N===0&&D(gt)),k!==e?(K=u,f=ut(k),u=f):(i=u,u=e)):(i=u,u=e);else o=e;return o!==e&&(K=t,o=wt(o)),t=o,t}c(Ui,"Wi"),n(Ui,"peg$parseGlobText");function wn(){var t,o,u;if(t=i,o=[],gi.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(mi)),u!==e)for(;u!==e;)o.push(u),gi.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(mi));else o=e;return o!==e&&(K=t,o=yi()),t=o,t}c(wn,"qs"),n(wn,"peg$parseEnvVariable");function Rt(){var t,o,u;if(t=i,o=[],vi.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(Ai)),u!==e)for(;u!==e;)o.push(u),vi.test(a.charAt(i))?(u=a.charAt(i),i++):(u=e,N===0&&D(Ai));else o=e;return o!==e&&(K=t,o=yi()),t=o,t}c(Rt,"R"),n(Rt,"peg$parseIdentifier");function kn(){var t;return na.test(a.charAt(i))?(t=a.charAt(i),i++):(t=e,N===0&&D(ia)),t}c(kn,"_s"),n(kn,"peg$parseSpecialShellChars");function xn(){var t;return oa.test(a.charAt(i))?(t=a.charAt(i),i++):(t=e,N===0&&D(aa)),t}c(xn,"zs"),n(xn,"peg$parseGlobSpecialShellChars");function Q(){var t,o;if(t=[],bi.test(a.charAt(i))?(o=a.charAt(i),i++):(o=e,N===0&&D(Ci)),o!==e)for(;o!==e;)t.push(o),bi.test(a.charAt(i))?(o=a.charAt(i),i++):(o=e,N===0&&D(Ci));else t=e;return t}if(c(Q,"h"),n(Q,"peg$parseS"),qr=x(),qr!==e&&i===a.length)return qr;throw qr!==e&&i<a.length&&D(Ei()),ln(un,yt<a.length?a.charAt(yt):null,yt<a.length?Jt(yt,yt+1):Jt(yt,yt))}return c(S,"peg$parse"),n(S,"peg$parse"),Tn={SyntaxError:y,parse:S},Tn}c(Na,"requireShell$1");var Qi;function Ma(){if(Qi)return Le;Qi=1;var g=Object.defineProperty,n=c((I,oe)=>g(I,"name",{value:oe,configurable:!0}),"t");Object.defineProperty(Le,"__esModule",{value:!0}),Le.parseShell=y,Le.stringifyShellLine=S,Le.stringifyShell=S,Le.stringifyCommandLine=a,Le.stringifyCommandLineThen=m,Le.stringifyCommandChain=e,Le.stringifyCommandChainThen=A,Le.stringifyCommand=x,Le.stringifyEnvSegment=b,Le.stringifyArgument=E,Le.stringifyRedirectArgument=O,Le.stringifyValueArgument=F,Le.stringifyArgumentSegment=fe,Le.stringifyArithmeticExpression=ve,Le.stringifyShellLine=S,Le.stringifyShell=S;const h=Na();function y(I,oe={isGlobPattern:n(()=>!1,"isGlobPattern")}){try{return(0,h.parse)(I,oe)}catch(pe){throw pe.location&&(pe.message=pe.message.replace(/(\.)?$/,` (line ${pe.location.start.line}, column ${pe.location.start.column})$1`)),pe}}c(y,"parseShell"),n(y,"parseShell");function S(I,{endSemicolon:oe=!1}={}){return I.map(({command:pe,type:q},se)=>`${a(pe)}${q===";"?se!==I.length-1||oe?";":"":" &"}`).join(" ")}c(S,"stringifyShellLine"),n(S,"stringifyShellLine");function a(I){return`${e(I.chain)}${I.then?` ${m(I.then)}`:""}`}c(a,"stringifyCommandLine"),n(a,"stringifyCommandLine");function m(I){return`${I.type} ${a(I.line)}`}c(m,"stringifyCommandLineThen"),n(m,"stringifyCommandLineThen");function e(I){return`${x(I)}${I.then?` ${A(I.then)}`:""}`}c(e,"stringifyCommandChain"),n(e,"stringifyCommandChain");function A(I){return`${I.type} ${e(I.chain)}`}c(A,"stringifyCommandChainThen"),n(A,"stringifyCommandChainThen");function x(I){switch(I.type){case"command":return`${I.envs.length>0?`${I.envs.map(oe=>b(oe)).join(" ")} `:""}${I.args.map(oe=>E(oe)).join(" ")}`;case"subshell":return`(${S(I.subshell)})${I.args.length>0?` ${I.args.map(oe=>O(oe)).join(" ")}`:""}`;case"group":return`{ ${S(I.group,{endSemicolon:!0})} }${I.args.length>0?` ${I.args.map(oe=>O(oe)).join(" ")}`:""}`;case"envs":return I.envs.map(oe=>b(oe)).join(" ");default:throw new Error(`Unsupported command type: "${I.type}"`)}}c(x,"stringifyCommand"),n(x,"stringifyCommand");function b(I){return`${I.name}=${I.args[0]?F(I.args[0]):""}`}c(b,"stringifyEnvSegment"),n(b,"stringifyEnvSegment");function E(I){switch(I.type){case"redirection":return O(I);case"argument":return F(I);default:throw new Error(`Unsupported argument type: "${I.type}"`)}}c(E,"stringifyArgument"),n(E,"stringifyArgument");function O(I){return`${I.subtype} ${I.args.map(oe=>F(oe)).join(" ")}`}c(O,"stringifyRedirectArgument"),n(O,"stringifyRedirectArgument");function F(I){return I.segments.map(oe=>fe(oe)).join("")}c(F,"stringifyValueArgument"),n(F,"stringifyValueArgument");const $=new Map([["\f","\\f"],[`
|
|
8
|
+
`,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),v=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from($,([I,oe])=>[I,`"$'${oe}'"`])]),C=n(I=>$.get(I)??`\\x${I.charCodeAt(0).toString(16).padStart(2,"0")}`,"getEscapedControlChar"),z=n(I=>v.get(I)??`"$'${C(I)}'"`,"getEscapedDblChar");function fe(I){const oe=n((q,se)=>se?`"${q}"`:q,"doubleQuoteIfRequested"),pe=n(q=>q===""?"''":q.match(/[()}<>$|&;"'\n\t ]/)?q.match(/['\t\p{C}]/u)?q.match(/'/)?`"${q.replace(/["$\t\p{C}]/u,z)}"`:`$'${q.replace(/[\t\p{C}]/u,C)}'`:`'${q}'`:q,"quoteIfNeeded");switch(I.type){case"text":return pe(I.text);case"glob":return I.pattern;case"shell":return oe(`$(${S(I.shell)})`,I.quoted);case"variable":return oe(typeof I.defaultValue>"u"?typeof I.alternativeValue>"u"?`\${${I.name}}`:I.alternativeValue.length===0?`\${${I.name}:+}`:`\${${I.name}:+${I.alternativeValue.map(q=>F(q)).join(" ")}}`:I.defaultValue.length===0?`\${${I.name}:-}`:`\${${I.name}:-${I.defaultValue.map(q=>F(q)).join(" ")}}`,I.quoted);case"arithmetic":return`$(( ${ve(I.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${I.type}"`)}}c(fe,"stringifyArgumentSegment"),n(fe,"stringifyArgumentSegment");function ve(I){const oe=n(se=>{switch(se){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${se}"`)}},"getOperator"),pe=n((se,Oe)=>Oe?`( ${se} )`:se,"parenthesizeIfRequested"),q=n(se=>pe(ve(se),!["number","variable"].includes(se.type)),"stringifyAndParenthesizeIfNeeded");switch(I.type){case"number":return String(I.value);case"variable":return I.name;default:return`${q(I.left)} ${oe(I.type)} ${q(I.right)}`}}return c(ve,"stringifyArithmeticExpression"),n(ve,"stringifyArithmeticExpression"),Le}c(Ma,"requireShell");var Ar={},Rn,zi;function Da(){if(zi)return Rn;zi=1;var g=Object.defineProperty,n=c((a,m)=>g(a,"name",{value:m,configurable:!0}),"c");function h(a,m){function e(){this.constructor=a}c(e,"t"),n(e,"ctor"),e.prototype=m.prototype,a.prototype=new e}c(h,"peg$subclass"),n(h,"peg$subclass");function y(a,m,e,A){this.message=a,this.expected=m,this.found=e,this.location=A,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,y)}c(y,"peg$SyntaxError"),n(y,"peg$SyntaxError"),h(y,Error),y.buildMessage=function(a,m){var e={literal:n(function($){return'"'+x($.text)+'"'},"literal"),class:n(function($){var v="",C;for(C=0;C<$.parts.length;C++)v+=$.parts[C]instanceof Array?b($.parts[C][0])+"-"+b($.parts[C][1]):b($.parts[C]);return"["+($.inverted?"^":"")+v+"]"},"class"),any:n(function($){return"any character"},"any"),end:n(function($){return"end of input"},"end"),other:n(function($){return $.description},"other")};function A($){return $.charCodeAt(0).toString(16).toUpperCase()}c(A,"h"),n(A,"hex");function x($){return $.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+A(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+A(v)})}c(x,"m"),n(x,"literalEscape");function b($){return $.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+A(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+A(v)})}c(b,"x"),n(b,"classEscape");function E($){return e[$.type]($)}c(E,"A"),n(E,"describeExpectation");function O($){var v=new Array($.length),C,z;for(C=0;C<$.length;C++)v[C]=E($[C]);if(v.sort(),v.length>0){for(C=1,z=1;C<v.length;C++)v[C-1]!==v[C]&&(v[z]=v[C],z++);v.length=z}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}c(O,"C"),n(O,"describeExpected");function F($){return $?'"'+x($)+'"':"end of input"}return c(F,"b"),n(F,"describeFound"),"Expected "+O(a)+" but "+F(m)+" found."};function S(a,m){m=m!==void 0?m:{};var e={},A={resolution:ye},x=ye,b="/",E=He("/",!1),O=n(function(B,W){return{from:B,descriptor:W}},"peg$c2"),F=n(function(B){return{descriptor:B}},"peg$c3"),$="@",v=He("@",!1),C=n(function(B,W){return{fullName:B,description:W}},"peg$c6"),z=n(function(B){return{fullName:B}},"peg$c7"),fe=n(function(){return De()},"peg$c8"),ve=/^[^\/@]/,I=Ke(["/","@"],!0,!1),oe=/^[^\/]/,pe=Ke(["/"],!0,!1),q=0,se=0,Oe=[{line:1,column:1}],Ae=0,Ne=[],Me;if("startRule"in m){if(!(m.startRule in A))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');x=A[m.startRule]}function De(){return a.substring(se,q)}c(De,"U"),n(De,"text");function qe(){return we(se,q)}c(qe,"J"),n(qe,"location");function rt(B,W){throw W=W!==void 0?W:we(se,q),Re([Fe(B)],a.substring(se,q),W)}c(rt,"K"),n(rt,"expected");function Se(B,W){throw W=W!==void 0?W:we(se,q),Ce(B,W)}c(Se,"Q"),n(Se,"error");function He(B,W){return{type:"literal",text:B,ignoreCase:W}}c(He,"j"),n(He,"peg$literalExpectation");function Ke(B,W,ae){return{type:"class",parts:B,inverted:W,ignoreCase:ae}}c(Ke,"k"),n(Ke,"peg$classExpectation");function Qe(){return{type:"any"}}c(Qe,"V"),n(Qe,"peg$anyExpectation");function re(){return{type:"end"}}c(re,"X"),n(re,"peg$endExpectation");function Fe(B){return{type:"other",description:B}}c(Fe,"q"),n(Fe,"peg$otherExpectation");function We(B){var W=Oe[B],ae;if(W)return W;for(ae=B-1;!Oe[ae];)ae--;for(W=Oe[ae],W={line:W.line,column:W.column};ae<B;)a.charCodeAt(ae)===10?(W.line++,W.column=1):W.column++,ae++;return Oe[B]=W,W}c(We,"L"),n(We,"peg$computePosDetails");function we(B,W){var ae=We(B),be=We(W);return{start:{offset:B,line:ae.line,column:ae.column},end:{offset:W,line:be.line,column:be.column}}}c(we,"y"),n(we,"peg$computeLocation");function ke(B){q<Ae||(q>Ae&&(Ae=q,Ne=[]),Ne.push(B))}c(ke,"$"),n(ke,"peg$fail");function Ce(B,W){return new y(B,null,null,W)}c(Ce,"z"),n(Ce,"peg$buildSimpleError");function Re(B,W,ae){return new y(y.buildMessage(B,W),B,W,ae)}c(Re,"M"),n(Re,"peg$buildStructuredError");function ye(){var B,W,ae,be;return B=q,W=Ye(),W!==e?(a.charCodeAt(q)===47?(ae=b,q++):(ae=e,ke(E)),ae!==e?(be=Ye(),be!==e?(se=B,W=O(W,be),B=W):(q=B,B=e)):(q=B,B=e)):(q=B,B=e),B===e&&(B=q,W=Ye(),W!==e&&(se=B,W=F(W)),B=W),B}c(ye,"_"),n(ye,"peg$parseresolution");function Ye(){var B,W,ae,be;return B=q,W=Ue(),W!==e?(a.charCodeAt(q)===64?(ae=$,q++):(ae=e,ke(v)),ae!==e?(be=Je(),be!==e?(se=B,W=C(W,be),B=W):(q=B,B=e)):(q=B,B=e)):(q=B,B=e),B===e&&(B=q,W=Ue(),W!==e&&(se=B,W=z(W)),B=W),B}c(Ye,"R"),n(Ye,"peg$parsespecifier");function Ue(){var B,W,ae,be,nt;return B=q,a.charCodeAt(q)===64?(W=$,q++):(W=e,ke(v)),W!==e?(ae=Ve(),ae!==e?(a.charCodeAt(q)===47?(be=b,q++):(be=e,ke(E)),be!==e?(nt=Ve(),nt!==e?(se=B,W=fe(),B=W):(q=B,B=e)):(q=B,B=e)):(q=B,B=e)):(q=B,B=e),B===e&&(B=q,W=Ve(),W!==e&&(se=B,W=fe()),B=W),B}c(Ue,"B"),n(Ue,"peg$parsefullName");function Ve(){var B,W,ae;if(B=q,W=[],ve.test(a.charAt(q))?(ae=a.charAt(q),q++):(ae=e,ke(I)),ae!==e)for(;ae!==e;)W.push(ae),ve.test(a.charAt(q))?(ae=a.charAt(q),q++):(ae=e,ke(I));else W=e;return W!==e&&(se=B,W=fe()),B=W,B}c(Ve,"D"),n(Ve,"peg$parseident");function Je(){var B,W,ae;if(B=q,W=[],oe.test(a.charAt(q))?(ae=a.charAt(q),q++):(ae=e,ke(pe)),ae!==e)for(;ae!==e;)W.push(ae),oe.test(a.charAt(q))?(ae=a.charAt(q),q++):(ae=e,ke(pe));else W=e;return W!==e&&(se=B,W=fe()),B=W,B}if(c(Je,"G"),n(Je,"peg$parsedescription"),Me=x(),Me!==e&&q===a.length)return Me;throw Me!==e&&q<a.length&&ke(re()),Re(Ne,Ae<a.length?a.charAt(Ae):null,Ae<a.length?we(Ae,Ae+1):we(Ae,Ae))}return c(S,"peg$parse"),n(S,"peg$parse"),Rn={SyntaxError:y,parse:S},Rn}c(Da,"requireResolution$1");var Zi;function qa(){if(Zi)return Ar;Zi=1;var g=Object.defineProperty,n=c((a,m)=>g(a,"name",{value:m,configurable:!0}),"o");Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.parseResolution=y,Ar.stringifyResolution=S;const h=Da();function y(a){const m=a.match(/^\*{1,2}\/(.*)/);if(m)throw new Error(`The override for '${a}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${m[1]}' instead.`);try{return(0,h.parse)(a)}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}c(y,"parseResolution"),n(y,"parseResolution");function S(a){let m="";return a.from&&(m+=a.from.fullName,a.from.description&&(m+=`@${a.from.description}`),m+="/"),m+=a.descriptor.fullName,a.descriptor.description&&(m+=`@${a.descriptor.description}`),m}return c(S,"stringifyResolution"),n(S,"stringifyResolution"),Ar}c(qa,"requireResolution");var Yt={},xe={},Qt={},Lt={},Xi;function Xt(){if(Xi)return Lt;Xi=1;var g=Object.defineProperty,n=c((A,x)=>g(A,"name",{value:x,configurable:!0}),"o");function h(A){return typeof A>"u"||A===null}c(h,"isNothing"),n(h,"isNothing");function y(A){return typeof A=="object"&&A!==null}c(y,"isObject"),n(y,"isObject");function S(A){return Array.isArray(A)?A:h(A)?[]:[A]}c(S,"toArray"),n(S,"toArray");function a(A,x){var b,E,O,F;if(x)for(F=Object.keys(x),b=0,E=F.length;b<E;b+=1)O=F[b],A[O]=x[O];return A}c(a,"extend"),n(a,"extend");function m(A,x){var b="",E;for(E=0;E<x;E+=1)b+=A;return b}c(m,"repeat"),n(m,"repeat");function e(A){return A===0&&Number.NEGATIVE_INFINITY===1/A}return c(e,"isNegativeZero"),n(e,"isNegativeZero"),Lt.isNothing=h,Lt.isObject=y,Lt.toArray=S,Lt.repeat=m,Lt.isNegativeZero=e,Lt.extend=a,Lt}c(Xt,"requireCommon");var Ln,eo;function Sr(){if(eo)return Ln;eo=1;var g=Object.defineProperty,n=c((y,S)=>g(y,"name",{value:S,configurable:!0}),"s");function h(y,S){Error.call(this),this.name="YAMLException",this.reason=y,this.mark=S,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return c(h,"YAMLException"),n(h,"YAMLException"),h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=n(function(y){var S=this.name+": ";return S+=this.reason||"(unknown reason)",!y&&this.mark&&(S+=" "+this.mark.toString()),S},"toString"),Ln=h,Ln}c(Sr,"requireException");var Fn,to;function Ya(){if(to)return Fn;to=1;var g=Object.defineProperty,n=c((S,a)=>g(S,"name",{value:a,configurable:!0}),"o"),h=Xt();function y(S,a,m,e,A){this.name=S,this.buffer=a,this.position=m,this.line=e,this.column=A}return c(y,"Mark"),n(y,"Mark"),y.prototype.getSnippet=n(function(S,a){var m,e,A,x,b;if(!this.buffer)return null;for(S=S||4,a=a||75,m="",e=this.position;e>0&&`\0\r
|
|
9
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(e-1))===-1;)if(e-=1,this.position-e>a/2-1){m=" ... ",e+=5;break}for(A="",x=this.position;x<this.buffer.length&&`\0\r
|
|
10
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(x))===-1;)if(x+=1,x-this.position>a/2-1){A=" ... ",x-=5;break}return b=this.buffer.slice(e,x),h.repeat(" ",S)+m+b+A+`
|
|
11
|
+
`+h.repeat(" ",S+this.position-e+m.length)+"^"},"getSnippet"),y.prototype.toString=n(function(S){var a,m="";return this.name&&(m+='in "'+this.name+'" '),m+="at line "+(this.line+1)+", column "+(this.column+1),S||(a=this.getSnippet(),a&&(m+=`:
|
|
12
|
+
`+a)),m},"toString"),Fn=y,Fn}c(Ya,"requireMark");var Pn,ro;function Ie(){if(ro)return Pn;ro=1;var g=Object.defineProperty,n=c((e,A)=>g(e,"name",{value:A,configurable:!0}),"i"),h=Sr(),y=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],S=["scalar","sequence","mapping"];function a(e){var A={};return e!==null&&Object.keys(e).forEach(function(x){e[x].forEach(function(b){A[String(b)]=x})}),A}c(a,"compileStyleAliases"),n(a,"compileStyleAliases");function m(e,A){if(A=A||{},Object.keys(A).forEach(function(x){if(y.indexOf(x)===-1)throw new h('Unknown option "'+x+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=A.kind||null,this.resolve=A.resolve||function(){return!0},this.construct=A.construct||function(x){return x},this.instanceOf=A.instanceOf||null,this.predicate=A.predicate||null,this.represent=A.represent||null,this.defaultStyle=A.defaultStyle||null,this.styleAliases=a(A.styleAliases||null),S.indexOf(this.kind)===-1)throw new h('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}return c(m,"Type"),n(m,"Type"),Pn=m,Pn}c(Ie,"requireType");var In,no;function er(){if(no)return In;no=1;var g=Object.defineProperty,n=c((A,x)=>g(A,"name",{value:x,configurable:!0}),"a"),h=Xt(),y=Sr(),S=Ie();function a(A,x,b){var E=[];return A.include.forEach(function(O){b=a(O,x,b)}),A[x].forEach(function(O){b.forEach(function(F,$){F.tag===O.tag&&F.kind===O.kind&&E.push($)}),b.push(O)}),b.filter(function(O,F){return E.indexOf(F)===-1})}c(a,"compileList"),n(a,"compileList");function m(){var A={scalar:{},sequence:{},mapping:{},fallback:{}},x,b;function E(O){A[O.kind][O.tag]=A.fallback[O.tag]=O}for(c(E,"n"),n(E,"collectType"),x=0,b=arguments.length;x<b;x+=1)arguments[x].forEach(E);return A}c(m,"compileMap"),n(m,"compileMap");function e(A){this.include=A.include||[],this.implicit=A.implicit||[],this.explicit=A.explicit||[],this.implicit.forEach(function(x){if(x.loadKind&&x.loadKind!=="scalar")throw new y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=m(this.compiledImplicit,this.compiledExplicit)}return c(e,"Schema"),n(e,"Schema"),e.DEFAULT=null,e.create=n(function(){var A,x;switch(arguments.length){case 1:A=e.DEFAULT,x=arguments[0];break;case 2:A=arguments[0],x=arguments[1];break;default:throw new y("Wrong number of arguments for Schema.create function")}if(A=h.toArray(A),x=h.toArray(x),!A.every(function(b){return b instanceof e}))throw new y("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!x.every(function(b){return b instanceof S}))throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:A,explicit:x})},"createSchema"),In=e,In}c(er,"requireSchema");var Nn,io;function Ba(){if(io)return Nn;io=1;var g=Object.defineProperty,n=c((y,S)=>g(y,"name",{value:S,configurable:!0}),"e"),h=Ie();return Nn=new h("tag:yaml.org,2002:str",{kind:"scalar",construct:n(function(y){return y!==null?y:""},"construct")}),Nn}c(Ba,"requireStr");var Mn,oo;function Ha(){if(oo)return Mn;oo=1;var g=Object.defineProperty,n=c((y,S)=>g(y,"name",{value:S,configurable:!0}),"r"),h=Ie();return Mn=new h("tag:yaml.org,2002:seq",{kind:"sequence",construct:n(function(y){return y!==null?y:[]},"construct")}),Mn}c(Ha,"requireSeq");var Dn,ao;function Ua(){if(ao)return Dn;ao=1;var g=Object.defineProperty,n=c((y,S)=>g(y,"name",{value:S,configurable:!0}),"r"),h=Ie();return Dn=new h("tag:yaml.org,2002:map",{kind:"mapping",construct:n(function(y){return y!==null?y:{}},"construct")}),Dn}c(Ua,"requireMap");var qn,so;function si(){if(so)return qn;so=1;var g=er();return qn=new g({explicit:[Ba(),Ha(),Ua()]}),qn}c(si,"requireFailsafe");var Yn,uo;function Wa(){if(uo)return Yn;uo=1;var g=Object.defineProperty,n=c((m,e)=>g(m,"name",{value:e,configurable:!0}),"l"),h=Ie();function y(m){if(m===null)return!0;var e=m.length;return e===1&&m==="~"||e===4&&(m==="null"||m==="Null"||m==="NULL")}c(y,"resolveYamlNull"),n(y,"resolveYamlNull");function S(){return null}c(S,"constructYamlNull"),n(S,"constructYamlNull");function a(m){return m===null}return c(a,"isNull"),n(a,"isNull"),Yn=new h("tag:yaml.org,2002:null",{kind:"scalar",resolve:y,construct:S,predicate:a,represent:{canonical:n(function(){return"~"},"canonical"),lowercase:n(function(){return"null"},"lowercase"),uppercase:n(function(){return"NULL"},"uppercase"),camelcase:n(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"}),Yn}c(Wa,"require_null");var Bn,co;function Va(){if(co)return Bn;co=1;var g=Object.defineProperty,n=c((m,e)=>g(m,"name",{value:e,configurable:!0}),"r"),h=Ie();function y(m){if(m===null)return!1;var e=m.length;return e===4&&(m==="true"||m==="True"||m==="TRUE")||e===5&&(m==="false"||m==="False"||m==="FALSE")}c(y,"resolveYamlBoolean"),n(y,"resolveYamlBoolean");function S(m){return m==="true"||m==="True"||m==="TRUE"}c(S,"constructYamlBoolean"),n(S,"constructYamlBoolean");function a(m){return Object.prototype.toString.call(m)==="[object Boolean]"}return c(a,"isBoolean"),n(a,"isBoolean"),Bn=new h("tag:yaml.org,2002:bool",{kind:"scalar",resolve:y,construct:S,predicate:a,represent:{lowercase:n(function(m){return m?"true":"false"},"lowercase"),uppercase:n(function(m){return m?"TRUE":"FALSE"},"uppercase"),camelcase:n(function(m){return m?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Bn}c(Va,"requireBool");var Hn,lo;function Ja(){if(lo)return Hn;lo=1;var g=Object.defineProperty,n=c((b,E)=>g(b,"name",{value:E,configurable:!0}),"u"),h=Xt(),y=Ie();function S(b){return 48<=b&&b<=57||65<=b&&b<=70||97<=b&&b<=102}c(S,"isHexCode"),n(S,"isHexCode");function a(b){return 48<=b&&b<=55}c(a,"isOctCode"),n(a,"isOctCode");function m(b){return 48<=b&&b<=57}c(m,"isDecCode"),n(m,"isDecCode");function e(b){if(b===null)return!1;var E=b.length,O=0,F=!1,$;if(!E)return!1;if($=b[O],($==="-"||$==="+")&&($=b[++O]),$==="0"){if(O+1===E)return!0;if($=b[++O],$==="b"){for(O++;O<E;O++)if($=b[O],$!=="_"){if($!=="0"&&$!=="1")return!1;F=!0}return F&&$!=="_"}if($==="x"){for(O++;O<E;O++)if($=b[O],$!=="_"){if(!S(b.charCodeAt(O)))return!1;F=!0}return F&&$!=="_"}for(;O<E;O++)if($=b[O],$!=="_"){if(!a(b.charCodeAt(O)))return!1;F=!0}return F&&$!=="_"}if($==="_")return!1;for(;O<E;O++)if($=b[O],$!=="_"){if($===":")break;if(!m(b.charCodeAt(O)))return!1;F=!0}return!F||$==="_"?!1:$!==":"?!0:/^(:[0-5]?[0-9])+$/.test(b.slice(O))}c(e,"resolveYamlInteger"),n(e,"resolveYamlInteger");function A(b){var E=b,O=1,F,$,v=[];return E.indexOf("_")!==-1&&(E=E.replace(/_/g,"")),F=E[0],(F==="-"||F==="+")&&(F==="-"&&(O=-1),E=E.slice(1),F=E[0]),E==="0"?0:F==="0"?E[1]==="b"?O*parseInt(E.slice(2),2):E[1]==="x"?O*parseInt(E,16):O*parseInt(E,8):E.indexOf(":")!==-1?(E.split(":").forEach(function(C){v.unshift(parseInt(C,10))}),E=0,$=1,v.forEach(function(C){E+=C*$,$*=60}),O*E):O*parseInt(E,10)}c(A,"constructYamlInteger"),n(A,"constructYamlInteger");function x(b){return Object.prototype.toString.call(b)==="[object Number]"&&b%1===0&&!h.isNegativeZero(b)}return c(x,"isInteger"),n(x,"isInteger"),Hn=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:e,construct:A,predicate:x,represent:{binary:n(function(b){return b>=0?"0b"+b.toString(2):"-0b"+b.toString(2).slice(1)},"binary"),octal:n(function(b){return b>=0?"0"+b.toString(8):"-0"+b.toString(8).slice(1)},"octal"),decimal:n(function(b){return b.toString(10)},"decimal"),hexadecimal:n(function(b){return b>=0?"0x"+b.toString(16).toUpperCase():"-0x"+b.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Hn}c(Ja,"requireInt");var Un,fo;function Ga(){if(fo)return Un;fo=1;var g=Object.defineProperty,n=c((b,E)=>g(b,"name",{value:E,configurable:!0}),"a"),h=Xt(),y=Ie(),S=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function a(b){return!(b===null||!S.test(b)||b[b.length-1]==="_")}c(a,"resolveYamlFloat"),n(a,"resolveYamlFloat");function m(b){var E,O,F,$;return E=b.replace(/_/g,"").toLowerCase(),O=E[0]==="-"?-1:1,$=[],"+-".indexOf(E[0])>=0&&(E=E.slice(1)),E===".inf"?O===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:E===".nan"?NaN:E.indexOf(":")>=0?(E.split(":").forEach(function(v){$.unshift(parseFloat(v,10))}),E=0,F=1,$.forEach(function(v){E+=v*F,F*=60}),O*E):O*parseFloat(E,10)}c(m,"constructYamlFloat"),n(m,"constructYamlFloat");var e=/^[-+]?[0-9]+e/;function A(b,E){var O;if(isNaN(b))switch(E){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===b)switch(E){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===b)switch(E){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(h.isNegativeZero(b))return"-0.0";return O=b.toString(10),e.test(O)?O.replace("e",".e"):O}c(A,"representYamlFloat"),n(A,"representYamlFloat");function x(b){return Object.prototype.toString.call(b)==="[object Number]"&&(b%1!==0||h.isNegativeZero(b))}return c(x,"isFloat"),n(x,"isFloat"),Un=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:a,construct:m,predicate:x,represent:A,defaultStyle:"lowercase"}),Un}c(Ga,"requireFloat");var Wn,po;function qo(){if(po)return Wn;po=1;var g=er();return Wn=new g({include:[si()],implicit:[Wa(),Va(),Ja(),Ga()]}),Wn}c(qo,"requireJson");var Vn,ho;function Yo(){if(ho)return Vn;ho=1;var g=er();return Vn=new g({include:[qo()]}),Vn}c(Yo,"requireCore");var Jn,go;function Ka(){if(go)return Jn;go=1;var g=Object.defineProperty,n=c((A,x)=>g(A,"name",{value:x,configurable:!0}),"l"),h=Ie(),y=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),S=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a(A){return A===null?!1:y.exec(A)!==null||S.exec(A)!==null}c(a,"resolveYamlTimestamp"),n(a,"resolveYamlTimestamp");function m(A){var x,b,E,O,F,$,v,C=0,z=null,fe,ve,I;if(x=y.exec(A),x===null&&(x=S.exec(A)),x===null)throw new Error("Date resolve error");if(b=+x[1],E=+x[2]-1,O=+x[3],!x[4])return new Date(Date.UTC(b,E,O));if(F=+x[4],$=+x[5],v=+x[6],x[7]){for(C=x[7].slice(0,3);C.length<3;)C+="0";C=+C}return x[9]&&(fe=+x[10],ve=+(x[11]||0),z=(fe*60+ve)*6e4,x[9]==="-"&&(z=-z)),I=new Date(Date.UTC(b,E,O,F,$,v,C)),z&&I.setTime(I.getTime()-z),I}c(m,"constructYamlTimestamp"),n(m,"constructYamlTimestamp");function e(A){return A.toISOString()}return c(e,"representYamlTimestamp"),n(e,"representYamlTimestamp"),Jn=new h("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:m,instanceOf:Date,represent:e}),Jn}c(Ka,"requireTimestamp");var Gn,mo;function Qa(){if(mo)return Gn;mo=1;var g=Object.defineProperty,n=c((S,a)=>g(S,"name",{value:a,configurable:!0}),"r"),h=Ie();function y(S){return S==="<<"||S===null}return c(y,"resolveYamlMerge"),n(y,"resolveYamlMerge"),Gn=new h("tag:yaml.org,2002:merge",{kind:"scalar",resolve:y}),Gn}c(Qa,"requireMerge");function Bo(g){throw new Error('Could not dynamically require "'+g+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}c(Bo,"commonjsRequire");var Kn,yo;function za(){if(yo)return Kn;yo=1;var g=Object.defineProperty,n=c((b,E)=>g(b,"name",{value:E,configurable:!0}),"x"),h;try{var y=Bo;h=y("buffer").Buffer}catch{}var S=Ie(),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
13
|
+
\r`;function m(b){if(b===null)return!1;var E,O,F=0,$=b.length,v=a;for(O=0;O<$;O++)if(E=v.indexOf(b.charAt(O)),!(E>64)){if(E<0)return!1;F+=6}return F%8===0}c(m,"resolveYamlBinary"),n(m,"resolveYamlBinary");function e(b){var E,O,F=b.replace(/[\r\n=]/g,""),$=F.length,v=a,C=0,z=[];for(E=0;E<$;E++)E%4===0&&E&&(z.push(C>>16&255),z.push(C>>8&255),z.push(C&255)),C=C<<6|v.indexOf(F.charAt(E));return O=$%4*6,O===0?(z.push(C>>16&255),z.push(C>>8&255),z.push(C&255)):O===18?(z.push(C>>10&255),z.push(C>>2&255)):O===12&&z.push(C>>4&255),h?h.from?h.from(z):new h(z):z}c(e,"constructYamlBinary"),n(e,"constructYamlBinary");function A(b){var E="",O=0,F,$,v=b.length,C=a;for(F=0;F<v;F++)F%3===0&&F&&(E+=C[O>>18&63],E+=C[O>>12&63],E+=C[O>>6&63],E+=C[O&63]),O=(O<<8)+b[F];return $=v%3,$===0?(E+=C[O>>18&63],E+=C[O>>12&63],E+=C[O>>6&63],E+=C[O&63]):$===2?(E+=C[O>>10&63],E+=C[O>>4&63],E+=C[O<<2&63],E+=C[64]):$===1&&(E+=C[O>>2&63],E+=C[O<<4&63],E+=C[64],E+=C[64]),E}c(A,"representYamlBinary"),n(A,"representYamlBinary");function x(b){return h&&h.isBuffer(b)}return c(x,"isBinary"),n(x,"isBinary"),Kn=new S("tag:yaml.org,2002:binary",{kind:"scalar",resolve:m,construct:e,predicate:x,represent:A}),Kn}c(za,"requireBinary");var Qn,vo;function Za(){if(vo)return Qn;vo=1;var g=Object.defineProperty,n=c((e,A)=>g(e,"name",{value:A,configurable:!0}),"u"),h=Ie(),y=Object.prototype.hasOwnProperty,S=Object.prototype.toString;function a(e){if(e===null)return!0;var A=[],x,b,E,O,F,$=e;for(x=0,b=$.length;x<b;x+=1){if(E=$[x],F=!1,S.call(E)!=="[object Object]")return!1;for(O in E)if(y.call(E,O))if(!F)F=!0;else return!1;if(!F)return!1;if(A.indexOf(O)===-1)A.push(O);else return!1}return!0}c(a,"resolveYamlOmap"),n(a,"resolveYamlOmap");function m(e){return e!==null?e:[]}return c(m,"constructYamlOmap"),n(m,"constructYamlOmap"),Qn=new h("tag:yaml.org,2002:omap",{kind:"sequence",resolve:a,construct:m}),Qn}c(Za,"requireOmap");var zn,Ao;function Xa(){if(Ao)return zn;Ao=1;var g=Object.defineProperty,n=c((m,e)=>g(m,"name",{value:e,configurable:!0}),"i"),h=Ie(),y=Object.prototype.toString;function S(m){if(m===null)return!0;var e,A,x,b,E,O=m;for(E=new Array(O.length),e=0,A=O.length;e<A;e+=1){if(x=O[e],y.call(x)!=="[object Object]"||(b=Object.keys(x),b.length!==1))return!1;E[e]=[b[0],x[b[0]]]}return!0}c(S,"resolveYamlPairs"),n(S,"resolveYamlPairs");function a(m){if(m===null)return[];var e,A,x,b,E,O=m;for(E=new Array(O.length),e=0,A=O.length;e<A;e+=1)x=O[e],b=Object.keys(x),E[e]=[b[0],x[b[0]]];return E}return c(a,"constructYamlPairs"),n(a,"constructYamlPairs"),zn=new h("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:S,construct:a}),zn}c(Xa,"requirePairs");var Zn,bo;function es(){if(bo)return Zn;bo=1;var g=Object.defineProperty,n=c((m,e)=>g(m,"name",{value:e,configurable:!0}),"n"),h=Ie(),y=Object.prototype.hasOwnProperty;function S(m){if(m===null)return!0;var e,A=m;for(e in A)if(y.call(A,e)&&A[e]!==null)return!1;return!0}c(S,"resolveYamlSet"),n(S,"resolveYamlSet");function a(m){return m!==null?m:{}}return c(a,"constructYamlSet"),n(a,"constructYamlSet"),Zn=new h("tag:yaml.org,2002:set",{kind:"mapping",resolve:S,construct:a}),Zn}c(es,"requireSet");var Xn,Co;function Cr(){if(Co)return Xn;Co=1;var g=er();return Xn=new g({include:[Yo()],implicit:[Ka(),Qa()],explicit:[za(),Za(),Xa(),es()]}),Xn}c(Cr,"requireDefault_safe");var ei,$o;function ts(){if($o)return ei;$o=1;var g=Object.defineProperty,n=c((e,A)=>g(e,"name",{value:A,configurable:!0}),"e"),h=Ie();function y(){return!0}c(y,"resolveJavascriptUndefined"),n(y,"resolveJavascriptUndefined");function S(){}c(S,"constructJavascriptUndefined"),n(S,"constructJavascriptUndefined");function a(){return""}c(a,"representJavascriptUndefined"),n(a,"representJavascriptUndefined");function m(e){return typeof e>"u"}return c(m,"isUndefined"),n(m,"isUndefined"),ei=new h("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:y,construct:S,predicate:m,represent:a}),ei}c(ts,"require_undefined");var ti,So;function rs(){if(So)return ti;So=1;var g=Object.defineProperty,n=c((e,A)=>g(e,"name",{value:A,configurable:!0}),"n"),h=Ie();function y(e){if(e===null||e.length===0)return!1;var A=e,x=/\/([gim]*)$/.exec(e),b="";return!(A[0]==="/"&&(x&&(b=x[1]),b.length>3||A[A.length-b.length-1]!=="/"))}c(y,"resolveJavascriptRegExp"),n(y,"resolveJavascriptRegExp");function S(e){var A=e,x=/\/([gim]*)$/.exec(e),b="";return A[0]==="/"&&(x&&(b=x[1]),A=A.slice(1,A.length-b.length-1)),new RegExp(A,b)}c(S,"constructJavascriptRegExp"),n(S,"constructJavascriptRegExp");function a(e){var A="/"+e.source+"/";return e.global&&(A+="g"),e.multiline&&(A+="m"),e.ignoreCase&&(A+="i"),A}c(a,"representJavascriptRegExp"),n(a,"representJavascriptRegExp");function m(e){return Object.prototype.toString.call(e)==="[object RegExp]"}return c(m,"isRegExp"),n(m,"isRegExp"),ti=new h("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:y,construct:S,predicate:m,represent:a}),ti}c(rs,"requireRegexp");var ri,Eo;function ns(){if(Eo)return ri;Eo=1;var g=Object.defineProperty,n=c((x,b)=>g(x,"name",{value:b,configurable:!0}),"o"),h;try{var y=Bo;h=y("esprima")}catch{typeof window<"u"&&(h=window.esprima)}var S=Ie();function a(x){if(x===null)return!1;try{var b="("+x+")",E=h.parse(b,{range:!0});return!(E.type!=="Program"||E.body.length!==1||E.body[0].type!=="ExpressionStatement"||E.body[0].expression.type!=="ArrowFunctionExpression"&&E.body[0].expression.type!=="FunctionExpression")}catch{return!1}}c(a,"resolveJavascriptFunction"),n(a,"resolveJavascriptFunction");function m(x){var b="("+x+")",E=h.parse(b,{range:!0}),O=[],F;if(E.type!=="Program"||E.body.length!==1||E.body[0].type!=="ExpressionStatement"||E.body[0].expression.type!=="ArrowFunctionExpression"&&E.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return E.body[0].expression.params.forEach(function($){O.push($.name)}),F=E.body[0].expression.body.range,E.body[0].expression.body.type==="BlockStatement"?new Function(O,b.slice(F[0]+1,F[1]-1)):new Function(O,"return "+b.slice(F[0],F[1]))}c(m,"constructJavascriptFunction"),n(m,"constructJavascriptFunction");function e(x){return x.toString()}c(e,"representJavascriptFunction"),n(e,"representJavascriptFunction");function A(x){return Object.prototype.toString.call(x)==="[object Function]"}return c(A,"isFunction"),n(A,"isFunction"),ri=new S("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:a,construct:m,predicate:A,represent:e}),ri}c(ns,"require_function");var ni,wo;function Gr(){if(wo)return ni;wo=1;var g=er();return ni=g.DEFAULT=new g({include:[Cr()],explicit:[ts(),rs(),ns()]}),ni}c(Gr,"requireDefault_full");var ko;function is(){if(ko)return Qt;ko=1;var g=Object.defineProperty,n=c((r,_)=>g(r,"name",{value:_,configurable:!0}),"x"),h=Xt(),y=Sr(),S=Ya(),a=Cr(),m=Gr(),e=Object.prototype.hasOwnProperty,A=1,x=2,b=3,E=4,O=1,F=2,$=3,v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,C=/[\x85\u2028\u2029]/,z=/[,\[\]\{\}]/,fe=/^(?:!|!!|![a-z\-]+!)$/i,ve=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function I(r){return Object.prototype.toString.call(r)}c(I,"_class"),n(I,"_class");function oe(r){return r===10||r===13}c(oe,"is_EOL"),n(oe,"is_EOL");function pe(r){return r===9||r===32}c(pe,"is_WHITE_SPACE"),n(pe,"is_WHITE_SPACE");function q(r){return r===9||r===32||r===10||r===13}c(q,"is_WS_OR_EOL"),n(q,"is_WS_OR_EOL");function se(r){return r===44||r===91||r===93||r===123||r===125}c(se,"is_FLOW_INDICATOR"),n(se,"is_FLOW_INDICATOR");function Oe(r){var _;return 48<=r&&r<=57?r-48:(_=r|32,97<=_&&_<=102?_-97+10:-1)}c(Oe,"fromHexCode"),n(Oe,"fromHexCode");function Ae(r){return r===120?2:r===117?4:r===85?8:0}c(Ae,"escapedHexLen"),n(Ae,"escapedHexLen");function Ne(r){return 48<=r&&r<=57?r-48:-1}c(Ne,"fromDecimalCode"),n(Ne,"fromDecimalCode");function Me(r){return r===48?"\0":r===97?"\x07":r===98?"\b":r===116||r===9?" ":r===110?`
|
|
14
|
+
`:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"
":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}c(Me,"simpleEscapeSequence"),n(Me,"simpleEscapeSequence");function De(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}c(De,"charFromCodepoint"),n(De,"charFromCodepoint");function qe(r,_,T){_==="__proto__"?Object.defineProperty(r,_,{configurable:!0,enumerable:!0,writable:!0,value:T}):r[_]=T}c(qe,"setProperty"),n(qe,"setProperty");for(var rt=new Array(256),Se=new Array(256),He=0;He<256;He++)rt[He]=Me(He)?1:0,Se[He]=Me(He);function Ke(r,_){this.input=r,this.filename=_.filename||null,this.schema=_.schema||m,this.onWarning=_.onWarning||null,this.legacy=_.legacy||!1,this.json=_.json||!1,this.listener=_.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}c(Ke,"State"),n(Ke,"State");function Qe(r,_){return new y(_,new S(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}c(Qe,"generateError"),n(Qe,"generateError");function re(r,_){throw Qe(r,_)}c(re,"throwError"),n(re,"throwError");function Fe(r,_){r.onWarning&&r.onWarning.call(null,Qe(r,_))}c(Fe,"throwWarning"),n(Fe,"throwWarning");var We={YAML:n(function(r,_,T){var Z,H,l;r.version!==null&&re(r,"duplication of %YAML directive"),T.length!==1&&re(r,"YAML directive accepts exactly one argument"),Z=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),Z===null&&re(r,"ill-formed argument of the YAML directive"),H=parseInt(Z[1],10),l=parseInt(Z[2],10),H!==1&&re(r,"unacceptable YAML version of the document"),r.version=T[0],r.checkLineBreaks=l<2,l!==1&&l!==2&&Fe(r,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:n(function(r,_,T){var Z,H;T.length!==2&&re(r,"TAG directive accepts exactly two arguments"),Z=T[0],H=T[1],fe.test(Z)||re(r,"ill-formed tag handle (first argument) of the TAG directive"),e.call(r.tagMap,Z)&&re(r,'there is a previously declared suffix for "'+Z+'" tag handle'),ve.test(H)||re(r,"ill-formed tag prefix (second argument) of the TAG directive"),r.tagMap[Z]=H},"handleTagDirective")};function we(r,_,T,Z){var H,l,w,R;if(_<T){if(R=r.input.slice(_,T),Z)for(H=0,l=R.length;H<l;H+=1)w=R.charCodeAt(H),w===9||32<=w&&w<=1114111||re(r,"expected valid JSON character");else v.test(R)&&re(r,"the stream contains non-printable characters");r.result+=R}}c(we,"captureSegment"),n(we,"captureSegment");function ke(r,_,T,Z){var H,l,w,R;for(h.isObject(T)||re(r,"cannot merge mappings; the provided source object is unacceptable"),H=Object.keys(T),w=0,R=H.length;w<R;w+=1)l=H[w],e.call(_,l)||(qe(_,l,T[l]),Z[l]=!0)}c(ke,"mergeMappings"),n(ke,"mergeMappings");function Ce(r,_,T,Z,H,l,w,R){var L,Y;if(Array.isArray(H))for(H=Array.prototype.slice.call(H),L=0,Y=H.length;L<Y;L+=1)Array.isArray(H[L])&&re(r,"nested arrays are not supported inside keys"),typeof H=="object"&&I(H[L])==="[object Object]"&&(H[L]="[object Object]");if(typeof H=="object"&&I(H)==="[object Object]"&&(H="[object Object]"),H=String(H),_===null&&(_={}),Z==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(L=0,Y=l.length;L<Y;L+=1)ke(r,_,l[L],T);else ke(r,_,l,T);else!r.json&&!e.call(T,H)&&e.call(_,H)&&(r.line=w||r.line,r.position=R||r.position,re(r,"duplicated mapping key")),qe(_,H,l),delete T[H];return _}c(Ce,"storeMappingPair"),n(Ce,"storeMappingPair");function Re(r){var _;_=r.input.charCodeAt(r.position),_===10?r.position++:_===13?(r.position++,r.input.charCodeAt(r.position)===10&&r.position++):re(r,"a line break is expected"),r.line+=1,r.lineStart=r.position}c(Re,"readLineBreak"),n(Re,"readLineBreak");function ye(r,_,T){for(var Z=0,H=r.input.charCodeAt(r.position);H!==0;){for(;pe(H);)H=r.input.charCodeAt(++r.position);if(_&&H===35)do H=r.input.charCodeAt(++r.position);while(H!==10&&H!==13&&H!==0);if(oe(H))for(Re(r),H=r.input.charCodeAt(r.position),Z++,r.lineIndent=0;H===32;)r.lineIndent++,H=r.input.charCodeAt(++r.position);else break}return T!==-1&&Z!==0&&r.lineIndent<T&&Fe(r,"deficient indentation"),Z}c(ye,"skipSeparationSpace"),n(ye,"skipSeparationSpace");function Ye(r){var _=r.position,T;return T=r.input.charCodeAt(_),!!((T===45||T===46)&&T===r.input.charCodeAt(_+1)&&T===r.input.charCodeAt(_+2)&&(_+=3,T=r.input.charCodeAt(_),T===0||q(T)))}c(Ye,"testDocumentSeparator"),n(Ye,"testDocumentSeparator");function Ue(r,_){_===1?r.result+=" ":_>1&&(r.result+=h.repeat(`
|
|
15
|
+
`,_-1))}c(Ue,"writeFoldedLines"),n(Ue,"writeFoldedLines");function Ve(r,_,T){var Z,H,l,w,R,L,Y,V,P=r.kind,X=r.result,J;if(J=r.input.charCodeAt(r.position),q(J)||se(J)||J===35||J===38||J===42||J===33||J===124||J===62||J===39||J===34||J===37||J===64||J===96||(J===63||J===45)&&(H=r.input.charCodeAt(r.position+1),q(H)||T&&se(H)))return!1;for(r.kind="scalar",r.result="",l=w=r.position,R=!1;J!==0;){if(J===58){if(H=r.input.charCodeAt(r.position+1),q(H)||T&&se(H))break}else if(J===35){if(Z=r.input.charCodeAt(r.position-1),q(Z))break}else{if(r.position===r.lineStart&&Ye(r)||T&&se(J))break;if(oe(J))if(L=r.line,Y=r.lineStart,V=r.lineIndent,ye(r,!1,-1),r.lineIndent>=_){R=!0,J=r.input.charCodeAt(r.position);continue}else{r.position=w,r.line=L,r.lineStart=Y,r.lineIndent=V;break}}R&&(we(r,l,w,!1),Ue(r,r.line-L),l=w=r.position,R=!1),pe(J)||(w=r.position+1),J=r.input.charCodeAt(++r.position)}return we(r,l,w,!1),r.result?!0:(r.kind=P,r.result=X,!1)}c(Ve,"readPlainScalar"),n(Ve,"readPlainScalar");function Je(r,_){var T,Z,H;if(T=r.input.charCodeAt(r.position),T!==39)return!1;for(r.kind="scalar",r.result="",r.position++,Z=H=r.position;(T=r.input.charCodeAt(r.position))!==0;)if(T===39)if(we(r,Z,r.position,!0),T=r.input.charCodeAt(++r.position),T===39)Z=r.position,r.position++,H=r.position;else return!0;else oe(T)?(we(r,Z,H,!0),Ue(r,ye(r,!1,_)),Z=H=r.position):r.position===r.lineStart&&Ye(r)?re(r,"unexpected end of the document within a single quoted scalar"):(r.position++,H=r.position);re(r,"unexpected end of the stream within a single quoted scalar")}c(Je,"readSingleQuotedScalar"),n(Je,"readSingleQuotedScalar");function B(r,_){var T,Z,H,l,w,R;if(R=r.input.charCodeAt(r.position),R!==34)return!1;for(r.kind="scalar",r.result="",r.position++,T=Z=r.position;(R=r.input.charCodeAt(r.position))!==0;){if(R===34)return we(r,T,r.position,!0),r.position++,!0;if(R===92){if(we(r,T,r.position,!0),R=r.input.charCodeAt(++r.position),oe(R))ye(r,!1,_);else if(R<256&&rt[R])r.result+=Se[R],r.position++;else if((w=Ae(R))>0){for(H=w,l=0;H>0;H--)R=r.input.charCodeAt(++r.position),(w=Oe(R))>=0?l=(l<<4)+w:re(r,"expected hexadecimal character");r.result+=De(l),r.position++}else re(r,"unknown escape sequence");T=Z=r.position}else oe(R)?(we(r,T,Z,!0),Ue(r,ye(r,!1,_)),T=Z=r.position):r.position===r.lineStart&&Ye(r)?re(r,"unexpected end of the document within a double quoted scalar"):(r.position++,Z=r.position)}re(r,"unexpected end of the stream within a double quoted scalar")}c(B,"readDoubleQuotedScalar"),n(B,"readDoubleQuotedScalar");function W(r,_){var T=!0,Z,H=r.tag,l,w=r.anchor,R,L,Y,V,P,X={},J,ne,me,le;if(le=r.input.charCodeAt(r.position),le===91)L=93,P=!1,l=[];else if(le===123)L=125,P=!0,l={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=l),le=r.input.charCodeAt(++r.position);le!==0;){if(ye(r,!0,_),le=r.input.charCodeAt(r.position),le===L)return r.position++,r.tag=H,r.anchor=w,r.kind=P?"mapping":"sequence",r.result=l,!0;T||re(r,"missed comma between flow collection entries"),ne=J=me=null,Y=V=!1,le===63&&(R=r.input.charCodeAt(r.position+1),q(R)&&(Y=V=!0,r.position++,ye(r,!0,_))),Z=r.line,Ge(r,_,A,!1,!0),ne=r.tag,J=r.result,ye(r,!0,_),le=r.input.charCodeAt(r.position),(V||r.line===Z)&&le===58&&(Y=!0,le=r.input.charCodeAt(++r.position),ye(r,!0,_),Ge(r,_,A,!1,!0),me=r.result),P?Ce(r,l,X,ne,J,me):Y?l.push(Ce(r,null,X,ne,J,me)):l.push(J),ye(r,!0,_),le=r.input.charCodeAt(r.position),le===44?(T=!0,le=r.input.charCodeAt(++r.position)):T=!1}re(r,"unexpected end of the stream within a flow collection")}c(W,"readFlowCollection"),n(W,"readFlowCollection");function ae(r,_){var T,Z,H=O,l=!1,w=!1,R=_,L=0,Y=!1,V,P;if(P=r.input.charCodeAt(r.position),P===124)Z=!1;else if(P===62)Z=!0;else return!1;for(r.kind="scalar",r.result="";P!==0;)if(P=r.input.charCodeAt(++r.position),P===43||P===45)O===H?H=P===43?$:F:re(r,"repeat of a chomping mode identifier");else if((V=Ne(P))>=0)V===0?re(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):w?re(r,"repeat of an indentation width identifier"):(R=_+V-1,w=!0);else break;if(pe(P)){do P=r.input.charCodeAt(++r.position);while(pe(P));if(P===35)do P=r.input.charCodeAt(++r.position);while(!oe(P)&&P!==0)}for(;P!==0;){for(Re(r),r.lineIndent=0,P=r.input.charCodeAt(r.position);(!w||r.lineIndent<R)&&P===32;)r.lineIndent++,P=r.input.charCodeAt(++r.position);if(!w&&r.lineIndent>R&&(R=r.lineIndent),oe(P)){L++;continue}if(r.lineIndent<R){H===$?r.result+=h.repeat(`
|
|
16
|
+
`,l?1+L:L):H===O&&l&&(r.result+=`
|
|
17
|
+
`);break}for(Z?pe(P)?(Y=!0,r.result+=h.repeat(`
|
|
18
|
+
`,l?1+L:L)):Y?(Y=!1,r.result+=h.repeat(`
|
|
19
|
+
`,L+1)):L===0?l&&(r.result+=" "):r.result+=h.repeat(`
|
|
20
|
+
`,L):r.result+=h.repeat(`
|
|
21
|
+
`,l?1+L:L),l=!0,w=!0,L=0,T=r.position;!oe(P)&&P!==0;)P=r.input.charCodeAt(++r.position);we(r,T,r.position,!1)}return!0}c(ae,"readBlockScalar"),n(ae,"readBlockScalar");function be(r,_){var T,Z=r.tag,H=r.anchor,l=[],w,R=!1,L;for(r.anchor!==null&&(r.anchorMap[r.anchor]=l),L=r.input.charCodeAt(r.position);L!==0&&!(L!==45||(w=r.input.charCodeAt(r.position+1),!q(w)));){if(R=!0,r.position++,ye(r,!0,-1)&&r.lineIndent<=_){l.push(null),L=r.input.charCodeAt(r.position);continue}if(T=r.line,Ge(r,_,b,!1,!0),l.push(r.result),ye(r,!0,-1),L=r.input.charCodeAt(r.position),(r.line===T||r.lineIndent>_)&&L!==0)re(r,"bad indentation of a sequence entry");else if(r.lineIndent<_)break}return R?(r.tag=Z,r.anchor=H,r.kind="sequence",r.result=l,!0):!1}c(be,"readBlockSequence"),n(be,"readBlockSequence");function nt(r,_,T){var Z,H,l,w,R=r.tag,L=r.anchor,Y={},V={},P=null,X=null,J=null,ne=!1,me=!1,le;for(r.anchor!==null&&(r.anchorMap[r.anchor]=Y),le=r.input.charCodeAt(r.position);le!==0;){if(Z=r.input.charCodeAt(r.position+1),l=r.line,w=r.position,(le===63||le===58)&&q(Z))le===63?(ne&&(Ce(r,Y,V,P,X,null),P=X=J=null),me=!0,ne=!0,H=!0):ne?(ne=!1,H=!0):re(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),r.position+=1,le=Z;else if(Ge(r,T,x,!1,!0))if(r.line===l){for(le=r.input.charCodeAt(r.position);pe(le);)le=r.input.charCodeAt(++r.position);if(le===58)le=r.input.charCodeAt(++r.position),q(le)||re(r,"a whitespace character is expected after the key-value separator within a block mapping"),ne&&(Ce(r,Y,V,P,X,null),P=X=J=null),me=!0,ne=!1,H=!1,P=r.tag,X=r.result;else if(me)re(r,"can not read an implicit mapping pair; a colon is missed");else return r.tag=R,r.anchor=L,!0}else if(me)re(r,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.tag=R,r.anchor=L,!0;else break;if((r.line===l||r.lineIndent>_)&&(Ge(r,_,E,!0,H)&&(ne?X=r.result:J=r.result),ne||(Ce(r,Y,V,P,X,J,l,w),P=X=J=null),ye(r,!0,-1),le=r.input.charCodeAt(r.position)),r.lineIndent>_&&le!==0)re(r,"bad indentation of a mapping entry");else if(r.lineIndent<_)break}return ne&&Ce(r,Y,V,P,X,null),me&&(r.tag=R,r.anchor=L,r.kind="mapping",r.result=Y),me}c(nt,"readBlockMapping"),n(nt,"readBlockMapping");function at(r){var _,T=!1,Z=!1,H,l,w;if(w=r.input.charCodeAt(r.position),w!==33)return!1;if(r.tag!==null&&re(r,"duplication of a tag property"),w=r.input.charCodeAt(++r.position),w===60?(T=!0,w=r.input.charCodeAt(++r.position)):w===33?(Z=!0,H="!!",w=r.input.charCodeAt(++r.position)):H="!",_=r.position,T){do w=r.input.charCodeAt(++r.position);while(w!==0&&w!==62);r.position<r.length?(l=r.input.slice(_,r.position),w=r.input.charCodeAt(++r.position)):re(r,"unexpected end of the stream within a verbatim tag")}else{for(;w!==0&&!q(w);)w===33&&(Z?re(r,"tag suffix cannot contain exclamation marks"):(H=r.input.slice(_-1,r.position+1),fe.test(H)||re(r,"named tag handle cannot contain such characters"),Z=!0,_=r.position+1)),w=r.input.charCodeAt(++r.position);l=r.input.slice(_,r.position),z.test(l)&&re(r,"tag suffix cannot contain flow indicator characters")}return l&&!ve.test(l)&&re(r,"tag name cannot contain such characters: "+l),T?r.tag=l:e.call(r.tagMap,H)?r.tag=r.tagMap[H]+l:H==="!"?r.tag="!"+l:H==="!!"?r.tag="tag:yaml.org,2002:"+l:re(r,'undeclared tag handle "'+H+'"'),!0}c(at,"readTagProperty"),n(at,"readTagProperty");function st(r){var _,T;if(T=r.input.charCodeAt(r.position),T!==38)return!1;for(r.anchor!==null&&re(r,"duplication of an anchor property"),T=r.input.charCodeAt(++r.position),_=r.position;T!==0&&!q(T)&&!se(T);)T=r.input.charCodeAt(++r.position);return r.position===_&&re(r,"name of an anchor node must contain at least one character"),r.anchor=r.input.slice(_,r.position),!0}c(st,"readAnchorProperty"),n(st,"readAnchorProperty");function At(r){var _,T,Z;if(Z=r.input.charCodeAt(r.position),Z!==42)return!1;for(Z=r.input.charCodeAt(++r.position),_=r.position;Z!==0&&!q(Z)&&!se(Z);)Z=r.input.charCodeAt(++r.position);return r.position===_&&re(r,"name of an alias node must contain at least one character"),T=r.input.slice(_,r.position),e.call(r.anchorMap,T)||re(r,'unidentified alias "'+T+'"'),r.result=r.anchorMap[T],ye(r,!0,-1),!0}c(At,"readAlias"),n(At,"readAlias");function Ge(r,_,T,Z,H){var l,w,R,L=1,Y=!1,V=!1,P,X,J,ne,me;if(r.listener!==null&&r.listener("open",r),r.tag=null,r.anchor=null,r.kind=null,r.result=null,l=w=R=E===T||b===T,Z&&ye(r,!0,-1)&&(Y=!0,r.lineIndent>_?L=1:r.lineIndent===_?L=0:r.lineIndent<_&&(L=-1)),L===1)for(;at(r)||st(r);)ye(r,!0,-1)?(Y=!0,R=l,r.lineIndent>_?L=1:r.lineIndent===_?L=0:r.lineIndent<_&&(L=-1)):R=!1;if(R&&(R=Y||H),(L===1||E===T)&&(A===T||x===T?ne=_:ne=_+1,me=r.position-r.lineStart,L===1?R&&(be(r,me)||nt(r,me,ne))||W(r,ne)?V=!0:(w&&ae(r,ne)||Je(r,ne)||B(r,ne)?V=!0:At(r)?(V=!0,(r.tag!==null||r.anchor!==null)&&re(r,"alias node should not have any properties")):Ve(r,ne,A===T)&&(V=!0,r.tag===null&&(r.tag="?")),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):L===0&&(V=R&&be(r,me))),r.tag!==null&&r.tag!=="!")if(r.tag==="?"){for(r.result!==null&&r.kind!=="scalar"&&re(r,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+r.kind+'"'),P=0,X=r.implicitTypes.length;P<X;P+=1)if(J=r.implicitTypes[P],J.resolve(r.result)){r.result=J.construct(r.result),r.tag=J.tag,r.anchor!==null&&(r.anchorMap[r.anchor]=r.result);break}}else e.call(r.typeMap[r.kind||"fallback"],r.tag)?(J=r.typeMap[r.kind||"fallback"][r.tag],r.result!==null&&J.kind!==r.kind&&re(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+J.kind+'", not "'+r.kind+'"'),J.resolve(r.result)?(r.result=J.construct(r.result),r.anchor!==null&&(r.anchorMap[r.anchor]=r.result)):re(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")):re(r,"unknown tag !<"+r.tag+">");return r.listener!==null&&r.listener("close",r),r.tag!==null||r.anchor!==null||V}c(Ge,"composeNode"),n(Ge,"composeNode");function ft(r){var _=r.position,T,Z,H,l=!1,w;for(r.version=null,r.checkLineBreaks=r.legacy,r.tagMap={},r.anchorMap={};(w=r.input.charCodeAt(r.position))!==0&&(ye(r,!0,-1),w=r.input.charCodeAt(r.position),!(r.lineIndent>0||w!==37));){for(l=!0,w=r.input.charCodeAt(++r.position),T=r.position;w!==0&&!q(w);)w=r.input.charCodeAt(++r.position);for(Z=r.input.slice(T,r.position),H=[],Z.length<1&&re(r,"directive name must not be less than one character in length");w!==0;){for(;pe(w);)w=r.input.charCodeAt(++r.position);if(w===35){do w=r.input.charCodeAt(++r.position);while(w!==0&&!oe(w));break}if(oe(w))break;for(T=r.position;w!==0&&!q(w);)w=r.input.charCodeAt(++r.position);H.push(r.input.slice(T,r.position))}w!==0&&Re(r),e.call(We,Z)?We[Z](r,Z,H):Fe(r,'unknown document directive "'+Z+'"')}if(ye(r,!0,-1),r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45?(r.position+=3,ye(r,!0,-1)):l&&re(r,"directives end mark is expected"),Ge(r,r.lineIndent-1,E,!1,!0),ye(r,!0,-1),r.checkLineBreaks&&C.test(r.input.slice(_,r.position))&&Fe(r,"non-ASCII line breaks are interpreted as content"),r.documents.push(r.result),r.position===r.lineStart&&Ye(r)){r.input.charCodeAt(r.position)===46&&(r.position+=3,ye(r,!0,-1));return}if(r.position<r.length-1)re(r,"end of the stream or a document separator is expected");else return}c(ft,"readDocument"),n(ft,"readDocument");function et(r,_){r=String(r),_=_||{},r.length!==0&&(r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
|
|
22
|
+
`),r.charCodeAt(0)===65279&&(r=r.slice(1)));var T=new Ke(r,_),Z=r.indexOf("\0");for(Z!==-1&&(T.position=Z,re(T,"null byte is not allowed in input")),T.input+="\0";T.input.charCodeAt(T.position)===32;)T.lineIndent+=1,T.position+=1;for(;T.position<T.length-1;)ft(T);return T.documents}c(et,"loadDocuments"),n(et,"loadDocuments");function ze(r,_,T){_!==null&&typeof _=="object"&&typeof T>"u"&&(T=_,_=null);var Z=et(r,T);if(typeof _!="function")return Z;for(var H=0,l=Z.length;H<l;H+=1)_(Z[H])}c(ze,"loadAll"),n(ze,"loadAll");function pt(r,_){var T=et(r,_);if(T.length!==0){if(T.length===1)return T[0];throw new y("expected a single document in the stream, but found more")}}c(pt,"load"),n(pt,"load");function bt(r,_,T){return typeof _=="object"&&_!==null&&typeof T>"u"&&(T=_,_=null),ze(r,_,h.extend({schema:a},T))}c(bt,"safeLoadAll"),n(bt,"safeLoadAll");function dt(r,_){return pt(r,h.extend({schema:a},_))}return c(dt,"safeLoad"),n(dt,"safeLoad"),Qt.loadAll=ze,Qt.load=pt,Qt.safeLoadAll=bt,Qt.safeLoad=dt,Qt}c(is,"requireLoader");var Vr={},xo;function os(){if(xo)return Vr;xo=1;var g=Object.defineProperty,n=c((l,w)=>g(l,"name",{value:w,configurable:!0}),"o"),h=Xt(),y=Sr(),S=Gr(),a=Cr(),m=Object.prototype.toString,e=Object.prototype.hasOwnProperty,A=9,x=10,b=13,E=32,O=33,F=34,$=35,v=37,C=38,z=39,fe=42,ve=44,I=45,oe=58,pe=61,q=62,se=63,Oe=64,Ae=91,Ne=93,Me=96,De=123,qe=124,rt=125,Se={};Se[0]="\\0",Se[7]="\\a",Se[8]="\\b",Se[9]="\\t",Se[10]="\\n",Se[11]="\\v",Se[12]="\\f",Se[13]="\\r",Se[27]="\\e",Se[34]='\\"',Se[92]="\\\\",Se[133]="\\N",Se[160]="\\_",Se[8232]="\\L",Se[8233]="\\P";var He=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Ke(l,w){var R,L,Y,V,P,X,J;if(w===null)return{};for(R={},L=Object.keys(w),Y=0,V=L.length;Y<V;Y+=1)P=L[Y],X=String(w[P]),P.slice(0,2)==="!!"&&(P="tag:yaml.org,2002:"+P.slice(2)),J=l.compiledTypeMap.fallback[P],J&&e.call(J.styleAliases,X)&&(X=J.styleAliases[X]),R[P]=X;return R}c(Ke,"compileStyleMap"),n(Ke,"compileStyleMap");function Qe(l){var w,R,L;if(w=l.toString(16).toUpperCase(),l<=255)R="x",L=2;else if(l<=65535)R="u",L=4;else if(l<=4294967295)R="U",L=8;else throw new y("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+R+h.repeat("0",L-w.length)+w}c(Qe,"encodeHex"),n(Qe,"encodeHex");function re(l){this.schema=l.schema||S,this.indent=Math.max(1,l.indent||2),this.noArrayIndent=l.noArrayIndent||!1,this.skipInvalid=l.skipInvalid||!1,this.flowLevel=h.isNothing(l.flowLevel)?-1:l.flowLevel,this.styleMap=Ke(this.schema,l.styles||null),this.sortKeys=l.sortKeys||!1,this.lineWidth=l.lineWidth||80,this.noRefs=l.noRefs||!1,this.noCompatMode=l.noCompatMode||!1,this.condenseFlow=l.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}c(re,"State"),n(re,"State");function Fe(l,w){for(var R=h.repeat(" ",w),L=0,Y=-1,V="",P,X=l.length;L<X;)Y=l.indexOf(`
|
|
23
|
+
`,L),Y===-1?(P=l.slice(L),L=X):(P=l.slice(L,Y+1),L=Y+1),P.length&&P!==`
|
|
24
|
+
`&&(V+=R),V+=P;return V}c(Fe,"indentString"),n(Fe,"indentString");function We(l,w){return`
|
|
25
|
+
`+h.repeat(" ",l.indent*w)}c(We,"generateNextLine"),n(We,"generateNextLine");function we(l,w){var R,L,Y;for(R=0,L=l.implicitTypes.length;R<L;R+=1)if(Y=l.implicitTypes[R],Y.resolve(w))return!0;return!1}c(we,"testImplicitResolving"),n(we,"testImplicitResolving");function ke(l){return l===E||l===A}c(ke,"isWhitespace"),n(ke,"isWhitespace");function Ce(l){return 32<=l&&l<=126||161<=l&&l<=55295&&l!==8232&&l!==8233||57344<=l&&l<=65533&&l!==65279||65536<=l&&l<=1114111}c(Ce,"isPrintable"),n(Ce,"isPrintable");function Re(l){return Ce(l)&&!ke(l)&&l!==65279&&l!==b&&l!==x}c(Re,"isNsChar"),n(Re,"isNsChar");function ye(l,w){return Ce(l)&&l!==65279&&l!==ve&&l!==Ae&&l!==Ne&&l!==De&&l!==rt&&l!==oe&&(l!==$||w&&Re(w))}c(ye,"isPlainSafe"),n(ye,"isPlainSafe");function Ye(l){return Ce(l)&&l!==65279&&!ke(l)&&l!==I&&l!==se&&l!==oe&&l!==ve&&l!==Ae&&l!==Ne&&l!==De&&l!==rt&&l!==$&&l!==C&&l!==fe&&l!==O&&l!==qe&&l!==pe&&l!==q&&l!==z&&l!==F&&l!==v&&l!==Oe&&l!==Me}c(Ye,"isPlainSafeFirst"),n(Ye,"isPlainSafeFirst");function Ue(l){var w=/^\n* /;return w.test(l)}c(Ue,"needIndentIndicator"),n(Ue,"needIndentIndicator");var Ve=1,Je=2,B=3,W=4,ae=5;function be(l,w,R,L,Y){var V,P,X,J=!1,ne=!1,me=L!==-1,le=-1,je=Ye(l.charCodeAt(0))&&!ke(l.charCodeAt(l.length-1));if(w)for(V=0;V<l.length;V++){if(P=l.charCodeAt(V),!Ce(P))return ae;X=V>0?l.charCodeAt(V-1):null,je=je&&ye(P,X)}else{for(V=0;V<l.length;V++){if(P=l.charCodeAt(V),P===x)J=!0,me&&(ne=ne||V-le-1>L&&l[le+1]!==" ",le=V);else if(!Ce(P))return ae;X=V>0?l.charCodeAt(V-1):null,je=je&&ye(P,X)}ne=ne||me&&V-le-1>L&&l[le+1]!==" "}return!J&&!ne?je&&!Y(l)?Ve:Je:R>9&&Ue(l)?ae:ne?W:B}c(be,"chooseScalarStyle"),n(be,"chooseScalarStyle");function nt(l,w,R,L){l.dump=(function(){if(w.length===0)return"''";if(!l.noCompatMode&&He.indexOf(w)!==-1)return"'"+w+"'";var Y=l.indent*Math.max(1,R),V=l.lineWidth===-1?-1:Math.max(Math.min(l.lineWidth,40),l.lineWidth-Y),P=L||l.flowLevel>-1&&R>=l.flowLevel;function X(J){return we(l,J)}switch(c(X,"a"),n(X,"testAmbiguity"),be(w,P,l.indent,V,X)){case Ve:return w;case Je:return"'"+w.replace(/'/g,"''")+"'";case B:return"|"+at(w,l.indent)+st(Fe(w,Y));case W:return">"+at(w,l.indent)+st(Fe(At(w,V),Y));case ae:return'"'+ft(w)+'"';default:throw new y("impossible error: invalid scalar style")}})()}c(nt,"writeScalar"),n(nt,"writeScalar");function at(l,w){var R=Ue(l)?String(w):"",L=l[l.length-1]===`
|
|
26
|
+
`,Y=L&&(l[l.length-2]===`
|
|
27
|
+
`||l===`
|
|
28
|
+
`),V=Y?"+":L?"":"-";return R+V+`
|
|
29
|
+
`}c(at,"blockHeader"),n(at,"blockHeader");function st(l){return l[l.length-1]===`
|
|
30
|
+
`?l.slice(0,-1):l}c(st,"dropEndingNewline"),n(st,"dropEndingNewline");function At(l,w){for(var R=/(\n+)([^\n]*)/g,L=(function(){var ne=l.indexOf(`
|
|
31
|
+
`);return ne=ne!==-1?ne:l.length,R.lastIndex=ne,Ge(l.slice(0,ne),w)})(),Y=l[0]===`
|
|
32
|
+
`||l[0]===" ",V,P;P=R.exec(l);){var X=P[1],J=P[2];V=J[0]===" ",L+=X+(!Y&&!V&&J!==""?`
|
|
33
|
+
`:"")+Ge(J,w),Y=V}return L}c(At,"foldString"),n(At,"foldString");function Ge(l,w){if(l===""||l[0]===" ")return l;for(var R=/ [^ ]/g,L,Y=0,V,P=0,X=0,J="";L=R.exec(l);)X=L.index,X-Y>w&&(V=P>Y?P:X,J+=`
|
|
34
|
+
`+l.slice(Y,V),Y=V+1),P=X;return J+=`
|
|
35
|
+
`,l.length-Y>w&&P>Y?J+=l.slice(Y,P)+`
|
|
36
|
+
`+l.slice(P+1):J+=l.slice(Y),J.slice(1)}c(Ge,"foldLine"),n(Ge,"foldLine");function ft(l){for(var w="",R,L,Y,V=0;V<l.length;V++){if(R=l.charCodeAt(V),R>=55296&&R<=56319&&(L=l.charCodeAt(V+1),L>=56320&&L<=57343)){w+=Qe((R-55296)*1024+L-56320+65536),V++;continue}Y=Se[R],w+=!Y&&Ce(R)?l[V]:Y||Qe(R)}return w}c(ft,"escapeString"),n(ft,"escapeString");function et(l,w,R){var L="",Y=l.tag,V,P;for(V=0,P=R.length;V<P;V+=1)r(l,w,R[V],!1,!1)&&(V!==0&&(L+=","+(l.condenseFlow?"":" ")),L+=l.dump);l.tag=Y,l.dump="["+L+"]"}c(et,"writeFlowSequence"),n(et,"writeFlowSequence");function ze(l,w,R,L){var Y="",V=l.tag,P,X;for(P=0,X=R.length;P<X;P+=1)r(l,w+1,R[P],!0,!0)&&((!L||P!==0)&&(Y+=We(l,w)),l.dump&&x===l.dump.charCodeAt(0)?Y+="-":Y+="- ",Y+=l.dump);l.tag=V,l.dump=Y||"[]"}c(ze,"writeBlockSequence"),n(ze,"writeBlockSequence");function pt(l,w,R){var L="",Y=l.tag,V=Object.keys(R),P,X,J,ne,me;for(P=0,X=V.length;P<X;P+=1)me="",P!==0&&(me+=", "),l.condenseFlow&&(me+='"'),J=V[P],ne=R[J],r(l,w,J,!1,!1)&&(l.dump.length>1024&&(me+="? "),me+=l.dump+(l.condenseFlow?'"':"")+":"+(l.condenseFlow?"":" "),r(l,w,ne,!1,!1)&&(me+=l.dump,L+=me));l.tag=Y,l.dump="{"+L+"}"}c(pt,"writeFlowMapping"),n(pt,"writeFlowMapping");function bt(l,w,R,L){var Y="",V=l.tag,P=Object.keys(R),X,J,ne,me,le,je;if(l.sortKeys===!0)P.sort();else if(typeof l.sortKeys=="function")P.sort(l.sortKeys);else if(l.sortKeys)throw new y("sortKeys must be a boolean or a function");for(X=0,J=P.length;X<J;X+=1)je="",(!L||X!==0)&&(je+=We(l,w)),ne=P[X],me=R[ne],r(l,w+1,ne,!0,!0,!0)&&(le=l.tag!==null&&l.tag!=="?"||l.dump&&l.dump.length>1024,le&&(l.dump&&x===l.dump.charCodeAt(0)?je+="?":je+="? "),je+=l.dump,le&&(je+=We(l,w)),r(l,w+1,me,!0,le)&&(l.dump&&x===l.dump.charCodeAt(0)?je+=":":je+=": ",je+=l.dump,Y+=je));l.tag=V,l.dump=Y||"{}"}c(bt,"writeBlockMapping"),n(bt,"writeBlockMapping");function dt(l,w,R){var L,Y,V,P,X,J;for(Y=R?l.explicitTypes:l.implicitTypes,V=0,P=Y.length;V<P;V+=1)if(X=Y[V],(X.instanceOf||X.predicate)&&(!X.instanceOf||typeof w=="object"&&w instanceof X.instanceOf)&&(!X.predicate||X.predicate(w))){if(l.tag=R?X.tag:"?",X.represent){if(J=l.styleMap[X.tag]||X.defaultStyle,m.call(X.represent)==="[object Function]")L=X.represent(w,J);else if(e.call(X.represent,J))L=X.represent[J](w,J);else throw new y("!<"+X.tag+'> tag resolver accepts not "'+J+'" style');l.dump=L}return!0}return!1}c(dt,"detectType"),n(dt,"detectType");function r(l,w,R,L,Y,V){l.tag=null,l.dump=R,dt(l,R,!1)||dt(l,R,!0);var P=m.call(l.dump);L&&(L=l.flowLevel<0||l.flowLevel>w);var X=P==="[object Object]"||P==="[object Array]",J,ne;if(X&&(J=l.duplicates.indexOf(R),ne=J!==-1),(l.tag!==null&&l.tag!=="?"||ne||l.indent!==2&&w>0)&&(Y=!1),ne&&l.usedDuplicates[J])l.dump="*ref_"+J;else{if(X&&ne&&!l.usedDuplicates[J]&&(l.usedDuplicates[J]=!0),P==="[object Object]")L&&Object.keys(l.dump).length!==0?(bt(l,w,l.dump,Y),ne&&(l.dump="&ref_"+J+l.dump)):(pt(l,w,l.dump),ne&&(l.dump="&ref_"+J+" "+l.dump));else if(P==="[object Array]"){var me=l.noArrayIndent&&w>0?w-1:w;L&&l.dump.length!==0?(ze(l,me,l.dump,Y),ne&&(l.dump="&ref_"+J+l.dump)):(et(l,me,l.dump),ne&&(l.dump="&ref_"+J+" "+l.dump))}else if(P==="[object String]")l.tag!=="?"&&nt(l,l.dump,w,V);else{if(l.skipInvalid)return!1;throw new y("unacceptable kind of an object to dump "+P)}l.tag!==null&&l.tag!=="?"&&(l.dump="!<"+l.tag+"> "+l.dump)}return!0}c(r,"writeNode"),n(r,"writeNode");function _(l,w){var R=[],L=[],Y,V;for(T(l,R,L),Y=0,V=L.length;Y<V;Y+=1)w.duplicates.push(R[L[Y]]);w.usedDuplicates=new Array(V)}c(_,"getDuplicateReferences"),n(_,"getDuplicateReferences");function T(l,w,R){var L,Y,V;if(l!==null&&typeof l=="object")if(Y=w.indexOf(l),Y!==-1)R.indexOf(Y)===-1&&R.push(Y);else if(w.push(l),Array.isArray(l))for(Y=0,V=l.length;Y<V;Y+=1)T(l[Y],w,R);else for(L=Object.keys(l),Y=0,V=L.length;Y<V;Y+=1)T(l[L[Y]],w,R)}c(T,"inspectNode"),n(T,"inspectNode");function Z(l,w){w=w||{};var R=new re(w);return R.noRefs||_(l,R),r(R,0,l,!0,!0)?R.dump+`
|
|
37
|
+
`:""}c(Z,"dump"),n(Z,"dump");function H(l,w){return Z(l,h.extend({schema:a},w))}return c(H,"safeDump"),n(H,"safeDump"),Vr.dump=Z,Vr.safeDump=H,Vr}c(os,"requireDumper");var Oo;function as(){if(Oo)return xe;Oo=1;var g=Object.defineProperty,n=c((a,m)=>g(a,"name",{value:m,configurable:!0}),"o"),h=is(),y=os();function S(a){return function(){throw new Error("Function "+a+" is deprecated and cannot be used.")}}return c(S,"deprecated"),n(S,"deprecated"),xe.Type=Ie(),xe.Schema=er(),xe.FAILSAFE_SCHEMA=si(),xe.JSON_SCHEMA=qo(),xe.CORE_SCHEMA=Yo(),xe.DEFAULT_SAFE_SCHEMA=Cr(),xe.DEFAULT_FULL_SCHEMA=Gr(),xe.load=h.load,xe.loadAll=h.loadAll,xe.safeLoad=h.safeLoad,xe.safeLoadAll=h.safeLoadAll,xe.dump=y.dump,xe.safeDump=y.safeDump,xe.YAMLException=Sr(),xe.MINIMAL_SCHEMA=si(),xe.SAFE_SCHEMA=Cr(),xe.DEFAULT_SCHEMA=Gr(),xe.scan=S("scan"),xe.parse=S("parse"),xe.compose=S("compose"),xe.addConstructor=S("addConstructor"),xe}c(as,"requireJsYaml$1");var ii,jo;function ss(){if(jo)return ii;jo=1;var g=as();return ii=g,ii}c(ss,"requireJsYaml");var oi,_o;function us(){if(_o)return oi;_o=1;var g=Object.defineProperty,n=c((a,m)=>g(a,"name",{value:m,configurable:!0}),"n");function h(a,m){function e(){this.constructor=a}c(e,"r"),n(e,"ctor"),e.prototype=m.prototype,a.prototype=new e}c(h,"peg$subclass"),n(h,"peg$subclass");function y(a,m,e,A){this.message=a,this.expected=m,this.found=e,this.location=A,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,y)}c(y,"peg$SyntaxError"),n(y,"peg$SyntaxError"),h(y,Error),y.buildMessage=function(a,m){var e={literal:n(function($){return'"'+x($.text)+'"'},"literal"),class:n(function($){var v="",C;for(C=0;C<$.parts.length;C++)v+=$.parts[C]instanceof Array?b($.parts[C][0])+"-"+b($.parts[C][1]):b($.parts[C]);return"["+($.inverted?"^":"")+v+"]"},"class"),any:n(function($){return"any character"},"any"),end:n(function($){return"end of input"},"end"),other:n(function($){return $.description},"other")};function A($){return $.charCodeAt(0).toString(16).toUpperCase()}c(A,"m"),n(A,"hex");function x($){return $.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+A(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+A(v)})}c(x,"D"),n(x,"literalEscape");function b($){return $.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(v){return"\\x0"+A(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+A(v)})}c(b,"P"),n(b,"classEscape");function E($){return e[$.type]($)}c(E,"T"),n(E,"describeExpectation");function O($){var v=new Array($.length),C,z;for(C=0;C<$.length;C++)v[C]=E($[C]);if(v.sort(),v.length>0){for(C=1,z=1;C<v.length;C++)v[C-1]!==v[C]&&(v[z]=v[C],z++);v.length=z}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}c(O,"j"),n(O,"describeExpected");function F($){return $?'"'+x($)+'"':"end of input"}return c(F,"q"),n(F,"describeFound"),"Expected "+O(a)+" but "+F(m)+" found."};function S(a,m){m=m!==void 0?m:{};var e={},A={Start:ar},x=ar,b=n(function(s){return[].concat(...s)},"peg$c0"),E="-",O=Ee("-",!1),F=n(function(s){return s},"peg$c3"),$=n(function(s){return Object.assign({},...s)},"peg$c4"),v="#",C=Ee("#",!1),z=Rr(),fe=n(function(){return{}},"peg$c8"),ve=":",I=Ee(":",!1),oe=n(function(s,d){return{[s]:d}},"peg$c11"),pe=",",q=Ee(",",!1),se=n(function(s,d){return d},"peg$c14"),Oe=n(function(s,d,j){return Object.assign({},...[s].concat(d).map(G=>({[G]:j})))},"peg$c15"),Ae=n(function(s){return s},"peg$c16"),Ne=n(function(s){return s},"peg$c17"),Me=Ct("correct indentation"),De=" ",qe=Ee(" ",!1),rt=n(function(s){return s.length===qt*hr},"peg$c21"),Se=n(function(s){return s.length===(qt+1)*hr},"peg$c22"),He=n(function(){return qt++,!0},"peg$c23"),Ke=n(function(){return qt--,!0},"peg$c24"),Qe=n(function(){return ir()},"peg$c25"),re=Ct("pseudostring"),Fe=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,We=it(["\r",`
|
|
38
|
+
`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),we=/^[^\r\n\t ,\][{}:#"']/,ke=it(["\r",`
|
|
39
|
+
`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),Ce=n(function(){return ir().replace(/^ *| *$/g,"")},"peg$c31"),Re="--",ye=Ee("--",!1),Ye=/^[a-zA-Z\/0-9]/,Ue=it([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Ve=/^[^\r\n\t :,]/,Je=it(["\r",`
|
|
40
|
+
`," "," ",":",","],!0,!1),B="null",W=Ee("null",!1),ae=n(function(){return null},"peg$c40"),be="true",nt=Ee("true",!1),at=n(function(){return!0},"peg$c43"),st="false",At=Ee("false",!1),Ge=n(function(){return!1},"peg$c46"),ft=Ct("string"),et='"',ze=Ee('"',!1),pt=n(function(){return""},"peg$c50"),bt=n(function(s){return s},"peg$c51"),dt=n(function(s){return s.join("")},"peg$c52"),r=/^[^"\\\0-\x1F\x7F]/,_=it(['"',"\\",["\0",""],""],!0,!1),T='\\"',Z=Ee('\\"',!1),H=n(function(){return'"'},"peg$c57"),l="\\\\",w=Ee("\\\\",!1),R=n(function(){return"\\"},"peg$c60"),L="\\/",Y=Ee("\\/",!1),V=n(function(){return"/"},"peg$c63"),P="\\b",X=Ee("\\b",!1),J=n(function(){return"\b"},"peg$c66"),ne="\\f",me=Ee("\\f",!1),le=n(function(){return"\f"},"peg$c69"),je="\\n",Kr=Ee("\\n",!1),Qr=n(function(){return`
|
|
41
|
+
`},"peg$c72"),Er="\\r",Ht=Ee("\\r",!1),Ut=n(function(){return"\r"},"peg$c75"),wt="\\t",wr=Ee("\\t",!1),kr=n(function(){return" "},"peg$c78"),tr="\\u",zr=Ee("\\u",!1),Zr=n(function(s,d,j,G){return String.fromCharCode(parseInt(`0x${s}${d}${j}${G}`))},"peg$c81"),kt=/^[0-9a-fA-F]/,xt=it([["0","9"],["a","f"],["A","F"]],!1,!1),Xr=Ct("blank space"),xr=/^[ \t]/,ut=it([" "," "],!1,!1),Or=Ct("white space"),jr=/^[ \t\n\r]/,_r=it([" "," ",`
|
|
42
|
+
`,"\r"],!1,!1),rr=`\r
|
|
43
|
+
`,en=Ee(`\r
|
|
44
|
+
`,!1),tn=`
|
|
45
|
+
`,rn=Ee(`
|
|
46
|
+
`,!1),nn="\r",on=Ee("\r",!1),p=0,ge=0,Wt=[{line:1,column:1}],tt=0,nr=[],te=0,Ft;if("startRule"in m){if(!(m.startRule in A))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');x=A[m.startRule]}function ir(){return a.substring(ge,p)}c(ir,"ye"),n(ir,"text");function an(){return ht(ge,p)}c(an,"Jr"),n(an,"location");function Tr(s,d){throw d=d!==void 0?d:ht(ge,p),Vt([Ct(s)],a.substring(ge,p),d)}c(Tr,"Kr"),n(Tr,"expected");function sn(s,d){throw d=d!==void 0?d:ht(ge,p),Fr(s,d)}c(sn,"Qr"),n(sn,"error");function Ee(s,d){return{type:"literal",text:s,ignoreCase:d}}c(Ee,"A"),n(Ee,"peg$literalExpectation");function it(s,d,j){return{type:"class",parts:s,inverted:d,ignoreCase:j}}c(it,"w"),n(it,"peg$classExpectation");function Rr(){return{type:"any"}}c(Rr,"kr"),n(Rr,"peg$anyExpectation");function Lr(){return{type:"end"}}c(Lr,"zr"),n(Lr,"peg$endExpectation");function Ct(s){return{type:"other",description:s}}c(Ct,"S"),n(Ct,"peg$otherExpectation");function or(s){var d=Wt[s],j;if(d)return d;for(j=s-1;!Wt[j];)j--;for(d=Wt[j],d={line:d.line,column:d.column};j<s;)a.charCodeAt(j)===10?(d.line++,d.column=1):d.column++,j++;return Wt[s]=d,d}c(or,"Fe"),n(or,"peg$computePosDetails");function ht(s,d){var j=or(s),G=or(d);return{start:{offset:s,line:j.line,column:j.column},end:{offset:d,line:G.line,column:G.column}}}c(ht,"I"),n(ht,"peg$computeLocation");function ie(s){p<tt||(p>tt&&(tt=p,nr=[]),nr.push(s))}c(ie,"g"),n(ie,"peg$fail");function Fr(s,d){return new y(s,null,null,d)}c(Fr,"Br"),n(Fr,"peg$buildSimpleError");function Vt(s,d,j){return new y(y.buildMessage(s,d),s,d,j)}c(Vt,"Se"),n(Vt,"peg$buildStructuredError");function ar(){var s;return s=cr(),s}c(ar,"Le"),n(ar,"peg$parseStart");function sr(){var s,d,j;for(s=p,d=[],j=ur();j!==e;)d.push(j),j=ur();return d!==e&&(ge=s,d=b(d)),s=d,s}c(sr,"Mr"),n(sr,"peg$parseItemStatements");function ur(){var s,d,j,G,U;return s=p,d=Ot(),d!==e?(a.charCodeAt(p)===45?(j=E,p++):(j=e,te===0&&ie(O)),j!==e?(G=_e(),G!==e?(U=Pt(),U!==e?(ge=s,d=F(U),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e),s}c(ur,"De"),n(ur,"peg$parseItemStatement");function cr(){var s,d,j;for(s=p,d=[],j=lr();j!==e;)d.push(j),j=lr();return d!==e&&(ge=s,d=$(d)),s=d,s}c(cr,"Pe"),n(cr,"peg$parsePropertyStatements");function lr(){var s,d,j,G,U,ee,de,$e,Tt;if(s=p,d=_e(),d===e&&(d=null),d!==e){if(j=p,a.charCodeAt(p)===35?(G=v,p++):(G=e,te===0&&ie(C)),G!==e){if(U=[],ee=p,de=p,te++,$e=lt(),te--,$e===e?de=void 0:(p=de,de=e),de!==e?(a.length>p?($e=a.charAt(p),p++):($e=e,te===0&&ie(z)),$e!==e?(de=[de,$e],ee=de):(p=ee,ee=e)):(p=ee,ee=e),ee!==e)for(;ee!==e;)U.push(ee),ee=p,de=p,te++,$e=lt(),te--,$e===e?de=void 0:(p=de,de=e),de!==e?(a.length>p?($e=a.charAt(p),p++):($e=e,te===0&&ie(z)),$e!==e?(de=[de,$e],ee=de):(p=ee,ee=e)):(p=ee,ee=e);else U=e;U!==e?(G=[G,U],j=G):(p=j,j=e)}else p=j,j=e;if(j===e&&(j=null),j!==e){if(G=[],U=ct(),U!==e)for(;U!==e;)G.push(U),U=ct();else G=e;G!==e?(ge=s,d=fe(),s=d):(p=s,s=e)}else p=s,s=e}else p=s,s=e;if(s===e&&(s=p,d=Ot(),d!==e?(j=fr(),j!==e?(G=_e(),G===e&&(G=null),G!==e?(a.charCodeAt(p)===58?(U=ve,p++):(U=e,te===0&&ie(I)),U!==e?(ee=_e(),ee===e&&(ee=null),ee!==e?(de=Pt(),de!==e?(ge=s,d=oe(j,de),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e),s===e&&(s=p,d=Ot(),d!==e?(j=$t(),j!==e?(G=_e(),G===e&&(G=null),G!==e?(a.charCodeAt(p)===58?(U=ve,p++):(U=e,te===0&&ie(I)),U!==e?(ee=_e(),ee===e&&(ee=null),ee!==e?(de=Pt(),de!==e?(ge=s,d=oe(j,de),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e),s===e))){if(s=p,d=Ot(),d!==e)if(j=$t(),j!==e)if(G=_e(),G!==e)if(U=Nt(),U!==e){if(ee=[],de=ct(),de!==e)for(;de!==e;)ee.push(de),de=ct();else ee=e;ee!==e?(ge=s,d=oe(j,U),s=d):(p=s,s=e)}else p=s,s=e;else p=s,s=e;else p=s,s=e;else p=s,s=e;if(s===e)if(s=p,d=Ot(),d!==e)if(j=$t(),j!==e){if(G=[],U=p,ee=_e(),ee===e&&(ee=null),ee!==e?(a.charCodeAt(p)===44?(de=pe,p++):(de=e,te===0&&ie(q)),de!==e?($e=_e(),$e===e&&($e=null),$e!==e?(Tt=$t(),Tt!==e?(ge=U,ee=se(j,Tt),U=ee):(p=U,U=e)):(p=U,U=e)):(p=U,U=e)):(p=U,U=e),U!==e)for(;U!==e;)G.push(U),U=p,ee=_e(),ee===e&&(ee=null),ee!==e?(a.charCodeAt(p)===44?(de=pe,p++):(de=e,te===0&&ie(q)),de!==e?($e=_e(),$e===e&&($e=null),$e!==e?(Tt=$t(),Tt!==e?(ge=U,ee=se(j,Tt),U=ee):(p=U,U=e)):(p=U,U=e)):(p=U,U=e)):(p=U,U=e);else G=e;G!==e?(U=_e(),U===e&&(U=null),U!==e?(a.charCodeAt(p)===58?(ee=ve,p++):(ee=e,te===0&&ie(I)),ee!==e?(de=_e(),de===e&&(de=null),de!==e?($e=Pt(),$e!==e?(ge=s,d=Oe(j,G,$e),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)}else p=s,s=e;else p=s,s=e}return s}c(lr,"Ie"),n(lr,"peg$parsePropertyStatement");function Pt(){var s,d,j,G,U,ee,de;if(s=p,d=p,te++,j=p,G=lt(),G!==e?(U=Pr(),U!==e?(a.charCodeAt(p)===45?(ee=E,p++):(ee=e,te===0&&ie(O)),ee!==e?(de=_e(),de!==e?(G=[G,U,ee,de],j=G):(p=j,j=e)):(p=j,j=e)):(p=j,j=e)):(p=j,j=e),te--,j!==e?(p=d,d=void 0):d=e,d!==e?(j=ct(),j!==e?(G=gt(),G!==e?(U=sr(),U!==e?(ee=jt(),ee!==e?(ge=s,d=Ae(U),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e),s===e&&(s=p,d=lt(),d!==e?(j=gt(),j!==e?(G=cr(),G!==e?(U=jt(),U!==e?(ge=s,d=Ae(G),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e),s===e))if(s=p,d=It(),d!==e){if(j=[],G=ct(),G!==e)for(;G!==e;)j.push(G),G=ct();else j=e;j!==e?(ge=s,d=Ne(d),s=d):(p=s,s=e)}else p=s,s=e;return s}c(Pt,"Z"),n(Pt,"peg$parseExpression");function Ot(){var s,d,j;for(te++,s=p,d=[],a.charCodeAt(p)===32?(j=De,p++):(j=e,te===0&&ie(qe));j!==e;)d.push(j),a.charCodeAt(p)===32?(j=De,p++):(j=e,te===0&&ie(qe));return d!==e?(ge=p,j=rt(d),j?j=void 0:j=e,j!==e?(d=[d,j],s=d):(p=s,s=e)):(p=s,s=e),te--,s===e&&(d=e,te===0&&ie(Me)),s}c(Ot,"N"),n(Ot,"peg$parseSamedent");function Pr(){var s,d,j;for(s=p,d=[],a.charCodeAt(p)===32?(j=De,p++):(j=e,te===0&&ie(qe));j!==e;)d.push(j),a.charCodeAt(p)===32?(j=De,p++):(j=e,te===0&&ie(qe));return d!==e?(ge=p,j=Se(d),j?j=void 0:j=e,j!==e?(d=[d,j],s=d):(p=s,s=e)):(p=s,s=e),s}c(Pr,"Zr"),n(Pr,"peg$parseExtradent");function gt(){var s;return ge=p,s=He(),s?s=void 0:s=e,s}c(gt,"Ne"),n(gt,"peg$parseIndent");function jt(){var s;return ge=p,s=Ke(),s?s=void 0:s=e,s}c(jt,"Re"),n(jt,"peg$parseDedent");function fr(){var s;return s=Mt(),s===e&&(s=_t()),s}c(fr,"Ur"),n(fr,"peg$parseName");function $t(){var s,d,j;if(s=Mt(),s===e){if(s=p,d=[],j=St(),j!==e)for(;j!==e;)d.push(j),j=St();else d=e;d!==e&&(ge=s,d=Qe()),s=d}return s}c($t,"R"),n($t,"peg$parseLegacyName");function It(){var s;return s=pr(),s===e&&(s=Ir(),s===e&&(s=Mt(),s===e&&(s=_t()))),s}c(It,"Xr"),n(It,"peg$parseLiteral");function Nt(){var s;return s=pr(),s===e&&(s=Mt(),s===e&&(s=St())),s}c(Nt,"Yr"),n(Nt,"peg$parseLegacyLiteral");function _t(){var s,d,j,G,U,ee;if(te++,s=p,Fe.test(a.charAt(p))?(d=a.charAt(p),p++):(d=e,te===0&&ie(We)),d!==e){for(j=[],G=p,U=_e(),U===e&&(U=null),U!==e?(we.test(a.charAt(p))?(ee=a.charAt(p),p++):(ee=e,te===0&&ie(ke)),ee!==e?(U=[U,ee],G=U):(p=G,G=e)):(p=G,G=e);G!==e;)j.push(G),G=p,U=_e(),U===e&&(U=null),U!==e?(we.test(a.charAt(p))?(ee=a.charAt(p),p++):(ee=e,te===0&&ie(ke)),ee!==e?(U=[U,ee],G=U):(p=G,G=e)):(p=G,G=e);j!==e?(ge=s,d=Ce(),s=d):(p=s,s=e)}else p=s,s=e;return te--,s===e&&(d=e,te===0&&ie(re)),s}c(_t,"Te"),n(_t,"peg$parsepseudostring");function St(){var s,d,j,G,U;if(s=p,a.substr(p,2)===Re?(d=Re,p+=2):(d=e,te===0&&ie(ye)),d===e&&(d=null),d!==e)if(Ye.test(a.charAt(p))?(j=a.charAt(p),p++):(j=e,te===0&&ie(Ue)),j!==e){for(G=[],Ve.test(a.charAt(p))?(U=a.charAt(p),p++):(U=e,te===0&&ie(Je));U!==e;)G.push(U),Ve.test(a.charAt(p))?(U=a.charAt(p),p++):(U=e,te===0&&ie(Je));G!==e?(ge=s,d=Ce(),s=d):(p=s,s=e)}else p=s,s=e;else p=s,s=e;return s}c(St,"Q"),n(St,"peg$parsepseudostringLegacy");function pr(){var s,d;return s=p,a.substr(p,4)===B?(d=B,p+=4):(d=e,te===0&&ie(W)),d!==e&&(ge=s,d=ae()),s=d,s}c(pr,"je"),n(pr,"peg$parsenull");function Ir(){var s,d;return s=p,a.substr(p,4)===be?(d=be,p+=4):(d=e,te===0&&ie(nt)),d!==e&&(ge=s,d=at()),s=d,s===e&&(s=p,a.substr(p,5)===st?(d=st,p+=5):(d=e,te===0&&ie(At)),d!==e&&(ge=s,d=Ge()),s=d),s}c(Ir,"qr"),n(Ir,"peg$parseboolean");function Mt(){var s,d,j,G;return te++,s=p,a.charCodeAt(p)===34?(d=et,p++):(d=e,te===0&&ie(ze)),d!==e?(a.charCodeAt(p)===34?(j=et,p++):(j=e,te===0&&ie(ze)),j!==e?(ge=s,d=pt(),s=d):(p=s,s=e)):(p=s,s=e),s===e&&(s=p,a.charCodeAt(p)===34?(d=et,p++):(d=e,te===0&&ie(ze)),d!==e?(j=Nr(),j!==e?(a.charCodeAt(p)===34?(G=et,p++):(G=e,te===0&&ie(ze)),G!==e?(ge=s,d=bt(j),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)),te--,s===e&&(d=e,te===0&&ie(ft)),s}c(Mt,"U"),n(Mt,"peg$parsestring");function Nr(){var s,d,j;if(s=p,d=[],j=dr(),j!==e)for(;j!==e;)d.push(j),j=dr();else d=e;return d!==e&&(ge=s,d=dt(d)),s=d,s}c(Nr,"Gr"),n(Nr,"peg$parsechars");function dr(){var s,d,j,G,U,ee;return r.test(a.charAt(p))?(s=a.charAt(p),p++):(s=e,te===0&&ie(_)),s===e&&(s=p,a.substr(p,2)===T?(d=T,p+=2):(d=e,te===0&&ie(Z)),d!==e&&(ge=s,d=H()),s=d,s===e&&(s=p,a.substr(p,2)===l?(d=l,p+=2):(d=e,te===0&&ie(w)),d!==e&&(ge=s,d=R()),s=d,s===e&&(s=p,a.substr(p,2)===L?(d=L,p+=2):(d=e,te===0&&ie(Y)),d!==e&&(ge=s,d=V()),s=d,s===e&&(s=p,a.substr(p,2)===P?(d=P,p+=2):(d=e,te===0&&ie(X)),d!==e&&(ge=s,d=J()),s=d,s===e&&(s=p,a.substr(p,2)===ne?(d=ne,p+=2):(d=e,te===0&&ie(me)),d!==e&&(ge=s,d=le()),s=d,s===e&&(s=p,a.substr(p,2)===je?(d=je,p+=2):(d=e,te===0&&ie(Kr)),d!==e&&(ge=s,d=Qr()),s=d,s===e&&(s=p,a.substr(p,2)===Er?(d=Er,p+=2):(d=e,te===0&&ie(Ht)),d!==e&&(ge=s,d=Ut()),s=d,s===e&&(s=p,a.substr(p,2)===wt?(d=wt,p+=2):(d=e,te===0&&ie(wr)),d!==e&&(ge=s,d=kr()),s=d,s===e&&(s=p,a.substr(p,2)===tr?(d=tr,p+=2):(d=e,te===0&&ie(zr)),d!==e?(j=Dt(),j!==e?(G=Dt(),G!==e?(U=Dt(),U!==e?(ee=Dt(),ee!==e?(ge=s,d=Zr(j,G,U,ee),s=d):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)):(p=s,s=e)))))))))),s}c(dr,"Oe"),n(dr,"peg$parsechar");function Dt(){var s;return kt.test(a.charAt(p))?(s=a.charAt(p),p++):(s=e,te===0&&ie(xt)),s}c(Dt,"X"),n(Dt,"peg$parsehexDigit");function _e(){var s,d;if(te++,s=[],xr.test(a.charAt(p))?(d=a.charAt(p),p++):(d=e,te===0&&ie(ut)),d!==e)for(;d!==e;)s.push(d),xr.test(a.charAt(p))?(d=a.charAt(p),p++):(d=e,te===0&&ie(ut));else s=e;return te--,s===e&&(d=e,te===0&&ie(Xr)),s}c(_e,"x"),n(_e,"peg$parseB");function Mr(){var s,d;if(te++,s=[],jr.test(a.charAt(p))?(d=a.charAt(p),p++):(d=e,te===0&&ie(_r)),d!==e)for(;d!==e;)s.push(d),jr.test(a.charAt(p))?(d=a.charAt(p),p++):(d=e,te===0&&ie(_r));else s=e;return te--,s===e&&(d=e,te===0&&ie(Or)),s}c(Mr,"Vr"),n(Mr,"peg$parseS");function ct(){var s,d,j,G,U,ee;if(s=p,d=lt(),d!==e){for(j=[],G=p,U=_e(),U===e&&(U=null),U!==e?(ee=lt(),ee!==e?(U=[U,ee],G=U):(p=G,G=e)):(p=G,G=e);G!==e;)j.push(G),G=p,U=_e(),U===e&&(U=null),U!==e?(ee=lt(),ee!==e?(U=[U,ee],G=U):(p=G,G=e)):(p=G,G=e);j!==e?(d=[d,j],s=d):(p=s,s=e)}else p=s,s=e;return s}c(ct,"y"),n(ct,"peg$parseEOL_ANY");function lt(){var s;return a.substr(p,2)===rr?(s=rr,p+=2):(s=e,te===0&&ie(en)),s===e&&(a.charCodeAt(p)===10?(s=tn,p++):(s=e,te===0&&ie(rn)),s===e&&(a.charCodeAt(p)===13?(s=nn,p++):(s=e,te===0&&ie(on)))),s}c(lt,"F"),n(lt,"peg$parseEOL");const hr=2;let qt=0;if(Ft=x(),Ft!==e&&p===a.length)return Ft;throw Ft!==e&&p<a.length&&ie(Lr()),Vt(nr,tt<a.length?a.charAt(tt):null,tt<a.length?ht(tt,tt+1):ht(tt,tt))}return c(S,"peg$parse"),n(S,"peg$parse"),oi={SyntaxError:y,parse:S},oi}c(us,"requireSyml$1");var To;function cs(){if(To)return Yt;To=1;var g=Object.defineProperty,n=c((v,C)=>g(v,"name",{value:C,configurable:!0}),"t");Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.PreserveOrdering=void 0,Yt.stringifySyml=b,Yt.parseSyml=$;const h=ss(),y=us(),S=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,a=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"];class m{static{c(this,"PreserveOrdering")}static{n(this,"PreserveOrdering")}constructor(C){this.data=C}}Yt.PreserveOrdering=m;function e(v){return v.match(S)?v:JSON.stringify(v)}c(e,"stringifyString"),n(e,"stringifyString");function A(v){return typeof v>"u"?!0:typeof v=="object"&&v!==null&&!Array.isArray(v)?Object.keys(v).every(C=>A(v[C])):!1}c(A,"isRemovableField"),n(A,"isRemovableField");function x(v,C,z){if(v===null)return`null
|
|
47
|
+
`;if(typeof v=="number"||typeof v=="boolean")return`${v.toString()}
|
|
48
|
+
`;if(typeof v=="string")return`${e(v)}
|
|
49
|
+
`;if(Array.isArray(v)){if(v.length===0)return`[]
|
|
50
|
+
`;const fe=" ".repeat(C);return`
|
|
51
|
+
${v.map(ve=>`${fe}- ${x(ve,C+1,!1)}`).join("")}`}if(typeof v=="object"&&v){const[fe,ve]=v instanceof m?[v.data,!1]:[v,!0],I=" ".repeat(C),oe=Object.keys(fe);ve&&oe.sort((q,se)=>{const Oe=a.indexOf(q),Ae=a.indexOf(se);return Oe===-1&&Ae===-1?q<se?-1:q>se?1:0:Oe!==-1&&Ae===-1?-1:Oe===-1&&Ae!==-1?1:Oe-Ae});const pe=oe.filter(q=>!A(fe[q])).map((q,se)=>{const Oe=fe[q],Ae=e(q),Ne=x(Oe,C+1,!0),Me=se>0||z?I:"",De=Ae.length>1024?`? ${Ae}
|
|
52
|
+
${Me}:`:`${Ae}:`,qe=Ne.startsWith(`
|
|
53
|
+
`)?Ne:` ${Ne}`;return`${Me}${De}${qe}`}).join(C===0?`
|
|
54
|
+
`:"")||`
|
|
55
|
+
`;return z?`
|
|
56
|
+
${pe}`:`${pe}`}throw new Error(`Unsupported value type (${v})`)}c(x,"stringifyValue"),n(x,"stringifyValue");function b(v){try{const C=x(v,0,!1);return C!==`
|
|
57
|
+
`?C:""}catch(C){throw C.location&&(C.message=C.message.replace(/(\.)?$/,` (line ${C.location.start.line}, column ${C.location.start.column})$1`)),C}}c(b,"stringifySyml"),n(b,"stringifySyml"),b.PreserveOrdering=m;function E(v){return v.endsWith(`
|
|
58
|
+
`)||(v+=`
|
|
59
|
+
`),(0,y.parse)(v)}c(E,"parseViaPeg"),n(E,"parseViaPeg");const O=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function F(v){if(O.test(v))return E(v);const C=(0,h.safeLoad)(v,{schema:h.FAILSAFE_SCHEMA,json:!0});if(C==null)return{};if(typeof C!="object")throw new Error(`Expected an indexed object, got a ${typeof C} instead. Does your file follow Yaml's rules?`);if(Array.isArray(C))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return C}c(F,"parseViaJsYaml"),n(F,"parseViaJsYaml");function $(v){return F(v)}return c($,"parseSyml"),n($,"parseSyml"),Yt}c(cs,"requireSyml");var Ro;function ls(){return Ro||(Ro=1,(function(g){var n=Object.defineProperty,h=c((m,e)=>n(m,"name",{value:e,configurable:!0}),"e");Object.defineProperty(g,"__esModule",{value:!0}),g.stringifySyml=g.parseSyml=g.stringifyResolution=g.parseResolution=g.stringifyValueArgument=g.stringifyShellLine=g.stringifyRedirectArgument=g.stringifyEnvSegment=g.stringifyCommandLineThen=g.stringifyCommandLine=g.stringifyCommandChainThen=g.stringifyCommandChain=g.stringifyCommand=g.stringifyArithmeticExpression=g.stringifyArgumentSegment=g.stringifyArgument=g.stringifyShell=g.parseShell=void 0;var y=Ma();Object.defineProperty(g,"parseShell",{enumerable:!0,get:h(function(){return y.parseShell},"get")}),Object.defineProperty(g,"stringifyShell",{enumerable:!0,get:h(function(){return y.stringifyShell},"get")}),Object.defineProperty(g,"stringifyArgument",{enumerable:!0,get:h(function(){return y.stringifyArgument},"get")}),Object.defineProperty(g,"stringifyArgumentSegment",{enumerable:!0,get:h(function(){return y.stringifyArgumentSegment},"get")}),Object.defineProperty(g,"stringifyArithmeticExpression",{enumerable:!0,get:h(function(){return y.stringifyArithmeticExpression},"get")}),Object.defineProperty(g,"stringifyCommand",{enumerable:!0,get:h(function(){return y.stringifyCommand},"get")}),Object.defineProperty(g,"stringifyCommandChain",{enumerable:!0,get:h(function(){return y.stringifyCommandChain},"get")}),Object.defineProperty(g,"stringifyCommandChainThen",{enumerable:!0,get:h(function(){return y.stringifyCommandChainThen},"get")}),Object.defineProperty(g,"stringifyCommandLine",{enumerable:!0,get:h(function(){return y.stringifyCommandLine},"get")}),Object.defineProperty(g,"stringifyCommandLineThen",{enumerable:!0,get:h(function(){return y.stringifyCommandLineThen},"get")}),Object.defineProperty(g,"stringifyEnvSegment",{enumerable:!0,get:h(function(){return y.stringifyEnvSegment},"get")}),Object.defineProperty(g,"stringifyRedirectArgument",{enumerable:!0,get:h(function(){return y.stringifyRedirectArgument},"get")}),Object.defineProperty(g,"stringifyShellLine",{enumerable:!0,get:h(function(){return y.stringifyShellLine},"get")}),Object.defineProperty(g,"stringifyValueArgument",{enumerable:!0,get:h(function(){return y.stringifyValueArgument},"get")});var S=qa();Object.defineProperty(g,"parseResolution",{enumerable:!0,get:h(function(){return S.parseResolution},"get")}),Object.defineProperty(g,"stringifyResolution",{enumerable:!0,get:h(function(){return S.stringifyResolution},"get")});var a=cs();Object.defineProperty(g,"parseSyml",{enumerable:!0,get:h(function(){return a.parseSyml},"get")}),Object.defineProperty(g,"stringifySyml",{enumerable:!0,get:h(function(){return a.stringifySyml},"get")})})(_n)),_n}c(ls,"requireLib");var Lo=ls(),fs=Object.defineProperty,Bt=c((g,n)=>fs(g,"name",{value:n,configurable:!0}),"f");const ps=Bt(g=>{const n=g.trim();if(n==="")return;const h=n.startsWith("@")?1:0,y=n.indexOf("@",h);if(y!==-1)return{name:n.slice(0,y),spec:n.slice(y+1)}},"splitSpecifier"),ds=Bt(g=>g.split(",").map(n=>ps(n)).filter(n=>n!==void 0),"parseKeySpecifiers"),hs=Bt(g=>{const n=new Map;for(const h of Object.keys(g)){if(h==="__metadata")continue;const y=ds(h),S=new Map;for(const{name:a,spec:m}of y){const e=S.get(a);e?e.push(m):S.set(a,[m])}for(const[a,m]of S){const e=n.get(a);e?e.push({key:h,specs:m}):n.set(a,[{key:h,specs:m}])}}return n},"buildNameIndex"),Fo=Bt((g,n,h)=>{const y=g.get(n);if(!y)return[];const S=new Set([h]);return h.includes(":")?h.startsWith("npm:")&&S.add(h.slice(4)):S.add(`npm:${h}`),y.filter(a=>a.specs.some(m=>S.has(m))).map(a=>a.key)},"findKeysFor"),gs=Bt((g,n)=>{const h=new Set,y=new Set(n.map(S=>S.relativeRoot).filter(S=>S!==""));for(const[S,a]of Object.entries(g)){if(S==="__metadata")continue;const m=a.resolution;if(typeof m!="string"||!m.includes("@workspace:"))continue;const e=m.split("@workspace:")[1];e!==void 0&&(e==="."||y.has(e))&&h.add(S)}return h},"collectWorkspaceKeys"),ms=Bt(g=>{const n=[];for(const h of[g.dependencies,g.optionalDependencies])if(h)for(const[y,S]of Object.entries(h))typeof S=="string"&&n.push({name:y,spec:S});return n},"collectDeps"),ys=Bt(g=>{const n=typeof g.lockfileContent=="string"?g.lockfileContent:g.lockfileContent.toString("utf8");let h;try{h=Lo.parseSyml(n)}catch(O){throw new vt(`yarn.lock: parse failed — ${O.message}`)}if(!h||typeof h!="object")throw new vt("yarn.lock: top-level value is not an object");const y=hs(h),S=new Set;h.__metadata!==void 0&&S.add("__metadata");const a=gs(h,g.closure);for(const O of a)S.add(O);for(const O of g.closure)if(O.deps)for(const[F,$]of Object.entries(O.deps)){if(typeof $!="string"||$.startsWith("workspace:")||$.startsWith("link:")||$.startsWith("portal:"))continue;const v=Fo(y,F,$);for(const C of v)S.add(C)}const m=[...S];for(;m.length>0;){const O=m.shift();if(O==="__metadata")continue;const F=h[O];if(F)for(const{name:$,spec:v}of ms(F)){if(v.startsWith("workspace:")||v.startsWith("link:")||v.startsWith("portal:"))continue;const C=Fo(y,$,v);for(const z of C)S.has(z)||(S.add(z),m.push(z))}}const e={};for(const O of Object.keys(h))S.has(O)&&(e[O]=h[O]);const A=Object.keys(h).length-(h.__metadata!==void 0?1:0),x=S.size-(S.has("__metadata")?1:0),b=A-x,E=h.__metadata!==void 0;return{content:Lo.stringifySyml(e),message:`yarn.lock (${E?"berry":"classic"}): kept ${x}/${A} entries (dropped ${b})`,status:"pruned"}},"pruneYarnLockfile");var vs=Object.defineProperty,As=c((g,n)=>vs(g,"name",{value:n,configurable:!0}),"n");const bs=As(g=>{switch(g.packageManager){case"bun":return Oa(g);case"npm":return Ra(g);case"pnpm":return Ia(g);case"yarn":return ys(g);default:{const n=g.packageManager;throw new vt(`Unsupported package manager: ${n}`)}}},"pruneLockfile");var Cs=Object.defineProperty,Et=c((g,n)=>Cs(g,"name",{value:n,configurable:!0}),"u");const $s=Et((g,n)=>{const h=new Set,y=[g],S=new Set([g]);for(;y.length>0;){const a=y.shift(),m=n.dependencies[a]??[];for(const e of m)S.has(e.target)||(S.add(e.target),h.add(e.target),y.push(e.target))}return h},"collectTransitiveProjectDeps"),Jr="vis-docker-manifest.json",Ss=["package.json","project.json"],Es=[{file:"bun.lock",manager:"bun"},{file:"bun.lockb",manager:"bun"},{file:"package-lock.json",manager:"npm"},{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"}],ws=["package.json","pnpm-workspace.yaml",".npmrc","vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],ks=Et((g,n)=>{const h=new Set(g);for(const y of g){const S=$s(y,n);for(const a of S)h.add(a)}return h},"resolveFocusProjects"),zt=Et(g=>{ma(g)},"ensureDir"),br=Et((g,n)=>{try{return zt(ui(n)),Io(g,n),!0}catch(h){if(h.code==="ENOENT")return!1;throw h}},"copyFileIfExists"),Ho=Et((g,n)=>{let h;try{h=ha(g)}catch{return}if(!h.isSymbolicLink()){if(h.isFile()){zt(ui(n)),Io(g,n);return}zt(n);for(const y of ga(g,{withFileTypes:!0}))y.name==="node_modules"||y.name===".git"||y.isSymbolicLink()||Ho(Be(g,y.name),Be(n,y.name))}},"copyTreeExcludingNodeModules"),Po=Et(g=>{if(!No(g))return;let n;try{n=Mo(g)}catch{return}const h={};for(const y of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const S=n[y];if(!(S===null||typeof S!="object"||Array.isArray(S)))for(const[a,m]of Object.entries(S))typeof m=="string"&&(h[a]=m)}return{deps:h,name:typeof n.name=="string"?n.name:void 0}},"readProjectInfo"),Ts=Et(g=>{const{focus:n,includeSources:h=!1,log:y=Et(v=>console.log(v),"log"),outDir:S,projectGraph:a,pruneLockfile:m=!0,workspace:e,workspaceRoot:A}=g,x=n.filter(v=>e.projects[v]===void 0);if(x.length>0)throw new Error(`Unknown focus project(s): ${x.join(", ")}. Check project names in your workspace.`);const b=ks(n,a),E=Be(S,"workspace"),O=Be(S,"sources");ai(E,{force:!0,recursive:!0}),ai(O,{force:!0,recursive:!0}),zt(E);for(const v of ws)br(Be(A,v),Be(E,v));const F=Po(Be(A,"package.json")),$=[{deps:F?.deps,name:F?.name,relativeRoot:""}];for(const v of b){const C=e.projects[v];if(!C?.root)continue;for(const fe of Ss)br(Be(A,C.root,fe),Be(E,C.root,fe));const z=Po(Be(A,C.root,"package.json"));$.push({deps:z?.deps,name:z?.name,relativeRoot:C.root})}for(const{file:v,manager:C}of Es){const z=Be(A,v);if(!No(z))continue;const fe=Be(E,v);if(!m){br(z,fe);continue}const ve=v.endsWith(".lockb")?Wi(z):Wi(z,"utf8");try{const I=bs({closure:$,lockfileContent:ve,packageManager:C});I.status==="pruned"&&I.content!==void 0?(zt(ui(fe)),Vi(fe,I.content)):br(z,fe),y(I.message)}catch(I){if(I instanceof vt)y(`${v}: pruning failed (${I.message}); copying verbatim`),br(z,fe);else throw I}}if(h){zt(O);for(const v of n){const C=e.projects[v];C?.root&&Ho(Be(A,C.root),Be(O,C.root))}}return Vi(Be(S,Jr),`${JSON.stringify({focus:n,projects:[...b].sort()},null,2)}
|
|
60
|
+
`),{projects:[...b]}},"scaffoldDockerContext"),Rs=Et(g=>{const{contextRoot:n,workspace:h,workspaceRoot:y}=g,S=Be(n,Jr);if(!ya(S))throw new Error(`No ${Jr} at ${n}. Run \`vis docker scaffold\` first.`);const a=Mo(S);if(!Array.isArray(a.projects))throw new TypeError(`Invalid ${Jr}: "projects" must be an array.`);const m=new Set(a.projects),e=[];for(const[A,x]of Object.entries(h.projects)){if(m.has(A)||!x.root)continue;const b=Be(y,x.root),E=va(y,b);E===""||E==="."||E.startsWith("..")||(ai(b,{force:!0,recursive:!0}),e.push(E))}return{removed:e}},"pruneDockerContext");export{Rs as p,ks as r,Ts as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var m=Object.defineProperty;var a=(t,e)=>m(t,"name",{value:e,configurable:!0});import{createRequire as p}from"node:module";import{M as v}from"../packem_chunks/config.js";import{o as j}from"../packem_chunks/bin.js";const h=p(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=a(t=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,r]=s.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return s.getBuiltinModule(t)}return h(t)},"__cjs_getBuiltinModule"),{mkdirSync:y,writeFileSync:F,readdirSync:L}=u("node:fs"),{readFile:_}=u("node:fs/promises");var S=Object.defineProperty,i=a((t,e)=>S(t,"name",{value:e,configurable:!0}),"i");const c=i(t=>j(t),"getFailureLogDirectory"),l=i((t,e)=>v(c(t),`${encodeURIComponent(e)}.json`),"getFailureLogPath");class R{static{a(this,"FailureLogLifeCycle")}static{i(this,"FailureLogLifeCycle")}#e;#t;constructor(e,r){this.#e=e,this.#t=r}printTaskTerminalOutput(e,r,o){if(r!=="failure")return;const n=c(this.#e);try{y(n,{recursive:!0})}catch{return}const d=e.overrides.command,f=e.projectRoot,g={command:d,cwd:f,exitCode:void 0,hash:e.hash,runId:this.#t,status:r,taskId:e.id,terminalOutput:o,timestamp:new Date().toISOString()};try{F(l(this.#e,e.id),`${JSON.stringify(g,void 0,2)}
|
|
2
|
+
`,"utf8")}catch{}}}const T=i(async(t,e)=>{const r=l(t,e);try{const o=await _(r,"utf8");return JSON.parse(o)}catch{return}},"loadFailureLog"),w=i(t=>{const e=c(t);let r;try{r=L(e)}catch{return[]}const o=[];for(const n of r)if(n.endsWith(".json"))try{o.push(decodeURIComponent(n.slice(0,-5)))}catch{}return o},"listFailureLogs");export{R as F,T as a,w as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Object.defineProperty;var f=(a,s)=>h(a,"name",{value:s,configurable:!0});import{createRequire as k}from"node:module";import{a as y,n as T,M as v}from"../packem_chunks/config.js";import{n as S}from"../packem_chunks/bin.js";const R=k(import.meta.url),l=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,b=f(a=>{if(typeof l<"u"&&l.versions&&l.versions.node){const[s,n]=l.versions.node.split(".").map(Number);if(s>22||s===22&&n>=3||s===20&&n>=16)return l.getBuiltinModule(a)}return R(a)},"__cjs_getBuiltinModule"),{readdirSync:j}=b("node:fs");var F=Object.defineProperty,d=f((a,s)=>F(a,"name",{value:s,configurable:!0}),"i");const P=d((a,s)=>{let n=0,o=0,r=0;for(const[,t]of a)switch(t.status){case"failure":{r+=1;break}case"local-cache":case"local-cache-kept-existing":case"remote-cache":{o+=1;break}case"success":{n+=1;break}}const i=[];n>0&&i.push(`${String(n)} succeeded`),o>0&&i.push(`${String(o)} cached`),r>0&&i.push(`${String(r)} failed`);const c=(s/1e3).toFixed(1);return i.push(`${c}s`),i.join(" · ")},"formatTimingSummary"),p=d(a=>{const s=S(a);if(!y(s))return[];const n=j(s).filter(r=>r.endsWith(".json")),o=[];for(const r of n)try{o.push(T(v(s,r)))}catch{}return o},"loadRunSummaries"),D=d((a,s,n)=>{const o=n??p(a);if(o.length<2)return;let r=0,i=0;for(const e of o)typeof e.duration=="number"&&e.duration>0&&(r+=e.duration,i+=1);if(i<2)return;const c=r/i-s,t=Math.abs(c/1e3).toFixed(1);return Math.abs(c)<500?"(about average)":c>0?`(${t}s faster than avg)`:`(${t}s slower than avg)`},"compareDuration");var _=Object.defineProperty,m=f((a,s)=>_(a,"name",{value:s,configurable:!0}),"l");const E=m((a,s={},n)=>{const o=n??p(a);if(o.length===0)return[];const r=new Map;for(const t of o)if(!(s.since&&(t.startTime===void 0||t.startTime<s.since))&&Array.isArray(t.tasks))for(const e of t.tasks){if(e.cacheStatus==="HIT"||e.cacheStatus==="REMOTE_HIT"||e.cacheStatus==="SKIPPED")continue;const u=r.get(e.taskId)??{failures:0,project:e.target.project,successes:0,target:e.target.target,totalRuns:0};u.totalRuns+=1,e.exitCode!==void 0&&e.exitCode!==0?(u.failures+=1,u.lastFailure=e.startTime??t.startTime):u.successes+=1,r.set(e.taskId,u)}const i=s.minRuns??2,c=[];for(const[t,e]of r)e.totalRuns<i||e.failures!==0&&c.push({failures:e.failures,flakinessRate:e.failures/e.totalRuns,lastFailure:e.lastFailure,project:e.project,successes:e.successes,target:e.target,taskId:t,totalRuns:e.totalRuns});return c.sort((t,e)=>e.flakinessRate-t.flakinessRate),c},"analyzeFlakiness"),q=m(a=>{if(a.length===0)return["No flaky tasks detected."];const s=["Task","Runs","Failures","Rate","Last Failure"],n=a.map(t=>[t.taskId,String(t.totalRuns),String(t.failures),`${(t.flakinessRate*100).toFixed(1)}%`,t.lastFailure??"—"]),o=s.map((t,e)=>{let u=0;for(const g of n)u=Math.max(u,(g[e]??"").length);return Math.max(t.length,u)}),r=m((t,e)=>t.padEnd(e),"pad"),i=o.map(t=>"─".repeat(t)).join("──"),c=[s.map((t,e)=>r(t,o[e])).join(" "),i];for(const t of n)c.push(t.map((e,u)=>r(e,o[u])).join(" "));return c},"formatFlakinessTable");export{E as a,q as b,D as c,P as f,p as l};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var B=Object.defineProperty;var c=(e,t)=>B(e,"name",{value:t,configurable:!0});import{createRequire as G}from"node:module";import{f as C,g as k,M as w}from"../packem_chunks/config.js";import{aK as Q,$ as U,aL as j}from"../packem_chunks/bin.js";const q=G(import.meta.url),l=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,m=c(e=>{if(typeof l<"u"&&l.versions&&l.versions.node){const[t,r]=l.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return l.getBuiltinModule(e)}return q(e)},"__cjs_getBuiltinModule"),{Socket:V}=m("node:net"),{randomBytes:H}=m("node:crypto"),{readdir:K,writeFile:W,rename:X,rm:S,open:P,readFile:J,stat:Y,unlink:R}=m("node:fs/promises"),{createRequire:z}=m("node:module"),{spawn:Z}=m("node:child_process");var ee=Object.defineProperty,te=c((e,t)=>ee(e,"name",{value:t,configurable:!0}),"i$1"),re=Object.defineProperty,O=te((e,t)=>re(e,"name",{value:t,configurable:!0}),"s");const oe=z(import.meta.url),f=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ie=O(e=>{if(typeof f<"u"&&f.versions&&f.versions.node){const[t,r]=f.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return f.getBuiltinModule(e)}return oe(e)},"__cjs_getBuiltinModule"),{lstat:D,mkdir:ae}=ie("node:fs/promises");var se=Object.defineProperty,ne=O((e,t)=>se(e,"name",{value:t,configurable:!0}),"o");const ce=ne(async e=>{C(e);try{const t=await D(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(k(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{await ae(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=await D(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(k(r))}'`,{cause:t})}},"ensureDir");var de=Object.defineProperty,d=c((e,t)=>de(e,"name",{value:t,configurable:!0}),"s");const ue=3e4,F=100;class we extends Error{static{c(this,"ServiceReadinessError")}constructor(t,r){super(t),this.elapsedMs=r,this.name="ServiceReadinessError"}elapsedMs;static{d(this,"ServiceReadinessError")}}const pe=d(async e=>{const t=e.host??"127.0.0.1",{port:r}=e,o=e.timeoutMs??ue,i=Date.now();for(;Date.now()-i<o;){if(await le(t,r))return;await fe(F)}throw new we(`Timed out waiting for ${t}:${String(r)} to accept TCP connections (${String(o)}ms)`,Date.now()-i)},"waitForTcp"),le=d((e,t)=>new Promise(r=>{const o=new V,i=d(a=>{o.removeAllListeners(),o.destroy(),r(a)},"onDone");o.once("connect",()=>{i(!0)}),o.once("error",()=>{i(!1)}),o.setTimeout(F,()=>{i(!1)});try{o.connect(t,e)}catch{i(!1)}}),"tryConnect"),fe=d(e=>new Promise(t=>{setTimeout(t,e)}),"delay"),ye=d(async(e,t)=>{const r=e.readiness??(e.port===void 0?void 0:{tcp:{port:e.port}});r&&await pe({host:r.tcp.host,port:r.tcp.port,timeoutMs:t?.timeoutMs??r.tcp.timeoutMs})},"runReadiness");var me=Object.defineProperty,s=c((e,t)=>me(e,"name",{value:t,configurable:!0}),"o");const $=384,T=5e3,he=50,ve=3e4,p=s(async e=>{const t=w(Q(e),"services");try{await ce(t)}catch(r){throw r.code==="ENOTDIR"?new Error(`Service registry path ${t} exists but is not a directory. Remove it or move the conflicting file before running \`vis service\`.`,{cause:r}):r}return t},"getRegistryDir"),E=s(e=>e.replaceAll("/","_").replaceAll(":","__"),"slugify"),b=s((e,t)=>w(e,`${E(t)}.json`),"entryPath"),ge=s((e,t)=>w(e,`${E(t)}.lock`),"lockPath"),h=s(async(e,t)=>{const r=await p(e),o=b(r,t);if(await U(o))try{return await j(o)}catch{return}},"readEntry"),Se=s(async e=>{const t=await p(e);let r;try{r=await K(t)}catch{return[]}const o=[];for(const i of r)if(i.endsWith(".json"))try{const a=await j(w(t,i));o.push(a)}catch{}return o},"readAllEntries"),$e=s(async(e,t)=>{const r=await p(e),o=b(r,t.id),i=w(r,`.${H(8).toString("hex")}.tmp`);await W(i,`${JSON.stringify(t,void 0,2)}
|
|
2
|
+
`,{mode:$});try{await X(i,o)}catch(a){throw await S(i,{force:!0}).catch(()=>{}),a}},"writeEntry"),y=s(async(e,t,r)=>{const o=await p(e),i=r??await h(e,t);await S(b(o,t),{force:!0}),i&&await S(i.logFile,{force:!0}).catch(()=>{})},"deleteEntry"),u=s(e=>{try{return process.kill(e,0),!0}catch{return!1}},"isAlive"),Fe=s(async e=>{const t=await Se(e),r=[],o=[];for(const i of t){if(u(i.pid)){o.push(i);continue}const a=await h(e,i.id);if(a&&a.pid!==i.pid){o.push(a);continue}await y(e,i.id,i).catch(()=>{}),r.push(i.id)}return{pruned:r,surviving:o}},"pruneDead"),Ee=s(e=>new Promise(t=>{setTimeout(t,e)}),"sleep"),be=s(async e=>{try{const t=await P(e,"wx",$);try{await t.writeFile(String(process.pid))}finally{await t.close().catch(()=>{})}return!0}catch(t){if(t.code==="EEXIST")return!1;throw t}},"tryClaimLock"),ke=s(async e=>{let t;try{const r=await J(e,"utf8"),o=Number.parseInt(r.trim(),10);t=Number.isFinite(o)?o:void 0}catch{return!0}if(t!==void 0&&!u(t))return!0;try{const r=await Y(e);return Date.now()-r.mtimeMs>ve}catch{return!0}},"isLockStale"),I=s(async(e,t,r)=>{const o=await p(e),i=ge(o,t),a=Date.now();for(;!await be(i);){if(await ke(i)){await R(i).catch(()=>{});continue}if(Date.now()-a>=T)throw new Error(`Could not acquire service lock for ${t} within ${String(T)}ms — another \`vis service\` invocation appears to be holding it.`);await Ee(he)}try{return await r()}finally{await R(i).catch(()=>{})}},"withServiceLock");var Re=Object.defineProperty,De=c((e,t)=>Re(e,"name",{value:t,configurable:!0}),"i");const _=process.platform==="win32",Te=De(async e=>{const{command:t,cwd:r,env:o,logFile:i}=e,a=await P(i,"a",$);let n;try{n=Z(_?"cmd":"/bin/sh",_?["/d","/s","/c",t]:["-c",t],{cwd:r,detached:!0,env:{...process.env,...o},stdio:["ignore",a.fd,a.fd],windowsHide:!0})}finally{await a.close().catch(()=>{})}if(n.pid===void 0&&await new Promise((g,N)=>{n.once("spawn",()=>{g()}),n.once("error",A=>{N(A)})}),n.pid===void 0)throw new Error(`Failed to spawn detached process for command: ${t}`);return n.unref(),{pid:n.pid}},"spawnDetached");var _e=Object.defineProperty,v=c((e,t)=>_e(e,"name",{value:t,configurable:!0}),"t");const L=5e3,Ie=v(async e=>I(e.workspaceRoot,e.id,async()=>{const t=await h(e.workspaceRoot,e.id);if(t&&u(t.pid))throw new Error(`Service ${e.id} is already running (pid ${String(t.pid)})`);t&&await y(e.workspaceRoot,e.id,t);const r=await p(e.workspaceRoot),o=E(e.id),i=w(r,`${o}.log`),{pid:a}=await Te({command:e.command,cwd:e.cwd,env:e.env,logFile:i}),n={command:e.command,config:e.config,cwd:e.cwd,env:e.config.env??{},id:e.id,logFile:i,pid:a,slug:o,startedAt:new Date().toISOString(),visVersion:process.env.VIS_VERSION??"0.0.0"};if(await $e(e.workspaceRoot,n),e.skipReadiness!==!0)try{await ye(e.config,{timeoutMs:e.readinessTimeoutMs})}catch(g){throw await x(a,e.config.killGracePeriodMs??L).catch(()=>{}),await y(e.workspaceRoot,e.id,n).catch(()=>{}),g}return{entry:n}}),"startService"),Le=v(async e=>I(e.workspaceRoot,e.id,async()=>{const t=await h(e.workspaceRoot,e.id);if(!t)return{stopped:!1};if(!u(t.pid))return await y(e.workspaceRoot,e.id,t),{stopped:!1};const r=e.graceMs??t.config.killGracePeriodMs??L;return await x(t.pid,r),await y(e.workspaceRoot,e.id,t),{stopped:!0}}),"stopService"),x=v(async(e,t)=>{M(e,"SIGTERM");const r=Date.now();for(;Date.now()-r<t;){if(!u(e))return;await new Promise(o=>{setTimeout(o,100)})}u(e)&&M(e,"SIGKILL")},"stopServiceByPid"),M=v((e,t)=>{try{process.platform==="win32"?process.kill(e,t):process.kill(-e,t)}catch(r){if(r.code==="ESRCH")return;throw r}},"sendSignalToServiceGroup");export{we as S,Le as a,h as b,ye as c,y as d,u as i,Fe as p,Se as r,Ie as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=Object.defineProperty;var j=(n,e)=>T(n,"name",{value:e,configurable:!0});import{createRequire as A}from"node:module";import{
|
|
1
|
+
var T=Object.defineProperty;var j=(n,e)=>T(n,"name",{value:e,configurable:!0});import{createRequire as A}from"node:module";import{r as R,t as C}from"../packem_chunks/bin.js";const B=A(import.meta.url),h=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,q=j(n=>{if(typeof h<"u"&&h.versions&&h.versions.node){const[e,t]=h.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return h.getBuiltinModule(n)}return B(n)},"__cjs_getBuiltinModule"),{createRequire:N}=q("node:module");var U=Object.defineProperty,z=j((n,e)=>U(n,"name",{value:e,configurable:!0}),"L"),I=Object.defineProperty,F=z((n,e)=>I(n,"name",{value:e,configurable:!0}),"F");const J=N(import.meta.url),y=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,S=F(n=>{if(typeof y<"u"&&y.versions&&y.versions.node){const[e,t]=y.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return y.getBuiltinModule(n)}return J(n)},"__cjs_getBuiltinModule"),{readFileSync:Y}=S("node:fs"),{readFile:Z}=S("node:fs/promises");var K=Object.defineProperty,l=F((n,e)=>K(n,"name",{value:e,configurable:!0}),"g");const G={sha256:"sha256",sha384:"sha384",sha512:"sha512"},H=1024,Q=/^[A-Z0-9+/]+={0,2}$/i,V=/.*node_modules\/((?:@[^/]+\/)?[^/]+)$/,k=/^['"]/,v=/['"]$/,X=/^[a-z][a-zA-Z0-9]*:\s*$/m,ee=/resolution:\s*\{[^}]*integrity:\s*([^,}\s]+)/,ne=/^["']?((?:@[^/@"']+\/)?[^@"'\n]+)@[^"'\n]+["']?:?[\t\v\f\r \u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n((?:[\t ][^\n]*\n?)+)/gm,te=/^\s+version:?\s+"?([^"\n]+)"?/m,se=/^\s+integrity[\s:]+"?([^"\s]+)"?/m,x=l(n=>{if(n.length>H)return;const e=n.indexOf("-");if(e<=0)return;const t=G[n.slice(0,e).toLowerCase()];if(!t)return;const s=n.slice(e+1);if(Q.test(s))try{const i=Buffer.from(s,"base64");return i.length===0?void 0:{algorithm:t,hex:i.toString("hex")}}catch{return}},"decodeSriIntegrity"),w=l((n,e,t)=>{const s=`${t.name}@${t.version}`;e.has(s)||(e.add(s),n.push(t))},"pushUniqueEntry"),m=l((n,e,t)=>{t&&Object.keys(t).length>0&&(n[e]={...t})},"copyDepMap"),g=l(n=>{if(!n)return;const e={};for(const[t,s]of Object.entries(n))e[t]=[s];return Object.keys(e).length>0?e:void 0},"liftDepMap"),re=l(n=>{const e=[],t=new Set;let s;try{s=JSON.parse(n)}catch{return e}if(!s.packages)return e;for(const[i,r]of Object.entries(s.packages)){if(!i||!r.version)continue;const p=V.exec(i);if(!p?.[1])continue;const c=r.name??p[1];if(c.startsWith("."))continue;const o={name:c,version:r.version};if(r.integrity){const a=x(r.integrity);a&&(o.integrity=a)}m(o,"dependencies",g(r.dependencies)),m(o,"peerDependencies",g(r.peerDependencies)),m(o,"optionalDependencies",g(r.optionalDependencies)),w(e,t,o)}return e},"parseNpmLockFile"),_=l(n=>{let e=n.trim();e.startsWith("/")&&(e=e.slice(1)),e=e.replace(k,"").replace(v,"");const t=e.indexOf("(");t>0&&(e=e.slice(0,t));const s=e.lastIndexOf("@");if(s<=0)return;const i=e.slice(0,s),r=e.slice(s+1);if(!(!i||!r||r.startsWith("link:")||r.startsWith("workspace:")||r.startsWith("file:")))return{name:i,version:r}},"splitPnpmPackageKey"),W=l((n,e)=>{const t=new RegExp(String.raw`^${e}:\s*$`,"m").exec(n);if(!t)return;const s=t.index+t[0].length,i=X.exec(n.slice(s));return n.slice(s,i?s+i.index:n.length)},"sliceTopLevelSection"),oe=l(n=>{const e=new Map,t=W(n,"snapshots");if(!t)return e;const s=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let i;for(;(i=s.exec(t)??void 0)!==void 0;){const r=_(i[1]);if(!r)continue;const p=`${r.name}@${r.version}`,c=i[2],o=e.get(p)??{};for(const a of["dependencies","peerDependencies","optionalDependencies"]){const u=b(c,a);if(!u)continue;const d=o[a]??{};for(const[f,P]of Object.entries(u)){const D=d[f]??[];for(const $ of P)D.includes($)||D.push($);d[f]=D}o[a]=d}e.set(p,o)}return e},"parsePnpmSnapshotEdges"),ie=l(n=>{const e=[],t=new Set,s=W(n,"packages");if(!s)return e;const i=oe(n),r=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let p;for(;(p=r.exec(s)??void 0)!==void 0;){const c=_(p[1]);if(!c)continue;const o=p[2],a=ee.exec(o),u={name:c.name,version:c.version};if(a?.[1]){const f=x(a[1]);f&&(u.integrity=f)}const d=i.get(`${c.name}@${c.version}`);m(u,"dependencies",d?.dependencies??b(o,"dependencies")),m(u,"peerDependencies",d?.peerDependencies??b(o,"peerDependencies")),m(u,"optionalDependencies",d?.optionalDependencies??b(o,"optionalDependencies")),w(e,t,u)}return e},"parsePnpmLockFile"),b=l((n,e)=>{const t=new RegExp(String.raw`^ {4}${e}:\s*\n((?: {6,}[^\n]*\n?)+)`,"m").exec(n);if(!t?.[1])return;const s={},i=/^ {6}([^\s:]+):\s*([^\n]+)/gm;let r;for(;(r=i.exec(t[1])??void 0)!==void 0;){const p=r[1].replace(k,"").replace(v,"");let c=r[2].trim();c=c.replace(k,"").replace(v,"");const o=c.indexOf("(");if(o>0&&(c=c.slice(0,o).trim()),!p||!c)continue;const a=s[p]??[];a.includes(c)||a.push(c),s[p]=a}return Object.keys(s).length>0?s:void 0},"extractPnpmDependencyMap"),ce=l(n=>{const e=[],t=new Set,s=ne;s.lastIndex=0;let i;for(;(i=s.exec(n)??void 0)!==void 0;){const r=i[1].replace(k,"").replace(v,"");if(!r)continue;const p=i[2],c=te.exec(p);if(!c?.[1])continue;const o={name:r,version:c[1].trim()},a=se.exec(p);if(a?.[1]){const u=x(a[1]);u&&(o.integrity=u)}m(o,"dependencies",O(p,"dependencies")),m(o,"peerDependencies",O(p,"peerDependencies")),m(o,"optionalDependencies",O(p,"optionalDependencies")),w(e,t,o)}return e},"parseYarnLockFile"),O=l((n,e)=>{const t=new RegExp(String.raw`^ {2}${e}:\s*\n((?: {4,}[^\n]*\n?)+)`,"m").exec(n);if(!t?.[1])return;const s={},i=/^ {4}(['"]?[^\s:'"]+['"]?)\s*(?::\s*)?['"]([^'"\n]+)['"]/gm;let r;for(;(r=i.exec(t[1])??void 0)!==void 0;){const p=r[1].replace(k,"").replace(v,""),c=r[2];if(p&&c){const o=s[p]??[];o.includes(c)||o.push(c),s[p]=o}}return Object.keys(s).length>0?s:void 0},"extractYarnDependencyMap"),pe=/,(?=\s*[}\]])/g,ae=l(n=>{const e=[],t=new Set;let s;try{s=JSON.parse(n.replaceAll(pe,""))}catch{return e}if(!s.packages)return e;for(const i of Object.values(s.packages)){const r=i[0];if(typeof r!="string")continue;const p=r.indexOf("@",1);if(p<=0)continue;const c=r.slice(0,p),o=r.slice(p+1);if(!c||!o||o.startsWith("workspace:")||o.startsWith("link:")||o.startsWith("file:"))continue;const a={name:c,version:o},u=i[3];if(typeof u=="string"&&u.length>0){const f=x(u);f&&(a.integrity=f)}const d=i[2];if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;m(a,"dependencies",g(f.dependencies)),m(a,"peerDependencies",g(f.peerDependencies)),m(a,"optionalDependencies",g(f.optionalDependencies))}w(e,t,a)}return e},"parseBunLockFile"),E=l(n=>{if(n.endsWith("pnpm-lock.yaml"))return"pnpm";if(n.endsWith("package-lock.json"))return"npm";if(n.endsWith("yarn.lock"))return"yarn";if(n.endsWith("bun.lock"))return"bun"},"inferLockFileType"),L=l((n,e)=>{switch(e){case"bun":return ae(n);case"npm":return re(n);case"pnpm":return ie(n);case"yarn":return ce(n);default:return[]}},"parseLockFileContent"),M=["pnpm-lock.yaml","package-lock.json","yarn.lock","bun.lock"];l(async n=>{const e=await R(M,{type:"file",...n&&{cwd:n}});if(!e)throw new Error("Could not find a supported lock file (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lock)");const t=E(e);if(!t)throw new Error(`Unsupported lock file: ${e}`);const s=await Z(e,"utf8");return{entries:L(s,t),path:e,type:t}},"parseLockFile");l(n=>{const e=C(M,{type:"file",...n&&{cwd:n}});if(!e)throw new Error("Could not find a supported lock file (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lock)");const t=E(e);if(!t)throw new Error(`Unsupported lock file: ${e}`);return{entries:L(Y(e,"utf8"),t),path:e,type:t}},"parseLockFileSync");export{L as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=Object.defineProperty;var c=(a,n)=>l(a,"name",{value:n,configurable:!0});import{definePlugin as f}from"./definePlugin-CWm4Dv_t.js";var o;(function(a){a[a.UNSET=0]="UNSET",a[a.OK=1]="OK",a[a.ERROR=2]="ERROR"})(o||(o={}));var k=Object.defineProperty,u=c((a,n)=>k(a,"name",{value:n,configurable:!0}),"i");const p=u(a=>{const{renameSpan:n,tracer:d}=a;let r;const i=new Map;return f({hooks:{"run:after":u(e=>{if(!r)return;const t=[...e.values()].filter(s=>s.status==="failure").length;r.setAttribute("vis.run.tasks_total",e.size),r.setAttribute("vis.run.tasks_failed",t),t>0?r.setStatus({code:o.ERROR,message:`${String(t)} task(s) failed`}):r.setStatus({code:o.OK}),r.end(),r=void 0;for(const s of i.values())s.end();i.clear()},"run:after"),"run:before":u(e=>{r&&(r.setStatus({code:o.ERROR,message:"run:before fired while previous run was still active"}),r.end());for(const t of i.values())t.end();i.clear(),r=d.startSpan("vis.run",{attributes:{"vis.run.task_count":e.tasks.length,"vis.workspace_root":e.workspaceRoot}})},"run:before"),"task:after":u((e,t)=>{const s=i.get(e.id);s&&(s.setAttribute("vis.task.exit_code",t.code??0),s.setAttribute("vis.task.cache_status",t.status),s.end(),i.delete(e.id))},"task:after"),"task:before":u(e=>{const t=i.get(e.id);t&&(t.setStatus({code:o.ERROR,message:"retried — superseded by new attempt"}),t.end());const s=d.startSpan(n?n(e):e.id,{attributes:{"vis.task.id":e.id,"vis.task.project":e.target.project,"vis.task.target":e.target.target}});i.set(e.id,s)},"task:before"),"task:failure":u((e,t)=>{const s=i.get(e.id);s&&s.setStatus({code:o.ERROR,message:`Task failed with exit code ${String(t.code??-1)}`})},"task:failure")},name:"otel"})},"otelPlugin");export{p as otelPlugin};
|
package/dist/packem_shared/{readTomlSync-1fKo0R52-DAKNI1Me.js → readTomlSync-1fKo0R52-DtxWULlF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var X=Object.defineProperty;var s=(e,t)=>X(e,"name",{value:t,configurable:!0});import{$ as Y}from"
|
|
1
|
+
var X=Object.defineProperty;var s=(e,t)=>X(e,"name",{value:t,configurable:!0});import{$ as Y}from"../packem_chunks/config.js";var ee=Object.defineProperty,A=s((e,t)=>ee(e,"name",{value:t,configurable:!0}),"i");/*!
|
|
2
2
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
3
3
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4
4
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var j=Object.defineProperty;var u=(e,s)=>j(e,"name",{value:s,configurable:!0});import{createRequire as M}from"node:module";import{M as f}from"../packem_chunks/config.js";import{n as p}from"../packem_chunks/bin.js";const _=M(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=u(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[s,t]=m.versions.node.split(".").map(Number);if(s>22||s===22&&t>=3||s===20&&t>=16)return m.getBuiltinModule(e)}return _(e)},"__cjs_getBuiltinModule"),{readdir:l,stat:h,readFile:y}=g("node:fs/promises");var v=Object.defineProperty,c=u((e,s)=>v(e,"name",{value:s,configurable:!0}),"m");const w=c((e,s)=>e.tasks.find(t=>t.taskId===s),"findTaskInSummary"),d=c((e,s)=>{const t=e??{},n=s??{},i=[],r=[],o=[];for(const a of Object.keys(t))a in n?t[a]!==n[a]&&o.push(a):i.push(a);for(const a of Object.keys(n))a in t||r.push(a);return i.sort(),r.sort(),o.sort(),{added:i,changed:o,removed:r}},"diffHashBuckets"),B=c((e,s)=>({commandChanged:(e?.command??"")!==(s?.command??""),implicitDeps:d(e?.implicitDeps,s?.implicitDeps),nodes:d(e?.nodes,s?.nodes),runtime:d(e?.runtime,s?.runtime)}),"diffHashDetails"),D=c(async(e,s)=>{const t=f(p(e),`${s}.json`);try{const n=await y(t,"utf8");return JSON.parse(n)}catch{return}},"readRunSummaryById"),I=c(async(e,s)=>{const t=p(e);let n;try{n=await l(t)}catch{return}const i=[];for(const r of n){if(!r.endsWith(".json")||s!==void 0&&r===`${s}.json`)continue;const o=f(t,r);try{const a=await h(o);a.isFile()&&i.push({mtimeMs:a.mtimeMs,path:o})}catch{}}if(i.length!==0){i.sort((r,o)=>o.mtimeMs-r.mtimeMs);try{const r=await y(i[0].path,"utf8");return JSON.parse(r)}catch{return}}},"readPreviousRunSummary"),O=c(async e=>{const s=p(e);let t;try{t=await l(s)}catch{return[]}const n=[];for(const i of t){if(!i.endsWith(".json"))continue;const r=f(s,i);try{const o=await h(r);o.isFile()&&n.push({id:i.slice(0,-5),mtimeMs:o.mtimeMs,path:r})}catch{}}return n.sort((i,r)=>r.mtimeMs-i.mtimeMs),n},"listRunSummaries");export{I as a,B as d,w as f,O as l,D as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=Object.defineProperty;var f=(t,s)=>d(t,"name",{value:s,configurable:!0});import{M as m,a as h,$ as k,n as v}from"../packem_chunks/config.js";var $=Object.defineProperty,g=f((t,s)=>$(t,"name",{value:s,configurable:!0}),"p");const M=g(t=>{for(const s of[".nvmrc",".node-version"]){const i=m(t,s);if(h(i))try{return k(i).trim().replace(/^v/,"")}catch{}}},"readNodeVersionFile"),l=g((t,s)=>{const i=t.split(/[.\-+]/).map(r=>Number.parseInt(r,10)||0),c=s.split(/[.\-+]/).map(r=>Number.parseInt(r,10)||0),e=Math.max(i.length,c.length);for(let r=0;r<e;r++){const n=i[r]??0,a=c[r]??0;if(n!==a)return n-a}return 0},"compareVersions"),b=g((t,s)=>{const i=s.trim();if(i===""||i==="*")return!0;const c=i.split(/\s+/).filter(Boolean);for(const e of c)if(e.startsWith(">=")){if(l(t,e.slice(2).trim())<0)return!1}else if(e.startsWith("<=")){if(l(t,e.slice(2).trim())>0)return!1}else if(e.startsWith(">")){if(l(t,e.slice(1).trim())<=0)return!1}else if(e.startsWith("<")){if(l(t,e.slice(1).trim())>=0)return!1}else if(/^\d/.test(e)){const r=t.split("."),n=e.split(".");for(const[a,o]of n.entries())if(o!==r[a])return!1}return!0},"satisfiesRange"),x=g(t=>{const s=[],i=m(t,"package.json");let c;try{c=v(i)}catch{return s}const e=process.versions.node;if(c.engines?.node){const n=c.engines.node;b(e,n)||s.push({actual:e,expected:n,kind:"node",message:`package.json engines.node requires ${n}, but the current Node.js is ${e}.`,severity:"error"})}const r=M(t);if(r){const[n,a]=r.split("."),[o,p]=e.split(".");(n!==o||a!==void 0&&a!==p)&&s.push({actual:e,expected:r,kind:"node",message:`.nvmrc pins Node ${r} but the current Node.js is ${e}. Run \`nvm use\` or switch runtimes.`,severity:"warning"})}if(c.packageManager){const[n,a]=c.packageManager.split("@"),o=(process.env.npm_config_user_agent??"").split(" ")[0]??"",[p,u]=o.split("/");p&&n&&p!==n?s.push({actual:p,expected:n,kind:"packageManager",message:`package.json packageManager pins ${c.packageManager} but the current invocation is ${o}. Install the correct package manager.`,severity:"error"}):u&&a&&u!==a&&s.push({actual:u,expected:a,kind:"packageManager",message:`package.json packageManager pins ${n}@${a} but the current invocation uses ${n}@${u}.`,severity:"warning"})}return s},"checkRuntimeVersions");export{x as c};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var w=Object.defineProperty;var m=(e,t)=>w(e,"name",{value:t,configurable:!0});import{createRequire as v}from"node:module";import{z as b}from"
|
|
1
|
+
var w=Object.defineProperty;var m=(e,t)=>w(e,"name",{value:t,configurable:!0});import{createRequire as v}from"node:module";import{z as b}from"../packem_chunks/config.js";const k=v(import.meta.url),j=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=m(e=>{if(typeof j<"u"&&j.versions&&j.versions.node){const[t,r]=j.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return j.getBuiltinModule(e)}return k(e)},"__cjs_getBuiltinModule"),{createInterface:$}=_("node:readline");var T=Object.defineProperty,f=m((e,t)=>T(e,"name",{value:t,configurable:!0}),"g");const q=/^#([\w\-/]+):(.+)$/,x=/^([@\w\-/]+):(.+)$/,P=f(e=>{if(e==="")return;if(e.startsWith(":"))return{kind:"all",target:e.slice(1)};if(e.startsWith("~:"))return{kind:"closest",target:e.slice(2)};const t=q.exec(e);if(t?.[1]&&t[2])return{kind:"tag",tag:t[1],target:t[2]};const r=x.exec(e);return r?.[1]&&r[2]&&(r[1].startsWith("@")||r[1].includes("/")||r[1].includes("-"))?{kind:"project",projects:[r[1]],target:r[2]}:{kind:"all",target:e}},"parseTargetSelector"),N=f(async(e,t,r,a)=>{const s=P(e);if(!s)throw new Error(`Invalid target selector: "${e}"`);const c=Object.keys(t.projects);if(s.kind==="all")return{projects:c,target:s.target};if(s.kind==="project")return{projects:s.projects??[],target:s.target};if(s.kind==="tag"){const o=s.tag;return{projects:c.filter(i=>t.projects[i]?.tags?.includes(o)??!1),target:s.target}}const n=b(a,r)||".";let p,l=-1;for(const[o,i]of Object.entries(t.projects)){const u=i.root;u&&(n===u||n.startsWith(`${u}/`))&&u.length>l&&(l=u.length,p=o)}if(!p){if(process.stdout.isTTY){const o=$({input:process.stdin,output:process.stderr}),i=Object.keys(t.projects).sort();process.stderr.write(`No project found at ${n}. Pick one:
|
|
2
2
|
`);for(const[d,h]of i.entries())process.stderr.write(` ${String(d+1)}) ${h}
|
|
3
3
|
`);const u=await new Promise(d=>{o.question("> ",d)});o.close();const g=Number.parseInt(u,10)-1;if(g>=0&&g<i.length)return{projects:[i[g]],target:s.target}}throw new Error(`No project found at or above ${n} for selector "${e}".`)}return{projects:[p],target:s.target}},"resolveSelector"),E=/^(\w+)\s*(!?=)\s*(.+)$/,Q=f(e=>{const t=e.trim();if(t==="")return;const r=t.split("&&").map(o=>o.trim()),a=t.split("||").map(o=>o.trim()),s=r.length>1,c=a.length>1;if(s&&c)throw new Error("Query language does not support mixed && / || — split into multiple --query flags or simplify.");const n=c?a:r,p=c?"||":"&&",l=[];for(const o of n){const i=E.exec(o);if(!i)throw new Error(`Invalid query clause: "${o}". Expected <field>=<value> or <field>!=<value>.`);const[,u,g,d]=i;l.push({field:u,op:g==="!="?"!=":"=",value:d.trim().replaceAll(/^["']|["']$/g,"")})}return{clauses:l,op:p}},"parseQuery"),y=f((e,t,r)=>{const{field:a,op:s,value:c}=e,n=f(l=>{const o=l===c;return s==="="?o:!o},"test"),p=f(l=>{const o=(l??[]).includes(c);return s==="="?o:!o},"testList");switch(a){case"id":case"project":return n(t);case"language":return n(r.language);case"layer":return n(r.layer);case"projectType":case"type":return n(r.projectType);case"stack":return n(r.stack);case"tag":case"tags":return p(r.tags);default:return!1}},"matchClause"),O=f((e,t,r)=>{if(!r||r.trim()==="")return e;const a=Q(r);return a?e.filter(s=>{const c=t.projects[s];return c?a.op==="&&"?a.clauses.every(n=>y(n,s,c)):a.clauses.some(n=>y(n,s,c)):!1}):e},"filterProjectsByQuery");export{O as f,P as p,N as r};
|