@kelceyp/swic 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cli.js +125 -125
- package/dist/server/Server.js +2 -2
- package/package.json +2 -2
package/dist/cli/cli.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// @bun
|
|
3
|
-
import{createRequire as
|
|
3
|
+
import{createRequire as sw}from"node:module";var tw=Object.create;var{getPrototypeOf:cw,defineProperty:hf,getOwnPropertyNames:Lw}=Object;var ew=Object.prototype.hasOwnProperty;var W8=(_,q,$)=>{$=_!=null?tw(cw(_)):{};let f=q||!_||!_.__esModule?hf($,"default",{value:_,enumerable:!0}):$;for(let K of Lw(_))if(!ew.call(f,K))hf(f,K,{get:()=>_[K],enumerable:!0});return f};var X=(_,q)=>()=>(q||_((q={exports:{}}).exports,q),q.exports);var xw=(_,q)=>{for(var $ in q)hf(_,$,{get:q[$],enumerable:!0,configurable:!0,set:(f)=>q[$]=()=>f})};var d=(_,q)=>()=>(_&&(q=_(_=0)),q);var v8=sw(import.meta.url);var N8,L8,k8,t,V6,h8,n8,M6,N6;var S8=d(()=>{N8=class N8 extends Error{constructor(_){super(_);this.name=this.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}};L8=class L8 extends N8{exitCode=2;constructor(_){super(_)}};k8=class k8 extends N8{exitCode=2;constructor(_){super(_)}};t=class t extends N8{exitCode=2;constructor(_){super(_)}};V6=class V6 extends N8{exitCode=130;constructor(){super("Process interrupted by user")}};h8=class h8 extends N8{exitCode=1;constructor(_){super(_)}};n8=class n8 extends N8{exitCode=130;constructor(_="Prompt cancelled"){super(_)}};M6=class M6 extends N8{exitCode=1;constructor(_){super(_)}};N6=class N6 extends N8{exitCode=1;constructor(_){super(_)}}});function fO(){let _=new Map;for(let[q,$]of Object.entries(F)){for(let[f,K]of Object.entries($))F[f]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},$[f]=F[f],_.set(K[0],K[1]);Object.defineProperty(F,q,{value:$,enumerable:!1})}return Object.defineProperty(F,"codes",{value:_,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",F.color.ansi=FP(),F.color.ansi256=UP(),F.color.ansi16m=QP(),F.bgColor.ansi=FP(10),F.bgColor.ansi256=UP(10),F.bgColor.ansi16m=QP(10),Object.defineProperties(F,{rgbToAnsi256:{value(q,$,f){if(q===$&&$===f){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round($/255*5)+Math.round(f/255*5)},enumerable:!1},hexToRgb:{value(q){let $=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!$)return[0,0,0];let[f]=$;if(f.length===3)f=[...f].map((P)=>P+P).join("");let K=Number.parseInt(f,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>F.rgbToAnsi256(...F.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let $,f,K;if(q>=232)$=((q-232)*10+8)/255,f=$,K=$;else{q-=16;let j=q%36;$=Math.floor(q/36)/5,f=Math.floor(j/6)/5,K=j%6/5}let P=Math.max($,f,K)*2;if(P===0)return 30;let u=30+(Math.round(K)<<2|Math.round(f)<<1|Math.round($));if(P===2)u+=60;return u},enumerable:!1},rgbToAnsi:{value:(q,$,f)=>F.ansi256ToAnsi(F.rgbToAnsi256(q,$,f)),enumerable:!1},hexToAnsi:{value:(q)=>F.ansi256ToAnsi(F.hexToAnsi256(q)),enumerable:!1}}),F}var FP=(_=0)=>(q)=>`\x1B[${q+_}m`,UP=(_=0)=>(q)=>`\x1B[${38+_};5;${q}m`,QP=(_=0)=>(q,$,f)=>`\x1B[${38+_};2;${q};${$};${f}m`,F,Vb,qO,$O,Mb,KO,d8;var _2=d(()=>{F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Vb=Object.keys(F.modifier),qO=Object.keys(F.color),$O=Object.keys(F.bgColor),Mb=[...qO,...$O];KO=fO(),d8=KO});import mf from"node:process";import PO from"node:os";import q2 from"node:tty";function A8(_,q=globalThis.Deno?globalThis.Deno.args:mf.argv){let $=_.startsWith("-")?"":_.length===1?"-":"--",f=q.indexOf($+_),K=q.indexOf("--");return f!==-1&&(K===-1||f<K)}function uO(){if("FORCE_COLOR"in U){if(U.FORCE_COLOR==="true")return 1;if(U.FORCE_COLOR==="false")return 0;return U.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}}function jO(_){if(_===0)return!1;return{level:_,hasBasic:!0,has256:_>=2,has16m:_>=3}}function wO(_,{streamIsTTY:q,sniffFlags:$=!0}={}){let f=uO();if(f!==void 0)Rq=f;let K=$?Rq:f;if(K===0)return 0;if($){if(A8("color=16m")||A8("color=full")||A8("color=truecolor"))return 3;if(A8("color=256"))return 2}if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if(_&&!q&&K===void 0)return 0;let P=K||0;if(U.TERM==="dumb")return P;if(mf.platform==="win32"){let u=PO.release().split(".");if(Number(u[0])>=10&&Number(u[2])>=10586)return Number(u[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((u)=>(u in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((u)=>(u in U))||U.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let u=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return P}function $2(_,q={}){let $=wO(_,{streamIsTTY:_&&_.isTTY,...q});return jO($)}var U,Rq,OO,f2;var K2=d(()=>{({env:U}=mf);if(A8("no-color")||A8("no-colors")||A8("color=false")||A8("color=never"))Rq=0;else if(A8("color")||A8("colors")||A8("color=true")||A8("color=always"))Rq=1;OO={stdout:$2({isTTY:q2.isatty(1)}),stderr:$2({isTTY:q2.isatty(2)})},f2=OO});function P2(_,q,$){let f=_.indexOf(q);if(f===-1)return _;let K=q.length,P=0,u="";do u+=_.slice(P,f)+q+$,P=f+K,f=_.indexOf(q,P);while(f!==-1);return u+=_.slice(P),u}function u2(_,q,$,f){let K=0,P="";do{let u=_[f-1]==="\r";P+=_.slice(K,u?f-1:f)+q+(u?`\r
|
|
4
4
|
`:`
|
|
5
5
|
`)+$,K=f+1,f=_.indexOf(`
|
|
6
|
-
`,K)}while(f!==-1);return P+=_.slice(K),P}function S6(_){return
|
|
7
|
-
`);if(P!==-1)q=
|
|
8
|
-
`)}function
|
|
9
|
-
`)}function
|
|
10
|
-
`)}function
|
|
11
|
-
`)}function
|
|
12
|
-
`).map((q)=>q.trim()).filter((q)=>q.length>0)}function iq(_){return typeof _==="object"&&_!==null&&(("fromEnv"in _)||("fallback"in _))}function Nf(_){let q=process.env[_];if(q===void 0)return;return{value:q,raw:q}}async function G2(_){if(_===void 0)return;if(iq(_)){if(_.fromEnv){let q=Nf(_.fromEnv);if(q!==void 0)return{value:q.value}}if(_.fallback!==void 0)return{value:_.fallback};return}if(typeof _==="function"){let q=_();return{value:q instanceof Promise?await q:q}}return{value:_}}var D2=()=>{};var __=(_,q=[])=>_.name==="up"||q.includes("vim")&&_.name==="k"||q.includes("emacs")&&_.ctrl&&_.name==="p",G_=(_,q=[])=>_.name==="down"||q.includes("vim")&&_.name==="j"||q.includes("emacs")&&_.ctrl&&_.name==="n",nf=(_)=>_.name==="space",d6=(_)=>_.name==="backspace",E6=(_)=>_.name==="tab",R6=(_)=>"1234567890".includes(_.name),E8=(_)=>_.name==="enter"||_.name==="return";var Sf,df,gq,Ef,D_;var lq=d(()=>{Sf=class Sf extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(_){super();this.cause=_?.cause}};df=class df extends Error{name="CancelPromptError";message="Prompt was canceled"};gq=class gq extends Error{name="ExitPromptError"};Ef=class Ef extends Error{name="HookError"};D_=class D_ extends Error{name="ValidationError"}});import{AsyncLocalStorage as pO,AsyncResource as bO}from"node:async_hooks";function VO(_){return{rl:_,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function r2(_,q){let $=VO(_);return C2.run($,()=>{function f(K){$.handleChange=()=>{$.index=0,K()},$.handleChange()}return q(f)})}function C_(){let _=C2.getStore();if(!_)throw new Ef("[Inquirer] Hook functions can only be called from within a prompt");return _}function Rf(){return C_().rl}function If(_){let q=(...$)=>{let f=C_(),K=!1,P=f.handleChange;f.handleChange=()=>{K=!0};let u=_(...$);if(K)P();return f.handleChange=P,u};return bO.bind(q)}function L_(_){let q=C_(),{index:$}=q,f={get(){return q.hooks[$]},set(P){q.hooks[$]=P},initialized:$ in q.hooks},K=_(f);return q.index++,K}function p2(){C_().handleChange()}var C2,r_;var p_=d(()=>{lq();C2=new pO;r_={queue(_){let q=C_(),{index:$}=q;q.hooksEffect.push(()=>{q.hooksCleanup[$]?.();let f=_(Rf());if(f!=null&&typeof f!=="function")throw new D_("useEffect return value must be a cleanup function or nothing.");q.hooksCleanup[$]=f})},run(){let _=C_();If(()=>{_.hooksEffect.forEach((q)=>{q()}),_.hooksEffect.length=0})()},clearAll(){let _=C_();_.hooksCleanup.forEach((q)=>{q?.()}),_.hooksEffect.length=0,_.hooksCleanup.length=0}}});import{AsyncResource as MO}from"node:async_hooks";function e(_){return L_((q)=>{let $=MO.bind(function K(P){if(q.get()!==P)q.set(P),p2()});if(q.initialized)return[q.get(),$];let f=typeof _==="function"?_():_;return q.set(f),[f,$]})}var yq=d(()=>{p_()});function q_(_,q){L_(($)=>{let f=$.get();if(!Array.isArray(f)||q.some((P,u)=>!Object.is(P,f[u])))r_.queue(_);$.set(q)})}var tq=d(()=>{p_()});var I6=X((YV,b2)=>{var NO=v8("node:tty"),nO=NO?.WriteStream?.prototype?.hasColors?.()??!1,i=(_,q)=>{if(!nO)return(K)=>K;let $=`\x1B[${_}m`,f=`\x1B[${q}m`;return(K)=>{let P=K+"",u=P.indexOf(f);if(u===-1)return $+P+f;let j=$,w=0,v=(q===22?f:"")+$;while(u!==-1)j+=P.slice(w,u)+v,w=u+f.length,u=P.indexOf(f,w);return j+=P.slice(w)+f,j}},o={};o.reset=i(0,0);o.bold=i(1,22);o.dim=i(2,22);o.italic=i(3,23);o.underline=i(4,24);o.overline=i(53,55);o.inverse=i(7,27);o.hidden=i(8,28);o.strikethrough=i(9,29);o.black=i(30,39);o.red=i(31,39);o.green=i(32,39);o.yellow=i(33,39);o.blue=i(34,39);o.magenta=i(35,39);o.cyan=i(36,39);o.white=i(37,39);o.gray=i(90,39);o.bgBlack=i(40,49);o.bgRed=i(41,49);o.bgGreen=i(42,49);o.bgYellow=i(43,49);o.bgBlue=i(44,49);o.bgMagenta=i(45,49);o.bgCyan=i(46,49);o.bgWhite=i(47,49);o.bgGray=i(100,49);o.redBright=i(91,39);o.greenBright=i(92,39);o.yellowBright=i(93,39);o.blueBright=i(94,39);o.magentaBright=i(95,39);o.cyanBright=i(96,39);o.whiteBright=i(97,39);o.bgRedBright=i(101,49);o.bgGreenBright=i(102,49);o.bgYellowBright=i(103,49);o.bgBlueBright=i(104,49);o.bgMagentaBright=i(105,49);o.bgCyanBright=i(106,49);o.bgWhiteBright=i(107,49);b2.exports=o});import e8 from"node:process";function SO(){if(e8.platform!=="win32")return e8.env.TERM!=="linux";return Boolean(e8.env.WT_SESSION)||Boolean(e8.env.TERMINUS_SUBLIME)||e8.env.ConEmuTask==="{cmd::Cmder}"||e8.env.TERM_PROGRAM==="Terminus-Sublime"||e8.env.TERM_PROGRAM==="vscode"||e8.env.TERM==="xterm-256color"||e8.env.TERM==="alacritty"||e8.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var V2,M2,dO,EO,RO,IO,aO,x8,vV;var a6=d(()=>{V2={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},M2={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},dO={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},EO={...V2,...M2},RO={...V2,...dO},IO=SO(),aO=IO?EO:RO,x8=aO,vV=Object.entries(M2)});var X8,N2;var n2=d(()=>{X8=W8(I6(),1);a6();N2={prefix:{idle:X8.default.blue("?"),done:X8.default.green(x8.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map((_)=>X8.default.yellow(_))},style:{answer:X8.default.cyan,message:X8.default.bold,error:(_)=>X8.default.red(`> ${_}`),defaultAnswer:(_)=>X8.default.dim(`(${_})`),help:X8.default.dim,highlight:X8.default.cyan,key:(_)=>X8.default.cyan(X8.default.bold(`<${_}>`))}}});function S2(_){if(typeof _!=="object"||_===null)return!1;let q=_;while(Object.getPrototypeOf(q)!==null)q=Object.getPrototypeOf(q);return Object.getPrototypeOf(_)===q}function d2(..._){let q={};for(let $ of _)for(let[f,K]of Object.entries($)){let P=q[f];q[f]=S2(P)&&S2(K)?d2(P,K):K}return q}function J8(..._){let q=[N2,..._.filter(($)=>$!=null)];return d2(...q)}var af=d(()=>{n2()});function R8({status:_="idle",theme:q}){let[$,f]=e(!1),[K,P]=e(0),{prefix:u,spinner:j}=J8(q);if(q_(()=>{if(_==="loading"){let O,v=-1,Y=setTimeout(()=>{f(!0),O=setInterval(()=>{v=v+1,P(v%j.frames.length)},j.interval)},300);return()=>{clearTimeout(Y),clearInterval(O)}}else f(!1)},[_]),$)return j.frames[K];return typeof u==="string"?u:u[_==="loading"?"idle":_]??u.idle}var E2=d(()=>{yq();tq();af()});function b_(_,q){return L_(($)=>{let f=$.get();if(!f||f.dependencies.length!==q.length||f.dependencies.some((K,P)=>K!==q[P])){let K=_();return $.set({value:K,dependencies:q}),K}return f.value})}var R2=d(()=>{p_()});function V_(_){return e({current:_})[0]}var cq=d(()=>{yq()});function I8(_){let q=V_(_);q.current=_,q_(($)=>{let f=!1,K=If((P,u)=>{if(f)return;q.current(u,$)});return $.input.on("keypress",K),()=>{f=!0,$.input.removeListener("keypress",K)}},[])}var I2=d(()=>{cq();tq();p_()});var o2=X((MV,a2)=>{a2.exports=iO;function oO(_){let q={defaultWidth:0,output:process.stdout,tty:v8("tty")};if(!_)return q;return Object.keys(q).forEach(function($){if(!_[$])_[$]=q[$]}),_}function iO(_){let q=oO(_);if(q.output.getWindowSize)return q.output.getWindowSize()[0]||q.defaultWidth;if(q.tty.getWindowSize)return q.tty.getWindowSize()[1]||q.defaultWidth;if(q.output.columns)return q.output.columns;if(process.env.CLI_WIDTH){let $=parseInt(process.env.CLI_WIDTH,10);if(!isNaN($)&&$!==0)return $}return q.defaultWidth}});var g2=X((NV,i2)=>{i2.exports=({onlyFirst:_=!1}={})=>{let q=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(q,_?void 0:"g")}});var of=X((nV,l2)=>{var gO=g2();l2.exports=(_)=>typeof _==="string"?_.replace(gO(),""):_});var t2=X((SV,gf)=>{var y2=(_)=>{if(Number.isNaN(_))return!1;if(_>=4352&&(_<=4447||_===9001||_===9002||11904<=_&&_<=12871&&_!==12351||12880<=_&&_<=19903||19968<=_&&_<=42182||43360<=_&&_<=43388||44032<=_&&_<=55203||63744<=_&&_<=64255||65040<=_&&_<=65049||65072<=_&&_<=65131||65281<=_&&_<=65376||65504<=_&&_<=65510||110592<=_&&_<=110593||127488<=_&&_<=127569||131072<=_&&_<=262141))return!0;return!1};gf.exports=y2;gf.exports.default=y2});var L2=X((dV,c2)=>{c2.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var x2=X((EV,lf)=>{var lO=of(),yO=t2(),tO=L2(),e2=(_)=>{if(typeof _!=="string"||_.length===0)return 0;if(_=lO(_),_.length===0)return 0;_=_.replace(tO()," ");let q=0;for(let $=0;$<_.length;$++){let f=_.codePointAt($);if(f<=31||f>=127&&f<=159)continue;if(f>=768&&f<=879)continue;if(f>65535)$++;q+=yO(f)?2:1}return q};lf.exports=e2;lf.exports.default=e2});var B2=X((RV,s2)=>{s2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var yf=X((IV,U2)=>{var o6=B2(),F2={};for(let _ of Object.keys(o6))F2[o6[_]]=_;var R={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};U2.exports=R;for(let _ of Object.keys(R)){if(!("channels"in R[_]))throw new Error("missing channels property: "+_);if(!("labels"in R[_]))throw new Error("missing channel labels property: "+_);if(R[_].labels.length!==R[_].channels)throw new Error("channel and label counts mismatch: "+_);let{channels:q,labels:$}=R[_];delete R[_].channels,delete R[_].labels,Object.defineProperty(R[_],"channels",{value:q}),Object.defineProperty(R[_],"labels",{value:$})}R.rgb.hsl=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255,K=Math.min(q,$,f),P=Math.max(q,$,f),u=P-K,j,w;if(P===K)j=0;else if(q===P)j=($-f)/u;else if($===P)j=2+(f-q)/u;else if(f===P)j=4+(q-$)/u;if(j=Math.min(j*60,360),j<0)j+=360;let O=(K+P)/2;if(P===K)w=0;else if(O<=0.5)w=u/(P+K);else w=u/(2-P-K);return[j,w*100,O*100]};R.rgb.hsv=function(_){let q,$,f,K,P,u=_[0]/255,j=_[1]/255,w=_[2]/255,O=Math.max(u,j,w),v=O-Math.min(u,j,w),Y=function(T){return(O-T)/6/v+0.5};if(v===0)K=0,P=0;else{if(P=v/O,q=Y(u),$=Y(j),f=Y(w),u===O)K=f-$;else if(j===O)K=0.3333333333333333+q-f;else if(w===O)K=0.6666666666666666+$-q;if(K<0)K+=1;else if(K>1)K-=1}return[K*360,P*100,O*100]};R.rgb.hwb=function(_){let q=_[0],$=_[1],f=_[2],K=R.rgb.hsl(_)[0],P=0.00392156862745098*Math.min(q,Math.min($,f));return f=1-0.00392156862745098*Math.max(q,Math.max($,f)),[K,P*100,f*100]};R.rgb.cmyk=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255,K=Math.min(1-q,1-$,1-f),P=(1-q-K)/(1-K)||0,u=(1-$-K)/(1-K)||0,j=(1-f-K)/(1-K)||0;return[P*100,u*100,j*100,K*100]};function cO(_,q){return(_[0]-q[0])**2+(_[1]-q[1])**2+(_[2]-q[2])**2}R.rgb.keyword=function(_){let q=F2[_];if(q)return q;let $=1/0,f;for(let K of Object.keys(o6)){let P=o6[K],u=cO(_,P);if(u<$)$=u,f=K}return f};R.keyword.rgb=function(_){return o6[_]};R.rgb.xyz=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255;q=q>0.04045?((q+0.055)/1.055)**2.4:q/12.92,$=$>0.04045?(($+0.055)/1.055)**2.4:$/12.92,f=f>0.04045?((f+0.055)/1.055)**2.4:f/12.92;let K=q*0.4124+$*0.3576+f*0.1805,P=q*0.2126+$*0.7152+f*0.0722,u=q*0.0193+$*0.1192+f*0.9505;return[K*100,P*100,u*100]};R.rgb.lab=function(_){let q=R.rgb.xyz(_),$=q[0],f=q[1],K=q[2];$/=95.047,f/=100,K/=108.883,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,f=f>0.008856?f**0.3333333333333333:7.787*f+0.13793103448275862,K=K>0.008856?K**0.3333333333333333:7.787*K+0.13793103448275862;let P=116*f-16,u=500*($-f),j=200*(f-K);return[P,u,j]};R.hsl.rgb=function(_){let q=_[0]/360,$=_[1]/100,f=_[2]/100,K,P,u;if($===0)return u=f*255,[u,u,u];if(f<0.5)K=f*(1+$);else K=f+$-f*$;let j=2*f-K,w=[0,0,0];for(let O=0;O<3;O++){if(P=q+0.3333333333333333*-(O-1),P<0)P++;if(P>1)P--;if(6*P<1)u=j+(K-j)*6*P;else if(2*P<1)u=K;else if(3*P<2)u=j+(K-j)*(0.6666666666666666-P)*6;else u=j;w[O]=u*255}return w};R.hsl.hsv=function(_){let q=_[0],$=_[1]/100,f=_[2]/100,K=$,P=Math.max(f,0.01);f*=2,$*=f<=1?f:2-f,K*=P<=1?P:2-P;let u=(f+$)/2,j=f===0?2*K/(P+K):2*$/(f+$);return[q,j*100,u*100]};R.hsv.rgb=function(_){let q=_[0]/60,$=_[1]/100,f=_[2]/100,K=Math.floor(q)%6,P=q-Math.floor(q),u=255*f*(1-$),j=255*f*(1-$*P),w=255*f*(1-$*(1-P));switch(f*=255,K){case 0:return[f,w,u];case 1:return[j,f,u];case 2:return[u,f,w];case 3:return[u,j,f];case 4:return[w,u,f];case 5:return[f,u,j]}};R.hsv.hsl=function(_){let q=_[0],$=_[1]/100,f=_[2]/100,K=Math.max(f,0.01),P,u;u=(2-$)*f;let j=(2-$)*K;return P=$*K,P/=j<=1?j:2-j,P=P||0,u/=2,[q,P*100,u*100]};R.hwb.rgb=function(_){let q=_[0]/360,$=_[1]/100,f=_[2]/100,K=$+f,P;if(K>1)$/=K,f/=K;let u=Math.floor(6*q),j=1-f;if(P=6*q-u,(u&1)!==0)P=1-P;let w=$+P*(j-$),O,v,Y;switch(u){default:case 6:case 0:O=j,v=w,Y=$;break;case 1:O=w,v=j,Y=$;break;case 2:O=$,v=j,Y=w;break;case 3:O=$,v=w,Y=j;break;case 4:O=w,v=$,Y=j;break;case 5:O=j,v=$,Y=w;break}return[O*255,v*255,Y*255]};R.cmyk.rgb=function(_){let q=_[0]/100,$=_[1]/100,f=_[2]/100,K=_[3]/100,P=1-Math.min(1,q*(1-K)+K),u=1-Math.min(1,$*(1-K)+K),j=1-Math.min(1,f*(1-K)+K);return[P*255,u*255,j*255]};R.xyz.rgb=function(_){let q=_[0]/100,$=_[1]/100,f=_[2]/100,K,P,u;return K=q*3.2406+$*-1.5372+f*-0.4986,P=q*-0.9689+$*1.8758+f*0.0415,u=q*0.0557+$*-0.204+f*1.057,K=K>0.0031308?1.055*K**0.4166666666666667-0.055:K*12.92,P=P>0.0031308?1.055*P**0.4166666666666667-0.055:P*12.92,u=u>0.0031308?1.055*u**0.4166666666666667-0.055:u*12.92,K=Math.min(Math.max(0,K),1),P=Math.min(Math.max(0,P),1),u=Math.min(Math.max(0,u),1),[K*255,P*255,u*255]};R.xyz.lab=function(_){let q=_[0],$=_[1],f=_[2];q/=95.047,$/=100,f/=108.883,q=q>0.008856?q**0.3333333333333333:7.787*q+0.13793103448275862,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,f=f>0.008856?f**0.3333333333333333:7.787*f+0.13793103448275862;let K=116*$-16,P=500*(q-$),u=200*($-f);return[K,P,u]};R.lab.xyz=function(_){let q=_[0],$=_[1],f=_[2],K,P,u;P=(q+16)/116,K=$/500+P,u=P-f/200;let j=P**3,w=K**3,O=u**3;return P=j>0.008856?j:(P-0.13793103448275862)/7.787,K=w>0.008856?w:(K-0.13793103448275862)/7.787,u=O>0.008856?O:(u-0.13793103448275862)/7.787,K*=95.047,P*=100,u*=108.883,[K,P,u]};R.lab.lch=function(_){let q=_[0],$=_[1],f=_[2],K;if(K=Math.atan2(f,$)*360/2/Math.PI,K<0)K+=360;let u=Math.sqrt($*$+f*f);return[q,u,K]};R.lch.lab=function(_){let q=_[0],$=_[1],K=_[2]/360*2*Math.PI,P=$*Math.cos(K),u=$*Math.sin(K);return[q,P,u]};R.rgb.ansi16=function(_,q=null){let[$,f,K]=_,P=q===null?R.rgb.hsv(_)[2]:q;if(P=Math.round(P/50),P===0)return 30;let u=30+(Math.round(K/255)<<2|Math.round(f/255)<<1|Math.round($/255));if(P===2)u+=60;return u};R.hsv.ansi16=function(_){return R.rgb.ansi16(R.hsv.rgb(_),_[2])};R.rgb.ansi256=function(_){let q=_[0],$=_[1],f=_[2];if(q===$&&$===f){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round($/255*5)+Math.round(f/255*5)};R.ansi16.rgb=function(_){let q=_%10;if(q===0||q===7){if(_>50)q+=3.5;return q=q/10.5*255,[q,q,q]}let $=(~~(_>50)+1)*0.5,f=(q&1)*$*255,K=(q>>1&1)*$*255,P=(q>>2&1)*$*255;return[f,K,P]};R.ansi256.rgb=function(_){if(_>=232){let P=(_-232)*10+8;return[P,P,P]}_-=16;let q,$=Math.floor(_/36)/5*255,f=Math.floor((q=_%36)/6)/5*255,K=q%6/5*255;return[$,f,K]};R.rgb.hex=function(_){let $=(((Math.round(_[0])&255)<<16)+((Math.round(_[1])&255)<<8)+(Math.round(_[2])&255)).toString(16).toUpperCase();return"000000".substring($.length)+$};R.hex.rgb=function(_){let q=_.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!q)return[0,0,0];let $=q[0];if(q[0].length===3)$=$.split("").map((j)=>{return j+j}).join("");let f=parseInt($,16),K=f>>16&255,P=f>>8&255,u=f&255;return[K,P,u]};R.rgb.hcg=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255,K=Math.max(Math.max(q,$),f),P=Math.min(Math.min(q,$),f),u=K-P,j,w;if(u<1)j=P/(1-u);else j=0;if(u<=0)w=0;else if(K===q)w=($-f)/u%6;else if(K===$)w=2+(f-q)/u;else w=4+(q-$)/u;return w/=6,w%=1,[w*360,u*100,j*100]};R.hsl.hcg=function(_){let q=_[1]/100,$=_[2]/100,f=$<0.5?2*q*$:2*q*(1-$),K=0;if(f<1)K=($-0.5*f)/(1-f);return[_[0],f*100,K*100]};R.hsv.hcg=function(_){let q=_[1]/100,$=_[2]/100,f=q*$,K=0;if(f<1)K=($-f)/(1-f);return[_[0],f*100,K*100]};R.hcg.rgb=function(_){let q=_[0]/360,$=_[1]/100,f=_[2]/100;if($===0)return[f*255,f*255,f*255];let K=[0,0,0],P=q%1*6,u=P%1,j=1-u,w=0;switch(Math.floor(P)){case 0:K[0]=1,K[1]=u,K[2]=0;break;case 1:K[0]=j,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=u;break;case 3:K[0]=0,K[1]=j,K[2]=1;break;case 4:K[0]=u,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=j}return w=(1-$)*f,[($*K[0]+w)*255,($*K[1]+w)*255,($*K[2]+w)*255]};R.hcg.hsv=function(_){let q=_[1]/100,$=_[2]/100,f=q+$*(1-q),K=0;if(f>0)K=q/f;return[_[0],K*100,f*100]};R.hcg.hsl=function(_){let q=_[1]/100,f=_[2]/100*(1-q)+0.5*q,K=0;if(f>0&&f<0.5)K=q/(2*f);else if(f>=0.5&&f<1)K=q/(2*(1-f));return[_[0],K*100,f*100]};R.hcg.hwb=function(_){let q=_[1]/100,$=_[2]/100,f=q+$*(1-q);return[_[0],(f-q)*100,(1-f)*100]};R.hwb.hcg=function(_){let q=_[1]/100,f=1-_[2]/100,K=f-q,P=0;if(K<1)P=(f-K)/(1-K);return[_[0],K*100,P*100]};R.apple.rgb=function(_){return[_[0]/65535*255,_[1]/65535*255,_[2]/65535*255]};R.rgb.apple=function(_){return[_[0]/255*65535,_[1]/255*65535,_[2]/255*65535]};R.gray.rgb=function(_){return[_[0]/100*255,_[0]/100*255,_[0]/100*255]};R.gray.hsl=function(_){return[0,0,_[0]]};R.gray.hsv=R.gray.hsl;R.gray.hwb=function(_){return[0,100,_[0]]};R.gray.cmyk=function(_){return[0,0,0,_[0]]};R.gray.lab=function(_){return[_[0],0,0]};R.gray.hex=function(_){let q=Math.round(_[0]/100*255)&255,f=((q<<16)+(q<<8)+q).toString(16).toUpperCase();return"000000".substring(f.length)+f};R.rgb.gray=function(_){return[(_[0]+_[1]+_[2])/3/255*100]}});var _4=X((aV,Q2)=>{var Lq=yf();function LO(){let _={},q=Object.keys(Lq);for(let $=q.length,f=0;f<$;f++)_[q[f]]={distance:-1,parent:null};return _}function eO(_){let q=LO(),$=[_];q[_].distance=0;while($.length){let f=$.pop(),K=Object.keys(Lq[f]);for(let P=K.length,u=0;u<P;u++){let j=K[u],w=q[j];if(w.distance===-1)w.distance=q[f].distance+1,w.parent=f,$.unshift(j)}}return q}function xO(_,q){return function($){return q(_($))}}function sO(_,q){let $=[q[_].parent,_],f=Lq[q[_].parent][_],K=q[_].parent;while(q[K].parent)$.unshift(q[K].parent),f=xO(Lq[q[K].parent][K],f),K=q[K].parent;return f.conversion=$,f}Q2.exports=function(_){let q=eO(_),$={},f=Object.keys(q);for(let K=f.length,P=0;P<K;P++){let u=f[P];if(q[u].parent===null)continue;$[u]=sO(u,q)}return $}});var $4=X((oV,q4)=>{var tf=yf(),BO=_4(),e_={},FO=Object.keys(tf);function UO(_){let q=function(...$){let f=$[0];if(f===void 0||f===null)return f;if(f.length>1)$=f;return _($)};if("conversion"in _)q.conversion=_.conversion;return q}function QO(_){let q=function(...$){let f=$[0];if(f===void 0||f===null)return f;if(f.length>1)$=f;let K=_($);if(typeof K==="object")for(let P=K.length,u=0;u<P;u++)K[u]=Math.round(K[u]);return K};if("conversion"in _)q.conversion=_.conversion;return q}FO.forEach((_)=>{e_[_]={},Object.defineProperty(e_[_],"channels",{value:tf[_].channels}),Object.defineProperty(e_[_],"labels",{value:tf[_].labels});let q=BO(_);Object.keys(q).forEach((f)=>{let K=q[f];e_[_][f]=QO(K),e_[_][f].raw=UO(K)})});q4.exports=e_});var Lf=X((iV,j4)=>{var f4=(_,q)=>(...$)=>{return`\x1B[${_(...$)+q}m`},K4=(_,q)=>(...$)=>{let f=_(...$);return`\x1B[${38+q};5;${f}m`},P4=(_,q)=>(...$)=>{let f=_(...$);return`\x1B[${38+q};2;${f[0]};${f[1]};${f[2]}m`},eq=(_)=>_,u4=(_,q,$)=>[_,q,$],x_=(_,q,$)=>{Object.defineProperty(_,q,{get:()=>{let f=$();return Object.defineProperty(_,q,{value:f,enumerable:!0,configurable:!0}),f},enumerable:!0,configurable:!0})},cf,s_=(_,q,$,f)=>{if(cf===void 0)cf=$4();let K=f?10:0,P={};for(let[u,j]of Object.entries(cf)){let w=u==="ansi16"?"ansi":u;if(u===q)P[w]=_($,K);else if(typeof j==="object")P[w]=_(j[q],K)}return P};function _Y(){let _=new Map,q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};q.color.gray=q.color.blackBright,q.bgColor.bgGray=q.bgColor.bgBlackBright,q.color.grey=q.color.blackBright,q.bgColor.bgGrey=q.bgColor.bgBlackBright;for(let[$,f]of Object.entries(q)){for(let[K,P]of Object.entries(f))q[K]={open:`\x1B[${P[0]}m`,close:`\x1B[${P[1]}m`},f[K]=q[K],_.set(P[0],P[1]);Object.defineProperty(q,$,{value:f,enumerable:!1})}return Object.defineProperty(q,"codes",{value:_,enumerable:!1}),q.color.close="\x1B[39m",q.bgColor.close="\x1B[49m",x_(q.color,"ansi",()=>s_(f4,"ansi16",eq,!1)),x_(q.color,"ansi256",()=>s_(K4,"ansi256",eq,!1)),x_(q.color,"ansi16m",()=>s_(P4,"rgb",u4,!1)),x_(q.bgColor,"ansi",()=>s_(f4,"ansi16",eq,!0)),x_(q.bgColor,"ansi256",()=>s_(K4,"ansi256",eq,!0)),x_(q.bgColor,"ansi16m",()=>s_(P4,"rgb",u4,!0)),q}Object.defineProperty(j4,"exports",{enumerable:!0,get:_Y})});var Y4=X((gV,O4)=>{var i6=x2(),qY=of(),$Y=Lf(),xf=new Set(["\x1B",""]),w4=(_)=>`${xf.values().next().value}[${_}m`,fY=(_)=>_.split(" ").map((q)=>i6(q)),ef=(_,q,$)=>{let f=[...q],K=!1,P=i6(qY(_[_.length-1]));for(let[u,j]of f.entries()){let w=i6(j);if(P+w<=$)_[_.length-1]+=j;else _.push(j),P=0;if(xf.has(j))K=!0;else if(K&&j==="m"){K=!1;continue}if(K)continue;if(P+=w,P===$&&u<f.length-1)_.push(""),P=0}if(!P&&_[_.length-1].length>0&&_.length>1)_[_.length-2]+=_.pop()},KY=(_)=>{let q=_.split(" "),$=q.length;while($>0){if(i6(q[$-1])>0)break;$--}if($===q.length)return _;return q.slice(0,$).join(" ")+q.slice($).join("")},PY=(_,q,$={})=>{if($.trim!==!1&&_.trim()==="")return"";let f="",K="",P,u=fY(_),j=[""];for(let[w,O]of _.split(" ").entries()){if($.trim!==!1)j[j.length-1]=j[j.length-1].trimLeft();let v=i6(j[j.length-1]);if(w!==0){if(v>=q&&($.wordWrap===!1||$.trim===!1))j.push(""),v=0;if(v>0||$.trim===!1)j[j.length-1]+=" ",v++}if($.hard&&u[w]>q){let Y=q-v,T=1+Math.floor((u[w]-Y-1)/q);if(Math.floor((u[w]-1)/q)<T)j.push("");ef(j,O,q);continue}if(v+u[w]>q&&v>0&&u[w]>0){if($.wordWrap===!1&&v<q){ef(j,O,q);continue}j.push("")}if(v+u[w]>q&&$.wordWrap===!1){ef(j,O,q);continue}j[j.length-1]+=O}if($.trim!==!1)j=j.map(KY);f=j.join(`
|
|
13
|
-
`);for(let[w,O]of[...f].entries()){if(K+=O,
|
|
14
|
-
`)K+=
|
|
15
|
-
`)K+=
|
|
6
|
+
`,K)}while(f!==-1);return P+=_.slice(K),P}function S6(_){return TO(_)}var j2,w2,Gf,t_,n6,O2,c_,YO=(_,q={})=>{if(q.level&&!(Number.isInteger(q.level)&&q.level>=0&&q.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let $=j2?j2.level:0;_.level=q.level===void 0?$:q.level},TO=(_)=>{let q=(...$)=>$.join(" ");return YO(q,_),Object.setPrototypeOf(q,S6.prototype),q},Df=(_,q,$,...f)=>{if(_==="rgb"){if(q==="ansi16m")return d8[$].ansi16m(...f);if(q==="ansi256")return d8[$].ansi256(d8.rgbToAnsi256(...f));return d8[$].ansi(d8.rgbToAnsi(...f))}if(_==="hex")return Df("rgb",q,$,...d8.hexToRgb(...f));return d8[$][_](...f)},vO,zO,Cf=(_,q,$)=>{let f,K;if($===void 0)f=_,K=q;else f=$.openAll+_,K=q+$.closeAll;return{open:_,close:q,openAll:f,closeAll:K,parent:$}},Iq=(_,q,$)=>{let f=(...K)=>HO(f,K.length===1?""+K[0]:K.join(" "));return Object.setPrototypeOf(f,zO),f[Gf]=_,f[t_]=q,f[n6]=$,f},HO=(_,q)=>{if(_.level<=0||!q)return _[n6]?"":q;let $=_[t_];if($===void 0)return q;let{openAll:f,closeAll:K}=$;if(q.includes("\x1B"))while($!==void 0)q=P2(q,$.close,$.open),$=$.parent;let P=q.indexOf(`
|
|
7
|
+
`);if(P!==-1)q=u2(q,K,f,P);return f+q+K},WO,ib,rf;var Y2=d(()=>{_2();K2();({stdout:j2,stderr:w2}=f2),Gf=Symbol("GENERATOR"),t_=Symbol("STYLER"),n6=Symbol("IS_EMPTY"),O2=["ansi","ansi","ansi256","ansi16m"],c_=Object.create(null);Object.setPrototypeOf(S6.prototype,Function.prototype);for(let[_,q]of Object.entries(d8))c_[_]={get(){let $=Iq(this,Cf(q.open,q.close,this[t_]),this[n6]);return Object.defineProperty(this,_,{value:$}),$}};c_.visible={get(){let _=Iq(this,this[t_],!0);return Object.defineProperty(this,"visible",{value:_}),_}};vO=["rgb","hex","ansi256"];for(let _ of vO){c_[_]={get(){let{level:$}=this;return function(...f){let K=Cf(Df(_,O2[$],"color",...f),d8.color.close,this[t_]);return Iq(this,K,this[n6])}}};let q="bg"+_[0].toUpperCase()+_.slice(1);c_[q]={get(){let{level:$}=this;return function(...f){let K=Cf(Df(_,O2[$],"bgColor",...f),d8.bgColor.close,this[t_]);return Iq(this,K,this[n6])}}}}zO=Object.defineProperties(()=>{},{...c_,level:{enumerable:!0,get(){return this[Gf].level},set(_){this[Gf].level=_}}});Object.defineProperties(S6.prototype,c_);WO=S6(),ib=S6({level:w2?w2.level:0}),rf=WO});function kO(){if(process.env.NO_COLOR!==void 0&&process.env.NO_COLOR!=="")return!1;if(process.env.FORCE_COLOR!==void 0&&process.env.FORCE_COLOR!=="0")return!0;return(rf.level??0)>0}function Q8(_){let q={primary:_?.primary??aq.primary,accent:_?.accent??aq.accent,warn:_?.warn??aq.warn,error:_?.error??aq.error},$=kO(),f=rf;return{primary(K){return $?f.hex(q.primary)(K):K},accent(K){return $?f.hex(q.accent)(K):K},warn(K){return $?f.hex(q.warn)(K):K},error(K){return $?f.hex(q.error)(K):K},enabled:$}}var aq;var oq=d(()=>{Y2();aq={primary:"#00D9FF",accent:"#A855F7",warn:"#FBBF24",error:"#EF4444"}});function T2(_,q={}){let $=q.colors||Q8(_.colorScheme),f=[];if(_.name&&_.version)f.push($.primary(`${_.name} v${_.version}`));else if(_.name)f.push($.primary(_.name));if(_.description)f.push(""),f.push(_.description);f.push(""),f.push($.accent("USAGE:"));let K=_.name||"cli";if(f.push(` ${K} <command> [options]`),_.commands.length>0){f.push(""),f.push($.accent("COMMANDS:"));for(let P of _.commands){let u=P.name.padEnd(20),j=P.summary||"";f.push(` ${$.primary(u)} ${j}`)}}if(f.push(""),f.push($.accent("GLOBAL FLAGS:")),f.push(` ${$.primary("--help, -h")} Show help`),_.version)f.push(` ${$.primary("--version, -v")} Show version`);return f.push(` ${$.primary("--debug")} Show debug output`),f.join(`
|
|
8
|
+
`)}function v2(_,q,$={}){let f=$.colors||Q8(),K=[],P=q.join(" ");if(K.push(f.primary(P)),_.description)K.push(""),K.push(_.description);else if(_.summary)K.push(""),K.push(_.summary);if(K.push(""),K.push(f.accent("USAGE:")),K.push(` ${P} <command> [options]`),_.children.length>0){K.push(""),K.push(f.accent("COMMANDS:"));for(let u of _.children){let j=u.name.padEnd(20),w=u.summary||"",O=u.type==="group"?"[group]":"";K.push(` ${f.primary(j)} ${w} ${f.accent(O)}`)}}return K.push(""),K.push(f.accent("FLAGS:")),K.push(` ${f.primary("--help, -h")} Show help`),K.push(` ${f.primary("--debug")} Show debug output`),K.join(`
|
|
9
|
+
`)}function z2(_,q,$={}){let f=$.colors||Q8(),K=[],P=q.join(" ");if(K.push(f.primary(P)),_.summary)K.push(""),K.push(_.summary);if(_.description)K.push(""),K.push(_.description);K.push(""),K.push(f.accent("USAGE:"));let u=JO(_,q);if(K.push(` ${u}`),_.aliases&&_.aliases.length>0)K.push(""),K.push(f.accent("ALIASES:")),K.push(` ${_.aliases.join(", ")}`);if(_.params.length>0){K.push(""),K.push(f.accent("PARAMETERS:")),K.push("");let j=ZO(_.params,f);K.push(j)}return K.push(""),K.push(f.accent("FLAGS:")),K.push(` ${f.primary("--help, -h")} Show help`),K.push(` ${f.primary("--debug")} Show debug output`),K.join(`
|
|
10
|
+
`)}function JO(_,q){let $=[...q],f=_.params.filter((P)=>P.shape==="positional").sort((P,u)=>{let j=P.index,w=u.index;return j-w});if(_.params.some((P)=>P.shape==="flag"))$.push("[options]");for(let P of f){let u=P.required===!0,j=P.type.endsWith("[]"),w=P.name;if(j)w=`${P.name}...`;if(u)$.push(`<${w}>`);else $.push(`[${w}]`)}return $.join(" ")}function ZO(_,q){let $=[];for(let u of _){let j="";if(u.shape==="flag"){let T=u;if(j=`--${T.long}`,T.short)j+=`, -${T.short}`}else if(u.shape==="positional")j=`[${u.index}]`;let w=u.type,O="";if(u.default!==void 0){if(typeof u.default==="object"&&u.default!==null&&"value"in u.default)O=String(u.default.value);else O=String(u.default);if(O.length>20)O=O.slice(0,17)+"..."}let v=u.env||"",Y="";$.push({name:u.name,flags:j,type:w,default:O,env:v,description:Y})}let f={name:Math.max(8,...$.map((u)=>u.name.length)),flags:Math.max(10,...$.map((u)=>u.flags.length)),type:Math.max(6,...$.map((u)=>u.type.length)),default:Math.max(8,...$.map((u)=>u.default.length)),env:Math.max(12,...$.map((u)=>u.env.length))},K=[],P=[q.primary("Name".padEnd(f.name)),q.primary("Flags/Pos".padEnd(f.flags)),q.primary("Type".padEnd(f.type)),q.primary("Default".padEnd(f.default)),q.primary("Env Var".padEnd(f.env)),q.primary("Description")];K.push(" "+P.join(" ")),K.push(" "+"-".repeat(f.name)+" "+"-".repeat(f.flags)+" "+"-".repeat(f.type)+" "+"-".repeat(f.default)+" "+"-".repeat(f.env)+" "+"-".repeat(20));for(let u of $){let j=[u.name.padEnd(f.name),u.flags.padEnd(f.flags),u.type.padEnd(f.type),u.default.padEnd(f.default),u.env.padEnd(f.env),u.description];K.push(" "+j.join(" "))}return K.join(`
|
|
11
|
+
`)}function H2(_){return _.includes("--help")||_.includes("-h")}var pf=d(()=>{oq()});function W2(_,q,$,f="argv",K){if(q==="string[]")return k2(_,$,f,K);if(q==="number[]")return mO(_,$,f,K);let P=Array.isArray(_)?_[_.length-1]:_;switch(q){case"string":return hO(P,$,f);case"number":return AO(P,$,f);case"boolean":return XO(P,$,f);default:throw new L8("Unknown parameter type")}}function hO(_,q,$){if(typeof _==="string")return _;if(typeof _==="boolean"||typeof _==="number")return String(_);throw new L8(`Invalid value for parameter "${q}" from ${$}: expected string, got array`)}function AO(_,q,$){if(typeof _==="number")return _;let f=typeof _==="string"?_:String(_),K=parseFloat(f);if(Number.isNaN(K)){let P=`Expected number, got '${f}' from ${$}`;if($==="env")P+=". Try providing the value via command-line flag instead.";else if($==="stdin")P+=". Check your piped/redirected input.";throw new L8(`Invalid value for parameter "${q}": ${P}`)}return K}function XO(_,q,$){if(typeof _==="boolean")return _;let f=typeof _==="string"?_:String(_),K=f.toLowerCase().trim();if(K==="true"||K==="1"||K==="yes")return!0;if(K==="false"||K==="0"||K==="no")return!1;let P=`Expected boolean (true, false, 1, 0, yes, no), got '${f}' from ${$}`;if($==="env")P+=". Check your environment variable value.";throw new L8(`Invalid value for parameter "${q}": ${P}`)}function k2(_,q,$,f){if(Array.isArray(_)){let K=[];for(let P of _){let j=(typeof P==="string"?P:String(P)).split(",").map((w)=>w.trim());K.push(...j)}return K}if(typeof _==="string")return _.split(",").map((K)=>K.trim());if(typeof _==="boolean"||typeof _==="number")return[String(_)];throw new L8(`Invalid value for parameter "${q}" from ${$}: expected string or array`)}function mO(_,q,$,f){let K=k2(_,q,$,f),P=[];for(let u=0;u<K.length;u++){let j=K[u],w=parseFloat(j);if(Number.isNaN(w)){let O=`Expected number array, but element at index ${u} is not a valid number (got '${j}') from ${$}`;if($==="env")O+=". Check your environment variable format (comma-separated numbers).";else if($==="stdin")O+=". Check your piped/redirected input (one number per line).";throw new L8(`Invalid value for parameter "${q}": ${O}`)}P.push(w)}return P}var J2=d(()=>{S8()});async function Z2(){if(process.stdin.isTTY===!0)return;return new Promise((_,q)=>{let $=[],f=!1;process.stdin.on("data",(K)=>{f=!0,$.push(K)}),process.stdin.on("end",()=>{if(!f){_(void 0);return}let K=Buffer.concat($).toString("utf-8");if(K.trim().length===0){_(void 0);return}_(K)}),process.stdin.on("error",(K)=>{q(K)}),process.stdin.resume()})}function h2(_){return _.split(`
|
|
12
|
+
`).map((q)=>q.trim()).filter((q)=>q.length>0)}function iq(_){return typeof _==="object"&&_!==null&&(("fromEnv"in _)||("fallback"in _))}function bf(_){let q=process.env[_];if(q===void 0)return;return{value:q,raw:q}}async function A2(_){if(_===void 0)return;if(iq(_)){if(_.fromEnv){let q=bf(_.fromEnv);if(q!==void 0)return{value:q.value}}if(_.fallback!==void 0)return{value:_.fallback};return}if(typeof _==="function"){let q=_();return{value:q instanceof Promise?await q:q}}return{value:_}}var X2=()=>{};var __=(_,q=[])=>_.name==="up"||q.includes("vim")&&_.name==="k"||q.includes("emacs")&&_.ctrl&&_.name==="p",G_=(_,q=[])=>_.name==="down"||q.includes("vim")&&_.name==="j"||q.includes("emacs")&&_.ctrl&&_.name==="n",Vf=(_)=>_.name==="space",d6=(_)=>_.name==="backspace",E6=(_)=>_.name==="tab",R6=(_)=>"1234567890".includes(_.name),E8=(_)=>_.name==="enter"||_.name==="return";var Mf,Nf,gq,nf,D_;var lq=d(()=>{Mf=class Mf extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(_){super();this.cause=_?.cause}};Nf=class Nf extends Error{name="CancelPromptError";message="Prompt was canceled"};gq=class gq extends Error{name="ExitPromptError"};nf=class nf extends Error{name="HookError"};D_=class D_ extends Error{name="ValidationError"}});import{AsyncLocalStorage as GO,AsyncResource as DO}from"node:async_hooks";function CO(_){return{rl:_,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function G2(_,q){let $=CO(_);return m2.run($,()=>{function f(K){$.handleChange=()=>{$.index=0,K()},$.handleChange()}return q(f)})}function C_(){let _=m2.getStore();if(!_)throw new nf("[Inquirer] Hook functions can only be called from within a prompt");return _}function Sf(){return C_().rl}function df(_){let q=(...$)=>{let f=C_(),K=!1,P=f.handleChange;f.handleChange=()=>{K=!0};let u=_(...$);if(K)P();return f.handleChange=P,u};return DO.bind(q)}function L_(_){let q=C_(),{index:$}=q,f={get(){return q.hooks[$]},set(P){q.hooks[$]=P},initialized:$ in q.hooks},K=_(f);return q.index++,K}function D2(){C_().handleChange()}var m2,r_;var p_=d(()=>{lq();m2=new GO;r_={queue(_){let q=C_(),{index:$}=q;q.hooksEffect.push(()=>{q.hooksCleanup[$]?.();let f=_(Sf());if(f!=null&&typeof f!=="function")throw new D_("useEffect return value must be a cleanup function or nothing.");q.hooksCleanup[$]=f})},run(){let _=C_();df(()=>{_.hooksEffect.forEach((q)=>{q()}),_.hooksEffect.length=0})()},clearAll(){let _=C_();_.hooksCleanup.forEach((q)=>{q?.()}),_.hooksEffect.length=0,_.hooksCleanup.length=0}}});import{AsyncResource as rO}from"node:async_hooks";function e(_){return L_((q)=>{let $=rO.bind(function K(P){if(q.get()!==P)q.set(P),D2()});if(q.initialized)return[q.get(),$];let f=typeof _==="function"?_():_;return q.set(f),[f,$]})}var yq=d(()=>{p_()});function q_(_,q){L_(($)=>{let f=$.get();if(!Array.isArray(f)||q.some((P,u)=>!Object.is(P,f[u])))r_.queue(_);$.set(q)})}var tq=d(()=>{p_()});var I6=X((wV,C2)=>{var pO=v8("node:tty"),bO=pO?.WriteStream?.prototype?.hasColors?.()??!1,i=(_,q)=>{if(!bO)return(K)=>K;let $=`\x1B[${_}m`,f=`\x1B[${q}m`;return(K)=>{let P=K+"",u=P.indexOf(f);if(u===-1)return $+P+f;let j=$,w=0,v=(q===22?f:"")+$;while(u!==-1)j+=P.slice(w,u)+v,w=u+f.length,u=P.indexOf(f,w);return j+=P.slice(w)+f,j}},o={};o.reset=i(0,0);o.bold=i(1,22);o.dim=i(2,22);o.italic=i(3,23);o.underline=i(4,24);o.overline=i(53,55);o.inverse=i(7,27);o.hidden=i(8,28);o.strikethrough=i(9,29);o.black=i(30,39);o.red=i(31,39);o.green=i(32,39);o.yellow=i(33,39);o.blue=i(34,39);o.magenta=i(35,39);o.cyan=i(36,39);o.white=i(37,39);o.gray=i(90,39);o.bgBlack=i(40,49);o.bgRed=i(41,49);o.bgGreen=i(42,49);o.bgYellow=i(43,49);o.bgBlue=i(44,49);o.bgMagenta=i(45,49);o.bgCyan=i(46,49);o.bgWhite=i(47,49);o.bgGray=i(100,49);o.redBright=i(91,39);o.greenBright=i(92,39);o.yellowBright=i(93,39);o.blueBright=i(94,39);o.magentaBright=i(95,39);o.cyanBright=i(96,39);o.whiteBright=i(97,39);o.bgRedBright=i(101,49);o.bgGreenBright=i(102,49);o.bgYellowBright=i(103,49);o.bgBlueBright=i(104,49);o.bgMagentaBright=i(105,49);o.bgCyanBright=i(106,49);o.bgWhiteBright=i(107,49);C2.exports=o});import e8 from"node:process";function VO(){if(e8.platform!=="win32")return e8.env.TERM!=="linux";return Boolean(e8.env.WT_SESSION)||Boolean(e8.env.TERMINUS_SUBLIME)||e8.env.ConEmuTask==="{cmd::Cmder}"||e8.env.TERM_PROGRAM==="Terminus-Sublime"||e8.env.TERM_PROGRAM==="vscode"||e8.env.TERM==="xterm-256color"||e8.env.TERM==="alacritty"||e8.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var r2,p2,MO,NO,nO,SO,dO,x8,YV;var a6=d(()=>{r2={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},p2={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},MO={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},NO={...r2,...p2},nO={...r2,...MO},SO=VO(),dO=SO?NO:nO,x8=dO,YV=Object.entries(p2)});var X8,b2;var V2=d(()=>{X8=W8(I6(),1);a6();b2={prefix:{idle:X8.default.blue("?"),done:X8.default.green(x8.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map((_)=>X8.default.yellow(_))},style:{answer:X8.default.cyan,message:X8.default.bold,error:(_)=>X8.default.red(`> ${_}`),defaultAnswer:(_)=>X8.default.dim(`(${_})`),help:X8.default.dim,highlight:X8.default.cyan,key:(_)=>X8.default.cyan(X8.default.bold(`<${_}>`))}}});function M2(_){if(typeof _!=="object"||_===null)return!1;let q=_;while(Object.getPrototypeOf(q)!==null)q=Object.getPrototypeOf(q);return Object.getPrototypeOf(_)===q}function N2(..._){let q={};for(let $ of _)for(let[f,K]of Object.entries($)){let P=q[f];q[f]=M2(P)&&M2(K)?N2(P,K):K}return q}function J8(..._){let q=[b2,..._.filter(($)=>$!=null)];return N2(...q)}var Ef=d(()=>{V2()});function R8({status:_="idle",theme:q}){let[$,f]=e(!1),[K,P]=e(0),{prefix:u,spinner:j}=J8(q);if(q_(()=>{if(_==="loading"){let O,v=-1,Y=setTimeout(()=>{f(!0),O=setInterval(()=>{v=v+1,P(v%j.frames.length)},j.interval)},300);return()=>{clearTimeout(Y),clearInterval(O)}}else f(!1)},[_]),$)return j.frames[K];return typeof u==="string"?u:u[_==="loading"?"idle":_]??u.idle}var n2=d(()=>{yq();tq();Ef()});function b_(_,q){return L_(($)=>{let f=$.get();if(!f||f.dependencies.length!==q.length||f.dependencies.some((K,P)=>K!==q[P])){let K=_();return $.set({value:K,dependencies:q}),K}return f.value})}var S2=d(()=>{p_()});function V_(_){return e({current:_})[0]}var cq=d(()=>{yq()});function I8(_){let q=V_(_);q.current=_,q_(($)=>{let f=!1,K=df((P,u)=>{if(f)return;q.current(u,$)});return $.input.on("keypress",K),()=>{f=!0,$.input.removeListener("keypress",K)}},[])}var d2=d(()=>{cq();tq();p_()});var R2=X((bV,E2)=>{E2.exports=RO;function EO(_){let q={defaultWidth:0,output:process.stdout,tty:v8("tty")};if(!_)return q;return Object.keys(q).forEach(function($){if(!_[$])_[$]=q[$]}),_}function RO(_){let q=EO(_);if(q.output.getWindowSize)return q.output.getWindowSize()[0]||q.defaultWidth;if(q.tty.getWindowSize)return q.tty.getWindowSize()[1]||q.defaultWidth;if(q.output.columns)return q.output.columns;if(process.env.CLI_WIDTH){let $=parseInt(process.env.CLI_WIDTH,10);if(!isNaN($)&&$!==0)return $}return q.defaultWidth}});var a2=X((VV,I2)=>{I2.exports=({onlyFirst:_=!1}={})=>{let q=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(q,_?void 0:"g")}});var Rf=X((MV,o2)=>{var IO=a2();o2.exports=(_)=>typeof _==="string"?_.replace(IO(),""):_});var g2=X((NV,If)=>{var i2=(_)=>{if(Number.isNaN(_))return!1;if(_>=4352&&(_<=4447||_===9001||_===9002||11904<=_&&_<=12871&&_!==12351||12880<=_&&_<=19903||19968<=_&&_<=42182||43360<=_&&_<=43388||44032<=_&&_<=55203||63744<=_&&_<=64255||65040<=_&&_<=65049||65072<=_&&_<=65131||65281<=_&&_<=65376||65504<=_&&_<=65510||110592<=_&&_<=110593||127488<=_&&_<=127569||131072<=_&&_<=262141))return!0;return!1};If.exports=i2;If.exports.default=i2});var y2=X((nV,l2)=>{l2.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var c2=X((SV,af)=>{var aO=Rf(),oO=g2(),iO=y2(),t2=(_)=>{if(typeof _!=="string"||_.length===0)return 0;if(_=aO(_),_.length===0)return 0;_=_.replace(iO()," ");let q=0;for(let $=0;$<_.length;$++){let f=_.codePointAt($);if(f<=31||f>=127&&f<=159)continue;if(f>=768&&f<=879)continue;if(f>65535)$++;q+=oO(f)?2:1}return q};af.exports=t2;af.exports.default=t2});var e2=X((dV,L2)=>{L2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var of=X((EV,s2)=>{var o6=e2(),x2={};for(let _ of Object.keys(o6))x2[o6[_]]=_;var R={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};s2.exports=R;for(let _ of Object.keys(R)){if(!("channels"in R[_]))throw new Error("missing channels property: "+_);if(!("labels"in R[_]))throw new Error("missing channel labels property: "+_);if(R[_].labels.length!==R[_].channels)throw new Error("channel and label counts mismatch: "+_);let{channels:q,labels:$}=R[_];delete R[_].channels,delete R[_].labels,Object.defineProperty(R[_],"channels",{value:q}),Object.defineProperty(R[_],"labels",{value:$})}R.rgb.hsl=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255,K=Math.min(q,$,f),P=Math.max(q,$,f),u=P-K,j,w;if(P===K)j=0;else if(q===P)j=($-f)/u;else if($===P)j=2+(f-q)/u;else if(f===P)j=4+(q-$)/u;if(j=Math.min(j*60,360),j<0)j+=360;let O=(K+P)/2;if(P===K)w=0;else if(O<=0.5)w=u/(P+K);else w=u/(2-P-K);return[j,w*100,O*100]};R.rgb.hsv=function(_){let q,$,f,K,P,u=_[0]/255,j=_[1]/255,w=_[2]/255,O=Math.max(u,j,w),v=O-Math.min(u,j,w),Y=function(T){return(O-T)/6/v+0.5};if(v===0)K=0,P=0;else{if(P=v/O,q=Y(u),$=Y(j),f=Y(w),u===O)K=f-$;else if(j===O)K=0.3333333333333333+q-f;else if(w===O)K=0.6666666666666666+$-q;if(K<0)K+=1;else if(K>1)K-=1}return[K*360,P*100,O*100]};R.rgb.hwb=function(_){let q=_[0],$=_[1],f=_[2],K=R.rgb.hsl(_)[0],P=0.00392156862745098*Math.min(q,Math.min($,f));return f=1-0.00392156862745098*Math.max(q,Math.max($,f)),[K,P*100,f*100]};R.rgb.cmyk=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255,K=Math.min(1-q,1-$,1-f),P=(1-q-K)/(1-K)||0,u=(1-$-K)/(1-K)||0,j=(1-f-K)/(1-K)||0;return[P*100,u*100,j*100,K*100]};function gO(_,q){return(_[0]-q[0])**2+(_[1]-q[1])**2+(_[2]-q[2])**2}R.rgb.keyword=function(_){let q=x2[_];if(q)return q;let $=1/0,f;for(let K of Object.keys(o6)){let P=o6[K],u=gO(_,P);if(u<$)$=u,f=K}return f};R.keyword.rgb=function(_){return o6[_]};R.rgb.xyz=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255;q=q>0.04045?((q+0.055)/1.055)**2.4:q/12.92,$=$>0.04045?(($+0.055)/1.055)**2.4:$/12.92,f=f>0.04045?((f+0.055)/1.055)**2.4:f/12.92;let K=q*0.4124+$*0.3576+f*0.1805,P=q*0.2126+$*0.7152+f*0.0722,u=q*0.0193+$*0.1192+f*0.9505;return[K*100,P*100,u*100]};R.rgb.lab=function(_){let q=R.rgb.xyz(_),$=q[0],f=q[1],K=q[2];$/=95.047,f/=100,K/=108.883,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,f=f>0.008856?f**0.3333333333333333:7.787*f+0.13793103448275862,K=K>0.008856?K**0.3333333333333333:7.787*K+0.13793103448275862;let P=116*f-16,u=500*($-f),j=200*(f-K);return[P,u,j]};R.hsl.rgb=function(_){let q=_[0]/360,$=_[1]/100,f=_[2]/100,K,P,u;if($===0)return u=f*255,[u,u,u];if(f<0.5)K=f*(1+$);else K=f+$-f*$;let j=2*f-K,w=[0,0,0];for(let O=0;O<3;O++){if(P=q+0.3333333333333333*-(O-1),P<0)P++;if(P>1)P--;if(6*P<1)u=j+(K-j)*6*P;else if(2*P<1)u=K;else if(3*P<2)u=j+(K-j)*(0.6666666666666666-P)*6;else u=j;w[O]=u*255}return w};R.hsl.hsv=function(_){let q=_[0],$=_[1]/100,f=_[2]/100,K=$,P=Math.max(f,0.01);f*=2,$*=f<=1?f:2-f,K*=P<=1?P:2-P;let u=(f+$)/2,j=f===0?2*K/(P+K):2*$/(f+$);return[q,j*100,u*100]};R.hsv.rgb=function(_){let q=_[0]/60,$=_[1]/100,f=_[2]/100,K=Math.floor(q)%6,P=q-Math.floor(q),u=255*f*(1-$),j=255*f*(1-$*P),w=255*f*(1-$*(1-P));switch(f*=255,K){case 0:return[f,w,u];case 1:return[j,f,u];case 2:return[u,f,w];case 3:return[u,j,f];case 4:return[w,u,f];case 5:return[f,u,j]}};R.hsv.hsl=function(_){let q=_[0],$=_[1]/100,f=_[2]/100,K=Math.max(f,0.01),P,u;u=(2-$)*f;let j=(2-$)*K;return P=$*K,P/=j<=1?j:2-j,P=P||0,u/=2,[q,P*100,u*100]};R.hwb.rgb=function(_){let q=_[0]/360,$=_[1]/100,f=_[2]/100,K=$+f,P;if(K>1)$/=K,f/=K;let u=Math.floor(6*q),j=1-f;if(P=6*q-u,(u&1)!==0)P=1-P;let w=$+P*(j-$),O,v,Y;switch(u){default:case 6:case 0:O=j,v=w,Y=$;break;case 1:O=w,v=j,Y=$;break;case 2:O=$,v=j,Y=w;break;case 3:O=$,v=w,Y=j;break;case 4:O=w,v=$,Y=j;break;case 5:O=j,v=$,Y=w;break}return[O*255,v*255,Y*255]};R.cmyk.rgb=function(_){let q=_[0]/100,$=_[1]/100,f=_[2]/100,K=_[3]/100,P=1-Math.min(1,q*(1-K)+K),u=1-Math.min(1,$*(1-K)+K),j=1-Math.min(1,f*(1-K)+K);return[P*255,u*255,j*255]};R.xyz.rgb=function(_){let q=_[0]/100,$=_[1]/100,f=_[2]/100,K,P,u;return K=q*3.2406+$*-1.5372+f*-0.4986,P=q*-0.9689+$*1.8758+f*0.0415,u=q*0.0557+$*-0.204+f*1.057,K=K>0.0031308?1.055*K**0.4166666666666667-0.055:K*12.92,P=P>0.0031308?1.055*P**0.4166666666666667-0.055:P*12.92,u=u>0.0031308?1.055*u**0.4166666666666667-0.055:u*12.92,K=Math.min(Math.max(0,K),1),P=Math.min(Math.max(0,P),1),u=Math.min(Math.max(0,u),1),[K*255,P*255,u*255]};R.xyz.lab=function(_){let q=_[0],$=_[1],f=_[2];q/=95.047,$/=100,f/=108.883,q=q>0.008856?q**0.3333333333333333:7.787*q+0.13793103448275862,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,f=f>0.008856?f**0.3333333333333333:7.787*f+0.13793103448275862;let K=116*$-16,P=500*(q-$),u=200*($-f);return[K,P,u]};R.lab.xyz=function(_){let q=_[0],$=_[1],f=_[2],K,P,u;P=(q+16)/116,K=$/500+P,u=P-f/200;let j=P**3,w=K**3,O=u**3;return P=j>0.008856?j:(P-0.13793103448275862)/7.787,K=w>0.008856?w:(K-0.13793103448275862)/7.787,u=O>0.008856?O:(u-0.13793103448275862)/7.787,K*=95.047,P*=100,u*=108.883,[K,P,u]};R.lab.lch=function(_){let q=_[0],$=_[1],f=_[2],K;if(K=Math.atan2(f,$)*360/2/Math.PI,K<0)K+=360;let u=Math.sqrt($*$+f*f);return[q,u,K]};R.lch.lab=function(_){let q=_[0],$=_[1],K=_[2]/360*2*Math.PI,P=$*Math.cos(K),u=$*Math.sin(K);return[q,P,u]};R.rgb.ansi16=function(_,q=null){let[$,f,K]=_,P=q===null?R.rgb.hsv(_)[2]:q;if(P=Math.round(P/50),P===0)return 30;let u=30+(Math.round(K/255)<<2|Math.round(f/255)<<1|Math.round($/255));if(P===2)u+=60;return u};R.hsv.ansi16=function(_){return R.rgb.ansi16(R.hsv.rgb(_),_[2])};R.rgb.ansi256=function(_){let q=_[0],$=_[1],f=_[2];if(q===$&&$===f){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round($/255*5)+Math.round(f/255*5)};R.ansi16.rgb=function(_){let q=_%10;if(q===0||q===7){if(_>50)q+=3.5;return q=q/10.5*255,[q,q,q]}let $=(~~(_>50)+1)*0.5,f=(q&1)*$*255,K=(q>>1&1)*$*255,P=(q>>2&1)*$*255;return[f,K,P]};R.ansi256.rgb=function(_){if(_>=232){let P=(_-232)*10+8;return[P,P,P]}_-=16;let q,$=Math.floor(_/36)/5*255,f=Math.floor((q=_%36)/6)/5*255,K=q%6/5*255;return[$,f,K]};R.rgb.hex=function(_){let $=(((Math.round(_[0])&255)<<16)+((Math.round(_[1])&255)<<8)+(Math.round(_[2])&255)).toString(16).toUpperCase();return"000000".substring($.length)+$};R.hex.rgb=function(_){let q=_.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!q)return[0,0,0];let $=q[0];if(q[0].length===3)$=$.split("").map((j)=>{return j+j}).join("");let f=parseInt($,16),K=f>>16&255,P=f>>8&255,u=f&255;return[K,P,u]};R.rgb.hcg=function(_){let q=_[0]/255,$=_[1]/255,f=_[2]/255,K=Math.max(Math.max(q,$),f),P=Math.min(Math.min(q,$),f),u=K-P,j,w;if(u<1)j=P/(1-u);else j=0;if(u<=0)w=0;else if(K===q)w=($-f)/u%6;else if(K===$)w=2+(f-q)/u;else w=4+(q-$)/u;return w/=6,w%=1,[w*360,u*100,j*100]};R.hsl.hcg=function(_){let q=_[1]/100,$=_[2]/100,f=$<0.5?2*q*$:2*q*(1-$),K=0;if(f<1)K=($-0.5*f)/(1-f);return[_[0],f*100,K*100]};R.hsv.hcg=function(_){let q=_[1]/100,$=_[2]/100,f=q*$,K=0;if(f<1)K=($-f)/(1-f);return[_[0],f*100,K*100]};R.hcg.rgb=function(_){let q=_[0]/360,$=_[1]/100,f=_[2]/100;if($===0)return[f*255,f*255,f*255];let K=[0,0,0],P=q%1*6,u=P%1,j=1-u,w=0;switch(Math.floor(P)){case 0:K[0]=1,K[1]=u,K[2]=0;break;case 1:K[0]=j,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=u;break;case 3:K[0]=0,K[1]=j,K[2]=1;break;case 4:K[0]=u,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=j}return w=(1-$)*f,[($*K[0]+w)*255,($*K[1]+w)*255,($*K[2]+w)*255]};R.hcg.hsv=function(_){let q=_[1]/100,$=_[2]/100,f=q+$*(1-q),K=0;if(f>0)K=q/f;return[_[0],K*100,f*100]};R.hcg.hsl=function(_){let q=_[1]/100,f=_[2]/100*(1-q)+0.5*q,K=0;if(f>0&&f<0.5)K=q/(2*f);else if(f>=0.5&&f<1)K=q/(2*(1-f));return[_[0],K*100,f*100]};R.hcg.hwb=function(_){let q=_[1]/100,$=_[2]/100,f=q+$*(1-q);return[_[0],(f-q)*100,(1-f)*100]};R.hwb.hcg=function(_){let q=_[1]/100,f=1-_[2]/100,K=f-q,P=0;if(K<1)P=(f-K)/(1-K);return[_[0],K*100,P*100]};R.apple.rgb=function(_){return[_[0]/65535*255,_[1]/65535*255,_[2]/65535*255]};R.rgb.apple=function(_){return[_[0]/255*65535,_[1]/255*65535,_[2]/255*65535]};R.gray.rgb=function(_){return[_[0]/100*255,_[0]/100*255,_[0]/100*255]};R.gray.hsl=function(_){return[0,0,_[0]]};R.gray.hsv=R.gray.hsl;R.gray.hwb=function(_){return[0,100,_[0]]};R.gray.cmyk=function(_){return[0,0,0,_[0]]};R.gray.lab=function(_){return[_[0],0,0]};R.gray.hex=function(_){let q=Math.round(_[0]/100*255)&255,f=((q<<16)+(q<<8)+q).toString(16).toUpperCase();return"000000".substring(f.length)+f};R.rgb.gray=function(_){return[(_[0]+_[1]+_[2])/3/255*100]}});var F2=X((RV,B2)=>{var Lq=of();function lO(){let _={},q=Object.keys(Lq);for(let $=q.length,f=0;f<$;f++)_[q[f]]={distance:-1,parent:null};return _}function yO(_){let q=lO(),$=[_];q[_].distance=0;while($.length){let f=$.pop(),K=Object.keys(Lq[f]);for(let P=K.length,u=0;u<P;u++){let j=K[u],w=q[j];if(w.distance===-1)w.distance=q[f].distance+1,w.parent=f,$.unshift(j)}}return q}function tO(_,q){return function($){return q(_($))}}function cO(_,q){let $=[q[_].parent,_],f=Lq[q[_].parent][_],K=q[_].parent;while(q[K].parent)$.unshift(q[K].parent),f=tO(Lq[q[K].parent][K],f),K=q[K].parent;return f.conversion=$,f}B2.exports=function(_){let q=yO(_),$={},f=Object.keys(q);for(let K=f.length,P=0;P<K;P++){let u=f[P];if(q[u].parent===null)continue;$[u]=cO(u,q)}return $}});var Q2=X((IV,U2)=>{var gf=of(),LO=F2(),e_={},eO=Object.keys(gf);function xO(_){let q=function(...$){let f=$[0];if(f===void 0||f===null)return f;if(f.length>1)$=f;return _($)};if("conversion"in _)q.conversion=_.conversion;return q}function sO(_){let q=function(...$){let f=$[0];if(f===void 0||f===null)return f;if(f.length>1)$=f;let K=_($);if(typeof K==="object")for(let P=K.length,u=0;u<P;u++)K[u]=Math.round(K[u]);return K};if("conversion"in _)q.conversion=_.conversion;return q}eO.forEach((_)=>{e_[_]={},Object.defineProperty(e_[_],"channels",{value:gf[_].channels}),Object.defineProperty(e_[_],"labels",{value:gf[_].labels});let q=LO(_);Object.keys(q).forEach((f)=>{let K=q[f];e_[_][f]=sO(K),e_[_][f].raw=xO(K)})});U2.exports=e_});var yf=X((aV,K4)=>{var _4=(_,q)=>(...$)=>{return`\x1B[${_(...$)+q}m`},q4=(_,q)=>(...$)=>{let f=_(...$);return`\x1B[${38+q};5;${f}m`},$4=(_,q)=>(...$)=>{let f=_(...$);return`\x1B[${38+q};2;${f[0]};${f[1]};${f[2]}m`},eq=(_)=>_,f4=(_,q,$)=>[_,q,$],x_=(_,q,$)=>{Object.defineProperty(_,q,{get:()=>{let f=$();return Object.defineProperty(_,q,{value:f,enumerable:!0,configurable:!0}),f},enumerable:!0,configurable:!0})},lf,s_=(_,q,$,f)=>{if(lf===void 0)lf=Q2();let K=f?10:0,P={};for(let[u,j]of Object.entries(lf)){let w=u==="ansi16"?"ansi":u;if(u===q)P[w]=_($,K);else if(typeof j==="object")P[w]=_(j[q],K)}return P};function BO(){let _=new Map,q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};q.color.gray=q.color.blackBright,q.bgColor.bgGray=q.bgColor.bgBlackBright,q.color.grey=q.color.blackBright,q.bgColor.bgGrey=q.bgColor.bgBlackBright;for(let[$,f]of Object.entries(q)){for(let[K,P]of Object.entries(f))q[K]={open:`\x1B[${P[0]}m`,close:`\x1B[${P[1]}m`},f[K]=q[K],_.set(P[0],P[1]);Object.defineProperty(q,$,{value:f,enumerable:!1})}return Object.defineProperty(q,"codes",{value:_,enumerable:!1}),q.color.close="\x1B[39m",q.bgColor.close="\x1B[49m",x_(q.color,"ansi",()=>s_(_4,"ansi16",eq,!1)),x_(q.color,"ansi256",()=>s_(q4,"ansi256",eq,!1)),x_(q.color,"ansi16m",()=>s_($4,"rgb",f4,!1)),x_(q.bgColor,"ansi",()=>s_(_4,"ansi16",eq,!0)),x_(q.bgColor,"ansi256",()=>s_(q4,"ansi256",eq,!0)),x_(q.bgColor,"ansi16m",()=>s_($4,"rgb",f4,!0)),q}Object.defineProperty(K4,"exports",{enumerable:!0,get:BO})});var j4=X((oV,u4)=>{var i6=c2(),FO=Rf(),UO=yf(),cf=new Set(["\x1B",""]),P4=(_)=>`${cf.values().next().value}[${_}m`,QO=(_)=>_.split(" ").map((q)=>i6(q)),tf=(_,q,$)=>{let f=[...q],K=!1,P=i6(FO(_[_.length-1]));for(let[u,j]of f.entries()){let w=i6(j);if(P+w<=$)_[_.length-1]+=j;else _.push(j),P=0;if(cf.has(j))K=!0;else if(K&&j==="m"){K=!1;continue}if(K)continue;if(P+=w,P===$&&u<f.length-1)_.push(""),P=0}if(!P&&_[_.length-1].length>0&&_.length>1)_[_.length-2]+=_.pop()},_Y=(_)=>{let q=_.split(" "),$=q.length;while($>0){if(i6(q[$-1])>0)break;$--}if($===q.length)return _;return q.slice(0,$).join(" ")+q.slice($).join("")},qY=(_,q,$={})=>{if($.trim!==!1&&_.trim()==="")return"";let f="",K="",P,u=QO(_),j=[""];for(let[w,O]of _.split(" ").entries()){if($.trim!==!1)j[j.length-1]=j[j.length-1].trimLeft();let v=i6(j[j.length-1]);if(w!==0){if(v>=q&&($.wordWrap===!1||$.trim===!1))j.push(""),v=0;if(v>0||$.trim===!1)j[j.length-1]+=" ",v++}if($.hard&&u[w]>q){let Y=q-v,T=1+Math.floor((u[w]-Y-1)/q);if(Math.floor((u[w]-1)/q)<T)j.push("");tf(j,O,q);continue}if(v+u[w]>q&&v>0&&u[w]>0){if($.wordWrap===!1&&v<q){tf(j,O,q);continue}j.push("")}if(v+u[w]>q&&$.wordWrap===!1){tf(j,O,q);continue}j[j.length-1]+=O}if($.trim!==!1)j=j.map(_Y);f=j.join(`
|
|
13
|
+
`);for(let[w,O]of[...f].entries()){if(K+=O,cf.has(O)){let Y=parseFloat(/\d[^m]*/.exec(f.slice(w,w+4)));P=Y===39?null:Y}let v=UO.codes.get(Number(P));if(P&&v){if(f[w+1]===`
|
|
14
|
+
`)K+=P4(v);else if(O===`
|
|
15
|
+
`)K+=P4(P)}}return K};u4.exports=(_,q,$)=>{return String(_).normalize().replace(/\r\n/g,`
|
|
16
16
|
`).split(`
|
|
17
|
-
`).map((f)=>
|
|
17
|
+
`).map((f)=>qY(f,q,$)).join(`
|
|
18
18
|
`)}});function g6(_,q){return _.split(`
|
|
19
|
-
`).flatMap(($)=>
|
|
19
|
+
`).flatMap(($)=>O4.default($,q,{trim:!1,hard:!0}).split(`
|
|
20
20
|
`).map((f)=>f.trimEnd())).join(`
|
|
21
|
-
`)}function xq(){return
|
|
22
|
-
`)}),w=j.reduce((A,p)=>A+p.length,0),O=(A)=>j[A]??[],v
|
|
23
|
-
`)}var
|
|
21
|
+
`)}function xq(){return w4.default({defaultWidth:80,output:Sf().output})}var w4,O4;var Lf=d(()=>{w4=W8(R2(),1),O4=W8(j4(),1);p_()});function $Y({active:_,renderedItems:q,pageSize:$,loop:f}){let K=V_({lastPointer:_,lastActive:void 0}),{lastPointer:P,lastActive:u}=K.current,j=Math.floor($/2),w=q.reduce((Y,T)=>Y+T.length,0),O=q.slice(0,_).reduce((Y,T)=>Y+T.length,0),v=O;if(w>$)if(f){if(v=P,u!=null&&u<_&&_-u<$)v=Math.min(j,Math.abs(_-u)===1?Math.min(P+(q[u]?.length??0),Math.max(O,P)):P+_-u)}else{let Y=q.slice(_).reduce((T,z)=>T+z.length,0);v=Y<$-j?$-Y:Math.min(O,j)}return K.current.lastPointer=v,K.current.lastActive=_,v}function l6({items:_,active:q,renderItem:$,pageSize:f,loop:K=!0}){let P=xq(),u=(A)=>(A%_.length+_.length)%_.length,j=_.map((A,p)=>{if(A==null)return[];return g6($({item:A,index:p,isActive:p===q}),P).split(`
|
|
22
|
+
`)}),w=j.reduce((A,p)=>A+p.length,0),O=(A)=>j[A]??[],v=$Y({active:q,renderedItems:j,pageSize:f,loop:K}),Y=O(q).slice(0,f),T=v+Y.length<=f?v:f-Y.length,z=Array.from({length:f});z.splice(T,Y.length,...Y);let W=new Set([q]),H=T+Y.length,k=u(q+1);while(H<f&&!W.has(k)&&(K&&w>f?k!==q:k>q)){let p=O(k).slice(0,f-H);z.splice(H,p.length,...p),W.add(k),H+=p.length,k=u(k+1)}H=T-1,k=u(q-1);while(H>=0&&!W.has(k)&&(K&&w>f?k!==q:k<q)){let A=O(k),p=A.slice(Math.max(0,A.length-H-1));z.splice(H-p.length+1,p.length,...p),W.add(k),H-=p.length,k=u(k-1)}return z.filter((A)=>typeof A==="string").join(`
|
|
23
|
+
`)}var Y4=d(()=>{cq();Lf()});var z4=X((cV,v4)=>{var fY=v8("stream");class T4 extends fY{#f=null;constructor(_={}){super(_);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=_.replace,this._prompt=_.prompt||null,this._hadControl=!1}#$(_,q){if(this._dest)return this._dest[_];if(this._src)return this._src[_];return q}#_(_,...q){if(typeof this._dest?.[_]==="function")this._dest[_](...q);if(typeof this._src?.[_]==="function")this._src[_](...q)}get isTTY(){if(this.#f!==null)return this.#f;return this.#$("isTTY",!1)}set isTTY(_){this.#f=_}get rows(){return this.#$("rows")}get columns(){return this.#$("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(_){this._src=_}pipe(_,q){return this._dest=_,super.pipe(_,q)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(_){if(this.muted){if(!this.replace)return!0;if(_.match(/^\u001b/)){if(_.indexOf(this._prompt)===0)_=_.slice(this._prompt.length),_=_.replace(/./g,this.replace),_=this._prompt+_;return this._hadControl=!0,this.emit("data",_)}else{if(this._prompt&&this._hadControl&&_.indexOf(this._prompt)===0)this._hadControl=!1,this.emit("data",this._prompt),_=_.slice(this._prompt.length);_=_.toString().replace(/./g,this.replace)}}this.emit("data",_)}end(_){if(this.muted)if(_&&this.replace)_=_.toString().replace(/./g,this.replace);else _=null;if(_)this.emit("data",_);this.emit("end")}destroy(..._){return this.#_("destroy",..._)}destroySoon(..._){return this.#_("destroySoon",..._)}close(..._){return this.#_("close",..._)}}v4.exports=T4});var M_;var H4=d(()=>{M_=[];M_.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")M_.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")M_.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});class W4{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(xf[ef])return xf[ef];KY(xf,ef,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(_,q){this.listeners[_].push(q)}removeListener(_,q){let $=this.listeners[_],f=$.indexOf(q);if(f===-1)return;if(f===0&&$.length===1)$.length=0;else $.splice(f,1)}emit(_,q,$){if(this.emitted[_])return!1;this.emitted[_]=!0;let f=!1;for(let K of this.listeners[_])f=K(q,$)===!0||f;if(_==="exit")f=this.emit("afterExit",q,$)||f;return f}}class Bf{}var sq=(_)=>!!_&&typeof _==="object"&&typeof _.removeListener==="function"&&typeof _.emit==="function"&&typeof _.reallyExit==="function"&&typeof _.listeners==="function"&&typeof _.kill==="function"&&typeof _.pid==="number"&&typeof _.on==="function",ef,xf,KY,PY=(_)=>{return{onExit(q,$){return _.onExit(q,$)},load(){return _.load()},unload(){return _.unload()}}},k4,J4,sf,Bq,xV,sV;var Ff=d(()=>{H4();ef=Symbol.for("signal-exit emitter"),xf=globalThis,KY=Object.defineProperty.bind(Object);k4=class k4 extends Bf{onExit(){return()=>{}}load(){}unload(){}};J4=class J4 extends Bf{#f=sf.platform==="win32"?"SIGINT":"SIGHUP";#$=new W4;#_;#P;#v;#q={};#u=!1;constructor(_){super();this.#_=_,this.#q={};for(let q of M_)this.#q[q]=()=>{let $=this.#_.listeners(q),{count:f}=this.#$,K=_;if(typeof K.__signal_exit_emitter__==="object"&&typeof K.__signal_exit_emitter__.count==="number")f+=K.__signal_exit_emitter__.count;if($.length===f){this.unload();let P=this.#$.emit("exit",null,q),u=q==="SIGHUP"?this.#f:q;if(!P)_.kill(_.pid,u)}};this.#v=_.reallyExit,this.#P=_.emit}onExit(_,q){if(!sq(this.#_))return()=>{};if(this.#u===!1)this.load();let $=q?.alwaysLast?"afterExit":"exit";return this.#$.on($,_),()=>{if(this.#$.removeListener($,_),this.#$.listeners.exit.length===0&&this.#$.listeners.afterExit.length===0)this.unload()}}load(){if(this.#u)return;this.#u=!0,this.#$.count+=1;for(let _ of M_)try{let q=this.#q[_];if(q)this.#_.on(_,q)}catch(q){}this.#_.emit=(_,...q)=>{return this.#z(_,...q)},this.#_.reallyExit=(_)=>{return this.#K(_)}}unload(){if(!this.#u)return;this.#u=!1,M_.forEach((_)=>{let q=this.#q[_];if(!q)throw new Error("Listener not defined for signal: "+_);try{this.#_.removeListener(_,q)}catch($){}}),this.#_.emit=this.#P,this.#_.reallyExit=this.#v,this.#$.count-=1}#K(_){if(!sq(this.#_))return 0;return this.#_.exitCode=_||0,this.#$.emit("exit",this.#_.exitCode,null),this.#v.call(this.#_,this.#_.exitCode)}#z(_,...q){let $=this.#P;if(_==="exit"&&sq(this.#_)){if(typeof q[0]==="number")this.#_.exitCode=q[0];let f=$.call(this.#_,_,...q);return this.#$.emit("exit",this.#_.exitCode,null),f}else return $.call(this.#_,_,...q)}};sf=globalThis.process,{onExit:Bq,load:xV,unload:sV}=PY(sq(sf)?new J4(sf):new k4)});var uY="\x1B[G",B_="\x1B[?25l",h4="\x1B[?25h",Uf=(_=1)=>_>0?`\x1B[${_}A`:"",Qf=(_=1)=>_>0?`\x1B[${_}B`:"",_3=(_,q)=>{if(typeof q==="number"&&!Number.isNaN(q))return`\x1B[${q+1};${_+1}H`;return`\x1B[${_+1}G`},Z4="\x1B[2K",q3=(_)=>_>0?(Z4+Uf(1)).repeat(_-1)+Z4+uY:"";import{stripVTControlCharacters as jY}from"node:util";class Fq{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(_){this.rl=_,this.cursorPos=_.getCursorPos()}write(_){this.rl.output.unmute(),this.rl.output.write(_),this.rl.output.mute()}render(_,q=""){let $=wY(_),f=jY($),K=f;if(this.rl.line.length>0)K=K.slice(0,-this.rl.line.length);this.rl.setPrompt(K),this.cursorPos=this.rl.getCursorPos();let P=xq();if(_=g6(_,P),q=g6(q,P),f.length%P===0)_+=`
|
|
24
24
|
`;let u=_+(q?`
|
|
25
|
-
`+q:""),w=Math.floor(f.length/P)-this.cursorPos.rows+(q?
|
|
26
|
-
`,q+=
|
|
27
|
-
`).length,
|
|
28
|
-
`).pop()??"";var
|
|
29
|
-
at ${S}`)}let[N,n]=typeof V==="string"?[V]:V;v.render(N,n),r_.run()}catch(V){z(V)}}),Object.assign(Y.then((V)=>{return r_.clearAll(),V},(V)=>{throw r_.clearAll(),V}).finally(()=>{j.forEach((V)=>V()),v.done({clearContent:Boolean(K.clearPromptOnDone)}),w.end()}).then(()=>Y),{cancel:W})})}}var
|
|
30
|
-
`).trimEnd()}${B_}`})});function
|
|
31
|
-
`).trimEnd()}${B_}`})});var
|
|
32
|
-
`)}return{debug(v,...Y){O("debug",$,v,Y,(T)=>j.accent(T))},info(v,...Y){O("info",$,v,Y,(T)=>j.primary(T))},warn(v,...Y){O("warn",f,v,Y,(T)=>j.warn(T))},error(v,...Y){O("error",f,v,Y,(T)=>j.error(T))}}}var
|
|
25
|
+
`+q:""),w=Math.floor(f.length/P)-this.cursorPos.rows+(q?A4(q):0);if(w>0)u+=Uf(w);u+=_3(this.cursorPos.cols),this.write(Qf(this.extraLinesUnderPrompt)+q3(this.height)+u),this.extraLinesUnderPrompt=w,this.height=A4(u)}checkCursorPos(){let _=this.rl.getCursorPos();if(_.cols!==this.cursorPos.cols)this.write(_3(_.cols)),this.cursorPos=_}done({clearContent:_}){this.rl.setPrompt("");let q=Qf(this.extraLinesUnderPrompt);q+=_?q3(this.height):`
|
|
26
|
+
`,q+=h4,this.write(q),this.rl.close()}}var A4=(_)=>_.split(`
|
|
27
|
+
`).length,wY=(_)=>_.split(`
|
|
28
|
+
`).pop()??"";var X4=d(()=>{Lf()});var $3;var m4=d(()=>{$3=class $3 extends Promise{static withResolver(){let _,q;return{promise:new Promise((f,K)=>{_=f,q=K}),resolve:_,reject:q}}}});import*as G4 from"node:readline";import{AsyncResource as OY}from"node:async_hooks";function YY(){let _=Error.prepareStackTrace,q=[];try{Error.prepareStackTrace=($,f)=>{let K=f.slice(1);return q=K,K},new Error().stack}catch{return q}return Error.prepareStackTrace=_,q}function a8(_){let q=YY();return(f,K={})=>{let{input:P=process.stdin,signal:u}=K,j=new Set,w=new D4.default;w.pipe(K.output??process.stdout);let O=G4.createInterface({terminal:!0,input:P,output:w}),v=new Fq(O),{promise:Y,resolve:T,reject:z}=$3.withResolver(),W=()=>z(new Nf);if(u){let A=()=>z(new Mf({cause:u.reason}));if(u.aborted)return A(),Object.assign(Y,{cancel:W});u.addEventListener("abort",A),j.add(()=>u.removeEventListener("abort",A))}j.add(Bq((A,p)=>{z(new gq(`User force closed the prompt with ${A} ${p}`))}));let H=()=>z(new gq("User force closed the prompt with SIGINT"));O.on("SIGINT",H),j.add(()=>O.removeListener("SIGINT",H));let k=()=>v.checkCursorPos();return O.input.on("keypress",k),j.add(()=>O.input.removeListener("keypress",k)),G2(O,(A)=>{let p=OY.bind(()=>r_.clearAll());return O.on("close",p),j.add(()=>O.removeListener("close",p)),A(()=>{try{let V=_(f,(S)=>{setImmediate(()=>T(S))});if(V===void 0){let S=q[1]?.getFileName();throw new Error(`Prompt functions must return a string.
|
|
29
|
+
at ${S}`)}let[N,n]=typeof V==="string"?[V]:V;v.render(N,n),r_.run()}catch(V){z(V)}}),Object.assign(Y.then((V)=>{return r_.clearAll(),V},(V)=>{throw r_.clearAll(),V}).finally(()=>{j.forEach((V)=>V()),v.done({clearContent:Boolean(K.clearPromptOnDone)}),w.end()}).then(()=>Y),{cancel:W})})}}var D4;var C4=d(()=>{D4=W8(z4(),1);Ff();X4();m4();p_();lq()});class z8{separator=r4.default.dim(Array.from({length:15}).join(x8.line));type="separator";constructor(_){if(_)this.separator=_}static isSeparator(_){return Boolean(_&&typeof _==="object"&&"type"in _&&_.type==="separator")}}var r4;var p4=d(()=>{r4=W8(I6(),1);a6()});var F_=d(()=>{lq();n2();yq();tq();S2();cq();d2();Ef();Y4();C4();p4()});function Y_(_){return!z8.isSeparator(_)&&!_.disabled}function f3(_){return Y_(_)&&_.checked}function K3(_){return Y_(_)?{..._,checked:!_.checked}:_}function vY(_){return function(q){return Y_(q)?{...q,checked:_}:q}}function zY(_){return _.map((q)=>{if(z8.isSeparator(q))return q;if(typeof q==="string")return{value:q,name:q,short:q,checkedName:q,disabled:!1,checked:!1};let $=q.name??String(q.value),f={value:q.value,name:$,short:q.short??$,checkedName:q.checkedName??$,disabled:q.disabled??!1,checked:q.checked??!1};if(q.description)f.description=q.description;return f})}var N_,TY,y6;var b4=d(()=>{F_();N_=W8(I6(),1);a6();TY={icon:{checked:N_.default.green(x8.circleFilled),unchecked:x8.circle,cursor:x8.pointer},style:{disabledChoice:(_)=>N_.default.dim(`- ${_}`),renderSelectedChoices:(_)=>_.map((q)=>q.short).join(", "),description:(_)=>N_.default.cyan(_),keysHelpTip:(_)=>_.map(([q,$])=>`${N_.default.bold(q)} ${N_.default.dim($)}`).join(N_.default.dim(" • "))},helpMode:"always",keybindings:[]};y6=a8((_,q)=>{let{instructions:$,pageSize:f=7,loop:K=!0,required:P,validate:u=()=>!0}=_,j={all:"a",invert:"i",..._.shortcuts},w=J8(TY,_.theme),{keybindings:O}=w,[v,Y]=e("idle"),T=R8({status:v,theme:w}),[z,W]=e(zY(_.choices)),H=b_(()=>{let D=z.findIndex(Y_),b=z.findLastIndex(Y_);if(D===-1)throw new D_("[checkbox prompt] No selectable choices. All choices are disabled.");return{first:D,last:b}},[z]),[k,A]=e(H.first),[p,V]=e();I8(async(D)=>{if(E8(D)){let b=z.filter(f3),h=await u([...b]);if(P&&!z.some(f3))V("At least one choice must be selected");else if(h===!0)Y("done"),q(b.map((J)=>J.value));else V(h||"You must select a valid value")}else if(__(D,O)||G_(D,O)){if(K||__(D,O)&&k!==H.first||G_(D,O)&&k!==H.last){let b=__(D,O)?-1:1,h=k;do h=(h+b+z.length)%z.length;while(!Y_(z[h]));A(h)}}else if(Vf(D))V(void 0),W(z.map((b,h)=>h===k?K3(b):b));else if(D.name===j.all){let b=z.some((h)=>Y_(h)&&!h.checked);W(z.map(vY(b)))}else if(D.name===j.invert)W(z.map(K3));else if(R6(D)){let b=Number(D.name)-1,h=-1,J=z.findIndex((r)=>{if(z8.isSeparator(r))return!1;return h++,h===b}),G=z[J];if(G&&Y_(G))A(J),W(z.map((r,C)=>C===J?K3(r):r))}});let N=w.style.message(_.message,v),n,S=l6({items:z,active:k,renderItem({item:D,isActive:b}){if(z8.isSeparator(D))return` ${D.separator}`;if(D.disabled){let C=typeof D.disabled==="string"?D.disabled:"(disabled)";return w.style.disabledChoice(`${D.name} ${C}`)}if(b)n=D.description;let h=D.checked?w.icon.checked:w.icon.unchecked,J=D.checked?D.checkedName:D.name,G=b?w.style.highlight:(C)=>C,r=b?w.icon.cursor:" ";return G(`${r}${h} ${J}`)},pageSize:f,loop:K});if(v==="done"){let D=z.filter(f3),b=w.style.answer(w.style.renderSelectedChoices(D,z));return[T,N,b].filter(Boolean).join(" ")}let Z;if(w.helpMode!=="never"&&$!==!1)if(typeof $==="string")Z=$;else{let D=[["↑↓","navigate"],["space","select"]];if(j.all)D.push([j.all,"all"]);if(j.invert)D.push([j.invert,"invert"]);D.push(["⏎","submit"]),Z=w.style.keysHelpTip(D)}return`${[[T,N].filter(Boolean).join(" "),S," ",n?w.style.description(n):"",p?w.style.error(p):"",Z].filter(Boolean).join(`
|
|
30
|
+
`).trimEnd()}${B_}`})});function V4(_,q){let $=q!==!1;if(/^(y|yes)/i.test(_))$=!0;else if(/^(n|no)/i.test(_))$=!1;return $}function M4(_){return _?"Yes":"No"}var t6;var N4=d(()=>{F_();t6=a8((_,q)=>{let{transformer:$=M4}=_,[f,K]=e("idle"),[P,u]=e(""),j=J8(_.theme),w=R8({status:f,theme:j});I8((T,z)=>{if(f!=="idle")return;if(E8(T)){let W=V4(P,_.default);u($(W)),K("done"),q(W)}else if(E6(T)){let W=M4(!V4(P,_.default));z.clearLine(0),z.write(W),u(W)}else u(z.line)});let O=P,v="";if(f==="done")O=j.style.answer(P);else v=` ${j.style.defaultAnswer(_.default===!1?"y/N":"Y/n")}`;let Y=j.style.message(_.message,f);return`${w} ${Y}${v} ${O}`})});var HY,U_;var n4=d(()=>{F_();HY={validationFailureMode:"keep"},U_=a8((_,q)=>{let{required:$,validate:f=()=>!0,prefill:K="tab"}=_,P=J8(HY,_.theme),[u,j]=e("idle"),[w="",O]=e(_.default),[v,Y]=e(),[T,z]=e(""),W=R8({status:u,theme:P});I8(async(V,N)=>{if(u!=="idle")return;if(E8(V)){let n=T||w;j("loading");let S=$&&!n?"You must provide a value":await f(n);if(S===!0)z(n),j("done"),q(n);else{if(P.validationFailureMode==="clear")z("");else N.write(T);Y(S||"You must provide a valid value"),j("idle")}}else if(d6(V)&&!T)O(void 0);else if(E6(V)&&!T)O(void 0),N.clearLine(0),N.write(w),z(w);else z(N.line),Y(void 0)}),q_((V)=>{if(K==="editable"&&w)V.write(w),z(w)},[]);let H=P.style.message(_.message,u),k=T;if(typeof _.transformer==="function")k=_.transformer(T,{isFinal:u==="done"});else if(u==="done")k=P.style.answer(T);let A;if(w&&u!=="done"&&!T)A=P.style.defaultAnswer(w);let p="";if(v)p=P.style.error(v);return[[W,H,A,k].filter((V)=>V!==void 0).join(" "),p]})});var P3;var S4=d(()=>{F_();P3=a8((_,q)=>{let{validate:$=()=>!0}=_,f=J8(_.theme),[K,P]=e("idle"),[u,j]=e(),[w,O]=e(""),v=R8({status:K,theme:f});I8(async(H,k)=>{if(K!=="idle")return;if(E8(H)){let A=w;P("loading");let p=await $(A);if(p===!0)O(A),P("done"),q(A);else k.write(w),j(p||"You must provide a valid value"),P("idle")}else O(k.line),j(void 0)});let Y=f.style.message(_.message,K),T="",z;if(_.mask)T=(typeof _.mask==="string"?_.mask:"*").repeat(w.length);else if(K!=="done")z=`${f.style.help("[input is masked]")}${B_}`;if(K==="done")T=f.style.answer(T);let W="";if(u)W=f.style.error(u);return[[v,Y,_.mask?T:z].join(" "),W]})});function Q_(_){return!z8.isSeparator(_)&&!_.disabled}function kY(_){return _.map((q)=>{if(z8.isSeparator(q))return q;if(typeof q==="string")return{value:q,name:q,short:q,disabled:!1};let $=q.name??String(q.value),f={value:q.value,name:$,short:q.short??$,disabled:q.disabled??!1};if(q.description)f.description=q.description;return f})}var _6,WY,c6;var d4=d(()=>{F_();_6=W8(I6(),1);a6();WY={icon:{cursor:x8.pointer},style:{disabled:(_)=>_6.default.dim(`- ${_}`),description:(_)=>_6.default.cyan(_),keysHelpTip:(_)=>_.map(([q,$])=>`${_6.default.bold(q)} ${_6.default.dim($)}`).join(_6.default.dim(" • "))},helpMode:"always",indexMode:"hidden",keybindings:[]};c6=a8((_,q)=>{let{loop:$=!0,pageSize:f=7}=_,K=J8(WY,_.theme),{keybindings:P}=K,[u,j]=e("idle"),w=R8({status:u,theme:K}),O=V_(),v=!P.includes("vim"),Y=b_(()=>kY(_.choices),[_.choices]),T=b_(()=>{let Z=Y.findIndex(Q_),m=Y.findLastIndex(Q_);if(Z===-1)throw new D_("[select prompt] No selectable choices. All choices are disabled.");return{first:Z,last:m}},[Y]),z=b_(()=>{if(!("default"in _))return-1;return Y.findIndex((Z)=>Q_(Z)&&Z.value===_.default)},[_.default,Y]),[W,H]=e(z===-1?T.first:z),k=Y[W];I8((Z,m)=>{if(clearTimeout(O.current),E8(Z))j("done"),q(k.value);else if(__(Z,P)||G_(Z,P)){if(m.clearLine(0),$||__(Z,P)&&W!==T.first||G_(Z,P)&&W!==T.last){let D=__(Z,P)?-1:1,b=W;do b=(b+D+Y.length)%Y.length;while(!Q_(Y[b]));H(b)}}else if(R6(Z)&&!Number.isNaN(Number(m.line))){let D=Number(m.line)-1,b=-1,h=Y.findIndex((G)=>{if(z8.isSeparator(G))return!1;return b++,b===D}),J=Y[h];if(J!=null&&Q_(J))H(h);O.current=setTimeout(()=>{m.clearLine(0)},700)}else if(d6(Z))m.clearLine(0);else if(v){let D=m.line.toLowerCase(),b=Y.findIndex((h)=>{if(z8.isSeparator(h)||!Q_(h))return!1;return h.name.toLowerCase().startsWith(D)});if(b!==-1)H(b);O.current=setTimeout(()=>{m.clearLine(0)},700)}}),q_(()=>()=>{clearTimeout(O.current)},[]);let A=K.style.message(_.message,u),p;if(K.helpMode!=="never")if(_.instructions){let{pager:Z,navigation:m}=_.instructions;p=K.style.help(Y.length>f?Z:m)}else p=K.style.keysHelpTip([["↑↓","navigate"],["⏎","select"]]);let V=0,N=l6({items:Y,active:W,renderItem({item:Z,isActive:m,index:D}){if(z8.isSeparator(Z))return V++,` ${Z.separator}`;let b=K.indexMode==="number"?`${D+1-V}. `:"";if(Z.disabled){let G=typeof Z.disabled==="string"?Z.disabled:"(disabled)";return K.style.disabled(`${b}${Z.name} ${G}`)}let h=m?K.style.highlight:(G)=>G,J=m?K.icon.cursor:" ";return h(`${J} ${b}${Z.name}`)},pageSize:f,loop:$});if(u==="done")return[w,A,K.style.answer(k.short)].filter(Boolean).join(" ");let{description:n}=k;return`${[[w,A].filter(Boolean).join(" "),N," ",n?K.style.description(n):"",p].filter(Boolean).join(`
|
|
31
|
+
`).trimEnd()}${B_}`})});var u3=d(()=>{b4();N4();n4();S4();d4()});function E4(_){if(!_||typeof _!=="string")throw new TypeError("Parameter name must be a non-empty string");let q=_.replace(/[_-]/g," ");return q=q.replace(/([a-z\d])([A-Z])/g,"$1 $2"),q=q.replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2"),q=q.split(/\s+/).map(($)=>{if(!$)return"";if($===$.toUpperCase()&&$.length>1&&/^[A-Z]+$/.test($))return $;return $.charAt(0).toUpperCase()+$.slice(1).toLowerCase()}).join(" "),`${q}?`}function R4(){if(!Boolean(process.stdin.isTTY&&process.stdout.isTTY))return!1;if(ZY())return!1;return!0}function ZY(){return JY.some((_)=>{let q=process.env[_];return q!==void 0&&q!==""&&q!=="0"&&q!=="false"})}var JY;var I4=d(()=>{JY=["CI","CONTINUOUS_INTEGRATION","GITHUB_ACTIONS","GITLAB_CI","CIRCLECI","TRAVIS","JENKINS_URL","BUILDKITE"]});async function o4(_,q){if(!R4())return;let $=hY(_),f=$.message||E4(_.name),K=AY(_,$);return await mY(K,f,_,$,q)}function hY(_){if(!_.prompt)return{};if(_.prompt===!0)return{};return _.prompt}function AY(_,q){if(q.type)return XY(_.type,q.type),q.type;if(_.type==="boolean")return"confirm";if(q.choices&&q.choices.length>0){if(_.type==="string[]"||_.type==="number[]")return"multiselect";return"select"}return"input"}function XY(_,q){if(q==="multiselect"&&_!=="string[]"&&_!=="number[]")throw new TypeError(`Prompt type 'multiselect' can only be used with array parameter types (string[], number[]). Parameter type is '${_}'.`);if(q==="confirm"&&_!=="boolean")throw new TypeError(`Prompt type 'confirm' can only be used with boolean parameters. Parameter type is '${_}'.`);if(q==="select"&&(_==="string[]"||_==="number[]"))throw new TypeError(`Prompt type 'select' cannot be used with array parameter types. Use 'multiselect' for '${_}' or change to a non-array type.`)}async function mY(_,q,$,f,K){let P=0,u=100;while(P<u){P++;try{let j;switch(_){case"input":j=await U_({message:q,default:a4($)});break;case"confirm":j=await t6({message:q,default:GY($)});break;case"select":if(!f.choices||f.choices.length===0)throw new TypeError("Prompt type 'select' requires choices array");j=await c6({message:q,choices:f.choices.map((O)=>({value:O}))});break;case"multiselect":if(!f.choices||f.choices.length===0)throw new TypeError("Prompt type 'multiselect' requires choices array");j=await y6({message:q,choices:f.choices.map((O)=>({value:O}))});break;case"password":j=await P3({message:q,mask:"*"});break;default:j=await U_({message:q,default:a4($)})}if(j===""&&!$.required)return;let w=DY(j,$.type);if(K){let O=await K(w);if(O!==!0){let v=typeof O==="string"?O:"Validation failed";console.error(`Validation failed for '${$.name}': ${v}`),console.error("Please try again.");continue}}return w}catch(j){if(j&&typeof j==="object"&&"name"in j&&j.name==="ExitPromptError")throw j;throw j}}throw new Error(`Maximum prompt attempts (${u}) exceeded for parameter '${$.name}'`)}function a4(_){if(_.default===void 0||_.default===null)return;if(typeof _.default==="function")return;if(Array.isArray(_.default))return _.default.join(", ");return String(_.default)}function GY(_){if(_.default===void 0||_.default===null)return;if(typeof _.default==="function")return;return Boolean(_.default)}function DY(_,q){if(_===void 0)return;if(q==="boolean")return Boolean(_);if(Array.isArray(_)){if(q==="string[]")return _;if(q==="number[]")return _.map((f)=>{let K=parseFloat(f);if(isNaN(K))throw new TypeError(`Invalid number in array: "${f}"`);return K})}let $=String(_);if(q==="number"){let f=parseFloat($);if(isNaN(f))throw new TypeError(`Invalid number: "${$}"`);return f}if(q==="string[]")return $.split(",").map((f)=>f.trim()).filter((f)=>f!=="");if(q==="number[]")return $.split(",").map((f)=>{let K=parseFloat(f.trim());if(isNaN(K))throw new TypeError(`Invalid number in array: "${f}"`);return K});return $}var i4=d(()=>{u3();I4()});import CY from"node:fs";function rY(){return Boolean(process.stdin.isTTY&&process.stdout.isTTY)}async function pY(_,q){let $=new AbortController,f=new Promise((K,P)=>{setTimeout(()=>{$.abort(),P(new k8(`Pre-validation timed out after ${q}ms. Consider optimizing validation logic or increasing timeout.`))},q)});try{return await Promise.race([Promise.resolve(_()),f])}catch(K){if(K instanceof k8)throw K;let P=K instanceof Error?K.message:String(K);throw new k8(`Pre-validation error: ${P}`)}}async function l4(_){let{parsedArgv:q,params:$,detectTTY:f=!0,preValidate:K,preValidateTimeout:P=2000}=_,u=f&&rY();if(K){let Y=SY(q,$),T=await pY(()=>K(Y),P);if(T!==!0){if(typeof T!=="string"){let z=T===null?"null":T===void 0?"undefined":Array.isArray(T)?"array":typeof T;throw new k8(`Pre-validation hook must return true or an error message string, got ${z}`)}throw new k8(T)}}let j={},w={},O=$.find((Y)=>Y.stdin),v;if(O)v=await Z2();for(let Y of $){let T,z;if(T=bY(Y,q),T!==void 0)z="argv";if(T===void 0&&Y.stdin&&v!==void 0){if(T=VY(Y.type,v),T!==void 0)z="stdin"}if(T===void 0&&Y.env){if(T=bf(Y.env),T!==void 0)z="env"}if(T===void 0&&Y.default!==void 0)if(T=await A2(Y.default),T!==void 0&&T.value!==null&&T.value!==void 0)z="default";else T=void 0;if(T===void 0&&Y.prompt&&u&&!Y.stdin){let W=await o4(Y,Y.validate);if(W!==void 0)T={value:W,raw:String(W)},z="prompt"}if(T===void 0&&Y.required){if(!u)throw new k8(`Missing required parameter: "${Y.name}". Provide it via ${g4(Y)}, or run in an interactive terminal to be prompted.`);throw new k8(`Missing required parameter: "${Y.name}". Provide it via ${g4(Y)}.`)}if(T!==void 0&&z!==void 0){let W=W2(T.value,Y.type,Y.name,z,T.raw);j[Y.name]=W,w[Y.name]={value:W,source:z,raw:T.raw}}else j[Y.name]=void 0,w[Y.name]={value:void 0,source:"default"}}return{params:j,provenance:w}}function bY(_,q){if(_.shape==="positional"){if(_.type==="string[]"||_.type==="number[]"){let K=q.positionals.slice(_.index);if(K.length===0)return;return{value:K,raw:K}}let f=q.positionals[_.index];if(f===void 0)return;return{value:f,raw:f}}let $=q.flags[_.long];if($===void 0)return;if(Array.isArray($))return{value:$,raw:$};return{value:$,raw:String($)}}function VY(_,q){if(_==="string[]"||_==="number[]"){let f=h2(q);return{value:f,raw:f}}let $=q.trim();return{value:$,raw:$}}function g4(_){let q=[];if(_.shape==="positional")q.push(`positional argument at index ${_.index}`);else q.push(`--${_.long}${_.short?` or -${_.short}`:""}`);if(_.env)q.push(`environment variable ${_.env}`);if(_.stdin)q.push("stdin");return q.join(", ")}function MY(){if(process.stdin.isTTY)return{available:!1,kind:"tty"};try{let _=CY.fstatSync(process.stdin.fd);if(_.isFIFO())return{available:!0,kind:"pipe"};if(_.isFile())return{available:!0,kind:"file"};return{available:!0,kind:"unknown"}}catch{return{available:!1,kind:"unknown"}}}function NY(){let _=Boolean(process.stdin.isTTY&&process.stdout.isTTY);if(process.env.CLIBUILDER_NON_INTERACTIVE==="1"||process.env.CLIBUILDER_NON_INTERACTIVE==="true")return{isTTY:_,isCI:!0};let q=process.env.CI==="true"||process.env.CI==="1"||process.env.CONTINUOUS_INTEGRATION==="true"||process.env.CONTINUOUS_INTEGRATION==="1";return{isTTY:_,isCI:q}}function nY(_,q){let $={},f=new Map;for(let K of q)if(K.shape==="flag"){if(f.set(K.long,K.name),K.short)f.set(K.short,K.name)}for(let[K,P]of Object.entries(_.flags)){let u=f.get(K);if(u)$[u]=P}return $}function SY(_,q){let $=nY(_,q),f=MY(),K=NY();return{argv:{flags:$,positionals:_.positionals},stdin:f,env:K}}var y4=d(()=>{J2();S8();X2();i4()});async function dY(_,q,$){try{return await _(q)}catch(f){return`Validator error: ${f instanceof Error?f.message:String(f)}`}}function EY(_,q,$){let f=`Validation failed for '${_}': ${q}`;if($!==void 0&&$!==null){let K=JSON.stringify($);f+=` (value: ${K})`}return f}async function t4(_,q){for(let $ of _){if(!$.validate)continue;let f=q[$.name];if(f===void 0&&!$.required)continue;let K=await dY($.validate,f,$.name);if(K!==!0){let P=EY($.name,K,f);throw new k8(P)}}}var c4=d(()=>{S8()});function e4(_={}){let{level:q="info",stdout:$=process.stdout,stderr:f=process.stderr,colorScheme:K,showTimestamps:P=!1}=_,u=L4[q],j=Q8(K);function w(){let v=new Date,Y=String(v.getHours()).padStart(2,"0"),T=String(v.getMinutes()).padStart(2,"0"),z=String(v.getSeconds()).padStart(2,"0");return`[${Y}:${T}:${z}]`}function O(v,Y,T,z,W){if(L4[v]>u)return;let k=T;if(z.length>0){let A=z.map((p)=>{if(typeof p==="string")return p;try{return JSON.stringify(p)}catch{return String(p)}}).join(" ");k=`${T} ${A}`}if(P)k=`${w()} ${k}`;if(W&&j.enabled)k=W(k);Y.write(k+`
|
|
32
|
+
`)}return{debug(v,...Y){O("debug",$,v,Y,(T)=>j.accent(T))},info(v,...Y){O("info",$,v,Y,(T)=>j.primary(T))},warn(v,...Y){O("warn",f,v,Y,(T)=>j.warn(T))},error(v,...Y){O("error",f,v,Y,(T)=>j.error(T))}}}var L4;var x4=d(()=>{oq();L4={silent:0,error:1,warn:2,info:3,debug:4}});function aY(){let _=new Map;for(let[q,$]of Object.entries(Q)){for(let[f,K]of Object.entries($))Q[f]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},$[f]=Q[f],_.set(K[0],K[1]);Object.defineProperty(Q,q,{value:$,enumerable:!1})}return Object.defineProperty(Q,"codes",{value:_,enumerable:!1}),Q.color.close="\x1B[39m",Q.bgColor.close="\x1B[49m",Q.color.ansi=s4(),Q.color.ansi256=B4(),Q.color.ansi16m=F4(),Q.bgColor.ansi=s4(10),Q.bgColor.ansi256=B4(10),Q.bgColor.ansi16m=F4(10),Object.defineProperties(Q,{rgbToAnsi256:{value(q,$,f){if(q===$&&$===f){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round($/255*5)+Math.round(f/255*5)},enumerable:!1},hexToRgb:{value(q){let $=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!$)return[0,0,0];let[f]=$;if(f.length===3)f=[...f].map((P)=>P+P).join("");let K=Number.parseInt(f,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>Q.rgbToAnsi256(...Q.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let $,f,K;if(q>=232)$=((q-232)*10+8)/255,f=$,K=$;else{q-=16;let j=q%36;$=Math.floor(q/36)/5,f=Math.floor(j/6)/5,K=j%6/5}let P=Math.max($,f,K)*2;if(P===0)return 30;let u=30+(Math.round(K)<<2|Math.round(f)<<1|Math.round($));if(P===2)u+=60;return u},enumerable:!1},rgbToAnsi:{value:(q,$,f)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(q,$,f)),enumerable:!1},hexToAnsi:{value:(q)=>Q.ansi256ToAnsi(Q.hexToAnsi256(q)),enumerable:!1}}),Q}var s4=(_=0)=>(q)=>`\x1B[${q+_}m`,B4=(_=0)=>(q)=>`\x1B[${38+_};5;${q}m`,F4=(_=0)=>(q,$,f)=>`\x1B[${38+_};2;${q};${$};${f}m`,Q,ON,RY,IY,YN,oY,o8;var U4=d(()=>{Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},ON=Object.keys(Q.modifier),RY=Object.keys(Q.color),IY=Object.keys(Q.bgColor),YN=[...RY,...IY];oY=aY(),o8=oY});import j3 from"node:process";import iY from"node:os";import Q4 from"node:tty";function m8(_,q=globalThis.Deno?globalThis.Deno.args:j3.argv){let $=_.startsWith("-")?"":_.length===1?"-":"--",f=q.indexOf($+_),K=q.indexOf("--");return f!==-1&&(K===-1||f<K)}function gY(){if("FORCE_COLOR"in _8){if(_8.FORCE_COLOR==="true")return 1;if(_8.FORCE_COLOR==="false")return 0;return _8.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(_8.FORCE_COLOR,10),3)}}function lY(_){if(_===0)return!1;return{level:_,hasBasic:!0,has256:_>=2,has16m:_>=3}}function yY(_,{streamIsTTY:q,sniffFlags:$=!0}={}){let f=gY();if(f!==void 0)Uq=f;let K=$?Uq:f;if(K===0)return 0;if($){if(m8("color=16m")||m8("color=full")||m8("color=truecolor"))return 3;if(m8("color=256"))return 2}if("TF_BUILD"in _8&&"AGENT_NAME"in _8)return 1;if(_&&!q&&K===void 0)return 0;let P=K||0;if(_8.TERM==="dumb")return P;if(j3.platform==="win32"){let u=iY.release().split(".");if(Number(u[0])>=10&&Number(u[2])>=10586)return Number(u[2])>=14931?3:2;return 1}if("CI"in _8){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((u)=>(u in _8)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((u)=>(u in _8))||_8.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in _8)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_8.TEAMCITY_VERSION)?1:0;if(_8.COLORTERM==="truecolor")return 3;if(_8.TERM==="xterm-kitty")return 3;if(_8.TERM==="xterm-ghostty")return 3;if(_8.TERM==="wezterm")return 3;if("TERM_PROGRAM"in _8){let u=Number.parseInt((_8.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_8.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(_8.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_8.TERM))return 1;if("COLORTERM"in _8)return 1;return P}function _7(_,q={}){let $=yY(_,{streamIsTTY:_&&_.isTTY,...q});return lY($)}var _8,Uq,tY,q7;var $7=d(()=>{({env:_8}=j3);if(m8("no-color")||m8("no-colors")||m8("color=false")||m8("color=never"))Uq=0;else if(m8("color")||m8("colors")||m8("color=true")||m8("color=always"))Uq=1;tY={stdout:_7({isTTY:Q4.isatty(1)}),stderr:_7({isTTY:Q4.isatty(2)})},q7=tY});function f7(_,q,$){let f=_.indexOf(q);if(f===-1)return _;let K=q.length,P=0,u="";do u+=_.slice(P,f)+q+$,P=f+K,f=_.indexOf(q,P);while(f!==-1);return u+=_.slice(P),u}function K7(_,q,$,f){let K=0,P="";do{let u=_[f-1]==="\r";P+=_.slice(K,u?f-1:f)+q+(u?`\r
|
|
33
33
|
`:`
|
|
34
34
|
`)+$,K=f+1,f=_.indexOf(`
|
|
35
|
-
`,K)}while(f!==-1);return P+=_.slice(K),P}function e6(_){return
|
|
36
|
-
`);if(P!==-1)q=
|
|
37
|
-
${q}`,PT,uT,jT=(_,q,$)=>{let f=$===""?"":`with ${$.trim()}() `,K=KT.bind(null,f,q.toString());Object.defineProperty(K,"name",uT);let{writable:P,enumerable:u,configurable:j}=PT;Object.defineProperty(_,"toString",{value:K,writable:P,enumerable:u,configurable:j})};var z7=d(()=>{PT=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),uT=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name")});var _$,H7=(_,q={})=>{if(typeof _!=="function")throw new TypeError("Expected a function");let $,f=0,K=_.displayName||_.name||"<anonymous>",P=function(...u){if(_$.set(P,++f),f===1)$=_.apply(this,u),_=void 0;else if(q.throw===!0)throw new Error(`Function \`${K}\` can only be called once`);return $};return H3(P,_),_$.set(P,f),P},W7;var k7=d(()=>{z7();_$=new WeakMap;H7.callCount=(_)=>{if(!_$.has(_))throw new Error(`The given function \`${_.name}\` is not wrapped by the \`onetime\` package`);return _$.get(_)};W7=H7});import q$ from"node:process";var J7,wT,Z7;var h7=d(()=>{k7();_3();J7=q$.stderr.isTTY?q$.stderr:q$.stdout.isTTY?q$.stdout:void 0,wT=J7?W7(()=>{Bq(()=>{J7.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Z7=wT});import A7 from"node:process";var $$=!1,f6,W3;var X7=d(()=>{h7();f6={};f6.show=(_=A7.stderr)=>{if(!_.isTTY)return;$$=!1,_.write("\x1B[?25h")};f6.hide=(_=A7.stderr)=>{if(!_.isTTY)return;Z7(),$$=!0,_.write("\x1B[?25l")};f6.toggle=(_,q)=>{if(_!==void 0)$$=_;if($$)f6.show(q);else f6.hide(q)};W3=f6});var m7=X((dN,OT)=>{OT.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var k3=X((EN,D7)=>{var f$=Object.assign({},m7()),G7=Object.keys(f$);Object.defineProperty(f$,"random",{get(){let _=Math.floor(Math.random()*G7.length),q=G7[_];return f$[q]}});D7.exports=f$});function vT(){let _=new Map;for(let[q,$]of Object.entries(q8)){for(let[f,K]of Object.entries($))q8[f]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},$[f]=q8[f],_.set(K[0],K[1]);Object.defineProperty(q8,q,{value:$,enumerable:!1})}return Object.defineProperty(q8,"codes",{value:_,enumerable:!1}),q8.color.close="\x1B[39m",q8.bgColor.close="\x1B[49m",q8.color.ansi=C7(),q8.color.ansi256=r7(),q8.color.ansi16m=p7(),q8.bgColor.ansi=C7(10),q8.bgColor.ansi256=r7(10),q8.bgColor.ansi16m=p7(10),Object.defineProperties(q8,{rgbToAnsi256:{value(q,$,f){if(q===$&&$===f){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round($/255*5)+Math.round(f/255*5)},enumerable:!1},hexToRgb:{value(q){let $=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!$)return[0,0,0];let[f]=$;if(f.length===3)f=[...f].map((P)=>P+P).join("");let K=Number.parseInt(f,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>q8.rgbToAnsi256(...q8.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let $,f,K;if(q>=232)$=((q-232)*10+8)/255,f=$,K=$;else{q-=16;let j=q%36;$=Math.floor(q/36)/5,f=Math.floor(j/6)/5,K=j%6/5}let P=Math.max($,f,K)*2;if(P===0)return 30;let u=30+(Math.round(K)<<2|Math.round(f)<<1|Math.round($));if(P===2)u+=60;return u},enumerable:!1},rgbToAnsi:{value:(q,$,f)=>q8.ansi256ToAnsi(q8.rgbToAnsi256(q,$,f)),enumerable:!1},hexToAnsi:{value:(q)=>q8.ansi256ToAnsi(q8.hexToAnsi256(q)),enumerable:!1}}),q8}var C7=(_=0)=>(q)=>`\x1B[${q+_}m`,r7=(_=0)=>(q)=>`\x1B[${38+_};5;${q}m`,p7=(_=0)=>(q,$,f)=>`\x1B[${38+_};2;${q};${$};${f}m`,q8,RN,YT,TT,IN,zT,i8;var b7=d(()=>{q8={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},RN=Object.keys(q8.modifier),YT=Object.keys(q8.color),TT=Object.keys(q8.bgColor),IN=[...YT,...TT];zT=vT(),i8=zT});import J3 from"node:process";import HT from"node:os";import V7 from"node:tty";function G8(_,q=globalThis.Deno?globalThis.Deno.args:J3.argv){let $=_.startsWith("-")?"":_.length===1?"-":"--",f=q.indexOf($+_),K=q.indexOf("--");return f!==-1&&(K===-1||f<K)}function WT(){if("FORCE_COLOR"in $8){if($8.FORCE_COLOR==="true")return 1;if($8.FORCE_COLOR==="false")return 0;return $8.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($8.FORCE_COLOR,10),3)}}function kT(_){if(_===0)return!1;return{level:_,hasBasic:!0,has256:_>=2,has16m:_>=3}}function JT(_,{streamIsTTY:q,sniffFlags:$=!0}={}){let f=WT();if(f!==void 0)K$=f;let K=$?K$:f;if(K===0)return 0;if($){if(G8("color=16m")||G8("color=full")||G8("color=truecolor"))return 3;if(G8("color=256"))return 2}if("TF_BUILD"in $8&&"AGENT_NAME"in $8)return 1;if(_&&!q&&K===void 0)return 0;let P=K||0;if($8.TERM==="dumb")return P;if(J3.platform==="win32"){let u=HT.release().split(".");if(Number(u[0])>=10&&Number(u[2])>=10586)return Number(u[2])>=14931?3:2;return 1}if("CI"in $8){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((u)=>(u in $8)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((u)=>(u in $8))||$8.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in $8)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($8.TEAMCITY_VERSION)?1:0;if($8.COLORTERM==="truecolor")return 3;if($8.TERM==="xterm-kitty")return 3;if($8.TERM==="xterm-ghostty")return 3;if($8.TERM==="wezterm")return 3;if("TERM_PROGRAM"in $8){let u=Number.parseInt(($8.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($8.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test($8.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($8.TERM))return 1;if("COLORTERM"in $8)return 1;return P}function M7(_,q={}){let $=JT(_,{streamIsTTY:_&&_.isTTY,...q});return kT($)}var $8,K$,ZT,N7;var n7=d(()=>{({env:$8}=J3);if(G8("no-color")||G8("no-colors")||G8("color=false")||G8("color=never"))K$=0;else if(G8("color")||G8("colors")||G8("color=true")||G8("color=always"))K$=1;ZT={stdout:M7({isTTY:V7.isatty(1)}),stderr:M7({isTTY:V7.isatty(2)})},N7=ZT});function S7(_,q,$){let f=_.indexOf(q);if(f===-1)return _;let K=q.length,P=0,u="";do u+=_.slice(P,f)+q+$,P=f+K,f=_.indexOf(q,P);while(f!==-1);return u+=_.slice(P),u}function d7(_,q,$,f){let K=0,P="";do{let u=_[f-1]==="\r";P+=_.slice(K,u?f-1:f)+q+(u?`\r
|
|
35
|
+
`,K)}while(f!==-1);return P+=_.slice(K),P}function e6(_){return LY(_)}var P7,u7,w3,q6,L6,j7,$6,cY=(_,q={})=>{if(q.level&&!(Number.isInteger(q.level)&&q.level>=0&&q.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let $=P7?P7.level:0;_.level=q.level===void 0?$:q.level},LY=(_)=>{let q=(...$)=>$.join(" ");return cY(q,_),Object.setPrototypeOf(q,e6.prototype),q},O3=(_,q,$,...f)=>{if(_==="rgb"){if(q==="ansi16m")return o8[$].ansi16m(...f);if(q==="ansi256")return o8[$].ansi256(o8.rgbToAnsi256(...f));return o8[$].ansi(o8.rgbToAnsi(...f))}if(_==="hex")return O3("rgb",q,$,...o8.hexToRgb(...f));return o8[$][_](...f)},eY,xY,Y3=(_,q,$)=>{let f,K;if($===void 0)f=_,K=q;else f=$.openAll+_,K=q+$.closeAll;return{open:_,close:q,openAll:f,closeAll:K,parent:$}},Qq=(_,q,$)=>{let f=(...K)=>sY(f,K.length===1?""+K[0]:K.join(" "));return Object.setPrototypeOf(f,xY),f[w3]=_,f[q6]=q,f[L6]=$,f},sY=(_,q)=>{if(_.level<=0||!q)return _[L6]?"":q;let $=_[q6];if($===void 0)return q;let{openAll:f,closeAll:K}=$;if(q.includes("\x1B"))while($!==void 0)q=f7(q,$.close,$.open),$=$.parent;let P=q.indexOf(`
|
|
36
|
+
`);if(P!==-1)q=K7(q,K,f,P);return f+q+K},BY,AN,w7;var O7=d(()=>{U4();$7();({stdout:P7,stderr:u7}=q7),w3=Symbol("GENERATOR"),q6=Symbol("STYLER"),L6=Symbol("IS_EMPTY"),j7=["ansi","ansi","ansi256","ansi16m"],$6=Object.create(null);Object.setPrototypeOf(e6.prototype,Function.prototype);for(let[_,q]of Object.entries(o8))$6[_]={get(){let $=Qq(this,Y3(q.open,q.close,this[q6]),this[L6]);return Object.defineProperty(this,_,{value:$}),$}};$6.visible={get(){let _=Qq(this,this[q6],!0);return Object.defineProperty(this,"visible",{value:_}),_}};eY=["rgb","hex","ansi256"];for(let _ of eY){$6[_]={get(){let{level:$}=this;return function(...f){let K=Y3(O3(_,j7[$],"color",...f),o8.color.close,this[q6]);return Qq(this,K,this[L6])}}};let q="bg"+_[0].toUpperCase()+_.slice(1);$6[q]={get(){let{level:$}=this;return function(...f){let K=Y3(O3(_,j7[$],"bgColor",...f),o8.bgColor.close,this[q6]);return Qq(this,K,this[L6])}}}}xY=Object.defineProperties(()=>{},{...$6,level:{enumerable:!0,get(){return this[w3].level},set(_){this[w3].level=_}}});Object.defineProperties(e6.prototype,$6);BY=e6(),AN=e6({level:u7?u7.level:0}),w7=BY});function T3(_,q,{ignoreNonConfigurable:$=!1}={}){let{name:f}=_;for(let K of Reflect.ownKeys(q))FY(_,q,K,$);return QY(_,q),fT(_,q,f),_}var FY=(_,q,$,f)=>{if($==="length"||$==="prototype")return;if($==="arguments"||$==="caller")return;let K=Object.getOwnPropertyDescriptor(_,$),P=Object.getOwnPropertyDescriptor(q,$);if(!UY(K,P)&&f)return;Object.defineProperty(_,$,P)},UY=function(_,q){return _===void 0||_.configurable||_.writable===q.writable&&_.enumerable===q.enumerable&&_.configurable===q.configurable&&(_.writable||_.value===q.value)},QY=(_,q)=>{let $=Object.getPrototypeOf(q);if($===Object.getPrototypeOf(_))return;Object.setPrototypeOf(_,$)},_T=(_,q)=>`/* Wrapped ${_}*/
|
|
37
|
+
${q}`,qT,$T,fT=(_,q,$)=>{let f=$===""?"":`with ${$.trim()}() `,K=_T.bind(null,f,q.toString());Object.defineProperty(K,"name",$T);let{writable:P,enumerable:u,configurable:j}=qT;Object.defineProperty(_,"toString",{value:K,writable:P,enumerable:u,configurable:j})};var Y7=d(()=>{qT=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),$T=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name")});var _$,T7=(_,q={})=>{if(typeof _!=="function")throw new TypeError("Expected a function");let $,f=0,K=_.displayName||_.name||"<anonymous>",P=function(...u){if(_$.set(P,++f),f===1)$=_.apply(this,u),_=void 0;else if(q.throw===!0)throw new Error(`Function \`${K}\` can only be called once`);return $};return T3(P,_),_$.set(P,f),P},v7;var z7=d(()=>{Y7();_$=new WeakMap;T7.callCount=(_)=>{if(!_$.has(_))throw new Error(`The given function \`${_.name}\` is not wrapped by the \`onetime\` package`);return _$.get(_)};v7=T7});import q$ from"node:process";var H7,KT,W7;var k7=d(()=>{z7();Ff();H7=q$.stderr.isTTY?q$.stderr:q$.stdout.isTTY?q$.stdout:void 0,KT=H7?v7(()=>{Bq(()=>{H7.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},W7=KT});import J7 from"node:process";var $$=!1,f6,v3;var Z7=d(()=>{k7();f6={};f6.show=(_=J7.stderr)=>{if(!_.isTTY)return;$$=!1,_.write("\x1B[?25h")};f6.hide=(_=J7.stderr)=>{if(!_.isTTY)return;W7(),$$=!0,_.write("\x1B[?25l")};f6.toggle=(_,q)=>{if(_!==void 0)$$=_;if($$)f6.show(q);else f6.hide(q)};v3=f6});var h7=X((nN,PT)=>{PT.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var z3=X((SN,X7)=>{var f$=Object.assign({},h7()),A7=Object.keys(f$);Object.defineProperty(f$,"random",{get(){let _=Math.floor(Math.random()*A7.length),q=A7[_];return f$[q]}});X7.exports=f$});function wT(){let _=new Map;for(let[q,$]of Object.entries(q8)){for(let[f,K]of Object.entries($))q8[f]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},$[f]=q8[f],_.set(K[0],K[1]);Object.defineProperty(q8,q,{value:$,enumerable:!1})}return Object.defineProperty(q8,"codes",{value:_,enumerable:!1}),q8.color.close="\x1B[39m",q8.bgColor.close="\x1B[49m",q8.color.ansi=m7(),q8.color.ansi256=G7(),q8.color.ansi16m=D7(),q8.bgColor.ansi=m7(10),q8.bgColor.ansi256=G7(10),q8.bgColor.ansi16m=D7(10),Object.defineProperties(q8,{rgbToAnsi256:{value(q,$,f){if(q===$&&$===f){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round($/255*5)+Math.round(f/255*5)},enumerable:!1},hexToRgb:{value(q){let $=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!$)return[0,0,0];let[f]=$;if(f.length===3)f=[...f].map((P)=>P+P).join("");let K=Number.parseInt(f,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>q8.rgbToAnsi256(...q8.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let $,f,K;if(q>=232)$=((q-232)*10+8)/255,f=$,K=$;else{q-=16;let j=q%36;$=Math.floor(q/36)/5,f=Math.floor(j/6)/5,K=j%6/5}let P=Math.max($,f,K)*2;if(P===0)return 30;let u=30+(Math.round(K)<<2|Math.round(f)<<1|Math.round($));if(P===2)u+=60;return u},enumerable:!1},rgbToAnsi:{value:(q,$,f)=>q8.ansi256ToAnsi(q8.rgbToAnsi256(q,$,f)),enumerable:!1},hexToAnsi:{value:(q)=>q8.ansi256ToAnsi(q8.hexToAnsi256(q)),enumerable:!1}}),q8}var m7=(_=0)=>(q)=>`\x1B[${q+_}m`,G7=(_=0)=>(q)=>`\x1B[${38+_};5;${q}m`,D7=(_=0)=>(q,$,f)=>`\x1B[${38+_};2;${q};${$};${f}m`,q8,dN,uT,jT,EN,OT,i8;var C7=d(()=>{q8={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},dN=Object.keys(q8.modifier),uT=Object.keys(q8.color),jT=Object.keys(q8.bgColor),EN=[...uT,...jT];OT=wT(),i8=OT});import H3 from"node:process";import YT from"node:os";import r7 from"node:tty";function G8(_,q=globalThis.Deno?globalThis.Deno.args:H3.argv){let $=_.startsWith("-")?"":_.length===1?"-":"--",f=q.indexOf($+_),K=q.indexOf("--");return f!==-1&&(K===-1||f<K)}function TT(){if("FORCE_COLOR"in $8){if($8.FORCE_COLOR==="true")return 1;if($8.FORCE_COLOR==="false")return 0;return $8.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($8.FORCE_COLOR,10),3)}}function vT(_){if(_===0)return!1;return{level:_,hasBasic:!0,has256:_>=2,has16m:_>=3}}function zT(_,{streamIsTTY:q,sniffFlags:$=!0}={}){let f=TT();if(f!==void 0)K$=f;let K=$?K$:f;if(K===0)return 0;if($){if(G8("color=16m")||G8("color=full")||G8("color=truecolor"))return 3;if(G8("color=256"))return 2}if("TF_BUILD"in $8&&"AGENT_NAME"in $8)return 1;if(_&&!q&&K===void 0)return 0;let P=K||0;if($8.TERM==="dumb")return P;if(H3.platform==="win32"){let u=YT.release().split(".");if(Number(u[0])>=10&&Number(u[2])>=10586)return Number(u[2])>=14931?3:2;return 1}if("CI"in $8){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((u)=>(u in $8)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((u)=>(u in $8))||$8.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in $8)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($8.TEAMCITY_VERSION)?1:0;if($8.COLORTERM==="truecolor")return 3;if($8.TERM==="xterm-kitty")return 3;if($8.TERM==="xterm-ghostty")return 3;if($8.TERM==="wezterm")return 3;if("TERM_PROGRAM"in $8){let u=Number.parseInt(($8.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($8.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test($8.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($8.TERM))return 1;if("COLORTERM"in $8)return 1;return P}function p7(_,q={}){let $=zT(_,{streamIsTTY:_&&_.isTTY,...q});return vT($)}var $8,K$,HT,b7;var V7=d(()=>{({env:$8}=H3);if(G8("no-color")||G8("no-colors")||G8("color=false")||G8("color=never"))K$=0;else if(G8("color")||G8("colors")||G8("color=true")||G8("color=always"))K$=1;HT={stdout:p7({isTTY:r7.isatty(1)}),stderr:p7({isTTY:r7.isatty(2)})},b7=HT});function M7(_,q,$){let f=_.indexOf(q);if(f===-1)return _;let K=q.length,P=0,u="";do u+=_.slice(P,f)+q+$,P=f+K,f=_.indexOf(q,P);while(f!==-1);return u+=_.slice(P),u}function N7(_,q,$,f){let K=0,P="";do{let u=_[f-1]==="\r";P+=_.slice(K,u?f-1:f)+q+(u?`\r
|
|
38
38
|
`:`
|
|
39
39
|
`)+$,K=f+1,f=_.indexOf(`
|
|
40
|
-
`,K)}while(f!==-1);return P+=_.slice(K),P}function s6(_){return
|
|
41
|
-
`);if(P!==-1)q=d7(q,K,f,P);return f+q+K},DT,eN,$_;var a7=d(()=>{b7();n7();({stdout:E7,stderr:R7}=N7),Z3=Symbol("GENERATOR"),K6=Symbol("STYLER"),x6=Symbol("IS_EMPTY"),I7=["ansi","ansi","ansi256","ansi16m"],P6=Object.create(null);Object.setPrototypeOf(s6.prototype,Function.prototype);for(let[_,q]of Object.entries(i8))P6[_]={get(){let $=P$(this,A3(q.open,q.close,this[K6]),this[x6]);return Object.defineProperty(this,_,{value:$}),$}};P6.visible={get(){let _=P$(this,this[K6],!0);return Object.defineProperty(this,"visible",{value:_}),_}};XT=["rgb","hex","ansi256"];for(let _ of XT){P6[_]={get(){let{level:$}=this;return function(...f){let K=A3(h3(_,I7[$],"color",...f),i8.color.close,this[K6]);return P$(this,K,this[x6])}}};let q="bg"+_[0].toUpperCase()+_.slice(1);P6[q]={get(){let{level:$}=this;return function(...f){let K=A3(h3(_,I7[$],"bgColor",...f),i8.bgColor.close,this[K6]);return P$(this,K,this[x6])}}}}mT=Object.defineProperties(()=>{},{...P6,level:{enumerable:!0,get(){return this[Z3].level},set(_){this[Z3].level=_}}});Object.defineProperties(s6.prototype,P6);DT=s6(),eN=s6({level:R7?R7.level:0}),$_=DT});import g8 from"node:process";function X3(){if(g8.platform!=="win32")return g8.env.TERM!=="linux";return Boolean(g8.env.CI)||Boolean(g8.env.WT_SESSION)||Boolean(g8.env.TERMINUS_SUBLIME)||g8.env.ConEmuTask==="{cmd::Cmder}"||g8.env.TERM_PROGRAM==="Terminus-Sublime"||g8.env.TERM_PROGRAM==="vscode"||g8.env.TERM==="xterm-256color"||g8.env.TERM==="alacritty"||g8.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var o7=()=>{};var CT,rT,pT,B6;var i7=d(()=>{a7();o7();CT={info:$_.blue("ℹ"),success:$_.green("✔"),warning:$_.yellow("⚠"),error:$_.red("✖")},rT={info:$_.blue("i"),success:$_.green("√"),warning:$_.yellow("‼"),error:$_.red("×")},pT=X3()?CT:rT,B6=pT});function m3({onlyFirst:_=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",_?void 0:"g")}function G3(_){if(typeof _!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof _}\``);return _.replace(bT,"")}var bT;var g7=d(()=>{bT=m3()});function D3({onlyFirst:_=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",_?void 0:"g")}function C3(_){if(typeof _!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof _}\``);return _.replace(VT,"")}var VT;var l7=d(()=>{VT=D3()});function y7(_){return _===161||_===164||_===167||_===168||_===170||_===173||_===174||_>=176&&_<=180||_>=182&&_<=186||_>=188&&_<=191||_===198||_===208||_===215||_===216||_>=222&&_<=225||_===230||_>=232&&_<=234||_===236||_===237||_===240||_===242||_===243||_>=247&&_<=250||_===252||_===254||_===257||_===273||_===275||_===283||_===294||_===295||_===299||_>=305&&_<=307||_===312||_>=319&&_<=322||_===324||_>=328&&_<=331||_===333||_===338||_===339||_===358||_===359||_===363||_===462||_===464||_===466||_===468||_===470||_===472||_===474||_===476||_===593||_===609||_===708||_===711||_>=713&&_<=715||_===717||_===720||_>=728&&_<=731||_===733||_===735||_>=768&&_<=879||_>=913&&_<=929||_>=931&&_<=937||_>=945&&_<=961||_>=963&&_<=969||_===1025||_>=1040&&_<=1103||_===1105||_===8208||_>=8211&&_<=8214||_===8216||_===8217||_===8220||_===8221||_>=8224&&_<=8226||_>=8228&&_<=8231||_===8240||_===8242||_===8243||_===8245||_===8251||_===8254||_===8308||_===8319||_>=8321&&_<=8324||_===8364||_===8451||_===8453||_===8457||_===8467||_===8470||_===8481||_===8482||_===8486||_===8491||_===8531||_===8532||_>=8539&&_<=8542||_>=8544&&_<=8555||_>=8560&&_<=8569||_===8585||_>=8592&&_<=8601||_===8632||_===8633||_===8658||_===8660||_===8679||_===8704||_===8706||_===8707||_===8711||_===8712||_===8715||_===8719||_===8721||_===8725||_===8730||_>=8733&&_<=8736||_===8739||_===8741||_>=8743&&_<=8748||_===8750||_>=8756&&_<=8759||_===8764||_===8765||_===8776||_===8780||_===8786||_===8800||_===8801||_>=8804&&_<=8807||_===8810||_===8811||_===8814||_===8815||_===8834||_===8835||_===8838||_===8839||_===8853||_===8857||_===8869||_===8895||_===8978||_>=9312&&_<=9449||_>=9451&&_<=9547||_>=9552&&_<=9587||_>=9600&&_<=9615||_>=9618&&_<=9621||_===9632||_===9633||_>=9635&&_<=9641||_===9650||_===9651||_===9654||_===9655||_===9660||_===9661||_===9664||_===9665||_>=9670&&_<=9672||_===9675||_>=9678&&_<=9681||_>=9698&&_<=9701||_===9711||_===9733||_===9734||_===9737||_===9742||_===9743||_===9756||_===9758||_===9792||_===9794||_===9824||_===9825||_>=9827&&_<=9829||_>=9831&&_<=9834||_===9836||_===9837||_===9839||_===9886||_===9887||_===9919||_>=9926&&_<=9933||_>=9935&&_<=9939||_>=9941&&_<=9953||_===9955||_===9960||_===9961||_>=9963&&_<=9969||_===9972||_>=9974&&_<=9977||_===9979||_===9980||_===9982||_===9983||_===10045||_>=10102&&_<=10111||_>=11094&&_<=11097||_>=12872&&_<=12879||_>=57344&&_<=63743||_>=65024&&_<=65039||_===65533||_>=127232&&_<=127242||_>=127248&&_<=127277||_>=127280&&_<=127337||_>=127344&&_<=127373||_===127375||_===127376||_>=127387&&_<=127404||_>=917760&&_<=917999||_>=983040&&_<=1048573||_>=1048576&&_<=1114109}function t7(_){return _===12288||_>=65281&&_<=65376||_>=65504&&_<=65510}function c7(_){return _>=4352&&_<=4447||_===8986||_===8987||_===9001||_===9002||_>=9193&&_<=9196||_===9200||_===9203||_===9725||_===9726||_===9748||_===9749||_>=9776&&_<=9783||_>=9800&&_<=9811||_===9855||_>=9866&&_<=9871||_===9875||_===9889||_===9898||_===9899||_===9917||_===9918||_===9924||_===9925||_===9934||_===9940||_===9962||_===9970||_===9971||_===9973||_===9978||_===9981||_===9989||_===9994||_===9995||_===10024||_===10060||_===10062||_>=10067&&_<=10069||_===10071||_>=10133&&_<=10135||_===10160||_===10175||_===11035||_===11036||_===11088||_===11093||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12287||_>=12289&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12591||_>=12593&&_<=12686||_>=12688&&_<=12773||_>=12783&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=94176&&_<=94180||_>=94192&&_<=94198||_>=94208&&_<=101589||_>=101631&&_<=101662||_>=101760&&_<=101874||_>=110576&&_<=110579||_>=110581&&_<=110587||_===110589||_===110590||_>=110592&&_<=110882||_===110898||_>=110928&&_<=110930||_===110933||_>=110948&&_<=110951||_>=110960&&_<=111355||_>=119552&&_<=119638||_>=119648&&_<=119670||_===126980||_===127183||_===127374||_>=127377&&_<=127386||_>=127488&&_<=127490||_>=127504&&_<=127547||_>=127552&&_<=127560||_===127568||_===127569||_>=127584&&_<=127589||_>=127744&&_<=127776||_>=127789&&_<=127797||_>=127799&&_<=127868||_>=127870&&_<=127891||_>=127904&&_<=127946||_>=127951&&_<=127955||_>=127968&&_<=127984||_===127988||_>=127992&&_<=128062||_===128064||_>=128066&&_<=128252||_>=128255&&_<=128317||_>=128331&&_<=128334||_>=128336&&_<=128359||_===128378||_===128405||_===128406||_===128420||_>=128507&&_<=128591||_>=128640&&_<=128709||_===128716||_>=128720&&_<=128722||_>=128725&&_<=128728||_>=128732&&_<=128735||_===128747||_===128748||_>=128756&&_<=128764||_>=128992&&_<=129003||_===129008||_>=129292&&_<=129338||_>=129340&&_<=129349||_>=129351&&_<=129535||_>=129648&&_<=129660||_>=129664&&_<=129674||_>=129678&&_<=129734||_===129736||_>=129741&&_<=129756||_>=129759&&_<=129770||_>=129775&&_<=129784||_>=131072&&_<=196605||_>=196608&&_<=262141}var L7=()=>{};function MT(_){if(!Number.isSafeInteger(_))throw new TypeError(`Expected a code point, got \`${typeof _}\`.`)}function e7(_,{ambiguousAsWide:q=!1}={}){if(MT(_),t7(_)||c7(_)||q&&y7(_))return 2;return 1}var x7=d(()=>{L7()});var B7=X((Yn,s7)=>{s7.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});function r3(_,q={}){if(typeof _!=="string"||_.length===0)return 0;let{ambiguousIsNarrow:$=!0,countAnsiEscapeCodes:f=!1}=q;if(!f)_=C3(_);if(_.length===0)return 0;let K=0,P={ambiguousAsWide:!$};for(let{segment:u}of NT.segment(_)){let j=u.codePointAt(0);if(j<=31||j>=127&&j<=159)continue;if(j>=8203&&j<=8207||j===65279)continue;if(j>=768&&j<=879||j>=6832&&j<=6911||j>=7616&&j<=7679||j>=8400&&j<=8447||j>=65056&&j<=65071)continue;if(j>=55296&&j<=57343)continue;if(j>=65024&&j<=65039)continue;if(nT.test(u))continue;if(F7.default().test(u)){K+=2;continue}K+=e7(j,P)}return K}var F7,NT,nT;var U7=d(()=>{l7();x7();F7=W8(B7(),1),NT=new Intl.Segmenter,nT=/^\p{Default_Ignorable_Code_Point}$/u});function p3({stream:_=process.stdout}={}){return Boolean(_&&_.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}import Q7 from"node:process";function b3(){let{env:_}=Q7,{TERM:q,TERM_PROGRAM:$}=_;if(Q7.platform!=="win32")return q!=="linux";return Boolean(_.WT_SESSION)||Boolean(_.TERMINUS_SUBLIME)||_.ConEmuTask==="{cmd::Cmder}"||$==="Terminus-Sublime"||$==="vscode"||q==="xterm-256color"||q==="alacritty"||q==="rxvt-unicode"||q==="rxvt-unicode-256color"||_.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var _u=()=>{};import s8 from"node:process";class qu{#f=0;start(){if(this.#f++,this.#f===1)this.#$()}stop(){if(this.#f<=0)throw new Error("`stop` called more times than `start`");if(this.#f--,this.#f===0)this.#_()}#$(){if(s8.platform==="win32"||!s8.stdin.isTTY)return;s8.stdin.setRawMode(!0),s8.stdin.on("data",this.#P),s8.stdin.resume()}#_(){if(!s8.stdin.isTTY)return;s8.stdin.off("data",this.#P),s8.stdin.pause(),s8.stdin.setRawMode(!1)}#P(_){if(_[0]===ST)s8.emit("SIGINT")}}var ST=3,dT,V3;var $u=d(()=>{dT=new qu,V3=dT});import u$ from"node:process";class fu{#f=0;#$=!1;#_=0;#P=-1;#v=0;#q;#u;#K;#z;#W;#O;#Y;#T;#k;#j;#w;color;constructor(_){if(typeof _==="string")_={text:_};if(this.#q={color:"cyan",stream:u$.stderr,discardStdin:!0,hideCursor:!0,..._},this.color=this.#q.color,this.spinner=this.#q.spinner,this.#W=this.#q.interval,this.#K=this.#q.stream,this.#O=typeof this.#q.isEnabled==="boolean"?this.#q.isEnabled:p3({stream:this.#K}),this.#Y=typeof this.#q.isSilent==="boolean"?this.#q.isSilent:!1,this.text=this.#q.text,this.prefixText=this.#q.prefixText,this.suffixText=this.#q.suffixText,this.indent=this.#q.indent,u$.env.NODE_ENV==="test")this._stream=this.#K,this._isEnabled=this.#O,Object.defineProperty(this,"_linesToClear",{get(){return this.#f},set(q){this.#f=q}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#P}}),Object.defineProperty(this,"_lineCount",{get(){return this.#_}})}get indent(){return this.#T}set indent(_=0){if(!(_>=0&&Number.isInteger(_)))throw new Error("The `indent` option must be an integer from 0 and up");this.#T=_,this.#H()}get interval(){return this.#W??this.#u.interval??100}get spinner(){return this.#u}set spinner(_){if(this.#P=-1,this.#W=void 0,typeof _==="object"){if(_.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#u=_}else if(!b3())this.#u=F6.default.line;else if(_===void 0)this.#u=F6.default.dots;else if(_!=="default"&&F6.default[_])this.#u=F6.default[_];else throw new Error(`There is no built-in spinner named '${_}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#k}set text(_=""){this.#k=_,this.#H()}get prefixText(){return this.#j}set prefixText(_=""){this.#j=_,this.#H()}get suffixText(){return this.#w}set suffixText(_=""){this.#w=_,this.#H()}get isSpinning(){return this.#z!==void 0}#J(_=this.#j,q=" "){if(typeof _==="string"&&_!=="")return _+q;if(typeof _==="function")return _()+q;return""}#Z(_=this.#w,q=" "){if(typeof _==="string"&&_!=="")return q+_;if(typeof _==="function")return q+_();return""}#H(){let _=this.#K.columns??80,q=this.#J(this.#j,"-"),$=this.#Z(this.#w,"-"),f=" ".repeat(this.#T)+q+"--"+this.#k+"--"+$;this.#_=0;for(let K of G3(f).split(`
|
|
42
|
-
`))this.#_+=Math.max(1,Math.ceil(
|
|
43
|
-
`);return this}if(this.isSpinning)return this;if(this.#q.hideCursor)
|
|
44
|
-
`;return this.stop(),this.#K.write(O),this}}function
|
|
40
|
+
`,K)}while(f!==-1);return P+=_.slice(K),P}function s6(_){return kT(_)}var n7,S7,W3,K6,x6,d7,P6,WT=(_,q={})=>{if(q.level&&!(Number.isInteger(q.level)&&q.level>=0&&q.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let $=n7?n7.level:0;_.level=q.level===void 0?$:q.level},kT=(_)=>{let q=(...$)=>$.join(" ");return WT(q,_),Object.setPrototypeOf(q,s6.prototype),q},k3=(_,q,$,...f)=>{if(_==="rgb"){if(q==="ansi16m")return i8[$].ansi16m(...f);if(q==="ansi256")return i8[$].ansi256(i8.rgbToAnsi256(...f));return i8[$].ansi(i8.rgbToAnsi(...f))}if(_==="hex")return k3("rgb",q,$,...i8.hexToRgb(...f));return i8[$][_](...f)},JT,ZT,J3=(_,q,$)=>{let f,K;if($===void 0)f=_,K=q;else f=$.openAll+_,K=q+$.closeAll;return{open:_,close:q,openAll:f,closeAll:K,parent:$}},P$=(_,q,$)=>{let f=(...K)=>hT(f,K.length===1?""+K[0]:K.join(" "));return Object.setPrototypeOf(f,ZT),f[W3]=_,f[K6]=q,f[x6]=$,f},hT=(_,q)=>{if(_.level<=0||!q)return _[x6]?"":q;let $=_[K6];if($===void 0)return q;let{openAll:f,closeAll:K}=$;if(q.includes("\x1B"))while($!==void 0)q=M7(q,$.close,$.open),$=$.parent;let P=q.indexOf(`
|
|
41
|
+
`);if(P!==-1)q=N7(q,K,f,P);return f+q+K},AT,cN,$_;var E7=d(()=>{C7();V7();({stdout:n7,stderr:S7}=b7),W3=Symbol("GENERATOR"),K6=Symbol("STYLER"),x6=Symbol("IS_EMPTY"),d7=["ansi","ansi","ansi256","ansi16m"],P6=Object.create(null);Object.setPrototypeOf(s6.prototype,Function.prototype);for(let[_,q]of Object.entries(i8))P6[_]={get(){let $=P$(this,J3(q.open,q.close,this[K6]),this[x6]);return Object.defineProperty(this,_,{value:$}),$}};P6.visible={get(){let _=P$(this,this[K6],!0);return Object.defineProperty(this,"visible",{value:_}),_}};JT=["rgb","hex","ansi256"];for(let _ of JT){P6[_]={get(){let{level:$}=this;return function(...f){let K=J3(k3(_,d7[$],"color",...f),i8.color.close,this[K6]);return P$(this,K,this[x6])}}};let q="bg"+_[0].toUpperCase()+_.slice(1);P6[q]={get(){let{level:$}=this;return function(...f){let K=J3(k3(_,d7[$],"bgColor",...f),i8.bgColor.close,this[K6]);return P$(this,K,this[x6])}}}}ZT=Object.defineProperties(()=>{},{...P6,level:{enumerable:!0,get(){return this[W3].level},set(_){this[W3].level=_}}});Object.defineProperties(s6.prototype,P6);AT=s6(),cN=s6({level:S7?S7.level:0}),$_=AT});import g8 from"node:process";function Z3(){if(g8.platform!=="win32")return g8.env.TERM!=="linux";return Boolean(g8.env.CI)||Boolean(g8.env.WT_SESSION)||Boolean(g8.env.TERMINUS_SUBLIME)||g8.env.ConEmuTask==="{cmd::Cmder}"||g8.env.TERM_PROGRAM==="Terminus-Sublime"||g8.env.TERM_PROGRAM==="vscode"||g8.env.TERM==="xterm-256color"||g8.env.TERM==="alacritty"||g8.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var R7=()=>{};var XT,mT,GT,B6;var I7=d(()=>{E7();R7();XT={info:$_.blue("ℹ"),success:$_.green("✔"),warning:$_.yellow("⚠"),error:$_.red("✖")},mT={info:$_.blue("i"),success:$_.green("√"),warning:$_.yellow("‼"),error:$_.red("×")},GT=Z3()?XT:mT,B6=GT});function h3({onlyFirst:_=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",_?void 0:"g")}function A3(_){if(typeof _!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof _}\``);return _.replace(DT,"")}var DT;var a7=d(()=>{DT=h3()});function X3({onlyFirst:_=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",_?void 0:"g")}function m3(_){if(typeof _!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof _}\``);return _.replace(CT,"")}var CT;var o7=d(()=>{CT=X3()});function i7(_){return _===161||_===164||_===167||_===168||_===170||_===173||_===174||_>=176&&_<=180||_>=182&&_<=186||_>=188&&_<=191||_===198||_===208||_===215||_===216||_>=222&&_<=225||_===230||_>=232&&_<=234||_===236||_===237||_===240||_===242||_===243||_>=247&&_<=250||_===252||_===254||_===257||_===273||_===275||_===283||_===294||_===295||_===299||_>=305&&_<=307||_===312||_>=319&&_<=322||_===324||_>=328&&_<=331||_===333||_===338||_===339||_===358||_===359||_===363||_===462||_===464||_===466||_===468||_===470||_===472||_===474||_===476||_===593||_===609||_===708||_===711||_>=713&&_<=715||_===717||_===720||_>=728&&_<=731||_===733||_===735||_>=768&&_<=879||_>=913&&_<=929||_>=931&&_<=937||_>=945&&_<=961||_>=963&&_<=969||_===1025||_>=1040&&_<=1103||_===1105||_===8208||_>=8211&&_<=8214||_===8216||_===8217||_===8220||_===8221||_>=8224&&_<=8226||_>=8228&&_<=8231||_===8240||_===8242||_===8243||_===8245||_===8251||_===8254||_===8308||_===8319||_>=8321&&_<=8324||_===8364||_===8451||_===8453||_===8457||_===8467||_===8470||_===8481||_===8482||_===8486||_===8491||_===8531||_===8532||_>=8539&&_<=8542||_>=8544&&_<=8555||_>=8560&&_<=8569||_===8585||_>=8592&&_<=8601||_===8632||_===8633||_===8658||_===8660||_===8679||_===8704||_===8706||_===8707||_===8711||_===8712||_===8715||_===8719||_===8721||_===8725||_===8730||_>=8733&&_<=8736||_===8739||_===8741||_>=8743&&_<=8748||_===8750||_>=8756&&_<=8759||_===8764||_===8765||_===8776||_===8780||_===8786||_===8800||_===8801||_>=8804&&_<=8807||_===8810||_===8811||_===8814||_===8815||_===8834||_===8835||_===8838||_===8839||_===8853||_===8857||_===8869||_===8895||_===8978||_>=9312&&_<=9449||_>=9451&&_<=9547||_>=9552&&_<=9587||_>=9600&&_<=9615||_>=9618&&_<=9621||_===9632||_===9633||_>=9635&&_<=9641||_===9650||_===9651||_===9654||_===9655||_===9660||_===9661||_===9664||_===9665||_>=9670&&_<=9672||_===9675||_>=9678&&_<=9681||_>=9698&&_<=9701||_===9711||_===9733||_===9734||_===9737||_===9742||_===9743||_===9756||_===9758||_===9792||_===9794||_===9824||_===9825||_>=9827&&_<=9829||_>=9831&&_<=9834||_===9836||_===9837||_===9839||_===9886||_===9887||_===9919||_>=9926&&_<=9933||_>=9935&&_<=9939||_>=9941&&_<=9953||_===9955||_===9960||_===9961||_>=9963&&_<=9969||_===9972||_>=9974&&_<=9977||_===9979||_===9980||_===9982||_===9983||_===10045||_>=10102&&_<=10111||_>=11094&&_<=11097||_>=12872&&_<=12879||_>=57344&&_<=63743||_>=65024&&_<=65039||_===65533||_>=127232&&_<=127242||_>=127248&&_<=127277||_>=127280&&_<=127337||_>=127344&&_<=127373||_===127375||_===127376||_>=127387&&_<=127404||_>=917760&&_<=917999||_>=983040&&_<=1048573||_>=1048576&&_<=1114109}function g7(_){return _===12288||_>=65281&&_<=65376||_>=65504&&_<=65510}function l7(_){return _>=4352&&_<=4447||_===8986||_===8987||_===9001||_===9002||_>=9193&&_<=9196||_===9200||_===9203||_===9725||_===9726||_===9748||_===9749||_>=9776&&_<=9783||_>=9800&&_<=9811||_===9855||_>=9866&&_<=9871||_===9875||_===9889||_===9898||_===9899||_===9917||_===9918||_===9924||_===9925||_===9934||_===9940||_===9962||_===9970||_===9971||_===9973||_===9978||_===9981||_===9989||_===9994||_===9995||_===10024||_===10060||_===10062||_>=10067&&_<=10069||_===10071||_>=10133&&_<=10135||_===10160||_===10175||_===11035||_===11036||_===11088||_===11093||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12287||_>=12289&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12591||_>=12593&&_<=12686||_>=12688&&_<=12773||_>=12783&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=94176&&_<=94180||_>=94192&&_<=94198||_>=94208&&_<=101589||_>=101631&&_<=101662||_>=101760&&_<=101874||_>=110576&&_<=110579||_>=110581&&_<=110587||_===110589||_===110590||_>=110592&&_<=110882||_===110898||_>=110928&&_<=110930||_===110933||_>=110948&&_<=110951||_>=110960&&_<=111355||_>=119552&&_<=119638||_>=119648&&_<=119670||_===126980||_===127183||_===127374||_>=127377&&_<=127386||_>=127488&&_<=127490||_>=127504&&_<=127547||_>=127552&&_<=127560||_===127568||_===127569||_>=127584&&_<=127589||_>=127744&&_<=127776||_>=127789&&_<=127797||_>=127799&&_<=127868||_>=127870&&_<=127891||_>=127904&&_<=127946||_>=127951&&_<=127955||_>=127968&&_<=127984||_===127988||_>=127992&&_<=128062||_===128064||_>=128066&&_<=128252||_>=128255&&_<=128317||_>=128331&&_<=128334||_>=128336&&_<=128359||_===128378||_===128405||_===128406||_===128420||_>=128507&&_<=128591||_>=128640&&_<=128709||_===128716||_>=128720&&_<=128722||_>=128725&&_<=128728||_>=128732&&_<=128735||_===128747||_===128748||_>=128756&&_<=128764||_>=128992&&_<=129003||_===129008||_>=129292&&_<=129338||_>=129340&&_<=129349||_>=129351&&_<=129535||_>=129648&&_<=129660||_>=129664&&_<=129674||_>=129678&&_<=129734||_===129736||_>=129741&&_<=129756||_>=129759&&_<=129770||_>=129775&&_<=129784||_>=131072&&_<=196605||_>=196608&&_<=262141}var y7=()=>{};function rT(_){if(!Number.isSafeInteger(_))throw new TypeError(`Expected a code point, got \`${typeof _}\`.`)}function t7(_,{ambiguousAsWide:q=!1}={}){if(rT(_),g7(_)||l7(_)||q&&i7(_))return 2;return 1}var c7=d(()=>{y7()});var e7=X((wn,L7)=>{L7.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});function G3(_,q={}){if(typeof _!=="string"||_.length===0)return 0;let{ambiguousIsNarrow:$=!0,countAnsiEscapeCodes:f=!1}=q;if(!f)_=m3(_);if(_.length===0)return 0;let K=0,P={ambiguousAsWide:!$};for(let{segment:u}of pT.segment(_)){let j=u.codePointAt(0);if(j<=31||j>=127&&j<=159)continue;if(j>=8203&&j<=8207||j===65279)continue;if(j>=768&&j<=879||j>=6832&&j<=6911||j>=7616&&j<=7679||j>=8400&&j<=8447||j>=65056&&j<=65071)continue;if(j>=55296&&j<=57343)continue;if(j>=65024&&j<=65039)continue;if(bT.test(u))continue;if(x7.default().test(u)){K+=2;continue}K+=t7(j,P)}return K}var x7,pT,bT;var s7=d(()=>{o7();c7();x7=W8(e7(),1),pT=new Intl.Segmenter,bT=/^\p{Default_Ignorable_Code_Point}$/u});function D3({stream:_=process.stdout}={}){return Boolean(_&&_.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}import B7 from"node:process";function C3(){let{env:_}=B7,{TERM:q,TERM_PROGRAM:$}=_;if(B7.platform!=="win32")return q!=="linux";return Boolean(_.WT_SESSION)||Boolean(_.TERMINUS_SUBLIME)||_.ConEmuTask==="{cmd::Cmder}"||$==="Terminus-Sublime"||$==="vscode"||q==="xterm-256color"||q==="alacritty"||q==="rxvt-unicode"||q==="rxvt-unicode-256color"||_.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var F7=()=>{};import s8 from"node:process";class U7{#f=0;start(){if(this.#f++,this.#f===1)this.#$()}stop(){if(this.#f<=0)throw new Error("`stop` called more times than `start`");if(this.#f--,this.#f===0)this.#_()}#$(){if(s8.platform==="win32"||!s8.stdin.isTTY)return;s8.stdin.setRawMode(!0),s8.stdin.on("data",this.#P),s8.stdin.resume()}#_(){if(!s8.stdin.isTTY)return;s8.stdin.off("data",this.#P),s8.stdin.pause(),s8.stdin.setRawMode(!1)}#P(_){if(_[0]===VT)s8.emit("SIGINT")}}var VT=3,MT,r3;var Q7=d(()=>{MT=new U7,r3=MT});import u$ from"node:process";class _u{#f=0;#$=!1;#_=0;#P=-1;#v=0;#q;#u;#K;#z;#W;#O;#Y;#T;#k;#j;#w;color;constructor(_){if(typeof _==="string")_={text:_};if(this.#q={color:"cyan",stream:u$.stderr,discardStdin:!0,hideCursor:!0,..._},this.color=this.#q.color,this.spinner=this.#q.spinner,this.#W=this.#q.interval,this.#K=this.#q.stream,this.#O=typeof this.#q.isEnabled==="boolean"?this.#q.isEnabled:D3({stream:this.#K}),this.#Y=typeof this.#q.isSilent==="boolean"?this.#q.isSilent:!1,this.text=this.#q.text,this.prefixText=this.#q.prefixText,this.suffixText=this.#q.suffixText,this.indent=this.#q.indent,u$.env.NODE_ENV==="test")this._stream=this.#K,this._isEnabled=this.#O,Object.defineProperty(this,"_linesToClear",{get(){return this.#f},set(q){this.#f=q}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#P}}),Object.defineProperty(this,"_lineCount",{get(){return this.#_}})}get indent(){return this.#T}set indent(_=0){if(!(_>=0&&Number.isInteger(_)))throw new Error("The `indent` option must be an integer from 0 and up");this.#T=_,this.#H()}get interval(){return this.#W??this.#u.interval??100}get spinner(){return this.#u}set spinner(_){if(this.#P=-1,this.#W=void 0,typeof _==="object"){if(_.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#u=_}else if(!C3())this.#u=F6.default.line;else if(_===void 0)this.#u=F6.default.dots;else if(_!=="default"&&F6.default[_])this.#u=F6.default[_];else throw new Error(`There is no built-in spinner named '${_}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#k}set text(_=""){this.#k=_,this.#H()}get prefixText(){return this.#j}set prefixText(_=""){this.#j=_,this.#H()}get suffixText(){return this.#w}set suffixText(_=""){this.#w=_,this.#H()}get isSpinning(){return this.#z!==void 0}#J(_=this.#j,q=" "){if(typeof _==="string"&&_!=="")return _+q;if(typeof _==="function")return _()+q;return""}#Z(_=this.#w,q=" "){if(typeof _==="string"&&_!=="")return q+_;if(typeof _==="function")return q+_();return""}#H(){let _=this.#K.columns??80,q=this.#J(this.#j,"-"),$=this.#Z(this.#w,"-"),f=" ".repeat(this.#T)+q+"--"+this.#k+"--"+$;this.#_=0;for(let K of A3(f).split(`
|
|
42
|
+
`))this.#_+=Math.max(1,Math.ceil(G3(K,{countAnsiEscapeCodes:!0})/_))}get isEnabled(){return this.#O&&!this.#Y}set isEnabled(_){if(typeof _!=="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#O=_}get isSilent(){return this.#Y}set isSilent(_){if(typeof _!=="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#Y=_}frame(){let _=Date.now();if(this.#P===-1||_-this.#v>=this.interval)this.#P=++this.#P%this.#u.frames.length,this.#v=_;let{frames:q}=this.#u,$=q[this.#P];if(this.color)$=w7[this.color]($);let f=typeof this.#j==="string"&&this.#j!==""?this.#j+" ":"",K=typeof this.text==="string"?" "+this.text:"",P=typeof this.#w==="string"&&this.#w!==""?" "+this.#w:"";return f+$+K+P}clear(){if(!this.#O||!this.#K.isTTY)return this;this.#K.cursorTo(0);for(let _=0;_<this.#f;_++){if(_>0)this.#K.moveCursor(0,-1);this.#K.clearLine(1)}if(this.#T||this.lastIndent!==this.#T)this.#K.cursorTo(this.#T);return this.lastIndent=this.#T,this.#f=0,this}render(){if(this.#Y)return this;return this.clear(),this.#K.write(this.frame()),this.#f=this.#_,this}start(_){if(_)this.text=_;if(this.#Y)return this;if(!this.#O){if(this.text)this.#K.write(`- ${this.text}
|
|
43
|
+
`);return this}if(this.isSpinning)return this;if(this.#q.hideCursor)v3.hide(this.#K);if(this.#q.discardStdin&&u$.stdin.isTTY)this.#$=!0,r3.start();return this.render(),this.#z=setInterval(this.render.bind(this),this.interval),this}stop(){if(!this.#O)return this;if(clearInterval(this.#z),this.#z=void 0,this.#P=0,this.clear(),this.#q.hideCursor)v3.show(this.#K);if(this.#q.discardStdin&&u$.stdin.isTTY&&this.#$)r3.stop(),this.#$=!1;return this}succeed(_){return this.stopAndPersist({symbol:B6.success,text:_})}fail(_){return this.stopAndPersist({symbol:B6.error,text:_})}warn(_){return this.stopAndPersist({symbol:B6.warning,text:_})}info(_){return this.stopAndPersist({symbol:B6.info,text:_})}stopAndPersist(_={}){if(this.#Y)return this;let q=_.prefixText??this.#j,$=this.#J(q," "),f=_.symbol??" ",K=_.text??this.text,u=typeof K==="string"?(f?" ":"")+K:"",j=_.suffixText??this.#w,w=this.#Z(j," "),O=$+f+u+w+`
|
|
44
|
+
`;return this.stop(),this.#K.write(O),this}}function p3(_){return new _u(_)}var F6,NT;var qu=d(()=>{O7();Z7();F6=W8(z3(),1);I7();a7();s7();F7();Q7();NT=W8(z3(),1)});function nT(_,q,$){let f=process.stdout.isTTY??!1,K=process.env.CI==="true"||process.env.CI==="1";if(!f||K)return $u(_);let P={text:_||q?.text||"",spinner:q?.style||"dots",color:q?.color||$?.primary||"cyan"},u=p3(P);return{start(){u.start()},succeed(j){if(j!==void 0)u.succeed(j);else u.succeed()},fail(j){if(j!==void 0)u.fail(j);else u.fail()},stop(){u.stop()},text(j){u.text=j}}}function $u(_){let q=_||"";return{start(){if(q)process.stdout.write(q+`
|
|
45
45
|
`)},succeed($){let f=$||q;if(f)process.stdout.write("✓ "+f+`
|
|
46
46
|
`)},fail($){let f=$||q;if(f)process.stderr.write("✗ "+f+`
|
|
47
|
-
`)},stop(){},text($){q=$}}}function
|
|
47
|
+
`)},stop(){},text($){q=$}}}function fu(_,q){if(_===!1)return(f)=>$u(f);let $=_===!0||_===void 0?void 0:_;return(f)=>nT(f,$,q)}var Ku=d(()=>{qu()});class Pu{listener=null;firstSignalTime=null;timeout=2500;register(_,q={}){if(this.listener)this.cleanup();this.timeout=q.timeout??2500,this.firstSignalTime=null,this.listener=()=>{let $=Date.now();if(!_.signal.aborted){_.abort(),this.firstSignalTime=$;return}if(this.firstSignalTime!==null)if($-this.firstSignalTime<=this.timeout)process.exit(130);else this.firstSignalTime=$},process.on("SIGINT",this.listener)}cleanup(){if(this.listener)process.off("SIGINT",this.listener),this.listener=null,this.firstSignalTime=null}}var uu;var ju=d(()=>{uu=new Pu});class b3{async confirm(_,q){try{return await t6({message:_,default:q})}catch($){if($?.name==="ExitPromptError")throw new n8("Prompt cancelled");throw $}}async input(_,q,$,f=3){let K=0;while(K<f)try{let P=await U_({message:_,default:q});if(!$)return P;let u=$(P);if(u===!0)return P;if(K++,K>=f)throw new h8(`Maximum validation attempts (${f}) exceeded`);console.error(`❌ ${u}`)}catch(P){if(P?.name==="ExitPromptError")throw new n8("Prompt cancelled");throw P}throw new h8(`Maximum validation attempts (${f}) exceeded`)}async select(_,q,$){try{let f=q.map((K)=>typeof K==="string"?{name:K,value:K}:{name:K.label,value:K.value});return await c6({message:_,choices:f,default:$})}catch(f){if(f?.name==="ExitPromptError")throw new n8("Prompt cancelled");throw f}}async multiselect(_,q,$,f,K){try{let P=q.map((u)=>typeof u==="string"?{name:u,value:u}:{name:u.label,value:u.value});return await y6({message:_,choices:P,validate:(u)=>{if(f!==void 0&&u.length<f)return`Select at least ${f} option(s)`;if(K!==void 0&&u.length>K)return`Select at most ${K} option(s)`;return!0}})}catch(P){if(P?.name==="ExitPromptError")throw new n8("Prompt cancelled");throw P}}}function wu(_,q,$,f,K){let P=!1;function u(){return Boolean(q.stdout.isTTY&&q.stdin.isTTY)}function j(){return f.CI==="true"||f.CI==="1"}function w(){return f.CLIBUILDER_NON_INTERACTIVE==="1"||f.CLIBUILDER_NON_INTERACTIVE==="true"}function O(T,z,W=!1){let H=!u()||j(),k=z??"default";if(!W&&!H)return"interactive";if(k==="default"&&T)return"use-default";if(k==="skip")return"skip";throw new h8("Prompt requested in non-interactive mode. Provide a default or use --confirm/--yes.")}async function v(T,z){if(P)throw new N6("A prompt is already in progress.");P=!0;try{if(!z)return await T();let W=new Promise((H,k)=>setTimeout(()=>k(new M6("Prompt timed out")),z));return await Promise.race([T(),W])}finally{P=!1}}async function Y(T,z){if($.aborted)throw new n8("Operation aborted");if(z?.nonInteractive!==void 0){let H=O("default"in T&&T.default!==void 0,z.nonInteractive,!0);if(H==="use-default")return T.default;if(H==="skip"){if(T.type==="confirm")return!1;if(T.type==="multiselect")return[];if(T.type==="select")throw new h8("Non-interactive select requires a default or explicit flag.");return("default"in T?T.default:"")??""}}if(w()){if("default"in T&&T.default!==void 0)return T.default;if(T.type==="multiselect")return[];throw new h8("CLIBUILDER_NON_INTERACTIVE is set but prompt has no default value.")}if(j()){if("default"in T&&T.default!==void 0)return T.default;if(T.type==="multiselect")return[];throw new h8("CI environment detected but prompt has no default value.")}if(K()){if(T.type==="confirm")return!0;if("default"in T&&T.default!==void 0)return T.default;if(T.type==="multiselect")return[];if(T.type==="select")throw new h8("--yes cannot choose from a list. Provide --option explicitly.");if(T.type==="input")return""}let W=O("default"in T&&T.default!==void 0,z?.nonInteractive);if(W==="use-default")return T.default;if(W==="skip"){if(T.type==="confirm")return!1;if(T.type==="multiselect")return[];if(T.type==="select")throw new h8("Non-interactive select requires a default or explicit flag.");return("default"in T?T.default:"")??""}return v(async()=>{switch(T.type){case"confirm":return await _.confirm(T.message,T.default);case"input":return await _.input(T.message,T.default,T.validate,T.maxAttempts);case"select":return await _.select(T.message,T.choices,T.default);case"multiselect":return await _.multiselect(T.message,T.choices,T.default,T.min,T.max)}},z?.timeoutMs)}return Y}var Ou=d(()=>{u3();S8()});function Yu(_){let{params:q,provenance:$,signal:f,loggerConfig:K,spinnerConfig:P,colorScheme:u,assumeYes:j,stdio:w={stdin:process.stdin,stdout:process.stdout,stderr:process.stderr}}=_,O=e4({level:K?.level,stdout:w.stdout,stderr:w.stderr,colorScheme:u}),v=fu(P,u),Y=new b3,T=wu(Y,w,f,process.env,()=>j??!1);return{params:q,provenance:$,spinner:v,signal:f,stdio:w,logger:O,prompt:T}}function Tu(_){let q=new AbortController;return uu.register(q,_),q}var vu=d(()=>{x4();Ku();ju();Ou()});async function zu(_,q,$){try{let f=_(q);if(f&&typeof f==="object"&&"then"in f)await f;return{exitCode:0}}catch(f){let K=f instanceof Error?f:new Error(String(f)),P=1;if($?.exitCode!==void 0)P=$.exitCode;let u=$?.showStack;return{exitCode:P,error:K,showStack:u}}}function Hu(_){return _.includes("--debug")}function Wu(_){if(console.log(`
|
|
48
48
|
\uD83D\uDCCA Parameter Resolution Debug Info
|
|
49
|
-
`),Object.keys(_).length===0){console.log(" No parameters to display.");return}let q=Object.entries(_).map(([O,v])=>{let Y=IT(v.value),T=v.source,z=aT(v.raw);return{paramName:O,value:Y,source:T,raw:z}}),$={paramName:Math.max(9,...q.map((O)=>O.paramName.length)),value:Math.max(5,...q.map((O)=>O.value.length)),source:Math.max(6,...q.map((O)=>O.source.length)),raw:Math.max(3,...q.map((O)=>O.raw.length))},P=107,u=10,j=$.paramName+$.value+$.source+$.raw;if(j>P){let v=j-P;if($.raw>u&&v>0){let Y=Math.min($.raw-u,v);$.raw-=Y,v-=Y}if($.value>u&&v>0){let Y=Math.min($.value-u,v);$.value-=Y,v-=Y}}let w=[T_("Parameter",$.paramName),T_("Value",$.value),T_("Source",$.source),T_("Raw",$.raw)];console.log(" ┌─"+"─".repeat($.paramName)+"─┬─"+"─".repeat($.value)+"─┬─"+"─".repeat($.source)+"─┬─"+"─".repeat($.raw)+"─┐"),console.log(" │ "+w.join(" │ ")+" │"),console.log(" ├─"+"─".repeat($.paramName)+"─┼─"+"─".repeat($.value)+"─┼─"+"─".repeat($.source)+"─┼─"+"─".repeat($.raw)+"─┤");for(let O of q){let v=[T_(j$(O.paramName,$.paramName),$.paramName),T_(j$(O.value,$.value),$.value),T_(j$(O.source,$.source),$.source),T_(j$(O.raw,$.raw),$.raw)];console.log(" │ "+v.join(" │ ")+" │")}console.log(" └─"+"─".repeat($.paramName)+"─┴─"+"─".repeat($.value)+"─┴─"+"─".repeat($.source)+"─┴─"+"─".repeat($.raw)+"─┘"),console.log("")}function IT(_){if(_===void 0)return"undefined";if(_===null)return"null";if(typeof _==="string")return _;if(typeof _==="boolean")return _?"true":"false";if(typeof _==="number")return String(_);if(Array.isArray(_))return`[${_.join(", ")}]`;return JSON.stringify(_)}function aT(_){if(_===void 0)return"-";if(typeof _==="string")return _||"(empty)";if(Array.isArray(_))return`[${_.join(", ")}]`;return String(_)}function T_(_,q){return _.padEnd(q," ")}function j$(_,q){if(_.length<=q)return _;return _.slice(0,q-1)+"…"}function w$(_,q){hu.set(_,q)}function O$(_){return hu.get(_)}var hu;var Y$=d(()=>{hu=new Map});var Au={};Uw(Au,{executeCommand:()=>oT});async function oT(_){let{command:q,parsedArgv:$,argv:f,commandPath:K,detectTTY:P=!0,signalConfig:u}=_;try{if(f&&J2(f)){let W=K||[q.name],H=k2(q,W);return console.log(H),{exitCode:0}}let j=f?f.includes("--yes")||f.includes("-y"):!1,{params:w,provenance:O}=await c4({parsedArgv:$,params:q.params,detectTTY:P,preValidate:q.preValidate,preValidateTimeout:2000});if(f&&Ju(f))Zu(O);await e4(q.params,w);let v=Hu(u),Y=zu({params:w,provenance:O,signal:v.signal,loggerConfig:q.loggerConfig,assumeYes:j}),T=O$(q.id)||q.run;if(!T)throw new Error(`No handler found for command "${q.name}" (ID: ${q.id}). Handler should be registered during build() or set via .run()`);let z=await ku(T,Y,q.errorConfig);if(z.error)return{exitCode:z.exitCode,error:z.error};return{exitCode:0}}catch(j){let w=j instanceof Error?j:new Error(String(j)),O=1;if(w.name==="ValidationError")O=2;else if(w.name==="ExitPromptError"||w instanceof n8||w instanceof V6)O=130;return{exitCode:O,error:w}}}var Xu=d(()=>{L4();x4();Wu();Y$();Mf();S8()});var T8=X((Rv)=>{Rv.__esModule=!0;Rv.extend=au;Rv.indexOf=Mv;Rv.escapeExpression=Nv;Rv.isEmpty=nv;Rv.createFrame=Sv;Rv.blockParams=dv;Rv.appendContextPath=Ev;var rv={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},pv=/[&<>"'`=]/g,bv=/[&<>"'`=]/;function Vv(_){return rv[_]}function au(_){for(var q=1;q<arguments.length;q++)for(var $ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$))_[$]=arguments[q][$];return _}var y3=Object.prototype.toString;Rv.toString=y3;var l3=function _(q){return typeof q==="function"};if(l3(/x/))Rv.isFunction=l3=function(_){return typeof _==="function"&&y3.call(_)==="[object Function]"};Rv.isFunction=l3;var ou=Array.isArray||function(_){return _&&typeof _==="object"?y3.call(_)==="[object Array]":!1};Rv.isArray=ou;function Mv(_,q){for(var $=0,f=_.length;$<f;$++)if(_[$]===q)return $;return-1}function Nv(_){if(typeof _!=="string"){if(_&&_.toHTML)return _.toHTML();else if(_==null)return"";else if(!_)return _+"";_=""+_}if(!bv.test(_))return _;return _.replace(pv,Vv)}function nv(_){if(!_&&_!==0)return!0;else if(ou(_)&&_.length===0)return!0;else return!1}function Sv(_){var q=au({},_);return q._parent=_,q}function dv(_,q){return _.path=q,_}function Ev(_,q){return(_?_+".":"")+q}});var C8=X((iu,gu)=>{iu.__esModule=!0;var t3=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function c3(_,q){var $=q&&q.loc,f=void 0,K=void 0,P=void 0,u=void 0;if($)f=$.start.line,K=$.end.line,P=$.start.column,u=$.end.column,_+=" - "+f+":"+P;var j=Error.prototype.constructor.call(this,_);for(var w=0;w<t3.length;w++)this[t3[w]]=j[t3[w]];if(Error.captureStackTrace)Error.captureStackTrace(this,c3);try{if($)if(this.lineNumber=f,this.endLineNumber=K,Object.defineProperty)Object.defineProperty(this,"column",{value:P,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0});else this.column=P,this.endColumn=u}catch(O){}}c3.prototype=new Error;iu.default=c3;gu.exports=iu.default});var tu=X((lu,yu)=>{lu.__esModule=!0;var L3=T8();lu.default=function(_){_.registerHelper("blockHelperMissing",function(q,$){var{inverse:f,fn:K}=$;if(q===!0)return K(this);else if(q===!1||q==null)return f(this);else if(L3.isArray(q))if(q.length>0){if($.ids)$.ids=[$.name];return _.helpers.each(q,$)}else return f(this);else{if($.data&&$.ids){var P=L3.createFrame($.data);P.contextPath=L3.appendContextPath($.data.contextPath,$.name),$={data:P}}return K(q,$)}})};yu.exports=lu.default});var eu=X((cu,Lu)=>{cu.__esModule=!0;function Uv(_){return _&&_.__esModule?_:{default:_}}var qq=T8(),Qv=C8(),_z=Uv(Qv);cu.default=function(_){_.registerHelper("each",function(q,$){if(!$)throw new _z.default("Must pass iterator to #each");var{fn:f,inverse:K}=$,P=0,u="",j=void 0,w=void 0;if($.data&&$.ids)w=qq.appendContextPath($.data.contextPath,$.ids[0])+".";if(qq.isFunction(q))q=q.call(this);if($.data)j=qq.createFrame($.data);function O(W,H,k){if(j){if(j.key=W,j.index=H,j.first=H===0,j.last=!!k,w)j.contextPath=w+W}u=u+f(q[W],{data:j,blockParams:qq.blockParams([q[W],W],[w+W,null])})}if(q&&typeof q==="object")if(qq.isArray(q)){for(var v=q.length;P<v;P++)if(P in q)O(P,P,P===q.length-1)}else if(typeof Symbol==="function"&&q[Symbol.iterator]){var Y=[],T=q[Symbol.iterator]();for(var z=T.next();!z.done;z=T.next())Y.push(z.value);q=Y;for(var v=q.length;P<v;P++)O(P,P,P===q.length-1)}else(function(){var W=void 0;if(Object.keys(q).forEach(function(H){if(W!==void 0)O(W,P-1);W=H,P++}),W!==void 0)O(W,P-1,!0)})();if(P===0)u=K(this);return u})};Lu.exports=cu.default});var Bu=X((xu,su)=>{xu.__esModule=!0;function fz(_){return _&&_.__esModule?_:{default:_}}var Kz=C8(),Pz=fz(Kz);xu.default=function(_){_.registerHelper("helperMissing",function(){if(arguments.length===1)return;else throw new Pz.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};su.exports=xu.default});var qj=X((Qu,_j)=>{Qu.__esModule=!0;function wz(_){return _&&_.__esModule?_:{default:_}}var Fu=T8(),Oz=C8(),Uu=wz(Oz);Qu.default=function(_){_.registerHelper("if",function(q,$){if(arguments.length!=2)throw new Uu.default("#if requires exactly one argument");if(Fu.isFunction(q))q=q.call(this);if(!$.hash.includeZero&&!q||Fu.isEmpty(q))return $.inverse(this);else return $.fn(this)}),_.registerHelper("unless",function(q,$){if(arguments.length!=2)throw new Uu.default("#unless requires exactly one argument");return _.helpers.if.call(this,q,{fn:$.inverse,inverse:$.fn,hash:$.hash})})};_j.exports=Qu.default});var Kj=X(($j,fj)=>{$j.__esModule=!0;$j.default=function(_){_.registerHelper("log",function(){var q=[void 0],$=arguments[arguments.length-1];for(var f=0;f<arguments.length-1;f++)q.push(arguments[f]);var K=1;if($.hash.level!=null)K=$.hash.level;else if($.data&&$.data.level!=null)K=$.data.level;q[0]=K,_.log.apply(_,q)})};fj.exports=$j.default});var jj=X((Pj,uj)=>{Pj.__esModule=!0;Pj.default=function(_){_.registerHelper("lookup",function(q,$,f){if(!q)return q;return f.lookupProperty(q,$)})};uj.exports=Pj.default});var Yj=X((wj,Oj)=>{wj.__esModule=!0;function kz(_){return _&&_.__esModule?_:{default:_}}var $q=T8(),Jz=C8(),Zz=kz(Jz);wj.default=function(_){_.registerHelper("with",function(q,$){if(arguments.length!=2)throw new Zz.default("#with requires exactly one argument");if($q.isFunction(q))q=q.call(this);var f=$.fn;if(!$q.isEmpty(q)){var K=$.data;if($.data&&$.ids)K=$q.createFrame($.data),K.contextPath=$q.appendContextPath($.data.contextPath,$.ids[0]);return f(q,{data:K,blockParams:$q.blockParams([q],[K&&K.contextPath])})}else return $.inverse(this)})};Oj.exports=wj.default});var e3=X((Iz)=>{Iz.__esModule=!0;Iz.registerDefaultHelpers=Ez;Iz.moveHelperToHooks=Rz;function n_(_){return _&&_.__esModule?_:{default:_}}var Xz=tu(),mz=n_(Xz),Gz=eu(),Dz=n_(Gz),Cz=Bu(),rz=n_(Cz),pz=qj(),bz=n_(pz),Vz=Kj(),Mz=n_(Vz),Nz=jj(),nz=n_(Nz),Sz=Yj(),dz=n_(Sz);function Ez(_){mz.default(_),Dz.default(_),rz.default(_),bz.default(_),Mz.default(_),nz.default(_),dz.default(_)}function Rz(_,q,$){if(_.helpers[q]){if(_.hooks[q]=_.helpers[q],!$)delete _.helpers[q]}}});var zj=X((Tj,vj)=>{Tj.__esModule=!0;var gz=T8();Tj.default=function(_){_.registerDecorator("inline",function(q,$,f,K){var P=q;if(!$.partials)$.partials={},P=function(u,j){var w=f.partials;f.partials=gz.extend({},w,$.partials);var O=q(u,j);return f.partials=w,O};return $.partials[K.args[0]]=K.fn,P})};vj.exports=Tj.default});var Hj=X((xz)=>{xz.__esModule=!0;xz.registerDefaultDecorators=ez;function tz(_){return _&&_.__esModule?_:{default:_}}var cz=zj(),Lz=tz(cz);function ez(_){Lz.default(_)}});var x3=X((Wj,kj)=>{Wj.__esModule=!0;var Fz=T8(),j6={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function _(q){if(typeof q==="string"){var $=Fz.indexOf(j6.methodMap,q.toLowerCase());if($>=0)q=$;else q=parseInt(q,10)}return q},log:function _(q){if(q=j6.lookupLevel(q),typeof console!=="undefined"&&j6.lookupLevel(j6.level)<=q){var $=j6.methodMap[q];if(!console[$])$="log";for(var f=arguments.length,K=Array(f>1?f-1:0),P=1;P<f;P++)K[P-1]=arguments[P];console[$].apply(console,K)}}};Wj.default=j6;kj.exports=Wj.default});var Jj=X(($H)=>{$H.__esModule=!0;$H.createNewLookupObject=qH;var _H=T8();function qH(){for(var _=arguments.length,q=Array(_),$=0;$<_;$++)q[$]=arguments[$];return _H.extend.apply(void 0,[Object.create(null)].concat(q))}});var s3=X((vH)=>{vH.__esModule=!0;vH.createProtoAccessControl=wH;vH.resultIsAllowed=OH;vH.resetLoggedProperties=TH;function PH(_){return _&&_.__esModule?_:{default:_}}var Zj=Jj(),uH=x3(),jH=PH(uH),k$=Object.create(null);function wH(_){var q=Object.create(null);q.constructor=!1,q.__defineGetter__=!1,q.__defineSetter__=!1,q.__lookupGetter__=!1;var $=Object.create(null);return $.__proto__=!1,{properties:{whitelist:Zj.createNewLookupObject($,_.allowedProtoProperties),defaultValue:_.allowProtoPropertiesByDefault},methods:{whitelist:Zj.createNewLookupObject(q,_.allowedProtoMethods),defaultValue:_.allowProtoMethodsByDefault}}}function OH(_,q,$){if(typeof _==="function")return hj(q.methods,$);else return hj(q.properties,$)}function hj(_,q){if(_.whitelist[q]!==void 0)return _.whitelist[q]===!0;if(_.defaultValue!==void 0)return _.defaultValue;return YH(q),!1}function YH(_){if(k$[_]!==!0)k$[_]=!0,jH.default.log("error",'Handlebars: Access has been denied to resolve the property "'+_+`" because it is not an "own property" of its parent.
|
|
49
|
+
`),Object.keys(_).length===0){console.log(" No parameters to display.");return}let q=Object.entries(_).map(([O,v])=>{let Y=ST(v.value),T=v.source,z=dT(v.raw);return{paramName:O,value:Y,source:T,raw:z}}),$={paramName:Math.max(9,...q.map((O)=>O.paramName.length)),value:Math.max(5,...q.map((O)=>O.value.length)),source:Math.max(6,...q.map((O)=>O.source.length)),raw:Math.max(3,...q.map((O)=>O.raw.length))},P=107,u=10,j=$.paramName+$.value+$.source+$.raw;if(j>P){let v=j-P;if($.raw>u&&v>0){let Y=Math.min($.raw-u,v);$.raw-=Y,v-=Y}if($.value>u&&v>0){let Y=Math.min($.value-u,v);$.value-=Y,v-=Y}}let w=[T_("Parameter",$.paramName),T_("Value",$.value),T_("Source",$.source),T_("Raw",$.raw)];console.log(" ┌─"+"─".repeat($.paramName)+"─┬─"+"─".repeat($.value)+"─┬─"+"─".repeat($.source)+"─┬─"+"─".repeat($.raw)+"─┐"),console.log(" │ "+w.join(" │ ")+" │"),console.log(" ├─"+"─".repeat($.paramName)+"─┼─"+"─".repeat($.value)+"─┼─"+"─".repeat($.source)+"─┼─"+"─".repeat($.raw)+"─┤");for(let O of q){let v=[T_(j$(O.paramName,$.paramName),$.paramName),T_(j$(O.value,$.value),$.value),T_(j$(O.source,$.source),$.source),T_(j$(O.raw,$.raw),$.raw)];console.log(" │ "+v.join(" │ ")+" │")}console.log(" └─"+"─".repeat($.paramName)+"─┴─"+"─".repeat($.value)+"─┴─"+"─".repeat($.source)+"─┴─"+"─".repeat($.raw)+"─┘"),console.log("")}function ST(_){if(_===void 0)return"undefined";if(_===null)return"null";if(typeof _==="string")return _;if(typeof _==="boolean")return _?"true":"false";if(typeof _==="number")return String(_);if(Array.isArray(_))return`[${_.join(", ")}]`;return JSON.stringify(_)}function dT(_){if(_===void 0)return"-";if(typeof _==="string")return _||"(empty)";if(Array.isArray(_))return`[${_.join(", ")}]`;return String(_)}function T_(_,q){return _.padEnd(q," ")}function j$(_,q){if(_.length<=q)return _;return _.slice(0,q-1)+"…"}var ku={};xw(ku,{executeCommand:()=>ET});async function ET(_){let{command:q,parsedArgv:$,argv:f,commandPath:K,detectTTY:P=!0,signalConfig:u}=_;try{if(f&&H2(f)){let W=K||[q.name],H=z2(q,W);return console.log(H),{exitCode:0}}let j=f?f.includes("--yes")||f.includes("-y"):!1,{params:w,provenance:O}=await l4({parsedArgv:$,params:q.params,detectTTY:P,preValidate:q.preValidate,preValidateTimeout:2000});if(f&&Hu(f))Wu(O);await t4(q.params,w);let v=Tu(u),Y=Yu({params:w,provenance:O,signal:v.signal,loggerConfig:q.loggerConfig,assumeYes:j}),T=q.run;if(!T)throw new Error(`No handler found for command "${q.name}". Handler must be set via .run() when building the command.`);let z=await zu(T,Y,q.errorConfig);if(z.error)return{exitCode:z.exitCode,error:z.error};return{exitCode:0}}catch(j){let w=j instanceof Error?j:new Error(String(j)),O=1;if(w.name==="ValidationError")O=2;else if(w.name==="ExitPromptError"||w instanceof n8||w instanceof V6)O=130;return{exitCode:O,error:w}}}var Ju=d(()=>{y4();c4();vu();pf();S8()});var T8=X((dv)=>{dv.__esModule=!0;dv.extend=du;dv.indexOf=bv;dv.escapeExpression=Vv;dv.isEmpty=Mv;dv.createFrame=Nv;dv.blockParams=nv;dv.appendContextPath=Sv;var Dv={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Cv=/[&<>"'`=]/g,rv=/[&<>"'`=]/;function pv(_){return Dv[_]}function du(_){for(var q=1;q<arguments.length;q++)for(var $ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$))_[$]=arguments[q][$];return _}var i3=Object.prototype.toString;dv.toString=i3;var o3=function _(q){return typeof q==="function"};if(o3(/x/))dv.isFunction=o3=function(_){return typeof _==="function"&&i3.call(_)==="[object Function]"};dv.isFunction=o3;var Eu=Array.isArray||function(_){return _&&typeof _==="object"?i3.call(_)==="[object Array]":!1};dv.isArray=Eu;function bv(_,q){for(var $=0,f=_.length;$<f;$++)if(_[$]===q)return $;return-1}function Vv(_){if(typeof _!=="string"){if(_&&_.toHTML)return _.toHTML();else if(_==null)return"";else if(!_)return _+"";_=""+_}if(!rv.test(_))return _;return _.replace(Cv,pv)}function Mv(_){if(!_&&_!==0)return!0;else if(Eu(_)&&_.length===0)return!0;else return!1}function Nv(_){var q=du({},_);return q._parent=_,q}function nv(_,q){return _.path=q,_}function Sv(_,q){return(_?_+".":"")+q}});var C8=X((Ru,Iu)=>{Ru.__esModule=!0;var g3=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function l3(_,q){var $=q&&q.loc,f=void 0,K=void 0,P=void 0,u=void 0;if($)f=$.start.line,K=$.end.line,P=$.start.column,u=$.end.column,_+=" - "+f+":"+P;var j=Error.prototype.constructor.call(this,_);for(var w=0;w<g3.length;w++)this[g3[w]]=j[g3[w]];if(Error.captureStackTrace)Error.captureStackTrace(this,l3);try{if($)if(this.lineNumber=f,this.endLineNumber=K,Object.defineProperty)Object.defineProperty(this,"column",{value:P,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0});else this.column=P,this.endColumn=u}catch(O){}}l3.prototype=new Error;Ru.default=l3;Iu.exports=Ru.default});var iu=X((au,ou)=>{au.__esModule=!0;var y3=T8();au.default=function(_){_.registerHelper("blockHelperMissing",function(q,$){var{inverse:f,fn:K}=$;if(q===!0)return K(this);else if(q===!1||q==null)return f(this);else if(y3.isArray(q))if(q.length>0){if($.ids)$.ids=[$.name];return _.helpers.each(q,$)}else return f(this);else{if($.data&&$.ids){var P=y3.createFrame($.data);P.contextPath=y3.appendContextPath($.data.contextPath,$.name),$={data:P}}return K(q,$)}})};ou.exports=au.default});var yu=X((gu,lu)=>{gu.__esModule=!0;function Bv(_){return _&&_.__esModule?_:{default:_}}var qq=T8(),Fv=C8(),Uv=Bv(Fv);gu.default=function(_){_.registerHelper("each",function(q,$){if(!$)throw new Uv.default("Must pass iterator to #each");var{fn:f,inverse:K}=$,P=0,u="",j=void 0,w=void 0;if($.data&&$.ids)w=qq.appendContextPath($.data.contextPath,$.ids[0])+".";if(qq.isFunction(q))q=q.call(this);if($.data)j=qq.createFrame($.data);function O(W,H,k){if(j){if(j.key=W,j.index=H,j.first=H===0,j.last=!!k,w)j.contextPath=w+W}u=u+f(q[W],{data:j,blockParams:qq.blockParams([q[W],W],[w+W,null])})}if(q&&typeof q==="object")if(qq.isArray(q)){for(var v=q.length;P<v;P++)if(P in q)O(P,P,P===q.length-1)}else if(typeof Symbol==="function"&&q[Symbol.iterator]){var Y=[],T=q[Symbol.iterator]();for(var z=T.next();!z.done;z=T.next())Y.push(z.value);q=Y;for(var v=q.length;P<v;P++)O(P,P,P===q.length-1)}else(function(){var W=void 0;if(Object.keys(q).forEach(function(H){if(W!==void 0)O(W,P-1);W=H,P++}),W!==void 0)O(W,P-1,!0)})();if(P===0)u=K(this);return u})};lu.exports=gu.default});var Lu=X((tu,cu)=>{tu.__esModule=!0;function qz(_){return _&&_.__esModule?_:{default:_}}var $z=C8(),fz=qz($z);tu.default=function(_){_.registerHelper("helperMissing",function(){if(arguments.length===1)return;else throw new fz.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};cu.exports=tu.default});var Fu=X((su,Bu)=>{su.__esModule=!0;function uz(_){return _&&_.__esModule?_:{default:_}}var eu=T8(),jz=C8(),xu=uz(jz);su.default=function(_){_.registerHelper("if",function(q,$){if(arguments.length!=2)throw new xu.default("#if requires exactly one argument");if(eu.isFunction(q))q=q.call(this);if(!$.hash.includeZero&&!q||eu.isEmpty(q))return $.inverse(this);else return $.fn(this)}),_.registerHelper("unless",function(q,$){if(arguments.length!=2)throw new xu.default("#unless requires exactly one argument");return _.helpers.if.call(this,q,{fn:$.inverse,inverse:$.fn,hash:$.hash})})};Bu.exports=su.default});var _j=X((Uu,Qu)=>{Uu.__esModule=!0;Uu.default=function(_){_.registerHelper("log",function(){var q=[void 0],$=arguments[arguments.length-1];for(var f=0;f<arguments.length-1;f++)q.push(arguments[f]);var K=1;if($.hash.level!=null)K=$.hash.level;else if($.data&&$.data.level!=null)K=$.data.level;q[0]=K,_.log.apply(_,q)})};Qu.exports=Uu.default});var fj=X((qj,$j)=>{qj.__esModule=!0;qj.default=function(_){_.registerHelper("lookup",function(q,$,f){if(!q)return q;return f.lookupProperty(q,$)})};$j.exports=qj.default});var uj=X((Kj,Pj)=>{Kj.__esModule=!0;function Hz(_){return _&&_.__esModule?_:{default:_}}var $q=T8(),Wz=C8(),kz=Hz(Wz);Kj.default=function(_){_.registerHelper("with",function(q,$){if(arguments.length!=2)throw new kz.default("#with requires exactly one argument");if($q.isFunction(q))q=q.call(this);var f=$.fn;if(!$q.isEmpty(q)){var K=$.data;if($.data&&$.ids)K=$q.createFrame($.data),K.contextPath=$q.appendContextPath($.data.contextPath,$.ids[0]);return f(q,{data:K,blockParams:$q.blockParams([q],[K&&K.contextPath])})}else return $.inverse(this)})};Pj.exports=Kj.default});var t3=X((Ez)=>{Ez.__esModule=!0;Ez.registerDefaultHelpers=Sz;Ez.moveHelperToHooks=dz;function n_(_){return _&&_.__esModule?_:{default:_}}var hz=iu(),Az=n_(hz),Xz=yu(),mz=n_(Xz),Gz=Lu(),Dz=n_(Gz),Cz=Fu(),rz=n_(Cz),pz=_j(),bz=n_(pz),Vz=fj(),Mz=n_(Vz),Nz=uj(),nz=n_(Nz);function Sz(_){Az.default(_),mz.default(_),Dz.default(_),rz.default(_),bz.default(_),Mz.default(_),nz.default(_)}function dz(_,q,$){if(_.helpers[q]){if(_.hooks[q]=_.helpers[q],!$)delete _.helpers[q]}}});var Oj=X((jj,wj)=>{jj.__esModule=!0;var oz=T8();jj.default=function(_){_.registerDecorator("inline",function(q,$,f,K){var P=q;if(!$.partials)$.partials={},P=function(u,j){var w=f.partials;f.partials=oz.extend({},w,$.partials);var O=q(u,j);return f.partials=w,O};return $.partials[K.args[0]]=K.fn,P})};wj.exports=jj.default});var Yj=X((Lz)=>{Lz.__esModule=!0;Lz.registerDefaultDecorators=cz;function lz(_){return _&&_.__esModule?_:{default:_}}var yz=Oj(),tz=lz(yz);function cz(_){tz.default(_)}});var c3=X((Tj,vj)=>{Tj.__esModule=!0;var sz=T8(),j6={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function _(q){if(typeof q==="string"){var $=sz.indexOf(j6.methodMap,q.toLowerCase());if($>=0)q=$;else q=parseInt(q,10)}return q},log:function _(q){if(q=j6.lookupLevel(q),typeof console!=="undefined"&&j6.lookupLevel(j6.level)<=q){var $=j6.methodMap[q];if(!console[$])$="log";for(var f=arguments.length,K=Array(f>1?f-1:0),P=1;P<f;P++)K[P-1]=arguments[P];console[$].apply(console,K)}}};Tj.default=j6;vj.exports=Tj.default});var zj=X((_H)=>{_H.__esModule=!0;_H.createNewLookupObject=Qz;var Uz=T8();function Qz(){for(var _=arguments.length,q=Array(_),$=0;$<_;$++)q[$]=arguments[$];return Uz.extend.apply(void 0,[Object.create(null)].concat(q))}});var L3=X((YH)=>{YH.__esModule=!0;YH.createProtoAccessControl=uH;YH.resultIsAllowed=jH;YH.resetLoggedProperties=OH;function fH(_){return _&&_.__esModule?_:{default:_}}var Hj=zj(),KH=c3(),PH=fH(KH),z$=Object.create(null);function uH(_){var q=Object.create(null);q.constructor=!1,q.__defineGetter__=!1,q.__defineSetter__=!1,q.__lookupGetter__=!1;var $=Object.create(null);return $.__proto__=!1,{properties:{whitelist:Hj.createNewLookupObject($,_.allowedProtoProperties),defaultValue:_.allowProtoPropertiesByDefault},methods:{whitelist:Hj.createNewLookupObject(q,_.allowedProtoMethods),defaultValue:_.allowProtoMethodsByDefault}}}function jH(_,q,$){if(typeof _==="function")return Wj(q.methods,$);else return Wj(q.properties,$)}function Wj(_,q){if(_.whitelist[q]!==void 0)return _.whitelist[q]===!0;if(_.defaultValue!==void 0)return _.defaultValue;return wH(q),!1}function wH(_){if(z$[_]!==!0)z$[_]=!0,PH.default.log("error",'Handlebars: Access has been denied to resolve the property "'+_+`" because it is not an "own property" of its parent.
|
|
50
50
|
You can add a runtime option to disable the check or this warning:
|
|
51
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`)}function
|
|
51
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`)}function OH(){Object.keys(z$).forEach(function(_){delete z$[_]})}});var W$=X((CH)=>{CH.__esModule=!0;CH.HandlebarsEnvironment=s3;function kj(_){return _&&_.__esModule?_:{default:_}}var S_=T8(),WH=C8(),e3=kj(WH),kH=t3(),JH=Yj(),ZH=c3(),H$=kj(ZH),hH=L3(),AH="4.7.8";CH.VERSION=AH;var XH=8;CH.COMPILER_REVISION=XH;var mH=7;CH.LAST_COMPATIBLE_COMPILER_REVISION=mH;var GH={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};CH.REVISION_CHANGES=GH;var x3="[object Object]";function s3(_,q,$){this.helpers=_||{},this.partials=q||{},this.decorators=$||{},kH.registerDefaultHelpers(this),JH.registerDefaultDecorators(this)}s3.prototype={constructor:s3,logger:H$.default,log:H$.default.log,registerHelper:function _(q,$){if(S_.toString.call(q)===x3){if($)throw new e3.default("Arg not supported with multiple helpers");S_.extend(this.helpers,q)}else this.helpers[q]=$},unregisterHelper:function _(q){delete this.helpers[q]},registerPartial:function _(q,$){if(S_.toString.call(q)===x3)S_.extend(this.partials,q);else{if(typeof $==="undefined")throw new e3.default('Attempting to register a partial called "'+q+'" as undefined');this.partials[q]=$}},unregisterPartial:function _(q){delete this.partials[q]},registerDecorator:function _(q,$){if(S_.toString.call(q)===x3){if($)throw new e3.default("Arg not supported with multiple decorators");S_.extend(this.decorators,q)}else this.decorators[q]=$},unregisterDecorator:function _(q){delete this.decorators[q]},resetLoggedPropertyAccesses:function _(){hH.resetLoggedProperties()}};var DH=H$.default.log;CH.log=DH;CH.createFrame=S_.createFrame;CH.logger=H$.default});var hj=X((Jj,Zj)=>{Jj.__esModule=!0;function B3(_){this.string=_}B3.prototype.toString=B3.prototype.toHTML=function(){return""+this.string};Jj.default=B3;Zj.exports=Jj.default});var Aj=X((aH)=>{aH.__esModule=!0;aH.wrapHelper=IH;function IH(_,q){if(typeof _!=="function")return _;var $=function f(){var K=arguments[arguments.length-1];return arguments[arguments.length-1]=q(K),_.apply(this,arguments)};return $}});var Cj=X((QH)=>{QH.__esModule=!0;QH.checkRevision=LH;QH.template=eH;QH.wrapProgram=k$;QH.resolvePartial=xH;QH.invokePartial=sH;QH.noop=Gj;function gH(_){return _&&_.__esModule?_:{default:_}}function lH(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var yH=T8(),f_=lH(yH),tH=C8(),K_=gH(tH),P_=W$(),Xj=t3(),cH=Aj(),mj=L3();function LH(_){var q=_&&_[0]||1,$=P_.COMPILER_REVISION;if(q>=P_.LAST_COMPATIBLE_COMPILER_REVISION&&q<=P_.COMPILER_REVISION)return;if(q<P_.LAST_COMPATIBLE_COMPILER_REVISION){var f=P_.REVISION_CHANGES[$],K=P_.REVISION_CHANGES[q];throw new K_.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+f+") or downgrade your runtime to an older version ("+K+").")}else throw new K_.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+_[1]+").")}function eH(_,q){if(!q)throw new K_.default("No environment passed to template");if(!_||!_.main)throw new K_.default("Unknown template object: "+typeof _);_.main.decorator=_.main_d,q.VM.checkRevision(_.compiler);var $=_.compiler&&_.compiler[0]===7;function f(u,j,w){if(w.hash){if(j=f_.extend({},j,w.hash),w.ids)w.ids[0]=!0}u=q.VM.resolvePartial.call(this,u,j,w);var O=f_.extend({},w,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),v=q.VM.invokePartial.call(this,u,j,O);if(v==null&&q.compile)w.partials[w.name]=q.compile(u,_.compilerOptions,q),v=w.partials[w.name](j,O);if(v!=null){if(w.indent){var Y=v.split(`
|
|
52
52
|
`);for(var T=0,z=Y.length;T<z;T++){if(!Y[T]&&T+1===z)break;Y[T]=w.indent+Y[T]}v=Y.join(`
|
|
53
|
-
`)}return v}else throw new K_.default("The partial "+w.name+" could not be compiled when running in runtime-only mode")}var K={strict:function u(j,w,O){if(!j||!(w in j))throw new K_.default('"'+w+'" not defined in '+j,{loc:O});return K.lookupProperty(j,w)},lookupProperty:function u(j,w){var O=j[w];if(O==null)return O;if(Object.prototype.hasOwnProperty.call(j,w))return O;if(rj.resultIsAllowed(O,K.protoAccessControl,w))return O;return},lookup:function u(j,w){var O=j.length;for(var v=0;v<O;v++){var Y=j[v]&&K.lookupProperty(j[v],w);if(Y!=null)return j[v][w]}},lambda:function u(j,w){return typeof j==="function"?j.call(w):j},escapeExpression:f_.escapeExpression,invokePartial:f,fn:function u(j){var w=_[j];return w.decorator=_[j+"_d"],w},programs:[],program:function u(j,w,O,v,Y){var T=this.programs[j],z=this.fn(j);if(w||Y||v||O)T=h$(this,j,z,w,O,v,Y);else if(!T)T=this.programs[j]=h$(this,j,z);return T},data:function u(j,w){while(j&&w--)j=j._parent;return j},mergeIfNeeded:function u(j,w){var O=j||w;if(j&&w&&j!==w)O=f_.extend({},w,j);return O},nullContext:Object.seal({}),noop:q.VM.noop,compilerInfo:_.compiler};function P(u){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],w=j.data;if(P._setup(j),!j.partial&&_.useData)w=UH(u,w);var O=void 0,v=_.useBlockParams?[]:void 0;if(_.useDepths)if(j.depths)O=u!=j.depths[0]?[u].concat(j.depths):j.depths;else O=[u];function Y(T){return""+_.main(K,T,K.helpers,K.partials,w,v,O)}return Y=bj(_.main,Y,K,j.depths||[],w,v),Y(u,j)}return P.isTop=!0,P._setup=function(u){if(!u.partial){var j=f_.extend({},q.helpers,u.helpers);if(QH(j,K),K.helpers=j,_.usePartial)K.partials=K.mergeIfNeeded(u.partials,q.partials);if(_.usePartial||_.useDecorators)K.decorators=f_.extend({},q.decorators,u.decorators);K.hooks={},K.protoAccessControl=rj.createProtoAccessControl(u);var w=u.allowCallsToHelperMissing||$;Cj.moveHelperToHooks(K,"helperMissing",w),Cj.moveHelperToHooks(K,"blockHelperMissing",w)}else K.protoAccessControl=u.protoAccessControl,K.helpers=u.helpers,K.partials=u.partials,K.decorators=u.decorators,K.hooks=u.hooks},P._child=function(u,j,w,O){if(_.useBlockParams&&!w)throw new K_.default("must pass block params");if(_.useDepths&&!O)throw new K_.default("must pass parent depths");return h$(K,u,_[u],j,0,w,O)},P}function h$(_,q,$,f,K,P,u){function j(w){var O=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],v=u;if(u&&w!=u[0]&&!(w===_.nullContext&&u[0]===null))v=[w].concat(u);return $(_,w,_.helpers,_.partials,O.data||f,P&&[O.blockParams].concat(P),v)}return j=bj($,j,_,u,f,P),j.program=q,j.depth=u?u.length:0,j.blockParams=K||0,j}function BH(_,q,$){if(!_)if($.name==="@partial-block")_=$.data["partial-block"];else _=$.partials[$.name];else if(!_.call&&!$.name)$.name=_,_=$.partials[_];return _}function FH(_,q,$){var f=$.data&&$.data["partial-block"];if($.partial=!0,$.ids)$.data.contextPath=$.ids[0]||$.data.contextPath;var K=void 0;if($.fn&&$.fn!==pj)(function(){$.data=P_.createFrame($.data);var P=$.fn;if(K=$.data["partial-block"]=function u(j){var w=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return w.data=P_.createFrame(w.data),w.data["partial-block"]=f,P(j,w)},P.partials)$.partials=f_.extend({},$.partials,P.partials)})();if(_===void 0&&K)_=K;if(_===void 0)throw new K_.default("The partial "+$.name+" could not be found");else if(_ instanceof Function)return _(q,$)}function pj(){return""}function UH(_,q){if(!q||!("root"in q))q=q?P_.createFrame(q):{},q.root=_;return q}function bj(_,q,$,f,K,P){if(_.decorator){var u={};q=_.decorator(q,u,$,f&&f[0],K,P,f),f_.extend(q,u)}return q}function QH(_,q){Object.keys(_).forEach(function($){var f=_[$];_[$]=_W(f,q)})}function _W(_,q){var $=q.lookupProperty;return eH.wrapHelper(_,function(f){return f_.extend({lookupProperty:$},f)})}});var _K=X((Mj,Nj)=>{Mj.__esModule=!0;Mj.default=function(_){(function(){if(typeof globalThis==="object")return;Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__})();var q=globalThis.Handlebars;_.noConflict=function(){if(globalThis.Handlebars===_)globalThis.Handlebars=q;return _}};Nj.exports=Mj.default});var Ij=X((Ej,Rj)=>{Ej.__esModule=!0;function $K(_){return _&&_.__esModule?_:{default:_}}function fK(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var TW=Z$(),nj=fK(TW),vW=Gj(),zW=$K(vW),HW=C8(),WW=$K(HW),kW=T8(),qK=fK(kW),JW=Vj(),Sj=fK(JW),ZW=_K(),hW=$K(ZW);function dj(){var _=new nj.HandlebarsEnvironment;return qK.extend(_,nj),_.SafeString=zW.default,_.Exception=WW.default,_.Utils=qK,_.escapeExpression=qK.escapeExpression,_.VM=Sj,_.template=function(q){return Sj.template(q,_)},_}var fq=dj();fq.create=dj;hW.default(fq);fq.default=fq;Ej.default=fq;Rj.exports=Ej.default});var KK=X((oj,ij)=>{oj.__esModule=!0;var aj={helpers:{helperExpression:function _(q){return q.type==="SubExpression"||(q.type==="MustacheStatement"||q.type==="BlockStatement")&&!!(q.params&&q.params.length||q.hash)},scopedId:function _(q){return/^\.|this\b/.test(q.original)},simpleId:function _(q){return q.parts.length===1&&!aj.helpers.scopedId(q)&&!q.depth}}};oj.default=aj;ij.exports=oj.default});var yj=X((gj,lj)=>{gj.__esModule=!0;var DW=function(){var _={trace:function f(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function f(K,P,u,j,w,O,v){var Y=O.length-1;switch(w){case 1:return O[Y-1];case 2:this.$=j.prepareProgram(O[Y]);break;case 3:this.$=O[Y];break;case 4:this.$=O[Y];break;case 5:this.$=O[Y];break;case 6:this.$=O[Y];break;case 7:this.$=O[Y];break;case 8:this.$=O[Y];break;case 9:this.$={type:"CommentStatement",value:j.stripComment(O[Y]),strip:j.stripFlags(O[Y],O[Y]),loc:j.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:O[Y],value:O[Y],loc:j.locInfo(this._$)};break;case 11:this.$=j.prepareRawBlock(O[Y-2],O[Y-1],O[Y],this._$);break;case 12:this.$={path:O[Y-3],params:O[Y-2],hash:O[Y-1]};break;case 13:this.$=j.prepareBlock(O[Y-3],O[Y-2],O[Y-1],O[Y],!1,this._$);break;case 14:this.$=j.prepareBlock(O[Y-3],O[Y-2],O[Y-1],O[Y],!0,this._$);break;case 15:this.$={open:O[Y-5],path:O[Y-4],params:O[Y-3],hash:O[Y-2],blockParams:O[Y-1],strip:j.stripFlags(O[Y-5],O[Y])};break;case 16:this.$={path:O[Y-4],params:O[Y-3],hash:O[Y-2],blockParams:O[Y-1],strip:j.stripFlags(O[Y-5],O[Y])};break;case 17:this.$={path:O[Y-4],params:O[Y-3],hash:O[Y-2],blockParams:O[Y-1],strip:j.stripFlags(O[Y-5],O[Y])};break;case 18:this.$={strip:j.stripFlags(O[Y-1],O[Y-1]),program:O[Y]};break;case 19:var T=j.prepareBlock(O[Y-2],O[Y-1],O[Y],O[Y],!1,this._$),z=j.prepareProgram([T],O[Y-1].loc);z.chained=!0,this.$={strip:O[Y-2].strip,program:z,chain:!0};break;case 20:this.$=O[Y];break;case 21:this.$={path:O[Y-1],strip:j.stripFlags(O[Y-2],O[Y])};break;case 22:this.$=j.prepareMustache(O[Y-3],O[Y-2],O[Y-1],O[Y-4],j.stripFlags(O[Y-4],O[Y]),this._$);break;case 23:this.$=j.prepareMustache(O[Y-3],O[Y-2],O[Y-1],O[Y-4],j.stripFlags(O[Y-4],O[Y]),this._$);break;case 24:this.$={type:"PartialStatement",name:O[Y-3],params:O[Y-2],hash:O[Y-1],indent:"",strip:j.stripFlags(O[Y-4],O[Y]),loc:j.locInfo(this._$)};break;case 25:this.$=j.preparePartialBlock(O[Y-2],O[Y-1],O[Y],this._$);break;case 26:this.$={path:O[Y-3],params:O[Y-2],hash:O[Y-1],strip:j.stripFlags(O[Y-4],O[Y])};break;case 27:this.$=O[Y];break;case 28:this.$=O[Y];break;case 29:this.$={type:"SubExpression",path:O[Y-3],params:O[Y-2],hash:O[Y-1],loc:j.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:O[Y],loc:j.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:j.id(O[Y-2]),value:O[Y],loc:j.locInfo(this._$)};break;case 32:this.$=j.id(O[Y-1]);break;case 33:this.$=O[Y];break;case 34:this.$=O[Y];break;case 35:this.$={type:"StringLiteral",value:O[Y],original:O[Y],loc:j.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(O[Y]),original:Number(O[Y]),loc:j.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:O[Y]==="true",original:O[Y]==="true",loc:j.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:j.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:j.locInfo(this._$)};break;case 40:this.$=O[Y];break;case 41:this.$=O[Y];break;case 42:this.$=j.preparePath(!0,O[Y],this._$);break;case 43:this.$=j.preparePath(!1,O[Y],this._$);break;case 44:O[Y-2].push({part:j.id(O[Y]),original:O[Y],separator:O[Y-1]}),this.$=O[Y-2];break;case 45:this.$=[{part:j.id(O[Y]),original:O[Y]}];break;case 46:this.$=[];break;case 47:O[Y-1].push(O[Y]);break;case 48:this.$=[];break;case 49:O[Y-1].push(O[Y]);break;case 50:this.$=[];break;case 51:O[Y-1].push(O[Y]);break;case 58:this.$=[];break;case 59:O[Y-1].push(O[Y]);break;case 64:this.$=[];break;case 65:O[Y-1].push(O[Y]);break;case 70:this.$=[];break;case 71:O[Y-1].push(O[Y]);break;case 78:this.$=[];break;case 79:O[Y-1].push(O[Y]);break;case 82:this.$=[];break;case 83:O[Y-1].push(O[Y]);break;case 86:this.$=[];break;case 87:O[Y-1].push(O[Y]);break;case 90:this.$=[];break;case 91:O[Y-1].push(O[Y]);break;case 94:this.$=[];break;case 95:O[Y-1].push(O[Y]);break;case 98:this.$=[O[Y]];break;case 99:O[Y-1].push(O[Y]);break;case 100:this.$=[O[Y]];break;case 101:O[Y-1].push(O[Y]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function f(K,P){throw new Error(K)},parse:function f(K){var P=this,u=[0],j=[null],w=[],O=this.table,v="",Y=0,T=0,z=0,W=2,H=1;if(this.lexer.setInput(K),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};var k=this.lexer.yylloc;w.push(k);var A=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function p(M){u.length=u.length-2*M,j.length=j.length-M,w.length=w.length-M}function V(){var M=P.lexer.lex()||1;if(typeof M!=="number")M=P.symbols_[M]||M;return M}var N,n,S,Z,m,D,b={},h,J,G,r;while(!0){if(S=u[u.length-1],this.defaultActions[S])Z=this.defaultActions[S];else{if(N===null||typeof N=="undefined")N=V();Z=O[S]&&O[S][N]}if(typeof Z==="undefined"||!Z.length||!Z[0]){var C="";if(!z){r=[];for(h in O[S])if(this.terminals_[h]&&h>2)r.push("'"+this.terminals_[h]+"'");if(this.lexer.showPosition)C="Parse error on line "+(Y+1)+`:
|
|
53
|
+
`)}return v}else throw new K_.default("The partial "+w.name+" could not be compiled when running in runtime-only mode")}var K={strict:function u(j,w,O){if(!j||!(w in j))throw new K_.default('"'+w+'" not defined in '+j,{loc:O});return K.lookupProperty(j,w)},lookupProperty:function u(j,w){var O=j[w];if(O==null)return O;if(Object.prototype.hasOwnProperty.call(j,w))return O;if(mj.resultIsAllowed(O,K.protoAccessControl,w))return O;return},lookup:function u(j,w){var O=j.length;for(var v=0;v<O;v++){var Y=j[v]&&K.lookupProperty(j[v],w);if(Y!=null)return j[v][w]}},lambda:function u(j,w){return typeof j==="function"?j.call(w):j},escapeExpression:f_.escapeExpression,invokePartial:f,fn:function u(j){var w=_[j];return w.decorator=_[j+"_d"],w},programs:[],program:function u(j,w,O,v,Y){var T=this.programs[j],z=this.fn(j);if(w||Y||v||O)T=k$(this,j,z,w,O,v,Y);else if(!T)T=this.programs[j]=k$(this,j,z);return T},data:function u(j,w){while(j&&w--)j=j._parent;return j},mergeIfNeeded:function u(j,w){var O=j||w;if(j&&w&&j!==w)O=f_.extend({},w,j);return O},nullContext:Object.seal({}),noop:q.VM.noop,compilerInfo:_.compiler};function P(u){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],w=j.data;if(P._setup(j),!j.partial&&_.useData)w=BH(u,w);var O=void 0,v=_.useBlockParams?[]:void 0;if(_.useDepths)if(j.depths)O=u!=j.depths[0]?[u].concat(j.depths):j.depths;else O=[u];function Y(T){return""+_.main(K,T,K.helpers,K.partials,w,v,O)}return Y=Dj(_.main,Y,K,j.depths||[],w,v),Y(u,j)}return P.isTop=!0,P._setup=function(u){if(!u.partial){var j=f_.extend({},q.helpers,u.helpers);if(FH(j,K),K.helpers=j,_.usePartial)K.partials=K.mergeIfNeeded(u.partials,q.partials);if(_.usePartial||_.useDecorators)K.decorators=f_.extend({},q.decorators,u.decorators);K.hooks={},K.protoAccessControl=mj.createProtoAccessControl(u);var w=u.allowCallsToHelperMissing||$;Xj.moveHelperToHooks(K,"helperMissing",w),Xj.moveHelperToHooks(K,"blockHelperMissing",w)}else K.protoAccessControl=u.protoAccessControl,K.helpers=u.helpers,K.partials=u.partials,K.decorators=u.decorators,K.hooks=u.hooks},P._child=function(u,j,w,O){if(_.useBlockParams&&!w)throw new K_.default("must pass block params");if(_.useDepths&&!O)throw new K_.default("must pass parent depths");return k$(K,u,_[u],j,0,w,O)},P}function k$(_,q,$,f,K,P,u){function j(w){var O=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],v=u;if(u&&w!=u[0]&&!(w===_.nullContext&&u[0]===null))v=[w].concat(u);return $(_,w,_.helpers,_.partials,O.data||f,P&&[O.blockParams].concat(P),v)}return j=Dj($,j,_,u,f,P),j.program=q,j.depth=u?u.length:0,j.blockParams=K||0,j}function xH(_,q,$){if(!_)if($.name==="@partial-block")_=$.data["partial-block"];else _=$.partials[$.name];else if(!_.call&&!$.name)$.name=_,_=$.partials[_];return _}function sH(_,q,$){var f=$.data&&$.data["partial-block"];if($.partial=!0,$.ids)$.data.contextPath=$.ids[0]||$.data.contextPath;var K=void 0;if($.fn&&$.fn!==Gj)(function(){$.data=P_.createFrame($.data);var P=$.fn;if(K=$.data["partial-block"]=function u(j){var w=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return w.data=P_.createFrame(w.data),w.data["partial-block"]=f,P(j,w)},P.partials)$.partials=f_.extend({},$.partials,P.partials)})();if(_===void 0&&K)_=K;if(_===void 0)throw new K_.default("The partial "+$.name+" could not be found");else if(_ instanceof Function)return _(q,$)}function Gj(){return""}function BH(_,q){if(!q||!("root"in q))q=q?P_.createFrame(q):{},q.root=_;return q}function Dj(_,q,$,f,K,P){if(_.decorator){var u={};q=_.decorator(q,u,$,f&&f[0],K,P,f),f_.extend(q,u)}return q}function FH(_,q){Object.keys(_).forEach(function($){var f=_[$];_[$]=UH(f,q)})}function UH(_,q){var $=q.lookupProperty;return cH.wrapHelper(_,function(f){return f_.extend({lookupProperty:$},f)})}});var F3=X((rj,pj)=>{rj.__esModule=!0;rj.default=function(_){(function(){if(typeof globalThis==="object")return;Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__})();var q=globalThis.Handlebars;_.noConflict=function(){if(globalThis.Handlebars===_)globalThis.Handlebars=q;return _}};pj.exports=rj.default});var Sj=X((Nj,nj)=>{Nj.__esModule=!0;function Q3(_){return _&&_.__esModule?_:{default:_}}function _K(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}var OW=W$(),bj=_K(OW),YW=hj(),TW=Q3(YW),vW=C8(),zW=Q3(vW),HW=T8(),U3=_K(HW),WW=Cj(),Vj=_K(WW),kW=F3(),JW=Q3(kW);function Mj(){var _=new bj.HandlebarsEnvironment;return U3.extend(_,bj),_.SafeString=TW.default,_.Exception=zW.default,_.Utils=U3,_.escapeExpression=U3.escapeExpression,_.VM=Vj,_.template=function(q){return Vj.template(q,_)},_}var fq=Mj();fq.create=Mj;JW.default(fq);fq.default=fq;Nj.default=fq;nj.exports=Nj.default});var qK=X((Ej,Rj)=>{Ej.__esModule=!0;var dj={helpers:{helperExpression:function _(q){return q.type==="SubExpression"||(q.type==="MustacheStatement"||q.type==="BlockStatement")&&!!(q.params&&q.params.length||q.hash)},scopedId:function _(q){return/^\.|this\b/.test(q.original)},simpleId:function _(q){return q.parts.length===1&&!dj.helpers.scopedId(q)&&!q.depth}}};Ej.default=dj;Rj.exports=Ej.default});var oj=X((Ij,aj)=>{Ij.__esModule=!0;var mW=function(){var _={trace:function f(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function f(K,P,u,j,w,O,v){var Y=O.length-1;switch(w){case 1:return O[Y-1];case 2:this.$=j.prepareProgram(O[Y]);break;case 3:this.$=O[Y];break;case 4:this.$=O[Y];break;case 5:this.$=O[Y];break;case 6:this.$=O[Y];break;case 7:this.$=O[Y];break;case 8:this.$=O[Y];break;case 9:this.$={type:"CommentStatement",value:j.stripComment(O[Y]),strip:j.stripFlags(O[Y],O[Y]),loc:j.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:O[Y],value:O[Y],loc:j.locInfo(this._$)};break;case 11:this.$=j.prepareRawBlock(O[Y-2],O[Y-1],O[Y],this._$);break;case 12:this.$={path:O[Y-3],params:O[Y-2],hash:O[Y-1]};break;case 13:this.$=j.prepareBlock(O[Y-3],O[Y-2],O[Y-1],O[Y],!1,this._$);break;case 14:this.$=j.prepareBlock(O[Y-3],O[Y-2],O[Y-1],O[Y],!0,this._$);break;case 15:this.$={open:O[Y-5],path:O[Y-4],params:O[Y-3],hash:O[Y-2],blockParams:O[Y-1],strip:j.stripFlags(O[Y-5],O[Y])};break;case 16:this.$={path:O[Y-4],params:O[Y-3],hash:O[Y-2],blockParams:O[Y-1],strip:j.stripFlags(O[Y-5],O[Y])};break;case 17:this.$={path:O[Y-4],params:O[Y-3],hash:O[Y-2],blockParams:O[Y-1],strip:j.stripFlags(O[Y-5],O[Y])};break;case 18:this.$={strip:j.stripFlags(O[Y-1],O[Y-1]),program:O[Y]};break;case 19:var T=j.prepareBlock(O[Y-2],O[Y-1],O[Y],O[Y],!1,this._$),z=j.prepareProgram([T],O[Y-1].loc);z.chained=!0,this.$={strip:O[Y-2].strip,program:z,chain:!0};break;case 20:this.$=O[Y];break;case 21:this.$={path:O[Y-1],strip:j.stripFlags(O[Y-2],O[Y])};break;case 22:this.$=j.prepareMustache(O[Y-3],O[Y-2],O[Y-1],O[Y-4],j.stripFlags(O[Y-4],O[Y]),this._$);break;case 23:this.$=j.prepareMustache(O[Y-3],O[Y-2],O[Y-1],O[Y-4],j.stripFlags(O[Y-4],O[Y]),this._$);break;case 24:this.$={type:"PartialStatement",name:O[Y-3],params:O[Y-2],hash:O[Y-1],indent:"",strip:j.stripFlags(O[Y-4],O[Y]),loc:j.locInfo(this._$)};break;case 25:this.$=j.preparePartialBlock(O[Y-2],O[Y-1],O[Y],this._$);break;case 26:this.$={path:O[Y-3],params:O[Y-2],hash:O[Y-1],strip:j.stripFlags(O[Y-4],O[Y])};break;case 27:this.$=O[Y];break;case 28:this.$=O[Y];break;case 29:this.$={type:"SubExpression",path:O[Y-3],params:O[Y-2],hash:O[Y-1],loc:j.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:O[Y],loc:j.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:j.id(O[Y-2]),value:O[Y],loc:j.locInfo(this._$)};break;case 32:this.$=j.id(O[Y-1]);break;case 33:this.$=O[Y];break;case 34:this.$=O[Y];break;case 35:this.$={type:"StringLiteral",value:O[Y],original:O[Y],loc:j.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(O[Y]),original:Number(O[Y]),loc:j.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:O[Y]==="true",original:O[Y]==="true",loc:j.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:j.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:j.locInfo(this._$)};break;case 40:this.$=O[Y];break;case 41:this.$=O[Y];break;case 42:this.$=j.preparePath(!0,O[Y],this._$);break;case 43:this.$=j.preparePath(!1,O[Y],this._$);break;case 44:O[Y-2].push({part:j.id(O[Y]),original:O[Y],separator:O[Y-1]}),this.$=O[Y-2];break;case 45:this.$=[{part:j.id(O[Y]),original:O[Y]}];break;case 46:this.$=[];break;case 47:O[Y-1].push(O[Y]);break;case 48:this.$=[];break;case 49:O[Y-1].push(O[Y]);break;case 50:this.$=[];break;case 51:O[Y-1].push(O[Y]);break;case 58:this.$=[];break;case 59:O[Y-1].push(O[Y]);break;case 64:this.$=[];break;case 65:O[Y-1].push(O[Y]);break;case 70:this.$=[];break;case 71:O[Y-1].push(O[Y]);break;case 78:this.$=[];break;case 79:O[Y-1].push(O[Y]);break;case 82:this.$=[];break;case 83:O[Y-1].push(O[Y]);break;case 86:this.$=[];break;case 87:O[Y-1].push(O[Y]);break;case 90:this.$=[];break;case 91:O[Y-1].push(O[Y]);break;case 94:this.$=[];break;case 95:O[Y-1].push(O[Y]);break;case 98:this.$=[O[Y]];break;case 99:O[Y-1].push(O[Y]);break;case 100:this.$=[O[Y]];break;case 101:O[Y-1].push(O[Y]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function f(K,P){throw new Error(K)},parse:function f(K){var P=this,u=[0],j=[null],w=[],O=this.table,v="",Y=0,T=0,z=0,W=2,H=1;if(this.lexer.setInput(K),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};var k=this.lexer.yylloc;w.push(k);var A=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function p(M){u.length=u.length-2*M,j.length=j.length-M,w.length=w.length-M}function V(){var M=P.lexer.lex()||1;if(typeof M!=="number")M=P.symbols_[M]||M;return M}var N,n,S,Z,m,D,b={},h,J,G,r;while(!0){if(S=u[u.length-1],this.defaultActions[S])Z=this.defaultActions[S];else{if(N===null||typeof N=="undefined")N=V();Z=O[S]&&O[S][N]}if(typeof Z==="undefined"||!Z.length||!Z[0]){var C="";if(!z){r=[];for(h in O[S])if(this.terminals_[h]&&h>2)r.push("'"+this.terminals_[h]+"'");if(this.lexer.showPosition)C="Parse error on line "+(Y+1)+`:
|
|
54
54
|
`+this.lexer.showPosition()+`
|
|
55
55
|
Expecting `+r.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else C="Parse error on line "+(Y+1)+": Unexpected "+(N==1?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(C,{text:this.lexer.match,token:this.terminals_[N]||N,line:this.lexer.yylineno,loc:k,expected:r})}}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+N);switch(Z[0]){case 1:if(u.push(N),j.push(this.lexer.yytext),w.push(this.lexer.yylloc),u.push(Z[1]),N=null,!n){if(T=this.lexer.yyleng,v=this.lexer.yytext,Y=this.lexer.yylineno,k=this.lexer.yylloc,z>0)z--}else N=n,n=null;break;case 2:if(J=this.productions_[Z[1]][1],b.$=j[j.length-J],b._$={first_line:w[w.length-(J||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(J||1)].first_column,last_column:w[w.length-1].last_column},A)b._$.range=[w[w.length-(J||1)].range[0],w[w.length-1].range[1]];if(D=this.performAction.call(b,v,T,Y,this.yy,Z[1],j,w),typeof D!=="undefined")return D;if(J)u=u.slice(0,-1*J*2),j=j.slice(0,-1*J),w=w.slice(0,-1*J);u.push(this.productions_[Z[1]][0]),j.push(b.$),w.push(b._$),G=O[u[u.length-2]][u[u.length-1]],u.push(G);break;case 3:return!0}}return!0}},q=function(){var f={EOF:1,parseError:function K(P,u){if(this.yy.parser)this.yy.parser.parseError(P,u);else throw new Error(P)},setInput:function K(P){if(this._input=P,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},input:function K(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var u=P.match(/(?:\r\n?|\n).*/g);if(u)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),P},unput:function K(P){var u=P.length,j=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;var w=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),j.length-1)this.yylineno-=j.length-1;var O=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:j?(j.length===w.length?this.yylloc.first_column:0)+w[w.length-j.length].length-j[0].length:this.yylloc.first_column-u},this.options.ranges)this.yylloc.range=[O[0],O[0]+this.yyleng-u];return this},more:function K(){return this._more=!0,this},less:function K(P){this.unput(this.match.slice(P))},pastInput:function K(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},upcomingInput:function K(){var P=this.match;if(P.length<20)P+=this._input.substr(0,20-P.length);return(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},showPosition:function K(){var P=this.pastInput(),u=new Array(P.length+1).join("-");return P+this.upcomingInput()+`
|
|
56
56
|
`+u+"^"},next:function K(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var P,u,j,w,O,v;if(!this._more)this.yytext="",this.match="";var Y=this._currentRules();for(var T=0;T<Y.length;T++)if(j=this._input.match(this.rules[Y[T]]),j&&(!u||j[0].length>u[0].length)){if(u=j,w=T,!this.options.flex)break}if(u){if(v=u[0].match(/(?:\r\n?|\n).*/g),v)this.yylineno+=v.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],P=this.performAction.call(this,this.yy,this,Y[w],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(P)return P;else return}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
57
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function K(){var P=this.next();if(typeof P!=="undefined")return P;else return this.lex()},begin:function K(P){this.conditionStack.push(P)},popState:function K(){return this.conditionStack.pop()},_currentRules:function K(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function K(){return this.conditionStack[this.conditionStack.length-2]},pushState:function K(P){this.begin(P)}};return f.options={},f.performAction=function K(P,u,j,w){function O(Y,T){return u.yytext=u.yytext.substring(Y,u.yyleng-T+Y)}var v=w;switch(j){case 0:if(u.yytext.slice(-2)==="\\\\")O(0,1),this.begin("mu");else if(u.yytext.slice(-1)==="\\")O(0,1),this.begin("emu");else this.begin("mu");if(u.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:if(this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw")return 15;else return O(5,9),"END_RAW_BLOCK";break;case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(u.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return u.yytext=O(1,2).replace(/\\"/g,'"'),80;break;case 32:return u.yytext=O(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},f.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],f.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},f}();_.lexer=q;function $(){this.yy={}}return $.prototype=_,_.Parser=$,new $}();gj.default=DW;lj.exports=gj.default});var m$=X((Lj,ej)=>{Lj.__esModule=!0;function pW(_){return _&&_.__esModule?_:{default:_}}var bW=C8(),PK=pW(bW);function A$(){this.parents=[]}A$.prototype={constructor:A$,mutating:!1,acceptKey:function _(q,$){var f=this.accept(q[$]);if(this.mutating){if(f&&!A$.prototype[f.type])throw new PK.default('Unexpected node type "'+f.type+'" found when accepting '+$+" on "+q.type);q[$]=f}},acceptRequired:function _(q,$){if(this.acceptKey(q,$),!q[$])throw new PK.default(q.type+" requires "+$)},acceptArray:function _(q){for(var $=0,f=q.length;$<f;$++)if(this.acceptKey(q,$),!q[$])q.splice($,1),$--,f--},accept:function _(q){if(!q)return;if(!this[q.type])throw new PK.default("Unknown type: "+q.type,q);if(this.current)this.parents.unshift(this.current);this.current=q;var $=this[q.type](q);if(this.current=this.parents.shift(),!this.mutating||$)return $;else if($!==!1)return q},Program:function _(q){this.acceptArray(q.body)},MustacheStatement:X$,Decorator:X$,BlockStatement:tj,DecoratorBlock:tj,PartialStatement:cj,PartialBlockStatement:function _(q){cj.call(this,q),this.acceptKey(q,"program")},ContentStatement:function _(){},CommentStatement:function _(){},SubExpression:X$,PathExpression:function _(){},StringLiteral:function _(){},NumberLiteral:function _(){},BooleanLiteral:function _(){},UndefinedLiteral:function _(){},NullLiteral:function _(){},Hash:function _(q){this.acceptArray(q.pairs)},HashPair:function _(q){this.acceptRequired(q,"value")}};function X$(_){this.acceptRequired(_,"path"),this.acceptArray(_.params),this.acceptKey(_,"hash")}function tj(_){X$.call(this,_),this.acceptKey(_,"program"),this.acceptKey(_,"inverse")}function cj(_){this.acceptRequired(_,"name"),this.acceptArray(_.params),this.acceptKey(_,"hash")}Lj.default=A$;ej.exports=Lj.default});var Bj=X((xj,sj)=>{xj.__esModule=!0;function NW(_){return _&&_.__esModule?_:{default:_}}var nW=m$(),SW=NW(nW);function B8(){var _=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=_}B8.prototype=new SW.default;B8.prototype.Program=function(_){var q=!this.options.ignoreStandalone,$=!this.isRootSeen;this.isRootSeen=!0;var f=_.body;for(var K=0,P=f.length;K<P;K++){var u=f[K],j=this.accept(u);if(!j)continue;var w=uK(f,K,$),O=jK(f,K,$),v=j.openStandalone&&w,Y=j.closeStandalone&&O,T=j.inlineStandalone&&w&&O;if(j.close)d_(f,K,!0);if(j.open)v_(f,K,!0);if(q&&T){if(d_(f,K),v_(f,K)){if(u.type==="PartialStatement")u.indent=/([ \t]+$)/.exec(f[K-1].original)[1]}}if(q&&v)d_((u.program||u.inverse).body),v_(f,K);if(q&&Y)d_(f,K),v_((u.inverse||u.program).body)}return _};B8.prototype.BlockStatement=B8.prototype.DecoratorBlock=B8.prototype.PartialBlockStatement=function(_){this.accept(_.program),this.accept(_.inverse);var q=_.program||_.inverse,$=_.program&&_.inverse,f=$,K=$;if($&&$.chained){f=$.body[0].program;while(K.chained)K=K.body[K.body.length-1].program}var P={open:_.openStrip.open,close:_.closeStrip.close,openStandalone:jK(q.body),closeStandalone:uK((f||q).body)};if(_.openStrip.close)d_(q.body,null,!0);if($){var u=_.inverseStrip;if(u.open)v_(q.body,null,!0);if(u.close)d_(f.body,null,!0);if(_.closeStrip.open)v_(K.body,null,!0);if(!this.options.ignoreStandalone&&uK(q.body)&&jK(f.body))v_(q.body),d_(f.body)}else if(_.closeStrip.open)v_(q.body,null,!0);return P};B8.prototype.Decorator=B8.prototype.MustacheStatement=function(_){return _.strip};B8.prototype.PartialStatement=B8.prototype.CommentStatement=function(_){var q=_.strip||{};return{inlineStandalone:!0,open:q.open,close:q.close}};function uK(_,q,$){if(q===void 0)q=_.length;var f=_[q-1],K=_[q-2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function jK(_,q,$){if(q===void 0)q=-1;var f=_[q+1],K=_[q+2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function d_(_,q,$){var f=_[q==null?0:q+1];if(!f||f.type!=="ContentStatement"||!$&&f.rightStripped)return;var K=f.value;f.value=f.value.replace($?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==K}function v_(_,q,$){var f=_[q==null?_.length-1:q-1];if(!f||f.type!=="ContentStatement"||!$&&f.leftStripped)return;var K=f.value;return f.value=f.value.replace($?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==K,f.leftStripped}xj.default=B8;sj.exports=xj.default});var Fj=X((xW)=>{xW.__esModule=!0;xW.SourceLocation=aW;xW.id=oW;xW.stripFlags=iW;xW.stripComment=gW;xW.preparePath=lW;xW.prepareMustache=yW;xW.prepareRawBlock=tW;xW.prepareBlock=cW;xW.prepareProgram=LW;xW.preparePartialBlock=eW;function RW(_){return _&&_.__esModule?_:{default:_}}var IW=C8(),wK=RW(IW);function OK(_,q){if(q=q.path?q.path.original:q,_.path.original!==q){var $={loc:_.path.loc};throw new wK.default(_.path.original+" doesn't match "+q,$)}}function aW(_,q){this.source=_,this.start={line:q.first_line,column:q.first_column},this.end={line:q.last_line,column:q.last_column}}function oW(_){if(/^\[.*\]$/.test(_))return _.substring(1,_.length-1);else return _}function iW(_,q){return{open:_.charAt(2)==="~",close:q.charAt(q.length-3)==="~"}}function gW(_){return _.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function lW(_,q,$){$=this.locInfo($);var f=_?"@":"",K=[],P=0;for(var u=0,j=q.length;u<j;u++){var w=q[u].part,O=q[u].original!==w;if(f+=(q[u].separator||"")+w,!O&&(w===".."||w==="."||w==="this")){if(K.length>0)throw new wK.default("Invalid path: "+f,{loc:$});else if(w==="..")P++}else K.push(w)}return{type:"PathExpression",data:_,depth:P,parts:K,original:f,loc:$}}function yW(_,q,$,f,K,P){var u=f.charAt(3)||f.charAt(2),j=u!=="{"&&u!=="&",w=/\*/.test(f);return{type:w?"Decorator":"MustacheStatement",path:_,params:q,hash:$,escaped:j,strip:K,loc:this.locInfo(P)}}function tW(_,q,$,f){OK(_,$),f=this.locInfo(f);var K={type:"Program",body:q,strip:{},loc:f};return{type:"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:K,openStrip:{},inverseStrip:{},closeStrip:{},loc:f}}function cW(_,q,$,f,K,P){if(f&&f.path)OK(_,f);var u=/\*/.test(_.open);q.blockParams=_.blockParams;var j=void 0,w=void 0;if($){if(u)throw new wK.default("Unexpected inverse block on decorator",$);if($.chain)$.program.body[0].closeStrip=f.strip;w=$.strip,j=$.program}if(K)K=j,j=q,q=K;return{type:u?"DecoratorBlock":"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:q,inverse:j,openStrip:_.strip,inverseStrip:w,closeStrip:f&&f.strip,loc:this.locInfo(P)}}function LW(_,q){if(!q&&_.length){var $=_[0].loc,f=_[_.length-1].loc;if($&&f)q={source:$.source,start:{line:$.start.line,column:$.start.column},end:{line:f.end.line,column:f.end.column}}}return{type:"Program",body:_,strip:{},loc:q}}function eW(_,q,$,f){return OK(_,$),{type:"PartialBlockStatement",name:_.path,params:_.params,hash:_.hash,program:q,openStrip:_.strip,closeStrip:$&&$.strip,loc:this.locInfo(f)}}});var _9=X((Hk)=>{Hk.__esModule=!0;Hk.parseWithoutProcessing=Qj;Hk.parse=zk;function uk(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}function Uj(_){return _&&_.__esModule?_:{default:_}}var jk=yj(),YK=Uj(jk),wk=Bj(),Ok=Uj(wk),Yk=Fj(),Tk=uk(Yk),vk=T8();Hk.parser=YK.default;var G$={};vk.extend(G$,Tk);function Qj(_,q){if(_.type==="Program")return _;YK.default.yy=G$,G$.locInfo=function(f){return new G$.SourceLocation(q&&q.srcName,f)};var $=YK.default.parse(_);return $}function zk(_,q){var $=Qj(_,q),f=new Ok.default(q);return f.accept($)}});var K9=X((Dk)=>{Dk.__esModule=!0;Dk.Compiler=TK;Dk.precompile=mk;Dk.compile=Gk;function $9(_){return _&&_.__esModule?_:{default:_}}var hk=C8(),Pq=$9(hk),uq=T8(),Ak=KK(),Kq=$9(Ak),Xk=[].slice;function TK(){}TK.prototype={compiler:TK,equals:function _(q){var $=this.opcodes.length;if(q.opcodes.length!==$)return!1;for(var f=0;f<$;f++){var K=this.opcodes[f],P=q.opcodes[f];if(K.opcode!==P.opcode||!f9(K.args,P.args))return!1}$=this.children.length;for(var f=0;f<$;f++)if(!this.children[f].equals(q.children[f]))return!1;return!0},guid:0,compile:function _(q,$){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=$,this.stringParams=$.stringParams,this.trackIds=$.trackIds,$.blockParams=$.blockParams||[],$.knownHelpers=uq.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},$.knownHelpers),this.accept(q)},compileProgram:function _(q){var $=new this.compiler,f=$.compile(q,this.options),K=this.guid++;return this.usePartial=this.usePartial||f.usePartial,this.children[K]=f,this.useDepths=this.useDepths||f.useDepths,K},accept:function _(q){if(!this[q.type])throw new Pq.default("Unknown type: "+q.type,q);this.sourceNode.unshift(q);var $=this[q.type](q);return this.sourceNode.shift(),$},Program:function _(q){this.options.blockParams.unshift(q.blockParams);var $=q.body,f=$.length;for(var K=0;K<f;K++)this.accept($[K]);return this.options.blockParams.shift(),this.isSimple=f===1,this.blockParams=q.blockParams?q.blockParams.length:0,this},BlockStatement:function _(q){q9(q);var{program:$,inverse:f}=q;$=$&&this.compileProgram($),f=f&&this.compileProgram(f);var K=this.classifySexpr(q);if(K==="helper")this.helperSexpr(q,$,f);else if(K==="simple")this.simpleSexpr(q),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("blockValue",q.path.original);else this.ambiguousSexpr(q,$,f),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue");this.opcode("append")},DecoratorBlock:function _(q){var $=q.program&&this.compileProgram(q.program),f=this.setupFullMustacheParams(q,$,void 0),K=q.path;this.useDecorators=!0,this.opcode("registerDecorator",f.length,K.original)},PartialStatement:function _(q){this.usePartial=!0;var $=q.program;if($)$=this.compileProgram(q.program);var f=q.params;if(f.length>1)throw new Pq.default("Unsupported number of partial arguments: "+f.length,q);else if(!f.length)if(this.options.explicitPartialContext)this.opcode("pushLiteral","undefined");else f.push({type:"PathExpression",parts:[],depth:0});var K=q.name.original,P=q.name.type==="SubExpression";if(P)this.accept(q.name);this.setupFullMustacheParams(q,$,void 0,!0);var u=q.indent||"";if(this.options.preventIndent&&u)this.opcode("appendContent",u),u="";this.opcode("invokePartial",P,K,u),this.opcode("append")},PartialBlockStatement:function _(q){this.PartialStatement(q)},MustacheStatement:function _(q){if(this.SubExpression(q),q.escaped&&!this.options.noEscape)this.opcode("appendEscaped");else this.opcode("append")},Decorator:function _(q){this.DecoratorBlock(q)},ContentStatement:function _(q){if(q.value)this.opcode("appendContent",q.value)},CommentStatement:function _(){},SubExpression:function _(q){q9(q);var $=this.classifySexpr(q);if($==="simple")this.simpleSexpr(q);else if($==="helper")this.helperSexpr(q);else this.ambiguousSexpr(q)},ambiguousSexpr:function _(q,$,f){var K=q.path,P=K.parts[0],u=$!=null||f!=null;this.opcode("getContext",K.depth),this.opcode("pushProgram",$),this.opcode("pushProgram",f),K.strict=!0,this.accept(K),this.opcode("invokeAmbiguous",P,u)},simpleSexpr:function _(q){var $=q.path;$.strict=!0,this.accept($),this.opcode("resolvePossibleLambda")},helperSexpr:function _(q,$,f){var K=this.setupFullMustacheParams(q,$,f),P=q.path,u=P.parts[0];if(this.options.knownHelpers[u])this.opcode("invokeKnownHelper",K.length,u);else if(this.options.knownHelpersOnly)throw new Pq.default("You specified knownHelpersOnly, but used the unknown helper "+u,q);else P.strict=!0,P.falsy=!0,this.accept(P),this.opcode("invokeHelper",K.length,P.original,Kq.default.helpers.simpleId(P))},PathExpression:function _(q){this.addDepth(q.depth),this.opcode("getContext",q.depth);var $=q.parts[0],f=Kq.default.helpers.scopedId(q),K=!q.depth&&!f&&this.blockParamIndex($);if(K)this.opcode("lookupBlockParam",K,q.parts);else if(!$)this.opcode("pushContext");else if(q.data)this.options.data=!0,this.opcode("lookupData",q.depth,q.parts,q.strict);else this.opcode("lookupOnContext",q.parts,q.falsy,q.strict,f)},StringLiteral:function _(q){this.opcode("pushString",q.value)},NumberLiteral:function _(q){this.opcode("pushLiteral",q.value)},BooleanLiteral:function _(q){this.opcode("pushLiteral",q.value)},UndefinedLiteral:function _(){this.opcode("pushLiteral","undefined")},NullLiteral:function _(){this.opcode("pushLiteral","null")},Hash:function _(q){var $=q.pairs,f=0,K=$.length;this.opcode("pushHash");for(;f<K;f++)this.pushParam($[f].value);while(f--)this.opcode("assignToHash",$[f].key);this.opcode("popHash")},opcode:function _(q){this.opcodes.push({opcode:q,args:Xk.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function _(q){if(!q)return;this.useDepths=!0},classifySexpr:function _(q){var $=Kq.default.helpers.simpleId(q.path),f=$&&!!this.blockParamIndex(q.path.parts[0]),K=!f&&Kq.default.helpers.helperExpression(q),P=!f&&(K||$);if(P&&!K){var u=q.path.parts[0],j=this.options;if(j.knownHelpers[u])K=!0;else if(j.knownHelpersOnly)P=!1}if(K)return"helper";else if(P)return"ambiguous";else return"simple"},pushParams:function _(q){for(var $=0,f=q.length;$<f;$++)this.pushParam(q[$])},pushParam:function _(q){var $=q.value!=null?q.value:q.original||"";if(this.stringParams){if($.replace)$=$.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".");if(q.depth)this.addDepth(q.depth);if(this.opcode("getContext",q.depth||0),this.opcode("pushStringParam",$,q.type),q.type==="SubExpression")this.accept(q)}else{if(this.trackIds){var f=void 0;if(q.parts&&!Kq.default.helpers.scopedId(q)&&!q.depth)f=this.blockParamIndex(q.parts[0]);if(f){var K=q.parts.slice(1).join(".");this.opcode("pushId","BlockParam",f,K)}else{if($=q.original||$,$.replace)$=$.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"");this.opcode("pushId",q.type,$)}}this.accept(q)}},setupFullMustacheParams:function _(q,$,f,K){var P=q.params;if(this.pushParams(P),this.opcode("pushProgram",$),this.opcode("pushProgram",f),q.hash)this.accept(q.hash);else this.opcode("emptyHash",K);return P},blockParamIndex:function _(q){for(var $=0,f=this.options.blockParams.length;$<f;$++){var K=this.options.blockParams[$],P=K&&uq.indexOf(K,q);if(K&&P>=0)return[$,P]}}};function mk(_,q,$){if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Pq.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+_);if(q=q||{},!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=$.parse(_,q),K=new $.Compiler().compile(f,q);return new $.JavaScriptCompiler().compile(K,q)}function Gk(_,q,$){if(q===void 0)q={};if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Pq.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+_);if(q=uq.extend({},q),!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=void 0;function K(){var u=$.parse(_,q),j=new $.Compiler().compile(u,q),w=new $.JavaScriptCompiler().compile(j,q,void 0,!0);return $.template(w)}function P(u,j){if(!f)f=K();return f.call(this,u,j)}return P._setup=function(u){if(!f)f=K();return f._setup(u)},P._child=function(u,j,w,O){if(!f)f=K();return f._child(u,j,w,O)},P}function f9(_,q){if(_===q)return!0;if(uq.isArray(_)&&uq.isArray(q)&&_.length===q.length){for(var $=0;$<_.length;$++)if(!f9(_[$],q[$]))return!1;return!0}}function q9(_){if(!_.path.parts){var q=_.path;_.path={type:"PathExpression",data:!1,depth:0,parts:[q.original+""],original:q.original+"",loc:q.loc}}}});var u9=X((Vk)=>{var P9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Vk.encode=function(_){if(0<=_&&_<P9.length)return P9[_];throw new TypeError("Must be between 0 and 63: "+_)};Vk.decode=function(_){var q=65,$=90,f=97,K=122,P=48,u=57,j=43,w=47,O=26,v=52;if(q<=_&&_<=$)return _-q;if(f<=_&&_<=K)return _-f+O;if(P<=_&&_<=u)return _-P+v;if(_==j)return 62;if(_==w)return 63;return-1}});var zK=X((dk)=>{var j9=u9(),vK=5,w9=1<<vK,O9=w9-1,Y9=w9;function nk(_){return _<0?(-_<<1)+1:(_<<1)+0}function Sk(_){var q=(_&1)===1,$=_>>1;return q?-$:$}dk.encode=function _(q){var $="",f,K=nk(q);do{if(f=K&O9,K>>>=vK,K>0)f|=Y9;$+=j9.encode(f)}while(K>0);return $};dk.decode=function _(q,$,f){var K=q.length,P=0,u=0,j,w;do{if($>=K)throw new Error("Expected more digits in base 64 VLQ value.");if(w=j9.decode(q.charCodeAt($++)),w===-1)throw new Error("Invalid base64 digit: "+q.charAt($-1));j=!!(w&Y9),w&=O9,P=P+(w<<u),u+=vK}while(j);f.value=Sk(P),f.rest=$}});var Y6=X((ek)=>{function Ik(_,q,$){if(q in _)return _[q];else if(arguments.length===3)return $;else throw new Error('"'+q+'" is a required argument.')}ek.getArg=Ik;var T9=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ak=/^data:.+\,.+$/;function jq(_){var q=_.match(T9);if(!q)return null;return{scheme:q[1],auth:q[2],host:q[3],port:q[4],path:q[5]}}ek.urlParse=jq;function w6(_){var q="";if(_.scheme)q+=_.scheme+":";if(q+="//",_.auth)q+=_.auth+"@";if(_.host)q+=_.host;if(_.port)q+=":"+_.port;if(_.path)q+=_.path;return q}ek.urlGenerate=w6;function HK(_){var q=_,$=jq(_);if($){if(!$.path)return _;q=$.path}var f=ek.isAbsolute(q),K=q.split(/\/+/);for(var P,u=0,j=K.length-1;j>=0;j--)if(P=K[j],P===".")K.splice(j,1);else if(P==="..")u++;else if(u>0)if(P==="")K.splice(j+1,u),u=0;else K.splice(j,2),u--;if(q=K.join("/"),q==="")q=f?"/":".";if($)return $.path=q,w6($);return q}ek.normalize=HK;function v9(_,q){if(_==="")_=".";if(q==="")q=".";var $=jq(q),f=jq(_);if(f)_=f.path||"/";if($&&!$.scheme){if(f)$.scheme=f.scheme;return w6($)}if($||q.match(ak))return q;if(f&&!f.host&&!f.path)return f.host=q,w6(f);var K=q.charAt(0)==="/"?q:HK(_.replace(/\/+$/,"")+"/"+q);if(f)return f.path=K,w6(f);return K}ek.join=v9;ek.isAbsolute=function(_){return _.charAt(0)==="/"||T9.test(_)};function ok(_,q){if(_==="")_=".";_=_.replace(/\/$/,"");var $=0;while(q.indexOf(_+"/")!==0){var f=_.lastIndexOf("/");if(f<0)return q;if(_=_.slice(0,f),_.match(/^([^\/]+:\/)?\/*$/))return q;++$}return Array($+1).join("../")+q.substr(_.length+1)}ek.relative=ok;var z9=function(){var _=Object.create(null);return!("__proto__"in _)}();function H9(_){return _}function ik(_){if(W9(_))return"$"+_;return _}ek.toSetString=z9?H9:ik;function gk(_){if(W9(_))return _.slice(1);return _}ek.fromSetString=z9?H9:gk;function W9(_){if(!_)return!1;var q=_.length;if(q<9)return!1;if(_.charCodeAt(q-1)!==95||_.charCodeAt(q-2)!==95||_.charCodeAt(q-3)!==111||_.charCodeAt(q-4)!==116||_.charCodeAt(q-5)!==111||_.charCodeAt(q-6)!==114||_.charCodeAt(q-7)!==112||_.charCodeAt(q-8)!==95||_.charCodeAt(q-9)!==95)return!1;for(var $=q-10;$>=0;$--)if(_.charCodeAt($)!==36)return!1;return!0}function lk(_,q,$){var f=O6(_.source,q.source);if(f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0||$)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0)return f;if(f=_.generatedLine-q.generatedLine,f!==0)return f;return O6(_.name,q.name)}ek.compareByOriginalPositions=lk;function yk(_,q,$){var f=_.generatedLine-q.generatedLine;if(f!==0)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0||$)return f;if(f=O6(_.source,q.source),f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0)return f;return O6(_.name,q.name)}ek.compareByGeneratedPositionsDeflated=yk;function O6(_,q){if(_===q)return 0;if(_===null)return 1;if(q===null)return-1;if(_>q)return 1;return-1}function tk(_,q){var $=_.generatedLine-q.generatedLine;if($!==0)return $;if($=_.generatedColumn-q.generatedColumn,$!==0)return $;if($=O6(_.source,q.source),$!==0)return $;if($=_.originalLine-q.originalLine,$!==0)return $;if($=_.originalColumn-q.originalColumn,$!==0)return $;return O6(_.name,q.name)}ek.compareByGeneratedPositionsInflated=tk;function ck(_){return JSON.parse(_.replace(/^\)]}'[^\n]*\n/,""))}ek.parseSourceMapInput=ck;function Lk(_,q,$){if(q=q||"",_){if(_[_.length-1]!=="/"&&q[0]!=="/")_+="/";q=_+q}if($){var f=jq($);if(!f)throw new Error("sourceMapURL could not be parsed");if(f.path){var K=f.path.lastIndexOf("/");if(K>=0)f.path=f.path.substring(0,K+1)}q=v9(w6(f),q)}return HK(q)}ek.computeSourceURL=Lk});var JK=X((wJ)=>{var WK=Y6(),kK=Object.prototype.hasOwnProperty,E_=typeof Map!=="undefined";function u_(){this._array=[],this._set=E_?new Map:Object.create(null)}u_.fromArray=function _(q,$){var f=new u_;for(var K=0,P=q.length;K<P;K++)f.add(q[K],$);return f};u_.prototype.size=function _(){return E_?this._set.size:Object.getOwnPropertyNames(this._set).length};u_.prototype.add=function _(q,$){var f=E_?q:WK.toSetString(q),K=E_?this.has(q):kK.call(this._set,f),P=this._array.length;if(!K||$)this._array.push(q);if(!K)if(E_)this._set.set(q,P);else this._set[f]=P};u_.prototype.has=function _(q){if(E_)return this._set.has(q);else{var $=WK.toSetString(q);return kK.call(this._set,$)}};u_.prototype.indexOf=function _(q){if(E_){var $=this._set.get(q);if($>=0)return $}else{var f=WK.toSetString(q);if(kK.call(this._set,f))return this._set[f]}throw new Error('"'+q+'" is not in the set.')};u_.prototype.at=function _(q){if(q>=0&&q<this._array.length)return this._array[q];throw new Error("No element indexed by "+q)};u_.prototype.toArray=function _(){return this._array.slice()};wJ.ArraySet=u_});var J9=X((TJ)=>{var k9=Y6();function YJ(_,q){var $=_.generatedLine,f=q.generatedLine,K=_.generatedColumn,P=q.generatedColumn;return f>$||f==$&&P>=K||k9.compareByGeneratedPositionsInflated(_,q)<=0}function D$(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}D$.prototype.unsortedForEach=function _(q,$){this._array.forEach(q,$)};D$.prototype.add=function _(q){if(YJ(this._last,q))this._last=q,this._array.push(q);else this._sorted=!1,this._array.push(q)};D$.prototype.toArray=function _(){if(!this._sorted)this._array.sort(k9.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};TJ.MappingList=D$});var ZK=X((HJ)=>{var wq=zK(),P8=Y6(),C$=JK().ArraySet,zJ=J9().MappingList;function r8(_){if(!_)_={};this._file=P8.getArg(_,"file",null),this._sourceRoot=P8.getArg(_,"sourceRoot",null),this._skipValidation=P8.getArg(_,"skipValidation",!1),this._sources=new C$,this._names=new C$,this._mappings=new zJ,this._sourcesContents=null}r8.prototype._version=3;r8.fromSourceMap=function _(q){var $=q.sourceRoot,f=new r8({file:q.file,sourceRoot:$});return q.eachMapping(function(K){var P={generated:{line:K.generatedLine,column:K.generatedColumn}};if(K.source!=null){if(P.source=K.source,$!=null)P.source=P8.relative($,P.source);if(P.original={line:K.originalLine,column:K.originalColumn},K.name!=null)P.name=K.name}f.addMapping(P)}),q.sources.forEach(function(K){var P=K;if($!==null)P=P8.relative($,K);if(!f._sources.has(P))f._sources.add(P);var u=q.sourceContentFor(K);if(u!=null)f.setSourceContent(K,u)}),f};r8.prototype.addMapping=function _(q){var $=P8.getArg(q,"generated"),f=P8.getArg(q,"original",null),K=P8.getArg(q,"source",null),P=P8.getArg(q,"name",null);if(!this._skipValidation)this._validateMapping($,f,K,P);if(K!=null){if(K=String(K),!this._sources.has(K))this._sources.add(K)}if(P!=null){if(P=String(P),!this._names.has(P))this._names.add(P)}this._mappings.add({generatedLine:$.line,generatedColumn:$.column,originalLine:f!=null&&f.line,originalColumn:f!=null&&f.column,source:K,name:P})};r8.prototype.setSourceContent=function _(q,$){var f=q;if(this._sourceRoot!=null)f=P8.relative(this._sourceRoot,f);if($!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[P8.toSetString(f)]=$}else if(this._sourcesContents){if(delete this._sourcesContents[P8.toSetString(f)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};r8.prototype.applySourceMap=function _(q,$,f){var K=$;if($==null){if(q.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);K=q.file}var P=this._sourceRoot;if(P!=null)K=P8.relative(P,K);var u=new C$,j=new C$;this._mappings.unsortedForEach(function(w){if(w.source===K&&w.originalLine!=null){var O=q.originalPositionFor({line:w.originalLine,column:w.originalColumn});if(O.source!=null){if(w.source=O.source,f!=null)w.source=P8.join(f,w.source);if(P!=null)w.source=P8.relative(P,w.source);if(w.originalLine=O.line,w.originalColumn=O.column,O.name!=null)w.name=O.name}}var v=w.source;if(v!=null&&!u.has(v))u.add(v);var Y=w.name;if(Y!=null&&!j.has(Y))j.add(Y)},this),this._sources=u,this._names=j,q.sources.forEach(function(w){var O=q.sourceContentFor(w);if(O!=null){if(f!=null)w=P8.join(f,w);if(P!=null)w=P8.relative(P,w);this.setSourceContent(w,O)}},this)};r8.prototype._validateMapping=function _(q,$,f,K){if($&&typeof $.line!=="number"&&typeof $.column!=="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(q&&"line"in q&&"column"in q&&q.line>0&&q.column>=0&&!$&&!f&&!K)return;else if(q&&"line"in q&&"column"in q&&$&&"line"in $&&"column"in $&&q.line>0&&q.column>=0&&$.line>0&&$.column>=0&&f)return;else throw new Error("Invalid mapping: "+JSON.stringify({generated:q,source:f,original:$,name:K}))};r8.prototype._serializeMappings=function _(){var q=0,$=1,f=0,K=0,P=0,u=0,j="",w,O,v,Y,T=this._mappings.toArray();for(var z=0,W=T.length;z<W;z++){if(O=T[z],w="",O.generatedLine!==$){q=0;while(O.generatedLine!==$)w+=";",$++}else if(z>0){if(!P8.compareByGeneratedPositionsInflated(O,T[z-1]))continue;w+=","}if(w+=wq.encode(O.generatedColumn-q),q=O.generatedColumn,O.source!=null){if(Y=this._sources.indexOf(O.source),w+=wq.encode(Y-u),u=Y,w+=wq.encode(O.originalLine-1-K),K=O.originalLine-1,w+=wq.encode(O.originalColumn-f),f=O.originalColumn,O.name!=null)v=this._names.indexOf(O.name),w+=wq.encode(v-P),P=v}j+=w}return j};r8.prototype._generateSourcesContent=function _(q,$){return q.map(function(f){if(!this._sourcesContents)return null;if($!=null)f=P8.relative($,f);var K=P8.toSetString(f);return Object.prototype.hasOwnProperty.call(this._sourcesContents,K)?this._sourcesContents[K]:null},this)};r8.prototype.toJSON=function _(){var q={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)q.file=this._file;if(this._sourceRoot!=null)q.sourceRoot=this._sourceRoot;if(this._sourcesContents)q.sourcesContent=this._generateSourcesContent(q.sources,q.sourceRoot);return q};r8.prototype.toString=function _(){return JSON.stringify(this.toJSON())};HJ.SourceMapGenerator=r8});var h9=X((kJ)=>{kJ.GREATEST_LOWER_BOUND=1;kJ.LEAST_UPPER_BOUND=2;function hK(_,q,$,f,K,P){var u=Math.floor((q-_)/2)+_,j=K($,f[u],!0);if(j===0)return u;else if(j>0){if(q-u>1)return hK(u,q,$,f,K,P);if(P==kJ.LEAST_UPPER_BOUND)return q<f.length?q:-1;else return u}else{if(u-_>1)return hK(_,u,$,f,K,P);if(P==kJ.LEAST_UPPER_BOUND)return u;else return _<0?-1:_}}kJ.search=function _(q,$,f,K){if($.length===0)return-1;var P=hK(-1,$.length,q,$,f,K||kJ.GREATEST_LOWER_BOUND);if(P<0)return-1;while(P-1>=0){if(f($[P],$[P-1],!0)!==0)break;--P}return P}});var A9=X((hJ)=>{function XK(_,q,$){var f=_[q];_[q]=_[$],_[$]=f}function ZJ(_,q){return Math.round(_+Math.random()*(q-_))}function mK(_,q,$,f){if($<f){var K=ZJ($,f),P=$-1;XK(_,K,f);var u=_[f];for(var j=$;j<f;j++)if(q(_[j],u)<=0)P+=1,XK(_,P,j);XK(_,P+1,j);var w=P+1;mK(_,q,$,w-1),mK(_,q,w+1,f)}}hJ.quickSort=function(_,q){mK(_,q,0,_.length-1)}});var m9=X((mJ)=>{var E=Y6(),GK=h9(),T6=JK().ArraySet,XJ=zK(),Oq=A9().quickSort;function B(_,q){var $=_;if(typeof _==="string")$=E.parseSourceMapInput(_);return $.sections!=null?new y8($,q):new Y8($,q)}B.fromSourceMap=function(_,q){return Y8.fromSourceMap(_,q)};B.prototype._version=3;B.prototype.__generatedMappings=null;Object.defineProperty(B.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});B.prototype.__originalMappings=null;Object.defineProperty(B.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});B.prototype._charIsMappingSeparator=function _(q,$){var f=q.charAt($);return f===";"||f===","};B.prototype._parseMappings=function _(q,$){throw new Error("Subclasses must implement _parseMappings")};B.GENERATED_ORDER=1;B.ORIGINAL_ORDER=2;B.GREATEST_LOWER_BOUND=1;B.LEAST_UPPER_BOUND=2;B.prototype.eachMapping=function _(q,$,f){var K=$||null,P=f||B.GENERATED_ORDER,u;switch(P){case B.GENERATED_ORDER:u=this._generatedMappings;break;case B.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var j=this.sourceRoot;u.map(function(w){var O=w.source===null?null:this._sources.at(w.source);return O=E.computeSourceURL(j,O,this._sourceMapURL),{source:O,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(q,K)};B.prototype.allGeneratedPositionsFor=function _(q){var $=E.getArg(q,"line"),f={source:E.getArg(q,"source"),originalLine:$,originalColumn:E.getArg(q,"column",0)};if(f.source=this._findSourceIndex(f.source),f.source<0)return[];var K=[],P=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",E.compareByOriginalPositions,GK.LEAST_UPPER_BOUND);if(P>=0){var u=this._originalMappings[P];if(q.column===void 0){var j=u.originalLine;while(u&&u.originalLine===j)K.push({line:E.getArg(u,"generatedLine",null),column:E.getArg(u,"generatedColumn",null),lastColumn:E.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++P]}else{var w=u.originalColumn;while(u&&u.originalLine===$&&u.originalColumn==w)K.push({line:E.getArg(u,"generatedLine",null),column:E.getArg(u,"generatedColumn",null),lastColumn:E.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++P]}}return K};mJ.SourceMapConsumer=B;function Y8(_,q){var $=_;if(typeof _==="string")$=E.parseSourceMapInput(_);var f=E.getArg($,"version"),K=E.getArg($,"sources"),P=E.getArg($,"names",[]),u=E.getArg($,"sourceRoot",null),j=E.getArg($,"sourcesContent",null),w=E.getArg($,"mappings"),O=E.getArg($,"file",null);if(f!=this._version)throw new Error("Unsupported version: "+f);if(u)u=E.normalize(u);K=K.map(String).map(E.normalize).map(function(v){return u&&E.isAbsolute(u)&&E.isAbsolute(v)?E.relative(u,v):v}),this._names=T6.fromArray(P.map(String),!0),this._sources=T6.fromArray(K,!0),this._absoluteSources=this._sources.toArray().map(function(v){return E.computeSourceURL(u,v,q)}),this.sourceRoot=u,this.sourcesContent=j,this._mappings=w,this._sourceMapURL=q,this.file=O}Y8.prototype=Object.create(B.prototype);Y8.prototype.consumer=B;Y8.prototype._findSourceIndex=function(_){var q=_;if(this.sourceRoot!=null)q=E.relative(this.sourceRoot,q);if(this._sources.has(q))return this._sources.indexOf(q);var $;for($=0;$<this._absoluteSources.length;++$)if(this._absoluteSources[$]==_)return $;return-1};Y8.fromSourceMap=function _(q,$){var f=Object.create(Y8.prototype),K=f._names=T6.fromArray(q._names.toArray(),!0),P=f._sources=T6.fromArray(q._sources.toArray(),!0);f.sourceRoot=q._sourceRoot,f.sourcesContent=q._generateSourcesContent(f._sources.toArray(),f.sourceRoot),f.file=q._file,f._sourceMapURL=$,f._absoluteSources=f._sources.toArray().map(function(z){return E.computeSourceURL(f.sourceRoot,z,$)});var u=q._mappings.toArray().slice(),j=f.__generatedMappings=[],w=f.__originalMappings=[];for(var O=0,v=u.length;O<v;O++){var Y=u[O],T=new X9;if(T.generatedLine=Y.generatedLine,T.generatedColumn=Y.generatedColumn,Y.source){if(T.source=P.indexOf(Y.source),T.originalLine=Y.originalLine,T.originalColumn=Y.originalColumn,Y.name)T.name=K.indexOf(Y.name);w.push(T)}j.push(T)}return Oq(f.__originalMappings,E.compareByOriginalPositions),f};Y8.prototype._version=3;Object.defineProperty(Y8.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function X9(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Y8.prototype._parseMappings=function _(q,$){var f=1,K=0,P=0,u=0,j=0,w=0,O=q.length,v=0,Y={},T={},z=[],W=[],H,k,A,p,V;while(v<O)if(q.charAt(v)===";")f++,v++,K=0;else if(q.charAt(v)===",")v++;else{H=new X9,H.generatedLine=f;for(p=v;p<O;p++)if(this._charIsMappingSeparator(q,p))break;if(k=q.slice(v,p),A=Y[k],A)v+=k.length;else{A=[];while(v<p)XJ.decode(q,v,T),V=T.value,v=T.rest,A.push(V);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");Y[k]=A}if(H.generatedColumn=K+A[0],K=H.generatedColumn,A.length>1){if(H.source=j+A[1],j+=A[1],H.originalLine=P+A[2],P=H.originalLine,H.originalLine+=1,H.originalColumn=u+A[3],u=H.originalColumn,A.length>4)H.name=w+A[4],w+=A[4]}if(W.push(H),typeof H.originalLine==="number")z.push(H)}Oq(W,E.compareByGeneratedPositionsDeflated),this.__generatedMappings=W,Oq(z,E.compareByOriginalPositions),this.__originalMappings=z};Y8.prototype._findMapping=function _(q,$,f,K,P,u){if(q[f]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+q[f]);if(q[K]<0)throw new TypeError("Column must be greater than or equal to 0, got "+q[K]);return GK.search(q,$,P,u)};Y8.prototype.computeColumnSpans=function _(){for(var q=0;q<this._generatedMappings.length;++q){var $=this._generatedMappings[q];if(q+1<this._generatedMappings.length){var f=this._generatedMappings[q+1];if($.generatedLine===f.generatedLine){$.lastGeneratedColumn=f.generatedColumn-1;continue}}$.lastGeneratedColumn=1/0}};Y8.prototype.originalPositionFor=function _(q){var $={generatedLine:E.getArg(q,"line"),generatedColumn:E.getArg(q,"column")},f=this._findMapping($,this._generatedMappings,"generatedLine","generatedColumn",E.compareByGeneratedPositionsDeflated,E.getArg(q,"bias",B.GREATEST_LOWER_BOUND));if(f>=0){var K=this._generatedMappings[f];if(K.generatedLine===$.generatedLine){var P=E.getArg(K,"source",null);if(P!==null)P=this._sources.at(P),P=E.computeSourceURL(this.sourceRoot,P,this._sourceMapURL);var u=E.getArg(K,"name",null);if(u!==null)u=this._names.at(u);return{source:P,line:E.getArg(K,"originalLine",null),column:E.getArg(K,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};Y8.prototype.hasContentsOfAllSources=function _(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(q){return q==null})};Y8.prototype.sourceContentFor=function _(q,$){if(!this.sourcesContent)return null;var f=this._findSourceIndex(q);if(f>=0)return this.sourcesContent[f];var K=q;if(this.sourceRoot!=null)K=E.relative(this.sourceRoot,K);var P;if(this.sourceRoot!=null&&(P=E.urlParse(this.sourceRoot))){var u=K.replace(/^file:\/\//,"");if(P.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!P.path||P.path=="/")&&this._sources.has("/"+K))return this.sourcesContent[this._sources.indexOf("/"+K)]}if($)return null;else throw new Error('"'+K+'" is not in the SourceMap.')};Y8.prototype.generatedPositionFor=function _(q){var $=E.getArg(q,"source");if($=this._findSourceIndex($),$<0)return{line:null,column:null,lastColumn:null};var f={source:$,originalLine:E.getArg(q,"line"),originalColumn:E.getArg(q,"column")},K=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",E.compareByOriginalPositions,E.getArg(q,"bias",B.GREATEST_LOWER_BOUND));if(K>=0){var P=this._originalMappings[K];if(P.source===f.source)return{line:E.getArg(P,"generatedLine",null),column:E.getArg(P,"generatedColumn",null),lastColumn:E.getArg(P,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};mJ.BasicSourceMapConsumer=Y8;function y8(_,q){var $=_;if(typeof _==="string")$=E.parseSourceMapInput(_);var f=E.getArg($,"version"),K=E.getArg($,"sections");if(f!=this._version)throw new Error("Unsupported version: "+f);this._sources=new T6,this._names=new T6;var P={line:-1,column:0};this._sections=K.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var j=E.getArg(u,"offset"),w=E.getArg(j,"line"),O=E.getArg(j,"column");if(w<P.line||w===P.line&&O<P.column)throw new Error("Section offsets must be ordered and non-overlapping.");return P=j,{generatedOffset:{generatedLine:w+1,generatedColumn:O+1},consumer:new B(E.getArg(u,"map"),q)}})}y8.prototype=Object.create(B.prototype);y8.prototype.constructor=B;y8.prototype._version=3;Object.defineProperty(y8.prototype,"sources",{get:function(){var _=[];for(var q=0;q<this._sections.length;q++)for(var $=0;$<this._sections[q].consumer.sources.length;$++)_.push(this._sections[q].consumer.sources[$]);return _}});y8.prototype.originalPositionFor=function _(q){var $={generatedLine:E.getArg(q,"line"),generatedColumn:E.getArg(q,"column")},f=GK.search($,this._sections,function(P,u){var j=P.generatedLine-u.generatedOffset.generatedLine;if(j)return j;return P.generatedColumn-u.generatedOffset.generatedColumn}),K=this._sections[f];if(!K)return{source:null,line:null,column:null,name:null};return K.consumer.originalPositionFor({line:$.generatedLine-(K.generatedOffset.generatedLine-1),column:$.generatedColumn-(K.generatedOffset.generatedLine===$.generatedLine?K.generatedOffset.generatedColumn-1:0),bias:q.bias})};y8.prototype.hasContentsOfAllSources=function _(){return this._sections.every(function(q){return q.consumer.hasContentsOfAllSources()})};y8.prototype.sourceContentFor=function _(q,$){for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer.sourceContentFor(q,!0);if(P)return P}if($)return null;else throw new Error('"'+q+'" is not in the SourceMap.')};y8.prototype.generatedPositionFor=function _(q){for(var $=0;$<this._sections.length;$++){var f=this._sections[$];if(f.consumer._findSourceIndex(E.getArg(q,"source"))===-1)continue;var K=f.consumer.generatedPositionFor(q);if(K){var P={line:K.line+(f.generatedOffset.generatedLine-1),column:K.column+(f.generatedOffset.generatedLine===K.line?f.generatedOffset.generatedColumn-1:0)};return P}}return{line:null,column:null}};y8.prototype._parseMappings=function _(q,$){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer._generatedMappings;for(var u=0;u<P.length;u++){var j=P[u],w=K.consumer._sources.at(j.source);w=E.computeSourceURL(K.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var O=null;if(j.name)O=K.consumer._names.at(j.name),this._names.add(O),O=this._names.indexOf(O);var v={source:w,generatedLine:j.generatedLine+(K.generatedOffset.generatedLine-1),generatedColumn:j.generatedColumn+(K.generatedOffset.generatedLine===j.generatedLine?K.generatedOffset.generatedColumn-1:0),originalLine:j.originalLine,originalColumn:j.originalColumn,name:O};if(this.__generatedMappings.push(v),typeof v.originalLine==="number")this.__originalMappings.push(v)}}Oq(this.__generatedMappings,E.compareByGeneratedPositionsDeflated),Oq(this.__originalMappings,E.compareByOriginalPositions)};mJ.IndexedSourceMapConsumer=y8});var G9=X((VJ)=>{var rJ=ZK().SourceMapGenerator,r$=Y6(),pJ=/(\r?\n)/,bJ=10,v6="$$$isSourceNode$$$";function Z8(_,q,$,f,K){if(this.children=[],this.sourceContents={},this.line=_==null?null:_,this.column=q==null?null:q,this.source=$==null?null:$,this.name=K==null?null:K,this[v6]=!0,f!=null)this.add(f)}Z8.fromStringWithSourceMap=function _(q,$,f){var K=new Z8,P=q.split(pJ),u=0,j=function(){var T=W(),z=W()||"";return T+z;function W(){return u<P.length?P[u++]:void 0}},w=1,O=0,v=null;if($.eachMapping(function(T){if(v!==null)if(w<T.generatedLine)Y(v,j()),w++,O=0;else{var z=P[u]||"",W=z.substr(0,T.generatedColumn-O);P[u]=z.substr(T.generatedColumn-O),O=T.generatedColumn,Y(v,W),v=T;return}while(w<T.generatedLine)K.add(j()),w++;if(O<T.generatedColumn){var z=P[u]||"";K.add(z.substr(0,T.generatedColumn)),P[u]=z.substr(T.generatedColumn),O=T.generatedColumn}v=T},this),u<P.length){if(v)Y(v,j());K.add(P.splice(u).join(""))}return $.sources.forEach(function(T){var z=$.sourceContentFor(T);if(z!=null){if(f!=null)T=r$.join(f,T);K.setSourceContent(T,z)}}),K;function Y(T,z){if(T===null||T.source===void 0)K.add(z);else{var W=f?r$.join(f,T.source):T.source;K.add(new Z8(T.originalLine,T.originalColumn,W,z,T.name))}}};Z8.prototype.add=function _(q){if(Array.isArray(q))q.forEach(function($){this.add($)},this);else if(q[v6]||typeof q==="string"){if(q)this.children.push(q)}else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};Z8.prototype.prepend=function _(q){if(Array.isArray(q))for(var $=q.length-1;$>=0;$--)this.prepend(q[$]);else if(q[v6]||typeof q==="string")this.children.unshift(q);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};Z8.prototype.walk=function _(q){var $;for(var f=0,K=this.children.length;f<K;f++)if($=this.children[f],$[v6])$.walk(q);else if($!=="")q($,{source:this.source,line:this.line,column:this.column,name:this.name})};Z8.prototype.join=function _(q){var $,f,K=this.children.length;if(K>0){$=[];for(f=0;f<K-1;f++)$.push(this.children[f]),$.push(q);$.push(this.children[f]),this.children=$}return this};Z8.prototype.replaceRight=function _(q,$){var f=this.children[this.children.length-1];if(f[v6])f.replaceRight(q,$);else if(typeof f==="string")this.children[this.children.length-1]=f.replace(q,$);else this.children.push("".replace(q,$));return this};Z8.prototype.setSourceContent=function _(q,$){this.sourceContents[r$.toSetString(q)]=$};Z8.prototype.walkSourceContents=function _(q){for(var $=0,f=this.children.length;$<f;$++)if(this.children[$][v6])this.children[$].walkSourceContents(q);var K=Object.keys(this.sourceContents);for(var $=0,f=K.length;$<f;$++)q(r$.fromSetString(K[$]),this.sourceContents[K[$]])};Z8.prototype.toString=function _(){var q="";return this.walk(function($){q+=$}),q};Z8.prototype.toStringWithSourceMap=function _(q){var $={code:"",line:1,column:0},f=new rJ(q),K=!1,P=null,u=null,j=null,w=null;return this.walk(function(O,v){if($.code+=O,v.source!==null&&v.line!==null&&v.column!==null){if(P!==v.source||u!==v.line||j!==v.column||w!==v.name)f.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:$.line,column:$.column},name:v.name});P=v.source,u=v.line,j=v.column,w=v.name,K=!0}else if(K)f.addMapping({generated:{line:$.line,column:$.column}}),P=null,K=!1;for(var Y=0,T=O.length;Y<T;Y++)if(O.charCodeAt(Y)===bJ){if($.line++,$.column=0,Y+1===T)P=null,K=!1;else if(K)f.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:$.line,column:$.column},name:v.name})}else $.column++}),this.walkSourceContents(function(O,v){f.setSourceContent(O,v)}),{code:$.code,map:f}};VJ.SourceNode=Z8});var D9=X((NJ)=>{NJ.SourceMapGenerator=ZK().SourceMapGenerator;NJ.SourceMapConsumer=m9().SourceMapConsumer;NJ.SourceNode=G9().SourceNode});var b9=X((r9,p9)=>{r9.__esModule=!0;var CK=T8(),R_=void 0;try{if(typeof define!=="function"||!define.amd)rK=D9(),R_=rK.SourceNode}catch(_){}var rK;if(!R_)R_=function(_,q,$,f){if(this.src="",f)this.add(f)},R_.prototype={add:function _(q){if(CK.isArray(q))q=q.join("");this.src+=q},prepend:function _(q){if(CK.isArray(q))q=q.join("");this.src=q+this.src},toStringWithSourceMap:function _(){return{code:this.toString()}},toString:function _(){return this.src}};function DK(_,q,$){if(CK.isArray(_)){var f=[];for(var K=0,P=_.length;K<P;K++)f.push(q.wrap(_[K],$));return f}else if(typeof _==="boolean"||typeof _==="number")return _+"";return _}function C9(_){this.srcFile=_,this.source=[]}C9.prototype={isEmpty:function _(){return!this.source.length},prepend:function _(q,$){this.source.unshift(this.wrap(q,$))},push:function _(q,$){this.source.push(this.wrap(q,$))},merge:function _(){var q=this.empty();return this.each(function($){q.add([" ",$,`
|
|
58
|
-
`])}),q},each:function _(q){for(var $=0,f=this.source.length;$<f;$++)q(this.source[$])},empty:function _(){var q=this.currentLocation||{start:{}};return new R_(q.start.line,q.start.column,this.srcFile)},wrap:function _(q){var $=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];if(q instanceof R_)return q;return q=
|
|
57
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function K(){var P=this.next();if(typeof P!=="undefined")return P;else return this.lex()},begin:function K(P){this.conditionStack.push(P)},popState:function K(){return this.conditionStack.pop()},_currentRules:function K(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function K(){return this.conditionStack[this.conditionStack.length-2]},pushState:function K(P){this.begin(P)}};return f.options={},f.performAction=function K(P,u,j,w){function O(Y,T){return u.yytext=u.yytext.substring(Y,u.yyleng-T+Y)}var v=w;switch(j){case 0:if(u.yytext.slice(-2)==="\\\\")O(0,1),this.begin("mu");else if(u.yytext.slice(-1)==="\\")O(0,1),this.begin("emu");else this.begin("mu");if(u.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:if(this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw")return 15;else return O(5,9),"END_RAW_BLOCK";break;case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(u.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return u.yytext=O(1,2).replace(/\\"/g,'"'),80;break;case 32:return u.yytext=O(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},f.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],f.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},f}();_.lexer=q;function $(){this.yy={}}return $.prototype=_,_.Parser=$,new $}();Ij.default=mW;aj.exports=Ij.default});var h$=X((lj,yj)=>{lj.__esModule=!0;function CW(_){return _&&_.__esModule?_:{default:_}}var rW=C8(),$K=CW(rW);function J$(){this.parents=[]}J$.prototype={constructor:J$,mutating:!1,acceptKey:function _(q,$){var f=this.accept(q[$]);if(this.mutating){if(f&&!J$.prototype[f.type])throw new $K.default('Unexpected node type "'+f.type+'" found when accepting '+$+" on "+q.type);q[$]=f}},acceptRequired:function _(q,$){if(this.acceptKey(q,$),!q[$])throw new $K.default(q.type+" requires "+$)},acceptArray:function _(q){for(var $=0,f=q.length;$<f;$++)if(this.acceptKey(q,$),!q[$])q.splice($,1),$--,f--},accept:function _(q){if(!q)return;if(!this[q.type])throw new $K.default("Unknown type: "+q.type,q);if(this.current)this.parents.unshift(this.current);this.current=q;var $=this[q.type](q);if(this.current=this.parents.shift(),!this.mutating||$)return $;else if($!==!1)return q},Program:function _(q){this.acceptArray(q.body)},MustacheStatement:Z$,Decorator:Z$,BlockStatement:ij,DecoratorBlock:ij,PartialStatement:gj,PartialBlockStatement:function _(q){gj.call(this,q),this.acceptKey(q,"program")},ContentStatement:function _(){},CommentStatement:function _(){},SubExpression:Z$,PathExpression:function _(){},StringLiteral:function _(){},NumberLiteral:function _(){},BooleanLiteral:function _(){},UndefinedLiteral:function _(){},NullLiteral:function _(){},Hash:function _(q){this.acceptArray(q.pairs)},HashPair:function _(q){this.acceptRequired(q,"value")}};function Z$(_){this.acceptRequired(_,"path"),this.acceptArray(_.params),this.acceptKey(_,"hash")}function ij(_){Z$.call(this,_),this.acceptKey(_,"program"),this.acceptKey(_,"inverse")}function gj(_){this.acceptRequired(_,"name"),this.acceptArray(_.params),this.acceptKey(_,"hash")}lj.default=J$;yj.exports=lj.default});var Lj=X((tj,cj)=>{tj.__esModule=!0;function VW(_){return _&&_.__esModule?_:{default:_}}var MW=h$(),NW=VW(MW);function B8(){var _=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=_}B8.prototype=new NW.default;B8.prototype.Program=function(_){var q=!this.options.ignoreStandalone,$=!this.isRootSeen;this.isRootSeen=!0;var f=_.body;for(var K=0,P=f.length;K<P;K++){var u=f[K],j=this.accept(u);if(!j)continue;var w=fK(f,K,$),O=KK(f,K,$),v=j.openStandalone&&w,Y=j.closeStandalone&&O,T=j.inlineStandalone&&w&&O;if(j.close)d_(f,K,!0);if(j.open)v_(f,K,!0);if(q&&T){if(d_(f,K),v_(f,K)){if(u.type==="PartialStatement")u.indent=/([ \t]+$)/.exec(f[K-1].original)[1]}}if(q&&v)d_((u.program||u.inverse).body),v_(f,K);if(q&&Y)d_(f,K),v_((u.inverse||u.program).body)}return _};B8.prototype.BlockStatement=B8.prototype.DecoratorBlock=B8.prototype.PartialBlockStatement=function(_){this.accept(_.program),this.accept(_.inverse);var q=_.program||_.inverse,$=_.program&&_.inverse,f=$,K=$;if($&&$.chained){f=$.body[0].program;while(K.chained)K=K.body[K.body.length-1].program}var P={open:_.openStrip.open,close:_.closeStrip.close,openStandalone:KK(q.body),closeStandalone:fK((f||q).body)};if(_.openStrip.close)d_(q.body,null,!0);if($){var u=_.inverseStrip;if(u.open)v_(q.body,null,!0);if(u.close)d_(f.body,null,!0);if(_.closeStrip.open)v_(K.body,null,!0);if(!this.options.ignoreStandalone&&fK(q.body)&&KK(f.body))v_(q.body),d_(f.body)}else if(_.closeStrip.open)v_(q.body,null,!0);return P};B8.prototype.Decorator=B8.prototype.MustacheStatement=function(_){return _.strip};B8.prototype.PartialStatement=B8.prototype.CommentStatement=function(_){var q=_.strip||{};return{inlineStandalone:!0,open:q.open,close:q.close}};function fK(_,q,$){if(q===void 0)q=_.length;var f=_[q-1],K=_[q-2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function KK(_,q,$){if(q===void 0)q=-1;var f=_[q+1],K=_[q+2];if(!f)return $;if(f.type==="ContentStatement")return(K||!$?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function d_(_,q,$){var f=_[q==null?0:q+1];if(!f||f.type!=="ContentStatement"||!$&&f.rightStripped)return;var K=f.value;f.value=f.value.replace($?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==K}function v_(_,q,$){var f=_[q==null?_.length-1:q-1];if(!f||f.type!=="ContentStatement"||!$&&f.leftStripped)return;var K=f.value;return f.value=f.value.replace($?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==K,f.leftStripped}tj.default=B8;cj.exports=tj.default});var ej=X((LW)=>{LW.__esModule=!0;LW.SourceLocation=RW;LW.id=IW;LW.stripFlags=aW;LW.stripComment=oW;LW.preparePath=iW;LW.prepareMustache=gW;LW.prepareRawBlock=lW;LW.prepareBlock=yW;LW.prepareProgram=tW;LW.preparePartialBlock=cW;function dW(_){return _&&_.__esModule?_:{default:_}}var EW=C8(),PK=dW(EW);function uK(_,q){if(q=q.path?q.path.original:q,_.path.original!==q){var $={loc:_.path.loc};throw new PK.default(_.path.original+" doesn't match "+q,$)}}function RW(_,q){this.source=_,this.start={line:q.first_line,column:q.first_column},this.end={line:q.last_line,column:q.last_column}}function IW(_){if(/^\[.*\]$/.test(_))return _.substring(1,_.length-1);else return _}function aW(_,q){return{open:_.charAt(2)==="~",close:q.charAt(q.length-3)==="~"}}function oW(_){return _.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function iW(_,q,$){$=this.locInfo($);var f=_?"@":"",K=[],P=0;for(var u=0,j=q.length;u<j;u++){var w=q[u].part,O=q[u].original!==w;if(f+=(q[u].separator||"")+w,!O&&(w===".."||w==="."||w==="this")){if(K.length>0)throw new PK.default("Invalid path: "+f,{loc:$});else if(w==="..")P++}else K.push(w)}return{type:"PathExpression",data:_,depth:P,parts:K,original:f,loc:$}}function gW(_,q,$,f,K,P){var u=f.charAt(3)||f.charAt(2),j=u!=="{"&&u!=="&",w=/\*/.test(f);return{type:w?"Decorator":"MustacheStatement",path:_,params:q,hash:$,escaped:j,strip:K,loc:this.locInfo(P)}}function lW(_,q,$,f){uK(_,$),f=this.locInfo(f);var K={type:"Program",body:q,strip:{},loc:f};return{type:"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:K,openStrip:{},inverseStrip:{},closeStrip:{},loc:f}}function yW(_,q,$,f,K,P){if(f&&f.path)uK(_,f);var u=/\*/.test(_.open);q.blockParams=_.blockParams;var j=void 0,w=void 0;if($){if(u)throw new PK.default("Unexpected inverse block on decorator",$);if($.chain)$.program.body[0].closeStrip=f.strip;w=$.strip,j=$.program}if(K)K=j,j=q,q=K;return{type:u?"DecoratorBlock":"BlockStatement",path:_.path,params:_.params,hash:_.hash,program:q,inverse:j,openStrip:_.strip,inverseStrip:w,closeStrip:f&&f.strip,loc:this.locInfo(P)}}function tW(_,q){if(!q&&_.length){var $=_[0].loc,f=_[_.length-1].loc;if($&&f)q={source:$.source,start:{line:$.start.line,column:$.start.column},end:{line:f.end.line,column:f.end.column}}}return{type:"Program",body:_,strip:{},loc:q}}function cW(_,q,$,f){return uK(_,$),{type:"PartialBlockStatement",name:_.path,params:_.params,hash:_.hash,program:q,openStrip:_.strip,closeStrip:$&&$.strip,loc:this.locInfo(f)}}});var Bj=X((vk)=>{vk.__esModule=!0;vk.parseWithoutProcessing=sj;vk.parse=Tk;function Kk(_){if(_&&_.__esModule)return _;else{var q={};if(_!=null){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))q[$]=_[$]}return q.default=_,q}}function xj(_){return _&&_.__esModule?_:{default:_}}var Pk=oj(),jK=xj(Pk),uk=Lj(),jk=xj(uk),wk=ej(),Ok=Kk(wk),Yk=T8();vk.parser=jK.default;var A$={};Yk.extend(A$,Ok);function sj(_,q){if(_.type==="Program")return _;jK.default.yy=A$,A$.locInfo=function(f){return new A$.SourceLocation(q&&q.srcName,f)};var $=jK.default.parse(_);return $}function Tk(_,q){var $=sj(_,q),f=new jk.default(q);return f.accept($)}});var _9=X((mk)=>{mk.__esModule=!0;mk.Compiler=wK;mk.precompile=Ak;mk.compile=Xk;function Uj(_){return _&&_.__esModule?_:{default:_}}var Jk=C8(),Pq=Uj(Jk),uq=T8(),Zk=qK(),Kq=Uj(Zk),hk=[].slice;function wK(){}wK.prototype={compiler:wK,equals:function _(q){var $=this.opcodes.length;if(q.opcodes.length!==$)return!1;for(var f=0;f<$;f++){var K=this.opcodes[f],P=q.opcodes[f];if(K.opcode!==P.opcode||!Qj(K.args,P.args))return!1}$=this.children.length;for(var f=0;f<$;f++)if(!this.children[f].equals(q.children[f]))return!1;return!0},guid:0,compile:function _(q,$){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=$,this.stringParams=$.stringParams,this.trackIds=$.trackIds,$.blockParams=$.blockParams||[],$.knownHelpers=uq.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},$.knownHelpers),this.accept(q)},compileProgram:function _(q){var $=new this.compiler,f=$.compile(q,this.options),K=this.guid++;return this.usePartial=this.usePartial||f.usePartial,this.children[K]=f,this.useDepths=this.useDepths||f.useDepths,K},accept:function _(q){if(!this[q.type])throw new Pq.default("Unknown type: "+q.type,q);this.sourceNode.unshift(q);var $=this[q.type](q);return this.sourceNode.shift(),$},Program:function _(q){this.options.blockParams.unshift(q.blockParams);var $=q.body,f=$.length;for(var K=0;K<f;K++)this.accept($[K]);return this.options.blockParams.shift(),this.isSimple=f===1,this.blockParams=q.blockParams?q.blockParams.length:0,this},BlockStatement:function _(q){Fj(q);var{program:$,inverse:f}=q;$=$&&this.compileProgram($),f=f&&this.compileProgram(f);var K=this.classifySexpr(q);if(K==="helper")this.helperSexpr(q,$,f);else if(K==="simple")this.simpleSexpr(q),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("blockValue",q.path.original);else this.ambiguousSexpr(q,$,f),this.opcode("pushProgram",$),this.opcode("pushProgram",f),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue");this.opcode("append")},DecoratorBlock:function _(q){var $=q.program&&this.compileProgram(q.program),f=this.setupFullMustacheParams(q,$,void 0),K=q.path;this.useDecorators=!0,this.opcode("registerDecorator",f.length,K.original)},PartialStatement:function _(q){this.usePartial=!0;var $=q.program;if($)$=this.compileProgram(q.program);var f=q.params;if(f.length>1)throw new Pq.default("Unsupported number of partial arguments: "+f.length,q);else if(!f.length)if(this.options.explicitPartialContext)this.opcode("pushLiteral","undefined");else f.push({type:"PathExpression",parts:[],depth:0});var K=q.name.original,P=q.name.type==="SubExpression";if(P)this.accept(q.name);this.setupFullMustacheParams(q,$,void 0,!0);var u=q.indent||"";if(this.options.preventIndent&&u)this.opcode("appendContent",u),u="";this.opcode("invokePartial",P,K,u),this.opcode("append")},PartialBlockStatement:function _(q){this.PartialStatement(q)},MustacheStatement:function _(q){if(this.SubExpression(q),q.escaped&&!this.options.noEscape)this.opcode("appendEscaped");else this.opcode("append")},Decorator:function _(q){this.DecoratorBlock(q)},ContentStatement:function _(q){if(q.value)this.opcode("appendContent",q.value)},CommentStatement:function _(){},SubExpression:function _(q){Fj(q);var $=this.classifySexpr(q);if($==="simple")this.simpleSexpr(q);else if($==="helper")this.helperSexpr(q);else this.ambiguousSexpr(q)},ambiguousSexpr:function _(q,$,f){var K=q.path,P=K.parts[0],u=$!=null||f!=null;this.opcode("getContext",K.depth),this.opcode("pushProgram",$),this.opcode("pushProgram",f),K.strict=!0,this.accept(K),this.opcode("invokeAmbiguous",P,u)},simpleSexpr:function _(q){var $=q.path;$.strict=!0,this.accept($),this.opcode("resolvePossibleLambda")},helperSexpr:function _(q,$,f){var K=this.setupFullMustacheParams(q,$,f),P=q.path,u=P.parts[0];if(this.options.knownHelpers[u])this.opcode("invokeKnownHelper",K.length,u);else if(this.options.knownHelpersOnly)throw new Pq.default("You specified knownHelpersOnly, but used the unknown helper "+u,q);else P.strict=!0,P.falsy=!0,this.accept(P),this.opcode("invokeHelper",K.length,P.original,Kq.default.helpers.simpleId(P))},PathExpression:function _(q){this.addDepth(q.depth),this.opcode("getContext",q.depth);var $=q.parts[0],f=Kq.default.helpers.scopedId(q),K=!q.depth&&!f&&this.blockParamIndex($);if(K)this.opcode("lookupBlockParam",K,q.parts);else if(!$)this.opcode("pushContext");else if(q.data)this.options.data=!0,this.opcode("lookupData",q.depth,q.parts,q.strict);else this.opcode("lookupOnContext",q.parts,q.falsy,q.strict,f)},StringLiteral:function _(q){this.opcode("pushString",q.value)},NumberLiteral:function _(q){this.opcode("pushLiteral",q.value)},BooleanLiteral:function _(q){this.opcode("pushLiteral",q.value)},UndefinedLiteral:function _(){this.opcode("pushLiteral","undefined")},NullLiteral:function _(){this.opcode("pushLiteral","null")},Hash:function _(q){var $=q.pairs,f=0,K=$.length;this.opcode("pushHash");for(;f<K;f++)this.pushParam($[f].value);while(f--)this.opcode("assignToHash",$[f].key);this.opcode("popHash")},opcode:function _(q){this.opcodes.push({opcode:q,args:hk.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function _(q){if(!q)return;this.useDepths=!0},classifySexpr:function _(q){var $=Kq.default.helpers.simpleId(q.path),f=$&&!!this.blockParamIndex(q.path.parts[0]),K=!f&&Kq.default.helpers.helperExpression(q),P=!f&&(K||$);if(P&&!K){var u=q.path.parts[0],j=this.options;if(j.knownHelpers[u])K=!0;else if(j.knownHelpersOnly)P=!1}if(K)return"helper";else if(P)return"ambiguous";else return"simple"},pushParams:function _(q){for(var $=0,f=q.length;$<f;$++)this.pushParam(q[$])},pushParam:function _(q){var $=q.value!=null?q.value:q.original||"";if(this.stringParams){if($.replace)$=$.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".");if(q.depth)this.addDepth(q.depth);if(this.opcode("getContext",q.depth||0),this.opcode("pushStringParam",$,q.type),q.type==="SubExpression")this.accept(q)}else{if(this.trackIds){var f=void 0;if(q.parts&&!Kq.default.helpers.scopedId(q)&&!q.depth)f=this.blockParamIndex(q.parts[0]);if(f){var K=q.parts.slice(1).join(".");this.opcode("pushId","BlockParam",f,K)}else{if($=q.original||$,$.replace)$=$.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"");this.opcode("pushId",q.type,$)}}this.accept(q)}},setupFullMustacheParams:function _(q,$,f,K){var P=q.params;if(this.pushParams(P),this.opcode("pushProgram",$),this.opcode("pushProgram",f),q.hash)this.accept(q.hash);else this.opcode("emptyHash",K);return P},blockParamIndex:function _(q){for(var $=0,f=this.options.blockParams.length;$<f;$++){var K=this.options.blockParams[$],P=K&&uq.indexOf(K,q);if(K&&P>=0)return[$,P]}}};function Ak(_,q,$){if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Pq.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+_);if(q=q||{},!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=$.parse(_,q),K=new $.Compiler().compile(f,q);return new $.JavaScriptCompiler().compile(K,q)}function Xk(_,q,$){if(q===void 0)q={};if(_==null||typeof _!=="string"&&_.type!=="Program")throw new Pq.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+_);if(q=uq.extend({},q),!("data"in q))q.data=!0;if(q.compat)q.useDepths=!0;var f=void 0;function K(){var u=$.parse(_,q),j=new $.Compiler().compile(u,q),w=new $.JavaScriptCompiler().compile(j,q,void 0,!0);return $.template(w)}function P(u,j){if(!f)f=K();return f.call(this,u,j)}return P._setup=function(u){if(!f)f=K();return f._setup(u)},P._child=function(u,j,w,O){if(!f)f=K();return f._child(u,j,w,O)},P}function Qj(_,q){if(_===q)return!0;if(uq.isArray(_)&&uq.isArray(q)&&_.length===q.length){for(var $=0;$<_.length;$++)if(!Qj(_[$],q[$]))return!1;return!0}}function Fj(_){if(!_.path.parts){var q=_.path;_.path={type:"PathExpression",data:!1,depth:0,parts:[q.original+""],original:q.original+"",loc:q.loc}}}});var $9=X((pk)=>{var q9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");pk.encode=function(_){if(0<=_&&_<q9.length)return q9[_];throw new TypeError("Must be between 0 and 63: "+_)};pk.decode=function(_){var q=65,$=90,f=97,K=122,P=48,u=57,j=43,w=47,O=26,v=52;if(q<=_&&_<=$)return _-q;if(f<=_&&_<=K)return _-f+O;if(P<=_&&_<=u)return _-P+v;if(_==j)return 62;if(_==w)return 63;return-1}});var YK=X((nk)=>{var f9=$9(),OK=5,K9=1<<OK,P9=K9-1,u9=K9;function Mk(_){return _<0?(-_<<1)+1:(_<<1)+0}function Nk(_){var q=(_&1)===1,$=_>>1;return q?-$:$}nk.encode=function _(q){var $="",f,K=Mk(q);do{if(f=K&P9,K>>>=OK,K>0)f|=u9;$+=f9.encode(f)}while(K>0);return $};nk.decode=function _(q,$,f){var K=q.length,P=0,u=0,j,w;do{if($>=K)throw new Error("Expected more digits in base 64 VLQ value.");if(w=f9.decode(q.charCodeAt($++)),w===-1)throw new Error("Invalid base64 digit: "+q.charAt($-1));j=!!(w&u9),w&=P9,P=P+(w<<u),u+=OK}while(j);f.value=Nk(P),f.rest=$}});var Y6=X((ck)=>{function Ek(_,q,$){if(q in _)return _[q];else if(arguments.length===3)return $;else throw new Error('"'+q+'" is a required argument.')}ck.getArg=Ek;var j9=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Rk=/^data:.+\,.+$/;function jq(_){var q=_.match(j9);if(!q)return null;return{scheme:q[1],auth:q[2],host:q[3],port:q[4],path:q[5]}}ck.urlParse=jq;function w6(_){var q="";if(_.scheme)q+=_.scheme+":";if(q+="//",_.auth)q+=_.auth+"@";if(_.host)q+=_.host;if(_.port)q+=":"+_.port;if(_.path)q+=_.path;return q}ck.urlGenerate=w6;function TK(_){var q=_,$=jq(_);if($){if(!$.path)return _;q=$.path}var f=ck.isAbsolute(q),K=q.split(/\/+/);for(var P,u=0,j=K.length-1;j>=0;j--)if(P=K[j],P===".")K.splice(j,1);else if(P==="..")u++;else if(u>0)if(P==="")K.splice(j+1,u),u=0;else K.splice(j,2),u--;if(q=K.join("/"),q==="")q=f?"/":".";if($)return $.path=q,w6($);return q}ck.normalize=TK;function w9(_,q){if(_==="")_=".";if(q==="")q=".";var $=jq(q),f=jq(_);if(f)_=f.path||"/";if($&&!$.scheme){if(f)$.scheme=f.scheme;return w6($)}if($||q.match(Rk))return q;if(f&&!f.host&&!f.path)return f.host=q,w6(f);var K=q.charAt(0)==="/"?q:TK(_.replace(/\/+$/,"")+"/"+q);if(f)return f.path=K,w6(f);return K}ck.join=w9;ck.isAbsolute=function(_){return _.charAt(0)==="/"||j9.test(_)};function Ik(_,q){if(_==="")_=".";_=_.replace(/\/$/,"");var $=0;while(q.indexOf(_+"/")!==0){var f=_.lastIndexOf("/");if(f<0)return q;if(_=_.slice(0,f),_.match(/^([^\/]+:\/)?\/*$/))return q;++$}return Array($+1).join("../")+q.substr(_.length+1)}ck.relative=Ik;var O9=function(){var _=Object.create(null);return!("__proto__"in _)}();function Y9(_){return _}function ak(_){if(T9(_))return"$"+_;return _}ck.toSetString=O9?Y9:ak;function ok(_){if(T9(_))return _.slice(1);return _}ck.fromSetString=O9?Y9:ok;function T9(_){if(!_)return!1;var q=_.length;if(q<9)return!1;if(_.charCodeAt(q-1)!==95||_.charCodeAt(q-2)!==95||_.charCodeAt(q-3)!==111||_.charCodeAt(q-4)!==116||_.charCodeAt(q-5)!==111||_.charCodeAt(q-6)!==114||_.charCodeAt(q-7)!==112||_.charCodeAt(q-8)!==95||_.charCodeAt(q-9)!==95)return!1;for(var $=q-10;$>=0;$--)if(_.charCodeAt($)!==36)return!1;return!0}function ik(_,q,$){var f=O6(_.source,q.source);if(f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0||$)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0)return f;if(f=_.generatedLine-q.generatedLine,f!==0)return f;return O6(_.name,q.name)}ck.compareByOriginalPositions=ik;function gk(_,q,$){var f=_.generatedLine-q.generatedLine;if(f!==0)return f;if(f=_.generatedColumn-q.generatedColumn,f!==0||$)return f;if(f=O6(_.source,q.source),f!==0)return f;if(f=_.originalLine-q.originalLine,f!==0)return f;if(f=_.originalColumn-q.originalColumn,f!==0)return f;return O6(_.name,q.name)}ck.compareByGeneratedPositionsDeflated=gk;function O6(_,q){if(_===q)return 0;if(_===null)return 1;if(q===null)return-1;if(_>q)return 1;return-1}function lk(_,q){var $=_.generatedLine-q.generatedLine;if($!==0)return $;if($=_.generatedColumn-q.generatedColumn,$!==0)return $;if($=O6(_.source,q.source),$!==0)return $;if($=_.originalLine-q.originalLine,$!==0)return $;if($=_.originalColumn-q.originalColumn,$!==0)return $;return O6(_.name,q.name)}ck.compareByGeneratedPositionsInflated=lk;function yk(_){return JSON.parse(_.replace(/^\)]}'[^\n]*\n/,""))}ck.parseSourceMapInput=yk;function tk(_,q,$){if(q=q||"",_){if(_[_.length-1]!=="/"&&q[0]!=="/")_+="/";q=_+q}if($){var f=jq($);if(!f)throw new Error("sourceMapURL could not be parsed");if(f.path){var K=f.path.lastIndexOf("/");if(K>=0)f.path=f.path.substring(0,K+1)}q=w9(w6(f),q)}return TK(q)}ck.computeSourceURL=tk});var HK=X((uJ)=>{var vK=Y6(),zK=Object.prototype.hasOwnProperty,E_=typeof Map!=="undefined";function u_(){this._array=[],this._set=E_?new Map:Object.create(null)}u_.fromArray=function _(q,$){var f=new u_;for(var K=0,P=q.length;K<P;K++)f.add(q[K],$);return f};u_.prototype.size=function _(){return E_?this._set.size:Object.getOwnPropertyNames(this._set).length};u_.prototype.add=function _(q,$){var f=E_?q:vK.toSetString(q),K=E_?this.has(q):zK.call(this._set,f),P=this._array.length;if(!K||$)this._array.push(q);if(!K)if(E_)this._set.set(q,P);else this._set[f]=P};u_.prototype.has=function _(q){if(E_)return this._set.has(q);else{var $=vK.toSetString(q);return zK.call(this._set,$)}};u_.prototype.indexOf=function _(q){if(E_){var $=this._set.get(q);if($>=0)return $}else{var f=vK.toSetString(q);if(zK.call(this._set,f))return this._set[f]}throw new Error('"'+q+'" is not in the set.')};u_.prototype.at=function _(q){if(q>=0&&q<this._array.length)return this._array[q];throw new Error("No element indexed by "+q)};u_.prototype.toArray=function _(){return this._array.slice()};uJ.ArraySet=u_});var z9=X((OJ)=>{var v9=Y6();function wJ(_,q){var $=_.generatedLine,f=q.generatedLine,K=_.generatedColumn,P=q.generatedColumn;return f>$||f==$&&P>=K||v9.compareByGeneratedPositionsInflated(_,q)<=0}function X$(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}X$.prototype.unsortedForEach=function _(q,$){this._array.forEach(q,$)};X$.prototype.add=function _(q){if(wJ(this._last,q))this._last=q,this._array.push(q);else this._sorted=!1,this._array.push(q)};X$.prototype.toArray=function _(){if(!this._sorted)this._array.sort(v9.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};OJ.MappingList=X$});var WK=X((vJ)=>{var wq=YK(),P8=Y6(),m$=HK().ArraySet,TJ=z9().MappingList;function r8(_){if(!_)_={};this._file=P8.getArg(_,"file",null),this._sourceRoot=P8.getArg(_,"sourceRoot",null),this._skipValidation=P8.getArg(_,"skipValidation",!1),this._sources=new m$,this._names=new m$,this._mappings=new TJ,this._sourcesContents=null}r8.prototype._version=3;r8.fromSourceMap=function _(q){var $=q.sourceRoot,f=new r8({file:q.file,sourceRoot:$});return q.eachMapping(function(K){var P={generated:{line:K.generatedLine,column:K.generatedColumn}};if(K.source!=null){if(P.source=K.source,$!=null)P.source=P8.relative($,P.source);if(P.original={line:K.originalLine,column:K.originalColumn},K.name!=null)P.name=K.name}f.addMapping(P)}),q.sources.forEach(function(K){var P=K;if($!==null)P=P8.relative($,K);if(!f._sources.has(P))f._sources.add(P);var u=q.sourceContentFor(K);if(u!=null)f.setSourceContent(K,u)}),f};r8.prototype.addMapping=function _(q){var $=P8.getArg(q,"generated"),f=P8.getArg(q,"original",null),K=P8.getArg(q,"source",null),P=P8.getArg(q,"name",null);if(!this._skipValidation)this._validateMapping($,f,K,P);if(K!=null){if(K=String(K),!this._sources.has(K))this._sources.add(K)}if(P!=null){if(P=String(P),!this._names.has(P))this._names.add(P)}this._mappings.add({generatedLine:$.line,generatedColumn:$.column,originalLine:f!=null&&f.line,originalColumn:f!=null&&f.column,source:K,name:P})};r8.prototype.setSourceContent=function _(q,$){var f=q;if(this._sourceRoot!=null)f=P8.relative(this._sourceRoot,f);if($!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[P8.toSetString(f)]=$}else if(this._sourcesContents){if(delete this._sourcesContents[P8.toSetString(f)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};r8.prototype.applySourceMap=function _(q,$,f){var K=$;if($==null){if(q.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);K=q.file}var P=this._sourceRoot;if(P!=null)K=P8.relative(P,K);var u=new m$,j=new m$;this._mappings.unsortedForEach(function(w){if(w.source===K&&w.originalLine!=null){var O=q.originalPositionFor({line:w.originalLine,column:w.originalColumn});if(O.source!=null){if(w.source=O.source,f!=null)w.source=P8.join(f,w.source);if(P!=null)w.source=P8.relative(P,w.source);if(w.originalLine=O.line,w.originalColumn=O.column,O.name!=null)w.name=O.name}}var v=w.source;if(v!=null&&!u.has(v))u.add(v);var Y=w.name;if(Y!=null&&!j.has(Y))j.add(Y)},this),this._sources=u,this._names=j,q.sources.forEach(function(w){var O=q.sourceContentFor(w);if(O!=null){if(f!=null)w=P8.join(f,w);if(P!=null)w=P8.relative(P,w);this.setSourceContent(w,O)}},this)};r8.prototype._validateMapping=function _(q,$,f,K){if($&&typeof $.line!=="number"&&typeof $.column!=="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(q&&"line"in q&&"column"in q&&q.line>0&&q.column>=0&&!$&&!f&&!K)return;else if(q&&"line"in q&&"column"in q&&$&&"line"in $&&"column"in $&&q.line>0&&q.column>=0&&$.line>0&&$.column>=0&&f)return;else throw new Error("Invalid mapping: "+JSON.stringify({generated:q,source:f,original:$,name:K}))};r8.prototype._serializeMappings=function _(){var q=0,$=1,f=0,K=0,P=0,u=0,j="",w,O,v,Y,T=this._mappings.toArray();for(var z=0,W=T.length;z<W;z++){if(O=T[z],w="",O.generatedLine!==$){q=0;while(O.generatedLine!==$)w+=";",$++}else if(z>0){if(!P8.compareByGeneratedPositionsInflated(O,T[z-1]))continue;w+=","}if(w+=wq.encode(O.generatedColumn-q),q=O.generatedColumn,O.source!=null){if(Y=this._sources.indexOf(O.source),w+=wq.encode(Y-u),u=Y,w+=wq.encode(O.originalLine-1-K),K=O.originalLine-1,w+=wq.encode(O.originalColumn-f),f=O.originalColumn,O.name!=null)v=this._names.indexOf(O.name),w+=wq.encode(v-P),P=v}j+=w}return j};r8.prototype._generateSourcesContent=function _(q,$){return q.map(function(f){if(!this._sourcesContents)return null;if($!=null)f=P8.relative($,f);var K=P8.toSetString(f);return Object.prototype.hasOwnProperty.call(this._sourcesContents,K)?this._sourcesContents[K]:null},this)};r8.prototype.toJSON=function _(){var q={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)q.file=this._file;if(this._sourceRoot!=null)q.sourceRoot=this._sourceRoot;if(this._sourcesContents)q.sourcesContent=this._generateSourcesContent(q.sources,q.sourceRoot);return q};r8.prototype.toString=function _(){return JSON.stringify(this.toJSON())};vJ.SourceMapGenerator=r8});var W9=X((HJ)=>{HJ.GREATEST_LOWER_BOUND=1;HJ.LEAST_UPPER_BOUND=2;function kK(_,q,$,f,K,P){var u=Math.floor((q-_)/2)+_,j=K($,f[u],!0);if(j===0)return u;else if(j>0){if(q-u>1)return kK(u,q,$,f,K,P);if(P==HJ.LEAST_UPPER_BOUND)return q<f.length?q:-1;else return u}else{if(u-_>1)return kK(_,u,$,f,K,P);if(P==HJ.LEAST_UPPER_BOUND)return u;else return _<0?-1:_}}HJ.search=function _(q,$,f,K){if($.length===0)return-1;var P=kK(-1,$.length,q,$,f,K||HJ.GREATEST_LOWER_BOUND);if(P<0)return-1;while(P-1>=0){if(f($[P],$[P-1],!0)!==0)break;--P}return P}});var k9=X((JJ)=>{function ZK(_,q,$){var f=_[q];_[q]=_[$],_[$]=f}function kJ(_,q){return Math.round(_+Math.random()*(q-_))}function hK(_,q,$,f){if($<f){var K=kJ($,f),P=$-1;ZK(_,K,f);var u=_[f];for(var j=$;j<f;j++)if(q(_[j],u)<=0)P+=1,ZK(_,P,j);ZK(_,P+1,j);var w=P+1;hK(_,q,$,w-1),hK(_,q,w+1,f)}}JJ.quickSort=function(_,q){hK(_,q,0,_.length-1)}});var Z9=X((AJ)=>{var E=Y6(),AK=W9(),T6=HK().ArraySet,hJ=YK(),Oq=k9().quickSort;function B(_,q){var $=_;if(typeof _==="string")$=E.parseSourceMapInput(_);return $.sections!=null?new y8($,q):new Y8($,q)}B.fromSourceMap=function(_,q){return Y8.fromSourceMap(_,q)};B.prototype._version=3;B.prototype.__generatedMappings=null;Object.defineProperty(B.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});B.prototype.__originalMappings=null;Object.defineProperty(B.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});B.prototype._charIsMappingSeparator=function _(q,$){var f=q.charAt($);return f===";"||f===","};B.prototype._parseMappings=function _(q,$){throw new Error("Subclasses must implement _parseMappings")};B.GENERATED_ORDER=1;B.ORIGINAL_ORDER=2;B.GREATEST_LOWER_BOUND=1;B.LEAST_UPPER_BOUND=2;B.prototype.eachMapping=function _(q,$,f){var K=$||null,P=f||B.GENERATED_ORDER,u;switch(P){case B.GENERATED_ORDER:u=this._generatedMappings;break;case B.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var j=this.sourceRoot;u.map(function(w){var O=w.source===null?null:this._sources.at(w.source);return O=E.computeSourceURL(j,O,this._sourceMapURL),{source:O,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(q,K)};B.prototype.allGeneratedPositionsFor=function _(q){var $=E.getArg(q,"line"),f={source:E.getArg(q,"source"),originalLine:$,originalColumn:E.getArg(q,"column",0)};if(f.source=this._findSourceIndex(f.source),f.source<0)return[];var K=[],P=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",E.compareByOriginalPositions,AK.LEAST_UPPER_BOUND);if(P>=0){var u=this._originalMappings[P];if(q.column===void 0){var j=u.originalLine;while(u&&u.originalLine===j)K.push({line:E.getArg(u,"generatedLine",null),column:E.getArg(u,"generatedColumn",null),lastColumn:E.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++P]}else{var w=u.originalColumn;while(u&&u.originalLine===$&&u.originalColumn==w)K.push({line:E.getArg(u,"generatedLine",null),column:E.getArg(u,"generatedColumn",null),lastColumn:E.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++P]}}return K};AJ.SourceMapConsumer=B;function Y8(_,q){var $=_;if(typeof _==="string")$=E.parseSourceMapInput(_);var f=E.getArg($,"version"),K=E.getArg($,"sources"),P=E.getArg($,"names",[]),u=E.getArg($,"sourceRoot",null),j=E.getArg($,"sourcesContent",null),w=E.getArg($,"mappings"),O=E.getArg($,"file",null);if(f!=this._version)throw new Error("Unsupported version: "+f);if(u)u=E.normalize(u);K=K.map(String).map(E.normalize).map(function(v){return u&&E.isAbsolute(u)&&E.isAbsolute(v)?E.relative(u,v):v}),this._names=T6.fromArray(P.map(String),!0),this._sources=T6.fromArray(K,!0),this._absoluteSources=this._sources.toArray().map(function(v){return E.computeSourceURL(u,v,q)}),this.sourceRoot=u,this.sourcesContent=j,this._mappings=w,this._sourceMapURL=q,this.file=O}Y8.prototype=Object.create(B.prototype);Y8.prototype.consumer=B;Y8.prototype._findSourceIndex=function(_){var q=_;if(this.sourceRoot!=null)q=E.relative(this.sourceRoot,q);if(this._sources.has(q))return this._sources.indexOf(q);var $;for($=0;$<this._absoluteSources.length;++$)if(this._absoluteSources[$]==_)return $;return-1};Y8.fromSourceMap=function _(q,$){var f=Object.create(Y8.prototype),K=f._names=T6.fromArray(q._names.toArray(),!0),P=f._sources=T6.fromArray(q._sources.toArray(),!0);f.sourceRoot=q._sourceRoot,f.sourcesContent=q._generateSourcesContent(f._sources.toArray(),f.sourceRoot),f.file=q._file,f._sourceMapURL=$,f._absoluteSources=f._sources.toArray().map(function(z){return E.computeSourceURL(f.sourceRoot,z,$)});var u=q._mappings.toArray().slice(),j=f.__generatedMappings=[],w=f.__originalMappings=[];for(var O=0,v=u.length;O<v;O++){var Y=u[O],T=new J9;if(T.generatedLine=Y.generatedLine,T.generatedColumn=Y.generatedColumn,Y.source){if(T.source=P.indexOf(Y.source),T.originalLine=Y.originalLine,T.originalColumn=Y.originalColumn,Y.name)T.name=K.indexOf(Y.name);w.push(T)}j.push(T)}return Oq(f.__originalMappings,E.compareByOriginalPositions),f};Y8.prototype._version=3;Object.defineProperty(Y8.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function J9(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Y8.prototype._parseMappings=function _(q,$){var f=1,K=0,P=0,u=0,j=0,w=0,O=q.length,v=0,Y={},T={},z=[],W=[],H,k,A,p,V;while(v<O)if(q.charAt(v)===";")f++,v++,K=0;else if(q.charAt(v)===",")v++;else{H=new J9,H.generatedLine=f;for(p=v;p<O;p++)if(this._charIsMappingSeparator(q,p))break;if(k=q.slice(v,p),A=Y[k],A)v+=k.length;else{A=[];while(v<p)hJ.decode(q,v,T),V=T.value,v=T.rest,A.push(V);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");Y[k]=A}if(H.generatedColumn=K+A[0],K=H.generatedColumn,A.length>1){if(H.source=j+A[1],j+=A[1],H.originalLine=P+A[2],P=H.originalLine,H.originalLine+=1,H.originalColumn=u+A[3],u=H.originalColumn,A.length>4)H.name=w+A[4],w+=A[4]}if(W.push(H),typeof H.originalLine==="number")z.push(H)}Oq(W,E.compareByGeneratedPositionsDeflated),this.__generatedMappings=W,Oq(z,E.compareByOriginalPositions),this.__originalMappings=z};Y8.prototype._findMapping=function _(q,$,f,K,P,u){if(q[f]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+q[f]);if(q[K]<0)throw new TypeError("Column must be greater than or equal to 0, got "+q[K]);return AK.search(q,$,P,u)};Y8.prototype.computeColumnSpans=function _(){for(var q=0;q<this._generatedMappings.length;++q){var $=this._generatedMappings[q];if(q+1<this._generatedMappings.length){var f=this._generatedMappings[q+1];if($.generatedLine===f.generatedLine){$.lastGeneratedColumn=f.generatedColumn-1;continue}}$.lastGeneratedColumn=1/0}};Y8.prototype.originalPositionFor=function _(q){var $={generatedLine:E.getArg(q,"line"),generatedColumn:E.getArg(q,"column")},f=this._findMapping($,this._generatedMappings,"generatedLine","generatedColumn",E.compareByGeneratedPositionsDeflated,E.getArg(q,"bias",B.GREATEST_LOWER_BOUND));if(f>=0){var K=this._generatedMappings[f];if(K.generatedLine===$.generatedLine){var P=E.getArg(K,"source",null);if(P!==null)P=this._sources.at(P),P=E.computeSourceURL(this.sourceRoot,P,this._sourceMapURL);var u=E.getArg(K,"name",null);if(u!==null)u=this._names.at(u);return{source:P,line:E.getArg(K,"originalLine",null),column:E.getArg(K,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};Y8.prototype.hasContentsOfAllSources=function _(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(q){return q==null})};Y8.prototype.sourceContentFor=function _(q,$){if(!this.sourcesContent)return null;var f=this._findSourceIndex(q);if(f>=0)return this.sourcesContent[f];var K=q;if(this.sourceRoot!=null)K=E.relative(this.sourceRoot,K);var P;if(this.sourceRoot!=null&&(P=E.urlParse(this.sourceRoot))){var u=K.replace(/^file:\/\//,"");if(P.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!P.path||P.path=="/")&&this._sources.has("/"+K))return this.sourcesContent[this._sources.indexOf("/"+K)]}if($)return null;else throw new Error('"'+K+'" is not in the SourceMap.')};Y8.prototype.generatedPositionFor=function _(q){var $=E.getArg(q,"source");if($=this._findSourceIndex($),$<0)return{line:null,column:null,lastColumn:null};var f={source:$,originalLine:E.getArg(q,"line"),originalColumn:E.getArg(q,"column")},K=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",E.compareByOriginalPositions,E.getArg(q,"bias",B.GREATEST_LOWER_BOUND));if(K>=0){var P=this._originalMappings[K];if(P.source===f.source)return{line:E.getArg(P,"generatedLine",null),column:E.getArg(P,"generatedColumn",null),lastColumn:E.getArg(P,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};AJ.BasicSourceMapConsumer=Y8;function y8(_,q){var $=_;if(typeof _==="string")$=E.parseSourceMapInput(_);var f=E.getArg($,"version"),K=E.getArg($,"sections");if(f!=this._version)throw new Error("Unsupported version: "+f);this._sources=new T6,this._names=new T6;var P={line:-1,column:0};this._sections=K.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var j=E.getArg(u,"offset"),w=E.getArg(j,"line"),O=E.getArg(j,"column");if(w<P.line||w===P.line&&O<P.column)throw new Error("Section offsets must be ordered and non-overlapping.");return P=j,{generatedOffset:{generatedLine:w+1,generatedColumn:O+1},consumer:new B(E.getArg(u,"map"),q)}})}y8.prototype=Object.create(B.prototype);y8.prototype.constructor=B;y8.prototype._version=3;Object.defineProperty(y8.prototype,"sources",{get:function(){var _=[];for(var q=0;q<this._sections.length;q++)for(var $=0;$<this._sections[q].consumer.sources.length;$++)_.push(this._sections[q].consumer.sources[$]);return _}});y8.prototype.originalPositionFor=function _(q){var $={generatedLine:E.getArg(q,"line"),generatedColumn:E.getArg(q,"column")},f=AK.search($,this._sections,function(P,u){var j=P.generatedLine-u.generatedOffset.generatedLine;if(j)return j;return P.generatedColumn-u.generatedOffset.generatedColumn}),K=this._sections[f];if(!K)return{source:null,line:null,column:null,name:null};return K.consumer.originalPositionFor({line:$.generatedLine-(K.generatedOffset.generatedLine-1),column:$.generatedColumn-(K.generatedOffset.generatedLine===$.generatedLine?K.generatedOffset.generatedColumn-1:0),bias:q.bias})};y8.prototype.hasContentsOfAllSources=function _(){return this._sections.every(function(q){return q.consumer.hasContentsOfAllSources()})};y8.prototype.sourceContentFor=function _(q,$){for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer.sourceContentFor(q,!0);if(P)return P}if($)return null;else throw new Error('"'+q+'" is not in the SourceMap.')};y8.prototype.generatedPositionFor=function _(q){for(var $=0;$<this._sections.length;$++){var f=this._sections[$];if(f.consumer._findSourceIndex(E.getArg(q,"source"))===-1)continue;var K=f.consumer.generatedPositionFor(q);if(K){var P={line:K.line+(f.generatedOffset.generatedLine-1),column:K.column+(f.generatedOffset.generatedLine===K.line?f.generatedOffset.generatedColumn-1:0)};return P}}return{line:null,column:null}};y8.prototype._parseMappings=function _(q,$){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++){var K=this._sections[f],P=K.consumer._generatedMappings;for(var u=0;u<P.length;u++){var j=P[u],w=K.consumer._sources.at(j.source);w=E.computeSourceURL(K.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var O=null;if(j.name)O=K.consumer._names.at(j.name),this._names.add(O),O=this._names.indexOf(O);var v={source:w,generatedLine:j.generatedLine+(K.generatedOffset.generatedLine-1),generatedColumn:j.generatedColumn+(K.generatedOffset.generatedLine===j.generatedLine?K.generatedOffset.generatedColumn-1:0),originalLine:j.originalLine,originalColumn:j.originalColumn,name:O};if(this.__generatedMappings.push(v),typeof v.originalLine==="number")this.__originalMappings.push(v)}}Oq(this.__generatedMappings,E.compareByGeneratedPositionsDeflated),Oq(this.__originalMappings,E.compareByOriginalPositions)};AJ.IndexedSourceMapConsumer=y8});var h9=X((pJ)=>{var DJ=WK().SourceMapGenerator,G$=Y6(),CJ=/(\r?\n)/,rJ=10,v6="$$$isSourceNode$$$";function Z8(_,q,$,f,K){if(this.children=[],this.sourceContents={},this.line=_==null?null:_,this.column=q==null?null:q,this.source=$==null?null:$,this.name=K==null?null:K,this[v6]=!0,f!=null)this.add(f)}Z8.fromStringWithSourceMap=function _(q,$,f){var K=new Z8,P=q.split(CJ),u=0,j=function(){var T=W(),z=W()||"";return T+z;function W(){return u<P.length?P[u++]:void 0}},w=1,O=0,v=null;if($.eachMapping(function(T){if(v!==null)if(w<T.generatedLine)Y(v,j()),w++,O=0;else{var z=P[u]||"",W=z.substr(0,T.generatedColumn-O);P[u]=z.substr(T.generatedColumn-O),O=T.generatedColumn,Y(v,W),v=T;return}while(w<T.generatedLine)K.add(j()),w++;if(O<T.generatedColumn){var z=P[u]||"";K.add(z.substr(0,T.generatedColumn)),P[u]=z.substr(T.generatedColumn),O=T.generatedColumn}v=T},this),u<P.length){if(v)Y(v,j());K.add(P.splice(u).join(""))}return $.sources.forEach(function(T){var z=$.sourceContentFor(T);if(z!=null){if(f!=null)T=G$.join(f,T);K.setSourceContent(T,z)}}),K;function Y(T,z){if(T===null||T.source===void 0)K.add(z);else{var W=f?G$.join(f,T.source):T.source;K.add(new Z8(T.originalLine,T.originalColumn,W,z,T.name))}}};Z8.prototype.add=function _(q){if(Array.isArray(q))q.forEach(function($){this.add($)},this);else if(q[v6]||typeof q==="string"){if(q)this.children.push(q)}else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};Z8.prototype.prepend=function _(q){if(Array.isArray(q))for(var $=q.length-1;$>=0;$--)this.prepend(q[$]);else if(q[v6]||typeof q==="string")this.children.unshift(q);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+q);return this};Z8.prototype.walk=function _(q){var $;for(var f=0,K=this.children.length;f<K;f++)if($=this.children[f],$[v6])$.walk(q);else if($!=="")q($,{source:this.source,line:this.line,column:this.column,name:this.name})};Z8.prototype.join=function _(q){var $,f,K=this.children.length;if(K>0){$=[];for(f=0;f<K-1;f++)$.push(this.children[f]),$.push(q);$.push(this.children[f]),this.children=$}return this};Z8.prototype.replaceRight=function _(q,$){var f=this.children[this.children.length-1];if(f[v6])f.replaceRight(q,$);else if(typeof f==="string")this.children[this.children.length-1]=f.replace(q,$);else this.children.push("".replace(q,$));return this};Z8.prototype.setSourceContent=function _(q,$){this.sourceContents[G$.toSetString(q)]=$};Z8.prototype.walkSourceContents=function _(q){for(var $=0,f=this.children.length;$<f;$++)if(this.children[$][v6])this.children[$].walkSourceContents(q);var K=Object.keys(this.sourceContents);for(var $=0,f=K.length;$<f;$++)q(G$.fromSetString(K[$]),this.sourceContents[K[$]])};Z8.prototype.toString=function _(){var q="";return this.walk(function($){q+=$}),q};Z8.prototype.toStringWithSourceMap=function _(q){var $={code:"",line:1,column:0},f=new DJ(q),K=!1,P=null,u=null,j=null,w=null;return this.walk(function(O,v){if($.code+=O,v.source!==null&&v.line!==null&&v.column!==null){if(P!==v.source||u!==v.line||j!==v.column||w!==v.name)f.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:$.line,column:$.column},name:v.name});P=v.source,u=v.line,j=v.column,w=v.name,K=!0}else if(K)f.addMapping({generated:{line:$.line,column:$.column}}),P=null,K=!1;for(var Y=0,T=O.length;Y<T;Y++)if(O.charCodeAt(Y)===rJ){if($.line++,$.column=0,Y+1===T)P=null,K=!1;else if(K)f.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:$.line,column:$.column},name:v.name})}else $.column++}),this.walkSourceContents(function(O,v){f.setSourceContent(O,v)}),{code:$.code,map:f}};pJ.SourceNode=Z8});var A9=X((VJ)=>{VJ.SourceMapGenerator=WK().SourceMapGenerator;VJ.SourceMapConsumer=Z9().SourceMapConsumer;VJ.SourceNode=h9().SourceNode});var D9=X((m9,G9)=>{m9.__esModule=!0;var mK=T8(),R_=void 0;try{if(typeof define!=="function"||!define.amd)GK=A9(),R_=GK.SourceNode}catch(_){}var GK;if(!R_)R_=function(_,q,$,f){if(this.src="",f)this.add(f)},R_.prototype={add:function _(q){if(mK.isArray(q))q=q.join("");this.src+=q},prepend:function _(q){if(mK.isArray(q))q=q.join("");this.src=q+this.src},toStringWithSourceMap:function _(){return{code:this.toString()}},toString:function _(){return this.src}};function XK(_,q,$){if(mK.isArray(_)){var f=[];for(var K=0,P=_.length;K<P;K++)f.push(q.wrap(_[K],$));return f}else if(typeof _==="boolean"||typeof _==="number")return _+"";return _}function X9(_){this.srcFile=_,this.source=[]}X9.prototype={isEmpty:function _(){return!this.source.length},prepend:function _(q,$){this.source.unshift(this.wrap(q,$))},push:function _(q,$){this.source.push(this.wrap(q,$))},merge:function _(){var q=this.empty();return this.each(function($){q.add([" ",$,`
|
|
58
|
+
`])}),q},each:function _(q){for(var $=0,f=this.source.length;$<f;$++)q(this.source[$])},empty:function _(){var q=this.currentLocation||{start:{}};return new R_(q.start.line,q.start.column,this.srcFile)},wrap:function _(q){var $=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];if(q instanceof R_)return q;return q=XK(q,this,$),new R_($.start.line,$.start.column,this.srcFile,q)},functionCall:function _(q,$,f){return f=this.generateList(f),this.wrap([q,$?"."+$+"(":"(",f,")"])},quotedString:function _(q){return'"'+(q+"").replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function _(q){var $=this,f=[];Object.keys(q).forEach(function(P){var u=XK(q[P],$);if(u!=="undefined")f.push([$.quotedString(P),":",u])});var K=this.generateList(f);return K.prepend("{"),K.add("}"),K},generateList:function _(q){var $=this.empty();for(var f=0,K=q.length;f<K;f++){if(f)$.add(",");$.add(XK(q[f],this))}return $},generateArray:function _(q){var $=this.generateList(q);return $.prepend("["),$.add("]"),$}};m9.default=X9;G9.exports=m9.default});var M9=X((b9,V9)=>{b9.__esModule=!0;function p9(_){return _&&_.__esModule?_:{default:_}}var C9=W$(),EJ=C8(),DK=p9(EJ),RJ=T8(),IJ=D9(),r9=p9(IJ);function z6(_){this.value=_}function H6(){}H6.prototype={nameLookup:function _(q,$){return this.internalNameLookup(q,$)},depthedLookup:function _(q){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(q),")"]},compilerInfo:function _(){var q=C9.COMPILER_REVISION,$=C9.REVISION_CHANGES[q];return[q,$]},appendToBuffer:function _(q,$,f){if(!RJ.isArray(q))q=[q];if(q=this.source.wrap(q,$),this.environment.isSimple)return["return ",q,";"];else if(f)return["buffer += ",q,";"];else return q.appendToBuffer=!0,q},initializeBuffer:function _(){return this.quotedString("")},internalNameLookup:function _(q,$){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",q,",",JSON.stringify($),")"]},lookupPropertyFunctionIsUsed:!1,compile:function _(q,$,f,K){this.environment=q,this.options=$,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!K,this.name=this.environment.name,this.isChild=!!f,this.context=f||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(q,$),this.useDepths=this.useDepths||q.useDepths||q.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||q.useBlockParams;var P=q.opcodes,u=void 0,j=void 0,w=void 0,O=void 0;for(w=0,O=P.length;w<O;w++)u=P[w],this.source.currentLocation=u.loc,j=j||u.loc,this[u.opcode].apply(this,u.args);if(this.source.currentLocation=j,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new DK.default("Compile completed with content left on stack");if(!this.decorators.isEmpty())if(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
59
59
|
`]),this.decorators.push("return fn;"),K)this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]);else this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
60
60
|
`),this.decorators.push(`}
|
|
61
|
-
`),this.decorators=this.decorators.merge();else this.decorators=void 0;var v=this.createFunctionContext(K);if(!this.isChild){var Y={compiler:this.compilerInfo(),main:v};if(this.decorators)Y.main_d=this.decorators,Y.useDecorators=!0;var T=this.context,z=T.programs,W=T.decorators;for(w=0,O=z.length;w<O;w++)if(z[w]){if(Y[w]=z[w],W[w])Y[w+"_d"]=W[w],Y.useDecorators=!0}if(this.environment.usePartial)Y.usePartial=!0;if(this.options.data)Y.useData=!0;if(this.useDepths)Y.useDepths=!0;if(this.useBlockParams)Y.useBlockParams=!0;if(this.options.compat)Y.compat=!0;if(!K)if(Y.compiler=JSON.stringify(Y.compiler),this.source.currentLocation={start:{line:1,column:0}},Y=this.objectLiteral(Y),$.srcName)Y=Y.toStringWithSourceMap({file:$.destName}),Y.map=Y.map&&Y.map.toString();else Y=Y.toString();else Y.compilerOptions=this.options;return Y}else return v},preamble:function _(){this.lastContext=0,this.source=new
|
|
61
|
+
`),this.decorators=this.decorators.merge();else this.decorators=void 0;var v=this.createFunctionContext(K);if(!this.isChild){var Y={compiler:this.compilerInfo(),main:v};if(this.decorators)Y.main_d=this.decorators,Y.useDecorators=!0;var T=this.context,z=T.programs,W=T.decorators;for(w=0,O=z.length;w<O;w++)if(z[w]){if(Y[w]=z[w],W[w])Y[w+"_d"]=W[w],Y.useDecorators=!0}if(this.environment.usePartial)Y.usePartial=!0;if(this.options.data)Y.useData=!0;if(this.useDepths)Y.useDepths=!0;if(this.useBlockParams)Y.useBlockParams=!0;if(this.options.compat)Y.compat=!0;if(!K)if(Y.compiler=JSON.stringify(Y.compiler),this.source.currentLocation={start:{line:1,column:0}},Y=this.objectLiteral(Y),$.srcName)Y=Y.toStringWithSourceMap({file:$.destName}),Y.map=Y.map&&Y.map.toString();else Y=Y.toString();else Y.compilerOptions=this.options;return Y}else return v},preamble:function _(){this.lastContext=0,this.source=new r9.default(this.options.srcName),this.decorators=new r9.default(this.options.srcName)},createFunctionContext:function _(q){var $=this,f="",K=this.stackVars.concat(this.registers.list);if(K.length>0)f+=", "+K.join(", ");var P=0;if(Object.keys(this.aliases).forEach(function(w){var O=$.aliases[w];if(O.children&&O.referenceCount>1)f+=", alias"+ ++P+"="+w,O.children[0]="alias"+P}),this.lookupPropertyFunctionIsUsed)f+=", "+this.lookupPropertyFunctionVarDeclaration();var u=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths)u.push("blockParams");if(this.useDepths)u.push("depths");var j=this.mergeSource(f);if(q)return u.push(j),Function.apply(this,u);else return this.source.wrap(["function(",u.join(","),`) {
|
|
62
62
|
`,j,"}"])},mergeSource:function _(q){var $=this.environment.isSimple,f=!this.forceBuffer,K=void 0,P=void 0,u=void 0,j=void 0;if(this.source.each(function(w){if(w.appendToBuffer){if(u)w.prepend(" + ");else u=w;j=w}else{if(u){if(!P)K=!0;else u.prepend("buffer += ");j.add(";"),u=j=void 0}if(P=!0,!$)f=!1}}),f){if(u)u.prepend("return "),j.add(";");else if(!P)this.source.push('return "";')}else if(q+=", buffer = "+(K?"":this.initializeBuffer()),u)u.prepend("return buffer + "),j.add(";");else this.source.push("return buffer;");if(q)this.source.prepend("var "+q.substring(2)+(K?"":`;
|
|
63
63
|
`));return this.source.merge()},lookupPropertyFunctionVarDeclaration:function _(){return`
|
|
64
64
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -67,42 +67,42 @@ Expecting `+r.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else C="Parse err
|
|
|
67
67
|
}
|
|
68
68
|
return undefined
|
|
69
69
|
}
|
|
70
|
-
`.trim()},blockValue:function _(q){var $=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs(q,0,f);var K=this.popStack();f.splice(1,0,K),this.push(this.source.functionCall($,"call",f))},ambiguousBlockValue:function _(){var q=this.aliasable("container.hooks.blockHelperMissing"),$=[this.contextName(0)];this.setupHelperArgs("",0,$,!0),this.flushInline();var f=this.topStack();$.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(q,"call",$),"}"])},appendContent:function _(q){if(this.pendingContent)q=this.pendingContent+q;else this.pendingLocation=this.source.currentLocation;this.pendingContent=q},append:function _(){if(this.isInline())this.replaceStack(function($){return[" != null ? ",$,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var q=this.popStack();if(this.pushSource(["if (",q," != null) { ",this.appendToBuffer(q,void 0,!0)," }"]),this.environment.isSimple)this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function _(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function _(q){this.lastContext=q},pushContext:function _(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function _(q,$,f,K){var P=0;if(!K&&this.options.compat&&!this.lastContext)this.push(this.depthedLookup(q[P++]));else this.pushContext();this.resolvePath("context",q,P,$,f)},lookupBlockParam:function _(q,$){this.useBlockParams=!0,this.push(["blockParams[",q[0],"][",q[1],"]"]),this.resolvePath("context",$,1)},lookupData:function _(q,$,f){if(!q)this.pushStackLiteral("data");else this.pushStackLiteral("container.data(data, "+q+")");this.resolvePath("data",$,0,!0,f)},resolvePath:function _(q,$,f,K,P){var u=this;if(this.options.strict||this.options.assumeObjects){this.push(iJ(this.options.strict&&P,this,$,f,q));return}var j=$.length;for(;f<j;f++)this.replaceStack(function(w){var O=u.nameLookup(w,$[f],q);if(!K)return[" != null ? ",O," : ",w];else return[" && ",O]})},resolvePossibleLambda:function _(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function _(q,$){if(this.pushContext(),this.pushString($),$!=="SubExpression")if(typeof q==="string")this.pushString(q);else this.pushStackLiteral(q)},emptyHash:function _(q){if(this.trackIds)this.push("{}");if(this.stringParams)this.push("{}"),this.push("{}");this.pushStackLiteral(q?"undefined":"{}")},pushHash:function _(){if(this.hash)this.hashes.push(this.hash);this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function _(){var q=this.hash;if(this.hash=this.hashes.pop(),this.trackIds)this.push(this.objectLiteral(q.ids));if(this.stringParams)this.push(this.objectLiteral(q.contexts)),this.push(this.objectLiteral(q.types));this.push(this.objectLiteral(q.values))},pushString:function _(q){this.pushStackLiteral(this.quotedString(q))},pushLiteral:function _(q){this.pushStackLiteral(q)},pushProgram:function _(q){if(q!=null)this.pushStackLiteral(this.programExpression(q));else this.pushStackLiteral(null)},registerDecorator:function _(q,$){var f=this.nameLookup("decorators",$,"decorator"),K=this.setupHelperArgs($,q);this.decorators.push(["fn = ",this.decorators.functionCall(f,"",["fn","props","container",K])," || fn;"])},invokeHelper:function _(q,$,f){var K=this.popStack(),P=this.setupHelper(q,$),u=[];if(f)u.push(P.name);if(u.push(K),!this.options.strict)u.push(this.aliasable("container.hooks.helperMissing"));var j=["(",this.itemsSeparatedBy(u,"||"),")"],w=this.source.functionCall(j,"call",P.callParams);this.push(w)},itemsSeparatedBy:function _(q,$){var f=[];f.push(q[0]);for(var K=1;K<q.length;K++)f.push($,q[K]);return f},invokeKnownHelper:function _(q,$){var f=this.setupHelper(q,$);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function _(q,$){this.useRegister("helper");var f=this.popStack();this.emptyHash();var K=this.setupHelper(0,q,$),P=this.lastHelper=this.nameLookup("helpers",q,"helper"),u=["(","(helper = ",P," || ",f,")"];if(!this.options.strict)u[0]="(helper = ",u.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"));this.push(["(",u,K.paramsInit?["),(",K.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",K.callParams)," : helper))"])},invokePartial:function _(q,$,f){var K=[],P=this.setupParams($,1,K);if(q)$=this.popStack(),delete P.name;if(f)P.indent=JSON.stringify(f);if(P.helpers="helpers",P.partials="partials",P.decorators="container.decorators",!q)K.unshift(this.nameLookup("partials",$,"partial"));else K.unshift($);if(this.options.compat)P.depths="depths";P=this.objectLiteral(P),K.push(P),this.push(this.source.functionCall("container.invokePartial","",K))},assignToHash:function _(q){var $=this.popStack(),f=void 0,K=void 0,P=void 0;if(this.trackIds)P=this.popStack();if(this.stringParams)K=this.popStack(),f=this.popStack();var u=this.hash;if(f)u.contexts[q]=f;if(K)u.types[q]=K;if(P)u.ids[q]=P;u.values[q]=$},pushId:function _(q,$,f){if(q==="BlockParam")this.pushStackLiteral("blockParams["+$[0]+"].path["+$[1]+"]"+(f?" + "+JSON.stringify("."+f):""));else if(q==="PathExpression")this.pushString($);else if(q==="SubExpression")this.pushStackLiteral("true");else this.pushStackLiteral("null")},compiler:H6,compileChildren:function _(q,$){var f=q.children,K=void 0,P=void 0;for(var u=0,j=f.length;u<j;u++){K=f[u],P=new this.compiler;var w=this.matchExistingProgram(K);if(w==null){this.context.programs.push("");var O=this.context.programs.length;K.index=O,K.name="program"+O,this.context.programs[O]=P.compile(K,$,this.context,!this.precompile),this.context.decorators[O]=P.decorators,this.context.environments[O]=K,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams,K.useDepths=this.useDepths,K.useBlockParams=this.useBlockParams}else K.index=w.index,K.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function _(q){for(var $=0,f=this.context.environments.length;$<f;$++){var K=this.context.environments[$];if(K&&K.equals(q))return K}},programExpression:function _(q){var $=this.environment.children[q],f=[$.index,"data",$.blockParams];if(this.useBlockParams||this.useDepths)f.push("blockParams");if(this.useDepths)f.push("depths");return"container.program("+f.join(", ")+")"},useRegister:function _(q){if(!this.registers[q])this.registers[q]=!0,this.registers.list.push(q)},push:function _(q){if(!(q instanceof z6))q=this.source.wrap(q);return this.inlineStack.push(q),q},pushStackLiteral:function _(q){this.push(new z6(q))},pushSource:function _(q){if(this.pendingContent)this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0;if(q)this.source.push(q)},replaceStack:function _(q){var $=["("],f=void 0,K=void 0,P=void 0;if(!this.isInline())throw new pK.default("replaceStack on non-inline");var u=this.popStack(!0);if(u instanceof z6)f=[u.value],$=["(",f],P=!0;else{K=!0;var j=this.incrStack();$=["((",this.push(j)," = ",u,")"],f=this.topStack()}var w=q.call(this,f);if(!P)this.popStack();if(K)this.stackSlot--;this.push($.concat(w,")"))},incrStack:function _(){if(this.stackSlot++,this.stackSlot>this.stackVars.length)this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function _(){return"stack"+this.stackSlot},flushInline:function _(){var q=this.inlineStack;this.inlineStack=[];for(var $=0,f=q.length;$<f;$++){var K=q[$];if(K instanceof z6)this.compileStack.push(K);else{var P=this.incrStack();this.pushSource([P," = ",K,";"]),this.compileStack.push(P)}}},isInline:function _(){return this.inlineStack.length},popStack:function _(q){var $=this.isInline(),f=($?this.inlineStack:this.compileStack).pop();if(!q&&f instanceof z6)return f.value;else{if(!$){if(!this.stackSlot)throw new pK.default("Invalid stack pop");this.stackSlot--}return f}},topStack:function _(){var q=this.isInline()?this.inlineStack:this.compileStack,$=q[q.length-1];if($ instanceof z6)return $.value;else return $},contextName:function _(q){if(this.useDepths&&q)return"depths["+q+"]";else return"depth"+q},quotedString:function _(q){return this.source.quotedString(q)},objectLiteral:function _(q){return this.source.objectLiteral(q)},aliasable:function _(q){var $=this.aliases[q];if($)return $.referenceCount++,$;return $=this.aliases[q]=this.source.wrap(q),$.aliasable=!0,$.referenceCount=1,$},setupHelper:function _(q,$,f){var K=[],P=this.setupHelperArgs($,q,K,f),u=this.nameLookup("helpers",$,"helper"),j=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:K,paramsInit:P,name:u,callParams:[j].concat(K)}},setupParams:function _(q,$,f){var K={},P=[],u=[],j=[],w=!f,O=void 0;if(w)f=[];if(K.name=this.quotedString(q),K.hash=this.popStack(),this.trackIds)K.hashIds=this.popStack();if(this.stringParams)K.hashTypes=this.popStack(),K.hashContexts=this.popStack();var v=this.popStack(),Y=this.popStack();if(Y||v)K.fn=Y||"container.noop",K.inverse=v||"container.noop";var T=$;while(T--){if(O=this.popStack(),f[T]=O,this.trackIds)j[T]=this.popStack();if(this.stringParams)u[T]=this.popStack(),P[T]=this.popStack()}if(w)K.args=this.source.generateArray(f);if(this.trackIds)K.ids=this.source.generateArray(j);if(this.stringParams)K.types=this.source.generateArray(u),K.contexts=this.source.generateArray(P);if(this.options.data)K.data="data";if(this.useBlockParams)K.blockParams="blockParams";return K},setupHelperArgs:function _(q,$,f,K){var P=this.setupParams(q,$,f);if(P.loc=JSON.stringify(this.source.currentLocation),P=this.objectLiteral(P),K)return this.useRegister("options"),f.push("options"),["options=",P];else if(f)return f.push(P),"";else return P}};(function(){var _="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),q=H6.RESERVED_WORDS={};for(var $=0,f=_.length;$<f;$++)q[_[$]]=!0})();H6.isValidJavaScriptVariableName=function(_){return!H6.RESERVED_WORDS[_]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(_)};function iJ(_,q,$,f,K){var P=q.popStack(),u=$.length;if(_)u--;for(;f<u;f++)P=q.nameLookup(P,$[f],K);if(_)return[q.aliasable("container.strict"),"(",P,", ",q.quotedString($[f]),", ",JSON.stringify(q.source.currentLocation)," )"];else return P}n9.default=H6;S9.exports=n9.default});var a9=X((R9,I9)=>{R9.__esModule=!0;function Yq(_){return _&&_.__esModule?_:{default:_}}var yJ=Ij(),tJ=Yq(yJ),cJ=KK(),LJ=Yq(cJ),bK=_9(),VK=K9(),eJ=d9(),xJ=Yq(eJ),sJ=m$(),BJ=Yq(sJ),FJ=_K(),UJ=Yq(FJ),QJ=tJ.default.create;function E9(){var _=QJ();return _.compile=function(q,$){return VK.compile(q,$,_)},_.precompile=function(q,$){return VK.precompile(q,$,_)},_.AST=LJ.default,_.Compiler=VK.Compiler,_.JavaScriptCompiler=xJ.default,_.Parser=bK.parser,_.parse=bK.parse,_.parseWithoutProcessing=bK.parseWithoutProcessing,_}var W6=E9();W6.create=E9;UJ.default(W6);W6.Visitor=BJ.default;W6.default=W6;R9.default=W6;I9.exports=R9.default});var o9=X((uZ)=>{uZ.__esModule=!0;uZ.print=PZ;uZ.PrintVisitor=f8;function $Z(_){return _&&_.__esModule?_:{default:_}}var fZ=m$(),KZ=$Z(fZ);function PZ(_){return new f8().accept(_)}function f8(){this.padding=0}f8.prototype=new KZ.default;f8.prototype.pad=function(_){var q="";for(var $=0,f=this.padding;$<f;$++)q+=" ";return q+=_+`
|
|
71
|
-
`,q};f8.prototype.Program=function(_){var q="",$=_.body,f=void 0,K=void 0;if(_.blockParams){var P="BLOCK PARAMS: [";for(f=0,K=_.blockParams.length;f<K;f++)P+=" "+_.blockParams[f];P+=" ]",q+=this.pad(P)}for(f=0,K=$.length;f<K;f++)q+=this.accept($[f]);return this.padding--,q};f8.prototype.MustacheStatement=function(_){return this.pad("{{ "+this.SubExpression(_)+" }}")};f8.prototype.Decorator=function(_){return this.pad("{{ DIRECTIVE "+this.SubExpression(_)+" }}")};f8.prototype.BlockStatement=f8.prototype.DecoratorBlock=function(_){var q="";if(q+=this.pad((_.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,q+=this.pad(this.SubExpression(_)),_.program)q+=this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--;if(_.inverse){if(_.program)this.padding++;if(q+=this.pad("{{^}}"),this.padding++,q+=this.accept(_.inverse),this.padding--,_.program)this.padding--}return this.padding--,q};f8.prototype.PartialStatement=function(_){var q="PARTIAL:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return this.pad("{{> "+q+" }}")};f8.prototype.PartialBlockStatement=function(_){var q="PARTIAL BLOCK:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return q+=" "+this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--,this.pad("{{> "+q+" }}")};f8.prototype.ContentStatement=function(_){return this.pad("CONTENT[ '"+_.value+"' ]")};f8.prototype.CommentStatement=function(_){return this.pad("{{! '"+_.value+"' }}")};f8.prototype.SubExpression=function(_){var q=_.params,$=[],f=void 0;for(var K=0,P=q.length;K<P;K++)$.push(this.accept(q[K]));return q="["+$.join(", ")+"]",f=_.hash?" "+this.accept(_.hash):"",this.accept(_.path)+" "+q+f};f8.prototype.PathExpression=function(_){var q=_.parts.join("/");return(_.data?"@":"")+"PATH:"+q};f8.prototype.StringLiteral=function(_){return'"'+_.value+'"'};f8.prototype.NumberLiteral=function(_){return"NUMBER{"+_.value+"}"};f8.prototype.BooleanLiteral=function(_){return"BOOLEAN{"+_.value+"}"};f8.prototype.UndefinedLiteral=function(){return"UNDEFINED"};f8.prototype.NullLiteral=function(){return"NULL"};f8.prototype.Hash=function(_){var q=_.pairs,$=[];for(var f=0,K=q.length;f<K;f++)$.push(this.accept(q[f]));return"HASH{"+$.join(", ")+"}"};f8.prototype.HashPair=function(_){return _.key+"="+this.accept(_.value)}});var
|
|
72
|
-
`)}}p8.defaultYaml={explicit:!1,version:"1.2"};p8.defaultTags={"!!":"tag:yaml.org,2002:"};
|
|
73
|
-
`)?
|
|
70
|
+
`.trim()},blockValue:function _(q){var $=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs(q,0,f);var K=this.popStack();f.splice(1,0,K),this.push(this.source.functionCall($,"call",f))},ambiguousBlockValue:function _(){var q=this.aliasable("container.hooks.blockHelperMissing"),$=[this.contextName(0)];this.setupHelperArgs("",0,$,!0),this.flushInline();var f=this.topStack();$.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(q,"call",$),"}"])},appendContent:function _(q){if(this.pendingContent)q=this.pendingContent+q;else this.pendingLocation=this.source.currentLocation;this.pendingContent=q},append:function _(){if(this.isInline())this.replaceStack(function($){return[" != null ? ",$,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var q=this.popStack();if(this.pushSource(["if (",q," != null) { ",this.appendToBuffer(q,void 0,!0)," }"]),this.environment.isSimple)this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function _(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function _(q){this.lastContext=q},pushContext:function _(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function _(q,$,f,K){var P=0;if(!K&&this.options.compat&&!this.lastContext)this.push(this.depthedLookup(q[P++]));else this.pushContext();this.resolvePath("context",q,P,$,f)},lookupBlockParam:function _(q,$){this.useBlockParams=!0,this.push(["blockParams[",q[0],"][",q[1],"]"]),this.resolvePath("context",$,1)},lookupData:function _(q,$,f){if(!q)this.pushStackLiteral("data");else this.pushStackLiteral("container.data(data, "+q+")");this.resolvePath("data",$,0,!0,f)},resolvePath:function _(q,$,f,K,P){var u=this;if(this.options.strict||this.options.assumeObjects){this.push(aJ(this.options.strict&&P,this,$,f,q));return}var j=$.length;for(;f<j;f++)this.replaceStack(function(w){var O=u.nameLookup(w,$[f],q);if(!K)return[" != null ? ",O," : ",w];else return[" && ",O]})},resolvePossibleLambda:function _(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function _(q,$){if(this.pushContext(),this.pushString($),$!=="SubExpression")if(typeof q==="string")this.pushString(q);else this.pushStackLiteral(q)},emptyHash:function _(q){if(this.trackIds)this.push("{}");if(this.stringParams)this.push("{}"),this.push("{}");this.pushStackLiteral(q?"undefined":"{}")},pushHash:function _(){if(this.hash)this.hashes.push(this.hash);this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function _(){var q=this.hash;if(this.hash=this.hashes.pop(),this.trackIds)this.push(this.objectLiteral(q.ids));if(this.stringParams)this.push(this.objectLiteral(q.contexts)),this.push(this.objectLiteral(q.types));this.push(this.objectLiteral(q.values))},pushString:function _(q){this.pushStackLiteral(this.quotedString(q))},pushLiteral:function _(q){this.pushStackLiteral(q)},pushProgram:function _(q){if(q!=null)this.pushStackLiteral(this.programExpression(q));else this.pushStackLiteral(null)},registerDecorator:function _(q,$){var f=this.nameLookup("decorators",$,"decorator"),K=this.setupHelperArgs($,q);this.decorators.push(["fn = ",this.decorators.functionCall(f,"",["fn","props","container",K])," || fn;"])},invokeHelper:function _(q,$,f){var K=this.popStack(),P=this.setupHelper(q,$),u=[];if(f)u.push(P.name);if(u.push(K),!this.options.strict)u.push(this.aliasable("container.hooks.helperMissing"));var j=["(",this.itemsSeparatedBy(u,"||"),")"],w=this.source.functionCall(j,"call",P.callParams);this.push(w)},itemsSeparatedBy:function _(q,$){var f=[];f.push(q[0]);for(var K=1;K<q.length;K++)f.push($,q[K]);return f},invokeKnownHelper:function _(q,$){var f=this.setupHelper(q,$);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function _(q,$){this.useRegister("helper");var f=this.popStack();this.emptyHash();var K=this.setupHelper(0,q,$),P=this.lastHelper=this.nameLookup("helpers",q,"helper"),u=["(","(helper = ",P," || ",f,")"];if(!this.options.strict)u[0]="(helper = ",u.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"));this.push(["(",u,K.paramsInit?["),(",K.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",K.callParams)," : helper))"])},invokePartial:function _(q,$,f){var K=[],P=this.setupParams($,1,K);if(q)$=this.popStack(),delete P.name;if(f)P.indent=JSON.stringify(f);if(P.helpers="helpers",P.partials="partials",P.decorators="container.decorators",!q)K.unshift(this.nameLookup("partials",$,"partial"));else K.unshift($);if(this.options.compat)P.depths="depths";P=this.objectLiteral(P),K.push(P),this.push(this.source.functionCall("container.invokePartial","",K))},assignToHash:function _(q){var $=this.popStack(),f=void 0,K=void 0,P=void 0;if(this.trackIds)P=this.popStack();if(this.stringParams)K=this.popStack(),f=this.popStack();var u=this.hash;if(f)u.contexts[q]=f;if(K)u.types[q]=K;if(P)u.ids[q]=P;u.values[q]=$},pushId:function _(q,$,f){if(q==="BlockParam")this.pushStackLiteral("blockParams["+$[0]+"].path["+$[1]+"]"+(f?" + "+JSON.stringify("."+f):""));else if(q==="PathExpression")this.pushString($);else if(q==="SubExpression")this.pushStackLiteral("true");else this.pushStackLiteral("null")},compiler:H6,compileChildren:function _(q,$){var f=q.children,K=void 0,P=void 0;for(var u=0,j=f.length;u<j;u++){K=f[u],P=new this.compiler;var w=this.matchExistingProgram(K);if(w==null){this.context.programs.push("");var O=this.context.programs.length;K.index=O,K.name="program"+O,this.context.programs[O]=P.compile(K,$,this.context,!this.precompile),this.context.decorators[O]=P.decorators,this.context.environments[O]=K,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams,K.useDepths=this.useDepths,K.useBlockParams=this.useBlockParams}else K.index=w.index,K.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function _(q){for(var $=0,f=this.context.environments.length;$<f;$++){var K=this.context.environments[$];if(K&&K.equals(q))return K}},programExpression:function _(q){var $=this.environment.children[q],f=[$.index,"data",$.blockParams];if(this.useBlockParams||this.useDepths)f.push("blockParams");if(this.useDepths)f.push("depths");return"container.program("+f.join(", ")+")"},useRegister:function _(q){if(!this.registers[q])this.registers[q]=!0,this.registers.list.push(q)},push:function _(q){if(!(q instanceof z6))q=this.source.wrap(q);return this.inlineStack.push(q),q},pushStackLiteral:function _(q){this.push(new z6(q))},pushSource:function _(q){if(this.pendingContent)this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0;if(q)this.source.push(q)},replaceStack:function _(q){var $=["("],f=void 0,K=void 0,P=void 0;if(!this.isInline())throw new DK.default("replaceStack on non-inline");var u=this.popStack(!0);if(u instanceof z6)f=[u.value],$=["(",f],P=!0;else{K=!0;var j=this.incrStack();$=["((",this.push(j)," = ",u,")"],f=this.topStack()}var w=q.call(this,f);if(!P)this.popStack();if(K)this.stackSlot--;this.push($.concat(w,")"))},incrStack:function _(){if(this.stackSlot++,this.stackSlot>this.stackVars.length)this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function _(){return"stack"+this.stackSlot},flushInline:function _(){var q=this.inlineStack;this.inlineStack=[];for(var $=0,f=q.length;$<f;$++){var K=q[$];if(K instanceof z6)this.compileStack.push(K);else{var P=this.incrStack();this.pushSource([P," = ",K,";"]),this.compileStack.push(P)}}},isInline:function _(){return this.inlineStack.length},popStack:function _(q){var $=this.isInline(),f=($?this.inlineStack:this.compileStack).pop();if(!q&&f instanceof z6)return f.value;else{if(!$){if(!this.stackSlot)throw new DK.default("Invalid stack pop");this.stackSlot--}return f}},topStack:function _(){var q=this.isInline()?this.inlineStack:this.compileStack,$=q[q.length-1];if($ instanceof z6)return $.value;else return $},contextName:function _(q){if(this.useDepths&&q)return"depths["+q+"]";else return"depth"+q},quotedString:function _(q){return this.source.quotedString(q)},objectLiteral:function _(q){return this.source.objectLiteral(q)},aliasable:function _(q){var $=this.aliases[q];if($)return $.referenceCount++,$;return $=this.aliases[q]=this.source.wrap(q),$.aliasable=!0,$.referenceCount=1,$},setupHelper:function _(q,$,f){var K=[],P=this.setupHelperArgs($,q,K,f),u=this.nameLookup("helpers",$,"helper"),j=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:K,paramsInit:P,name:u,callParams:[j].concat(K)}},setupParams:function _(q,$,f){var K={},P=[],u=[],j=[],w=!f,O=void 0;if(w)f=[];if(K.name=this.quotedString(q),K.hash=this.popStack(),this.trackIds)K.hashIds=this.popStack();if(this.stringParams)K.hashTypes=this.popStack(),K.hashContexts=this.popStack();var v=this.popStack(),Y=this.popStack();if(Y||v)K.fn=Y||"container.noop",K.inverse=v||"container.noop";var T=$;while(T--){if(O=this.popStack(),f[T]=O,this.trackIds)j[T]=this.popStack();if(this.stringParams)u[T]=this.popStack(),P[T]=this.popStack()}if(w)K.args=this.source.generateArray(f);if(this.trackIds)K.ids=this.source.generateArray(j);if(this.stringParams)K.types=this.source.generateArray(u),K.contexts=this.source.generateArray(P);if(this.options.data)K.data="data";if(this.useBlockParams)K.blockParams="blockParams";return K},setupHelperArgs:function _(q,$,f,K){var P=this.setupParams(q,$,f);if(P.loc=JSON.stringify(this.source.currentLocation),P=this.objectLiteral(P),K)return this.useRegister("options"),f.push("options"),["options=",P];else if(f)return f.push(P),"";else return P}};(function(){var _="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),q=H6.RESERVED_WORDS={};for(var $=0,f=_.length;$<f;$++)q[_[$]]=!0})();H6.isValidJavaScriptVariableName=function(_){return!H6.RESERVED_WORDS[_]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(_)};function aJ(_,q,$,f,K){var P=q.popStack(),u=$.length;if(_)u--;for(;f<u;f++)P=q.nameLookup(P,$[f],K);if(_)return[q.aliasable("container.strict"),"(",P,", ",q.quotedString($[f]),", ",JSON.stringify(q.source.currentLocation)," )"];else return P}b9.default=H6;V9.exports=b9.default});var d9=X((n9,S9)=>{n9.__esModule=!0;function Yq(_){return _&&_.__esModule?_:{default:_}}var gJ=Sj(),lJ=Yq(gJ),yJ=qK(),tJ=Yq(yJ),CK=Bj(),rK=_9(),cJ=M9(),LJ=Yq(cJ),eJ=h$(),xJ=Yq(eJ),sJ=F3(),BJ=Yq(sJ),FJ=lJ.default.create;function N9(){var _=FJ();return _.compile=function(q,$){return rK.compile(q,$,_)},_.precompile=function(q,$){return rK.precompile(q,$,_)},_.AST=tJ.default,_.Compiler=rK.Compiler,_.JavaScriptCompiler=LJ.default,_.Parser=CK.parser,_.parse=CK.parse,_.parseWithoutProcessing=CK.parseWithoutProcessing,_}var W6=N9();W6.create=N9;BJ.default(W6);W6.Visitor=xJ.default;W6.default=W6;n9.default=W6;S9.exports=n9.default});var E9=X((KZ)=>{KZ.__esModule=!0;KZ.print=fZ;KZ.PrintVisitor=f8;function _Z(_){return _&&_.__esModule?_:{default:_}}var qZ=h$(),$Z=_Z(qZ);function fZ(_){return new f8().accept(_)}function f8(){this.padding=0}f8.prototype=new $Z.default;f8.prototype.pad=function(_){var q="";for(var $=0,f=this.padding;$<f;$++)q+=" ";return q+=_+`
|
|
71
|
+
`,q};f8.prototype.Program=function(_){var q="",$=_.body,f=void 0,K=void 0;if(_.blockParams){var P="BLOCK PARAMS: [";for(f=0,K=_.blockParams.length;f<K;f++)P+=" "+_.blockParams[f];P+=" ]",q+=this.pad(P)}for(f=0,K=$.length;f<K;f++)q+=this.accept($[f]);return this.padding--,q};f8.prototype.MustacheStatement=function(_){return this.pad("{{ "+this.SubExpression(_)+" }}")};f8.prototype.Decorator=function(_){return this.pad("{{ DIRECTIVE "+this.SubExpression(_)+" }}")};f8.prototype.BlockStatement=f8.prototype.DecoratorBlock=function(_){var q="";if(q+=this.pad((_.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,q+=this.pad(this.SubExpression(_)),_.program)q+=this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--;if(_.inverse){if(_.program)this.padding++;if(q+=this.pad("{{^}}"),this.padding++,q+=this.accept(_.inverse),this.padding--,_.program)this.padding--}return this.padding--,q};f8.prototype.PartialStatement=function(_){var q="PARTIAL:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return this.pad("{{> "+q+" }}")};f8.prototype.PartialBlockStatement=function(_){var q="PARTIAL BLOCK:"+_.name.original;if(_.params[0])q+=" "+this.accept(_.params[0]);if(_.hash)q+=" "+this.accept(_.hash);return q+=" "+this.pad("PROGRAM:"),this.padding++,q+=this.accept(_.program),this.padding--,this.pad("{{> "+q+" }}")};f8.prototype.ContentStatement=function(_){return this.pad("CONTENT[ '"+_.value+"' ]")};f8.prototype.CommentStatement=function(_){return this.pad("{{! '"+_.value+"' }}")};f8.prototype.SubExpression=function(_){var q=_.params,$=[],f=void 0;for(var K=0,P=q.length;K<P;K++)$.push(this.accept(q[K]));return q="["+$.join(", ")+"]",f=_.hash?" "+this.accept(_.hash):"",this.accept(_.path)+" "+q+f};f8.prototype.PathExpression=function(_){var q=_.parts.join("/");return(_.data?"@":"")+"PATH:"+q};f8.prototype.StringLiteral=function(_){return'"'+_.value+'"'};f8.prototype.NumberLiteral=function(_){return"NUMBER{"+_.value+"}"};f8.prototype.BooleanLiteral=function(_){return"BOOLEAN{"+_.value+"}"};f8.prototype.UndefinedLiteral=function(){return"UNDEFINED"};f8.prototype.NullLiteral=function(){return"NULL"};f8.prototype.Hash=function(_){var q=_.pairs,$=[];for(var f=0,K=q.length;f<K;f++)$.push(this.accept(q[f]));return"HASH{"+$.join(", ")+"}"};f8.prototype.HashPair=function(_){return _.key+"="+this.accept(_.value)}});var o9=X((N0,a9)=>{var D$=d9().default,I9=E9();D$.PrintVisitor=I9.PrintVisitor;D$.print=I9.print;a9.exports=D$;function R9(_,q){var $=v8("fs"),f=$.readFileSync(q,"utf8");_.exports=D$.compile(f)}if(v8.extensions)v8.extensions[".handlebars"]=R9,v8.extensions[".hbs"]=R9});var y=X((WZ)=>{var pK=Symbol.for("yaml.alias"),i9=Symbol.for("yaml.document"),C$=Symbol.for("yaml.map"),g9=Symbol.for("yaml.pair"),bK=Symbol.for("yaml.scalar"),r$=Symbol.for("yaml.seq"),j_=Symbol.for("yaml.node.type"),wZ=(_)=>!!_&&typeof _==="object"&&_[j_]===pK,OZ=(_)=>!!_&&typeof _==="object"&&_[j_]===i9,YZ=(_)=>!!_&&typeof _==="object"&&_[j_]===C$,TZ=(_)=>!!_&&typeof _==="object"&&_[j_]===g9,l9=(_)=>!!_&&typeof _==="object"&&_[j_]===bK,vZ=(_)=>!!_&&typeof _==="object"&&_[j_]===r$;function y9(_){if(_&&typeof _==="object")switch(_[j_]){case C$:case r$:return!0}return!1}function zZ(_){if(_&&typeof _==="object")switch(_[j_]){case pK:case C$:case bK:case r$:return!0}return!1}var HZ=(_)=>(l9(_)||y9(_))&&!!_.anchor;WZ.ALIAS=pK;WZ.DOC=i9;WZ.MAP=C$;WZ.NODE_TYPE=j_;WZ.PAIR=g9;WZ.SCALAR=bK;WZ.SEQ=r$;WZ.hasAnchor=HZ;WZ.isAlias=wZ;WZ.isCollection=y9;WZ.isDocument=OZ;WZ.isMap=YZ;WZ.isNode=zZ;WZ.isPair=TZ;WZ.isScalar=l9;WZ.isSeq=vZ});var Tq=X((nZ)=>{var w8=y(),H8=Symbol("break visit"),t9=Symbol("skip children"),F8=Symbol("remove node");function p$(_,q){let $=c9(q);if(w8.isDocument(_)){if(k6(null,_.contents,$,Object.freeze([_]))===F8)_.contents=null}else k6(null,_,$,Object.freeze([]))}p$.BREAK=H8;p$.SKIP=t9;p$.REMOVE=F8;function k6(_,q,$,f){let K=L9(_,q,$,f);if(w8.isNode(K)||w8.isPair(K))return e9(_,f,K),k6(_,K,$,f);if(typeof K!=="symbol"){if(w8.isCollection(q)){f=Object.freeze(f.concat(q));for(let P=0;P<q.items.length;++P){let u=k6(P,q.items[P],$,f);if(typeof u==="number")P=u-1;else if(u===H8)return H8;else if(u===F8)q.items.splice(P,1),P-=1}}else if(w8.isPair(q)){f=Object.freeze(f.concat(q));let P=k6("key",q.key,$,f);if(P===H8)return H8;else if(P===F8)q.key=null;let u=k6("value",q.value,$,f);if(u===H8)return H8;else if(u===F8)q.value=null}}return K}async function b$(_,q){let $=c9(q);if(w8.isDocument(_)){if(await J6(null,_.contents,$,Object.freeze([_]))===F8)_.contents=null}else await J6(null,_,$,Object.freeze([]))}b$.BREAK=H8;b$.SKIP=t9;b$.REMOVE=F8;async function J6(_,q,$,f){let K=await L9(_,q,$,f);if(w8.isNode(K)||w8.isPair(K))return e9(_,f,K),J6(_,K,$,f);if(typeof K!=="symbol"){if(w8.isCollection(q)){f=Object.freeze(f.concat(q));for(let P=0;P<q.items.length;++P){let u=await J6(P,q.items[P],$,f);if(typeof u==="number")P=u-1;else if(u===H8)return H8;else if(u===F8)q.items.splice(P,1),P-=1}}else if(w8.isPair(q)){f=Object.freeze(f.concat(q));let P=await J6("key",q.key,$,f);if(P===H8)return H8;else if(P===F8)q.key=null;let u=await J6("value",q.value,$,f);if(u===H8)return H8;else if(u===F8)q.value=null}}return K}function c9(_){if(typeof _==="object"&&(_.Collection||_.Node||_.Value))return Object.assign({Alias:_.Node,Map:_.Node,Scalar:_.Node,Seq:_.Node},_.Value&&{Map:_.Value,Scalar:_.Value,Seq:_.Value},_.Collection&&{Map:_.Collection,Seq:_.Collection},_);return _}function L9(_,q,$,f){if(typeof $==="function")return $(_,q,f);if(w8.isMap(q))return $.Map?.(_,q,f);if(w8.isSeq(q))return $.Seq?.(_,q,f);if(w8.isPair(q))return $.Pair?.(_,q,f);if(w8.isScalar(q))return $.Scalar?.(_,q,f);if(w8.isAlias(q))return $.Alias?.(_,q,f);return}function e9(_,q,$){let f=q[q.length-1];if(w8.isCollection(f))f.items[_]=$;else if(w8.isPair(f))if(_==="key")f.key=$;else f.value=$;else if(w8.isDocument(f))f.contents=$;else{let K=w8.isAlias(f)?"alias":"scalar";throw new Error(`Cannot replace node with ${K} parent`)}}nZ.visit=p$;nZ.visitAsync=b$});var VK=X((aZ)=>{var x9=y(),EZ=Tq(),RZ={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},IZ=(_)=>_.replace(/[!,[\]{}]/g,(q)=>RZ[q]);class p8{constructor(_,q){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},p8.defaultYaml,_),this.tags=Object.assign({},p8.defaultTags,q)}clone(){let _=new p8(this.yaml,this.tags);return _.docStart=this.docStart,_}atDocument(){let _=new p8(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:p8.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},p8.defaultTags);break}return _}add(_,q){if(this.atNextDocument)this.yaml={explicit:p8.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},p8.defaultTags),this.atNextDocument=!1;let $=_.trim().split(/[ \t]+/),f=$.shift();switch(f){case"%TAG":{if($.length!==2){if(q(0,"%TAG directive should contain exactly two parts"),$.length<2)return!1}let[K,P]=$;return this.tags[K]=P,!0}case"%YAML":{if(this.yaml.explicit=!0,$.length!==1)return q(0,"%YAML directive should contain exactly one part"),!1;let[K]=$;if(K==="1.1"||K==="1.2")return this.yaml.version=K,!0;else{let P=/^\d+\.\d+$/.test(K);return q(6,`Unsupported YAML version ${K}`,P),!1}}default:return q(0,`Unknown directive ${f}`,!0),!1}}tagName(_,q){if(_==="!")return"!";if(_[0]!=="!")return q(`Not a valid tag: ${_}`),null;if(_[1]==="<"){let P=_.slice(2,-1);if(P==="!"||P==="!!")return q(`Verbatim tags aren't resolved, so ${_} is invalid.`),null;if(_[_.length-1]!==">")q("Verbatim tags must end with a >");return P}let[,$,f]=_.match(/^(.*!)([^!]*)$/s);if(!f)q(`The ${_} tag has no suffix`);let K=this.tags[$];if(K)try{return K+decodeURIComponent(f)}catch(P){return q(String(P)),null}if($==="!")return _;return q(`Could not resolve tag: ${_}`),null}tagString(_){for(let[q,$]of Object.entries(this.tags))if(_.startsWith($))return q+IZ(_.substring($.length));return _[0]==="!"?_:`!<${_}>`}toString(_){let q=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],$=Object.entries(this.tags),f;if(_&&$.length>0&&x9.isNode(_.contents)){let K={};EZ.visit(_.contents,(P,u)=>{if(x9.isNode(u)&&u.tag)K[u.tag]=!0}),f=Object.keys(K)}else f=[];for(let[K,P]of $){if(K==="!!"&&P==="tag:yaml.org,2002:")continue;if(!_||f.some((u)=>u.startsWith(P)))q.push(`%TAG ${K} ${P}`)}return q.join(`
|
|
72
|
+
`)}}p8.defaultYaml={explicit:!1,version:"1.2"};p8.defaultTags={"!!":"tag:yaml.org,2002:"};aZ.Directives=p8});var V$=X((yZ)=>{var s9=y(),iZ=Tq();function gZ(_){if(/[\x00-\x19\s,[\]{}]/.test(_)){let $=`Anchor must not contain whitespace or control characters: ${JSON.stringify(_)}`;throw new Error($)}return!0}function B9(_){let q=new Set;return iZ.visit(_,{Value($,f){if(f.anchor)q.add(f.anchor)}}),q}function F9(_,q){for(let $=1;;++$){let f=`${_}${$}`;if(!q.has(f))return f}}function lZ(_,q){let $=[],f=new Map,K=null;return{onAnchor:(P)=>{$.push(P),K??(K=B9(_));let u=F9(q,K);return K.add(u),u},setAnchors:()=>{for(let P of $){let u=f.get(P);if(typeof u==="object"&&u.anchor&&(s9.isScalar(u.node)||s9.isCollection(u.node)))u.node.anchor=u.anchor;else{let j=new Error("Failed to resolve repeated object (this should not happen)");throw j.source=P,j}}},sourceObjects:f}}yZ.anchorIsValid=gZ;yZ.anchorNames=B9;yZ.createNodeAnchors=lZ;yZ.findNewAnchor=F9});var MK=X((xZ)=>{function vq(_,q,$,f){if(f&&typeof f==="object")if(Array.isArray(f))for(let K=0,P=f.length;K<P;++K){let u=f[K],j=vq(_,f,String(K),u);if(j===void 0)delete f[K];else if(j!==u)f[K]=j}else if(f instanceof Map)for(let K of Array.from(f.keys())){let P=f.get(K),u=vq(_,f,K,P);if(u===void 0)f.delete(K);else if(u!==P)f.set(K,u)}else if(f instanceof Set)for(let K of Array.from(f)){let P=vq(_,f,K,K);if(P===void 0)f.delete(K);else if(P!==K)f.delete(K),f.add(P)}else for(let[K,P]of Object.entries(f)){let u=vq(_,f,K,P);if(u===void 0)delete f[K];else if(u!==P)f[K]=u}return _.call(q,$,f)}xZ.applyReviver=vq});var z_=X((FZ)=>{var BZ=y();function U9(_,q,$){if(Array.isArray(_))return _.map((f,K)=>U9(f,String(K),$));if(_&&typeof _.toJSON==="function"){if(!$||!BZ.hasAnchor(_))return _.toJSON(q,$);let f={aliasCount:0,count:1,res:void 0};$.anchors.set(_,f),$.onCreate=(P)=>{f.res=P,delete $.onCreate};let K=_.toJSON(q,$);if($.onCreate)$.onCreate(K);return K}if(typeof _==="bigint"&&!$?.keep)return Number(_);return _}FZ.toJS=U9});var M$=X((qh)=>{var QZ=MK(),Q9=y(),_h=z_();class _5{constructor(_){Object.defineProperty(this,Q9.NODE_TYPE,{value:_})}clone(){let _=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)_.range=this.range.slice();return _}toJS(_,{mapAsMap:q,maxAliasCount:$,onAnchor:f,reviver:K}={}){if(!Q9.isDocument(_))throw new TypeError("A document argument is required");let P={anchors:new Map,doc:_,keep:!0,mapAsMap:q===!0,mapKeyWarned:!1,maxAliasCount:typeof $==="number"?$:100},u=_h.toJS(this,"",P);if(typeof f==="function")for(let{count:j,res:w}of P.anchors.values())f(w,j);return typeof K==="function"?QZ.applyReviver(K,{"":u},"",u):u}}qh.NodeBase=_5});var zq=X((jh)=>{var fh=V$(),Kh=Tq(),Z6=y(),Ph=M$(),uh=z_();class q5 extends Ph.NodeBase{constructor(_){super(Z6.ALIAS);this.source=_,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(_,q){let $;if(q?.aliasResolveCache)$=q.aliasResolveCache;else if($=[],Kh.visit(_,{Node:(K,P)=>{if(Z6.isAlias(P)||Z6.hasAnchor(P))$.push(P)}}),q)q.aliasResolveCache=$;let f=void 0;for(let K of $){if(K===this)break;if(K.anchor===this.source)f=K}return f}toJSON(_,q){if(!q)return{source:this.source};let{anchors:$,doc:f,maxAliasCount:K}=q,P=this.resolve(f,q);if(!P){let j=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(j)}let u=$.get(P);if(!u)uh.toJS(P,null,q),u=$.get(P);if(!u||u.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(K>=0){if(u.count+=1,u.aliasCount===0)u.aliasCount=N$(f,P,$);if(u.count*u.aliasCount>K)throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return u.res}toString(_,q,$){let f=`*${this.source}`;if(_){if(fh.anchorIsValid(this.source),_.options.verifyAliasOrder&&!_.anchors.has(this.source)){let K=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(K)}if(_.implicitKey)return`${f} `}return f}}function N$(_,q,$){if(Z6.isAlias(q)){let f=q.resolve(_),K=$&&f&&$.get(f);return K?K.count*K.aliasCount:0}else if(Z6.isCollection(q)){let f=0;for(let K of q.items){let P=N$(_,K,$);if(P>f)f=P}return f}else if(Z6.isPair(q)){let f=N$(_,q.key,$),K=N$(_,q.value,$);return Math.max(f,K)}return 1}jh.Alias=q5});var u8=X((zh)=>{var Oh=y(),Yh=M$(),Th=z_(),vh=(_)=>!_||typeof _!=="function"&&typeof _!=="object";class I_ extends Yh.NodeBase{constructor(_){super(Oh.SCALAR);this.value=_}toJSON(_,q){return q?.keep?this.value:Th.toJS(this.value,_,q)}toString(){return String(this.value)}}I_.BLOCK_FOLDED="BLOCK_FOLDED";I_.BLOCK_LITERAL="BLOCK_LITERAL";I_.PLAIN="PLAIN";I_.QUOTE_DOUBLE="QUOTE_DOUBLE";I_.QUOTE_SINGLE="QUOTE_SINGLE";zh.Scalar=I_;zh.isScalarValue=vh});var Hq=X((Ah)=>{var kh=zq(),a_=y(),$5=u8(),Jh="tag:yaml.org,2002:";function Zh(_,q,$){if(q){let f=$.filter((P)=>P.tag===q),K=f.find((P)=>!P.format)??f[0];if(!K)throw new Error(`Tag ${q} not found`);return K}return $.find((f)=>f.identify?.(_)&&!f.format)}function hh(_,q,$){if(a_.isDocument(_))_=_.contents;if(a_.isNode(_))return _;if(a_.isPair(_)){let Y=$.schema[a_.MAP].createNode?.($.schema,null,$);return Y.items.push(_),Y}if(_ instanceof String||_ instanceof Number||_ instanceof Boolean||typeof BigInt!=="undefined"&&_ instanceof BigInt)_=_.valueOf();let{aliasDuplicateObjects:f,onAnchor:K,onTagObj:P,schema:u,sourceObjects:j}=$,w=void 0;if(f&&_&&typeof _==="object")if(w=j.get(_),w)return w.anchor??(w.anchor=K(_)),new kh.Alias(w.anchor);else w={anchor:null,node:null},j.set(_,w);if(q?.startsWith("!!"))q=Jh+q.slice(2);let O=Zh(_,q,u.tags);if(!O){if(_&&typeof _.toJSON==="function")_=_.toJSON();if(!_||typeof _!=="object"){let Y=new $5.Scalar(_);if(w)w.node=Y;return Y}O=_ instanceof Map?u[a_.MAP]:(Symbol.iterator in Object(_))?u[a_.SEQ]:u[a_.MAP]}if(P)P(O),delete $.onTagObj;let v=O?.createNode?O.createNode($.schema,_,$):typeof O?.nodeClass?.from==="function"?O.nodeClass.from($.schema,_,$):new $5.Scalar(_);if(q)v.tag=q;else if(!O.default)v.tag=O.tag;if(w)w.node=v;return v}Ah.createNode=hh});var n$=X((Dh)=>{var mh=Hq(),U8=y(),Gh=M$();function NK(_,q,$){let f=$;for(let K=q.length-1;K>=0;--K){let P=q[K];if(typeof P==="number"&&Number.isInteger(P)&&P>=0){let u=[];u[P]=f,f=u}else f=new Map([[P,f]])}return mh.createNode(f,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:_,sourceObjects:new Map})}var f5=(_)=>_==null||typeof _==="object"&&!!_[Symbol.iterator]().next().done;class K5 extends Gh.NodeBase{constructor(_,q){super(_);Object.defineProperty(this,"schema",{value:q,configurable:!0,enumerable:!1,writable:!0})}clone(_){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(_)q.schema=_;if(q.items=q.items.map(($)=>U8.isNode($)||U8.isPair($)?$.clone(_):$),this.range)q.range=this.range.slice();return q}addIn(_,q){if(f5(_))this.add(q);else{let[$,...f]=_,K=this.get($,!0);if(U8.isCollection(K))K.addIn(f,q);else if(K===void 0&&this.schema)this.set($,NK(this.schema,f,q));else throw new Error(`Expected YAML collection at ${$}. Remaining path: ${f}`)}}deleteIn(_){let[q,...$]=_;if($.length===0)return this.delete(q);let f=this.get(q,!0);if(U8.isCollection(f))return f.deleteIn($);else throw new Error(`Expected YAML collection at ${q}. Remaining path: ${$}`)}getIn(_,q){let[$,...f]=_,K=this.get($,!0);if(f.length===0)return!q&&U8.isScalar(K)?K.value:K;else return U8.isCollection(K)?K.getIn(f,q):void 0}hasAllNullValues(_){return this.items.every((q)=>{if(!U8.isPair(q))return!1;let $=q.value;return $==null||_&&U8.isScalar($)&&$.value==null&&!$.commentBefore&&!$.comment&&!$.tag})}hasIn(_){let[q,...$]=_;if($.length===0)return this.has(q);let f=this.get(q,!0);return U8.isCollection(f)?f.hasIn($):!1}setIn(_,q){let[$,...f]=_;if(f.length===0)this.set($,q);else{let K=this.get($,!0);if(U8.isCollection(K))K.setIn(f,q);else if(K===void 0&&this.schema)this.set($,NK(this.schema,f,q));else throw new Error(`Expected YAML collection at ${$}. Remaining path: ${f}`)}}}Dh.Collection=K5;Dh.collectionFromPath=NK;Dh.isEmptyPath=f5});var Wq=X((Mh)=>{var bh=(_)=>_.replace(/^(?!$)(?: $)?/gm,"#");function nK(_,q){if(/^\n+$/.test(_))return _.substring(1);return q?_.replace(/^(?! *$)/gm,q):_}var Vh=(_,q,$)=>_.endsWith(`
|
|
73
|
+
`)?nK($,q):$.includes(`
|
|
74
74
|
`)?`
|
|
75
|
-
`+
|
|
76
|
-
`){if($==="block")H=
|
|
75
|
+
`+nK($,q):(_.endsWith(" ")?"":" ")+$;Mh.indentComment=nK;Mh.lineComment=Vh;Mh.stringifyComment=bh});var u5=X((Eh)=>{function dh(_,q,$="flow",{indentAtStart:f,lineWidth:K=80,minContentWidth:P=20,onFold:u,onOverflow:j}={}){if(!K||K<0)return _;if(K<P)P=0;let w=Math.max(1+P,1+K-q.length);if(_.length<=w)return _;let O=[],v={},Y=K-q.length;if(typeof f==="number")if(f>K-Math.max(2,P))O.push(0);else Y=K-f;let T=void 0,z=void 0,W=!1,H=-1,k=-1,A=-1;if($==="block"){if(H=P5(_,H,q.length),H!==-1)Y=H+w}for(let V;V=_[H+=1];){if($==="quoted"&&V==="\\"){switch(k=H,_[H+1]){case"x":H+=3;break;case"u":H+=5;break;case"U":H+=9;break;default:H+=1}A=H}if(V===`
|
|
76
|
+
`){if($==="block")H=P5(_,H,q.length);Y=H+q.length+w,T=void 0}else{if(V===" "&&z&&z!==" "&&z!==`
|
|
77
77
|
`&&z!=="\t"){let N=_[H+1];if(N&&N!==" "&&N!==`
|
|
78
78
|
`&&N!=="\t")T=H}if(H>=Y)if(T)O.push(T),Y=T+w,T=void 0;else if($==="quoted"){while(z===" "||z==="\t")z=V,V=_[H+=1],W=!0;let N=H>A+1?H-2:k-1;if(v[N])return _;O.push(N),v[N]=!0,Y=N+w,T=void 0}else W=!0}z=V}if(W&&j)j();if(O.length===0)return _;if(u)u();let p=_.slice(0,O[0]);for(let V=0;V<O.length;++V){let N=O[V],n=O[V+1]||_.length;if(N===0)p=`
|
|
79
79
|
${q}${_.slice(0,n)}`;else{if($==="quoted"&&v[N])p+=`${_[N]}\\`;p+=`
|
|
80
|
-
${q}${_.slice(N+1,n)}`}}return p}function
|
|
81
|
-
`);f=q,K=q+1,P=_[K]}return f}
|
|
82
|
-
`){if(P-u>f)return!0;if(u=P+1,K-u<=f)return!1}return!0}function kq(_,q){let $=JSON.stringify(_);if(q.options.doubleQuotedAsJSON)return $;let{implicitKey:f}=q,K=q.options.doubleQuotedMinMultiLineLength,P=q.indent||(
|
|
80
|
+
${q}${_.slice(N+1,n)}`}}return p}function P5(_,q,$){let f=q,K=q+1,P=_[K];while(P===" "||P==="\t")if(q<K+$)P=_[++q];else{do P=_[++q];while(P&&P!==`
|
|
81
|
+
`);f=q,K=q+1,P=_[K]}return f}Eh.FOLD_BLOCK="block";Eh.FOLD_FLOW="flow";Eh.FOLD_QUOTED="quoted";Eh.foldFlowLines=dh});var Jq=X((yh)=>{var t8=u8(),H_=u5(),d$=(_,q)=>({indentAtStart:q?_.indent.length:_.indentAtStart,lineWidth:_.options.lineWidth,minContentWidth:_.options.minContentWidth}),E$=(_)=>/^(%|---|\.\.\.)/m.test(_);function ih(_,q,$){if(!q||q<0)return!1;let f=q-$,K=_.length;if(K<=f)return!1;for(let P=0,u=0;P<K;++P)if(_[P]===`
|
|
82
|
+
`){if(P-u>f)return!0;if(u=P+1,K-u<=f)return!1}return!0}function kq(_,q){let $=JSON.stringify(_);if(q.options.doubleQuotedAsJSON)return $;let{implicitKey:f}=q,K=q.options.doubleQuotedMinMultiLineLength,P=q.indent||(E$(_)?" ":""),u="",j=0;for(let w=0,O=$[w];O;O=$[++w]){if(O===" "&&$[w+1]==="\\"&&$[w+2]==="n")u+=$.slice(j,w)+"\\ ",w+=1,j=w,O="\\";if(O==="\\")switch($[w+1]){case"u":{u+=$.slice(j,w);let v=$.substr(w+2,4);switch(v){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:if(v.substr(0,2)==="00")u+="\\x"+v.substr(2);else u+=$.substr(w,6)}w+=5,j=w+1}break;case"n":if(f||$[w+2]==='"'||$.length<K)w+=1;else{u+=$.slice(j,w)+`
|
|
83
83
|
|
|
84
84
|
`;while($[w+2]==="\\"&&$[w+3]==="n"&&$[w+4]!=='"')u+=`
|
|
85
|
-
`,w+=2;if(u+=P,$[w+2]===" ")u+="\\";w+=1,j=w+1}break;default:w+=1}}return u=j?u+$.slice(j):$,f?u:H_.foldFlowLines(u,P,H_.FOLD_QUOTED,
|
|
86
|
-
`)||/[ \t]\n|\n[ \t]/.test(_))return kq(_,q);let $=q.indent||(
|
|
87
|
-
${$}`)+"'";return q.implicitKey?f:H_.foldFlowLines(f,$,H_.FOLD_FLOW,
|
|
85
|
+
`,w+=2;if(u+=P,$[w+2]===" ")u+="\\";w+=1,j=w+1}break;default:w+=1}}return u=j?u+$.slice(j):$,f?u:H_.foldFlowLines(u,P,H_.FOLD_QUOTED,d$(q,!1))}function SK(_,q){if(q.options.singleQuote===!1||q.implicitKey&&_.includes(`
|
|
86
|
+
`)||/[ \t]\n|\n[ \t]/.test(_))return kq(_,q);let $=q.indent||(E$(_)?" ":""),f="'"+_.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
87
|
+
${$}`)+"'";return q.implicitKey?f:H_.foldFlowLines(f,$,H_.FOLD_FLOW,d$(q,!1))}function h6(_,q){let{singleQuote:$}=q.options,f;if($===!1)f=kq;else{let K=_.includes('"'),P=_.includes("'");if(K&&!P)f=SK;else if(P&&!K)f=kq;else f=$?SK:kq}return f(_,q)}var dK;try{dK=new RegExp(`(^|(?<!
|
|
88
88
|
))
|
|
89
89
|
+(?!
|
|
90
|
-
|$)`,"g")}catch{
|
|
90
|
+
|$)`,"g")}catch{dK=/\n+(?!\n|$)/g}function S$({comment:_,type:q,value:$},f,K,P){let{blockQuote:u,commentString:j,lineWidth:w}=f.options;if(!u||/\n[\t ]+$/.test($))return h6($,f);let O=f.indent||(f.forceBlockIndent||E$($)?" ":""),v=u==="literal"?!0:u==="folded"||q===t8.Scalar.BLOCK_FOLDED?!1:q===t8.Scalar.BLOCK_LITERAL?!0:!ih($,w,O.length);if(!$)return v?`|
|
|
91
91
|
`:`>
|
|
92
92
|
`;let Y,T;for(T=$.length;T>0;--T){let n=$[T-1];if(n!==`
|
|
93
93
|
`&&n!=="\t"&&n!==" ")break}let z=$.substring(T),W=z.indexOf(`
|
|
94
94
|
`);if(W===-1)Y="-";else if($===z||W!==z.length-1){if(Y="+",P)P()}else Y="";if(z){if($=$.slice(0,-z.length),z[z.length-1]===`
|
|
95
|
-
`)z=z.slice(0,-1);z=z.replace(
|
|
95
|
+
`)z=z.slice(0,-1);z=z.replace(dK,`$&${O}`)}let H=!1,k,A=-1;for(k=0;k<$.length;++k){let n=$[k];if(n===" ")H=!0;else if(n===`
|
|
96
96
|
`)A=k;else break}let p=$.substring(0,A<k?A+1:k);if(p)$=$.substring(p.length),p=p.replace(/\n+/g,`$&${O}`);let N=(H?O?"2":"1":"")+Y;if(_){if(N+=" "+j(_.replace(/ ?[\r\n]+/g," ")),K)K()}if(!v){let n=$.replace(/\n+/g,`
|
|
97
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${O}`),S=!1,Z=
|
|
97
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${O}`),S=!1,Z=d$(f,!0);if(u!=="folded"&&q!==t8.Scalar.BLOCK_FOLDED)Z.onOverflow=()=>{S=!0};let m=H_.foldFlowLines(`${p}${n}${z}`,O,H_.FOLD_BLOCK,Z);if(!S)return`>${N}
|
|
98
98
|
${O}${m}`}return $=$.replace(/\n+/g,`$&${O}`),`|${N}
|
|
99
|
-
${O}${p}${$}${z}`}function
|
|
99
|
+
${O}${p}${$}${z}`}function gh(_,q,$,f){let{type:K,value:P}=_,{actualString:u,implicitKey:j,indent:w,indentStep:O,inFlow:v}=q;if(j&&P.includes(`
|
|
100
100
|
`)||v&&/[[\]{},]/.test(P))return h6(P,q);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(P))return j||v||!P.includes(`
|
|
101
|
-
`)?h6(P,q):
|
|
102
|
-
`))return
|
|
103
|
-
${w}`);if(u){let T=(H)=>H.default&&H.tag!=="tag:yaml.org,2002:str"&&H.test?.test(Y),{compat:z,tags:W}=q.doc.schema;if(W.some(T)||z?.some(T))return h6(P,q)}return j?Y:H_.foldFlowLines(Y,w,H_.FOLD_FLOW,
|
|
104
|
-
${q.indent}${j}`}
|
|
105
|
-
${j}:`}else if(k=`${k}:`,T)k+=hq.lineComment(k,$.indent,O(T));let A,p,V;if(w_.isNode(q))A=!!q.spaceBefore,p=q.commentBefore,V=q.comment;else if(A=!1,p=null,V=null,q&&typeof q==="object")q=u.createNode(q);if($.implicitKey=!1,!z&&!T&&w_.isScalar(q))$.indentAtStart=k.length+1;if(H=!1,!v&&w.length>=2&&!$.inFlow&&!z&&w_.isSeq(q)&&!q.flow&&!q.tag&&!q.anchor)$.indent=$.indent.substring(2);let N=!1,n=
|
|
101
|
+
`)?h6(P,q):S$(_,q,$,f);if(!j&&!v&&K!==t8.Scalar.PLAIN&&P.includes(`
|
|
102
|
+
`))return S$(_,q,$,f);if(E$(P)){if(w==="")return q.forceBlockIndent=!0,S$(_,q,$,f);else if(j&&w===O)return h6(P,q)}let Y=P.replace(/\n+/g,`$&
|
|
103
|
+
${w}`);if(u){let T=(H)=>H.default&&H.tag!=="tag:yaml.org,2002:str"&&H.test?.test(Y),{compat:z,tags:W}=q.doc.schema;if(W.some(T)||z?.some(T))return h6(P,q)}return j?Y:H_.foldFlowLines(Y,w,H_.FOLD_FLOW,d$(q,!1))}function lh(_,q,$,f){let{implicitKey:K,inFlow:P}=q,u=typeof _.value==="string"?_:Object.assign({},_,{value:String(_.value)}),{type:j}=_;if(j!==t8.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value))j=t8.Scalar.QUOTE_DOUBLE}let w=(v)=>{switch(v){case t8.Scalar.BLOCK_FOLDED:case t8.Scalar.BLOCK_LITERAL:return K||P?h6(u.value,q):S$(u,q,$,f);case t8.Scalar.QUOTE_DOUBLE:return kq(u.value,q);case t8.Scalar.QUOTE_SINGLE:return SK(u.value,q);case t8.Scalar.PLAIN:return gh(u,q,$,f);default:return null}},O=w(j);if(O===null){let{defaultKeyType:v,defaultStringType:Y}=q.options,T=K&&v||Y;if(O=w(T),O===null)throw new Error(`Unsupported default string type ${T}`)}return O}yh.stringifyString=lh});var Zq=X((Uh)=>{var ch=V$(),W_=y(),Lh=Wq(),eh=Jq();function xh(_,q){let $=Object.assign({blockQuote:!0,commentString:Lh.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},_.schema.toStringOptions,q),f;switch($.collectionStyle){case"block":f=!1;break;case"flow":f=!0;break;default:f=null}return{anchors:new Set,doc:_,flowCollectionPadding:$.flowCollectionPadding?" ":"",indent:"",indentStep:typeof $.indent==="number"?" ".repeat($.indent):" ",inFlow:f,options:$}}function sh(_,q){if(q.tag){let K=_.filter((P)=>P.tag===q.tag);if(K.length>0)return K.find((P)=>P.format===q.format)??K[0]}let $=void 0,f;if(W_.isScalar(q)){f=q.value;let K=_.filter((P)=>P.identify?.(f));if(K.length>1){let P=K.filter((u)=>u.test);if(P.length>0)K=P}$=K.find((P)=>P.format===q.format)??K.find((P)=>!P.format)}else f=q,$=_.find((K)=>K.nodeClass&&f instanceof K.nodeClass);if(!$){let K=f?.constructor?.name??(f===null?"null":typeof f);throw new Error(`Tag not resolved for ${K} value`)}return $}function Bh(_,q,{anchors:$,doc:f}){if(!f.directives)return"";let K=[],P=(W_.isScalar(_)||W_.isCollection(_))&&_.anchor;if(P&&ch.anchorIsValid(P))$.add(P),K.push(`&${P}`);let u=_.tag??(q.default?null:q.tag);if(u)K.push(f.directives.tagString(u));return K.join(" ")}function Fh(_,q,$,f){if(W_.isPair(_))return _.toString(q,$,f);if(W_.isAlias(_)){if(q.doc.directives)return _.toString(q);if(q.resolvedAliases?.has(_))throw new TypeError("Cannot stringify circular structure without alias nodes");else{if(q.resolvedAliases)q.resolvedAliases.add(_);else q.resolvedAliases=new Set([_]);_=_.resolve(q.doc)}}let K=void 0,P=W_.isNode(_)?_:q.doc.createNode(_,{onTagObj:(w)=>K=w});K??(K=sh(q.doc.schema.tags,P));let u=Bh(P,K,q);if(u.length>0)q.indentAtStart=(q.indentAtStart??0)+u.length+1;let j=typeof K.stringify==="function"?K.stringify(P,q,$,f):W_.isScalar(P)?eh.stringifyString(P,q,$,f):P.toString(q,$,f);if(!u)return j;return W_.isScalar(P)||j[0]==="{"||j[0]==="["?`${u} ${j}`:`${u}
|
|
104
|
+
${q.indent}${j}`}Uh.createStringifyContext=xh;Uh.stringify=Fh});var O5=X(($A)=>{var w_=y(),j5=u8(),w5=Zq(),hq=Wq();function qA({key:_,value:q},$,f,K){let{allNullValues:P,doc:u,indent:j,indentStep:w,options:{commentString:O,indentSeq:v,simpleKeys:Y}}=$,T=w_.isNode(_)&&_.comment||null;if(Y){if(T)throw new Error("With simple keys, key nodes cannot have comments");if(w_.isCollection(_)||!w_.isNode(_)&&typeof _==="object")throw new Error("With simple keys, collection cannot be used as a key value")}let z=!Y&&(!_||T&&q==null&&!$.inFlow||w_.isCollection(_)||(w_.isScalar(_)?_.type===j5.Scalar.BLOCK_FOLDED||_.type===j5.Scalar.BLOCK_LITERAL:typeof _==="object"));$=Object.assign({},$,{allNullValues:!1,implicitKey:!z&&(Y||!P),indent:j+w});let W=!1,H=!1,k=w5.stringify(_,$,()=>W=!0,()=>H=!0);if(!z&&!$.inFlow&&k.length>1024){if(Y)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");z=!0}if($.inFlow){if(P||q==null){if(W&&f)f();return k===""?"?":z?`? ${k}`:k}}else if(P&&!Y||q==null&&z){if(k=`? ${k}`,T&&!W)k+=hq.lineComment(k,$.indent,O(T));else if(H&&K)K();return k}if(W)T=null;if(z){if(T)k+=hq.lineComment(k,$.indent,O(T));k=`? ${k}
|
|
105
|
+
${j}:`}else if(k=`${k}:`,T)k+=hq.lineComment(k,$.indent,O(T));let A,p,V;if(w_.isNode(q))A=!!q.spaceBefore,p=q.commentBefore,V=q.comment;else if(A=!1,p=null,V=null,q&&typeof q==="object")q=u.createNode(q);if($.implicitKey=!1,!z&&!T&&w_.isScalar(q))$.indentAtStart=k.length+1;if(H=!1,!v&&w.length>=2&&!$.inFlow&&!z&&w_.isSeq(q)&&!q.flow&&!q.tag&&!q.anchor)$.indent=$.indent.substring(2);let N=!1,n=w5.stringify(q,$,()=>N=!0,()=>H=!0),S=" ";if(T||A||p){if(S=A?`
|
|
106
106
|
`:"",p){let Z=O(p);S+=`
|
|
107
107
|
${hq.indentComment(Z,$.indent)}`}if(n===""&&!$.inFlow){if(S===`
|
|
108
108
|
`)S=`
|
|
@@ -111,34 +111,34 @@ ${hq.indentComment(Z,$.indent)}`}if(n===""&&!$.inFlow){if(S===`
|
|
|
111
111
|
${$.indent}`}else if(!z&&w_.isCollection(q)){let Z=n[0],m=n.indexOf(`
|
|
112
112
|
`),D=m!==-1,b=$.inFlow??q.flow??q.items.length===0;if(D||!b){let h=!1;if(D&&(Z==="&"||Z==="!")){let J=n.indexOf(" ");if(Z==="&"&&J!==-1&&J<m&&n[J+1]==="!")J=n.indexOf(" ",J+1);if(J===-1||m<J)h=!0}if(!h)S=`
|
|
113
113
|
${$.indent}`}}else if(n===""||n[0]===`
|
|
114
|
-
`)S="";if(k+=S+n,$.inFlow){if(N&&f)f()}else if(V&&!N)k+=hq.lineComment(k,$.indent,O(V));else if(H&&K)K();return k}
|
|
114
|
+
`)S="";if(k+=S+n,$.inFlow){if(N&&f)f()}else if(V&&!N)k+=hq.lineComment(k,$.indent,O(V));else if(H&&K)K();return k}$A.stringifyPair=qA});var EK=X((uA)=>{var Y5=v8("process");function KA(_,...q){if(_==="debug")console.log(...q)}function PA(_,q){if(_==="debug"||_==="warn")if(typeof Y5.emitWarning==="function")Y5.emitWarning(q);else console.warn(q)}uA.debug=KA;uA.warn=PA});var a$=X((YA)=>{var Aq=y(),T5=u8(),R$="<<",I$={identify:(_)=>_===R$||typeof _==="symbol"&&_.description===R$,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new T5.Scalar(Symbol(R$)),{addToJSMap:v5}),stringify:()=>R$},OA=(_,q)=>(I$.identify(q)||Aq.isScalar(q)&&(!q.type||q.type===T5.Scalar.PLAIN)&&I$.identify(q.value))&&_?.doc.schema.tags.some(($)=>$.tag===I$.tag&&$.default);function v5(_,q,$){if($=_&&Aq.isAlias($)?$.resolve(_.doc):$,Aq.isSeq($))for(let f of $.items)RK(_,q,f);else if(Array.isArray($))for(let f of $)RK(_,q,f);else RK(_,q,$)}function RK(_,q,$){let f=_&&Aq.isAlias($)?$.resolve(_.doc):$;if(!Aq.isMap(f))throw new Error("Merge sources must be maps or map aliases");let K=f.toJSON(null,_,Map);for(let[P,u]of K)if(q instanceof Map){if(!q.has(P))q.set(P,u)}else if(q instanceof Set)q.add(P);else if(!Object.prototype.hasOwnProperty.call(q,P))Object.defineProperty(q,P,{value:u,writable:!0,enumerable:!0,configurable:!0});return q}YA.addMergeToJSMap=v5;YA.isMergeKey=OA;YA.merge=I$});var aK=X((ZA)=>{var HA=EK(),z5=a$(),WA=Zq(),H5=y(),IK=z_();function kA(_,q,{key:$,value:f}){if(H5.isNode($)&&$.addToJSMap)$.addToJSMap(_,q,f);else if(z5.isMergeKey(_,$))z5.addMergeToJSMap(_,q,f);else{let K=IK.toJS($,"",_);if(q instanceof Map)q.set(K,IK.toJS(f,K,_));else if(q instanceof Set)q.add(K);else{let P=JA($,K,_),u=IK.toJS(f,P,_);if(P in q)Object.defineProperty(q,P,{value:u,writable:!0,enumerable:!0,configurable:!0});else q[P]=u}}return q}function JA(_,q,$){if(q===null)return"";if(typeof q!=="object")return String(q);if(H5.isNode(_)&&$?.doc){let f=WA.createStringifyContext($.doc,{});f.anchors=new Set;for(let P of $.anchors.keys())f.anchors.add(P.anchor);f.inFlow=!0,f.inStringifyKey=!0;let K=_.toString(f);if(!$.mapKeyWarned){let P=JSON.stringify(K);if(P.length>40)P=P.substring(0,36)+'..."';HA.warn($.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${P}. Set mapAsMap: true to use object keys.`),$.mapKeyWarned=!0}return K}return JSON.stringify(q)}ZA.addPairToJSMap=kA});var k_=X((GA)=>{var W5=Hq(),AA=O5(),XA=aK(),o$=y();function mA(_,q,$){let f=W5.createNode(_,void 0,$),K=W5.createNode(q,void 0,$);return new i$(f,K)}class i${constructor(_,q=null){Object.defineProperty(this,o$.NODE_TYPE,{value:o$.PAIR}),this.key=_,this.value=q}clone(_){let{key:q,value:$}=this;if(o$.isNode(q))q=q.clone(_);if(o$.isNode($))$=$.clone(_);return new i$(q,$)}toJSON(_,q){let $=q?.mapAsMap?new Map:{};return XA.addPairToJSMap(q,$,this)}toString(_,q,$){return _?.doc?AA.stringifyPair(this,_,q,$):JSON.stringify(this)}}GA.Pair=i$;GA.createPair=mA});var oK=X((VA)=>{var o_=y(),k5=Zq(),g$=Wq();function rA(_,q,$){return(q.inFlow??_.flow?bA:pA)(_,q,$)}function pA({comment:_,items:q},$,{blockItemPrefix:f,flowChars:K,itemIndent:P,onChompKeep:u,onComment:j}){let{indent:w,options:{commentString:O}}=$,v=Object.assign({},$,{indent:P,type:null}),Y=!1,T=[];for(let W=0;W<q.length;++W){let H=q[W],k=null;if(o_.isNode(H)){if(!Y&&H.spaceBefore)T.push("");if(l$($,T,H.commentBefore,Y),H.comment)k=H.comment}else if(o_.isPair(H)){let p=o_.isNode(H.key)?H.key:null;if(p){if(!Y&&p.spaceBefore)T.push("");l$($,T,p.commentBefore,Y)}}Y=!1;let A=k5.stringify(H,v,()=>k=null,()=>Y=!0);if(k)A+=g$.lineComment(A,P,O(k));if(Y&&k)Y=!1;T.push(f+A)}let z;if(T.length===0)z=K.start+K.end;else{z=T[0];for(let W=1;W<T.length;++W){let H=T[W];z+=H?`
|
|
115
115
|
${w}${H}`:`
|
|
116
116
|
`}}if(_){if(z+=`
|
|
117
|
-
`+
|
|
117
|
+
`+g$.indentComment(O(_),w),j)j()}else if(Y&&u)u();return z}function bA({items:_},q,{flowChars:$,itemIndent:f}){let{indent:K,indentStep:P,flowCollectionPadding:u,options:{commentString:j}}=q;f+=P;let w=Object.assign({},q,{indent:f,inFlow:!0,type:null}),O=!1,v=0,Y=[];for(let W=0;W<_.length;++W){let H=_[W],k=null;if(o_.isNode(H)){if(H.spaceBefore)Y.push("");if(l$(q,Y,H.commentBefore,!1),H.comment)k=H.comment}else if(o_.isPair(H)){let p=o_.isNode(H.key)?H.key:null;if(p){if(p.spaceBefore)Y.push("");if(l$(q,Y,p.commentBefore,!1),p.comment)O=!0}let V=o_.isNode(H.value)?H.value:null;if(V){if(V.comment)k=V.comment;if(V.commentBefore)O=!0}else if(H.value==null&&p?.comment)k=p.comment}if(k)O=!0;let A=k5.stringify(H,w,()=>k=null);if(W<_.length-1)A+=",";if(k)A+=g$.lineComment(A,f,j(k));if(!O&&(Y.length>v||A.includes(`
|
|
118
118
|
`)))O=!0;Y.push(A),v=Y.length}let{start:T,end:z}=$;if(Y.length===0)return T+z;else{if(!O){let W=Y.reduce((H,k)=>H+k.length+2,2);O=q.options.lineWidth>0&&W>q.options.lineWidth}if(O){let W=T;for(let H of Y)W+=H?`
|
|
119
119
|
${P}${K}${H}`:`
|
|
120
120
|
`;return`${W}
|
|
121
|
-
${K}${z}`}else return`${T}${u}${Y.join(" ")}${u}${z}`}}function
|
|
122
|
-
`:" ")}return
|
|
121
|
+
${K}${z}`}else return`${T}${u}${Y.join(" ")}${u}${z}`}}function l$({indent:_,options:{commentString:q}},$,f,K){if(f&&K)f=f.replace(/^\n+/,"");if(f){let P=g$.indentComment(q(f),_);$.push(P.trimStart())}}VA.stringifyCollection=rA});var Z_=X((EA)=>{var NA=oK(),nA=aK(),SA=n$(),J_=y(),y$=k_(),dA=u8();function Xq(_,q){let $=J_.isScalar(q)?q.value:q;for(let f of _)if(J_.isPair(f)){if(f.key===q||f.key===$)return f;if(J_.isScalar(f.key)&&f.key.value===$)return f}return}class J5 extends SA.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(_){super(J_.MAP,_);this.items=[]}static from(_,q,$){let{keepUndefined:f,replacer:K}=$,P=new this(_),u=(j,w)=>{if(typeof K==="function")w=K.call(q,j,w);else if(Array.isArray(K)&&!K.includes(j))return;if(w!==void 0||f)P.items.push(y$.createPair(j,w,$))};if(q instanceof Map)for(let[j,w]of q)u(j,w);else if(q&&typeof q==="object")for(let j of Object.keys(q))u(j,q[j]);if(typeof _.sortMapEntries==="function")P.items.sort(_.sortMapEntries);return P}add(_,q){let $;if(J_.isPair(_))$=_;else if(!_||typeof _!=="object"||!("key"in _))$=new y$.Pair(_,_?.value);else $=new y$.Pair(_.key,_.value);let f=Xq(this.items,$.key),K=this.schema?.sortMapEntries;if(f){if(!q)throw new Error(`Key ${$.key} already set`);if(J_.isScalar(f.value)&&dA.isScalarValue($.value))f.value.value=$.value;else f.value=$.value}else if(K){let P=this.items.findIndex((u)=>K($,u)<0);if(P===-1)this.items.push($);else this.items.splice(P,0,$)}else this.items.push($)}delete(_){let q=Xq(this.items,_);if(!q)return!1;return this.items.splice(this.items.indexOf(q),1).length>0}get(_,q){let f=Xq(this.items,_)?.value;return(!q&&J_.isScalar(f)?f.value:f)??void 0}has(_){return!!Xq(this.items,_)}set(_,q){this.add(new y$.Pair(_,q),!0)}toJSON(_,q,$){let f=$?new $:q?.mapAsMap?new Map:{};if(q?.onCreate)q.onCreate(f);for(let K of this.items)nA.addPairToJSMap(q,f,K);return f}toString(_,q,$){if(!_)return JSON.stringify(this);for(let f of this.items)if(!J_.isPair(f))throw new Error(`Map items must all be pairs; found ${JSON.stringify(f)} instead`);if(!_.allNullValues&&this.hasAllNullValues(!1))_=Object.assign({},_,{allNullValues:!0});return NA.stringifyCollection(this,_,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:_.indent||"",onChompKeep:$,onComment:q})}}EA.YAMLMap=J5;EA.findPair=Xq});var A6=X((iA)=>{var aA=y(),Z5=Z_(),oA={collection:"map",default:!0,nodeClass:Z5.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(_,q){if(!aA.isMap(_))q("Expected a mapping for this tag");return _},createNode:(_,q,$)=>Z5.YAMLMap.from(_,q,$)};iA.map=oA});var h_=X((eA)=>{var lA=Hq(),yA=oK(),tA=n$(),c$=y(),cA=u8(),LA=z_();class h5 extends tA.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(_){super(c$.SEQ,_);this.items=[]}add(_){this.items.push(_)}delete(_){let q=t$(_);if(typeof q!=="number")return!1;return this.items.splice(q,1).length>0}get(_,q){let $=t$(_);if(typeof $!=="number")return;let f=this.items[$];return!q&&c$.isScalar(f)?f.value:f}has(_){let q=t$(_);return typeof q==="number"&&q<this.items.length}set(_,q){let $=t$(_);if(typeof $!=="number")throw new Error(`Expected a valid index, not ${_}.`);let f=this.items[$];if(c$.isScalar(f)&&cA.isScalarValue(q))f.value=q;else this.items[$]=q}toJSON(_,q){let $=[];if(q?.onCreate)q.onCreate($);let f=0;for(let K of this.items)$.push(LA.toJS(K,String(f++),q));return $}toString(_,q,$){if(!_)return JSON.stringify(this);return yA.stringifyCollection(this,_,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(_.indent||"")+" ",onChompKeep:$,onComment:q})}static from(_,q,$){let{replacer:f}=$,K=new this(_);if(q&&Symbol.iterator in Object(q)){let P=0;for(let u of q){if(typeof f==="function"){let j=q instanceof Set?u:String(P++);u=f.call(q,j,u)}K.items.push(lA.createNode(u,void 0,$))}}return K}}function t$(_){let q=c$.isScalar(_)?_.value:_;if(q&&typeof q==="string")q=Number(q);return typeof q==="number"&&Number.isInteger(q)&&q>=0?q:null}eA.YAMLSeq=h5});var X6=X((FA)=>{var sA=y(),A5=h_(),BA={collection:"seq",default:!0,nodeClass:A5.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(_,q){if(!sA.isSeq(_))q("Expected a sequence for this tag");return _},createNode:(_,q,$)=>A5.YAMLSeq.from(_,q,$)};FA.seq=BA});var mq=X((qX)=>{var QA=Jq(),_X={identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify(_,q,$,f){return q=Object.assign({actualString:!0},q),QA.stringifyString(_,q,$,f)}};qX.string=_X});var L$=X((fX)=>{var X5=u8(),m5={identify:(_)=>_==null,createNode:()=>new X5.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new X5.Scalar(null),stringify:({source:_},q)=>typeof _==="string"&&m5.test.test(_)?_:q.options.nullStr};fX.nullTag=m5});var iK=X((uX)=>{var PX=u8(),G5={identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(_)=>new PX.Scalar(_[0]==="t"||_[0]==="T"),stringify({source:_,value:q},$){if(_&&G5.test.test(_)){let f=_[0]==="t"||_[0]==="T";if(q===f)return _}return q?$.options.trueStr:$.options.falseStr}};uX.boolTag=G5});var m6=X((OX)=>{function wX({format:_,minFractionDigits:q,tag:$,value:f}){if(typeof f==="bigint")return String(f);let K=typeof f==="number"?f:Number(f);if(!isFinite(K))return isNaN(K)?".nan":K<0?"-.inf":".inf";let P=JSON.stringify(f);if(!_&&q&&(!$||$==="tag:yaml.org,2002:float")&&/^\d/.test(P)){let u=P.indexOf(".");if(u<0)u=P.length,P+=".";let j=q-(P.length-u-1);while(j-- >0)P+="0"}return P}OX.stringifyNumber=wX});var lK=X((WX)=>{var TX=u8(),gK=m6(),vX={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gK.stringifyNumber},zX={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():gK.stringifyNumber(_)}},HX={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(_){let q=new TX.Scalar(parseFloat(_)),$=_.indexOf(".");if($!==-1&&_[_.length-1]==="0")q.minFractionDigits=_.length-$-1;return q},stringify:gK.stringifyNumber};WX.float=HX;WX.floatExp=zX;WX.floatNaN=vX});var tK=X((mX)=>{var D5=m6(),e$=(_)=>typeof _==="bigint"||Number.isInteger(_),yK=(_,q,$,{intAsBigInt:f})=>f?BigInt(_):parseInt(_.substring(q),$);function C5(_,q,$){let{value:f}=_;if(e$(f)&&f>=0)return $+f.toString(q);return D5.stringifyNumber(_)}var hX={identify:(_)=>e$(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(_,q,$)=>yK(_,2,8,$),stringify:(_)=>C5(_,8,"0o")},AX={identify:e$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(_,q,$)=>yK(_,0,10,$),stringify:D5.stringifyNumber},XX={identify:(_)=>e$(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(_,q,$)=>yK(_,2,16,$),stringify:(_)=>C5(_,16,"0x")};mX.int=AX;mX.intHex=XX;mX.intOct=hX});var r5=X((nX)=>{var rX=A6(),pX=L$(),bX=X6(),VX=mq(),MX=iK(),cK=lK(),LK=tK(),NX=[rX.map,bX.seq,VX.string,pX.nullTag,MX.boolTag,LK.intOct,LK.int,LK.intHex,cK.floatNaN,cK.floatExp,cK.float];nX.schema=NX});var b5=X((iX)=>{var dX=u8(),EX=A6(),RX=X6();function p5(_){return typeof _==="bigint"||Number.isInteger(_)}var x$=({value:_})=>JSON.stringify(_),IX=[{identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify:x$},{identify:(_)=>_==null,createNode:()=>new dX.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:x$},{identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(_)=>_==="true",stringify:x$},{identify:p5,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(_,q,{intAsBigInt:$})=>$?BigInt(_):parseInt(_,10),stringify:({value:_})=>p5(_)?_.toString():JSON.stringify(_)},{identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(_)=>parseFloat(_),stringify:x$}],aX={default:!0,tag:"",test:/^/,resolve(_,q){return q(`Unresolved plain scalar ${JSON.stringify(_)}`),_}},oX=[EX.map,RX.seq].concat(IX,aX);iX.schema=oX});var xK=X((tX)=>{var Gq=v8("buffer"),eK=u8(),lX=Jq(),yX={identify:(_)=>_ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(_,q){if(typeof Gq.Buffer==="function")return Gq.Buffer.from(_,"base64");else if(typeof atob==="function"){let $=atob(_.replace(/[\n\r]/g,"")),f=new Uint8Array($.length);for(let K=0;K<$.length;++K)f[K]=$.charCodeAt(K);return f}else return q("This environment does not support reading binary tags; either Buffer or atob is required"),_},stringify({comment:_,type:q,value:$},f,K,P){if(!$)return"";let u=$,j;if(typeof Gq.Buffer==="function")j=u instanceof Gq.Buffer?u.toString("base64"):Gq.Buffer.from(u.buffer).toString("base64");else if(typeof btoa==="function"){let w="";for(let O=0;O<u.length;++O)w+=String.fromCharCode(u[O]);j=btoa(w)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(q??(q=eK.Scalar.BLOCK_LITERAL),q!==eK.Scalar.QUOTE_DOUBLE){let w=Math.max(f.options.lineWidth-f.indent.length,f.options.minContentWidth),O=Math.ceil(j.length/w),v=new Array(O);for(let Y=0,T=0;Y<O;++Y,T+=w)v[Y]=j.substr(T,w);j=v.join(q===eK.Scalar.BLOCK_LITERAL?`
|
|
122
|
+
`:" ")}return lX.stringifyString({comment:_,type:q,value:j},f,K,P)}};tX.binary=yX});var B$=X((sX)=>{var s$=y(),sK=k_(),LX=u8(),eX=h_();function V5(_,q){if(s$.isSeq(_))for(let $=0;$<_.items.length;++$){let f=_.items[$];if(s$.isPair(f))continue;else if(s$.isMap(f)){if(f.items.length>1)q("Each pair must have its own sequence indicator");let K=f.items[0]||new sK.Pair(new LX.Scalar(null));if(f.commentBefore)K.key.commentBefore=K.key.commentBefore?`${f.commentBefore}
|
|
123
123
|
${K.key.commentBefore}`:f.commentBefore;if(f.comment){let P=K.value??K.key;P.comment=P.comment?`${f.comment}
|
|
124
|
-
${P.comment}`:f.comment}f=K}_.items[$]=U$.isPair(f)?f:new UK.Pair(f)}else q("Expected a sequence for this tag");return _}function d5(_,q,$){let{replacer:f}=$,K=new sX.YAMLSeq(_);K.tag="tag:yaml.org,2002:pairs";let P=0;if(q&&Symbol.iterator in Object(q))for(let u of q){if(typeof f==="function")u=f.call(q,String(P++),u);let j,w;if(Array.isArray(u))if(u.length===2)j=u[0],w=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){let O=Object.keys(u);if(O.length===1)j=O[0],w=u[j];else throw new TypeError(`Expected tuple with one key, not ${O.length} keys`)}else j=u;K.items.push(UK.createPair(j,w,$))}return K}var BX={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:S5,createNode:d5};FX.createPairs=d5;FX.pairs=BX;FX.resolvePairs=S5});var _P=X((fm)=>{var E5=y(),QK=z_(),Dq=Z_(),qm=h_(),R5=Q$();class i_ extends qm.YAMLSeq{constructor(){super();this.add=Dq.YAMLMap.prototype.add.bind(this),this.delete=Dq.YAMLMap.prototype.delete.bind(this),this.get=Dq.YAMLMap.prototype.get.bind(this),this.has=Dq.YAMLMap.prototype.has.bind(this),this.set=Dq.YAMLMap.prototype.set.bind(this),this.tag=i_.tag}toJSON(_,q){if(!q)return super.toJSON(_);let $=new Map;if(q?.onCreate)q.onCreate($);for(let f of this.items){let K,P;if(E5.isPair(f))K=QK.toJS(f.key,"",q),P=QK.toJS(f.value,K,q);else K=QK.toJS(f,"",q);if($.has(K))throw new Error("Ordered maps must not include duplicate keys");$.set(K,P)}return $}static from(_,q,$){let f=R5.createPairs(_,q,$),K=new this;return K.items=f.items,K}}i_.tag="tag:yaml.org,2002:omap";var $m={collection:"seq",identify:(_)=>_ instanceof Map,nodeClass:i_,default:!1,tag:"tag:yaml.org,2002:omap",resolve(_,q){let $=R5.resolvePairs(_,q),f=[];for(let{key:K}of $.items)if(E5.isScalar(K))if(f.includes(K.value))q(`Ordered maps must not include duplicate keys: ${K.value}`);else f.push(K.value);return Object.assign(new i_,$)},createNode:(_,q,$)=>i_.from(_,q,$)};fm.YAMLOMap=i_;fm.omap=$m});var g5=X((um)=>{var I5=u8();function a5({value:_,source:q},$){if(q&&(_?o5:i5).test.test(q))return q;return _?$.options.trueStr:$.options.falseStr}var o5={identify:(_)=>_===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new I5.Scalar(!0),stringify:a5},i5={identify:(_)=>_===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new I5.Scalar(!1),stringify:a5};um.falseTag=i5;um.trueTag=o5});var l5=X((zm)=>{var Om=u8(),qP=m6(),Ym={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:qP.stringifyNumber},Tm={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_.replace(/_/g,"")),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():qP.stringifyNumber(_)}},vm={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(_){let q=new Om.Scalar(parseFloat(_.replace(/_/g,""))),$=_.indexOf(".");if($!==-1){let f=_.substring($+1).replace(/_/g,"");if(f[f.length-1]==="0")q.minFractionDigits=f.length}return q},stringify:qP.stringifyNumber};zm.float=vm;zm.floatExp=Tm;zm.floatNaN=Ym});var t5=X((Xm)=>{var y5=m6(),Cq=(_)=>typeof _==="bigint"||Number.isInteger(_);function _f(_,q,$,{intAsBigInt:f}){let K=_[0];if(K==="-"||K==="+")q+=1;if(_=_.substring(q).replace(/_/g,""),f){switch($){case 2:_=`0b${_}`;break;case 8:_=`0o${_}`;break;case 16:_=`0x${_}`;break}let u=BigInt(_);return K==="-"?BigInt(-1)*u:u}let P=parseInt(_,$);return K==="-"?-1*P:P}function $P(_,q,$){let{value:f}=_;if(Cq(f)){let K=f.toString(q);return f<0?"-"+$+K.substr(1):$+K}return y5.stringifyNumber(_)}var Jm={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(_,q,$)=>_f(_,2,2,$),stringify:(_)=>$P(_,2,"0b")},Zm={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(_,q,$)=>_f(_,1,8,$),stringify:(_)=>$P(_,8,"0")},hm={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(_,q,$)=>_f(_,0,10,$),stringify:y5.stringifyNumber},Am={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(_,q,$)=>_f(_,2,16,$),stringify:(_)=>$P(_,16,"0x")};Xm.int=hm;Xm.intBin=Jm;Xm.intHex=Am;Xm.intOct=Zm});var fP=X((pm)=>{var ff=y(),qf=k_(),$f=Z_();class g_ extends $f.YAMLMap{constructor(_){super(_);this.tag=g_.tag}add(_){let q;if(ff.isPair(_))q=_;else if(_&&typeof _==="object"&&"key"in _&&"value"in _&&_.value===null)q=new qf.Pair(_.key,null);else q=new qf.Pair(_,null);if(!$f.findPair(this.items,q.key))this.items.push(q)}get(_,q){let $=$f.findPair(this.items,_);return!q&&ff.isPair($)?ff.isScalar($.key)?$.key.value:$.key:$}set(_,q){if(typeof q!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let $=$f.findPair(this.items,_);if($&&!q)this.items.splice(this.items.indexOf($),1);else if(!$&&q)this.items.push(new qf.Pair(_))}toJSON(_,q){return super.toJSON(_,q,Set)}toString(_,q,$){if(!_)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},_,{allNullValues:!0}),q,$);else throw new Error("Set items must all have null values")}static from(_,q,$){let{replacer:f}=$,K=new this(_);if(q&&Symbol.iterator in Object(q))for(let P of q){if(typeof f==="function")P=f.call(q,P,P);K.items.push(qf.createPair(P,null,$))}return K}}g_.tag="tag:yaml.org,2002:set";var rm={collection:"map",identify:(_)=>_ instanceof Set,nodeClass:g_,default:!1,tag:"tag:yaml.org,2002:set",createNode:(_,q,$)=>g_.from(_,q,$),resolve(_,q){if(ff.isMap(_))if(_.hasAllNullValues(!0))return Object.assign(new g_,_);else q("Set items must all have null values");else q("Expected a mapping for this tag");return _}};pm.YAMLSet=g_;pm.set=rm});var PP=X((Sm)=>{var Mm=m6();function KP(_,q){let $=_[0],f=$==="-"||$==="+"?_.substring(1):_,K=(u)=>q?BigInt(u):Number(u),P=f.replace(/_/g,"").split(":").reduce((u,j)=>u*K(60)+K(j),K(0));return $==="-"?K(-1)*P:P}function c5(_){let{value:q}=_,$=(u)=>u;if(typeof q==="bigint")$=(u)=>BigInt(u);else if(isNaN(q)||!isFinite(q))return Mm.stringifyNumber(_);let f="";if(q<0)f="-",q*=$(-1);let K=$(60),P=[q%K];if(q<60)P.unshift(0);else if(q=(q-P[0])/K,P.unshift(q%K),q>=60)q=(q-P[0])/K,P.unshift(q);return f+P.map((u)=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Nm={identify:(_)=>typeof _==="bigint"||Number.isInteger(_),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(_,q,{intAsBigInt:$})=>KP(_,$),stringify:c5},nm={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(_)=>KP(_,!1),stringify:c5},L5={identify:(_)=>_ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(_){let q=_.match(L5.test);if(!q)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,$,f,K,P,u,j]=q.map(Number),w=q[7]?Number((q[7]+"00").substr(1,3)):0,O=Date.UTC($,f-1,K,P||0,u||0,j||0,w),v=q[8];if(v&&v!=="Z"){let Y=KP(v,!1);if(Math.abs(Y)<30)Y*=60;O-=60000*Y}return new Date(O)},stringify:({value:_})=>_?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Sm.floatTime=nm;Sm.intTime=Nm;Sm.timestamp=L5});var x5=X((em)=>{var Im=A6(),am=s$(),om=X6(),im=mq(),gm=FK(),e5=g5(),uP=l5(),Kf=t5(),lm=g$(),ym=_P(),tm=Q$(),cm=fP(),jP=PP(),Lm=[Im.map,om.seq,im.string,am.nullTag,e5.trueTag,e5.falseTag,Kf.intBin,Kf.intOct,Kf.int,Kf.intHex,uP.floatNaN,uP.floatExp,uP.float,gm.binary,lm.merge,ym.omap,tm.pairs,cm.set,jP.intTime,jP.floatTime,jP.timestamp];em.schema=Lm});var K1=X(($G)=>{var U5=A6(),sm=s$(),Q5=X6(),Bm=mq(),Fm=yK(),wP=cK(),OP=eK(),Um=M5(),Qm=n5(),_1=FK(),rq=g$(),q1=_P(),$1=Q$(),s5=x5(),f1=fP(),Pf=PP(),B5=new Map([["core",Um.schema],["failsafe",[U5.map,Q5.seq,Bm.string]],["json",Qm.schema],["yaml11",s5.schema],["yaml-1.1",s5.schema]]),F5={binary:_1.binary,bool:Fm.boolTag,float:wP.float,floatExp:wP.floatExp,floatNaN:wP.floatNaN,floatTime:Pf.floatTime,int:OP.int,intHex:OP.intHex,intOct:OP.intOct,intTime:Pf.intTime,map:U5.map,merge:rq.merge,null:sm.nullTag,omap:q1.omap,pairs:$1.pairs,seq:Q5.seq,set:f1.set,timestamp:Pf.timestamp},_G={"tag:yaml.org,2002:binary":_1.binary,"tag:yaml.org,2002:merge":rq.merge,"tag:yaml.org,2002:omap":q1.omap,"tag:yaml.org,2002:pairs":$1.pairs,"tag:yaml.org,2002:set":f1.set,"tag:yaml.org,2002:timestamp":Pf.timestamp};function qG(_,q,$){let f=B5.get(q);if(f&&!_)return $&&!f.includes(rq.merge)?f.concat(rq.merge):f.slice();let K=f;if(!K)if(Array.isArray(_))K=[];else{let P=Array.from(B5.keys()).filter((u)=>u!=="yaml11").map((u)=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${q}"; use one of ${P} or define customTags array`)}if(Array.isArray(_))for(let P of _)K=K.concat(P);else if(typeof _==="function")K=_(K.slice());if($)K=K.concat(rq.merge);return K.reduce((P,u)=>{let j=typeof u==="string"?F5[u]:u;if(!j){let w=JSON.stringify(u),O=Object.keys(F5).map((v)=>JSON.stringify(v)).join(", ");throw new Error(`Unknown custom tag ${w}; use one of ${O}`)}if(!P.includes(j))P.push(j);return P},[])}$G.coreKnownTags=_G;$G.getTags=qG});var vP=X((OG)=>{var YP=y(),PG=A6(),uG=X6(),jG=mq(),uf=K1(),wG=(_,q)=>_.key<q.key?-1:_.key>q.key?1:0;class TP{constructor({compat:_,customTags:q,merge:$,resolveKnownTags:f,schema:K,sortMapEntries:P,toStringDefaults:u}){this.compat=Array.isArray(_)?uf.getTags(_,"compat"):_?uf.getTags(null,_):null,this.name=typeof K==="string"&&K||"core",this.knownTags=f?uf.coreKnownTags:{},this.tags=uf.getTags(q,this.name,$),this.toStringOptions=u??null,Object.defineProperty(this,YP.MAP,{value:PG.map}),Object.defineProperty(this,YP.SCALAR,{value:jG.string}),Object.defineProperty(this,YP.SEQ,{value:uG.seq}),this.sortMapEntries=typeof P==="function"?P:P===!0?wG:null}clone(){let _=Object.create(TP.prototype,Object.getOwnPropertyDescriptors(this));return _.tags=this.tags.slice(),_}}OG.Schema=TP});var P1=X((zG)=>{var TG=y(),zP=Zq(),pq=Wq();function vG(_,q){let $=[],f=q.directives===!0;if(q.directives!==!1&&_.directives){let w=_.directives.toString(_);if(w)$.push(w),f=!0;else if(_.directives.docStart)f=!0}if(f)$.push("---");let K=zP.createStringifyContext(_,q),{commentString:P}=K.options;if(_.commentBefore){if($.length!==1)$.unshift("");let w=P(_.commentBefore);$.unshift(pq.indentComment(w,""))}let u=!1,j=null;if(_.contents){if(TG.isNode(_.contents)){if(_.contents.spaceBefore&&f)$.push("");if(_.contents.commentBefore){let v=P(_.contents.commentBefore);$.push(pq.indentComment(v,""))}K.forceBlockIndent=!!_.comment,j=_.contents.comment}let w=j?void 0:()=>u=!0,O=zP.stringify(_.contents,K,()=>j=null,w);if(j)O+=pq.lineComment(O,"",P(j));if((O[0]==="|"||O[0]===">")&&$[$.length-1]==="---")$[$.length-1]=`--- ${O}`;else $.push(O)}else $.push(zP.stringify(_.contents,K));if(_.directives?.docEnd)if(_.comment){let w=P(_.comment);if(w.includes(`
|
|
124
|
+
${P.comment}`:f.comment}f=K}_.items[$]=s$.isPair(f)?f:new sK.Pair(f)}else q("Expected a sequence for this tag");return _}function M5(_,q,$){let{replacer:f}=$,K=new eX.YAMLSeq(_);K.tag="tag:yaml.org,2002:pairs";let P=0;if(q&&Symbol.iterator in Object(q))for(let u of q){if(typeof f==="function")u=f.call(q,String(P++),u);let j,w;if(Array.isArray(u))if(u.length===2)j=u[0],w=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){let O=Object.keys(u);if(O.length===1)j=O[0],w=u[j];else throw new TypeError(`Expected tuple with one key, not ${O.length} keys`)}else j=u;K.items.push(sK.createPair(j,w,$))}return K}var xX={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:V5,createNode:M5};sX.createPairs=M5;sX.pairs=xX;sX.resolvePairs=V5});var FK=X((qm)=>{var N5=y(),BK=z_(),Dq=Z_(),QX=h_(),n5=B$();class i_ extends QX.YAMLSeq{constructor(){super();this.add=Dq.YAMLMap.prototype.add.bind(this),this.delete=Dq.YAMLMap.prototype.delete.bind(this),this.get=Dq.YAMLMap.prototype.get.bind(this),this.has=Dq.YAMLMap.prototype.has.bind(this),this.set=Dq.YAMLMap.prototype.set.bind(this),this.tag=i_.tag}toJSON(_,q){if(!q)return super.toJSON(_);let $=new Map;if(q?.onCreate)q.onCreate($);for(let f of this.items){let K,P;if(N5.isPair(f))K=BK.toJS(f.key,"",q),P=BK.toJS(f.value,K,q);else K=BK.toJS(f,"",q);if($.has(K))throw new Error("Ordered maps must not include duplicate keys");$.set(K,P)}return $}static from(_,q,$){let f=n5.createPairs(_,q,$),K=new this;return K.items=f.items,K}}i_.tag="tag:yaml.org,2002:omap";var _m={collection:"seq",identify:(_)=>_ instanceof Map,nodeClass:i_,default:!1,tag:"tag:yaml.org,2002:omap",resolve(_,q){let $=n5.resolvePairs(_,q),f=[];for(let{key:K}of $.items)if(N5.isScalar(K))if(f.includes(K.value))q(`Ordered maps must not include duplicate keys: ${K.value}`);else f.push(K.value);return Object.assign(new i_,$)},createNode:(_,q,$)=>i_.from(_,q,$)};qm.YAMLOMap=i_;qm.omap=_m});var I5=X((Km)=>{var S5=u8();function d5({value:_,source:q},$){if(q&&(_?E5:R5).test.test(q))return q;return _?$.options.trueStr:$.options.falseStr}var E5={identify:(_)=>_===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new S5.Scalar(!0),stringify:d5},R5={identify:(_)=>_===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new S5.Scalar(!1),stringify:d5};Km.falseTag=R5;Km.trueTag=E5});var a5=X((Tm)=>{var jm=u8(),UK=m6(),wm={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:UK.stringifyNumber},Om={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_.replace(/_/g,"")),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():UK.stringifyNumber(_)}},Ym={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(_){let q=new jm.Scalar(parseFloat(_.replace(/_/g,""))),$=_.indexOf(".");if($!==-1){let f=_.substring($+1).replace(/_/g,"");if(f[f.length-1]==="0")q.minFractionDigits=f.length}return q},stringify:UK.stringifyNumber};Tm.float=Ym;Tm.floatExp=Om;Tm.floatNaN=wm});var i5=X((hm)=>{var o5=m6(),Cq=(_)=>typeof _==="bigint"||Number.isInteger(_);function F$(_,q,$,{intAsBigInt:f}){let K=_[0];if(K==="-"||K==="+")q+=1;if(_=_.substring(q).replace(/_/g,""),f){switch($){case 2:_=`0b${_}`;break;case 8:_=`0o${_}`;break;case 16:_=`0x${_}`;break}let u=BigInt(_);return K==="-"?BigInt(-1)*u:u}let P=parseInt(_,$);return K==="-"?-1*P:P}function QK(_,q,$){let{value:f}=_;if(Cq(f)){let K=f.toString(q);return f<0?"-"+$+K.substr(1):$+K}return o5.stringifyNumber(_)}var Wm={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(_,q,$)=>F$(_,2,2,$),stringify:(_)=>QK(_,2,"0b")},km={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(_,q,$)=>F$(_,1,8,$),stringify:(_)=>QK(_,8,"0")},Jm={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(_,q,$)=>F$(_,0,10,$),stringify:o5.stringifyNumber},Zm={identify:Cq,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(_,q,$)=>F$(_,2,16,$),stringify:(_)=>QK(_,16,"0x")};hm.int=Jm;hm.intBin=Wm;hm.intHex=Zm;hm.intOct=km});var _P=X((Cm)=>{var _f=y(),U$=k_(),Q$=Z_();class g_ extends Q$.YAMLMap{constructor(_){super(_);this.tag=g_.tag}add(_){let q;if(_f.isPair(_))q=_;else if(_&&typeof _==="object"&&"key"in _&&"value"in _&&_.value===null)q=new U$.Pair(_.key,null);else q=new U$.Pair(_,null);if(!Q$.findPair(this.items,q.key))this.items.push(q)}get(_,q){let $=Q$.findPair(this.items,_);return!q&&_f.isPair($)?_f.isScalar($.key)?$.key.value:$.key:$}set(_,q){if(typeof q!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let $=Q$.findPair(this.items,_);if($&&!q)this.items.splice(this.items.indexOf($),1);else if(!$&&q)this.items.push(new U$.Pair(_))}toJSON(_,q){return super.toJSON(_,q,Set)}toString(_,q,$){if(!_)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},_,{allNullValues:!0}),q,$);else throw new Error("Set items must all have null values")}static from(_,q,$){let{replacer:f}=$,K=new this(_);if(q&&Symbol.iterator in Object(q))for(let P of q){if(typeof f==="function")P=f.call(q,P,P);K.items.push(U$.createPair(P,null,$))}return K}}g_.tag="tag:yaml.org,2002:set";var Dm={collection:"map",identify:(_)=>_ instanceof Set,nodeClass:g_,default:!1,tag:"tag:yaml.org,2002:set",createNode:(_,q,$)=>g_.from(_,q,$),resolve(_,q){if(_f.isMap(_))if(_.hasAllNullValues(!0))return Object.assign(new g_,_);else q("Set items must all have null values");else q("Expected a mapping for this tag");return _}};Cm.YAMLSet=g_;Cm.set=Dm});var $P=X((Nm)=>{var bm=m6();function qP(_,q){let $=_[0],f=$==="-"||$==="+"?_.substring(1):_,K=(u)=>q?BigInt(u):Number(u),P=f.replace(/_/g,"").split(":").reduce((u,j)=>u*K(60)+K(j),K(0));return $==="-"?K(-1)*P:P}function g5(_){let{value:q}=_,$=(u)=>u;if(typeof q==="bigint")$=(u)=>BigInt(u);else if(isNaN(q)||!isFinite(q))return bm.stringifyNumber(_);let f="";if(q<0)f="-",q*=$(-1);let K=$(60),P=[q%K];if(q<60)P.unshift(0);else if(q=(q-P[0])/K,P.unshift(q%K),q>=60)q=(q-P[0])/K,P.unshift(q);return f+P.map((u)=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Vm={identify:(_)=>typeof _==="bigint"||Number.isInteger(_),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(_,q,{intAsBigInt:$})=>qP(_,$),stringify:g5},Mm={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(_)=>qP(_,!1),stringify:g5},l5={identify:(_)=>_ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(_){let q=_.match(l5.test);if(!q)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,$,f,K,P,u,j]=q.map(Number),w=q[7]?Number((q[7]+"00").substr(1,3)):0,O=Date.UTC($,f-1,K,P||0,u||0,j||0,w),v=q[8];if(v&&v!=="Z"){let Y=qP(v,!1);if(Math.abs(Y)<30)Y*=60;O-=60000*Y}return new Date(O)},stringify:({value:_})=>_?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Nm.floatTime=Mm;Nm.intTime=Vm;Nm.timestamp=l5});var t5=X((cm)=>{var Em=A6(),Rm=L$(),Im=X6(),am=mq(),om=xK(),y5=I5(),fP=a5(),qf=i5(),im=a$(),gm=FK(),lm=B$(),ym=_P(),KP=$P(),tm=[Em.map,Im.seq,am.string,Rm.nullTag,y5.trueTag,y5.falseTag,qf.intBin,qf.intOct,qf.int,qf.intHex,fP.floatNaN,fP.floatExp,fP.float,om.binary,im.merge,gm.omap,lm.pairs,ym.set,KP.intTime,KP.floatTime,KP.timestamp];cm.schema=tm});var _1=X((_G)=>{var x5=A6(),em=L$(),s5=X6(),xm=mq(),sm=iK(),PP=lK(),uP=tK(),Bm=r5(),Fm=b5(),B5=xK(),rq=a$(),F5=FK(),U5=B$(),c5=t5(),Q5=_P(),$f=$P(),L5=new Map([["core",Bm.schema],["failsafe",[x5.map,s5.seq,xm.string]],["json",Fm.schema],["yaml11",c5.schema],["yaml-1.1",c5.schema]]),e5={binary:B5.binary,bool:sm.boolTag,float:PP.float,floatExp:PP.floatExp,floatNaN:PP.floatNaN,floatTime:$f.floatTime,int:uP.int,intHex:uP.intHex,intOct:uP.intOct,intTime:$f.intTime,map:x5.map,merge:rq.merge,null:em.nullTag,omap:F5.omap,pairs:U5.pairs,seq:s5.seq,set:Q5.set,timestamp:$f.timestamp},Um={"tag:yaml.org,2002:binary":B5.binary,"tag:yaml.org,2002:merge":rq.merge,"tag:yaml.org,2002:omap":F5.omap,"tag:yaml.org,2002:pairs":U5.pairs,"tag:yaml.org,2002:set":Q5.set,"tag:yaml.org,2002:timestamp":$f.timestamp};function Qm(_,q,$){let f=L5.get(q);if(f&&!_)return $&&!f.includes(rq.merge)?f.concat(rq.merge):f.slice();let K=f;if(!K)if(Array.isArray(_))K=[];else{let P=Array.from(L5.keys()).filter((u)=>u!=="yaml11").map((u)=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${q}"; use one of ${P} or define customTags array`)}if(Array.isArray(_))for(let P of _)K=K.concat(P);else if(typeof _==="function")K=_(K.slice());if($)K=K.concat(rq.merge);return K.reduce((P,u)=>{let j=typeof u==="string"?e5[u]:u;if(!j){let w=JSON.stringify(u),O=Object.keys(e5).map((v)=>JSON.stringify(v)).join(", ");throw new Error(`Unknown custom tag ${w}; use one of ${O}`)}if(!P.includes(j))P.push(j);return P},[])}_G.coreKnownTags=Um;_G.getTags=Qm});var OP=X((jG)=>{var jP=y(),fG=A6(),KG=X6(),PG=mq(),ff=_1(),uG=(_,q)=>_.key<q.key?-1:_.key>q.key?1:0;class wP{constructor({compat:_,customTags:q,merge:$,resolveKnownTags:f,schema:K,sortMapEntries:P,toStringDefaults:u}){this.compat=Array.isArray(_)?ff.getTags(_,"compat"):_?ff.getTags(null,_):null,this.name=typeof K==="string"&&K||"core",this.knownTags=f?ff.coreKnownTags:{},this.tags=ff.getTags(q,this.name,$),this.toStringOptions=u??null,Object.defineProperty(this,jP.MAP,{value:fG.map}),Object.defineProperty(this,jP.SCALAR,{value:PG.string}),Object.defineProperty(this,jP.SEQ,{value:KG.seq}),this.sortMapEntries=typeof P==="function"?P:P===!0?uG:null}clone(){let _=Object.create(wP.prototype,Object.getOwnPropertyDescriptors(this));return _.tags=this.tags.slice(),_}}jG.Schema=wP});var q1=X((TG)=>{var OG=y(),YP=Zq(),pq=Wq();function YG(_,q){let $=[],f=q.directives===!0;if(q.directives!==!1&&_.directives){let w=_.directives.toString(_);if(w)$.push(w),f=!0;else if(_.directives.docStart)f=!0}if(f)$.push("---");let K=YP.createStringifyContext(_,q),{commentString:P}=K.options;if(_.commentBefore){if($.length!==1)$.unshift("");let w=P(_.commentBefore);$.unshift(pq.indentComment(w,""))}let u=!1,j=null;if(_.contents){if(OG.isNode(_.contents)){if(_.contents.spaceBefore&&f)$.push("");if(_.contents.commentBefore){let v=P(_.contents.commentBefore);$.push(pq.indentComment(v,""))}K.forceBlockIndent=!!_.comment,j=_.contents.comment}let w=j?void 0:()=>u=!0,O=YP.stringify(_.contents,K,()=>j=null,w);if(j)O+=pq.lineComment(O,"",P(j));if((O[0]==="|"||O[0]===">")&&$[$.length-1]==="---")$[$.length-1]=`--- ${O}`;else $.push(O)}else $.push(YP.stringify(_.contents,K));if(_.directives?.docEnd)if(_.comment){let w=P(_.comment);if(w.includes(`
|
|
125
125
|
`))$.push("..."),$.push(pq.indentComment(w,""));else $.push(`... ${w}`)}else $.push("...");else{let w=_.comment;if(w&&u)w=w.replace(/^\n+/,"");if(w){if((!u||j)&&$[$.length-1]!=="")$.push("");$.push(pq.indentComment(P(w),""))}}return $.join(`
|
|
126
126
|
`)+`
|
|
127
|
-
`}
|
|
127
|
+
`}TG.stringifyDocument=YG});var bq=X((AG)=>{var zG=zq(),G6=n$(),b8=y(),HG=k_(),WG=z_(),kG=OP(),JG=q1(),TP=V$(),ZG=MK(),hG=Hq(),vP=VK();class zP{constructor(_,q,$){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,b8.NODE_TYPE,{value:b8.DOC});let f=null;if(typeof q==="function"||Array.isArray(q))f=q;else if($===void 0&&q)$=q,q=void 0;let K=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},$);this.options=K;let{version:P}=K;if($?._directives){if(this.directives=$._directives.atDocument(),this.directives.yaml.explicit)P=this.directives.yaml.version}else this.directives=new vP.Directives({version:P});this.setSchema(P,$),this.contents=_===void 0?null:this.createNode(_,f,$)}clone(){let _=Object.create(zP.prototype,{[b8.NODE_TYPE]:{value:b8.DOC}});if(_.commentBefore=this.commentBefore,_.comment=this.comment,_.errors=this.errors.slice(),_.warnings=this.warnings.slice(),_.options=Object.assign({},this.options),this.directives)_.directives=this.directives.clone();if(_.schema=this.schema.clone(),_.contents=b8.isNode(this.contents)?this.contents.clone(_.schema):this.contents,this.range)_.range=this.range.slice();return _}add(_){if(D6(this.contents))this.contents.add(_)}addIn(_,q){if(D6(this.contents))this.contents.addIn(_,q)}createAlias(_,q){if(!_.anchor){let $=TP.anchorNames(this);_.anchor=!q||$.has(q)?TP.findNewAnchor(q||"a",$):q}return new zG.Alias(_.anchor)}createNode(_,q,$){let f=void 0;if(typeof q==="function")_=q.call({"":_},"",_),f=q;else if(Array.isArray(q)){let H=(A)=>typeof A==="number"||A instanceof String||A instanceof Number,k=q.filter(H).map(String);if(k.length>0)q=q.concat(k);f=q}else if($===void 0&&q)$=q,q=void 0;let{aliasDuplicateObjects:K,anchorPrefix:P,flow:u,keepUndefined:j,onTagObj:w,tag:O}=$??{},{onAnchor:v,setAnchors:Y,sourceObjects:T}=TP.createNodeAnchors(this,P||"a"),z={aliasDuplicateObjects:K??!0,keepUndefined:j??!1,onAnchor:v,onTagObj:w,replacer:f,schema:this.schema,sourceObjects:T},W=hG.createNode(_,O,z);if(u&&b8.isCollection(W))W.flow=!0;return Y(),W}createPair(_,q,$={}){let f=this.createNode(_,null,$),K=this.createNode(q,null,$);return new HG.Pair(f,K)}delete(_){return D6(this.contents)?this.contents.delete(_):!1}deleteIn(_){if(G6.isEmptyPath(_)){if(this.contents==null)return!1;return this.contents=null,!0}return D6(this.contents)?this.contents.deleteIn(_):!1}get(_,q){return b8.isCollection(this.contents)?this.contents.get(_,q):void 0}getIn(_,q){if(G6.isEmptyPath(_))return!q&&b8.isScalar(this.contents)?this.contents.value:this.contents;return b8.isCollection(this.contents)?this.contents.getIn(_,q):void 0}has(_){return b8.isCollection(this.contents)?this.contents.has(_):!1}hasIn(_){if(G6.isEmptyPath(_))return this.contents!==void 0;return b8.isCollection(this.contents)?this.contents.hasIn(_):!1}set(_,q){if(this.contents==null)this.contents=G6.collectionFromPath(this.schema,[_],q);else if(D6(this.contents))this.contents.set(_,q)}setIn(_,q){if(G6.isEmptyPath(_))this.contents=q;else if(this.contents==null)this.contents=G6.collectionFromPath(this.schema,Array.from(_),q);else if(D6(this.contents))this.contents.setIn(_,q)}setSchema(_,q={}){if(typeof _==="number")_=String(_);let $;switch(_){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new vP.Directives({version:"1.1"});$={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=_;else this.directives=new vP.Directives({version:_});$={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;$=null;break;default:{let f=JSON.stringify(_);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${f}`)}}if(q.schema instanceof Object)this.schema=q.schema;else if($)this.schema=new kG.Schema(Object.assign($,q));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:_,jsonArg:q,mapAsMap:$,maxAliasCount:f,onAnchor:K,reviver:P}={}){let u={anchors:new Map,doc:this,keep:!_,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof f==="number"?f:100},j=WG.toJS(this.contents,q??"",u);if(typeof K==="function")for(let{count:w,res:O}of u.anchors.values())K(O,w);return typeof P==="function"?ZG.applyReviver(P,{"":j},"",j):j}toJSON(_,q){return this.toJS({json:!0,jsonArg:_,mapAsMap:!1,onAnchor:q})}toString(_={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in _&&(!Number.isInteger(_.indent)||Number(_.indent)<=0)){let q=JSON.stringify(_.indent);throw new Error(`"indent" option must be a positive integer, not ${q}`)}return JG.stringifyDocument(this,_)}}function D6(_){if(b8.isCollection(_))return!0;throw new Error("Expected a YAML collection as document contents")}AG.Document=zP});var Vq=X((GG)=>{class Kf extends Error{constructor(_,q,$,f){super();this.name=_,this.code=$,this.message=f,this.pos=q}}class $1 extends Kf{constructor(_,q,$){super("YAMLParseError",_,q,$)}}class f1 extends Kf{constructor(_,q,$){super("YAMLWarning",_,q,$)}}var mG=(_,q)=>($)=>{if($.pos[0]===-1)return;$.linePos=$.pos.map((j)=>q.linePos(j));let{line:f,col:K}=$.linePos[0];$.message+=` at line ${f}, column ${K}`;let P=K-1,u=_.substring(q.lineStarts[f-1],q.lineStarts[f]).replace(/[\n\r]+$/,"");if(P>=60&&u.length>80){let j=Math.min(P-39,u.length-79);u="…"+u.substring(j),P-=j-1}if(u.length>80)u=u.substring(0,79)+"…";if(f>1&&/^ *$/.test(u.substring(0,P))){let j=_.substring(q.lineStarts[f-2],q.lineStarts[f-1]);if(j.length>80)j=j.substring(0,79)+`…
|
|
128
128
|
`;u=j+u}if(/[^ ]/.test(u)){let j=1,w=$.linePos[1];if(w&&w.line===f&&w.col>K)j=Math.max(1,Math.min(w.col-K,80-P));let O=" ".repeat(P)+"^".repeat(j);$.message+=`:
|
|
129
129
|
|
|
130
130
|
${u}
|
|
131
131
|
${O}
|
|
132
|
-
`}};
|
|
133
|
-
`))return!0;if(_.end){for(let q of _.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of _.items){for(let $ of q.start)if($.type==="newline")return!0;if(q.sep){for(let $ of q.sep)if($.type==="newline")return!0}if(
|
|
134
|
-
`+H.comment;else j.comment=H.comment;continue}if(H.newlineAfterProp||
|
|
135
|
-
`+V.comment;else p.comment=V.comment;let N=new
|
|
136
|
-
`+S.comment;else O.comment=S.comment;Y=S.end;continue}if(!u&&$.options.strict&&
|
|
137
|
-
`+Z;else m.comment=Z;S.comment=S.comment.substring(Z.length+1)}}}if(!u&&!N&&!S.found){let Z=n?_($,n,S,K):q($,S.end,N,null,S,K);if(O.items.push(Z),Y=Z.range[2],
|
|
138
|
-
`+D.comment;else m.comment=D.comment;let h=new
|
|
139
|
-
`+k.comment;else O.comment=k.comment;O.range=[f.offset,H,k.offset]}else O.range=[f.offset,H,H];return O}
|
|
132
|
+
`}};GG.YAMLError=Kf;GG.YAMLParseError=$1;GG.YAMLWarning=f1;GG.prettifyError=mG});var Mq=X((VG)=>{function bG(_,{flow:q,indicator:$,next:f,offset:K,onError:P,parentIndent:u,startOnNewline:j}){let w=!1,O=j,v=j,Y="",T="",z=!1,W=!1,H=null,k=null,A=null,p=null,V=null,N=null,n=null;for(let m of _){if(W){if(m.type!=="space"&&m.type!=="newline"&&m.type!=="comma")P(m.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");W=!1}if(H){if(O&&m.type!=="comment"&&m.type!=="newline")P(H,"TAB_AS_INDENT","Tabs are not allowed as indentation");H=null}switch(m.type){case"space":if(!q&&($!=="doc-start"||f?.type!=="flow-collection")&&m.source.includes("\t"))H=m;v=!0;break;case"comment":{if(!v)P(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let D=m.source.substring(1)||" ";if(!Y)Y=D;else Y+=T+D;T="",O=!1;break}case"newline":if(O){if(Y)Y+=m.source;else if(!N||$!=="seq-item-ind")w=!0}else T+=m.source;if(O=!0,z=!0,k||A)p=m;v=!0;break;case"anchor":if(k)P(m,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(m.source.endsWith(":"))P(m.offset+m.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);k=m,n??(n=m.offset),O=!1,v=!1,W=!0;break;case"tag":{if(A)P(m,"MULTIPLE_TAGS","A node can have at most one tag");A=m,n??(n=m.offset),O=!1,v=!1,W=!0;break}case $:if(k||A)P(m,"BAD_PROP_ORDER",`Anchors and tags must be after the ${m.source} indicator`);if(N)P(m,"UNEXPECTED_TOKEN",`Unexpected ${m.source} in ${q??"collection"}`);N=m,O=$==="seq-item-ind"||$==="explicit-key-ind",v=!1;break;case"comma":if(q){if(V)P(m,"UNEXPECTED_TOKEN",`Unexpected , in ${q}`);V=m,O=!1,v=!1;break}default:P(m,"UNEXPECTED_TOKEN",`Unexpected ${m.type} token`),O=!1,v=!1}}let S=_[_.length-1],Z=S?S.offset+S.source.length:K;if(W&&f&&f.type!=="space"&&f.type!=="newline"&&f.type!=="comma"&&(f.type!=="scalar"||f.source!==""))P(f.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(H&&(O&&H.indent<=u||f?.type==="block-map"||f?.type==="block-seq"))P(H,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:V,found:N,spaceBefore:w,comment:Y,hasNewline:z,anchor:k,tag:A,newlineAfterProp:p,end:Z,start:n??Z}}VG.resolveProps=bG});var Pf=X((NG)=>{function HP(_){if(!_)return null;switch(_.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(_.source.includes(`
|
|
133
|
+
`))return!0;if(_.end){for(let q of _.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of _.items){for(let $ of q.start)if($.type==="newline")return!0;if(q.sep){for(let $ of q.sep)if($.type==="newline")return!0}if(HP(q.key)||HP(q.value))return!0}return!1;default:return!0}}NG.containsNewline=HP});var WP=X((EG)=>{var SG=Pf();function dG(_,q,$){if(q?.type==="flow-collection"){let f=q.end[0];if(f.indent===_&&(f.source==="]"||f.source==="}")&&SG.containsNewline(q))$(f,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}EG.flowIndentCheck=dG});var kP=X((aG)=>{var K1=y();function IG(_,q,$){let{uniqueKeys:f}=_.options;if(f===!1)return!1;let K=typeof f==="function"?f:(P,u)=>P===u||K1.isScalar(P)&&K1.isScalar(u)&&P.value===u.value;return q.some((P)=>K(P.key,$))}aG.mapIncludes=IG});var O1=X((tG)=>{var P1=k_(),iG=Z_(),u1=Mq(),gG=Pf(),j1=WP(),lG=kP(),w1="All mapping items must start at the same column";function yG({composeNode:_,composeEmptyNode:q},$,f,K,P){let j=new(P?.nodeClass??iG.YAMLMap)($.schema);if($.atRoot)$.atRoot=!1;let w=f.offset,O=null;for(let v of f.items){let{start:Y,key:T,sep:z,value:W}=v,H=u1.resolveProps(Y,{indicator:"explicit-key-ind",next:T??z?.[0],offset:w,onError:K,parentIndent:f.indent,startOnNewline:!0}),k=!H.found;if(k){if(T){if(T.type==="block-seq")K(w,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in T&&T.indent!==f.indent)K(w,"BAD_INDENT",w1)}if(!H.anchor&&!H.tag&&!z){if(O=H.end,H.comment)if(j.comment)j.comment+=`
|
|
134
|
+
`+H.comment;else j.comment=H.comment;continue}if(H.newlineAfterProp||gG.containsNewline(T))K(T??Y[Y.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(H.found?.indent!==f.indent)K(w,"BAD_INDENT",w1);$.atKey=!0;let A=H.end,p=T?_($,T,H,K):q($,A,Y,null,H,K);if($.schema.compat)j1.flowIndentCheck(f.indent,T,K);if($.atKey=!1,lG.mapIncludes($,j.items,p))K(A,"DUPLICATE_KEY","Map keys must be unique");let V=u1.resolveProps(z??[],{indicator:"map-value-ind",next:W,offset:p.range[2],onError:K,parentIndent:f.indent,startOnNewline:!T||T.type==="block-scalar"});if(w=V.end,V.found){if(k){if(W?.type==="block-map"&&!V.hasNewline)K(w,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if($.options.strict&&H.start<V.found.offset-1024)K(p.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let N=W?_($,W,V,K):q($,w,z,null,V,K);if($.schema.compat)j1.flowIndentCheck(f.indent,W,K);w=N.range[2];let n=new P1.Pair(p,N);if($.options.keepSourceTokens)n.srcToken=v;j.items.push(n)}else{if(k)K(p.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(V.comment)if(p.comment)p.comment+=`
|
|
135
|
+
`+V.comment;else p.comment=V.comment;let N=new P1.Pair(p);if($.options.keepSourceTokens)N.srcToken=v;j.items.push(N)}}if(O&&O<w)K(O,"IMPOSSIBLE","Map comment with trailing content");return j.range=[f.offset,w,O??w],j}tG.resolveBlockMap=yG});var Y1=X((BG)=>{var LG=h_(),eG=Mq(),xG=WP();function sG({composeNode:_,composeEmptyNode:q},$,f,K,P){let j=new(P?.nodeClass??LG.YAMLSeq)($.schema);if($.atRoot)$.atRoot=!1;if($.atKey)$.atKey=!1;let w=f.offset,O=null;for(let{start:v,value:Y}of f.items){let T=eG.resolveProps(v,{indicator:"seq-item-ind",next:Y,offset:w,onError:K,parentIndent:f.indent,startOnNewline:!0});if(!T.found)if(T.anchor||T.tag||Y)if(Y&&Y.type==="block-seq")K(T.end,"BAD_INDENT","All sequence items must start at the same column");else K(w,"MISSING_CHAR","Sequence item without - indicator");else{if(O=T.end,T.comment)j.comment=T.comment;continue}let z=Y?_($,Y,T,K):q($,T.end,v,null,T,K);if($.schema.compat)xG.flowIndentCheck(f.indent,Y,K);w=z.range[2],j.items.push(z)}return j.range=[f.offset,w,O??w],j}BG.resolveBlockSeq=sG});var C6=X((QG)=>{function UG(_,q,$,f){let K="";if(_){let P=!1,u="";for(let j of _){let{source:w,type:O}=j;switch(O){case"space":P=!0;break;case"comment":{if($&&!P)f(j,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let v=w.substring(1)||" ";if(!K)K=v;else K+=u+v;u="";break}case"newline":if(K)u+=w;P=!0;break;default:f(j,"UNEXPECTED_TOKEN",`Unexpected ${O} at node end`)}q+=w.length}}return{comment:K,offset:q}}QG.resolveEnd=UG});var z1=X((wD)=>{var qD=y(),$D=k_(),T1=Z_(),fD=h_(),KD=C6(),v1=Mq(),PD=Pf(),uD=kP(),JP="Block collections are not allowed within flow collections",ZP=(_)=>_&&(_.type==="block-map"||_.type==="block-seq");function jD({composeNode:_,composeEmptyNode:q},$,f,K,P){let u=f.start.source==="{",j=u?"flow map":"flow sequence",O=new(P?.nodeClass??(u?T1.YAMLMap:fD.YAMLSeq))($.schema);O.flow=!0;let v=$.atRoot;if(v)$.atRoot=!1;if($.atKey)$.atKey=!1;let Y=f.offset+f.start.source.length;for(let k=0;k<f.items.length;++k){let A=f.items[k],{start:p,key:V,sep:N,value:n}=A,S=v1.resolveProps(p,{flow:j,indicator:"explicit-key-ind",next:V??N?.[0],offset:Y,onError:K,parentIndent:f.indent,startOnNewline:!1});if(!S.found){if(!S.anchor&&!S.tag&&!N&&!n){if(k===0&&S.comma)K(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${j}`);else if(k<f.items.length-1)K(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${j}`);if(S.comment)if(O.comment)O.comment+=`
|
|
136
|
+
`+S.comment;else O.comment=S.comment;Y=S.end;continue}if(!u&&$.options.strict&&PD.containsNewline(V))K(V,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(k===0){if(S.comma)K(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${j}`)}else{if(!S.comma)K(S.start,"MISSING_CHAR",`Missing , between ${j} items`);if(S.comment){let Z="";_:for(let m of p)switch(m.type){case"comma":case"space":break;case"comment":Z=m.source.substring(1);break _;default:break _}if(Z){let m=O.items[O.items.length-1];if(qD.isPair(m))m=m.value??m.key;if(m.comment)m.comment+=`
|
|
137
|
+
`+Z;else m.comment=Z;S.comment=S.comment.substring(Z.length+1)}}}if(!u&&!N&&!S.found){let Z=n?_($,n,S,K):q($,S.end,N,null,S,K);if(O.items.push(Z),Y=Z.range[2],ZP(n))K(Z.range,"BLOCK_IN_FLOW",JP)}else{$.atKey=!0;let Z=S.end,m=V?_($,V,S,K):q($,Z,p,null,S,K);if(ZP(V))K(m.range,"BLOCK_IN_FLOW",JP);$.atKey=!1;let D=v1.resolveProps(N??[],{flow:j,indicator:"map-value-ind",next:n,offset:m.range[2],onError:K,parentIndent:f.indent,startOnNewline:!1});if(D.found){if(!u&&!S.found&&$.options.strict){if(N)for(let J of N){if(J===D.found)break;if(J.type==="newline"){K(J,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(S.start<D.found.offset-1024)K(D.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(n)if("source"in n&&n.source&&n.source[0]===":")K(n,"MISSING_CHAR",`Missing space after : in ${j}`);else K(D.start,"MISSING_CHAR",`Missing , or : between ${j} items`);let b=n?_($,n,D,K):D.found?q($,D.end,N,null,D,K):null;if(b){if(ZP(n))K(b.range,"BLOCK_IN_FLOW",JP)}else if(D.comment)if(m.comment)m.comment+=`
|
|
138
|
+
`+D.comment;else m.comment=D.comment;let h=new $D.Pair(m,b);if($.options.keepSourceTokens)h.srcToken=A;if(u){let J=O;if(uD.mapIncludes($,J.items,m))K(Z,"DUPLICATE_KEY","Map keys must be unique");J.items.push(h)}else{let J=new T1.YAMLMap($.schema);J.flow=!0,J.items.push(h);let G=(b??m).range;J.range=[m.range[0],G[1],G[2]],O.items.push(J)}Y=b?b.range[2]:D.end}}let T=u?"}":"]",[z,...W]=f.end,H=Y;if(z&&z.source===T)H=z.offset+z.source.length;else{let k=j[0].toUpperCase()+j.substring(1),A=v?`${k} must end with a ${T}`:`${k} in block collection must be sufficiently indented and end with a ${T}`;if(K(Y,v?"MISSING_CHAR":"BAD_INDENT",A),z&&z.source.length!==1)W.unshift(z)}if(W.length>0){let k=KD.resolveEnd(W,H,$.options.strict,K);if(k.comment)if(O.comment)O.comment+=`
|
|
139
|
+
`+k.comment;else O.comment=k.comment;O.range=[f.offset,H,k.offset]}else O.range=[f.offset,H,H];return O}wD.resolveFlowCollection=jD});var H1=X((ZD)=>{var YD=y(),TD=u8(),vD=Z_(),zD=h_(),HD=O1(),WD=Y1(),kD=z1();function hP(_,q,$,f,K,P){let u=$.type==="block-map"?HD.resolveBlockMap(_,q,$,f,P):$.type==="block-seq"?WD.resolveBlockSeq(_,q,$,f,P):kD.resolveFlowCollection(_,q,$,f,P),j=u.constructor;if(K==="!"||K===j.tagName)return u.tag=j.tagName,u;if(K)u.tag=K;return u}function JD(_,q,$,f,K){let P=f.tag,u=!P?null:q.directives.tagName(P.source,(T)=>K(P,"TAG_RESOLVE_FAILED",T));if($.type==="block-seq"){let{anchor:T,newlineAfterProp:z}=f,W=T&&P?T.offset>P.offset?T:P:T??P;if(W&&(!z||z.offset<W.offset))K(W,"MISSING_CHAR","Missing newline after block sequence props")}let j=$.type==="block-map"?"map":$.type==="block-seq"?"seq":$.start.source==="{"?"map":"seq";if(!P||!u||u==="!"||u===vD.YAMLMap.tagName&&j==="map"||u===zD.YAMLSeq.tagName&&j==="seq")return hP(_,q,$,K,u);let w=q.schema.tags.find((T)=>T.tag===u&&T.collection===j);if(!w){let T=q.schema.knownTags[u];if(T&&T.collection===j)q.schema.tags.push(Object.assign({},T,{default:!1})),w=T;else{if(T)K(P,"BAD_COLLECTION_TYPE",`${T.tag} used for ${j} collection, but expects ${T.collection??"scalar"}`,!0);else K(P,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0);return hP(_,q,$,K,u)}}let O=hP(_,q,$,K,u,w),v=w.resolve?.(O,(T)=>K(P,"TAG_RESOLVE_FAILED",T),q.options)??O,Y=YD.isNode(v)?v:new TD.Scalar(v);if(Y.range=O.range,Y.tag=u,w?.format)Y.format=w.format;return Y}ZD.composeCollection=JD});var XP=X((GD)=>{var AP=u8();function AD(_,q,$){let f=q.offset,K=XD(q,_.options.strict,$);if(!K)return{value:"",type:null,comment:"",range:[f,f,f]};let P=K.mode===">"?AP.Scalar.BLOCK_FOLDED:AP.Scalar.BLOCK_LITERAL,u=q.source?mD(q.source):[],j=u.length;for(let H=u.length-1;H>=0;--H){let k=u[H][1];if(k===""||k==="\r")j=H;else break}if(j===0){let H=K.chomp==="+"&&u.length>0?`
|
|
140
140
|
`.repeat(Math.max(1,u.length-1)):"",k=f+K.length;if(q.source)k+=q.source.length;return{value:H,type:P,comment:K.comment,range:[f,k,k]}}let w=q.indent+K.indent,O=q.offset+K.length,v=0;for(let H=0;H<j;++H){let[k,A]=u[H];if(A===""||A==="\r"){if(K.indent===0&&k.length>w)w=k.length}else{if(k.length<w)$(O+k.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(K.indent===0)w=k.length;if(v=H,w===0&&!_.atRoot)$(O,"BAD_INDENT","Block scalar values in collections must be indented");break}O+=k.length+A.length+1}for(let H=u.length-1;H>=j;--H)if(u[H][0].length>w)j=H+1;let Y="",T="",z=!1;for(let H=0;H<v;++H)Y+=u[H][0].slice(w)+`
|
|
141
|
-
`;for(let H=v;H<j;++H){let[k,A]=u[H];O+=k.length+A.length+1;let p=A[A.length-1]==="\r";if(p)A=A.slice(0,-1);if(A&&k.length<w){let N=`Block scalar lines must not be less indented than their ${K.indent?"explicit indentation indicator":"first line"}`;$(O-A.length-(p?2:1),"BAD_INDENT",N),k=""}if(P===
|
|
141
|
+
`;for(let H=v;H<j;++H){let[k,A]=u[H];O+=k.length+A.length+1;let p=A[A.length-1]==="\r";if(p)A=A.slice(0,-1);if(A&&k.length<w){let N=`Block scalar lines must not be less indented than their ${K.indent?"explicit indentation indicator":"first line"}`;$(O-A.length-(p?2:1),"BAD_INDENT",N),k=""}if(P===AP.Scalar.BLOCK_LITERAL)Y+=T+k.slice(w)+A,T=`
|
|
142
142
|
`;else if(k.length>w||A[0]==="\t"){if(T===" ")T=`
|
|
143
143
|
`;else if(!z&&T===`
|
|
144
144
|
`)T=`
|
|
@@ -151,114 +151,114 @@ ${O}
|
|
|
151
151
|
`+u[H][0].slice(w);if(Y[Y.length-1]!==`
|
|
152
152
|
`)Y+=`
|
|
153
153
|
`;break;default:Y+=`
|
|
154
|
-
`}let W=f+K.length+q.source.length;return{value:Y,type:P,comment:K.comment,range:[f,W,W]}}function
|
|
154
|
+
`}let W=f+K.length+q.source.length;return{value:Y,type:P,comment:K.comment,range:[f,W,W]}}function XD({offset:_,props:q},$,f){if(q[0].type!=="block-scalar-header")return f(q[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:K}=q[0],P=K[0],u=0,j="",w=-1;for(let T=1;T<K.length;++T){let z=K[T];if(!j&&(z==="-"||z==="+"))j=z;else{let W=Number(z);if(!u&&W)u=W;else if(w===-1)w=_+T}}if(w!==-1)f(w,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${K}`);let O=!1,v="",Y=K.length;for(let T=1;T<q.length;++T){let z=q[T];switch(z.type){case"space":O=!0;case"newline":Y+=z.source.length;break;case"comment":if($&&!O)f(z,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");Y+=z.source.length,v=z.source.substring(1);break;case"error":f(z,"UNEXPECTED_TOKEN",z.message),Y+=z.source.length;break;default:{let W=`Unexpected token in block scalar header: ${z.type}`;f(z,"UNEXPECTED_TOKEN",W);let H=z.source;if(H&&typeof H==="string")Y+=H.length}}}return{mode:P,indent:u,chomp:j,comment:v,length:Y}}function mD(_){let q=_.split(/\n( *)/),$=q[0],f=$.match(/^( *)/),P=[f?.[1]?[f[1],$.slice(f[1].length)]:["",$]];for(let u=1;u<q.length;u+=2)P.push([q[u],q[u+1]]);return P}GD.resolveBlockScalar=AD});var GP=X((SD)=>{var mP=u8(),CD=C6();function rD(_,q,$){let{offset:f,type:K,source:P,end:u}=_,j,w,O=(T,z,W)=>$(f+T,z,W);switch(K){case"scalar":j=mP.Scalar.PLAIN,w=pD(P,O);break;case"single-quoted-scalar":j=mP.Scalar.QUOTE_SINGLE,w=bD(P,O);break;case"double-quoted-scalar":j=mP.Scalar.QUOTE_DOUBLE,w=VD(P,O);break;default:return $(_,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${K}`),{value:"",type:null,comment:"",range:[f,f+P.length,f+P.length]}}let v=f+P.length,Y=CD.resolveEnd(u,v,q,$);return{value:w,type:j,comment:Y.comment,range:[f,v,Y.offset]}}function pD(_,q){let $="";switch(_[0]){case"\t":$="a tab character";break;case",":$="flow indicator character ,";break;case"%":$="directive indicator character %";break;case"|":case">":{$=`block scalar indicator ${_[0]}`;break}case"@":case"`":{$=`reserved character ${_[0]}`;break}}if($)q(0,"BAD_SCALAR_START",`Plain value cannot start with ${$}`);return W1(_)}function bD(_,q){if(_[_.length-1]!=="'"||_.length===1)q(_.length,"MISSING_CHAR","Missing closing 'quote");return W1(_.slice(1,-1)).replace(/''/g,"'")}function W1(_){let q,$;try{q=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
155
155
|
`,"sy"),$=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
156
156
|
`,"sy")}catch{q=/(.*?)[ \t]*\r?\n/sy,$=/[ \t]*(.*?)[ \t]*\r?\n/sy}let f=q.exec(_);if(!f)return _;let K=f[1],P=" ",u=q.lastIndex;$.lastIndex=u;while(f=$.exec(_)){if(f[1]==="")if(P===`
|
|
157
157
|
`)K+=P;else P=`
|
|
158
|
-
`;else K+=P+f[1],P=" ";u=$.lastIndex}let j=/[ \t]*(.*)/sy;return j.lastIndex=u,f=j.exec(_),K+P+(f?.[1]??"")}function
|
|
158
|
+
`;else K+=P+f[1],P=" ";u=$.lastIndex}let j=/[ \t]*(.*)/sy;return j.lastIndex=u,f=j.exec(_),K+P+(f?.[1]??"")}function VD(_,q){let $="";for(let f=1;f<_.length-1;++f){let K=_[f];if(K==="\r"&&_[f+1]===`
|
|
159
159
|
`)continue;if(K===`
|
|
160
|
-
`){let{fold:P,offset:u}=
|
|
160
|
+
`){let{fold:P,offset:u}=MD(_,f);$+=P,f=u}else if(K==="\\"){let P=_[++f],u=ND[P];if(u)$+=u;else if(P===`
|
|
161
161
|
`){P=_[f+1];while(P===" "||P==="\t")P=_[++f+1]}else if(P==="\r"&&_[f+1]===`
|
|
162
|
-
`){P=_[++f+1];while(P===" "||P==="\t")P=_[++f+1]}else if(P==="x"||P==="u"||P==="U"){let j={x:2,u:4,U:8}[P];$+=
|
|
162
|
+
`){P=_[++f+1];while(P===" "||P==="\t")P=_[++f+1]}else if(P==="x"||P==="u"||P==="U"){let j={x:2,u:4,U:8}[P];$+=nD(_,f+1,j,q),f+=j}else{let j=_.substr(f-1,2);q(f-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${j}`),$+=j}}else if(K===" "||K==="\t"){let P=f,u=_[f+1];while(u===" "||u==="\t")u=_[++f+1];if(u!==`
|
|
163
163
|
`&&!(u==="\r"&&_[f+2]===`
|
|
164
|
-
`))$+=f>P?_.slice(P,f+1):K}else $+=K}if(_[_.length-1]!=='"'||_.length===1)q(_.length,"MISSING_CHAR",'Missing closing "quote');return $}function
|
|
164
|
+
`))$+=f>P?_.slice(P,f+1):K}else $+=K}if(_[_.length-1]!=='"'||_.length===1)q(_.length,"MISSING_CHAR",'Missing closing "quote');return $}function MD(_,q){let $="",f=_[q+1];while(f===" "||f==="\t"||f===`
|
|
165
165
|
`||f==="\r"){if(f==="\r"&&_[q+2]!==`
|
|
166
166
|
`)break;if(f===`
|
|
167
167
|
`)$+=`
|
|
168
|
-
`;q+=1,f=_[q+1]}if(!$)$=" ";return{fold:$,offset:q}}var
|
|
169
|
-
`,r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function
|
|
168
|
+
`;q+=1,f=_[q+1]}if(!$)$=" ";return{fold:$,offset:q}}var ND={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
169
|
+
`,r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function nD(_,q,$,f){let K=_.substr(q,$),u=K.length===$&&/^[0-9a-fA-F]+$/.test(K)?parseInt(K,16):NaN;if(isNaN(u)){let j=_.substr(q-2,$+2);return f(q-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${j}`),j}return String.fromCodePoint(u)}SD.resolveFlowScalar=rD});var J1=X((iD)=>{var l_=y(),k1=u8(),ED=XP(),RD=GP();function ID(_,q,$,f){let{value:K,type:P,comment:u,range:j}=q.type==="block-scalar"?ED.resolveBlockScalar(_,q,f):RD.resolveFlowScalar(q,_.options.strict,f),w=$?_.directives.tagName($.source,(Y)=>f($,"TAG_RESOLVE_FAILED",Y)):null,O;if(_.options.stringKeys&&_.atKey)O=_.schema[l_.SCALAR];else if(w)O=aD(_.schema,K,w,$,f);else if(q.type==="scalar")O=oD(_,K,q,f);else O=_.schema[l_.SCALAR];let v;try{let Y=O.resolve(K,(T)=>f($??q,"TAG_RESOLVE_FAILED",T),_.options);v=l_.isScalar(Y)?Y:new k1.Scalar(Y)}catch(Y){let T=Y instanceof Error?Y.message:String(Y);f($??q,"TAG_RESOLVE_FAILED",T),v=new k1.Scalar(K)}if(v.range=j,v.source=K,P)v.type=P;if(w)v.tag=w;if(O.format)v.format=O.format;if(u)v.comment=u;return v}function aD(_,q,$,f,K){if($==="!")return _[l_.SCALAR];let P=[];for(let j of _.tags)if(!j.collection&&j.tag===$)if(j.default&&j.test)P.push(j);else return j;for(let j of P)if(j.test?.test(q))return j;let u=_.knownTags[$];if(u&&!u.collection)return _.tags.push(Object.assign({},u,{default:!1,test:void 0})),u;return K(f,"TAG_RESOLVE_FAILED",`Unresolved tag: ${$}`,$!=="tag:yaml.org,2002:str"),_[l_.SCALAR]}function oD({atKey:_,directives:q,schema:$},f,K,P){let u=$.tags.find((j)=>(j.default===!0||_&&j.default==="key")&&j.test?.test(f))||$[l_.SCALAR];if($.compat){let j=$.compat.find((w)=>w.default&&w.test?.test(f))??$[l_.SCALAR];if(u.tag!==j.tag){let w=q.tagString(u.tag),O=q.tagString(j.tag),v=`Value may be parsed as either ${w} or ${O}`;P(K,"TAG_RESOLVE_FAILED",v,!0)}}return u}iD.composeScalar=ID});var Z1=X((yD)=>{function lD(_,q,$){if(q){$??($=q.length);for(let f=$-1;f>=0;--f){let K=q[f];switch(K.type){case"space":case"comment":case"newline":_-=K.source.length;continue}K=q[++f];while(K?.type==="space")_+=K.source.length,K=q[++f];break}}return _}yD.emptyScalarPosition=lD});var X1=X((UD)=>{var cD=zq(),LD=y(),eD=H1(),h1=J1(),xD=C6(),sD=Z1(),BD={composeNode:A1,composeEmptyNode:DP};function A1(_,q,$,f){let K=_.atKey,{spaceBefore:P,comment:u,anchor:j,tag:w}=$,O,v=!0;switch(q.type){case"alias":if(O=FD(_,q,f),j||w)f(q,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(O=h1.composeScalar(_,q,w,f),j)O.anchor=j.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(O=eD.composeCollection(BD,_,q,$,f),j)O.anchor=j.source.substring(1);break;default:{let Y=q.type==="error"?q.message:`Unsupported token (type: ${q.type})`;f(q,"UNEXPECTED_TOKEN",Y),O=DP(_,q.offset,void 0,null,$,f),v=!1}}if(j&&O.anchor==="")f(j,"BAD_ALIAS","Anchor cannot be an empty string");if(K&&_.options.stringKeys&&(!LD.isScalar(O)||typeof O.value!=="string"||O.tag&&O.tag!=="tag:yaml.org,2002:str"))f(w??q,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(P)O.spaceBefore=!0;if(u)if(q.type==="scalar"&&q.source==="")O.comment=u;else O.commentBefore=u;if(_.options.keepSourceTokens&&v)O.srcToken=q;return O}function DP(_,q,$,f,{spaceBefore:K,comment:P,anchor:u,tag:j,end:w},O){let v={type:"scalar",offset:sD.emptyScalarPosition(q,$,f),indent:-1,source:""},Y=h1.composeScalar(_,v,j,O);if(u){if(Y.anchor=u.source.substring(1),Y.anchor==="")O(u,"BAD_ALIAS","Anchor cannot be an empty string")}if(K)Y.spaceBefore=!0;if(P)Y.comment=P,Y.range[2]=w;return Y}function FD({options:_},{offset:q,source:$,end:f},K){let P=new cD.Alias($.substring(1));if(P.source==="")K(q,"BAD_ALIAS","Alias cannot be an empty string");if(P.source.endsWith(":"))K(q+$.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let u=q+$.length,j=xD.resolveEnd(f,u,_.strict,K);if(P.range=[q,u,j.offset],j.comment)P.comment=j.comment;return P}UD.composeEmptyNode=DP;UD.composeNode=A1});var G1=X((PC)=>{var qC=bq(),m1=X1(),$C=C6(),fC=Mq();function KC(_,q,{offset:$,start:f,value:K,end:P},u){let j=Object.assign({_directives:q},_),w=new qC.Document(void 0,j),O={atKey:!1,atRoot:!0,directives:w.directives,options:w.options,schema:w.schema},v=fC.resolveProps(f,{indicator:"doc-start",next:K??P?.[0],offset:$,onError:u,parentIndent:0,startOnNewline:!0});if(v.found){if(w.directives.docStart=!0,K&&(K.type==="block-map"||K.type==="block-seq")&&!v.hasNewline)u(v.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}w.contents=K?m1.composeNode(O,K,v,u):m1.composeEmptyNode(O,v.end,f,null,v,u);let Y=w.contents.range[2],T=$C.resolveEnd(P,Y,!1,u);if(T.comment)w.comment=T.comment;return w.range=[$,Y,T.offset],w}PC.composeDoc=KC});var CP=X((vC)=>{var jC=v8("process"),wC=VK(),OC=bq(),Nq=Vq(),D1=y(),YC=G1(),TC=C6();function nq(_){if(typeof _==="number")return[_,_+1];if(Array.isArray(_))return _.length===2?_:[_[0],_[1]];let{offset:q,source:$}=_;return[q,q+(typeof $==="string"?$.length:1)]}function C1(_){let q="",$=!1,f=!1;for(let K=0;K<_.length;++K){let P=_[K];switch(P[0]){case"#":q+=(q===""?"":f?`
|
|
170
170
|
|
|
171
171
|
`:`
|
|
172
|
-
`)+(P.substring(1)||" "),$=!0,f=!1;break;case"%":if(_[K+1]?.[0]!=="#")K+=1;$=!1;break;default:if(!$)f=!0;$=!1}}return{comment:q,afterEmptyLine:f}}class
|
|
173
|
-
${$}`:$;else if(f||_.directives.docStart||!K)_.commentBefore=$;else if(
|
|
172
|
+
`)+(P.substring(1)||" "),$=!0,f=!1;break;case"%":if(_[K+1]?.[0]!=="#")K+=1;$=!1;break;default:if(!$)f=!0;$=!1}}return{comment:q,afterEmptyLine:f}}class r1{constructor(_={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(q,$,f,K)=>{let P=nq(q);if(K)this.warnings.push(new Nq.YAMLWarning(P,$,f));else this.errors.push(new Nq.YAMLParseError(P,$,f))},this.directives=new wC.Directives({version:_.version||"1.2"}),this.options=_}decorate(_,q){let{comment:$,afterEmptyLine:f}=C1(this.prelude);if($){let K=_.contents;if(q)_.comment=_.comment?`${_.comment}
|
|
173
|
+
${$}`:$;else if(f||_.directives.docStart||!K)_.commentBefore=$;else if(D1.isCollection(K)&&!K.flow&&K.items.length>0){let P=K.items[0];if(D1.isPair(P))P=P.key;let u=P.commentBefore;P.commentBefore=u?`${$}
|
|
174
174
|
${u}`:$}else{let P=K.commentBefore;K.commentBefore=P?`${$}
|
|
175
|
-
${P}`:$}}if(q)Array.prototype.push.apply(_.errors,this.errors),Array.prototype.push.apply(_.warnings,this.warnings);else _.errors=this.errors,_.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:
|
|
176
|
-
${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new Nq.YAMLParseError(nq(_),"UNEXPECTED_TOKEN",`Unsupported token ${_.type}`))}}*end(_=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(_){let $=Object.assign({_directives:this.directives},this.options),f=new
|
|
175
|
+
${P}`:$}}if(q)Array.prototype.push.apply(_.errors,this.errors),Array.prototype.push.apply(_.warnings,this.warnings);else _.errors=this.errors,_.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:C1(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(_,q=!1,$=-1){for(let f of _)yield*this.next(f);yield*this.end(q,$)}*next(_){if(jC.env.LOG_STREAM)console.dir(_,{depth:null});switch(_.type){case"directive":this.directives.add(_.source,(q,$,f)=>{let K=nq(_);K[0]+=q,this.onError(K,"BAD_DIRECTIVE",$,f)}),this.prelude.push(_.source),this.atDirectives=!0;break;case"document":{let q=YC.composeDoc(this.options,this.directives,_,this.onError);if(this.atDirectives&&!q.directives.docStart)this.onError(_,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(q,!1),this.doc)yield this.doc;this.doc=q,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(_.source);break;case"error":{let q=_.source?`${_.message}: ${JSON.stringify(_.source)}`:_.message,$=new Nq.YAMLParseError(nq(_),"UNEXPECTED_TOKEN",q);if(this.atDirectives||!this.doc)this.errors.push($);else this.doc.errors.push($);break}case"doc-end":{if(!this.doc){this.errors.push(new Nq.YAMLParseError(nq(_),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let q=TC.resolveEnd(_.end,_.offset+_.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),q.comment){let $=this.doc.comment;this.doc.comment=$?`${$}
|
|
176
|
+
${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new Nq.YAMLParseError(nq(_),"UNEXPECTED_TOKEN",`Unsupported token ${_.type}`))}}*end(_=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(_){let $=Object.assign({_directives:this.directives},this.options),f=new OC.Document(void 0,$);if(this.atDirectives)this.onError(q,"MISSING_CHAR","Missing directives-end indicator line");f.range=[0,q,q],this.decorate(f,!1),yield f}}}vC.Composer=r1});var V1=X((XC)=>{var HC=XP(),WC=GP(),kC=Vq(),p1=Jq();function JC(_,q=!0,$){if(_){let f=(K,P,u)=>{let j=typeof K==="number"?K:Array.isArray(K)?K[0]:K.offset;if($)$(j,P,u);else throw new kC.YAMLParseError([j,j+1],P,u)};switch(_.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return WC.resolveFlowScalar(_,q,f);case"block-scalar":return HC.resolveBlockScalar({options:{strict:q}},_,f)}}return null}function ZC(_,q){let{implicitKey:$=!1,indent:f,inFlow:K=!1,offset:P=-1,type:u="PLAIN"}=q,j=p1.stringifyString({type:u,value:_},{implicitKey:$,indent:f>0?" ".repeat(f):"",inFlow:K,options:{blockQuote:!0,lineWidth:-1}}),w=q.end??[{type:"newline",offset:-1,indent:f,source:`
|
|
177
177
|
`}];switch(j[0]){case"|":case">":{let O=j.indexOf(`
|
|
178
178
|
`),v=j.substring(0,O),Y=j.substring(O+1)+`
|
|
179
|
-
`,T=[{type:"block-scalar-header",offset:P,indent:f,source:v}];if(!
|
|
180
|
-
`});return{type:"block-scalar",offset:P,indent:f,props:T,source:Y}}case'"':return{type:"double-quoted-scalar",offset:P,indent:f,source:j,end:w};case"'":return{type:"single-quoted-scalar",offset:P,indent:f,source:j,end:w};default:return{type:"scalar",offset:P,indent:f,source:j,end:w}}}function
|
|
179
|
+
`,T=[{type:"block-scalar-header",offset:P,indent:f,source:v}];if(!b1(T,w))T.push({type:"newline",offset:-1,indent:f,source:`
|
|
180
|
+
`});return{type:"block-scalar",offset:P,indent:f,props:T,source:Y}}case'"':return{type:"double-quoted-scalar",offset:P,indent:f,source:j,end:w};case"'":return{type:"single-quoted-scalar",offset:P,indent:f,source:j,end:w};default:return{type:"scalar",offset:P,indent:f,source:j,end:w}}}function hC(_,q,$={}){let{afterKey:f=!1,implicitKey:K=!1,inFlow:P=!1,type:u}=$,j="indent"in _?_.indent:null;if(f&&typeof j==="number")j+=2;if(!u)switch(_.type){case"single-quoted-scalar":u="QUOTE_SINGLE";break;case"double-quoted-scalar":u="QUOTE_DOUBLE";break;case"block-scalar":{let O=_.props[0];if(O.type!=="block-scalar-header")throw new Error("Invalid block scalar header");u=O.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:u="PLAIN"}let w=p1.stringifyString({type:u,value:q},{implicitKey:K||j===null,indent:j!==null&&j>0?" ".repeat(j):"",inFlow:P,options:{blockQuote:!0,lineWidth:-1}});switch(w[0]){case"|":case">":AC(_,w);break;case'"':rP(_,w,"double-quoted-scalar");break;case"'":rP(_,w,"single-quoted-scalar");break;default:rP(_,w,"scalar")}}function AC(_,q){let $=q.indexOf(`
|
|
181
181
|
`),f=q.substring(0,$),K=q.substring($+1)+`
|
|
182
|
-
`;if(_.type==="block-scalar"){let P=_.props[0];if(P.type!=="block-scalar-header")throw new Error("Invalid block scalar header");P.source=f,_.source=K}else{let{offset:P}=_,u="indent"in _?_.indent:-1,j=[{type:"block-scalar-header",offset:P,indent:u,source:f}];if(!
|
|
183
|
-
`});for(let w of Object.keys(_))if(w!=="type"&&w!=="offset")delete _[w];Object.assign(_,{type:"block-scalar",indent:u,props:j,source:K})}}function
|
|
184
|
-
`};delete _.items,Object.assign(_,{type:$,source:q,end:[K]});break}default:{let f="indent"in _?_.indent:-1,K="end"in _&&Array.isArray(_.end)?_.end.filter((P)=>P.type==="space"||P.type==="comment"||P.type==="newline"):[];for(let P of Object.keys(_))if(P!=="type"&&P!=="offset")delete _[P];Object.assign(_,{type:$,indent:f,source:q,end:K})}}}
|
|
182
|
+
`;if(_.type==="block-scalar"){let P=_.props[0];if(P.type!=="block-scalar-header")throw new Error("Invalid block scalar header");P.source=f,_.source=K}else{let{offset:P}=_,u="indent"in _?_.indent:-1,j=[{type:"block-scalar-header",offset:P,indent:u,source:f}];if(!b1(j,"end"in _?_.end:void 0))j.push({type:"newline",offset:-1,indent:u,source:`
|
|
183
|
+
`});for(let w of Object.keys(_))if(w!=="type"&&w!=="offset")delete _[w];Object.assign(_,{type:"block-scalar",indent:u,props:j,source:K})}}function b1(_,q){if(q)for(let $ of q)switch($.type){case"space":case"comment":_.push($);break;case"newline":return _.push($),!0}return!1}function rP(_,q,$){switch(_.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":_.type=$,_.source=q;break;case"block-scalar":{let f=_.props.slice(1),K=q.length;if(_.props[0].type==="block-scalar-header")K-=_.props[0].source.length;for(let P of f)P.offset+=K;delete _.props,Object.assign(_,{type:$,source:q,end:f});break}case"block-map":case"block-seq":{let K={type:"newline",offset:_.offset+q.length,indent:_.indent,source:`
|
|
184
|
+
`};delete _.items,Object.assign(_,{type:$,source:q,end:[K]});break}default:{let f="indent"in _?_.indent:-1,K="end"in _&&Array.isArray(_.end)?_.end.filter((P)=>P.type==="space"||P.type==="comment"||P.type==="newline"):[];for(let P of Object.keys(_))if(P!=="type"&&P!=="offset")delete _[P];Object.assign(_,{type:$,indent:f,source:q,end:K})}}}XC.createScalarToken=ZC;XC.resolveAsScalar=JC;XC.setScalarValue=hC});var M1=X((rC)=>{var CC=(_)=>("type"in _)?jf(_):uf(_);function jf(_){switch(_.type){case"block-scalar":{let q="";for(let $ of _.props)q+=jf($);return q+_.source}case"block-map":case"block-seq":{let q="";for(let $ of _.items)q+=uf($);return q}case"flow-collection":{let q=_.start.source;for(let $ of _.items)q+=uf($);for(let $ of _.end)q+=$.source;return q}case"document":{let q=uf(_);if(_.end)for(let $ of _.end)q+=$.source;return q}default:{let q=_.source;if("end"in _&&_.end)for(let $ of _.end)q+=$.source;return q}}}function uf({start:_,key:q,sep:$,value:f}){let K="";for(let P of _)K+=P.source;if(q)K+=jf(q);if($)for(let P of $)K+=P.source;if(f)K+=jf(f);return K}rC.stringify=CC});var S1=X((VC)=>{var pP=Symbol("break visit"),bC=Symbol("skip children"),N1=Symbol("remove item");function y_(_,q){if("type"in _&&_.type==="document")_={start:_.start,value:_.value};n1(Object.freeze([]),_,q)}y_.BREAK=pP;y_.SKIP=bC;y_.REMOVE=N1;y_.itemAtPath=(_,q)=>{let $=_;for(let[f,K]of q){let P=$?.[f];if(P&&"items"in P)$=P.items[K];else return}return $};y_.parentCollection=(_,q)=>{let $=y_.itemAtPath(_,q.slice(0,-1)),f=q[q.length-1][0],K=$?.[f];if(K&&"items"in K)return K;throw new Error("Parent collection not found")};function n1(_,q,$){let f=$(q,_);if(typeof f==="symbol")return f;for(let K of["key","value"]){let P=q[K];if(P&&"items"in P){for(let u=0;u<P.items.length;++u){let j=n1(Object.freeze(_.concat([[K,u]])),P.items[u],$);if(typeof j==="number")u=j-1;else if(j===pP)return pP;else if(j===N1)P.items.splice(u,1),u-=1}if(typeof f==="function"&&K==="key")f=f(q,_)}}return typeof f==="function"?f(q,_):f}VC.visit=y_});var wf=X((IC)=>{var bP=V1(),NC=M1(),nC=S1(),VP="\uFEFF",MP="\x02",NP="\x18",nP="\x1F",SC=(_)=>!!_&&("items"in _),dC=(_)=>!!_&&(_.type==="scalar"||_.type==="single-quoted-scalar"||_.type==="double-quoted-scalar"||_.type==="block-scalar");function EC(_){switch(_){case VP:return"<BOM>";case MP:return"<DOC>";case NP:return"<FLOW_END>";case nP:return"<SCALAR>";default:return JSON.stringify(_)}}function RC(_){switch(_){case VP:return"byte-order-mark";case MP:return"doc-mode";case NP:return"flow-error-end";case nP:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
185
185
|
`:case`\r
|
|
186
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(_[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}
|
|
187
|
-
`:case"\r":case"\t":return!0;default:return!1}}var
|
|
188
|
-
\r `),
|
|
186
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(_[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}IC.createScalarToken=bP.createScalarToken;IC.resolveAsScalar=bP.resolveAsScalar;IC.setScalarValue=bP.setScalarValue;IC.stringify=NC.stringify;IC.visit=nC.visit;IC.BOM=VP;IC.DOCUMENT=MP;IC.FLOW_END=NP;IC.SCALAR=nP;IC.isCollection=SC;IC.isScalar=dC;IC.prettyToken=EC;IC.tokenType=RC});var dP=X((QC)=>{var Sq=wf();function c8(_){switch(_){case void 0:case" ":case`
|
|
187
|
+
`:case"\r":case"\t":return!0;default:return!1}}var d1=new Set("0123456789ABCDEFabcdef"),FC=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Of=new Set(",[]{}"),UC=new Set(` ,[]{}
|
|
188
|
+
\r `),SP=(_)=>!_||UC.has(_);class E1{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(_,q=!1){if(_){if(typeof _!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+_:_,this.lineEndPos=null}this.atEnd=!q;let $=this.next??"stream";while($&&(q||this.hasChars(1)))$=yield*this.parseNext($)}atLineEnd(){let _=this.pos,q=this.buffer[_];while(q===" "||q==="\t")q=this.buffer[++_];if(!q||q==="#"||q===`
|
|
189
189
|
`)return!0;if(q==="\r")return this.buffer[_+1]===`
|
|
190
190
|
`;return!1}charAt(_){return this.buffer[this.pos+_]}continueScalar(_){let q=this.buffer[_];if(this.indentNext>0){let $=0;while(q===" ")q=this.buffer[++$+_];if(q==="\r"){let f=this.buffer[$+_+1];if(f===`
|
|
191
191
|
`||!f&&!this.atEnd)return _+$+1}return q===`
|
|
192
192
|
`||$>=this.indentNext||!q&&!this.atEnd?_+$:-1}if(q==="-"||q==="."){let $=this.buffer.substr(_,3);if(($==="---"||$==="...")&&c8(this.buffer[_+3]))return-1}return _}getLine(){let _=this.lineEndPos;if(typeof _!=="number"||_!==-1&&_<this.pos)_=this.buffer.indexOf(`
|
|
193
|
-
`,this.pos),this.lineEndPos=_;if(_===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[_-1]==="\r")_-=1;return this.buffer.substring(this.pos,_)}hasChars(_){return this.pos+_<=this.buffer.length}setNext(_){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=_,null}peek(_){return this.buffer.substr(this.pos,_)}*parseNext(_){switch(_){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let _=this.getLine();if(_===null)return this.setNext("stream");if(_[0]===Sq.BOM)yield*this.pushCount(1),_=_.substring(1);if(_[0]==="%"){let q=_.length,$=_.indexOf("#");while($!==-1){let K=_[$-1];if(K===" "||K==="\t"){q=$-1;break}else $=_.indexOf("#",$+1)}while(!0){let K=_[q-1];if(K===" "||K==="\t")q-=1;else break}let f=(yield*this.pushCount(q))+(yield*this.pushSpaces(!0));return yield*this.pushCount(_.length-f),this.pushNewline(),"stream"}if(this.atLineEnd()){let q=yield*this.pushSpaces(!0);return yield*this.pushCount(_.length-q),yield*this.pushNewline(),"stream"}return yield Sq.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let _=this.charAt(0);if(!_&&!this.atEnd)return this.setNext("line-start");if(_==="-"||_==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let q=this.peek(3);if((q==="---"||q==="...")&&c8(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,q==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!c8(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[_,q]=this.peek(2);if(!q&&!this.atEnd)return this.setNext("block-start");if((_==="-"||_==="?"||_===":")&&c8(q)){let $=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=$,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let _=this.getLine();if(_===null)return this.setNext("doc");let q=yield*this.pushIndicators();switch(_[q]){case"#":yield*this.pushCount(_.length-q);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(
|
|
193
|
+
`,this.pos),this.lineEndPos=_;if(_===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[_-1]==="\r")_-=1;return this.buffer.substring(this.pos,_)}hasChars(_){return this.pos+_<=this.buffer.length}setNext(_){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=_,null}peek(_){return this.buffer.substr(this.pos,_)}*parseNext(_){switch(_){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let _=this.getLine();if(_===null)return this.setNext("stream");if(_[0]===Sq.BOM)yield*this.pushCount(1),_=_.substring(1);if(_[0]==="%"){let q=_.length,$=_.indexOf("#");while($!==-1){let K=_[$-1];if(K===" "||K==="\t"){q=$-1;break}else $=_.indexOf("#",$+1)}while(!0){let K=_[q-1];if(K===" "||K==="\t")q-=1;else break}let f=(yield*this.pushCount(q))+(yield*this.pushSpaces(!0));return yield*this.pushCount(_.length-f),this.pushNewline(),"stream"}if(this.atLineEnd()){let q=yield*this.pushSpaces(!0);return yield*this.pushCount(_.length-q),yield*this.pushNewline(),"stream"}return yield Sq.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let _=this.charAt(0);if(!_&&!this.atEnd)return this.setNext("line-start");if(_==="-"||_==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let q=this.peek(3);if((q==="---"||q==="...")&&c8(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,q==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!c8(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[_,q]=this.peek(2);if(!q&&!this.atEnd)return this.setNext("block-start");if((_==="-"||_==="?"||_===":")&&c8(q)){let $=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=$,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let _=this.getLine();if(_===null)return this.setNext("doc");let q=yield*this.pushIndicators();switch(_[q]){case"#":yield*this.pushCount(_.length-q);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(SP),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return q+=yield*this.parseBlockScalarHeader(),q+=yield*this.pushSpaces(!0),yield*this.pushCount(_.length-q),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let _,q,$=-1;do{if(_=yield*this.pushNewline(),_>0)q=yield*this.pushSpaces(!1),this.indentValue=$=q;else q=0;q+=yield*this.pushSpaces(!0)}while(_+q>0);let f=this.getLine();if(f===null)return this.setNext("flow");if($!==-1&&$<this.indentNext&&f[0]!=="#"||$===0&&(f.startsWith("---")||f.startsWith("..."))&&c8(f[3])){if(!($===this.indentNext-1&&this.flowLevel===1&&(f[0]==="]"||f[0]==="}")))return this.flowLevel=0,yield Sq.FLOW_END,yield*this.parseLineStart()}let K=0;while(f[K]===",")K+=yield*this.pushCount(1),K+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(K+=yield*this.pushIndicators(),f[K]){case void 0:return"flow";case"#":return yield*this.pushCount(f.length-K),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(SP),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let P=this.charAt(1);if(this.flowKey||c8(P)||P===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let _=this.charAt(0),q=this.buffer.indexOf(_,this.pos+1);if(_==="'")while(q!==-1&&this.buffer[q+1]==="'")q=this.buffer.indexOf("'",q+2);else while(q!==-1){let K=0;while(this.buffer[q-1-K]==="\\")K+=1;if(K%2===0)break;q=this.buffer.indexOf('"',q+1)}let $=this.buffer.substring(0,q),f=$.indexOf(`
|
|
194
194
|
`,this.pos);if(f!==-1){while(f!==-1){let K=this.continueScalar(f+1);if(K===-1)break;f=$.indexOf(`
|
|
195
195
|
`,K)}if(f!==-1)q=f-($[f-1]==="\r"?2:1)}if(q===-1){if(!this.atEnd)return this.setNext("quoted-scalar");q=this.buffer.length}return yield*this.pushToIndex(q+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let _=this.pos;while(!0){let q=this.buffer[++_];if(q==="+")this.blockScalarKeep=!0;else if(q>"0"&&q<="9")this.blockScalarIndent=Number(q)-1;else if(q!=="-")break}return yield*this.pushUntil((q)=>c8(q)||q==="#")}*parseBlockScalar(){let _=this.pos-1,q=0,$;_:for(let K=this.pos;$=this.buffer[K];++K)switch($){case" ":q+=1;break;case`
|
|
196
196
|
`:_=K,q=0;break;case"\r":{let P=this.buffer[K+1];if(!P&&!this.atEnd)return this.setNext("block-scalar");if(P===`
|
|
197
197
|
`)break}default:break _}if(!$&&!this.atEnd)return this.setNext("block-scalar");if(q>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=q;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let K=this.continueScalar(_+1);if(K===-1)break;_=this.buffer.indexOf(`
|
|
198
198
|
`,K)}while(_!==-1);if(_===-1){if(!this.atEnd)return this.setNext("block-scalar");_=this.buffer.length}}let f=_+1;$=this.buffer[f];while($===" ")$=this.buffer[++f];if($==="\t"){while($==="\t"||$===" "||$==="\r"||$===`
|
|
199
199
|
`)$=this.buffer[++f];_=f-1}else if(!this.blockScalarKeep)do{let K=_-1,P=this.buffer[K];if(P==="\r")P=this.buffer[--K];let u=K;while(P===" ")P=this.buffer[--K];if(P===`
|
|
200
|
-
`&&K>=this.pos&&K+1+q>u)_=K;else break}while(!0);return yield Sq.SCALAR,yield*this.pushToIndex(_+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let _=this.flowLevel>0,q=this.pos-1,$=this.pos-1,f;while(f=this.buffer[++$])if(f===":"){let K=this.buffer[$+1];if(c8(K)||_&&
|
|
200
|
+
`&&K>=this.pos&&K+1+q>u)_=K;else break}while(!0);return yield Sq.SCALAR,yield*this.pushToIndex(_+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let _=this.flowLevel>0,q=this.pos-1,$=this.pos-1,f;while(f=this.buffer[++$])if(f===":"){let K=this.buffer[$+1];if(c8(K)||_&&Of.has(K))break;q=$}else if(c8(f)){let K=this.buffer[$+1];if(f==="\r")if(K===`
|
|
201
201
|
`)$+=1,f=`
|
|
202
|
-
`,K=this.buffer[$+1];else q=$;if(K==="#"||_&&
|
|
203
|
-
`){let P=this.continueScalar($+1);if(P===-1)break;$=Math.max($,P-2)}}else{if(_&&
|
|
202
|
+
`,K=this.buffer[$+1];else q=$;if(K==="#"||_&&Of.has(K))break;if(f===`
|
|
203
|
+
`){let P=this.continueScalar($+1);if(P===-1)break;$=Math.max($,P-2)}}else{if(_&&Of.has(f))break;q=$}if(!f&&!this.atEnd)return this.setNext("plain-scalar");return yield Sq.SCALAR,yield*this.pushToIndex(q+1,!0),_?"flow":"doc"}*pushCount(_){if(_>0)return yield this.buffer.substr(this.pos,_),this.pos+=_,_;return 0}*pushToIndex(_,q){let $=this.buffer.slice(this.pos,_);if($)return yield $,this.pos+=$.length,$.length;else if(q)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(SP))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let _=this.flowLevel>0,q=this.charAt(1);if(c8(q)||_&&Of.has(q)){if(!_)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let _=this.pos+2,q=this.buffer[_];while(!c8(q)&&q!==">")q=this.buffer[++_];return yield*this.pushToIndex(q===">"?_+1:_,!1)}else{let _=this.pos+1,q=this.buffer[_];while(q)if(FC.has(q))q=this.buffer[++_];else if(q==="%"&&d1.has(this.buffer[_+1])&&d1.has(this.buffer[_+2]))q=this.buffer[_+=3];else break;return yield*this.pushToIndex(_,!1)}}*pushNewline(){let _=this.buffer[this.pos];if(_===`
|
|
204
204
|
`)return yield*this.pushCount(1);else if(_==="\r"&&this.charAt(1)===`
|
|
205
|
-
`)return yield*this.pushCount(2);else return 0}*pushSpaces(_){let q=this.pos-1,$;do $=this.buffer[++q];while($===" "||_&&$==="\t");let f=q-this.pos;if(f>0)yield this.buffer.substr(this.pos,f),this.pos=q;return f}*pushUntil(_){let q=this.pos,$=this.buffer[q];while(!_($))$=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}
|
|
205
|
+
`)return yield*this.pushCount(2);else return 0}*pushSpaces(_){let q=this.pos-1,$;do $=this.buffer[++q];while($===" "||_&&$==="\t");let f=q-this.pos;if(f>0)yield this.buffer.substr(this.pos,f),this.pos=q;return f}*pushUntil(_){let q=this.pos,$=this.buffer[q];while(!_($))$=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}QC.Lexer=E1});var EP=X((qr)=>{class R1{constructor(){this.lineStarts=[],this.addNewLine=(_)=>this.lineStarts.push(_),this.linePos=(_)=>{let q=0,$=this.lineStarts.length;while(q<$){let K=q+$>>1;if(this.lineStarts[K]<_)q=K+1;else $=K}if(this.lineStarts[q]===_)return{line:q+1,col:1};if(q===0)return{line:0,col:_};let f=this.lineStarts[q-1];return{line:q,col:_-f+1}}}}qr.LineCounter=R1});var RP=X((Pr)=>{var fr=v8("process"),I1=wf(),Kr=dP();function A_(_,q){for(let $=0;$<_.length;++$)if(_[$].type===q)return!0;return!1}function a1(_){for(let q=0;q<_.length;++q)switch(_[q].type){case"space":case"comment":case"newline":break;default:return q}return-1}function i1(_){switch(_?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Yf(_){switch(_.type){case"document":return _.start;case"block-map":{let q=_.items[_.items.length-1];return q.sep??q.start}case"block-seq":return _.items[_.items.length-1].start;default:return[]}}function r6(_){if(_.length===0)return[];let q=_.length;_:while(--q>=0)switch(_[q].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break _}while(_[++q]?.type==="space");return _.splice(q,_.length)}function o1(_){if(_.start.type==="flow-seq-start"){for(let q of _.items)if(q.sep&&!q.value&&!A_(q.start,"explicit-key-ind")&&!A_(q.sep,"map-value-ind")){if(q.key)q.value=q.key;if(delete q.key,i1(q.value))if(q.value.end)Array.prototype.push.apply(q.value.end,q.sep);else q.value.end=q.sep;else Array.prototype.push.apply(q.start,q.sep);delete q.sep}}}class g1{constructor(_){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Kr.Lexer,this.onNewLine=_}*parse(_,q=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let $ of this.lexer.lex(_,q))yield*this.next($);if(!q)yield*this.end()}*next(_){if(this.source=_,fr.env.LOG_TOKENS)console.log("|",I1.prettyToken(_));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=_.length;return}let q=I1.tokenType(_);if(!q){let $=`Not a YAML token: ${_}`;yield*this.pop({type:"error",offset:this.offset,message:$,source:_}),this.offset+=_.length}else if(q==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=q,yield*this.step(),q){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+_.length);break;case"space":if(this.atNewLine&&_[0]===" ")this.indent+=_.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=_.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=_.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let _=this.peek(1);if(this.type==="doc-end"&&(!_||_.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!_)return yield*this.stream();switch(_.type){case"document":return yield*this.document(_);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(_);case"block-scalar":return yield*this.blockScalar(_);case"block-map":return yield*this.blockMap(_);case"block-seq":return yield*this.blockSequence(_);case"flow-collection":return yield*this.flowCollection(_);case"doc-end":return yield*this.documentEnd(_)}yield*this.pop()}peek(_){return this.stack[this.stack.length-_]}*pop(_){let q=_??this.stack.pop();if(!q)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield q;else{let $=this.peek(1);if(q.type==="block-scalar")q.indent="indent"in $?$.indent:0;else if(q.type==="flow-collection"&&$.type==="document")q.indent=0;if(q.type==="flow-collection")o1(q);switch($.type){case"document":$.value=q;break;case"block-scalar":$.props.push(q);break;case"block-map":{let f=$.items[$.items.length-1];if(f.value){$.items.push({start:[],key:q,sep:[]}),this.onKeyLine=!0;return}else if(f.sep)f.value=q;else{Object.assign(f,{key:q,sep:[]}),this.onKeyLine=!f.explicitKey;return}break}case"block-seq":{let f=$.items[$.items.length-1];if(f.value)$.items.push({start:[],value:q});else f.value=q;break}case"flow-collection":{let f=$.items[$.items.length-1];if(!f||f.value)$.items.push({start:[],key:q,sep:[]});else if(f.sep)f.value=q;else Object.assign(f,{key:q,sep:[]});return}default:yield*this.pop(),yield*this.pop(q)}if(($.type==="document"||$.type==="block-map"||$.type==="block-seq")&&(q.type==="block-map"||q.type==="block-seq")){let f=q.items[q.items.length-1];if(f&&!f.sep&&!f.value&&f.start.length>0&&a1(f.start)===-1&&(q.indent===0||f.start.every((K)=>K.type!=="comment"||K.indent<q.indent))){if($.type==="document")$.end=f.start;else $.items.push({start:f.start});q.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let _={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")_.start.push(this.sourceToken);this.stack.push(_);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(_){if(_.value)return yield*this.lineEnd(_);switch(this.type){case"doc-start":{if(a1(_.start)!==-1)yield*this.pop(),yield*this.step();else _.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":_.start.push(this.sourceToken);return}let q=this.startBlockValue(_);if(q)this.stack.push(q);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(_){if(this.type==="map-value-ind"){let q=Yf(this.peek(2)),$=r6(q),f;if(_.end)f=_.end,f.push(this.sourceToken),delete _.end;else f=[this.sourceToken];let K={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:$,key:_,sep:f}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=K}else yield*this.lineEnd(_)}*blockScalar(_){switch(this.type){case"space":case"comment":case"newline":_.props.push(this.sourceToken);return;case"scalar":if(_.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let q=this.source.indexOf(`
|
|
206
206
|
`)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
|
|
207
|
-
`,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,_.indent)){let f=_.items[_.items.length-2]?.value?.end;if(Array.isArray(f)){Array.prototype.push.apply(f,q.start),f.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=_.indent){let $=!this.onKeyLine&&this.indent===_.indent,f=$&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",K=[];if(f&&q.sep&&!q.value){let P=[];for(let u=0;u<q.sep.length;++u){let j=q.sep[u];switch(j.type){case"newline":P.push(u);break;case"space":break;case"comment":if(j.indent>_.indent)P.length=0;break;default:P.length=0}}if(P.length>=2)K=q.sep.splice(P[1])}switch(this.type){case"anchor":case"tag":if(f||q.value)K.push(this.sourceToken),_.items.push({start:K}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(f||q.value)K.push(this.sourceToken),_.items.push({start:K,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(A_(q.start,"newline"))Object.assign(q,{key:null,sep:[this.sourceToken]});else{let P=r6(q.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:null,sep:[this.sourceToken]}]})}else if(q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(A_(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:K,key:null,sep:[this.sourceToken]}]});else if(
|
|
207
|
+
`,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,_.indent)){let f=_.items[_.items.length-2]?.value?.end;if(Array.isArray(f)){Array.prototype.push.apply(f,q.start),f.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=_.indent){let $=!this.onKeyLine&&this.indent===_.indent,f=$&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",K=[];if(f&&q.sep&&!q.value){let P=[];for(let u=0;u<q.sep.length;++u){let j=q.sep[u];switch(j.type){case"newline":P.push(u);break;case"space":break;case"comment":if(j.indent>_.indent)P.length=0;break;default:P.length=0}}if(P.length>=2)K=q.sep.splice(P[1])}switch(this.type){case"anchor":case"tag":if(f||q.value)K.push(this.sourceToken),_.items.push({start:K}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(f||q.value)K.push(this.sourceToken),_.items.push({start:K,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(A_(q.start,"newline"))Object.assign(q,{key:null,sep:[this.sourceToken]});else{let P=r6(q.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:null,sep:[this.sourceToken]}]})}else if(q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(A_(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:K,key:null,sep:[this.sourceToken]}]});else if(i1(q.key)&&!A_(q.sep,"newline")){let P=r6(q.start),u=q.key,j=q.sep;j.push(this.sourceToken),delete q.key,delete q.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:u,sep:j}]})}else if(K.length>0)q.sep=q.sep.concat(K,this.sourceToken);else q.sep.push(this.sourceToken);else if(!q.sep)Object.assign(q,{key:null,sep:[this.sourceToken]});else if(q.value||f)_.items.push({start:K,key:null,sep:[this.sourceToken]});else if(A_(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else q.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let P=this.flowScalar(this.type);if(f||q.value)_.items.push({start:K,key:P,sep:[]}),this.onKeyLine=!0;else if(q.sep)this.stack.push(P);else Object.assign(q,{key:P,sep:[]}),this.onKeyLine=!0;return}default:{let P=this.startBlockValue(_);if(P){if(P.type==="block-seq"){if(!q.explicitKey&&q.sep&&!A_(q.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if($)_.items.push({start:K});this.stack.push(P);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(q.start,_.indent)){let f=_.items[_.items.length-2]?.value?.end;if(Array.isArray(f)){Array.prototype.push.apply(f,q.start),f.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return;case"anchor":case"tag":if(q.value||this.indent<=_.indent)break;q.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==_.indent)break;if(q.value||A_(q.start,"seq-item-ind"))_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return}if(this.indent>_.indent){let $=this.startBlockValue(_);if($){this.stack.push($);return}}yield*this.pop(),yield*this.step()}*flowCollection(_){let q=_.items[_.items.length-1];if(this.type==="flow-error-end"){let $;do yield*this.pop(),$=this.peek(1);while($&&$.type==="flow-collection")}else if(_.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!q||q.sep)_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return;case"map-value-ind":if(!q||q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else Object.assign(q,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!q||q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let f=this.flowScalar(this.type);if(!q||q.value)_.items.push({start:[],key:f,sep:[]});else if(q.sep)this.stack.push(f);else Object.assign(q,{key:f,sep:[]});return}case"flow-map-end":case"flow-seq-end":_.end.push(this.sourceToken);return}let $=this.startBlockValue(_);if($)this.stack.push($);else yield*this.pop(),yield*this.step()}else{let $=this.peek(2);if($.type==="block-map"&&(this.type==="map-value-ind"&&$.indent===_.indent||this.type==="newline"&&!$.items[$.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&$.type!=="flow-collection"){let f=Yf($),K=r6(f);o1(_);let P=_.end.splice(1,_.end.length);P.push(this.sourceToken);let u={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:K,key:_,sep:P}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(_)}}flowScalar(_){if(this.onNewLine){let q=this.source.indexOf(`
|
|
208
208
|
`)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
|
|
209
|
-
`,q)+1}return{type:_,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(_){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=
|
|
209
|
+
`,q)+1}return{type:_,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(_){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=Yf(_),$=r6(q);return $.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let q=Yf(_),$=r6(q);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(_,q){if(this.type!=="comment")return!1;if(this.indent<=q)return!1;return _.every(($)=>$.type==="newline"||$.type==="space")}*documentEnd(_){if(this.type!=="doc-mode"){if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(_){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}Pr.Parser=g1});var L1=X((Hr)=>{var l1=CP(),jr=bq(),dq=Vq(),wr=EK(),Or=y(),Yr=EP(),y1=RP();function t1(_){let q=_.prettyErrors!==!1;return{lineCounter:_.lineCounter||q&&new Yr.LineCounter||null,prettyErrors:q}}function Tr(_,q={}){let{lineCounter:$,prettyErrors:f}=t1(q),K=new y1.Parser($?.addNewLine),P=new l1.Composer(q),u=Array.from(P.compose(K.parse(_)));if(f&&$)for(let j of u)j.errors.forEach(dq.prettifyError(_,$)),j.warnings.forEach(dq.prettifyError(_,$));if(u.length>0)return u;return Object.assign([],{empty:!0},P.streamInfo())}function c1(_,q={}){let{lineCounter:$,prettyErrors:f}=t1(q),K=new y1.Parser($?.addNewLine),P=new l1.Composer(q),u=null;for(let j of P.compose(K.parse(_),!0,_.length))if(!u)u=j;else if(u.options.logLevel!=="silent"){u.errors.push(new dq.YAMLParseError(j.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(f&&$)u.errors.forEach(dq.prettifyError(_,$)),u.warnings.forEach(dq.prettifyError(_,$));return u}function vr(_,q,$){let f=void 0;if(typeof q==="function")f=q;else if($===void 0&&q&&typeof q==="object")$=q;let K=c1(_,$);if(!K)return null;if(K.warnings.forEach((P)=>wr.warn(K.options.logLevel,P)),K.errors.length>0)if(K.options.logLevel!=="silent")throw K.errors[0];else K.errors=[];return K.toJS(Object.assign({reviver:f},$))}function zr(_,q,$){let f=null;if(typeof q==="function"||Array.isArray(q))f=q;else if($===void 0&&q)$=q;if(typeof $==="string")$=$.length;if(typeof $==="number"){let K=Math.round($);$=K<1?void 0:K>8?{indent:8}:{indent:K}}if(_===void 0){let{keepUndefined:K}=$??q??{};if(!K)return}if(Or.isDocument(_)&&!f)return _.toString($);return new jr.Document(_,f,$).toString($)}Hr.parse=vr;Hr.parseAllDocuments=Tr;Hr.parseDocument=c1;Hr.stringify=zr});var x1=X((Nr)=>{var hr=CP(),Ar=bq(),Xr=OP(),IP=Vq(),mr=zq(),X_=y(),Gr=k_(),Dr=u8(),Cr=Z_(),rr=h_(),pr=wf(),br=dP(),Vr=EP(),Mr=RP(),Tf=L1(),e1=Tq();Nr.Composer=hr.Composer;Nr.Document=Ar.Document;Nr.Schema=Xr.Schema;Nr.YAMLError=IP.YAMLError;Nr.YAMLParseError=IP.YAMLParseError;Nr.YAMLWarning=IP.YAMLWarning;Nr.Alias=mr.Alias;Nr.isAlias=X_.isAlias;Nr.isCollection=X_.isCollection;Nr.isDocument=X_.isDocument;Nr.isMap=X_.isMap;Nr.isNode=X_.isNode;Nr.isPair=X_.isPair;Nr.isScalar=X_.isScalar;Nr.isSeq=X_.isSeq;Nr.Pair=Gr.Pair;Nr.Scalar=Dr.Scalar;Nr.YAMLMap=Cr.YAMLMap;Nr.YAMLSeq=rr.YAMLSeq;Nr.CST=pr;Nr.Lexer=br.Lexer;Nr.LineCounter=Vr.LineCounter;Nr.Parser=Mr.Parser;Nr.parse=Tf.parse;Nr.parseAllDocuments=Tf.parseAllDocuments;Nr.parseDocument=Tf.parseDocument;Nr.stringify=Tf.stringify;Nr.visit=e1.visit;Nr.visitAsync=e1.visitAsync});var hw=X((FE,Zw)=>{Zw.exports=(_,q=process.argv)=>{let $=_.startsWith("-")?"":_.length===1?"-":"--",f=q.indexOf($+_),K=q.indexOf("--");return f!==-1&&(K===-1||f<K)}});var mw=X((UE,Xw)=>{var xp=v8("os"),Aw=v8("tty"),V8=hw(),{env:O8}=process,m_;if(V8("no-color")||V8("no-colors")||V8("color=false")||V8("color=never"))m_=0;else if(V8("color")||V8("colors")||V8("color=true")||V8("color=always"))m_=1;if("FORCE_COLOR"in O8)if(O8.FORCE_COLOR==="true")m_=1;else if(O8.FORCE_COLOR==="false")m_=0;else m_=O8.FORCE_COLOR.length===0?1:Math.min(parseInt(O8.FORCE_COLOR,10),3);function oP(_){if(_===0)return!1;return{level:_,hasBasic:!0,has256:_>=2,has16m:_>=3}}function iP(_,q){if(m_===0)return 0;if(V8("color=16m")||V8("color=full")||V8("color=truecolor"))return 3;if(V8("color=256"))return 2;if(_&&!q&&m_===void 0)return 0;let $=m_||0;if(O8.TERM==="dumb")return $;if(process.platform==="win32"){let f=xp.release().split(".");if(Number(f[0])>=10&&Number(f[2])>=10586)return Number(f[2])>=14931?3:2;return 1}if("CI"in O8){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((f)=>(f in O8))||O8.CI_NAME==="codeship")return 1;return $}if("TEAMCITY_VERSION"in O8)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O8.TEAMCITY_VERSION)?1:0;if(O8.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O8){let f=parseInt((O8.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O8.TERM_PROGRAM){case"iTerm.app":return f>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(O8.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O8.TERM))return 1;if("COLORTERM"in O8)return 1;return $}function sp(_){let q=iP(_,_&&_.isTTY);return oP(q)}Xw.exports={supportsColor:sp,stdout:oP(iP(!0,Aw.isatty(1))),stderr:oP(iP(!0,Aw.isatty(2)))}});var Dw=X((QE,Gw)=>{var Bp=(_,q,$)=>{let f=_.indexOf(q);if(f===-1)return _;let K=q.length,P=0,u="";do u+=_.substr(P,f-P)+q+$,P=f+K,f=_.indexOf(q,P);while(f!==-1);return u+=_.substr(P),u},Fp=(_,q,$,f)=>{let K=0,P="";do{let u=_[f-1]==="\r";P+=_.substr(K,(u?f-1:f)-K)+q+(u?`\r
|
|
210
210
|
`:`
|
|
211
211
|
`)+$,K=f+1,f=_.indexOf(`
|
|
212
|
-
`,K)}while(f!==-1);return P+=_.substr(K),P};
|
|
213
|
-
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
214
|
-
`);if(P!==-1)q=jb(q,K,f,P);return f+q+K},tP,ow=(_,...q)=>{let[$]=q;if(!Zf($)||!Zf($.raw))return q.join(" ");let f=q.slice(1),K=[$.raw[0]];for(let P=1;P<$.length;P++)K.push(String(f[P-1]).replace(/[{}\\]/g,"\\$&"),String($.raw[P]));if(tP===void 0)tP=Sw();return tP(_,K.join(""))};Object.defineProperties(hf.prototype,p6);var Xf=hf();Xf.supportsColor=cP;Xf.stderr=hf({level:LP?LP.level:0});Xf.stderr.supportsColor=LP;iw.exports=Xf});S8();S8();class Gf{commands=new Map;groups=new Map;aliases=new Map;register(_,q=[]){let $=[...q,_.name].join("/");if(_.type==="command"){let f=_;if(this.commands.set($,f),f.aliases)for(let K of f.aliases){let P=[...q,K].join("/");this.aliases.set(P,$)}}else{let f=_;this.groups.set($,f);for(let K of f.children)this.register(K,[...q,_.name])}}lookup(_){if(_.length===0)return{type:"unknown",matchedPath:[],remainingPath:[]};for(let $=_.length;$>0;$--){let f=_.slice(0,$),K=f.join("/"),P=this.aliases.get(K)||K,u=this.commands.get(P);if(u)return{type:"command",command:u,matchedPath:f};let j=this.groups.get(P);if(j){if(_.slice($).length===0)return{type:"group",group:j,matchedPath:f}}}let q=0;for(let $=1;$<=_.length;$++){let K=_.slice(0,$).join("/"),P=this.aliases.get(K)||K;if(this.groups.has(P)||this.commands.has(P))q=$}return{type:"unknown",matchedPath:_.slice(0,q),remainingPath:_.slice(q)}}getTopLevel(){let _=[];for(let[q,$]of this.commands.entries())if(!q.includes("/"))_.push($);for(let[q,$]of this.groups.entries())if(!q.includes("/"))_.push($);return _}}function sP(_){let q=[],$=0;for(;$<_.length;$++){let K=_[$];if(!K)break;if(K.startsWith("-"))break;q.push(K)}let f=_.slice($);return{commandPath:q,paramArgv:f}}class Df{registry;strict;constructor(_){this.registry=new Gf,this.strict=_.strict??!1;for(let q of _.commands)this.registry.register(q)}dispatch(_){if(_.length===0)return{type:"show_help"};if(_[0]==="--help"||_[0]==="-h")return{type:"show_help"};let{commandPath:q,paramArgv:$}=sP(_);if(q.length===0)return{type:"show_help"};let f=this.registry.lookup(q);if(f.type==="command"){let w=[...q.slice(f.matchedPath.length),...$];return{type:"command",command:f.command,paramArgv:w,matchedPath:f.matchedPath}}if(f.type==="group"&&f.group){if(f.group.defaultChild){let j=[...q,f.group.defaultChild],w=this.registry.lookup(j);if(w.type==="command")return{type:"command",command:w.command,paramArgv:$,matchedPath:w.matchedPath};if(w.type==="group")return{type:"group_without_subcommand",group:w.group,matchedPath:w.matchedPath}}return{type:"group_without_subcommand",group:f.group,matchedPath:f.matchedPath}}let K=f.remainingPath?.[0]||q[q.length-1],P=f.matchedPath.join(" "),u;if(this.strict)if(P)u=`Unknown command: "${K}" in "${P}"`;else u=`Unknown command: "${K}"`;else if(P)u=`Unknown command: "${K}" in "${P}". Use --help to see available commands.`;else u=`Unknown command: "${K}". Use --help to see available commands.`;return{type:"unknown_command",error:u}}getRegistry(){return this.registry}}function BP(_){let q=[],$=!1;for(let f=0;f<_.length;f++){let K=_[f];if(K===void 0||K===null)continue;if($){q.push({type:"positional",value:K});continue}if(K==="--"){$=!0,q.push({type:"separator",value:K});continue}if(K.startsWith("--")&&K.includes("=")){let P=K.indexOf("="),u=K.slice(2,P),j=K.slice(P+1);q.push({type:"flag",value:K,flagName:u,flagValue:j});continue}if(K.startsWith("--")){let P=K.slice(2);q.push({type:"flag",value:K,flagName:P});continue}if(K.startsWith("-")&&K.length>1){q.push({type:"flag",value:K});continue}q.push({type:"positional",value:K})}return q}function $O(_){let q=new Map;for(let $ of _)if($.shape==="flag"&&$.short)q.set($.short,$.long);return q}function fO(_,q){let $=_.slice(1),f=$[0];if(!f||!q.has(f))return[{type:"flag",value:_,flagName:_.slice(1)}];let K=[],P=!1;if($.length>1)for(let u=1;u<$.length;u++){let j=$[u];if(!j||!q.has(j)){P=!0;break}}if(P){let u=q.get(f);if(!u)return[{type:"flag",value:_,flagName:f}];return K.push({type:"flag",value:_,flagName:u,flagValue:$.slice(1)}),K}for(let u of $){let j=q.get(u);if(j)K.push({type:"flag",value:`-${u}`,flagName:j});else K.push({type:"flag",value:`-${u}`,flagName:u})}return K}function KO(_){if(!_)return!1;if(_.type==="positional")return!0;if(_.type==="separator")return!1;if(_.type==="flag")return!1;return!0}function UP(_,q){let $={},f=[],K=new Set,P=$O(q),u=new Set(q.filter((O)=>O.shape==="flag").map((O)=>O.long)),j=[],w=new Map;for(let O=0;O<_.length;O++){let v=_[O];if(v===void 0)continue;if(v.type==="flag"&&v.value.startsWith("-")&&!v.value.startsWith("--")){let Y=fO(v.value,P);for(let T of Y)w.set(j.length,O),j.push(T)}else w.set(j.length,O),j.push(v)}for(let O=0;O<j.length;O++){let v=j[O];if(v===void 0)continue;if(v.type!=="flag")continue;let Y=v.flagName;if(!Y)continue;let T=Y,z=v.flagValue,W=!1;if(T.startsWith("no-"))W=!0,T=T.slice(3);if(!u.has(T)){f.push(v.value);continue}if(z!==void 0){FP($,T,z);continue}if(W){$[T]=!1;continue}let k=j[O+1];if(k&&KO(k)){if(FP($,T,k.value),k.type==="positional"){let A=w.get(O+1);if(A!==void 0)K.add(A)}O++;continue}$[T]=!0}return{flags:$,unknownFlags:f,consumedPositionalIndices:K}}function FP(_,q,$){let f=_[q];if(f===void 0)if(typeof $==="string"&&$.includes(","))_[q]=$.split(",").map((K)=>K.trim());else _[q]=$;else if(Array.isArray(f))if(typeof $==="string"&&$.includes(","))f.push(...$.split(",").map((K)=>K.trim()));else f.push($);else{let K=[f];if(typeof $==="string"&&$.includes(","))K.push(...$.split(",").map((P)=>P.trim()));else K.push($);_[q]=K}}function QP(_,q){let $=BP(_),{flags:f,unknownFlags:K,consumedPositionalIndices:P}=UP($,q),u=[];for(let j=0;j<$.length;j++){let w=$[j];if(w===void 0)continue;if(w.type==="positional"&&!P.has(j))u.push(w.value)}return{positionals:u,flags:f,unknownFlags:K}}Mf();oq();class n3{_state={name:void 0,version:void 0,description:void 0,strict:void 0,colorScheme:void 0,spinnerConfig:void 0,signalConfig:void 0};_commands=[];name(_){return this._state.name=_,this}version(_){return this._state.version=_,this}description(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Description must be a non-empty string");return this._state.description=_,this}strict(_){return this._state.strict=_,this}colorScheme(_){return this._state.colorScheme=_,this}spinner(_){return this._state.spinnerConfig=_,this}signal(_){return this._state.signalConfig=_,this}command(_){if(!_||_.type!=="command")throw new t("command() requires a built Command object");for(let q of this._commands){if(q.name===_.name)throw new t(`Duplicate command name "${_.name}" at app level`);if(_.aliases){for(let $ of _.aliases)if(q.name===$)throw new t(`Command alias "${$}" conflicts with existing command "${q.name}"`)}if(q.type==="command"&&q.aliases){let $=q.aliases||[];for(let f of $)if(f===_.name)throw new t(`Command name "${_.name}" conflicts with existing alias "${f}"`)}}return this._commands.push(_),this}group(_){if(!_||_.type!=="group")throw new t("group() requires a built CommandGroup object");for(let q of this._commands)if(q.name===_.name)throw new t(`Duplicate group name "${_.name}" at app level`);return this._commands.push(_),this}buildApp(){return{name:this._state.name,version:this._state.version,description:this._state.description,strict:this._state.strict,colorScheme:this._state.colorScheme,spinnerConfig:this._state.spinnerConfig,signalConfig:this._state.signalConfig,commands:this._commands}}async run(_){if(!Array.isArray(_))throw new TypeError("argv must be an array of strings");let q=this.buildApp(),f=new Df(q).dispatch(_);if(f.type==="show_help"){let K=H2(q);console.log(K),process.exit(0)}if(f.type==="group_without_subcommand"){if(f.group&&f.matchedPath){let K=q.name?[q.name,...f.matchedPath]:f.matchedPath,P=W2(f.group,K);console.error(P),process.exit(2)}console.error("Error: CommandGroup invoked without subcommand"),process.exit(2)}if(f.type==="unknown_command"){let P=Q8(q.colorScheme).error(f.error||"Unknown command");console.error(P),process.exit(2)}if(f.type==="command"&&f.command){let{executeCommand:K}=await Promise.resolve().then(() => (Xu(),Au)),P=QP(f.paramArgv||[],f.command.params),u=q.name?[q.name,...f.matchedPath||[f.command.name]]:f.matchedPath||[f.command.name],j=await K({command:f.command,parsedArgv:P,argv:f.paramArgv,commandPath:u,signalConfig:this._state.signalConfig});if(j.error){let w=Q8(q.colorScheme);console.error(w.error(j.error.message))}process.exit(j.exitCode)}return Promise.resolve()}}function S3(){return new n3}S8();S8();class mu{_inferValue;_inferName;_inferRequired;_name;_type;_shape;_index;_long;_short;_required=!1;_env;_default;_stdin=!1;_prompt;_validate;_validationRules=[];name(_){if(!_||typeof _!=="string")throw new TypeError("Parameter name must be a non-empty string");return this._name=_,this}type(_){let q=["string","number","boolean","string[]","number[]"];if(!q.includes(_))throw new TypeError(`Invalid param type: ${_}. Must be one of: ${q.join(", ")}`);return this._type=_,this}positional(_){if(typeof _!=="number"||_<0)throw new TypeError("Positional index must be a non-negative number");if(this._shape==="flag")throw new t("Parameter cannot be both positional and flag. Choose one.");return this._shape="positional",this._index=_,this}flag(_,q){if(!_||typeof _!=="string")throw new TypeError("Flag long name must be a non-empty string");if(q!==void 0&&typeof q!=="string")throw new TypeError("Flag short name must be a string");if(this._shape==="positional")throw new t("Parameter cannot be both flag and positional. Choose one.");return this._shape="flag",this._long=_,this._short=q,this}env(_){if(!_||typeof _!=="string")throw new TypeError("Environment variable name must be a non-empty string");return this._env=_,this}default(_){return this._default=_,this}required(){return this._required=!0,this}optional(){return this._required=!1,this}stdin(){return this._stdin=!0,this}prompt(_){if(_===void 0||_===!0)this._prompt=!0;else if(typeof _==="string")this._prompt={message:_};else if(typeof _==="object")this._prompt=_;else throw new TypeError("prompt() accepts boolean, string, or PromptConfig object");return this}validate(_){if(typeof _==="function")this._validate=_;else if(Array.isArray(_))this._validationRules.push(..._);else if(typeof _==="object"&&_!==null)this._validationRules.push(_);else throw new TypeError("validate() accepts ValidationRule, ValidationRule[], or Validator function");return this}build(){if(!this._name)throw new t("Parameter must have a name. Call .name(string) before .build()");if(!this._type)throw new t(`Parameter "${this._name}" must have a type. Call .type(ParamType) before .build()`);if(!this._shape)throw new t(`Parameter "${this._name}" must be either positional or flag. Call .positional(index) or .flag(long, short?) before .build()`);if(this._default!==void 0&&this._prompt)throw new t(`Parameter "${this._name}" cannot have both default() and prompt(). These options are mutually exclusive.`);if(this._shape==="positional")return{shape:"positional",name:this._name,type:this._type,index:this._index,required:this._required,env:this._env,default:this._default,stdin:this._stdin,prompt:this._prompt,validate:this._validate,validationRules:this._validationRules.length>0?this._validationRules:void 0};else return{shape:"flag",name:this._name,type:this._type,long:this._long,short:this._short,required:this._required,env:this._env,default:this._default,stdin:this._stdin,prompt:this._prompt,validate:this._validate,validationRules:this._validationRules.length>0?this._validationRules:void 0}}}function d3(){return new mu}var iT=new Set(["help","version"]),gT=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;function U6(_,q="command"){if(!_||typeof _!=="string"||_.trim()==="")return`${q} name must be a non-empty string`;if(iT.has(_.toLowerCase()))return`${q} name "${_}" is reserved and cannot be used`;if(!gT.test(_))return`${q} name "${_}" contains invalid characters. Only alphanumeric, dash, and underscore characters are allowed, and must start with alphanumeric`;return null}function Gu(_,q,$="command"){if(!Array.isArray(_))return"aliases must be an array of strings";let f=new Set;for(let K of _){let P=U6(K,$);if(P)return`Invalid alias: ${P}`;if(K===q)return`Alias "${K}" cannot be the same as the ${$} name`;if(f.has(K))return`Duplicate alias "${K}"`;f.add(K)}return null}Y$();class Du{_name;_aliases;_summary;_description;_spinnerConfig;_loggerConfig;_paramConfigurators=[];_run;_errorConfig;_preValidate;constructor(_){let q=U6(_,"command");if(q)throw new t(q);this._name=_}aliases(_){let q=Gu(_,this._name,"command");if(q)throw new t(q);return this._aliases=_,this}summary(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Summary must be a non-empty string");return this._summary=_,this}description(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Description must be a non-empty string");return this._description=_,this}spinner(_){return this._spinnerConfig=_,this}logger(_){return this._loggerConfig=_,this}param(_){if(typeof _!=="function")throw new TypeError("param configurator must be a function");return this._paramConfigurators.push(_),this}run(_){if(typeof _!=="function")throw new TypeError("run handler must be a function");return this._run=_,this}onError(_){return this._errorConfig=_,this}preValidate(_){if(typeof _!=="function")throw new TypeError("preValidate hook must be a function");return this._preValidate=_,this}build(){if(!this._run)throw new t("Command must have a run handler. Call .run(handler) before .build()");let _=this._paramConfigurators.map((P)=>{let u=P(d3());if(typeof u.build!=="function")throw new t("param() configurator must return a ParamBuilder. Do NOT call .build() inside the param() callback.");return u.build()});if(_.filter((P)=>P.stdin===!0).length>1)throw new t(`Command "${this._name}" has multiple params with stdin(). Only one param can consume stdin.`);let $=new Set;for(let P of _){let u=P.name;if($.has(u))throw new t(`Command "${this._name}" has duplicate param name "${u}"`);$.add(u)}let f=_.filter((P)=>P.shape==="positional");for(let P=0;P<f.length-1;P++){let u=f[P];if(u.type==="string[]"||u.type==="number[]")throw new t(`Command "${this._name}": variadic positional param "${u.name}" must be in final position. Only the last positional param can be an array type.`)}let K=this._name;return w$(K,this._run),{type:"command",id:K,name:this._name,aliases:this._aliases,summary:this._summary,description:this._description,params:_,run:this._run,errorConfig:this._errorConfig,spinnerConfig:this._spinnerConfig,loggerConfig:this._loggerConfig,preValidate:this._preValidate}}}function c(_){return new Du(_)}S8();class E3{_name;_summary;_description;_children=[];_parent;_defaultChild;constructor(_,q){let $=U6(_,"group");if($)throw new t($);this._name=_,this._parent=q}summary(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Summary must be a non-empty string");return this._summary=_,this}description(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Description must be a non-empty string");return this._description=_,this}command(_){if(!_||_.type!=="command")throw new TypeError("command() requires a Command object. Use build() on CommandBuilder first.");return this._children.push(_),this}group(_){if(!_||_.type!=="group")throw new t("group() requires a CommandGroup object. Use build() on CommandGroupBuilder first.");return this._children.push(_),this}commandGroup(_){if(!_||typeof _!=="string")throw new TypeError("Command group name must be a non-empty string");return new E3(_,this)}defaultChild(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("defaultChild name must be a non-empty string");return this._defaultChild=_,this}build(){if(this._children.length===0)throw new t(`CommandGroup "${this._name}" must have at least one command or command group. Add children with .command() or .commandGroup()`);let _=new Set;for(let $ of this._children){if(_.has($.name))throw new t(`CommandGroup "${this._name}" has duplicate child name "${$.name}"`);if(_.add($.name),$.type==="command"&&$.aliases){let f=$.aliases||[];for(let K of f){if(_.has(K))throw new t(`CommandGroup "${this._name}" has duplicate child name/alias "${K}"`);_.add(K)}}}if(this._defaultChild){if(!_.has(this._defaultChild)){let $=Array.from(_).join(", ");throw new t(`CommandGroup "${this._name}" has invalid defaultChild "${this._defaultChild}". Available children: ${$}`)}}let q={type:"group",name:this._name,summary:this._summary,description:this._description,children:this._children,defaultChild:this._defaultChild};if(this._parent)return this._parent._children.push(q),this._parent;return q}}function T$(_){return new E3(_)}Y$();import{mkdirSync as Kw}from"node:fs";import{resolve as Pw}from"node:path";import{homedir as Wp}from"node:os";import{readFile as UT,writeFile as QT,unlink as Mu,stat as I3,rename as _v,access as qv,mkdir as $v}from"fs/promises";import{constants as fv}from"fs";import{resolve as Kv,dirname as a3,isAbsolute as Pv}from"path";import{resolve as Cu,relative as pu,normalize as eT,isAbsolute as bu}from"path";import{realpath as ru,lstat as xT}from"fs/promises";var l8=(_,q,$)=>{let f=new Error(q);return f.name=_,f.code=_,f.details=$,f},Vu=(_)=>{if(!_)throw l8("VALIDATION_ERROR","Empty path");if(bu(_))throw l8("VALIDATION_ERROR","Absolute path not allowed",{path:_});let q=eT(_).replaceAll("\\","/");if(q.split("/").some((f)=>f===".."))throw l8("BOUNDARY_VIOLATION","Path contains ..",{path:_});return q},R3=(_,q)=>{let $=pu(_,q);return $!==""&&!$.startsWith("..")&&!bu($)},sT=async(_,q,$)=>{let f=Vu(q),K=Cu(_),P=Cu(K,f);if($?.followSymlinks)try{P=await ru(P)}catch(j){if(j.code!=="ENOENT")throw j}else try{if((await xT(P)).isSymbolicLink()){let w=await ru(P);if(!R3(K,w))throw l8("BOUNDARY_VIOLATION",`Symlink target escapes boundary: '${q}' → '${w}'`,{path:q,resolved:P,target:w})}}catch(j){if(j.code!=="ENOENT"&&j.code!=="BOUNDARY_VIOLATION")throw j;if(j.code==="BOUNDARY_VIOLATION")throw j}if(!R3(K,P)&&P!==K)throw l8("BOUNDARY_VIOLATION",`Path escapes boundary: '${q}' → '${P}'`,{path:q,resolved:P,boundary:K});let u=pu(K,P).replaceAll("\\","/");return{abs:P,rel:u}},BT=(_,q)=>{let $=_.code,f=q?.path?q.resolved?`'${q.path}' → '${q.resolved}'`:`'${q.path}'`:"";switch($){case"ENOENT":return l8("NOT_FOUND",`File or directory not found${f?`: ${f}`:""}`,{...q,originalCode:$});case"ENOTEMPTY":return l8("DIRECTORY_NOT_EMPTY",`Directory not empty${f?`: ${f}`:""}`,{...q,originalCode:$});case"ENOTDIR":case"EISDIR":return l8("VALIDATION_ERROR",`Invalid path type${f?`: ${f}`:""}`,{...q,originalCode:$,reason:$==="ENOTDIR"?"not a directory":"is a directory"});case"EACCES":case"EPERM":return l8("FS_ERROR",`Permission denied${f?`: ${f}`:""}`,{...q,originalCode:$});case"EBUSY":return l8("FS_ERROR",`Resource busy or locked${f?`: ${f}`:""}`,{...q,originalCode:$});default:if(q)_.context=q;return _}},FT=Object.freeze({fsError:l8,validateRelative:Vu,insideBoundary:R3,resolveWithinBoundary:sT,mapOsError:BT}),l=FT;var uv=(_)=>{let{boundaryDir:q}=_;if(!q)throw l.fsError("VALIDATION_ERROR","boundaryDir is required (empty string)",{boundaryDir:q});if(!Pv(q))throw l.fsError("VALIDATION_ERROR",`boundaryDir must be an absolute path: '${q}'`,{boundaryDir:q});let $=Kv(q),f=async(T)=>{let{abs:z}=await l.resolveWithinBoundary($,T);return z},K=async(T)=>{let z=await f(T);try{return await qv(z,fv.F_OK),!0}catch{return!1}},P=async(T)=>{let z=await f(T);try{return await I3(z)}catch(W){throw l.mapOsError(W,{path:T,resolved:z,operation:"stat"})}},u=async(T)=>{let z=await f(T),W;try{W=await I3(z)}catch(H){throw l.mapOsError(H,{path:T,resolved:z,operation:"stat"})}if(!W.isFile())throw l.fsError("VALIDATION_ERROR","Target is not a regular file",{path:T,resolved:z});try{return await UT(z,"utf-8")}catch(H){throw l.mapOsError(H,{path:T,resolved:z,operation:"readFile"})}},j=async(T,z)=>{let W=await f(T),H;try{H=await I3(W)}catch(A){if(A.code==="ENOENT")H=null;else throw l.mapOsError(A,{path:T,resolved:W,operation:"stat"})}if(H&&!H.isFile())throw l.fsError("VALIDATION_ERROR","Target path exists and is not a regular file",{path:T,resolved:W});try{await $v(a3(W),{recursive:!0})}catch(A){throw l.mapOsError(A,{path:a3(T),resolved:a3(W),operation:"mkdir"})}let k=`${W}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;try{await QT(k,z,{encoding:"utf-8",mode:384}),await _v(k,W)}catch(A){try{await Mu(k)}catch{}throw l.mapOsError(A,{path:T,resolved:W,operation:"writeText"})}},w=async(T)=>{let z=await f(T);try{return await Mu(z),{deleted:!0}}catch(W){if(W.code==="ENOENT")return{deleted:!1};throw l.mapOsError(W,{path:T,resolved:z,operation:"delete"})}},O=(T,z,W)=>{for(let A=0;A<z.length;A++){let{oldText:p}=z[A];if(p.length===0)throw l.fsError("VALIDATION_ERROR",`Empty oldText in replacement at index ${A} would cause infinite loop`,{index:A})}let H=T,k=0;for(let{oldText:A,newText:p}of z)if(H.includes(A))H=H.replace(A,p),k++;if(W?.requireAll&&k!==z.length)throw l.fsError("VALIDATION_ERROR",`Only ${k} of ${z.length} replacements were applied (requireAll=true)`,{applied:k,total:z.length});return{wouldContent:H,applied:k}};return Object.freeze({exists:K,stat:P,readText:u,resolveSafe:async(T)=>{return l.resolveWithinBoundary($,T)},writeText:j,delete:w,previewReplaceFirst:O,applyReplaceFirst:async(T,z,W)=>{let H=await u(T),{wouldContent:k,applied:A}=O(H,z,W);if(A===0)return{applied:0};return await j(T,k),{applied:A}}})},jv=Object.freeze({create:uv}),Q6=jv;import{mkdir as wv,rm as Ov,rmdir as Yv,stat as Nu,readdir as Tv}from"fs/promises";import{resolve as nu,dirname as vv,isAbsolute as Su}from"path";var zv=(_)=>{let{boundaryDir:q}=_;if(!q)throw l.fsError("VALIDATION_ERROR","boundaryDir is required (empty string)",{boundaryDir:q});if(!Su(q))throw l.fsError("VALIDATION_ERROR",`boundaryDir must be an absolute path: '${q}'`,{boundaryDir:q});let $=nu(q),f=(v)=>{let Y=v.toLowerCase().replace(/[^a-z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");if(!Y)throw l.fsError("VALIDATION_ERROR",`normalizeName produced empty result from input: '${v}'`,{name:v,normalized:Y});return Y},K=async(v,Y)=>{return await l.resolveWithinBoundary($,v,Y)};return Object.freeze({normalizeName:f,resolve:K,isInsideBoundary:(v)=>{if(!Su(v))throw l.fsError("VALIDATION_ERROR",`targetAbs must be an absolute path: '${v}'`,{targetAbs:v});let Y=nu(v);return l.insideBoundary($,Y)},ensureDir:async(v)=>{let{abs:Y}=await K(v);try{await wv(Y,{recursive:!0})}catch(T){throw l.mapOsError(T,{path:v,resolved:Y,operation:"ensureDir"})}},parentDir:(v)=>{let Y=l.validateRelative(v),T=vv(Y);return T==="."?T:T.replaceAll("\\","/")},stat:async(v)=>{let{abs:Y}=await K(v);try{return await Nu(Y)}catch(T){throw l.mapOsError(T,{path:v,resolved:Y,operation:"stat"})}},deleteDir:async(v,Y)=>{if(Y?.requireEmpty&&Y?.recursive)throw l.fsError("VALIDATION_ERROR","requireEmpty and recursive are mutually exclusive",{path:v});let{abs:T}=await K(v);if(T===$)throw l.fsError("VALIDATION_ERROR",`Cannot delete boundary root: '${v}' → '${T}'`,{path:v,resolved:T,boundary:$});let z;try{z=await Nu(T)}catch(W){if(W.code==="ENOENT")return{deleted:!1,reason:"NOT_FOUND"};throw l.mapOsError(W,{path:v,resolved:T,operation:"stat"})}if(!z.isDirectory())return{deleted:!1,reason:"NOT_DIR"};if(Y?.requireEmpty){let W;try{W=await Tv(T)}catch(H){throw l.mapOsError(H,{path:v,resolved:T,operation:"readdir"})}if(W.length>0)throw l.fsError("DIRECTORY_NOT_EMPTY",`Directory not empty: '${v}' → '${T}'`,{path:v,resolved:T});try{return await Yv(T),{deleted:!0}}catch(H){if(H.code==="ENOENT")return{deleted:!1,reason:"NOT_FOUND"};if(H.code==="ENOTEMPTY")throw l.fsError("DIRECTORY_NOT_EMPTY",`Directory not empty (race condition): '${v}' → '${T}'`,{path:v,resolved:T});throw l.mapOsError(H,{path:v,resolved:T,operation:"rmdir"})}}try{return await Ov(T,{recursive:Y?.recursive??!1}),{deleted:!0}}catch(W){if(W.code==="ENOENT")return{deleted:!1,reason:"NOT_FOUND"};if(W.code==="ENOTEMPTY"||W.code==="EISDIR"||W.code==="EACCES")throw l.fsError("DIRECTORY_NOT_EMPTY",`Directory not empty: '${v}' → '${T}'`,{path:v,resolved:T,originalCode:W.code});throw l.mapOsError(W,{path:v,resolved:T,operation:"deleteDir"})}}})},Hv=Object.freeze({create:zv}),_q=Hv;var Wv=(_)=>{let{idPattern:q,entityName:$}=_,f=(w)=>{return q.test(w)};return Object.freeze({isId:f,validateId:(w)=>{return f(w)},resolve:(w)=>{if(f(w))return{kind:"id",value:w};return{kind:"path",value:w}},getPattern:()=>{return q},getEntityName:()=>{return $}})},kv=Object.freeze({create:Wv}),u6=kv;var v$=u6.create({idPattern:/^doc\d{3,}$/,entityName:"project-doc"}),z$=u6.create({idPattern:/^sdoc\d{3,}$/,entityName:"shared-doc"}),o3=(_)=>{if(v$.isId(_))return"project";if(z$.isId(_))return"shared";return},Jv=(_)=>{return v$.isId(_)||z$.isId(_)},du=(_)=>{return _==="project"?v$:z$},Zv=(_,q)=>{return du(q).validateId(_)},hv=Object.freeze({project:v$,shared:z$,detectScopeFromId:o3,isdocId:Jv,getResolverForScope:du,validateIdForScope:Zv}),D8=hv;import{dirname as Av}from"path";var Eu="---",j8=(_,q,$)=>{let f=new Error(q);if(f.code=_,$!==void 0)f.data=$;throw f},Xv=(_)=>{let{fileServiceByScope:q,folderServiceByScope:$,indexFilename:f}=_,K=(Z)=>{if(Z==="project")return q.project;if(Z==="shared")return q.shared;return j8("INVALID_SCOPE",`Unknown scope '${Z}'`,{scope:Z})},P=(Z)=>{if(Z==="project")return $.project;if(Z==="shared")return $.shared;return j8("INVALID_SCOPE",`Unknown scope '${Z}'`,{scope:Z})},u=async(Z)=>{if(Z.scope)return{scope:Z.scope};if(Z.kind==="id"){let D=o3(Z.id);if(!D)j8("INVALID_ID_FORMAT",`Invalid doc ID format: '${Z.id}'. Expected docNNN or sdocNNN`,{id:Z.id});return{scope:D}}if(Z.kind==="path"){try{if((await w("project")).pathToId[Z.path])return{scope:"project"}}catch{}try{if((await w("shared")).pathToId[Z.path])return{scope:"shared",fallback:!0}}catch{}return{scope:"project"}}let m=Z;return j8("VALIDATION_ERROR",`Unknown address kind: ${JSON.stringify(m)}`)},j=(Z)=>{return f},w=async(Z)=>{let m=j(Z),D=K(Z);try{let b=await D.readText(m),h=JSON.parse(b);if(!h.id&&!h.pathToId){let G={id:{},pathToId:{}};for(let[r,C]of Object.entries(h))G.id[r]={path:C},G.pathToId[C]=r;return await O(Z,G),G}return h}catch(b){if(b.code==="NOT_FOUND")return{id:{},pathToId:{}};throw b}},O=async(Z,m)=>{let D=j(Z),b=K(Z),h=JSON.stringify(m,null,2);await b.writeText(D,h)},v=(Z)=>{let m=Z.split(`
|
|
215
|
-
`);if(m.length<3||m[0].trim()!==
|
|
212
|
+
`,K)}while(f!==-1);return P+=_.substr(K),P};Gw.exports={stringReplaceAll:Bp,stringEncaseCRLFWithFirstIndex:Fp}});var Vw=X((_R,bw)=>{var Up=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Cw=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Qp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,_b=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,qb=new Map([["n",`
|
|
213
|
+
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function pw(_){let q=_[0]==="u",$=_[1]==="{";if(q&&!$&&_.length===5||_[0]==="x"&&_.length===3)return String.fromCharCode(parseInt(_.slice(1),16));if(q&&$)return String.fromCodePoint(parseInt(_.slice(2,-1),16));return qb.get(_)||_}function $b(_,q){let $=[],f=q.trim().split(/\s*,\s*/g),K;for(let P of f){let u=Number(P);if(!Number.isNaN(u))$.push(u);else if(K=P.match(Qp))$.push(K[2].replace(_b,(j,w,O)=>w?pw(w):O));else throw new Error(`Invalid Chalk template style argument: ${P} (in style '${_}')`)}return $}function fb(_){Cw.lastIndex=0;let q=[],$;while(($=Cw.exec(_))!==null){let f=$[1];if($[2]){let K=$b(f,$[2]);q.push([f].concat(K))}else q.push([f])}return q}function rw(_,q){let $={};for(let K of q)for(let P of K.styles)$[P[0]]=K.inverse?null:P.slice(1);let f=_;for(let[K,P]of Object.entries($)){if(!Array.isArray(P))continue;if(!(K in f))throw new Error(`Unknown Chalk style: ${K}`);f=P.length>0?f[K](...P):f[K]}return f}bw.exports=(_,q)=>{let $=[],f=[],K=[];if(q.replace(Up,(P,u,j,w,O,v)=>{if(u)K.push(pw(u));else if(w){let Y=K.join("");K=[],f.push($.length===0?Y:rw(_,$)(Y)),$.push({inverse:j,styles:fb(w)})}else if(O){if($.length===0)throw new Error("Found extraneous } in Chalk template literal");f.push(rw(_,$)(K.join(""))),K=[],$.pop()}else K.push(v)}),f.push(K.join("")),$.length>0){let P=`Chalk template literal is missing ${$.length} closing bracket${$.length===1?"":"s"} (\`}\`)`;throw new Error(P)}return f.join("")}});var Iw=X((qR,Rw)=>{var Eq=yf(),{stdout:lP,stderr:yP}=mw(),{stringReplaceAll:Kb,stringEncaseCRLFWithFirstIndex:Pb}=Dw(),{isArray:Wf}=Array,Nw=["ansi","ansi","ansi256","ansi16m"],p6=Object.create(null),ub=(_,q={})=>{if(q.level&&!(Number.isInteger(q.level)&&q.level>=0&&q.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let $=lP?lP.level:0;_.level=q.level===void 0?$:q.level};class nw{constructor(_){return Sw(_)}}var Sw=(_)=>{let q={};return ub(q,_),q.template=(...$)=>Ew(q.template,...$),Object.setPrototypeOf(q,kf.prototype),Object.setPrototypeOf(q.template,q),q.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},q.template.Instance=nw,q.template};function kf(_){return Sw(_)}for(let[_,q]of Object.entries(Eq))p6[_]={get(){let $=Jf(this,tP(q.open,q.close,this._styler),this._isEmpty);return Object.defineProperty(this,_,{value:$}),$}};p6.visible={get(){let _=Jf(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:_}),_}};var dw=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let _ of dw)p6[_]={get(){let{level:q}=this;return function(...$){let f=tP(Eq.color[Nw[q]][_](...$),Eq.color.close,this._styler);return Jf(this,f,this._isEmpty)}}};for(let _ of dw){let q="bg"+_[0].toUpperCase()+_.slice(1);p6[q]={get(){let{level:$}=this;return function(...f){let K=tP(Eq.bgColor[Nw[$]][_](...f),Eq.bgColor.close,this._styler);return Jf(this,K,this._isEmpty)}}}}var jb=Object.defineProperties(()=>{},{...p6,level:{enumerable:!0,get(){return this._generator.level},set(_){this._generator.level=_}}}),tP=(_,q,$)=>{let f,K;if($===void 0)f=_,K=q;else f=$.openAll+_,K=q+$.closeAll;return{open:_,close:q,openAll:f,closeAll:K,parent:$}},Jf=(_,q,$)=>{let f=(...K)=>{if(Wf(K[0])&&Wf(K[0].raw))return Mw(f,Ew(f,...K));return Mw(f,K.length===1?""+K[0]:K.join(" "))};return Object.setPrototypeOf(f,jb),f._generator=_,f._styler=q,f._isEmpty=$,f},Mw=(_,q)=>{if(_.level<=0||!q)return _._isEmpty?"":q;let $=_._styler;if($===void 0)return q;let{openAll:f,closeAll:K}=$;if(q.indexOf("\x1B")!==-1)while($!==void 0)q=Kb(q,$.close,$.open),$=$.parent;let P=q.indexOf(`
|
|
214
|
+
`);if(P!==-1)q=Pb(q,K,f,P);return f+q+K},gP,Ew=(_,...q)=>{let[$]=q;if(!Wf($)||!Wf($.raw))return q.join(" ");let f=q.slice(1),K=[$.raw[0]];for(let P=1;P<$.length;P++)K.push(String(f[P-1]).replace(/[{}\\]/g,"\\$&"),String($.raw[P]));if(gP===void 0)gP=Vw();return gP(_,K.join(""))};Object.defineProperties(kf.prototype,p6);var Zf=kf();Zf.supportsColor=lP;Zf.stderr=kf({level:yP?yP.level:0});Zf.stderr.supportsColor=yP;Rw.exports=Zf});S8();S8();class Af{commands=new Map;groups=new Map;aliases=new Map;register(_,q=[]){let $=[...q,_.name].join("/");if(_.type==="command"){let f=_;if(this.commands.set($,f),f.aliases)for(let K of f.aliases){let P=[...q,K].join("/");this.aliases.set(P,$)}}else{let f=_;this.groups.set($,f);for(let K of f.children)this.register(K,[...q,_.name])}}lookup(_){if(_.length===0)return{type:"unknown",matchedPath:[],remainingPath:[]};for(let $=_.length;$>0;$--){let f=_.slice(0,$),K=f.join("/"),P=this.aliases.get(K)||K,u=this.commands.get(P);if(u)return{type:"command",command:u,matchedPath:f};let j=this.groups.get(P);if(j){if(_.slice($).length===0)return{type:"group",group:j,matchedPath:f}}}let q=0;for(let $=1;$<=_.length;$++){let K=_.slice(0,$).join("/"),P=this.aliases.get(K)||K;if(this.groups.has(P)||this.commands.has(P))q=$}return{type:"unknown",matchedPath:_.slice(0,q),remainingPath:_.slice(q)}}getTopLevel(){let _=[];for(let[q,$]of this.commands.entries())if(!q.includes("/"))_.push($);for(let[q,$]of this.groups.entries())if(!q.includes("/"))_.push($);return _}}function LP(_){let q=[],$=0;for(;$<_.length;$++){let K=_[$];if(!K)break;if(K.startsWith("-"))break;q.push(K)}let f=_.slice($);return{commandPath:q,paramArgv:f}}class Xf{registry;strict;constructor(_){this.registry=new Af,this.strict=_.strict??!1;for(let q of _.commands)this.registry.register(q)}dispatch(_){if(_.length===0)return{type:"show_help"};if(_[0]==="--help"||_[0]==="-h")return{type:"show_help"};let{commandPath:q,paramArgv:$}=LP(_);if(q.length===0)return{type:"show_help"};let f=this.registry.lookup(q);if(f.type==="command"){let w=[...q.slice(f.matchedPath.length),...$];return{type:"command",command:f.command,paramArgv:w,matchedPath:f.matchedPath}}if(f.type==="group"&&f.group){if(f.group.defaultChild){let j=[...q,f.group.defaultChild],w=this.registry.lookup(j);if(w.type==="command")return{type:"command",command:w.command,paramArgv:$,matchedPath:w.matchedPath};if(w.type==="group")return{type:"group_without_subcommand",group:w.group,matchedPath:w.matchedPath}}return{type:"group_without_subcommand",group:f.group,matchedPath:f.matchedPath}}let K=f.remainingPath?.[0]||q[q.length-1],P=f.matchedPath.join(" "),u;if(this.strict)if(P)u=`Unknown command: "${K}" in "${P}"`;else u=`Unknown command: "${K}"`;else if(P)u=`Unknown command: "${K}" in "${P}". Use --help to see available commands.`;else u=`Unknown command: "${K}". Use --help to see available commands.`;return{type:"unknown_command",error:u}}getRegistry(){return this.registry}}function eP(_){let q=[],$=!1;for(let f=0;f<_.length;f++){let K=_[f];if(K===void 0||K===null)continue;if($){q.push({type:"positional",value:K});continue}if(K==="--"){$=!0,q.push({type:"separator",value:K});continue}if(K.startsWith("--")&&K.includes("=")){let P=K.indexOf("="),u=K.slice(2,P),j=K.slice(P+1);q.push({type:"flag",value:K,flagName:u,flagValue:j});continue}if(K.startsWith("--")){let P=K.slice(2);q.push({type:"flag",value:K,flagName:P});continue}if(K.startsWith("-")&&K.length>1){q.push({type:"flag",value:K});continue}q.push({type:"positional",value:K})}return q}function Uw(_){let q=new Map;for(let $ of _)if($.shape==="flag"&&$.short)q.set($.short,$.long);return q}function Qw(_,q){let $=_.slice(1),f=$[0];if(!f||!q.has(f))return[{type:"flag",value:_,flagName:_.slice(1)}];let K=[],P=!1;if($.length>1)for(let u=1;u<$.length;u++){let j=$[u];if(!j||!q.has(j)){P=!0;break}}if(P){let u=q.get(f);if(!u)return[{type:"flag",value:_,flagName:f}];return K.push({type:"flag",value:_,flagName:u,flagValue:$.slice(1)}),K}for(let u of $){let j=q.get(u);if(j)K.push({type:"flag",value:`-${u}`,flagName:j});else K.push({type:"flag",value:`-${u}`,flagName:u})}return K}function _O(_){if(!_)return!1;if(_.type==="positional")return!0;if(_.type==="separator")return!1;if(_.type==="flag")return!1;return!0}function sP(_,q){let $={},f=[],K=new Set,P=Uw(q),u=new Set(q.filter((O)=>O.shape==="flag").map((O)=>O.long)),j=[],w=new Map;for(let O=0;O<_.length;O++){let v=_[O];if(v===void 0)continue;if(v.type==="flag"&&v.value.startsWith("-")&&!v.value.startsWith("--")){let Y=Qw(v.value,P);for(let T of Y)w.set(j.length,O),j.push(T)}else w.set(j.length,O),j.push(v)}for(let O=0;O<j.length;O++){let v=j[O];if(v===void 0)continue;if(v.type!=="flag")continue;let Y=v.flagName;if(!Y)continue;let T=Y,z=v.flagValue,W=!1;if(T.startsWith("no-"))W=!0,T=T.slice(3);if(!u.has(T)){f.push(v.value);continue}if(z!==void 0){xP($,T,z);continue}if(W){$[T]=!1;continue}let k=j[O+1];if(k&&_O(k)){if(xP($,T,k.value),k.type==="positional"){let A=w.get(O+1);if(A!==void 0)K.add(A)}O++;continue}$[T]=!0}return{flags:$,unknownFlags:f,consumedPositionalIndices:K}}function xP(_,q,$){let f=_[q];if(f===void 0)if(typeof $==="string"&&$.includes(","))_[q]=$.split(",").map((K)=>K.trim());else _[q]=$;else if(Array.isArray(f))if(typeof $==="string"&&$.includes(","))f.push(...$.split(",").map((K)=>K.trim()));else f.push($);else{let K=[f];if(typeof $==="string"&&$.includes(","))K.push(...$.split(",").map((P)=>P.trim()));else K.push($);_[q]=K}}function BP(_,q){let $=eP(_),{flags:f,unknownFlags:K,consumedPositionalIndices:P}=sP($,q),u=[];for(let j=0;j<$.length;j++){let w=$[j];if(w===void 0)continue;if(w.type==="positional"&&!P.has(j))u.push(w.value)}return{positionals:u,flags:f,unknownFlags:K}}pf();oq();class V3{_state={name:void 0,version:void 0,description:void 0,strict:void 0,colorScheme:void 0,spinnerConfig:void 0,signalConfig:void 0};_commands=[];name(_){return this._state.name=_,this}version(_){return this._state.version=_,this}description(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Description must be a non-empty string");return this._state.description=_,this}strict(_){return this._state.strict=_,this}colorScheme(_){return this._state.colorScheme=_,this}spinner(_){return this._state.spinnerConfig=_,this}signal(_){return this._state.signalConfig=_,this}command(_){if(!_||_.type!=="command")throw new t("command() requires a built Command object");for(let q of this._commands){if(q.name===_.name)throw new t(`Duplicate command name "${_.name}" at app level`);if(_.aliases){for(let $ of _.aliases)if(q.name===$)throw new t(`Command alias "${$}" conflicts with existing command "${q.name}"`)}if(q.type==="command"&&q.aliases){let $=q.aliases||[];for(let f of $)if(f===_.name)throw new t(`Command name "${_.name}" conflicts with existing alias "${f}"`)}}return this._commands.push(_),this}group(_){if(!_||_.type!=="group")throw new t("group() requires a built CommandGroup object");for(let q of this._commands)if(q.name===_.name)throw new t(`Duplicate group name "${_.name}" at app level`);return this._commands.push(_),this}buildApp(){return{name:this._state.name,version:this._state.version,description:this._state.description,strict:this._state.strict,colorScheme:this._state.colorScheme,spinnerConfig:this._state.spinnerConfig,signalConfig:this._state.signalConfig,commands:this._commands}}async run(_){if(!Array.isArray(_))throw new TypeError("argv must be an array of strings");let q=this.buildApp(),f=new Xf(q).dispatch(_);if(f.type==="show_help"){let K=T2(q);console.log(K),process.exit(0)}if(f.type==="group_without_subcommand"){if(f.group&&f.matchedPath){let K=q.name?[q.name,...f.matchedPath]:f.matchedPath,P=v2(f.group,K);console.error(P),process.exit(2)}console.error("Error: CommandGroup invoked without subcommand"),process.exit(2)}if(f.type==="unknown_command"){let P=Q8(q.colorScheme).error(f.error||"Unknown command");console.error(P),process.exit(2)}if(f.type==="command"&&f.command){let{executeCommand:K}=await Promise.resolve().then(() => (Ju(),ku)),P=BP(f.paramArgv||[],f.command.params),u=q.name?[q.name,...f.matchedPath||[f.command.name]]:f.matchedPath||[f.command.name],j=await K({command:f.command,parsedArgv:P,argv:f.paramArgv,commandPath:u,signalConfig:this._state.signalConfig});if(j.error){let w=Q8(q.colorScheme);console.error(w.error(j.error.message))}process.exit(j.exitCode)}return Promise.resolve()}}function M3(){return new V3}S8();S8();class Zu{_inferValue;_inferName;_inferRequired;_name;_type;_shape;_index;_long;_short;_required=!1;_env;_default;_stdin=!1;_prompt;_validate;_validationRules=[];name(_){if(!_||typeof _!=="string")throw new TypeError("Parameter name must be a non-empty string");return this._name=_,this}type(_){let q=["string","number","boolean","string[]","number[]"];if(!q.includes(_))throw new TypeError(`Invalid param type: ${_}. Must be one of: ${q.join(", ")}`);return this._type=_,this}positional(_){if(typeof _!=="number"||_<0)throw new TypeError("Positional index must be a non-negative number");if(this._shape==="flag")throw new t("Parameter cannot be both positional and flag. Choose one.");return this._shape="positional",this._index=_,this}flag(_,q){if(!_||typeof _!=="string")throw new TypeError("Flag long name must be a non-empty string");if(q!==void 0&&typeof q!=="string")throw new TypeError("Flag short name must be a string");if(this._shape==="positional")throw new t("Parameter cannot be both flag and positional. Choose one.");return this._shape="flag",this._long=_,this._short=q,this}env(_){if(!_||typeof _!=="string")throw new TypeError("Environment variable name must be a non-empty string");return this._env=_,this}default(_){return this._default=_,this}required(){return this._required=!0,this}optional(){return this._required=!1,this}stdin(){return this._stdin=!0,this}prompt(_){if(_===void 0||_===!0)this._prompt=!0;else if(typeof _==="string")this._prompt={message:_};else if(typeof _==="object")this._prompt=_;else throw new TypeError("prompt() accepts boolean, string, or PromptConfig object");return this}validate(_){if(typeof _==="function")this._validate=_;else if(Array.isArray(_))this._validationRules.push(..._);else if(typeof _==="object"&&_!==null)this._validationRules.push(_);else throw new TypeError("validate() accepts ValidationRule, ValidationRule[], or Validator function");return this}build(){if(!this._name)throw new t("Parameter must have a name. Call .name(string) before .build()");if(!this._type)throw new t(`Parameter "${this._name}" must have a type. Call .type(ParamType) before .build()`);if(!this._shape)throw new t(`Parameter "${this._name}" must be either positional or flag. Call .positional(index) or .flag(long, short?) before .build()`);if(this._default!==void 0&&this._prompt)throw new t(`Parameter "${this._name}" cannot have both default() and prompt(). These options are mutually exclusive.`);if(this._shape==="positional")return{shape:"positional",name:this._name,type:this._type,index:this._index,required:this._required,env:this._env,default:this._default,stdin:this._stdin,prompt:this._prompt,validate:this._validate,validationRules:this._validationRules.length>0?this._validationRules:void 0};else return{shape:"flag",name:this._name,type:this._type,long:this._long,short:this._short,required:this._required,env:this._env,default:this._default,stdin:this._stdin,prompt:this._prompt,validate:this._validate,validationRules:this._validationRules.length>0?this._validationRules:void 0}}}function N3(){return new Zu}var RT=new Set(["help","version"]),IT=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;function U6(_,q="command"){if(!_||typeof _!=="string"||_.trim()==="")return`${q} name must be a non-empty string`;if(RT.has(_.toLowerCase()))return`${q} name "${_}" is reserved and cannot be used`;if(!IT.test(_))return`${q} name "${_}" contains invalid characters. Only alphanumeric, dash, and underscore characters are allowed, and must start with alphanumeric`;return null}function hu(_,q,$="command"){if(!Array.isArray(_))return"aliases must be an array of strings";let f=new Set;for(let K of _){let P=U6(K,$);if(P)return`Invalid alias: ${P}`;if(K===q)return`Alias "${K}" cannot be the same as the ${$} name`;if(f.has(K))return`Duplicate alias "${K}"`;f.add(K)}return null}class Au{_name;_aliases;_summary;_description;_spinnerConfig;_loggerConfig;_paramConfigurators=[];_run;_errorConfig;_preValidate;constructor(_){let q=U6(_,"command");if(q)throw new t(q);this._name=_}aliases(_){let q=hu(_,this._name,"command");if(q)throw new t(q);return this._aliases=_,this}summary(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Summary must be a non-empty string");return this._summary=_,this}description(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Description must be a non-empty string");return this._description=_,this}spinner(_){return this._spinnerConfig=_,this}logger(_){return this._loggerConfig=_,this}param(_){if(typeof _!=="function")throw new TypeError("param configurator must be a function");return this._paramConfigurators.push(_),this}run(_){if(typeof _!=="function")throw new TypeError("run handler must be a function");return this._run=_,this}onError(_){return this._errorConfig=_,this}preValidate(_){if(typeof _!=="function")throw new TypeError("preValidate hook must be a function");return this._preValidate=_,this}build(){if(!this._run)throw new t("Command must have a run handler. Call .run(handler) before .build()");let _=this._paramConfigurators.map((P)=>{let u=P(N3());if(typeof u.build!=="function")throw new t("param() configurator must return a ParamBuilder. Do NOT call .build() inside the param() callback.");return u.build()});if(_.filter((P)=>P.stdin===!0).length>1)throw new t(`Command "${this._name}" has multiple params with stdin(). Only one param can consume stdin.`);let $=new Set;for(let P of _){let u=P.name;if($.has(u))throw new t(`Command "${this._name}" has duplicate param name "${u}"`);$.add(u)}let f=_.filter((P)=>P.shape==="positional");for(let P=0;P<f.length-1;P++){let u=f[P];if(u.type==="string[]"||u.type==="number[]")throw new t(`Command "${this._name}": variadic positional param "${u.name}" must be in final position. Only the last positional param can be an array type.`)}return{type:"command",id:this._name,name:this._name,aliases:this._aliases,summary:this._summary,description:this._description,params:_,run:this._run,errorConfig:this._errorConfig,spinnerConfig:this._spinnerConfig,loggerConfig:this._loggerConfig,preValidate:this._preValidate}}}function c(_){return new Au(_)}S8();class n3{_name;_summary;_description;_children=[];_parent;_defaultChild;constructor(_,q){let $=U6(_,"group");if($)throw new t($);this._name=_,this._parent=q}summary(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Summary must be a non-empty string");return this._summary=_,this}description(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("Description must be a non-empty string");return this._description=_,this}command(_){if(!_||_.type!=="command")throw new TypeError("command() requires a Command object. Use build() on CommandBuilder first.");return this._children.push(_),this}group(_){if(!_||_.type!=="group")throw new t("group() requires a CommandGroup object. Use build() on CommandGroupBuilder first.");return this._children.push(_),this}commandGroup(_){if(!_||typeof _!=="string")throw new TypeError("Command group name must be a non-empty string");return new n3(_,this)}defaultChild(_){if(!_||typeof _!=="string"||_.trim()==="")throw new TypeError("defaultChild name must be a non-empty string");return this._defaultChild=_,this}build(){if(this._children.length===0)throw new t(`CommandGroup "${this._name}" must have at least one command or command group. Add children with .command() or .commandGroup()`);let _=new Set;for(let $ of this._children){if(_.has($.name))throw new t(`CommandGroup "${this._name}" has duplicate child name "${$.name}"`);if(_.add($.name),$.type==="command"&&$.aliases){let f=$.aliases||[];for(let K of f){if(_.has(K))throw new t(`CommandGroup "${this._name}" has duplicate child name/alias "${K}"`);_.add(K)}}}if(this._defaultChild){if(!_.has(this._defaultChild)){let $=Array.from(_).join(", ");throw new t(`CommandGroup "${this._name}" has invalid defaultChild "${this._defaultChild}". Available children: ${$}`)}}let q={type:"group",name:this._name,summary:this._summary,description:this._description,children:this._children,defaultChild:this._defaultChild};if(this._parent)return this._parent._children.push(q),this._parent;return q}}function w$(_){return new n3(_)}import{mkdirSync as _w}from"node:fs";import{resolve as qw}from"node:path";import{homedir as zp}from"node:os";import{readFile as BT,writeFile as FT,unlink as ru,stat as d3,rename as UT,access as QT,mkdir as _v}from"fs/promises";import{constants as qv}from"fs";import{resolve as $v,dirname as E3,isAbsolute as fv}from"path";import{resolve as Xu,relative as Gu,normalize as cT,isAbsolute as Du}from"path";import{realpath as mu,lstat as LT}from"fs/promises";var l8=(_,q,$)=>{let f=new Error(q);return f.name=_,f.code=_,f.details=$,f},Cu=(_)=>{if(!_)throw l8("VALIDATION_ERROR","Empty path");if(Du(_))throw l8("VALIDATION_ERROR","Absolute path not allowed",{path:_});let q=cT(_).replaceAll("\\","/");if(q.split("/").some((f)=>f===".."))throw l8("BOUNDARY_VIOLATION","Path contains ..",{path:_});return q},S3=(_,q)=>{let $=Gu(_,q);return $!==""&&!$.startsWith("..")&&!Du($)},eT=async(_,q,$)=>{let f=Cu(q),K=Xu(_),P=Xu(K,f);if($?.followSymlinks)try{P=await mu(P)}catch(j){if(j.code!=="ENOENT")throw j}else try{if((await LT(P)).isSymbolicLink()){let w=await mu(P);if(!S3(K,w))throw l8("BOUNDARY_VIOLATION",`Symlink target escapes boundary: '${q}' → '${w}'`,{path:q,resolved:P,target:w})}}catch(j){if(j.code!=="ENOENT"&&j.code!=="BOUNDARY_VIOLATION")throw j;if(j.code==="BOUNDARY_VIOLATION")throw j}if(!S3(K,P)&&P!==K)throw l8("BOUNDARY_VIOLATION",`Path escapes boundary: '${q}' → '${P}'`,{path:q,resolved:P,boundary:K});let u=Gu(K,P).replaceAll("\\","/");return{abs:P,rel:u}},xT=(_,q)=>{let $=_.code,f=q?.path?q.resolved?`'${q.path}' → '${q.resolved}'`:`'${q.path}'`:"";switch($){case"ENOENT":return l8("NOT_FOUND",`File or directory not found${f?`: ${f}`:""}`,{...q,originalCode:$});case"ENOTEMPTY":return l8("DIRECTORY_NOT_EMPTY",`Directory not empty${f?`: ${f}`:""}`,{...q,originalCode:$});case"ENOTDIR":case"EISDIR":return l8("VALIDATION_ERROR",`Invalid path type${f?`: ${f}`:""}`,{...q,originalCode:$,reason:$==="ENOTDIR"?"not a directory":"is a directory"});case"EACCES":case"EPERM":return l8("FS_ERROR",`Permission denied${f?`: ${f}`:""}`,{...q,originalCode:$});case"EBUSY":return l8("FS_ERROR",`Resource busy or locked${f?`: ${f}`:""}`,{...q,originalCode:$});default:if(q)_.context=q;return _}},sT=Object.freeze({fsError:l8,validateRelative:Cu,insideBoundary:S3,resolveWithinBoundary:eT,mapOsError:xT}),l=sT;var Kv=(_)=>{let{boundaryDir:q}=_;if(!q)throw l.fsError("VALIDATION_ERROR","boundaryDir is required (empty string)",{boundaryDir:q});if(!fv(q))throw l.fsError("VALIDATION_ERROR",`boundaryDir must be an absolute path: '${q}'`,{boundaryDir:q});let $=$v(q),f=async(T)=>{let{abs:z}=await l.resolveWithinBoundary($,T);return z},K=async(T)=>{let z=await f(T);try{return await QT(z,qv.F_OK),!0}catch{return!1}},P=async(T)=>{let z=await f(T);try{return await d3(z)}catch(W){throw l.mapOsError(W,{path:T,resolved:z,operation:"stat"})}},u=async(T)=>{let z=await f(T),W;try{W=await d3(z)}catch(H){throw l.mapOsError(H,{path:T,resolved:z,operation:"stat"})}if(!W.isFile())throw l.fsError("VALIDATION_ERROR","Target is not a regular file",{path:T,resolved:z});try{return await BT(z,"utf-8")}catch(H){throw l.mapOsError(H,{path:T,resolved:z,operation:"readFile"})}},j=async(T,z)=>{let W=await f(T),H;try{H=await d3(W)}catch(A){if(A.code==="ENOENT")H=null;else throw l.mapOsError(A,{path:T,resolved:W,operation:"stat"})}if(H&&!H.isFile())throw l.fsError("VALIDATION_ERROR","Target path exists and is not a regular file",{path:T,resolved:W});try{await _v(E3(W),{recursive:!0})}catch(A){throw l.mapOsError(A,{path:E3(T),resolved:E3(W),operation:"mkdir"})}let k=`${W}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;try{await FT(k,z,{encoding:"utf-8",mode:384}),await UT(k,W)}catch(A){try{await ru(k)}catch{}throw l.mapOsError(A,{path:T,resolved:W,operation:"writeText"})}},w=async(T)=>{let z=await f(T);try{return await ru(z),{deleted:!0}}catch(W){if(W.code==="ENOENT")return{deleted:!1};throw l.mapOsError(W,{path:T,resolved:z,operation:"delete"})}},O=(T,z,W)=>{for(let A=0;A<z.length;A++){let{oldText:p}=z[A];if(p.length===0)throw l.fsError("VALIDATION_ERROR",`Empty oldText in replacement at index ${A} would cause infinite loop`,{index:A})}let H=T,k=0;for(let{oldText:A,newText:p}of z)if(H.includes(A))H=H.replace(A,p),k++;if(W?.requireAll&&k!==z.length)throw l.fsError("VALIDATION_ERROR",`Only ${k} of ${z.length} replacements were applied (requireAll=true)`,{applied:k,total:z.length});return{wouldContent:H,applied:k}};return Object.freeze({exists:K,stat:P,readText:u,resolveSafe:async(T)=>{return l.resolveWithinBoundary($,T)},writeText:j,delete:w,previewReplaceFirst:O,applyReplaceFirst:async(T,z,W)=>{let H=await u(T),{wouldContent:k,applied:A}=O(H,z,W);if(A===0)return{applied:0};return await j(T,k),{applied:A}}})},Pv=Object.freeze({create:Kv}),Q6=Pv;import{mkdir as uv,rm as jv,rmdir as wv,stat as pu,readdir as Ov}from"fs/promises";import{resolve as bu,dirname as Yv,isAbsolute as Vu}from"path";var Tv=(_)=>{let{boundaryDir:q}=_;if(!q)throw l.fsError("VALIDATION_ERROR","boundaryDir is required (empty string)",{boundaryDir:q});if(!Vu(q))throw l.fsError("VALIDATION_ERROR",`boundaryDir must be an absolute path: '${q}'`,{boundaryDir:q});let $=bu(q),f=(v)=>{let Y=v.toLowerCase().replace(/[^a-z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");if(!Y)throw l.fsError("VALIDATION_ERROR",`normalizeName produced empty result from input: '${v}'`,{name:v,normalized:Y});return Y},K=async(v,Y)=>{return await l.resolveWithinBoundary($,v,Y)};return Object.freeze({normalizeName:f,resolve:K,isInsideBoundary:(v)=>{if(!Vu(v))throw l.fsError("VALIDATION_ERROR",`targetAbs must be an absolute path: '${v}'`,{targetAbs:v});let Y=bu(v);return l.insideBoundary($,Y)},ensureDir:async(v)=>{let{abs:Y}=await K(v);try{await uv(Y,{recursive:!0})}catch(T){throw l.mapOsError(T,{path:v,resolved:Y,operation:"ensureDir"})}},parentDir:(v)=>{let Y=l.validateRelative(v),T=Yv(Y);return T==="."?T:T.replaceAll("\\","/")},stat:async(v)=>{let{abs:Y}=await K(v);try{return await pu(Y)}catch(T){throw l.mapOsError(T,{path:v,resolved:Y,operation:"stat"})}},deleteDir:async(v,Y)=>{if(Y?.requireEmpty&&Y?.recursive)throw l.fsError("VALIDATION_ERROR","requireEmpty and recursive are mutually exclusive",{path:v});let{abs:T}=await K(v);if(T===$)throw l.fsError("VALIDATION_ERROR",`Cannot delete boundary root: '${v}' → '${T}'`,{path:v,resolved:T,boundary:$});let z;try{z=await pu(T)}catch(W){if(W.code==="ENOENT")return{deleted:!1,reason:"NOT_FOUND"};throw l.mapOsError(W,{path:v,resolved:T,operation:"stat"})}if(!z.isDirectory())return{deleted:!1,reason:"NOT_DIR"};if(Y?.requireEmpty){let W;try{W=await Ov(T)}catch(H){throw l.mapOsError(H,{path:v,resolved:T,operation:"readdir"})}if(W.length>0)throw l.fsError("DIRECTORY_NOT_EMPTY",`Directory not empty: '${v}' → '${T}'`,{path:v,resolved:T});try{return await wv(T),{deleted:!0}}catch(H){if(H.code==="ENOENT")return{deleted:!1,reason:"NOT_FOUND"};if(H.code==="ENOTEMPTY")throw l.fsError("DIRECTORY_NOT_EMPTY",`Directory not empty (race condition): '${v}' → '${T}'`,{path:v,resolved:T});throw l.mapOsError(H,{path:v,resolved:T,operation:"rmdir"})}}try{return await jv(T,{recursive:Y?.recursive??!1}),{deleted:!0}}catch(W){if(W.code==="ENOENT")return{deleted:!1,reason:"NOT_FOUND"};if(W.code==="ENOTEMPTY"||W.code==="EISDIR"||W.code==="EACCES")throw l.fsError("DIRECTORY_NOT_EMPTY",`Directory not empty: '${v}' → '${T}'`,{path:v,resolved:T,originalCode:W.code});throw l.mapOsError(W,{path:v,resolved:T,operation:"deleteDir"})}}})},vv=Object.freeze({create:Tv}),_q=vv;var zv=(_)=>{let{idPattern:q,entityName:$}=_,f=(w)=>{return q.test(w)};return Object.freeze({isId:f,validateId:(w)=>{return f(w)},resolve:(w)=>{if(f(w))return{kind:"id",value:w};return{kind:"path",value:w}},getPattern:()=>{return q},getEntityName:()=>{return $}})},Hv=Object.freeze({create:zv}),u6=Hv;var O$=u6.create({idPattern:/^doc\d{3,}$/,entityName:"project-doc"}),Y$=u6.create({idPattern:/^sdoc\d{3,}$/,entityName:"shared-doc"}),R3=(_)=>{if(O$.isId(_))return"project";if(Y$.isId(_))return"shared";return},Wv=(_)=>{return O$.isId(_)||Y$.isId(_)},Mu=(_)=>{return _==="project"?O$:Y$},kv=(_,q)=>{return Mu(q).validateId(_)},Jv=Object.freeze({project:O$,shared:Y$,detectScopeFromId:R3,isdocId:Wv,getResolverForScope:Mu,validateIdForScope:kv}),D8=Jv;import{dirname as Zv}from"path";var Nu="---",j8=(_,q,$)=>{let f=new Error(q);if(f.code=_,$!==void 0)f.data=$;throw f},hv=(_)=>{let{fileServiceByScope:q,folderServiceByScope:$,indexFilename:f}=_,K=(Z)=>{if(Z==="project")return q.project;if(Z==="shared")return q.shared;return j8("INVALID_SCOPE",`Unknown scope '${Z}'`,{scope:Z})},P=(Z)=>{if(Z==="project")return $.project;if(Z==="shared")return $.shared;return j8("INVALID_SCOPE",`Unknown scope '${Z}'`,{scope:Z})},u=async(Z)=>{if(Z.scope)return{scope:Z.scope};if(Z.kind==="id"){let D=R3(Z.id);if(!D)j8("INVALID_ID_FORMAT",`Invalid doc ID format: '${Z.id}'. Expected docNNN or sdocNNN`,{id:Z.id});return{scope:D}}if(Z.kind==="path"){try{if((await w("project")).pathToId[Z.path])return{scope:"project"}}catch{}try{if((await w("shared")).pathToId[Z.path])return{scope:"shared",fallback:!0}}catch{}return{scope:"project"}}let m=Z;return j8("VALIDATION_ERROR",`Unknown address kind: ${JSON.stringify(m)}`)},j=(Z)=>{return f},w=async(Z)=>{let m=j(Z),D=K(Z);try{let b=await D.readText(m),h=JSON.parse(b);if(!h.id&&!h.pathToId){let G={id:{},pathToId:{}};for(let[r,C]of Object.entries(h))G.id[r]={path:C},G.pathToId[C]=r;return await O(Z,G),G}return h}catch(b){if(b.code==="NOT_FOUND")return{id:{},pathToId:{}};throw b}},O=async(Z,m)=>{let D=j(Z),b=K(Z),h=JSON.stringify(m,null,2);await b.writeText(D,h)},v=(Z)=>{let m=Z.split(`
|
|
215
|
+
`);if(m.length<3||m[0].trim()!==Nu)return{bodyContent:Z};let D=-1;for(let C=1;C<m.length;C++)if(m[C].trim()===Nu){D=C;break}if(D===-1)return{bodyContent:Z};let b=m.slice(1,D),h=m.slice(0,D+1).join(`
|
|
216
216
|
`),J=m.slice(D+1).join(`
|
|
217
|
-
`).trim(),G=(C)=>{if(C.startsWith('"')&&C.endsWith('"')||C.startsWith("'")&&C.endsWith("'"))return C.slice(1,-1);return C},r={};for(let C of b){let M=C.indexOf(":");if(M===-1)continue;let I=C.slice(0,M).trim(),a=C.slice(M+1).trim();r[I]=G(a)}return{rawFrontMatter:h,frontMatter:Object.keys(r).length>0?r:void 0,bodyContent:J}},Y=(Z,m)=>{switch(m.op){case"replaceOnce":{let{oldText:D,newText:b}=m;if(!Z.includes(D))return{newContent:Z,applied:!1};return{newContent:Z.replace(D,b),applied:!0}}case"replaceAll":{let{oldText:D,newText:b}=m;if(!Z.includes(D))return{newContent:Z,applied:!1};let h=new RegExp(D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");return{newContent:Z.replace(h,b),applied:!0}}case"replaceRegex":{let{pattern:D,flags:b,replacement:h}=m,J=new RegExp(D,b);if(!J.test(Z))return{newContent:Z,applied:!1};return{newContent:Z.replace(J,h),applied:!0}}case"replaceAllContent":{let{content:D}=m;return{newContent:D,applied:!0}}default:{let D=m;return j8("VALIDATION_ERROR",`Unknown edit operation: ${JSON.stringify(D)}`)}}},T=(Z)=>{return D8.isdocId(Z)},z=(Z)=>{if(!Z||Z.trim().length===0)return{valid:!1,reason:"Path cannot be empty"};if(Z.startsWith("/"))return{valid:!1,reason:"Path must be relative (no leading slash)"};if(Z.includes(".."))return{valid:!1,reason:'Path cannot contain ".." segments'};let D=Z.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");if(/[<>:"|?*\0]/.test(D))return{valid:!1,reason:"Path contains invalid characters"};return{valid:!0,normalized:D}},W=(Z)=>{let{scope:m,path:D}=Z;if(m!=="project"&&m!=="shared")j8("INVALID_SCOPE",`Scope must be 'project' or 'shared', got '${m}'`,{scope:m});let b=z(D);if(!b.valid)j8("INVALID_PATH_FORMAT",b.reason,{path:D});return{scope:m,path:b.normalized}},H=async(Z)=>{let{scope:m}=await u(Z),D=P(m),b;if(Z.kind==="path")b=W({...Z,scope:m}).path;else{let{id:J}=Z;if(!T(J))j8("INVALID_ID_FORMAT",`ID must match pattern doc\\d{3,} or sdoc\\d{3,}, got '${J}'`,{id:J});let G=await w(m);if(!G.id[J])j8("doc_NOT_FOUND",`No doc with ID '${J}' in scope '${m}'`,{id:J,scope:m});b=G.id[J].path}return{...await D.resolve(b),scope:m}},k=async(Z)=>{if(Z!=="project"&&Z!=="shared")j8("INVALID_SCOPE",`Scope must be 'project' or 'shared', got '${Z}'`,{scope:Z});let m=await w(Z),D=Z==="project"?"doc":"sdoc",b=new RegExp(`^${D}(\\d{3,})$`),h=0;for(let r of Object.keys(m.id)){let C=r.match(b);if(C){let M=parseInt(C[1],10);if(M>h)h=M}}let J=h+1;return`${D}${J.toString().padStart(3,"0")}`},A=async(Z)=>{let{address:m,content:D}=Z;if(m.kind!=="path")j8("VALIDATION_ERROR","Create requires path-based addressing");let b=m.scope??"project",h=W({...m,scope:b}),{path:J}=h;if(D8.isdocId(J))j8("INVALID_PATH_FORMAT",`Cannot create doc with path '${J}' - matches ID pattern`,{path:J,scope:b});let G=K(b),r=P(b),C=await k(b);if(await G.exists(J))j8("doc_ALREADY_EXISTS",`doc already exists at path '${J}'`,{path:J,scope:b});let I=
|
|
218
|
-
`);if(J.length<3||J[0].trim()!==
|
|
217
|
+
`).trim(),G=(C)=>{if(C.startsWith('"')&&C.endsWith('"')||C.startsWith("'")&&C.endsWith("'"))return C.slice(1,-1);return C},r={};for(let C of b){let M=C.indexOf(":");if(M===-1)continue;let I=C.slice(0,M).trim(),a=C.slice(M+1).trim();r[I]=G(a)}return{rawFrontMatter:h,frontMatter:Object.keys(r).length>0?r:void 0,bodyContent:J}},Y=(Z,m)=>{switch(m.op){case"replaceOnce":{let{oldText:D,newText:b}=m;if(!Z.includes(D))return{newContent:Z,applied:!1};return{newContent:Z.replace(D,b),applied:!0}}case"replaceAll":{let{oldText:D,newText:b}=m;if(!Z.includes(D))return{newContent:Z,applied:!1};let h=new RegExp(D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");return{newContent:Z.replace(h,b),applied:!0}}case"replaceRegex":{let{pattern:D,flags:b,replacement:h}=m,J=new RegExp(D,b);if(!J.test(Z))return{newContent:Z,applied:!1};return{newContent:Z.replace(J,h),applied:!0}}case"replaceAllContent":{let{content:D}=m;return{newContent:D,applied:!0}}default:{let D=m;return j8("VALIDATION_ERROR",`Unknown edit operation: ${JSON.stringify(D)}`)}}},T=(Z)=>{return D8.isdocId(Z)},z=(Z)=>{if(!Z||Z.trim().length===0)return{valid:!1,reason:"Path cannot be empty"};if(Z.startsWith("/"))return{valid:!1,reason:"Path must be relative (no leading slash)"};if(Z.includes(".."))return{valid:!1,reason:'Path cannot contain ".." segments'};let D=Z.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");if(/[<>:"|?*\0]/.test(D))return{valid:!1,reason:"Path contains invalid characters"};return{valid:!0,normalized:D}},W=(Z)=>{let{scope:m,path:D}=Z;if(m!=="project"&&m!=="shared")j8("INVALID_SCOPE",`Scope must be 'project' or 'shared', got '${m}'`,{scope:m});let b=z(D);if(!b.valid)j8("INVALID_PATH_FORMAT",b.reason,{path:D});return{scope:m,path:b.normalized}},H=async(Z)=>{let{scope:m}=await u(Z),D=P(m),b;if(Z.kind==="path")b=W({...Z,scope:m}).path;else{let{id:J}=Z;if(!T(J))j8("INVALID_ID_FORMAT",`ID must match pattern doc\\d{3,} or sdoc\\d{3,}, got '${J}'`,{id:J});let G=await w(m);if(!G.id[J])j8("doc_NOT_FOUND",`No doc with ID '${J}' in scope '${m}'`,{id:J,scope:m});b=G.id[J].path}return{...await D.resolve(b),scope:m}},k=async(Z)=>{if(Z!=="project"&&Z!=="shared")j8("INVALID_SCOPE",`Scope must be 'project' or 'shared', got '${Z}'`,{scope:Z});let m=await w(Z),D=Z==="project"?"doc":"sdoc",b=new RegExp(`^${D}(\\d{3,})$`),h=0;for(let r of Object.keys(m.id)){let C=r.match(b);if(C){let M=parseInt(C[1],10);if(M>h)h=M}}let J=h+1;return`${D}${J.toString().padStart(3,"0")}`},A=async(Z)=>{let{address:m,content:D}=Z;if(m.kind!=="path")j8("VALIDATION_ERROR","Create requires path-based addressing");let b=m.scope??"project",h=W({...m,scope:b}),{path:J}=h;if(D8.isdocId(J))j8("INVALID_PATH_FORMAT",`Cannot create doc with path '${J}' - matches ID pattern`,{path:J,scope:b});let G=K(b),r=P(b),C=await k(b);if(await G.exists(J))j8("doc_ALREADY_EXISTS",`doc already exists at path '${J}'`,{path:J,scope:b});let I=Zv(J);if(I!==".")await r.ensureDir(I);await G.writeText(J,D);let a=await w(b);return a.id[C]={path:J},a.pathToId[J]=C,await O(b,a),{id:C,path:J}},p=async(Z)=>{let{rel:m,scope:D}=await H(Z),h=await K(D).readText(m),{frontMatter:J,bodyContent:G,rawFrontMatter:r}=v(h),C,M;if(Z.kind==="path"){C=W({...Z,scope:D}).path;let g=(await w(D)).pathToId[C];if(!g)return j8("doc_NOT_FOUND",`doc exists but not in index: '${C}'`,{path:C,scope:D});M=g}else if(Z.kind==="id"){M=Z.id;let a=(await w(D)).id[M]?.path;if(!a)return j8("doc_NOT_FOUND",`No doc with ID '${M}'`,{id:M,scope:D});C=a}else{let I=Z;return j8("VALIDATION_ERROR",`Unknown address kind: ${JSON.stringify(I)}`)}return{address:Z,content:h,frontMatter:J,bodyContent:G,path:C,id:M}},V=async(Z,m)=>{let{rel:D,scope:b}=await H(Z),h=K(b),G=await h.readText(D),r=0;for(let C of m){let{newContent:M,applied:I}=Y(G,C);if(G=M,I)r++}if(r===0)return{applied:0};return await h.writeText(D,G),{applied:r}},N=async(Z)=>{let{rel:m,scope:D}=await H(Z),b=await(async()=>{if(Z.kind==="id")return Z.id;else if(Z.kind==="path"){let C=W({...Z,scope:D}),I=(await w(D)).pathToId[C.path];if(!I)return j8("doc_NOT_FOUND",`doc not in index: '${C.path}'`,{path:C.path,scope:D});return I}else{let r=Z;return j8("VALIDATION_ERROR",`Unknown address kind: ${JSON.stringify(r)}`)}})(),h=K(D),J=!1;try{J=(await h.delete(m)).deleted}catch(r){if(r.code==="NOT_FOUND")J=!1;else throw r}let G=await w(D);if(G.id[b]){let r=G.id[b].path;delete G.id[b],delete G.pathToId[r],await O(D,G)}return{deleted:J}},n=async(Z)=>{let{scope:m,pathPrefix:D,includeContent:b=!1}=Z;if(m){if(m!=="project"&&m!=="shared")j8("INVALID_SCOPE",`Scope must be 'project' or 'shared', got '${m}'`,{scope:m});return await S(m,D,b)}let h=await S("project",D,b),J=await S("shared",D,b),G=new Set(h.map((M)=>M.path)),r=new Set(J.map((M)=>M.path));for(let M of h)if(r.has(M.path))M.override="overrides";for(let M of J)if(G.has(M.path))M.override="overridden";let C=[...h,...J];return C.sort((M,I)=>M.path.localeCompare(I.path)),C},S=async(Z,m,D=!1)=>{let b=K(Z),h;try{h=await w(Z)}catch(G){if(G.code==="NOT_FOUND"||G.code==="ENOENT")return[];throw G}let J=[];for(let[G,r]of Object.entries(h.id)){let C=r.path;if(m&&!C.startsWith(m))continue;try{if(D){let M=await b.readText(C),I=await b.stat(C),{frontMatter:a}=v(M);J.push({scope:Z,id:G,path:C,synopsis:a?.synopsis,modifiedAt:I.mtime})}else{let M=await b.stat(C);J.push({scope:Z,id:G,path:C,modifiedAt:M.mtime})}}catch{continue}}return J.sort((G,r)=>G.path.localeCompare(r.path)),J};return Object.freeze({create:A,read:p,editLatest:V,deleteLatest:N,list:n})},Av=Object.freeze({create:hv}),nu=Av;var T$=u6.create({idPattern:/^tpl\d{3,}$/,entityName:"project-template"}),v$=u6.create({idPattern:/^stpl\d{3,}$/,entityName:"shared-template"}),I3=(_)=>{if(T$.isId(_))return"project";if(v$.isId(_))return"shared";return},Xv=(_)=>{return T$.isId(_)||v$.isId(_)},Su=(_)=>{return _==="project"?T$:v$},mv=(_,q)=>{return Su(q).validateId(_)},Gv=Object.freeze({project:T$,shared:v$,detectScopeFromId:I3,isTemplateId:Xv,getResolverForScope:Su,validateIdForScope:mv}),a3=Gv;var B1=W8(o9(),1),F1=W8(x1(),1);import{dirname as jp}from"path";var wp=".index.json",s1="---",U1=(_)=>{let{projectFileService:q,projectFolderService:$,sharedFileService:f,sharedFolderService:K}=_,P=(h)=>{return h==="project"?q:f},u=(h)=>{return h==="project"?$:K},j=(h)=>{return wp},w=(h,J,G)=>{let r=new Error(J);if(r.code=h,G!==void 0)r.data=G;throw r},O=(h)=>{if(!h||h.trim().length===0)return{valid:!1,reason:"Path cannot be empty"};if(h.startsWith("/"))return{valid:!1,reason:"Path cannot start with /"};if(h.includes(".."))return{valid:!1,reason:"Path cannot contain .."};if(/[<>:"|?*\x00]/.test(h))return{valid:!1,reason:"Path contains invalid characters"};return{valid:!0,normalized:h.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"")}},v=async(h)=>{let J=j(h),G=P(h);try{let r=await G.readText(J);return JSON.parse(r)}catch(r){if(r.code==="NOT_FOUND")return{id:{},pathToId:{}};throw r}},Y=async(h,J)=>{let G=j(h),r=P(h),C=JSON.stringify(J,null,2);await r.writeText(G,C)},T=(h)=>{let J=h.split(`
|
|
218
|
+
`);if(J.length<3||J[0].trim()!==s1)return{bodyContent:h,isValid:!1,validationError:"Missing front matter delimiter"};let G=-1;for(let x=1;x<J.length;x++)if(J[x].trim()===s1){G=x;break}if(G===-1)return{bodyContent:h,isValid:!1,validationError:"Missing closing front matter delimiter"};let r=J.slice(1,G).join(`
|
|
219
219
|
`),C=J.slice(0,G+1).join(`
|
|
220
220
|
`),M=J.slice(G+1).join(`
|
|
221
|
-
`).trim(),I;try{I=
|
|
221
|
+
`).trim(),I;try{I=F1.default.parse(r)}catch(x){return{bodyContent:h,isValid:!1,validationError:`YAML parse error: ${x.message}`}}if(!I.type)return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:"Missing required field: type"};let a=["prompt","doc","story-spec","story-tech-doc","subtask","review","feedback","feedback-review","retro"];if(!a.includes(I.type))return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:`Invalid type: ${I.type}. Must be one of: ${a.join(", ")}`};if(!I.params)return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:"Missing required field: params"};if(typeof I.params!=="object"||Array.isArray(I.params))return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:"params must be an object"};let g=["string","number","boolean"],L={};for(let[x,M8]of Object.entries(I.params)){if(typeof M8!=="object"||Array.isArray(M8))return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:`Parameter ${x} definition must be an object`};let K8=M8;if(!K8.type)return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:`Parameter ${x} missing type field`};if(!g.includes(K8.type))return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:`Parameter ${x} has invalid type: ${K8.type}. Must be one of: ${g.join(", ")}`};if(K8.required!==void 0&&typeof K8.required!=="boolean")return{rawFrontMatter:C,bodyContent:M,isValid:!1,validationError:`Parameter ${x} required field must be boolean`};L[x]={type:K8.type,required:K8.required??!1,description:K8.description,default:K8.default}}return{rawFrontMatter:C,frontMatter:{type:I.type,params:L,synopsis:I.synopsis,...I},bodyContent:M,isValid:!0}},z=(h,J)=>{let G=h,r=0;for(let C of J){let M=G;switch(C.op){case"replaceOnce":G=G.replace(C.oldText,C.newText);break;case"replaceAll":{let I=C.oldText.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");G=G.replace(new RegExp(I,"g"),C.newText);break}case"replaceRegex":{let I=new RegExp(C.pattern,C.flags||"");G=G.replace(I,C.replacement);break}case"replaceAllContent":G=C.content;break}if(G!==M||C.op==="replaceAllContent")r++}return{content:G,applied:r}},W=async(h)=>{if(h.kind==="id"){let J=h.scope;if(!J){let C=I3(h.id);if(!C)w("INVALID_ID_FORMAT",`Invalid template ID format: ${h.id}`);J=C}if(!a3.validateIdForScope(h.id,J))w("INVALID_ID_FORMAT",`Invalid template ID format for ${J} scope: ${h.id}`);let r=(await v(J)).id[h.id];if(!r)w("TEMPLATE_NOT_FOUND",`Template not found: ${h.id}`);return{scope:J,path:r.path,id:h.id}}else{let J=O(h.path);if(!J.valid)w("INVALID_PATH_FORMAT",J.reason||"Invalid path format");let G=J.normalized;if(h.scope){let C=(await v(h.scope)).pathToId[G];if(!C)w("TEMPLATE_NOT_FOUND",`Template not found: ${G} in ${h.scope} scope`);return{scope:h.scope,path:G,id:C}}else{let C=(await v("project")).pathToId[G];if(C)return{scope:"project",path:G,id:C};let I=(await v("shared")).pathToId[G];if(I)return{scope:"shared",path:G,id:I};w("TEMPLATE_NOT_FOUND",`Template not found: ${G}`)}}},H=async(h)=>{let J=await v(h),G=h==="project"?"tpl":"stpl",r=new RegExp(`^${G}(\\d{3,})$`),C=0;for(let I of Object.keys(J.id)){let a=I.match(r);if(a){let g=parseInt(a[1],10);if(g>C)C=g}}let M=C+1;return`${G}${M.toString().padStart(3,"0")}`},k=(h,J,G)=>{if(J==="string")return String(h);if(J==="number"){if(typeof h==="number")return h;let r=parseFloat(String(h));if(isNaN(r))w("INVALID_PARAM_TYPE",`Parameter ${G} must be a valid number, got: ${h}`);return r}if(J==="boolean"){if(typeof h==="boolean")return h;let r=String(h).toLowerCase();if(r==="true"||r==="1")return!0;if(r==="false"||r==="0")return!1;w("INVALID_PARAM_TYPE",`Parameter ${G} must be a boolean (true/false/1/0), got: ${h}`)}return h},A=async(h)=>{let J=h.address.scope||"project",G=O(h.address.path);if(!G.valid)w("INVALID_PATH_FORMAT",G.reason||"Invalid path format");let r=G.normalized;if(a3.isTemplateId(r))w("INVALID_PATH_FORMAT","Cannot create template with ID pattern as path");let C=await v(J);if(C.pathToId[r])w("TEMPLATE_ALREADY_EXISTS",`Template already exists at path: ${r}`);let M=T(h.content);if(!M.isValid)w("TEMPLATE_INVALID",M.validationError||"Invalid front matter");let I=await H(J),a=P(J),g=u(J),L=jp(r);if(L&&L!==".")await g.ensureDir(L);return await a.writeText(r,h.content),C.id[I]={path:r,isValid:!0,params:M.frontMatter.params},C.pathToId[r]=I,await Y(J,C),{id:I,path:r}},p=async(h)=>{let J=await W(h),r=await P(J.scope).readText(J.path),C=T(r);return{address:h,content:r,frontMatter:C.frontMatter,bodyContent:C.bodyContent,path:J.path,id:J.id,isValid:C.isValid}},V=async(h,J)=>{let G=Array.from(new Map(h.map((r)=>[JSON.stringify(r),r])).values());return Promise.all(G.map((r)=>p(r)))},N=async(h,J)=>{let G=await W(h),r=P(G.scope),C=await r.readText(G.path),{content:M,applied:I}=z(C,J),a=T(M);await r.writeText(G.path,M);let g=await v(G.scope);if(g.id[G.id]){if(g.id[G.id].isValid=a.isValid,a.isValid&&a.frontMatter)g.id[G.id].params=a.frontMatter.params;await Y(G.scope,g)}return{applied:I}},n=async(h)=>{try{let J=await W(h),G=P(J.scope);try{await G.delete(J.path)}catch(C){if(C.code==="NOT_FOUND"){let M=await v(J.scope);return delete M.id[J.id],delete M.pathToId[J.path],await Y(J.scope,M),{deleted:!1}}throw C}let r=await v(J.scope);return delete r.id[J.id],delete r.pathToId[J.path],await Y(J.scope,r),{deleted:!0}}catch(J){if(J.code==="TEMPLATE_NOT_FOUND")return{deleted:!1};throw J}};return Object.freeze({create:A,read:p,readMany:V,edit:N,delete:n,deleteMany:async(h)=>{let J=Array.from(new Map(h.map((r)=>[JSON.stringify(r),r])).values()),G=[];for(let r of J)G.push(await n(r));return G},list:async(h)=>{let{scope:J,pathPrefix:G,includeContent:r}=h||{};if(J){let C=await v(J),M=[];for(let[I,a]of Object.entries(C.id)){if(G&&!a.path.startsWith(G))continue;let g;if(r)try{let x=await P(J).readText(a.path);g=T(x).frontMatter?.synopsis}catch{}M.push({scope:J,id:I,path:a.path,synopsis:g,isValid:a.isValid})}return M.sort((I,a)=>I.path.localeCompare(a.path))}else{let C=await v("project"),M=await v("shared"),I=[],a=new Map;for(let g of Object.values(C.id)){if(!a.has(g.path))a.set(g.path,new Set);a.get(g.path).add("project")}for(let g of Object.values(M.id)){if(!a.has(g.path))a.set(g.path,new Set);a.get(g.path).add("shared")}for(let[g,L]of Object.entries(C.id)){if(G&&!L.path.startsWith(G))continue;let x;if(r)try{let O_=await q.readText(L.path);x=T(O_).frontMatter?.synopsis}catch{}let M8=a.get(L.path),K8=M8&&M8.size>1?"overrides":void 0;I.push({scope:"project",id:g,path:L.path,synopsis:x,isValid:L.isValid,override:K8})}for(let[g,L]of Object.entries(M.id)){if(G&&!L.path.startsWith(G))continue;let x;if(r)try{let O_=await f.readText(L.path);x=T(O_).frontMatter?.synopsis}catch{}let M8=a.get(L.path),K8=M8&&M8.size>1?"overridden":void 0;I.push({scope:"shared",id:g,path:L.path,synopsis:x,isValid:L.isValid,override:K8})}return I.sort((g,L)=>g.path.localeCompare(L.path))}},move:async(h,J,G)=>{let r=await W(h),C=G||r.scope,M=O(J);if(!M.valid)w("INVALID_PATH_FORMAT",M.reason||"Invalid destination path");let I=M.normalized;if(r.scope===C&&r.path===I)w("TEMPLATE_ALREADY_EXISTS","Source and destination are identical");if((await v(C)).pathToId[I])w("TEMPLATE_ALREADY_EXISTS",`Destination already exists: ${I}`);let L=await P(r.scope).readText(r.path),x=await A({address:{kind:"path",scope:C,path:I},content:L});return await n(h),{oldId:r.id,newId:x.id,oldPath:r.path,newPath:I,sourceScope:r.scope,destinationScope:C}},render:async(h,J)=>{let G=await W(h);if(!(await v(G.scope)).id[G.id].isValid)w("TEMPLATE_INVALID",`Template has invalid front matter: ${G.id}`);let I=await P(G.scope).readText(G.path),a=T(I);if(!a.isValid||!a.frontMatter)w("TEMPLATE_INVALID",`Template has invalid front matter: ${G.id}`);let g=a.frontMatter.params,L={};for(let[K8,O_]of Object.entries(g)){if(O_.required&&!(K8 in J))w("MISSING_REQUIRED_PARAM",`Missing required parameter: ${K8} for template ${G.id}`);let b6;if(K8 in J)b6=k(J[K8],O_.type,K8);else if(O_.default!==void 0)b6=O_.default;else continue;L[K8]=b6}let x=B1.default.create();return x.registerHelper("helperMissing",function(){throw new Error("Custom helpers are not supported")}),x.compile(a.bodyContent,{strict:!0,noEscape:!1,preventIndent:!1})(L)},getParameters:async(h)=>{let J=await W(h),r=(await v(J.scope)).id[J.id];if(!r.isValid)w("TEMPLATE_INVALID",`Template has invalid front matter: ${J.id}`);return r.params}})};import{resolve as vf,dirname as Op}from"path";import{homedir as Yp}from"os";import{existsSync as Tp}from"fs";var vp=(_=process.cwd())=>{let q=vf(_),$=vf("/"),f=vf(Yp(),".swic");while(q!==$){let K=vf(q,".swic");if(K===f)throw new Error("Not in a project directory (found ~/.swic instead). Run swic from within a project.");if(Tp(K))return K;q=Op(q)}throw new Error("Could not find .swic directory. Are you in a SWIC project?")},Q1=Object.freeze({findProjectRoot:vp});var zf="docs",Hf="templates",Hp=".index.json",$w=(_,q)=>{try{_w(_,{recursive:!0}),_w(q,{recursive:!0})}catch($){let f=$ instanceof Error?$.message:String($);throw new Error(`Failed to create swic directories. Please check permissions.
|
|
222
222
|
Project: ${_}
|
|
223
223
|
Shared: ${q}
|
|
224
|
-
Error: ${f}`)}},
|
|
225
|
-
`),q.logger.info(`Created ${w} doc: ${j.id} at ${$}`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
224
|
+
Error: ${f}`)}},Wp=()=>{let _;try{_=Q1.findProjectRoot()}catch{_=qw(process.cwd(),".swic")}let q=qw(zp(),".swic"),$=`${_}/${zf}`,f=`${q}/${zf}`,K=`${_}/${Hf}`,P=`${q}/${Hf}`;return $w($,f),$w(K,P),{projectDataDir:_,sharedDataDir:q}},kp=(_)=>{let{projectBoundaryDir:q,sharedBoundaryDir:$}=_,f=`${q}/${zf}`,K=`${$}/${zf}`,P=`${q}/${Hf}`,u=`${$}/${Hf}`,j=Q6.create({boundaryDir:f}),w=Q6.create({boundaryDir:K}),O=_q.create({boundaryDir:f}),v=_q.create({boundaryDir:K}),Y=Q6.create({boundaryDir:P}),T=Q6.create({boundaryDir:u}),z=_q.create({boundaryDir:P}),W=_q.create({boundaryDir:u}),H=nu.create({fileServiceByScope:{project:j,shared:w},folderServiceByScope:{project:O,shared:v},indexFilename:Hp}),k=U1({projectFileService:Y,projectFolderService:z,sharedFileService:T,sharedFolderService:W});return Object.freeze({DocService:H,TemplateService:k})},Jp=Object.freeze({createServices:kp,lazilyGetDataDirs:Wp}),aP=Jp;import{execSync as Zp}from"child_process";import{writeFileSync as hp,unlinkSync as Ap}from"fs";import{tmpdir as Xp}from"os";import{join as mp}from"path";var Gp=(_)=>{return c("create").summary("Create a new doc (defaults to project scope)").param((q)=>q.name("path").type("string").positional(0).required().prompt('Enter doc path (e.g., "auth/jwt-setup.md")')).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("content").type("string").flag("content","c").stdin()).param((q)=>q.name("interactive").type("boolean").flag("interactive","i")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';if(!q.argv.flags.interactive&&!q.argv.flags.content&&!q.stdin.available)return"Content required. Provide via --content, stdin, or use --interactive";return!0}).run(async(q)=>{let{path:$,scope:f,content:K,interactive:P}=q.params,u;if(P){let O=process.env.EDITOR||"vi",v=mp(Xp(),`doc-create-${Date.now()}.md`);try{if(hp(v,""),Zp(`${O} ${v}`,{stdio:"inherit"}),u=await Bun.file(v).text(),!u||u.trim().length===0)throw new Error("Content cannot be empty")}finally{try{Ap(v)}catch{}}}else{if(!K)throw new Error("Content is required. Provide via --content, stdin, or use --interactive");u=K}let j=await _.DocService.create({address:{kind:"path",scope:f,path:$},content:u}),w=f||"project";q.stdio.stdout.write(`${j.id}
|
|
225
|
+
`),q.logger.info(`Created ${w} doc: ${j.id} at ${$}`)}).onError({exitCode:1,showStack:"auto"}).build()},fw=Object.freeze({create:Gp});import*as Pw from"readline";var Kw=(_)=>{return new Promise((q)=>{let $=Pw.createInterface({input:process.stdin,output:process.stdout});$.question(`${_} [y/N] `,(f)=>{$.close(),q(f.toLowerCase()==="y"||f.toLowerCase()==="yes")})})},Dp=(_)=>{return c("delete").summary("Delete doc(s) - comma-separated (auto-resolves scope, requires confirmation)").param((q)=>q.name("identifier").type("string").positional(0).required()).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("confirm").type("boolean").flag("confirm","y")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{identifier:$,scope:f,confirm:K}=q.params,P=$.includes(",")?[...new Set($.split(",").map((Y)=>Y.trim()).filter(Boolean))]:[$];if(P.length===0)throw new Error("No identifiers provided");let u=P.length===1;for(let Y of P)if(!Y||Y.length===0)throw new Error("Invalid identifier: empty string");let j=await Promise.all(P.map(async(Y)=>{let T=D8.isdocId(Y);return await _.DocService.read(T?{kind:"id",scope:f,id:Y}:{kind:"path",scope:f,path:Y})}));if(!K)if(u){let Y=j[0],T=Y.id.startsWith("sdoc")?"shared":"project";if(!await Kw(`Delete ${T} doc '${Y.path}' (${Y.id})?`)){q.logger.info("Deletion cancelled");return}}else{console.log(`
|
|
226
226
|
docs to delete (${j.length}):
|
|
227
|
-
`);for(let T of j){let z=T.id.startsWith("sdoc")?"shared":"project";console.log(` ${z.padEnd(8)} ${T.path.padEnd(40)} (${T.id})`)}if(!await
|
|
227
|
+
`);for(let T of j){let z=T.id.startsWith("sdoc")?"shared":"project";console.log(` ${z.padEnd(8)} ${T.path.padEnd(40)} (${T.id})`)}if(!await Kw(`
|
|
228
228
|
Delete ${j.length} doc${j.length>1?"s":""}?`)){q.logger.info("Deletion cancelled");return}}let w=[];for(let Y of j){let T=P[j.indexOf(Y)],z=D8.isdocId(T),W=await _.DocService.deleteLatest(z?{kind:"id",scope:f,id:T}:{kind:"path",scope:f,path:T});w.push({id:Y.id,deleted:W.deleted})}let O=w.filter((Y)=>Y.deleted),v=w.length-O.length;if(O.length>0)q.stdio.stdout.write(O.map((Y)=>Y.id).join(`
|
|
229
229
|
`)+`
|
|
230
|
-
`);if(u){let Y=j[0],T=Y.id.startsWith("sdoc")?"shared":"project";if(O.length>0)q.logger.info(`Deleted ${T} doc: ${Y.id} at ${Y.path}`);else q.logger.info(`doc at ${Y.path} was already deleted`)}else{if(O.length>0)q.logger.info(`Deleted ${O.length} doc${O.length>1?"s":""}`);if(v>0)q.logger.info(`${v} doc${v>1?"s were":" was"} already deleted`)}}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
230
|
+
`);if(u){let Y=j[0],T=Y.id.startsWith("sdoc")?"shared":"project";if(O.length>0)q.logger.info(`Deleted ${T} doc: ${Y.id} at ${Y.path}`);else q.logger.info(`doc at ${Y.path} was already deleted`)}else{if(O.length>0)q.logger.info(`Deleted ${O.length} doc${O.length>1?"s":""}`);if(v>0)q.logger.info(`${v} doc${v>1?"s were":" was"} already deleted`)}}).onError({exitCode:1,showStack:"auto"}).build()},uw=Object.freeze({create:Dp});import{execSync as Cp}from"child_process";import{writeFileSync as rp,unlinkSync as pp}from"fs";import{tmpdir as bp}from"os";import{join as Vp}from"path";var Mp=(_)=>{return c("edit").summary("Edit a doc (auto-resolves scope)").param((q)=>q.name("identifier").type("string").positional(0).required()).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("interactive").type("boolean").flag("interactive","i")).param((q)=>q.name("old").type("string").flag("old")).param((q)=>q.name("new").type("string").flag("new")).param((q)=>q.name("mode").type("string").flag("mode","m")).preValidate((q)=>{let{scope:$,mode:f,interactive:K,old:P,new:u}=q.argv.flags;if($&&$!=="project"&&$!=="shared")return'Scope must be "project" or "shared"';if(f&&!["once","all","regex"].includes(f))return"Mode must be one of: once, all, regex";if(!K&&(!P||u===void 0))return"Replace mode requires --old and --new flags (or use --interactive)";return!0}).run(async(q)=>{let{identifier:$,scope:f,interactive:K,old:P,new:u,mode:j}=q.params,w=D8.isdocId($),O=await _.DocService.read(w?{kind:"id",scope:f,id:$}:{kind:"path",scope:f,path:$}),v=[];if(K){let T=process.env.EDITOR||"vi",z=Vp(bp(),`doc-edit-${Date.now()}.md`);try{rp(z,O.content),Cp(`${T} ${z}`,{stdio:"inherit"}),v=[{op:"replaceAllContent",content:await Bun.file(z).text()}]}finally{try{pp(z)}catch{}}}else{let T=j||"all";if(T==="once")v=[{op:"replaceOnce",oldText:P,newText:u}];else if(T==="all")v=[{op:"replaceAll",oldText:P,newText:u}];else if(T==="regex"){let z=P.match(/\/([gimuy]*)$/),W=z?P.slice(0,-z[0].length):P,H=z?z[1]:void 0;v=[{op:"replaceRegex",pattern:W,flags:H,replacement:u}]}}let Y=await _.DocService.editLatest(w?{kind:"id",scope:f,id:$}:{kind:"path",scope:f,path:$},v);q.logger.info(`Applied ${Y.applied} edit(s) to doc: ${O.id}`)}).onError({exitCode:1,showStack:"auto"}).build()},jw=Object.freeze({create:Mp});var ww={project:"\x1B[36m",shared:"\x1B[32m",reset:"\x1B[0m"},Np=(_)=>{return c("list").summary("List docs (defaults to both scopes with override detection)").param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("prefix").type("string").flag("prefix","p")).param((q)=>q.name("full").type("boolean").flag("full","f")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{scope:$,prefix:f,full:K}=q.params,P=await _.DocService.list({scope:$,pathPrefix:f,includeContent:K||!1});if(P.length===0){let v=$?`in ${$} scope`:"";q.logger.info(`No docs found ${v}`);return}let u=Math.max(8,...P.map((v)=>v.id.length)),j=Math.max(10,...P.map((v)=>v.path.length)),w=8,O=10;if(!$)if(K){let v=`${"ID".padEnd(u)} ${"NAME".padEnd(j)} ${"SCOPE".padEnd(w)} ${"OVERRIDE".padEnd(O)} SYNOPSIS`;q.stdio.stdout.write(v+`
|
|
231
231
|
`)}else{let v=`${"ID".padEnd(u)} ${"NAME".padEnd(j)} ${"SCOPE".padEnd(w)} OVERRIDE`;q.stdio.stdout.write(v+`
|
|
232
232
|
`)}else if(K){let v=`${"ID".padEnd(u)} ${"PATH".padEnd(j)} SYNOPSIS`;q.stdio.stdout.write(v+`
|
|
233
233
|
`)}else{let v=`${"ID".padEnd(u)} PATH`;q.stdio.stdout.write(v+`
|
|
234
|
-
`)}for(let v of P){let Y=
|
|
234
|
+
`)}for(let v of P){let Y=ww[v.scope],T=ww.reset;if(!$){let z=v.override||"-";if(K){let W=v.synopsis||"",H=`${Y}${v.id.padEnd(u)}${T} ${v.path.padEnd(j)} ${Y}${v.scope.padEnd(w)}${T} ${z.padEnd(O)} ${W}`;q.stdio.stdout.write(H+`
|
|
235
235
|
`)}else{let W=`${Y}${v.id.padEnd(u)}${T} ${v.path.padEnd(j)} ${Y}${v.scope.padEnd(w)}${T} ${z}`;q.stdio.stdout.write(W+`
|
|
236
236
|
`)}}else if(K){let z=v.synopsis||"",W=`${v.id.padEnd(u)} ${v.path.padEnd(j)} ${z}`;q.stdio.stdout.write(W+`
|
|
237
237
|
`)}else{let z=`${v.id.padEnd(u)} ${v.path}`;q.stdio.stdout.write(z+`
|
|
238
|
-
`)}}}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
239
|
-
`),console.log("Note: Cross-scope move will generate a new ID.");else console.log("Moving doc:"),console.log(` From: ${O} ${w.path} (${w.id})`),console.log(` To: ${v} ${f}`);if(!await
|
|
238
|
+
`)}}}).onError({exitCode:1,showStack:"auto"}).build()},Ow=Object.freeze({create:Np});import*as Yw from"readline";var np=(_)=>{return new Promise((q)=>{let $=Yw.createInterface({input:process.stdin,output:process.stdout});$.question(`${_} [y/N] `,(f)=>{$.close(),q(f.toLowerCase()==="y"||f.toLowerCase()==="yes")})})},Sp=(_)=>{return c("move").summary("Move/rename a doc to a new path (generates new ID)").param((q)=>q.name("source").type("string").positional(0).required().prompt("Source doc (ID or path):")).param((q)=>q.name("destination").type("string").positional(1).required().prompt("Destination path:")).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("toScope").type("string").flag("to-scope","t").prompt({message:"Destination scope (leave blank for same scope):",type:"select",choices:["","project","shared"]})).param((q)=>q.name("confirm").type("boolean").flag("confirm","y")).preValidate((q)=>{let{scope:$,toScope:f}=q.argv.flags;if($&&$!=="project"&&$!=="shared")return'Scope must be "project" or "shared"';if(f&&f!=="project"&&f!=="shared")return'To-scope must be "project" or "shared"';return!0}).run(async(q)=>{let{source:$,destination:f,scope:K,toScope:P,confirm:u}=q.params,j=D8.isdocId($),w=await _.DocService.read(j?{kind:"id",scope:K,id:$}:{kind:"path",scope:K,path:$}),O=w.id.startsWith("sdoc")?"shared":"project",v=P||O,Y=O!==v;if(w.path===f&&O===v)throw new Error("Source and destination are identical");try{throw await _.DocService.read({kind:"path",scope:v,path:f}),new Error(`Destination already exists: ${v} ${f}`)}catch(W){if(!(W.message.includes("No doc")||W.message.includes("not found")||W.message.includes("File or directory")))throw W}if(!u){if(Y)console.log("Moving doc across scopes:"),console.log(` From: ${O.padEnd(8)} ${w.path} (${w.id})`),console.log(` To: ${v.padEnd(8)} ${f} (new ID will be assigned)
|
|
239
|
+
`),console.log("Note: Cross-scope move will generate a new ID.");else console.log("Moving doc:"),console.log(` From: ${O} ${w.path} (${w.id})`),console.log(` To: ${v} ${f}`);if(!await np(`
|
|
240
240
|
Move doc?`)){q.logger.info("Move cancelled");return}}let T=await _.DocService.create({address:{kind:"path",path:f,scope:v},content:w.content}),z=j?{kind:"id",id:$}:{kind:"path",path:$};await _.DocService.deleteLatest(z,w.hash),q.stdio.stdout.write(`${T.id}
|
|
241
|
-
`),q.logger.info(`Moved ${w.id} from ${w.path} to ${f} (new ID: ${T.id})`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
241
|
+
`),q.logger.info(`Moved ${w.id} from ${w.path} to ${f} (new ID: ${T.id})`)}).onError({exitCode:1,showStack:"auto"}).build()},Tw=Object.freeze({create:Sp});var dp=(_)=>{return c("read").summary("Read doc(s) - comma-separated (auto-resolves scope)").param((q)=>q.name("identifier").type("string").positional(0).required()).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("meta").type("boolean").flag("meta","m")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{identifier:$,scope:f,meta:K}=q.params,P=$.includes(",")?[...new Set($.split(",").map((j)=>j.trim()).filter(Boolean))]:[$];if(P.length===0)throw new Error("No identifiers provided");for(let j of P)if(!j||j.length===0)throw new Error("Invalid identifier: empty string");let u=await Promise.all(P.map(async(j)=>{let w=D8.isdocId(j);return await _.DocService.read(w?{kind:"id",scope:f,id:j}:{kind:"path",scope:f,path:j})}));for(let j=0;j<u.length;j++){let w=u[j];if(K)q.stdio.stdout.write(`ID: ${w.id}
|
|
242
242
|
`),q.stdio.stdout.write(`Path: ${w.path}
|
|
243
243
|
`),q.stdio.stdout.write(`---
|
|
244
244
|
`);if(q.stdio.stdout.write(w.content),!w.content.endsWith(`
|
|
245
245
|
`))q.stdio.stdout.write(`
|
|
246
246
|
`);if(j<u.length-1)q.stdio.stdout.write(`
|
|
247
|
-
`)}}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
248
|
-
`),q.logger.info(`Created ${w} template: ${j.id} at ${$}`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
247
|
+
`)}}).onError({exitCode:1,showStack:"auto"}).build()},vw=Object.freeze({create:dp});import{execSync as Ep}from"child_process";import{writeFileSync as Rp,unlinkSync as Ip}from"fs";import{tmpdir as ap}from"os";import{join as op}from"path";var ip=(_)=>{return c("create").summary("Create a new template (defaults to project scope)").param((q)=>q.name("path").type("string").positional(0).required().prompt('Enter template path (e.g., "prompts/story-init.md")')).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("content").type("string").flag("content","c").stdin()).param((q)=>q.name("interactive").type("boolean").flag("interactive","i")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';if(!q.argv.flags.interactive&&!q.argv.flags.content&&!q.stdin.available)return"Content required. Provide via --content, stdin, or use --interactive";return!0}).run(async(q)=>{let{path:$,scope:f,content:K,interactive:P}=q.params,u;if(P){let O=process.env.EDITOR||"vi",v=op(ap(),`template-create-${Date.now()}.md`);try{if(Rp(v,""),Ep(`${O} ${v}`,{stdio:"inherit"}),u=await Bun.file(v).text(),!u||u.trim().length===0)throw new Error("Content cannot be empty")}finally{try{Ip(v)}catch{}}}else{if(!K)throw new Error("Content is required. Provide via --content, stdin, or use --interactive");u=K}let j=await _.TemplateService.create({address:{kind:"path",scope:f,path:$},content:u}),w=f||"project";q.stdio.stdout.write(`${j.id}
|
|
248
|
+
`),q.logger.info(`Created ${w} template: ${j.id} at ${$}`)}).onError({exitCode:1,showStack:"auto"}).build()},zw=Object.freeze({create:ip});import*as Ww from"readline";var Hw=(_)=>{return new Promise((q)=>{let $=Ww.createInterface({input:process.stdin,output:process.stdout});$.question(`${_} [y/N] `,(f)=>{$.close(),q(f.toLowerCase()==="y"||f.toLowerCase()==="yes")})})},gp=(_)=>{return c("delete").summary("Delete one or more templates").param((q)=>q.name("identifier").type("string").positional(0).required().prompt("Enter template ID or path (comma-separated for multiple)")).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("confirm").type("boolean").flag("confirm","y")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{identifier:$,scope:f,confirm:K}=q.params,P=[...new Set($.split(",").map((v)=>v.trim()).filter(Boolean))],u=P.map((v)=>{if(/^(tpl|stpl)\d{3,}$/.test(v))return{kind:"id",id:v,scope:f};else return{kind:"path",path:v,scope:f}});if(!K)if(u.length===1){if(!await Hw(`Delete template "${P[0]}"?`)){q.logger.info("Cancelled");return}}else{q.logger.info("Templates to delete:");for(let Y of P)q.logger.info(` - ${Y}`);if(!await Hw(`Delete ${u.length} templates?`)){q.logger.info("Cancelled");return}}let j=u.length===1?[await _.TemplateService.delete(u[0])]:await _.TemplateService.deleteMany(u),w=[],O=[];for(let v=0;v<j.length;v++)if(j[v].deleted)w.push(P[v]);else O.push(P[v]);if(w.length>0)q.stdio.stdout.write(w.join(`
|
|
249
249
|
`)+`
|
|
250
|
-
`);if(O.length>0)q.logger.warn(`Already deleted: ${O.join(", ")}`);if(w.length>0)q.logger.info(`Deleted ${w.length} template(s)`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
250
|
+
`);if(O.length>0)q.logger.warn(`Already deleted: ${O.join(", ")}`);if(w.length>0)q.logger.info(`Deleted ${w.length} template(s)`)}).onError({exitCode:1,showStack:"auto"}).build()},kw=Object.freeze({delete:gp});import{execSync as lp}from"child_process";import{writeFileSync as yp,unlinkSync as tp}from"fs";import{tmpdir as cp}from"os";import{join as Lp}from"path";var ep=(_)=>{return c("edit").summary("Edit a template").param((q)=>q.name("identifier").type("string").positional(0).required().prompt("Enter template ID or path")).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("interactive").type("boolean").flag("interactive","i")).param((q)=>q.name("old").type("string").flag("old")).param((q)=>q.name("new").type("string").flag("new")).param((q)=>q.name("mode").type("string").flag("mode","m")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';if(q.argv.flags.mode&&!["once","all","regex"].includes(q.argv.flags.mode))return'Mode must be "once", "all", or "regex"';if(q.argv.flags.interactive){if(q.argv.flags.old||q.argv.flags.new||q.argv.flags.mode)return"Cannot use --interactive with --old/--new/--mode"}else if(!q.argv.flags.old||!q.argv.flags.new)return"Either use --interactive OR provide --old and --new";return!0}).run(async(q)=>{let{identifier:$,scope:f,interactive:K,old:P,new:u,mode:j}=q.params,O=/^(tpl|stpl)\d{3,}$/.test($)?{kind:"id",id:$,scope:f}:{kind:"path",path:$,scope:f};if(K){let v=await _.TemplateService.read(O),Y=process.env.EDITOR||"vi",T=Lp(cp(),`template-edit-${Date.now()}.md`);try{yp(T,v.content),lp(`${Y} ${T}`,{stdio:"inherit"});let z=await Bun.file(T).text();if(z===v.content){q.logger.info("No changes made");return}await _.TemplateService.edit(O,[{op:"replaceAllContent",content:z}]),q.logger.info(`Edited template: ${v.id}`)}finally{try{tp(T)}catch{}}}else{let v=j||"once",Y;if(v==="regex"){let z=P,W,H=z.match(/^\/(.+?)\/([gimsuvy]*)$/);if(H)z=H[1],W=H[2]||void 0;Y={op:"replaceRegex",pattern:z,flags:W,replacement:u}}else if(v==="all")Y={op:"replaceAll",oldText:P,newText:u};else Y={op:"replaceOnce",oldText:P,newText:u};let T=await _.TemplateService.edit(O,[Y]);if(T.applied===0)q.logger.warn("No changes made (pattern not found)");else q.logger.info(`Applied ${T.applied} edit operation(s)`)}}).onError({exitCode:1,showStack:"auto"}).build()},Jw=Object.freeze({edit:ep});var cP=W8(Iw(),1),wb=(_)=>{return c("list").summary("List all templates").param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("prefix").type("string").flag("prefix","p")).param((q)=>q.name("full").type("boolean").flag("full","f")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{scope:$,prefix:f,full:K}=q.params,P=await _.TemplateService.list({scope:$,pathPrefix:f,includeContent:K});if(P.length===0){q.logger.info("No templates found");return}let u=Math.max(8,...P.map((w)=>w.id.length)),j=Math.max(8,...P.map((w)=>w.path.length));if($){let w=["ID".padEnd(u),"PATH".padEnd(j),"VALID"];if(K)w.push("SYNOPSIS");q.stdio.stdout.write(w.join(" ")+`
|
|
251
251
|
`)}else{let w=["ID".padEnd(u),"PATH".padEnd(j),"SCOPE".padEnd(7),"VALID".padEnd(5),"OVERRIDE"];if(K)w.push("SYNOPSIS");q.stdio.stdout.write(w.join(" ")+`
|
|
252
|
-
`)}for(let w of P){let O=[];if($){if(O.push(w.id.padEnd(u)),O.push(w.path.padEnd(j)),O.push(w.isValid?"true ":"false"),K)O.push(w.synopsis||"-")}else{let v=w.scope==="project"?
|
|
253
|
-
`)}}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
254
|
-
`),O.sourceScope!==O.destinationScope)q.logger.info(`Moved ${O.sourceScope} template ${O.oldId} to ${O.destinationScope} template ${O.newId}`);else q.logger.info(`Moved template: ${O.oldId} → ${O.newId}`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
252
|
+
`)}for(let w of P){let O=[];if($){if(O.push(w.id.padEnd(u)),O.push(w.path.padEnd(j)),O.push(w.isValid?"true ":"false"),K)O.push(w.synopsis||"-")}else{let v=w.scope==="project"?cP.default.cyan(w.id.padEnd(u)):cP.default.green(w.id.padEnd(u));if(O.push(v),O.push(w.path.padEnd(j)),O.push(w.scope.padEnd(7)),O.push((w.isValid?"true":"false").padEnd(5)),O.push(w.override||"-"),K)O.push(w.synopsis||"-")}q.stdio.stdout.write(O.join(" ")+`
|
|
253
|
+
`)}}).onError({exitCode:1,showStack:"auto"}).build()},aw=Object.freeze({list:wb});import*as ow from"readline";var Ob=(_)=>{return new Promise((q)=>{let $=ow.createInterface({input:process.stdin,output:process.stdout});$.question(`${_} [y/N] `,(f)=>{$.close(),q(f.toLowerCase()==="y"||f.toLowerCase()==="yes")})})},Yb=(_)=>{return c("move").summary("Move or rename a template").param((q)=>q.name("source").type("string").positional(0).prompt("Enter source template ID or path")).param((q)=>q.name("destination").type("string").positional(1).prompt("Enter destination path")).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("toScope").type("string").flag("to-scope","t")).param((q)=>q.name("confirm").type("boolean").flag("confirm","y")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';if(q.argv.flags.toScope&&q.argv.flags.toScope!=="project"&&q.argv.flags.toScope!=="shared")return'To-scope must be "project" or "shared"';return!0}).run(async(q)=>{let{source:$,destination:f,scope:K,toScope:P,confirm:u}=q.params,w=/^(tpl|stpl)\d{3,}$/.test($)?{kind:"id",id:$,scope:K}:{kind:"path",path:$,scope:K};if(!u){let Y=P&&P!==(K||"project")?`Move template from ${K||"project"} to ${P}: "${$}" → "${f}"?`:`Move template "${$}" → "${f}"?`;if(!await Ob(Y)){q.logger.info("Cancelled");return}}let O=await _.TemplateService.move(w,f,P);if(q.stdio.stdout.write(`${O.newId}
|
|
254
|
+
`),O.sourceScope!==O.destinationScope)q.logger.info(`Moved ${O.sourceScope} template ${O.oldId} to ${O.destinationScope} template ${O.newId}`);else q.logger.info(`Moved template: ${O.oldId} → ${O.newId}`)}).onError({exitCode:1,showStack:"auto"}).build()},iw=Object.freeze({move:Yb});var Tb=(_)=>{return c("read").summary("Read one or more templates").param((q)=>q.name("identifier").type("string").positional(0).required().prompt("Enter template ID or path (comma-separated for multiple)")).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("metadata").type("boolean").flag("metadata","m")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{identifier:$,scope:f,metadata:K}=q.params,u=[...new Set($.split(",").map((w)=>w.trim()).filter(Boolean))].map((w)=>{if(/^(tpl|stpl)\d{3,}$/.test(w))return{kind:"id",id:w,scope:f};else return{kind:"path",path:w,scope:f}}),j=u.length===1?[await _.TemplateService.read(u[0])]:await _.TemplateService.readMany(u,K);for(let w=0;w<j.length;w++){let O=j[w];if(K)q.stdio.stdout.write(`ID: ${O.id}
|
|
255
255
|
`),q.stdio.stdout.write(`Path: ${O.path}
|
|
256
256
|
`),q.stdio.stdout.write(`Valid: ${O.isValid}
|
|
257
257
|
`),q.stdio.stdout.write(`---
|
|
258
258
|
`);let v=O.content.endsWith(`
|
|
259
259
|
`)?O.content:O.content+`
|
|
260
260
|
`;if(q.stdio.stdout.write(v),w<j.length-1)q.stdio.stdout.write(`
|
|
261
|
-
`)}}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
261
|
+
`)}}).onError({exitCode:1,showStack:"auto"}).build()},gw=Object.freeze({read:Tb});var vb=(_)=>{return c("render").summary("Render a template with parameters").param((q)=>q.name("identifier").type("string").positional(0).required().prompt("Enter template ID or path")).param((q)=>q.name("scope").type("string").flag("scope","s")).param((q)=>q.name("param").type("string").flag("param","p")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{identifier:$,scope:f,param:K}=q.params,P={};if(K){let O=K.split(",").map((v)=>v.trim()).filter(Boolean);for(let v of O){let Y=v.indexOf("=");if(Y===-1)throw new Error(`Invalid parameter format: ${v}. Use --param key=value or --param key1=value1,key2=value2`);let T=v.slice(0,Y).trim(),z=v.slice(Y+1).trim();if(z==="true")z=!0;else if(z==="false")z=!1;else if(/^\d+(\.\d+)?$/.test(z))z=parseFloat(z);P[T]=z}}let j=/^(tpl|stpl)\d{3,}$/.test($)?{kind:"id",id:$,scope:f}:{kind:"path",path:$,scope:f},w=await _.TemplateService.render(j,P);if(q.stdio.stdout.write(w),!w.endsWith(`
|
|
262
262
|
`))q.stdio.stdout.write(`
|
|
263
|
-
`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
264
|
-
`)}).onError({exitCode:1,showStack:"auto"}).build()},
|
|
263
|
+
`)}).onError({exitCode:1,showStack:"auto"}).build()},lw=Object.freeze({render:vb});var zb=(_)=>{return c("get-parameters").summary("Get parameter definitions for a template").param((q)=>q.name("identifier").type("string").positional(0).required().prompt("Enter template ID or path")).param((q)=>q.name("scope").type("string").flag("scope","s")).preValidate((q)=>{if(q.argv.flags.scope&&q.argv.flags.scope!=="project"&&q.argv.flags.scope!=="shared")return'Scope must be "project" or "shared"';return!0}).run(async(q)=>{let{identifier:$,scope:f}=q.params,P=/^(tpl|stpl)\d{3,}$/.test($)?{kind:"id",id:$,scope:f}:{kind:"path",path:$,scope:f},u=await _.TemplateService.getParameters(P);q.stdio.stdout.write(JSON.stringify({parameters:u},null,2)),q.stdio.stdout.write(`
|
|
264
|
+
`)}).onError({exitCode:1,showStack:"auto"}).build()},yw=Object.freeze({getParameters:zb});try{let{projectDataDir:_,sharedDataDir:q}=aP.lazilyGetDataDirs(),$=aP.createServices({projectBoundaryDir:_,sharedBoundaryDir:q});await M3().name("swic").version("0.1.0").description("SWIC - Stories Workflows Injected Context").group(w$("doc").summary("doc operations").command(fw.create($)).command(uw.create($)).command(jw.create($)).command(Ow.create($)).command(Tw.create($)).command(vw.create($)).build()).group(w$("template").summary("Template operations").command(zw.create($)).command(kw.delete($)).command(Jw.edit($)).command(aw.list($)).command(iw.move($)).command(gw.read($)).command(lw.render($)).command(yw.getParameters($)).build()).run(process.argv.slice(2))}catch(_){console.error(`Error: ${_.message}`),process.exit(1)}
|