builder.io 1.18.6 → 1.18.7
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/cli/index.cjs +33 -29
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +3 -3
- package/server/index.mjs +3 -3
- package/types/tsconfig.tsbuildinfo +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var wse=Object.create;var py=Object.defineProperty;var Ese=Object.getOwnPropertyDescriptor;var Sse=Object.getOwnPropertyNames;var Tse=Object.getPrototypeOf,Ase=Object.prototype.hasOwnProperty;var F=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dy=(t,e)=>{for(var r in e)py(t,r,{get:e[r],enumerable:!0})},rN=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Sse(e))!Ase.call(t,i)&&i!==r&&py(t,i,{get:()=>e[i],enumerable:!(n=Ese(e,i))||n.enumerable});return t};var U=(t,e,r)=>(r=t!=null?wse(Tse(t)):{},rN(e||!t||!t.__esModule?py(r,"default",{value:t,enumerable:!0}):r,t)),_se=t=>rN(py({},"__esModule",{value:!0}),t);var f=F(()=>{{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"
|
|
1
|
+
var wse=Object.create;var py=Object.defineProperty;var Ese=Object.getOwnPropertyDescriptor;var Sse=Object.getOwnPropertyNames;var Tse=Object.getPrototypeOf,Ase=Object.prototype.hasOwnProperty;var F=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dy=(t,e)=>{for(var r in e)py(t,r,{get:e[r],enumerable:!0})},rN=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Sse(e))!Ase.call(t,i)&&i!==r&&py(t,i,{get:()=>e[i],enumerable:!(n=Ese(e,i))||n.enumerable});return t};var U=(t,e,r)=>(r=t!=null?wse(Tse(t)):{},rN(e||!t||!t.__esModule?py(r,"default",{value:t,enumerable:!0}):r,t)),_se=t=>rN(py({},"__esModule",{value:!0}),t);var f=F(()=>{{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"0fe87bf8777018feee92f23615b7b4ed0daea2dc"}}});var iN=E((D9e,nN)=>{f();function iC(t){return t==null?[]:Array.isArray(t)?t:[t]}function Pse(t,e,r,n){var i,s=t[e],o=~n.string.indexOf(e)?r==null||r===!0?"":String(r):typeof r=="boolean"?r:~n.boolean.indexOf(e)?r==="false"?!1:r==="true"||(t._.push((i=+r,i*0===0?i:r)),!!r):(i=+r,i*0===0?i:r);t[e]=s==null?o:Array.isArray(s)?s.concat(o):[s,o]}nN.exports=function(t,e){t=t||[],e=e||{};var r,n,i,s,o,a={_:[]},c=0,u=0,l=0,p=t.length;let d=e.alias!==void 0,h=e.unknown!==void 0,m=e.default!==void 0;if(e.alias=e.alias||{},e.string=iC(e.string),e.boolean=iC(e.boolean),d)for(r in e.alias)for(n=e.alias[r]=iC(e.alias[r]),c=0;c<n.length;c++)(e.alias[n[c]]=n.concat(r)).splice(c,1);for(c=e.boolean.length;c-- >0;)for(n=e.alias[e.boolean[c]]||[],u=n.length;u-- >0;)e.boolean.push(n[u]);for(c=e.string.length;c-- >0;)for(n=e.alias[e.string[c]]||[],u=n.length;u-- >0;)e.string.push(n[u]);if(m){for(r in e.default)if(s=typeof e.default[r],n=e.alias[r]=e.alias[r]||[],e[s]!==void 0)for(e[s].push(r),c=0;c<n.length;c++)e[s].push(n[c])}let g=h?Object.keys(e.alias):[];for(c=0;c<p;c++){if(i=t[c],i==="--"){a._=a._.concat(t.slice(++c));break}for(u=0;u<i.length&&i.charCodeAt(u)===45;u++);if(u===0)a._.push(i);else if(i.substring(u,u+3)==="no-"){if(s=i.substring(u+3),h&&!~g.indexOf(s))return e.unknown(i);a[s]=!1}else{for(l=u+1;l<i.length&&i.charCodeAt(l)!==61;l++);for(s=i.substring(u,l),o=i.substring(++l)||c+1===p||(""+t[c+1]).charCodeAt(0)===45||t[++c],n=u===2?[s]:s,l=0;l<n.length;l++){if(s=n[l],h&&!~g.indexOf(s))return e.unknown("-".repeat(u)+s);Pse(a,s,l+1<n.length||o,e)}}}if(m)for(r in e.default)a[r]===void 0&&(a[r]=e.default[r]);if(d)for(r in a)for(n=e.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a}});function Fse(t){let e=[],r=Hc.default.dirname(t);for(;r!==Hc.default.dirname(r);){let n=Hc.default.join(r,".prettierignore");oC.default.existsSync(n)&&e.push(n);let i=Hc.default.join(r,".git");if(oC.default.existsSync(i))break;r=Hc.default.dirname(r)}return e}function kse(t){if(!t)return sC.default;try{let r=(0,sN.createRequire)(t)("prettier");if(!r)throw new Error("Prettier not found");return r}catch{return sC.default}}async function wi(t,e,r,n){try{let i=Hc.default.resolve(t,n??"file.tsx"),s=kse(i);if(n){let a=Fse(i);if((await s.getFileInfo(i,{ignorePath:a.length>0?a:void 0})).ignored)return e}let o=await s.resolveConfig(i);return o?await s.format(e,{...o,filepath:n,parser:r}):await s.format(e,{filepath:n,parser:r})}catch{return e}}var sC,sN,Hc,oC,xf=F(()=>{"use strict";f();sC=U(require("prettier"),1),sN=require("node:module"),Hc=U(require("node:path"),1),oC=U(require("node:fs"),1)});var aC,Ol,fy,my,oN,Kc,cC,uC,Wc,aN,Ml=F(()=>{"use strict";f();aC="preview-url",Ol="framework",fy="platform",my="node",oN="/~builder-connect",Kc="/~builder-connected",cC="/~builder-dev-tools",uC="/~builder-dev-tools.js",Wc="/~builder-dev-tools-close",aN="/mappings"});var hy=E((A9e,cN)=>{"use strict";f();var lC={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let r="";return t<0?r+=`\x1B[${-t}D`:t>0&&(r+=`\x1B[${t}C`),e<0?r+=`\x1B[${-e}A`:e>0&&(r+=`\x1B[${e}B`),r},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Ise={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},Nse={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?lC.up():"");return t&&(e+=lC.left),e}};cN.exports={cursor:lC,scroll:Ise,erase:Nse,beep:"\x07"}});var lr=E((P9e,pC)=>{f();var yy=process||{},uN=yy.argv||[],gy=yy.env||{},Rse=!(gy.NO_COLOR||uN.includes("--no-color"))&&(!!gy.FORCE_COLOR||uN.includes("--color")||yy.platform==="win32"||(yy.stdout||{}).isTTY&&gy.TERM!=="dumb"||!!gy.CI),Ose=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+Mse(i,e,r,s)+e:t+i+e},Mse=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},lN=(t=Rse)=>{let e=t?Ose:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};pC.exports=lN();pC.exports.createColors=lN});function Bse({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function DN(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Lse,"")}function CN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Df(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=DN(t),t.length===0))return 0;t=t.replace(qse()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let s=i.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(jse.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function Vse(){let t=new Map;for(let[e,r]of Object.entries(nr)){for(let[n,i]of Object.entries(r))nr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=nr[n],t.set(i[0],i[1]);Object.defineProperty(nr,e,{value:r,enumerable:!1})}return Object.defineProperty(nr,"codes",{value:t,enumerable:!1}),nr.color.close="\x1B[39m",nr.bgColor.close="\x1B[49m",nr.color.ansi=pN(),nr.color.ansi256=dN(),nr.color.ansi16m=fN(),nr.bgColor.ansi=pN(dC),nr.bgColor.ansi256=dN(dC),nr.bgColor.ansi16m=fN(dC),Object.defineProperties(nr,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>nr.rgbToAnsi256(...nr.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>nr.ansi256ToAnsi(nr.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>nr.ansi256ToAnsi(nr.hexToAnsi256(e)),enumerable:!1}}),nr}function gN(t,e,r){return String(t).normalize().replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`).map(n=>Xse(n,e,r)).join(`
|
|
4
4
|
`)}function bC(t,e){if(typeof t=="string")return vy.aliases.get(t)===e;for(let r of t)if(r!==void 0&&bC(r,e))return!0;return!1}function Qse(t,e){if(t===e)return;let r=t.split(`
|
|
@@ -73,7 +73,7 @@ ${FN}${n.trimStart()}`),r=3+(0,Jc.stripVTControlCharacters)(n.trimStart()).lengt
|
|
|
73
73
|
`),m(),i()};return{start:D,stop:C,message:(x="")=>{a=y(x??a)}}}});function pt(t,e=""){return t.ts.createSourceFile("module.tsx",typeof e=="string"?e:"",t.ts.ScriptTarget.Latest,void 0)}function Ty(t,e=""){let r=pt(t,e?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${e}`);return r.statements[0]}function Lr(t,e,r){if(e){let n=t.ts.createPrinter({newLine:t.ts.NewLineKind.LineFeed,removeComments:r});return t.ts.isSourceFile(e)?n.printFile(e).trim()+`
|
|
74
74
|
`:n.printNode(t.ts.EmitHint.Unspecified,e,t.ts.createSourceFile("module.tsx","",t.ts.ScriptTarget.Latest)).trim()+`
|
|
75
75
|
`}return""}var pr=F(()=>{"use strict";f()});var LN=E((V9e,BN)=>{"use strict";f();BN.exports=function(){if(process.env.npm_config_user_agent)return goe(process.env.npm_config_user_agent)};function goe(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),n=e.substring(0,r);return{name:n==="npminstall"?"cnpm":n,version:e.substring(r+1)}}});function _n(t){return t.endsWith(".mapper.tsx")||t.endsWith(".mapper.jsx")||t.endsWith(".mapper.ts")||t.endsWith(".mapper.js")||t.endsWith(".mapper.mjs")}function dt(t,e,r){e=Ss(e),r=Ss(r),e=t.dirname(e);let n=t.basename(r,t.extname(r));r=t.dirname(r);let i;return n==="index"?i=t.relative(e,r):i=t.relative(e,t.join(r,n)),i=Ss(t.normalize(i)),i.startsWith(".")||(i="./"+i),i}function Ss(t){return t.startsWith("\\\\?\\")?t:t.replace(/\\/g,"/")}function Yc(t,e){let r=t.extname(e),n=t.basename(e,r).split(/[\/\\]/),i=n[n.length-1];return $N(i==="index"?t.basename(t.dirname(e)):i)}function $N(t){return Vt(t).replace(/ /g,"")}function ji(t,e){let r=t.extname(e),n=Ss(t.basename(e,r)).split("/").pop();return Vt(n==="index"?t.basename(t.dirname(e)):n)}function Ht(t,e){let r=Ss(t.relative(t.getAppRootDir(),e));r=r.split("/").filter(i=>i!=="."&&i!==".."&&i!=="").join("/"),r.endsWith(".tsx")||r.endsWith(".jsx")?r=r.slice(0,-4):(r.endsWith(".ts")||r.endsWith(".js"))&&(r=r.slice(0,-3));let n=t.getFrameworks();return r.startsWith("src/")&&(r=r.slice(4)),n.some(i=>i.name.includes("next"))?"@/"+r:"~/"+r}function St(t,e){let r=e,n=[];for(let i=0;i<2;i++){let s=t.basename(r);if(!s||s==="components")break;n.unshift(s),r=t.dirname(r)}return n.join("/")}function Vt(t){for(t=t.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();t.includes(" ");)t=t.replace(/ /g," ");return t.split(" ").map(e=>e.length>2?e[0].toUpperCase()+e.slice(1):e).join("").trim()}function Qn(t){return t.sort((e,r)=>e.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function Ut(t,e,r,n){if(typeof r!="string"||r==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${r}, ${e}`);return n&&(e=n),e=t.normalize(e),(await t.hash(e+"#"+r)).substring(0,8)}async function UN(t){return(await t.hash(t.getAppRootDir())).substring(0,8)}function Ef(t){return typeof t=="number"}function $l(t){return typeof t=="boolean"}function Pn(t){return typeof t=="string"}function jl(t){return typeof t=="string"?/^[A-Z][A-Za-z0-9]*$/.test(t):!1}function Si(t){return JSON.parse(JSON.stringify(t))}function Ay(t,e,r){for(let n of e)if(t.dirname(r).includes(n))return!0;return!1}function qN(){try{let t=(0,jN.default)();if(t?.name)return t.name}catch{}return"npm"}function yoe(){return process.platform.startsWith("win")}function ir(){return yoe()?'"@builder.io/dev-tools"':"builder.io"}function EC(t){return t.replace(/[^a-zA-Z0-9-_]/g,"_")}var jN,ot=F(()=>{"use strict";f();jN=U(LN(),1)});function Fn(t){let e=t.join(t.getAppRootDir(),"tsconfig.json");return t.exists(e)}async function ei(t,e){async function r(i,s){if(s>10)return;let o=await t.readdir(i);for(let a of o){if(boe.includes(a))continue;let c=t.join(i,a),u=await t.stat(c);if(u){if(u.isFile()&&a.startsWith("builder-registry."))return c;if(u.isDirectory()){let l=await r(c,s+1);if(l)return l}}}}let n=await r(t.getAppRootDir(),0);if(!n){let s=`builder-registry.${await Fn(t)?"ts":"js"}`;return t.join(e,s)}return n}async function Ts(t,e){let r=t.resolve("/");for(let n=0;n<20;n++){let i=t.join(e,"package.json"),s=await t.readFile(i);if(s)return JSON.parse(s);if(e===r)break;e=t.dirname(e)}return null}async function zN(t,e){for(let r=0;r<20;r++){let n=t.dirname(e),i=t.join(n,"node_modules");if(await t.exists(i))return i;if(e===t.getAppRootDir())break;e=t.dirname(e)}return t.join(t.getAppRootDir(),"node_modules")}async function Sf(t,e,r){let n=await t.readdir(e);return n.includes(r)?t.join(e,r):(await Promise.all(n.map(async s=>{if(s.startsWith(".")||s==="node_modules")return;let o=t.join(e,s);if((await t.stat(o)).isDirectory()){let c=await Sf(t,o,r);if(c)return c}}))).find(s=>typeof s=="string")}var boe,dn=F(()=>{"use strict";f();boe=["node_modules","dist","build","public"]});async function Ir(t,e,r){if(!Array.isArray(e)||e.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${e}`);let n=await zN(t,e[0]),i=t.join(n,"typescript","lib"),s=new Map,o={fileExists:a=>{if(a=t.normalize(a),a.includes("node_modules")){let c=Tf.get(a);if(!c){try{t.statSync(a).isFile()?c={exists:!0,content:t.readFileSync(a)}:c={exists:!1}}catch{c={exists:!1}}Tf.set(a,c)}return c.exists}if(!s.has(a))if(t.existsSync(a)){let u=t.statSync(a);s.set(a,u.isFile())}else s.set(a,!1);return s.get(a)},getCanonicalFileName:a=>t.normalize(a),getCurrentDirectory:()=>t.cwd(),getDefaultLibFileName:()=>t.join(i,"lib.d.ts"),getDefaultLibLocation:()=>i,getNewLine:()=>`
|
|
76
|
-
`,getSourceFile:a=>{if(a=t.normalize(a),a.includes("node_modules")){let u=Tf.get(a);if(u)return pt(t,u.content)}let c;try{c=t.readFileSync(a)}catch{console.error(`Could not read: ${a}`),c==null}if(c==null){let u=t.basename(a),l=t.extname(u).toLowerCase();if(a.startsWith(i)&&l===".ts"&&(c=VN.get(u),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Py(u)}return a.includes("node_modules")&&(c?Tf.set(a,{exists:!0,content:c}):Tf.set(a,{exists:!1})),pt(t,c)},readFile:a=>{let c=t.readFileSync(a);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return voe(t,o,e,r)}catch(a){if(a instanceof Py){await xoe(t,a.libName);continue}throw t.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${e[0]}`,{cause:a})}}function voe(t,e,r,n){let i={rootNames:[...r],host:e,options:{}},s=t.ts.findConfigFile(t.dirname(r[0]),o=>t.existsSync(o));if(s){let o=GN.get(s);if(!o){let a=t.ts.readConfigFile(s,c=>{let u=t.readFileSync(c);return typeof u=="string"?u:void 0});a.error?t.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(o=t.ts.parseJsonConfigFileContent(a.config,t.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(u,l)=>t.readdirSync(u),fileExists:u=>t.existsSync(u),readFile:u=>t.readFileSync(u)||void 0},t.dirname(s),void 0,s).options,GN.set(s,o))}o&&(i.options=Si(o))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=t.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),t.ts.createProgram(i)}async function Ul(t,e,r){r||(r=await Ir(t,[e]));let n=r.getSourceFile(e);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${e}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}async function xoe(t,e){let r=`https://cdn.jsdelivr.net/npm/typescript@${t.ts.version}/lib/${e}`;_y.has(e)||_y.set(e,fetch(r).then(n=>n.text()).then(n=>{VN.set(e,n)})),await _y.get(e),_y.delete(e)}async function HN(t,e){let r=await t.readFile(e.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${e.filePath}`}],code:null,output:null}:SC(t,{code:r,filePath:e.filePath,compilerOptions:e.compilerOptions})}function SC(t,e){let r={diagnostics:[],code:e.code,output:null};try{let n=t.ts.transpileModule(e.code,{compilerOptions:e.compilerOptions,fileName:e.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(i=>{r.diagnostics.push({messageText:String(i.messageText)})}),r.output=n.outputText}catch(n){console.error("transpileModule",n),r.diagnostics.push({messageText:String(n)})}return r}var Py,VN,_y,Tf,GN,Ui=F(()=>{"use strict";f();pr();ot();dn();Py=class{libName;constructor(e){this.libName=e}};VN=new Map,_y=new Map,Tf=new Map,GN=new Map});var Doe,Ge,Ar=F(()=>{"use strict";f();Doe="1.18.
|
|
76
|
+
`,getSourceFile:a=>{if(a=t.normalize(a),a.includes("node_modules")){let u=Tf.get(a);if(u)return pt(t,u.content)}let c;try{c=t.readFileSync(a)}catch{console.error(`Could not read: ${a}`),c==null}if(c==null){let u=t.basename(a),l=t.extname(u).toLowerCase();if(a.startsWith(i)&&l===".ts"&&(c=VN.get(u),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Py(u)}return a.includes("node_modules")&&(c?Tf.set(a,{exists:!0,content:c}):Tf.set(a,{exists:!1})),pt(t,c)},readFile:a=>{let c=t.readFileSync(a);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return voe(t,o,e,r)}catch(a){if(a instanceof Py){await xoe(t,a.libName);continue}throw t.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${e[0]}`,{cause:a})}}function voe(t,e,r,n){let i={rootNames:[...r],host:e,options:{}},s=t.ts.findConfigFile(t.dirname(r[0]),o=>t.existsSync(o));if(s){let o=GN.get(s);if(!o){let a=t.ts.readConfigFile(s,c=>{let u=t.readFileSync(c);return typeof u=="string"?u:void 0});a.error?t.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(o=t.ts.parseJsonConfigFileContent(a.config,t.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(u,l)=>t.readdirSync(u),fileExists:u=>t.existsSync(u),readFile:u=>t.readFileSync(u)||void 0},t.dirname(s),void 0,s).options,GN.set(s,o))}o&&(i.options=Si(o))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=t.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),t.ts.createProgram(i)}async function Ul(t,e,r){r||(r=await Ir(t,[e]));let n=r.getSourceFile(e);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${e}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}async function xoe(t,e){let r=`https://cdn.jsdelivr.net/npm/typescript@${t.ts.version}/lib/${e}`;_y.has(e)||_y.set(e,fetch(r).then(n=>n.text()).then(n=>{VN.set(e,n)})),await _y.get(e),_y.delete(e)}async function HN(t,e){let r=await t.readFile(e.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${e.filePath}`}],code:null,output:null}:SC(t,{code:r,filePath:e.filePath,compilerOptions:e.compilerOptions})}function SC(t,e){let r={diagnostics:[],code:e.code,output:null};try{let n=t.ts.transpileModule(e.code,{compilerOptions:e.compilerOptions,fileName:e.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(i=>{r.diagnostics.push({messageText:String(i.messageText)})}),r.output=n.outputText}catch(n){console.error("transpileModule",n),r.diagnostics.push({messageText:String(n)})}return r}var Py,VN,_y,Tf,GN,Ui=F(()=>{"use strict";f();pr();ot();dn();Py=class{libName;constructor(e){this.libName=e}};VN=new Map,_y=new Map,Tf=new Map,GN=new Map});var Doe,Ge,Ar=F(()=>{"use strict";f();Doe="1.18.7",Ge=process.env.OVERRIDE_VERSION??Doe});async function Xc(t){let e=[],r=await Ts(t,t.getRepoRootDir());if(r){let n=await WN(r,t);e.push(...n)}return e}async function WN(t,e){let r=[];if(t&&typeof t=="object"){let n=new Set(Object.keys({...t.dependencies,...t.devDependencies}));for(let i of Coe)if(n.has(i)&&!r.some(s=>s.name===i)){let s={name:i};KN.has(i)&&(s.version=await KN.get(i)(e)),r.push(s)}}return r}function TC(t){let e=parseInt(t);return Number.isNaN(e)?void 0:e}var KN,Coe,Zc=F(()=>{"use strict";f();dn();ot();KN=new Map([["next",async t=>{if(!t.spawnSync)return;let e=qN(),r=e==="npm"?"npx":e,{stdout:n}=t.spawnSync(r,["next","-v"],{encoding:"utf8"});if(!n)return;let i=n.match(/(Next.js v)([\d.]+)/g);if(!i)return;let s=i[0].split("Next.js v")[1],[o,a,c]=s.split(".");return{major:TC(o),minor:TC(a),patch:TC(c)}}]]),Coe=["@shopify/remix-oxygen","@shopify/hydrogen","@builder.io/qwik-city","@remix-run/react","@sveltejs/kit","astro","gatsby","next","nuxt","@builder.io/qwik","@angular/core","react","solid-js","svelte","vue"]});async function qi(t){let e=JN(t),r=await t.readFile(e);return typeof r=="string"?JSON.parse(r):{}}async function zi(t,e){e=typeof e=="object"&&e!=null?e:{};let r=JN(t);await t.writeFile(r,JSON.stringify(e??{},null,2))}function JN(t){let e=t.getAppRootDir();return t.join(e,"node_modules",".builder","builder-cache.json")}var Qc=F(()=>{"use strict";f()});async function Qs(t,e,r){let n={envKey:r,envValue:null,file:""};for(let i of e){let s=t.join(t.getAppRootDir(),i),o=await woe(t,s);if(o){let a=o[r];if(typeof a=="string"&&a.length>0&&a!=="YOUR_API_KEY")return n.envValue=a,n.file=s,n}}return n.file=t.join(t.getAppRootDir(),e[e.length-1]),n}async function woe(t,e){let r=await t.readFile(e);return typeof r=="string"?YN(r):null}function YN(t){let e={},r=t.replace(/\r\n?/gm,`
|
|
77
77
|
`),n;for(;(n=Eoe.exec(r))!=null;){let i=n[1],s=n[2]||"";s=s.trim();let o=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),o==='"'&&(s=s.replace(/\\n/g,`
|
|
78
78
|
`),s=s.replace(/\\r/g,"\r")),e[i]=s}return e}async function eo(t,e,r,n){let i="# https://www.builder.io/c/docs/using-your-api-key",s=await t.readFile(e);try{if(s)if(s.includes(r))if(s.includes(n))t.debug(`"${r}" with "${n}" already set in ${e}`);else return t.debug(`Replace "${r}" in ${e}`),s=s.replace(new RegExp(`${r}=.*`),`${r}=${n}`),await t.writeFile(e,s),"update";else return t.debug(`Append "${r}" to ${e}`),s+=`
|
|
79
79
|
|
|
@@ -1102,11 +1102,11 @@ module.exports = nextConfig
|
|
|
1102
1102
|
`.trimStart()});var BM=F(()=>{"use strict";f();Ml();Wf()});var Wf=F(()=>{"use strict";f();Ar();_M();FM();Zc();MM();BM();eu()});function jue(t){let e=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},h=e.optional(i)+t.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},v={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},w=[v,p,a,r,t.C_BLOCK_COMMENT_MODE,l,u],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:w.concat([{begin:/\(/,end:/\)/,keywords:x,contains:w.concat(["self"]),relevance:0}]),relevance:0},A={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:x,relevance:0},{begin:h,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,u,l,a,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,u,l,a]}]},a,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,A,v,w,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:x,contains:["self",a]},{begin:t.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function LM(t){let e={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=jue(t),n=r.keywords;return n.type=[...n.type,...e.type],n.literal=[...n.literal,...e.literal],n.built_in=[...n.built_in,...e.built_in],n._hints=e._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}var $M=F(()=>{f()});function jM(t){let e=t.regex,r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});let i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,i]};i.contains.push(o);let a={match:/\\"/},c={className:"string",begin:/'/,end:/'/},u={match:/\\'/},l={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=t.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],g=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],D=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],x=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:g,built_in:[...b,...D,"set","shopt",...C,...x]},contains:[d,t.SHEBANG(),h,l,t.HASH_COMMENT_MODE,s,y,o,a,c,u,r]}}var UM=F(()=>{f()});function qM(t){let e=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+n+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},h=e.optional(i)+t.IDENT_RE+"\\s*\\(",y={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[p,a,r,t.C_BLOCK_COMMENT_MODE,l,u],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:b.concat([{begin:/\(/,end:/\)/,keywords:y,contains:b.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:y,relevance:0},{begin:h,returnBegin:!0,contains:[t.inherit(d,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,u,l,a,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,u,l,a]}]},a,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:y,disableAutodetect:!0,illegal:"</",contains:[].concat(D,C,b,[p,{begin:t.IDENT_RE+"::",keywords:y},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:p,strings:u,keywords:y}}}var zM=F(()=>{f()});function GM(t){let e=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},h=e.optional(i)+t.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},v={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},w=[v,p,a,r,t.C_BLOCK_COMMENT_MODE,l,u],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:w.concat([{begin:/\(/,end:/\)/,keywords:x,contains:w.concat(["self"]),relevance:0}]),relevance:0},A={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:x,relevance:0},{begin:h,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,u,l,a,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,u,l,a]}]},a,r,t.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,A,v,w,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:x,contains:["self",a]},{begin:t.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}var VM=F(()=>{f()});function HM(t){let e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:e,literal:n},a=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},l=t.inherit(u,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:o},d=t.inherit(p,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,d]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},g=t.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]});p.contains=[m,h,u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.C_BLOCK_COMMENT_MODE],d.contains=[g,h,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let y={variants:[m,h,u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},D=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,b,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,b,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+D+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[y,c,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},C]}}var KM=F(()=>{f()});function WM(t){let e=t.regex,r=Uue(t),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Gue.join("|")+")"},{begin:":(:)?("+Vue.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Hue.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:zue.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+que.join("|")+")\\b"}]}}var Uue,que,zue,Gue,Vue,Hue,JM=F(()=>{f();Uue=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),que=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],zue=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Gue=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Vue=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Hue=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse()});function YM(t){let e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}var XM=F(()=>{f()});function ZM(t){let s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:t.C_NUMBER_RE+"[i]",relevance:1},t.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}var QM=F(()=>{f()});function eB(t){let e=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(r,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}var tB=F(()=>{f()});function rB(t){let e=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},n=t.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a={begin:/\[/,end:/\]/,contains:[n,s,i,o,r,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,l=/'[^']*'/,p=e.either(c,u,l),d=e.concat(p,"(\\s*\\.\\s*",p,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:d,className:"attr",starts:{end:/$/,contains:[n,a,s,i,o,r]}}]}}var nB=F(()=>{f()});function sB(t,e,r){return r===-1?"":t.replace(e,n=>sB(t,e,r-1))}function oB(t){let e=t.regex,r="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",n=r+sB("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),c={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},l={className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[l,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:c,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[u,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,iB,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},iB,u]}}var rp,Xy,Zy,iB,aB=F(()=>{f();rp="[0-9](_*[0-9])*",Xy=`\\.(${rp})`,Zy="[0-9a-fA-F](_*[0-9a-fA-F])*",iB={className:"number",variants:[{begin:`(\\b(${rp})((${Xy})|\\.)?|(${Xy}))[eE][+-]?(${rp})[fFdD]?\\b`},{begin:`\\b(${rp})((${Xy})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Xy})[fFdD]?\\b`},{begin:`\\b(${rp})[fFdD]\\b`},{begin:`\\b0[xX]((${Zy})\\.?|(${Zy})?\\.(${Zy}))[pP][+-]?(${rp})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Zy})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0}});function dB(t){let e=t.regex,r=(q,{after:ie})=>{let j="</"+q[0].slice(1);return q.input.indexOf(j,ie)!==-1},n=cB,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,ie)=>{let j=q[0].length+q.index,G=q.input[j];if(G==="<"||G===","){ie.ignoreMatch();return}G===">"&&(r(q,{after:j})||ie.ignoreMatch());let J,se=q.input.substring(j);if(J=se.match(/^\s*=/)){ie.ignoreMatch();return}if((J=se.match(/^\s+extends\s+/))&&J.index===0){ie.ignoreMatch();return}}},a={$pattern:cB,keyword:Kue,literal:Wue,built_in:Yue,"variable.language":Jue},c="[0-9](_?[0-9])*",u=`\\.(${c})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${l})((${u})|\\.)?|(${u}))[eE][+-]?(${c})\\b`},{begin:`\\b(${l})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},D={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},C=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,m,g,y,{match:/\$\d+/},p];d.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});let x=[].concat(D,d.contains),v=x.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(x)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v},S={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...uB,...lB]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(q){return e.concat("(?!",q.join("|"),")")}let H={match:e.concat(/\b/,L([...pB,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},z={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,m,g,y,D,{match:/\$\d+/},p,A,{className:"attr",begin:n+e.lookahead(":"),relevance:0},B,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,t.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},H,_,S,N,{match:/\$[(.]/}]}}var cB,Kue,Wue,uB,lB,pB,Jue,Yue,fB=F(()=>{f();cB="[A-Za-z$_][0-9A-Za-z$_]*",Kue=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Wue=["true","false","null","undefined","NaN","Infinity"],uB=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],lB=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],pB=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Jue=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yue=[].concat(pB,uB,lB)});function mB(t){let e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],i={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",keywords:{literal:n},contains:[e,r,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var hB=F(()=>{f()});function gB(t){let e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(o);let a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"}),"self"]}]},u=Xue,l=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=p;return d.variants[1].contains=[p],p.variants[1].contains=[d],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,l,r,n,a,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,t.C_LINE_COMMENT_MODE,l],relevance:0},t.C_LINE_COMMENT_MODE,l,a,c,o,t.C_NUMBER_MODE]},l]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,c]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
1103
1103
|
`},u]}}var np,Qy,eb,Xue,yB=F(()=>{f();np="[0-9](_*[0-9])*",Qy=`\\.(${np})`,eb="[0-9a-fA-F](_*[0-9a-fA-F])*",Xue={className:"number",variants:[{begin:`(\\b(${np})((${Qy})|\\.)?|(${Qy}))[eE][+-]?(${np})[fFdD]?\\b`},{begin:`\\b(${np})((${Qy})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Qy})[fFdD]?\\b`},{begin:`\\b(${np})[fFdD]\\b`},{begin:`\\b0[xX]((${eb})\\.?|(${eb})?\\.(${eb}))[pP][+-]?(${np})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${eb})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0}});function xB(t){let e=Zue(t),r=rle,n="and or not only",i="[\\w-]+",s="("+i+"|@\\{"+i+"\\})",o=[],a=[],c=function(C){return{className:"string",begin:"~?"+C+".*?"+C}},u=function(C,x,v){return{className:C,begin:x,relevance:v}},l={$pattern:/[a-z-]+/,keyword:n,attribute:ele.join(" ")},p={begin:"\\(",end:"\\)",contains:a,keywords:l,relevance:0};a.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,c("'"),c('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,p,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);let d=a.concat({begin:/\{/,end:/\}/,contains:o}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},m={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+tle.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:l,returnEnd:!0,contains:a,relevance:0}},y={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:d}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,h,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+Que.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,u("selector-tag",s,0),u("selector-id","#"+s),u("selector-class","\\."+s,0),u("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+bB.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+vB.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:d},{begin:"!important"},e.FUNCTION_DISPATCH]},D={begin:i+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[b]};return o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,g,y,D,m,b,h,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}var Zue,Que,ele,bB,vB,tle,rle,DB=F(()=>{f();Zue=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Que=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ele=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],bB=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],vB=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],tle=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),rle=bB.concat(vB)});function CB(t){let e="\\[=*\\[",r="\\]=*\\]",n={begin:e,end:r,contains:["self"]},i=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,r,{contains:[n],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:r,contains:[n],relevance:5}])}}var wB=F(()=>{f()});function EB(t){let e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e]},i={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,r,n,i,s,o]}}var SB=F(()=>{f()});function TB(t){let e=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=t.inherit(u,{contains:[]}),d=t.inherit(l,{contains:[]});u.contains.push(d),l.contains.push(p);let h=[r,c];return[u,l,p,d].forEach(y=>{y.contains=y.contains.concat(h)}),h=h.concat(u,l),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},r,s,u,l,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},i,n,c,o]}}var AB=F(()=>{f()});function _B(t){let e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,a={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:a,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}var PB=F(()=>{f()});function FB(t){let e=t.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},a={variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},c=[t.BACKSLASH_ESCAPE,s,a],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],l=(h,m,g="\\1")=>{let y=g==="\\1"?g:e.concat(g,m);return e.concat(e.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,y,/(?:\\.|[^\\\/])*?/,g,n)},p=(h,m,g)=>e.concat(e.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,g,n),d=[a,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:l("s|tr|y",e.either(...u,{capture:!0}))},{begin:l("s|tr|y","\\(","\\)")},{begin:l("s|tr|y","\\[","\\]")},{begin:l("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",e.either(...u,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=d,o.contains=d,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:d}}var kB=F(()=>{f()});function IB(t){let e=t.regex,r=/(?![A-Za-z0-9])(?![$])/,n=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s={scope:"variable",match:"\\$+"+n},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},a={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=t.inherit(t.APOS_STRING_MODE,{illegal:null}),u=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(a)}),l={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(H,z)=>{z.data._beginMatch=H[1]||H[2]},"on:end":(H,z)=>{z.data._beginMatch!==H[1]&&z.ignoreMatch()}},p=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),d=`[
|
|
1104
1104
|
]`,h={scope:"string",variants:[u,c,l,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:y,literal:(H=>{let z=[];return H.forEach(N=>{z.push(N),N.toLowerCase()===N?z.push(N.toUpperCase()):z.push(N.toLowerCase())}),z})(g),built_in:b},x=H=>H.map(z=>z.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,e.concat(d,"+"),e.concat("(?!",x(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=e.concat(n,"\\b(?!\\()"),S={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},A={scope:"attr",match:e.concat(n,e.lookahead(":"),e.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[A,s,S,t.C_BLOCK_COMMENT_MODE,h,m,v]},P={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",x(y).join("\\b|"),"|",x(b).join("\\b|"),"\\b)"),n,e.concat(d,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(P);let _=[A,S,t.C_BLOCK_COMMENT_MODE,h,m,v],L={begin:e.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",..._]},..._,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:C,contains:[L,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,P,S,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},v,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",s,S,t.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},h,m]}}var NB=F(()=>{f()});function RB(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}var OB=F(()=>{f()});function MB(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}var BB=F(()=>{f()});function LB(t){let e=t.regex,r=/[\p{XID_Start}_]\p{XID_Continue}*/u,n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},l={begin:/\{\{/,relevance:0},p={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c,l,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c,l,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,l,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,l,u]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},d="[0-9](_?[0-9])*",h=`(\\b(${d}))?\\.(${d})|\\b(${d})\\.`,m=`\\b|${n.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${d})|(${h}))[eE][+-]?(${d})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${d})[jJ](?=${m})`}]},y={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",c,g,p,t.HASH_COMMENT_MODE]}]};return u.contains=[p,g,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[c,g,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},p,y,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,b,p]}]}}var $B=F(()=>{f()});function jB(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}var UB=F(()=>{f()});function qB(t){let e=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[s,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}var zB=F(()=>{f()});function GB(t){let e=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(n,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},u=[t.COMMENT("#","$",{contains:[a]}),t.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],l={className:"subst",begin:/#\{/,end:/\}/,keywords:o},p={className:"string",contains:[t.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,l]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},w=[p,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:r}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,l],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,u),relevance:0}].concat(c,u);l.contains=w,g.contains=w;let P=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:w}}];return u.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(P).concat(u).concat(w)}}var VB=F(()=>{f()});function HB(t){let e=t.regex,r={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,t.IDENT_RE,e.lookahead(/\s*\(/))},n="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],s=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],a=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:a,keyword:i,literal:s,built_in:o},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+n}],relevance:0},{begin:[/fn/,/\s+/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,t.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,t.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:o,type:a}},{className:"punctuation",begin:"->"},r]}}var KB=F(()=>{f()});function WB(t){let e=nle(t),r=ale,n=ole,i="@[a-z-]+",s="and or not only",a={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+ile.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+cle.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,a,e.HEXCOLOR,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:sle.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}var nle,ile,sle,ole,ale,cle,JB=F(()=>{f();nle=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ile=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sle=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ole=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],ale=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],cle=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse()});function YB(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}var XB=F(()=>{f()});function ZB(t){let e=t.regex,r=t.COMMENT("--","$"),n={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],l=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],d=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=l,m=[...u,...c].filter(C=>!l.includes(C)),g={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},y={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:e.concat(/\b/,e.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function D(C,{exceptions:x,when:v}={}){let w=v;return x=x||[],C.map(S=>S.match(/\|\d+$/)||x.includes(S)?S:w(S)?`${S}|0`:S)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:D(m,{when:C=>C.length<3}),literal:s,type:a,built_in:p},contains:[{begin:e.either(...d),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(d),literal:s,type:a}},{className:"type",begin:e.either(...o)},b,g,n,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,y]}}var QB=F(()=>{f()});function n3(t){return t?typeof t=="string"?t:t.source:null}function tb(t){return Mt("(?=",t,")")}function Mt(...t){return t.map(r=>n3(r)).join("")}function ule(t){let e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function ii(...t){return"("+(ule(t).capture?"":"?:")+t.map(n=>n3(n)).join("|")+")"}function a3(t){let e={match:/\s+/,relevance:0},r=t.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[t.C_LINE_COMMENT_MODE,r],i={match:[/\./,ii(...lle,...e3)],className:{2:"keyword"}},s={match:Mt(/\./,ii(...Fw)),relevance:0},o=Fw.filter(ve=>typeof ve=="string").concat(["_|0"]),a=Fw.filter(ve=>typeof ve!="string").concat(ple).map(Nw),c={variants:[{className:"keyword",match:ii(...a,...e3)}]},u={$pattern:ii(/\b\w+/,/#\w+/),keyword:o.concat(fle),literal:t3},l=[i,s,c],p={match:Mt(/\./,ii(...r3)),relevance:0},d={className:"built_in",match:Mt(/\b/,ii(...r3),/(?=\()/)},h=[p,d],m={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:kw},{match:`\\.(\\.|${s3})+`}]},y=[m,g],b="([0-9]_*)+",D="([0-9a-fA-F]_*)+",C={className:"number",relevance:0,variants:[{match:`\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b`},{match:`\\b0x(${D})(\\.(${D}))?([pP][+-]?(${b}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},x=(ve="")=>({className:"subst",variants:[{match:Mt(/\\/,ve,/[0\\tnr"']/)},{match:Mt(/\\/,ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),v=(ve="")=>({className:"subst",match:Mt(/\\/,ve,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(ve="")=>({className:"subst",label:"interpol",begin:Mt(/\\/,ve,/\(/),end:/\)/}),S=(ve="")=>({begin:Mt(ve,/"""/),end:Mt(/"""/,ve),contains:[x(ve),v(ve),w(ve)]}),A=(ve="")=>({begin:Mt(ve,/"/),end:Mt(/"/,ve),contains:[x(ve),w(ve)]}),k={className:"string",variants:[S(),S("#"),S("##"),S("###"),A(),A("#"),A("##"),A("###")]},P=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],_={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:P},L=ve=>{let Qe=Mt(ve,/\//),mt=Mt(/\//,ve);return{begin:Qe,end:mt,contains:[...P,{scope:"comment",begin:`#(?!.*${mt})`,end:/$/}]}},H={scope:"regexp",variants:[L("###"),L("##"),L("#"),_]},z={match:Mt(/`/,ea,/`/)},N={className:"variable",match:/\$\d+/},O={className:"variable",match:`\\$${rb}+`},B=[z,N,O],q={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:hle,contains:[...y,C,k]}]}},ie={scope:"keyword",match:Mt(/@/,ii(...mle))},j={scope:"meta",match:Mt(/@/,ea)},G=[q,ie,j],J={match:tb(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Mt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,rb,"+")},{className:"type",match:Iw,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Mt(/\s+&\s+/,tb(Iw)),relevance:0}]},se={begin:/</,end:/>/,keywords:u,contains:[...n,...l,...G,m,J]};J.contains.push(se);let De={match:Mt(ea,/\s*:/),keywords:"_|0",relevance:0},ge={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",De,...n,H,...l,...h,...y,C,k,...B,...G,J]},oe={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,J]},At={begin:ii(tb(Mt(ea,/\s*:/)),tb(Mt(ea,/\s+/,ea,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:ea}]},rr={begin:/\(/,end:/\)/,keywords:u,contains:[At,...n,...l,...y,C,k,...G,J,ge],endsParent:!0,illegal:/["']/},ne={match:[/(func|macro)/,/\s+/,ii(z.match,ea,kw)],className:{1:"keyword",3:"title.function"},contains:[oe,rr,e],illegal:[/\[/,/%/]},Ze={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[oe,rr,e],illegal:/\[|%/},ee={match:[/operator/,/\s+/,kw],className:{1:"keyword",3:"title"}},Te={begin:[/precedencegroup/,/\s+/,Iw],className:{1:"keyword",3:"title"},contains:[J],keywords:[...dle,...t3],end:/}/};for(let ve of k.variants){let Qe=ve.contains.find(br=>br.label==="interpol");Qe.keywords=u;let mt=[...l,...h,...y,C,k,...B];Qe.contains=[...mt,{begin:/\(/,end:/\)/,contains:["self",...mt]}]}return{name:"Swift",keywords:u,contains:[...n,ne,Ze,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:u,contains:[t.inherit(t.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...l]},ee,Te,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},H,...l,...h,...y,C,k,...B,...G,J,ge]}}var Nw,lle,e3,ple,Fw,t3,dle,fle,r3,i3,s3,kw,o3,rb,ea,Iw,mle,hle,c3=F(()=>{f();Nw=t=>Mt(/\b/,t,/\w$/.test(t)?/\b/:/\B/),lle=["Protocol","Type"].map(Nw),e3=["init","self"].map(Nw),ple=["Any","Self"],Fw=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],t3=["false","nil","true"],dle=["assignment","associativity","higherThan","left","lowerThan","none","right"],fle=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],r3=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],i3=ii(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),s3=ii(i3,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),kw=Mt(i3,s3,"*"),o3=ii(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),rb=ii(o3,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),ea=Mt(o3,rb,"*"),Iw=Mt(/[A-Z]/,rb,"*"),mle=["attached","autoclosure",Mt(/convention\(/,ii("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Mt(/objc\(/,ea,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],hle=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"]});function gle(t){let e=t.regex,r=(q,{after:ie})=>{let j="</"+q[0].slice(1);return q.input.indexOf(j,ie)!==-1},n=nb,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,ie)=>{let j=q[0].length+q.index,G=q.input[j];if(G==="<"||G===","){ie.ignoreMatch();return}G===">"&&(r(q,{after:j})||ie.ignoreMatch());let J,se=q.input.substring(j);if(J=se.match(/^\s*=/)){ie.ignoreMatch();return}if((J=se.match(/^\s+extends\s+/))&&J.index===0){ie.ignoreMatch();return}}},a={$pattern:nb,keyword:u3,literal:l3,built_in:h3,"variable.language":m3},c="[0-9](_?[0-9])*",u=`\\.(${c})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${l})((${u})|\\.)?|(${u}))[eE][+-]?(${c})\\b`},{begin:`\\b(${l})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},D={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},C=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,m,g,y,{match:/\$\d+/},p];d.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});let x=[].concat(D,d.contains),v=x.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(x)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v},S={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...p3,...d3]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(q){return e.concat("(?!",q.join("|"),")")}let H={match:e.concat(/\b/,L([...f3,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},z={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,m,g,y,D,{match:/\$\d+/},p,A,{className:"attr",begin:n+e.lookahead(":"),relevance:0},B,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,t.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},P,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},H,_,S,N,{match:/\$[(.]/}]}}function g3(t){let e=gle(t),r=nb,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],c={$pattern:nb,keyword:u3.concat(a),literal:l3,built_in:h3.concat(n),"variable.language":m3},u={className:"meta",begin:"@"+r},l=(d,h,m)=>{let g=d.contains.findIndex(y=>y.label===h);if(g===-1)throw new Error("can not find mode to replace");d.contains.splice(g,1,m)};Object.assign(e.keywords,c),e.exports.PARAMS_CONTAINS.push(u),e.contains=e.contains.concat([u,i,s]),l(e,"shebang",t.SHEBANG()),l(e,"use_strict",o);let p=e.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}var nb,u3,l3,p3,d3,f3,m3,h3,y3=F(()=>{f();nb="[A-Za-z$_][0-9A-Za-z$_]*",u3=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],l3=["true","false","null","undefined","NaN","Infinity"],p3=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],d3=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f3=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],m3=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],h3=[].concat(f3,p3,d3)});function b3(t){let e=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:e.concat(/# */,e.either(s,i),/ *#/)},{begin:e.concat(/# */,a,/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,e.either(s,i),/ +/,e.either(o,a),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},l={className:"label",begin:/^\w+:/},p=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),d=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,n,c,u,l,p,d,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[d]}]}}var v3=F(()=>{f()});function x3(t){t.regex;let e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");let r=t.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},a={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[r,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,i,t.QUOTE_STRING_MODE,c,u,a]}}var D3=F(()=>{f()});function C3(t){let e=t.regex,r=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(s,{begin:/\(/,end:/\)/}),a=t.inherit(t.APOS_STRING_MODE,{className:"string"}),c=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,c,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,c,a]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(r,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}var w3=F(()=>{f()});function E3(t){let e="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},o=t.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},h={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},g=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},p,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},h,m,s],y=[...g];return y.pop(),y.push(o),d.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}var S3=F(()=>{f()});var ip,T3=F(()=>{f();$M();UM();zM();VM();KM();JM();XM();QM();tB();nB();aB();fB();hB();yB();DB();wB();SB();AB();PB();kB();NB();OB();BB();$B();UB();zB();VB();KB();JB();XB();QB();c3();y3();v3();D3();w3();S3();ip={arduino:LM,bash:jM,c:qM,cpp:GM,csharp:HM,css:WM,diff:YM,go:ZM,graphql:eB,ini:rB,java:oB,javascript:dB,json:mB,kotlin:gB,less:xB,lua:CB,makefile:EB,markdown:TB,objectivec:_B,perl:FB,php:IB,"php-template":RB,plaintext:MB,python:LB,"python-repl":jB,r:qB,ruby:GB,rust:HB,scss:WB,shell:YB,sql:ZB,swift:a3,typescript:g3,vbnet:b3,wasm:x3,xml:C3,yaml:E3}});var H3=E((YWe,V3)=>{f();function N3(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{let r=t[e],n=typeof r;(n==="object"||n==="function")&&!Object.isFrozen(r)&&N3(r)}),t}var sb=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function R3(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ja(t,...e){let r=Object.create(null);for(let n in t)r[n]=t[n];return e.forEach(function(n){for(let i in n)r[i]=n[i]}),r}var yle="</span>",A3=t=>!!t.scope,ble=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){let r=t.split(".");return[`${e}${r.shift()}`,...r.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`},Ow=class{constructor(e,r){this.buffer="",this.classPrefix=r.classPrefix,e.walk(this)}addText(e){this.buffer+=R3(e)}openNode(e){if(!A3(e))return;let r=ble(e.scope,{prefix:this.classPrefix});this.span(r)}closeNode(e){A3(e)&&(this.buffer+=yle)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},_3=(t={})=>{let e={children:[]};return Object.assign(e,t),e},Mw=class t{constructor(){this.rootNode=_3(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let r=_3({scope:e});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,r){return typeof r=="string"?e.addText(r):r.children&&(e.openNode(r),r.children.forEach(n=>this._walk(e,n)),e.closeNode(r)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(r=>typeof r=="string")?e.children=[e.children.join("")]:e.children.forEach(r=>{t._collapse(r)}))}},Bw=class extends Mw{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,r){let n=e.root;r&&(n.scope=`language:${r}`),this.add(n)}toHTML(){return new Ow(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function Jf(t){return t?typeof t=="string"?t:t.source:null}function O3(t){return lu("(?=",t,")")}function vle(t){return lu("(?:",t,")*")}function xle(t){return lu("(?:",t,")?")}function lu(...t){return t.map(r=>Jf(r)).join("")}function Dle(t){let e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function $w(...t){return"("+(Dle(t).capture?"":"?:")+t.map(n=>Jf(n)).join("|")+")"}function M3(t){return new RegExp(t.toString()+"|").exec("").length-1}function Cle(t,e){let r=t&&t.exec(e);return r&&r.index===0}var wle=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function jw(t,{joinWith:e}){let r=0;return t.map(n=>{r+=1;let i=r,s=Jf(n),o="";for(;s.length>0;){let a=wle.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&r++)}return o}).map(n=>`(${n})`).join(e)}var Ele=/\b\B/,B3="[a-zA-Z]\\w*",Uw="[a-zA-Z_]\\w*",L3="\\b\\d+(\\.\\d+)?",$3="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",j3="\\b(0b[01]+)",Sle="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Tle=(t={})=>{let e=/^#![ ]*\//;return t.binary&&(t.begin=lu(e,/.*\b/,t.binary,/\b.*/)),Ja({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(r,n)=>{r.index!==0&&n.ignoreMatch()}},t)},Yf={begin:"\\\\[\\s\\S]",relevance:0},Ale={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Yf]},_le={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Yf]},Ple={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ab=function(t,e,r={}){let n=Ja({scope:"comment",begin:t,end:e,contains:[]},r);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=$w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:lu(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},Fle=ab("//","$"),kle=ab("/\\*","\\*/"),Ile=ab("#","$"),Nle={scope:"number",begin:L3,relevance:0},Rle={scope:"number",begin:$3,relevance:0},Ole={scope:"number",begin:j3,relevance:0},Mle={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Yf,{begin:/\[/,end:/\]/,relevance:0,contains:[Yf]}]},Ble={scope:"title",begin:B3,relevance:0},Lle={scope:"title",begin:Uw,relevance:0},$le={begin:"\\.\\s*"+Uw,relevance:0},jle=function(t){return Object.assign(t,{"on:begin":(e,r)=>{r.data._beginMatch=e[1]},"on:end":(e,r)=>{r.data._beginMatch!==e[1]&&r.ignoreMatch()}})},ib=Object.freeze({__proto__:null,APOS_STRING_MODE:Ale,BACKSLASH_ESCAPE:Yf,BINARY_NUMBER_MODE:Ole,BINARY_NUMBER_RE:j3,COMMENT:ab,C_BLOCK_COMMENT_MODE:kle,C_LINE_COMMENT_MODE:Fle,C_NUMBER_MODE:Rle,C_NUMBER_RE:$3,END_SAME_AS_BEGIN:jle,HASH_COMMENT_MODE:Ile,IDENT_RE:B3,MATCH_NOTHING_RE:Ele,METHOD_GUARD:$le,NUMBER_MODE:Nle,NUMBER_RE:L3,PHRASAL_WORDS_MODE:Ple,QUOTE_STRING_MODE:_le,REGEXP_MODE:Mle,RE_STARTERS_RE:Sle,SHEBANG:Tle,TITLE_MODE:Ble,UNDERSCORE_IDENT_RE:Uw,UNDERSCORE_TITLE_MODE:Lle});function Ule(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function qle(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function zle(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Ule,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Gle(t,e){Array.isArray(t.illegal)&&(t.illegal=$w(...t.illegal))}function Vle(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function Hle(t,e){t.relevance===void 0&&(t.relevance=1)}var Kle=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");let r=Object.assign({},t);Object.keys(t).forEach(n=>{delete t[n]}),t.keywords=r.keywords,t.begin=lu(r.beforeMatch,O3(r.begin)),t.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},t.relevance=0,delete r.beforeMatch},Wle=["of","and","for","in","not","or","if","then","parent","list","value"],Jle="keyword";function U3(t,e,r=Jle){let n=Object.create(null);return typeof t=="string"?i(r,t.split(" ")):Array.isArray(t)?i(r,t):Object.keys(t).forEach(function(s){Object.assign(n,U3(t[s],e,s))}),n;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){let c=a.split("|");n[c[0]]=[s,Yle(c[0],c[1])]})}}function Yle(t,e){return e?Number(e):Xle(t)?0:1}function Xle(t){return Wle.includes(t.toLowerCase())}var P3={},uu=t=>{console.error(t)},F3=(t,...e)=>{console.log(`WARN: ${t}`,...e)},sp=(t,e)=>{P3[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),P3[`${t}/${e}`]=!0)},ob=new Error;function q3(t,e,{key:r}){let n=0,i=t[r],s={},o={};for(let a=1;a<=e.length;a++)o[a+n]=i[a],s[a+n]=!0,n+=M3(e[a-1]);t[r]=o,t[r]._emit=s,t[r]._multi=!0}function Zle(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw uu("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ob;if(typeof t.beginScope!="object"||t.beginScope===null)throw uu("beginScope must be object"),ob;q3(t,t.begin,{key:"beginScope"}),t.begin=jw(t.begin,{joinWith:""})}}function Qle(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw uu("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ob;if(typeof t.endScope!="object"||t.endScope===null)throw uu("endScope must be object"),ob;q3(t,t.end,{key:"endScope"}),t.end=jw(t.end,{joinWith:""})}}function epe(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function tpe(t){epe(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Zle(t),Qle(t)}function rpe(t){function e(o,a){return new RegExp(Jf(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=M3(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let a=this.regexes.map(c=>c[1]);this.matcherRe=e(jw(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(a);if(!c)return null;let u=c.findIndex((p,d)=>d>0&&p!==void 0),l=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,l)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];let c=new r;return this.rules.slice(a).forEach(([u,l])=>c.addRule(u,l)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){let l=this.getMatcher(0);l.lastIndex=this.lastIndex+1,u=l.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(o){let a=new n;return o.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){let c=o;if(o.isCompiled)return c;[qle,Vle,tpe,Kle].forEach(l=>l(o,a)),t.compilerExtensions.forEach(l=>l(o,a)),o.__beforeBegin=null,[zle,Gle,Hle].forEach(l=>l(o,a)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=U3(o.keywords,t.case_insensitive)),c.keywordPatternRe=e(u,!0),a&&(o.begin||(o.begin=/\B|\b/),c.beginRe=e(c.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(c.endRe=e(c.end)),c.terminatorEnd=Jf(c.end)||"",o.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(c.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(l){return npe(l==="self"?o:l)})),o.contains.forEach(function(l){s(l,c)}),o.starts&&s(o.starts,a),c.matcher=i(c),c}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Ja(t.classNameAliases||{}),s(t)}function z3(t){return t?t.endsWithParent||z3(t.starts):!1}function npe(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return Ja(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:z3(t)?Ja(t,{starts:t.starts?Ja(t.starts):null}):Object.isFrozen(t)?Ja(t):t}var ipe="11.9.0",Lw=class extends Error{constructor(e,r){super(e),this.name="HTMLInjectionError",this.html=r}},Rw=R3,k3=Ja,I3=Symbol("nomatch"),spe=7,G3=function(t){let e=Object.create(null),r=Object.create(null),n=[],i=!0,s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]},a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Bw};function c(B){return a.noHighlightRe.test(B)}function u(B){let q=B.className+" ";q+=B.parentNode?B.parentNode.className:"";let ie=a.languageDetectRe.exec(q);if(ie){let j=k(ie[1]);return j||(F3(s.replace("{}",ie[1])),F3("Falling back to no-highlight mode for this block.",B)),j?ie[1]:"no-highlight"}return q.split(/\s+/).find(j=>c(j)||k(j))}function l(B,q,ie){let j="",G="";typeof q=="object"?(j=B,ie=q.ignoreIllegals,G=q.language):(sp("10.7.0","highlight(lang, code, ...args) has been deprecated."),sp("10.7.0",`Please use highlight(code, options) instead.
|
|
1105
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),G=B,j=q),ie===void 0&&(ie=!0);let J={code:j,language:G};N("before:highlight",J);let se=J.result?J.result:p(J.language,J.code,ie);return se.code=J.code,N("after:highlight",se),se}function p(B,q,ie,j){let G=Object.create(null);function J(K,Z){return K.keywords[Z]}function se(){if(!Me.keywords){fr.addText(V);return}let K=0;Me.keywordPatternRe.lastIndex=0;let Z=Me.keywordPatternRe.exec(V),de="";for(;Z;){de+=V.substring(K,Z.index);let Ae=br.case_insensitive?Z[0].toLowerCase():Z[0],Ee=J(Me,Ae);if(Ee){let[ht,ke]=Ee;if(fr.addText(de),de="",G[Ae]=(G[Ae]||0)+1,G[Ae]<=spe&&(te+=ke),ht.startsWith("_"))de+=Z[0];else{let ze=br.classNameAliases[ht]||ht;oe(Z[0],ze)}}else de+=Z[0];K=Me.keywordPatternRe.lastIndex,Z=Me.keywordPatternRe.exec(V)}de+=V.substring(K),fr.addText(de)}function De(){if(V==="")return;let K=null;if(typeof Me.subLanguage=="string"){if(!e[Me.subLanguage]){fr.addText(V);return}K=p(Me.subLanguage,V,!0,Rl[Me.subLanguage]),Rl[Me.subLanguage]=K._top}else K=h(V,Me.subLanguage.length?Me.subLanguage:null);Me.relevance>0&&(te+=K.relevance),fr.__addSublanguage(K._emitter,K.language)}function ge(){Me.subLanguage!=null?De():se(),V=""}function oe(K,Z){K!==""&&(fr.startScope(Z),fr.addText(K),fr.endScope())}function At(K,Z){let de=1,Ae=Z.length-1;for(;de<=Ae;){if(!K._emit[de]){de++;continue}let Ee=br.classNameAliases[K[de]]||K[de],ht=Z[de];Ee?oe(ht,Ee):(V=ht,se(),V=""),de++}}function rr(K,Z){return K.scope&&typeof K.scope=="string"&&fr.openNode(br.classNameAliases[K.scope]||K.scope),K.beginScope&&(K.beginScope._wrap?(oe(V,br.classNameAliases[K.beginScope._wrap]||K.beginScope._wrap),V=""):K.beginScope._multi&&(At(K.beginScope,Z),V="")),Me=Object.create(K,{parent:{value:Me}}),Me}function ne(K,Z,de){let Ae=Cle(K.endRe,de);if(Ae){if(K["on:end"]){let Ee=new sb(K);K["on:end"](Z,Ee),Ee.isMatchIgnored&&(Ae=!1)}if(Ae){for(;K.endsParent&&K.parent;)K=K.parent;return K}}if(K.endsWithParent)return ne(K.parent,Z,de)}function Ze(K){return Me.matcher.regexIndex===0?(V+=K[0],1):(ue=!0,0)}function ee(K){let Z=K[0],de=K.rule,Ae=new sb(de),Ee=[de.__beforeBegin,de["on:begin"]];for(let ht of Ee)if(ht&&(ht(K,Ae),Ae.isMatchIgnored))return Ze(Z);return de.skip?V+=Z:(de.excludeBegin&&(V+=Z),ge(),!de.returnBegin&&!de.excludeBegin&&(V=Z)),rr(de,K),de.returnBegin?0:Z.length}function Te(K){let Z=K[0],de=q.substring(K.index),Ae=ne(Me,K,de);if(!Ae)return I3;let Ee=Me;Me.endScope&&Me.endScope._wrap?(ge(),oe(Z,Me.endScope._wrap)):Me.endScope&&Me.endScope._multi?(ge(),At(Me.endScope,K)):Ee.skip?V+=Z:(Ee.returnEnd||Ee.excludeEnd||(V+=Z),ge(),Ee.excludeEnd&&(V=Z));do Me.scope&&fr.closeNode(),!Me.skip&&!Me.subLanguage&&(te+=Me.relevance),Me=Me.parent;while(Me!==Ae.parent);return Ae.starts&&rr(Ae.starts,K),Ee.returnEnd?0:Z.length}function ve(){let K=[];for(let Z=Me;Z!==br;Z=Z.parent)Z.scope&&K.unshift(Z.scope);K.forEach(Z=>fr.openNode(Z))}let Qe={};function mt(K,Z){let de=Z&&Z[0];if(V+=K,de==null)return ge(),0;if(Qe.type==="begin"&&Z.type==="end"&&Qe.index===Z.index&&de===""){if(V+=q.slice(Z.index,Z.index+1),!i){let Ae=new Error(`0 width match regex (${B})`);throw Ae.languageName=B,Ae.badRule=Qe.rule,Ae}return 1}if(Qe=Z,Z.type==="begin")return ee(Z);if(Z.type==="illegal"&&!ie){let Ae=new Error('Illegal lexeme "'+de+'" for mode "'+(Me.scope||"<unnamed>")+'"');throw Ae.mode=Me,Ae}else if(Z.type==="end"){let Ae=Te(Z);if(Ae!==I3)return Ae}if(Z.type==="illegal"&&de==="")return 1;if(le>1e5&&le>Z.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=de,de.length}let br=k(B);if(!br)throw uu(s.replace("{}",B)),new Error('Unknown language: "'+B+'"');let Zn=rpe(br),Vc="",Me=j||Zn,Rl={},fr=new a.__emitter(a);ve();let V="",te=0,re=0,le=0,ue=!1;try{if(br.__emitTokens)br.__emitTokens(q,fr);else{for(Me.matcher.considerAll();;){le++,ue?ue=!1:Me.matcher.considerAll(),Me.matcher.lastIndex=re;let K=Me.matcher.exec(q);if(!K)break;let Z=q.substring(re,K.index),de=mt(Z,K);re=K.index+de}mt(q.substring(re))}return fr.finalize(),Vc=fr.toHTML(),{language:B,value:Vc,relevance:te,illegal:!1,_emitter:fr,_top:Me}}catch(K){if(K.message&&K.message.includes("Illegal"))return{language:B,value:Rw(q),illegal:!0,relevance:0,_illegalBy:{message:K.message,index:re,context:q.slice(re-100,re+100),mode:K.mode,resultSoFar:Vc},_emitter:fr};if(i)return{language:B,value:Rw(q),illegal:!1,relevance:0,errorRaised:K,_emitter:fr,_top:Me};throw K}}function d(B){let q={value:Rw(B),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return q._emitter.addText(B),q}function h(B,q){q=q||a.languages||Object.keys(e);let ie=d(B),j=q.filter(k).filter(_).map(ge=>p(ge,B,!1));j.unshift(ie);let G=j.sort((ge,oe)=>{if(ge.relevance!==oe.relevance)return oe.relevance-ge.relevance;if(ge.language&&oe.language){if(k(ge.language).supersetOf===oe.language)return 1;if(k(oe.language).supersetOf===ge.language)return-1}return 0}),[J,se]=G,De=J;return De.secondBest=se,De}function m(B,q,ie){let j=q&&r[q]||ie;B.classList.add("hljs"),B.classList.add(`language-${j}`)}function g(B){let q=null,ie=u(B);if(c(ie))return;if(N("before:highlightElement",{el:B,language:ie}),B.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",B);return}if(B.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),a.throwUnescapedHTML))throw new Lw("One of your code blocks includes unescaped HTML.",B.innerHTML);q=B;let j=q.textContent,G=ie?l(j,{language:ie,ignoreIllegals:!0}):h(j);B.innerHTML=G.value,B.dataset.highlighted="yes",m(B,ie,G.language),B.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(B.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),N("after:highlightElement",{el:B,result:G,text:j})}function y(B){a=k3(a,B)}let b=()=>{x(),sp("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function D(){x(),sp("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function x(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(a.cssSelector).forEach(g)}function v(){C&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",v,!1);function w(B,q){let ie=null;try{ie=q(t)}catch(j){if(uu("Language definition for '{}' could not be registered.".replace("{}",B)),i)uu(j);else throw j;ie=o}ie.name||(ie.name=B),e[B]=ie,ie.rawDefinition=q.bind(null,t),ie.aliases&&P(ie.aliases,{languageName:B})}function S(B){delete e[B];for(let q of Object.keys(r))r[q]===B&&delete r[q]}function A(){return Object.keys(e)}function k(B){return B=(B||"").toLowerCase(),e[B]||e[r[B]]}function P(B,{languageName:q}){typeof B=="string"&&(B=[B]),B.forEach(ie=>{r[ie.toLowerCase()]=q})}function _(B){let q=k(B);return q&&!q.disableAutodetect}function L(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=q=>{B["before:highlightBlock"](Object.assign({block:q.el},q))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=q=>{B["after:highlightBlock"](Object.assign({block:q.el},q))})}function H(B){L(B),n.push(B)}function z(B){let q=n.indexOf(B);q!==-1&&n.splice(q,1)}function N(B,q){let ie=B;n.forEach(function(j){j[ie]&&j[ie](q)})}function O(B){return sp("10.7.0","highlightBlock will be removed entirely in v12.0"),sp("10.7.0","Please use highlightElement now."),g(B)}Object.assign(t,{highlight:l,highlightAuto:h,highlightAll:x,highlightElement:g,highlightBlock:O,configure:y,initHighlighting:b,initHighlightingOnLoad:D,registerLanguage:w,unregisterLanguage:S,listLanguages:A,getLanguage:k,registerAliases:P,autoDetection:_,inherit:k3,addPlugin:H,removePlugin:z}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=ipe,t.regex={concat:lu,lookahead:O3,either:$w,optional:xle,anyNumberOfTimes:vle};for(let B in ib)typeof ib[B]=="object"&&N3(ib[B]);return Object.assign(t,ib),t},op=G3({});op.newInstance=()=>G3({});V3.exports=op;op.HighlightJS=op;op.default=op});var K3,W3,J3=F(()=>{f();K3=U(H3(),1),W3=K3.default});function zw(t){let e=W3.newInstance();return t&&s(t),{highlight:r,highlightAuto:n,listLanguages:i,register:s,registerAlias:o,registered:a};function r(c,u,l){let p=l||Y3,d=typeof p.prefix=="string"?p.prefix:ope;if(!e.getLanguage(c))throw new Error("Unknown language: `"+c+"` is not registered");e.configure({__emitter:qw,classPrefix:d});let h=e.highlight(u,{ignoreIllegals:!0,language:c});if(h.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:h.errorRaised});let m=h._emitter.root,g=m.data;return g.language=h.language,g.relevance=h.relevance,m}function n(c,u){let p=(u||Y3).subset||i(),d=-1,h=0,m;for(;++d<p.length;){let g=p[d];if(!e.getLanguage(g))continue;let y=r(g,c,u);y.data&&y.data.relevance!==void 0&&y.data.relevance>h&&(h=y.data.relevance,m=y)}return m||{type:"root",children:[],data:{language:void 0,relevance:h}}}function i(){return e.listLanguages()}function s(c,u){if(typeof c=="string")e.registerLanguage(c,u);else{let l;for(l in c)Object.hasOwn(c,l)&&e.registerLanguage(l,c[l])}}function o(c,u){if(typeof c=="string")e.registerAliases(typeof u=="string"?u:[...u],{languageName:c});else{let l;for(l in c)if(Object.hasOwn(c,l)){let p=c[l];e.registerAliases(typeof p=="string"?p:[...p],{languageName:l})}}}function a(c){return!!e.getLanguage(c)}}var Y3,ope,qw,X3=F(()=>{f();J3();Y3={},ope="hljs-";qw=class{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;let r=this.stack[this.stack.length-1],n=r.children[r.children.length-1];n&&n.type==="text"?n.value+=e:r.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,r){let n=this.stack[this.stack.length-1],i=e.root.children;r?n.children.push({type:"element",tagName:"span",properties:{className:[r]},children:i}):n.children.push(...i)}openNode(e){let r=this,n=e.split(".").map(function(o,a){return a?o+"_".repeat(a):r.options.classPrefix+o}),i=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}});var Gw=F(()=>{f();T3();X3()});function upe(){let t=new Map;for(let[e,r]of Object.entries(sr)){for(let[n,i]of Object.entries(r))sr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=sr[n],t.set(i[0],i[1]);Object.defineProperty(sr,e,{value:r,enumerable:!1})}return Object.defineProperty(sr,"codes",{value:t,enumerable:!1}),sr.color.close="\x1B[39m",sr.bgColor.close="\x1B[49m",sr.color.ansi=Z3(),sr.color.ansi256=Q3(),sr.color.ansi16m=e8(),sr.bgColor.ansi=Z3(10),sr.bgColor.ansi256=Q3(10),sr.bgColor.ansi16m=e8(10),Object.defineProperties(sr,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>sr.rgbToAnsi256(...sr.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>sr.ansi256ToAnsi(sr.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>sr.ansi256ToAnsi(sr.hexToAnsi256(e)),enumerable:!1}}),sr}var Z3,Q3,e8,sr,aJe,ape,cpe,cJe,lpe,ks,t8=F(()=>{f();Z3=(t=0)=>e=>`\x1B[${e+t}m`,Q3=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,e8=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,sr={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]}},aJe=Object.keys(sr.modifier),ape=Object.keys(sr.color),cpe=Object.keys(sr.bgColor),cJe=[...ape,...cpe];lpe=upe(),ks=lpe});function Hi(t,e=globalThis.Deno?globalThis.Deno.args:ub.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}function ppe(){if("FORCE_COLOR"in mr)return mr.FORCE_COLOR==="true"?1:mr.FORCE_COLOR==="false"?0:mr.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(mr.FORCE_COLOR,10),3)}function dpe(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function fpe(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=ppe();n!==void 0&&(cb=n);let i=r?cb:n;if(i===0)return 0;if(r){if(Hi("color=16m")||Hi("color=full")||Hi("color=truecolor"))return 3;if(Hi("color=256"))return 2}if("TF_BUILD"in mr&&"AGENT_NAME"in mr)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(mr.TERM==="dumb")return s;if(ub.default.platform==="win32"){let o=n8.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in mr)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in mr)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in mr)||mr.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in mr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(mr.TEAMCITY_VERSION)?1:0;if(mr.COLORTERM==="truecolor"||mr.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in mr){let o=Number.parseInt((mr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(mr.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(mr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(mr.TERM)||"COLORTERM"in mr?1:s}function r8(t,e={}){let r=fpe(t,{streamIsTTY:t&&t.isTTY,...e});return dpe(r)}var ub,n8,Vw,mr,cb,mpe,i8,s8=F(()=>{f();ub=U(require("node:process"),1),n8=U(require("node:os"),1),Vw=U(require("node:tty"),1);({env:mr}=ub.default);Hi("no-color")||Hi("no-colors")||Hi("color=false")||Hi("color=never")?cb=0:(Hi("color")||Hi("colors")||Hi("color=true")||Hi("color=always"))&&(cb=1);mpe={stdout:r8({isTTY:Vw.default.isatty(1)}),stderr:r8({isTTY:Vw.default.isatty(2)})},i8=mpe});function o8(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function a8(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.slice(i,o?n-1:n)+e+(o?`\r
|
|
1105
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),G=B,j=q),ie===void 0&&(ie=!0);let J={code:j,language:G};N("before:highlight",J);let se=J.result?J.result:p(J.language,J.code,ie);return se.code=J.code,N("after:highlight",se),se}function p(B,q,ie,j){let G=Object.create(null);function J(K,Z){return K.keywords[Z]}function se(){if(!Me.keywords){fr.addText(V);return}let K=0;Me.keywordPatternRe.lastIndex=0;let Z=Me.keywordPatternRe.exec(V),de="";for(;Z;){de+=V.substring(K,Z.index);let Ae=br.case_insensitive?Z[0].toLowerCase():Z[0],Ee=J(Me,Ae);if(Ee){let[ht,ke]=Ee;if(fr.addText(de),de="",G[Ae]=(G[Ae]||0)+1,G[Ae]<=spe&&(te+=ke),ht.startsWith("_"))de+=Z[0];else{let ze=br.classNameAliases[ht]||ht;oe(Z[0],ze)}}else de+=Z[0];K=Me.keywordPatternRe.lastIndex,Z=Me.keywordPatternRe.exec(V)}de+=V.substring(K),fr.addText(de)}function De(){if(V==="")return;let K=null;if(typeof Me.subLanguage=="string"){if(!e[Me.subLanguage]){fr.addText(V);return}K=p(Me.subLanguage,V,!0,Rl[Me.subLanguage]),Rl[Me.subLanguage]=K._top}else K=h(V,Me.subLanguage.length?Me.subLanguage:null);Me.relevance>0&&(te+=K.relevance),fr.__addSublanguage(K._emitter,K.language)}function ge(){Me.subLanguage!=null?De():se(),V=""}function oe(K,Z){K!==""&&(fr.startScope(Z),fr.addText(K),fr.endScope())}function At(K,Z){let de=1,Ae=Z.length-1;for(;de<=Ae;){if(!K._emit[de]){de++;continue}let Ee=br.classNameAliases[K[de]]||K[de],ht=Z[de];Ee?oe(ht,Ee):(V=ht,se(),V=""),de++}}function rr(K,Z){return K.scope&&typeof K.scope=="string"&&fr.openNode(br.classNameAliases[K.scope]||K.scope),K.beginScope&&(K.beginScope._wrap?(oe(V,br.classNameAliases[K.beginScope._wrap]||K.beginScope._wrap),V=""):K.beginScope._multi&&(At(K.beginScope,Z),V="")),Me=Object.create(K,{parent:{value:Me}}),Me}function ne(K,Z,de){let Ae=Cle(K.endRe,de);if(Ae){if(K["on:end"]){let Ee=new sb(K);K["on:end"](Z,Ee),Ee.isMatchIgnored&&(Ae=!1)}if(Ae){for(;K.endsParent&&K.parent;)K=K.parent;return K}}if(K.endsWithParent)return ne(K.parent,Z,de)}function Ze(K){return Me.matcher.regexIndex===0?(V+=K[0],1):(ce=!0,0)}function ee(K){let Z=K[0],de=K.rule,Ae=new sb(de),Ee=[de.__beforeBegin,de["on:begin"]];for(let ht of Ee)if(ht&&(ht(K,Ae),Ae.isMatchIgnored))return Ze(Z);return de.skip?V+=Z:(de.excludeBegin&&(V+=Z),ge(),!de.returnBegin&&!de.excludeBegin&&(V=Z)),rr(de,K),de.returnBegin?0:Z.length}function Te(K){let Z=K[0],de=q.substring(K.index),Ae=ne(Me,K,de);if(!Ae)return I3;let Ee=Me;Me.endScope&&Me.endScope._wrap?(ge(),oe(Z,Me.endScope._wrap)):Me.endScope&&Me.endScope._multi?(ge(),At(Me.endScope,K)):Ee.skip?V+=Z:(Ee.returnEnd||Ee.excludeEnd||(V+=Z),ge(),Ee.excludeEnd&&(V=Z));do Me.scope&&fr.closeNode(),!Me.skip&&!Me.subLanguage&&(te+=Me.relevance),Me=Me.parent;while(Me!==Ae.parent);return Ae.starts&&rr(Ae.starts,K),Ee.returnEnd?0:Z.length}function ve(){let K=[];for(let Z=Me;Z!==br;Z=Z.parent)Z.scope&&K.unshift(Z.scope);K.forEach(Z=>fr.openNode(Z))}let Qe={};function mt(K,Z){let de=Z&&Z[0];if(V+=K,de==null)return ge(),0;if(Qe.type==="begin"&&Z.type==="end"&&Qe.index===Z.index&&de===""){if(V+=q.slice(Z.index,Z.index+1),!i){let Ae=new Error(`0 width match regex (${B})`);throw Ae.languageName=B,Ae.badRule=Qe.rule,Ae}return 1}if(Qe=Z,Z.type==="begin")return ee(Z);if(Z.type==="illegal"&&!ie){let Ae=new Error('Illegal lexeme "'+de+'" for mode "'+(Me.scope||"<unnamed>")+'"');throw Ae.mode=Me,Ae}else if(Z.type==="end"){let Ae=Te(Z);if(Ae!==I3)return Ae}if(Z.type==="illegal"&&de==="")return 1;if(pe>1e5&&pe>Z.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=de,de.length}let br=k(B);if(!br)throw uu(s.replace("{}",B)),new Error('Unknown language: "'+B+'"');let Zn=rpe(br),Vc="",Me=j||Zn,Rl={},fr=new a.__emitter(a);ve();let V="",te=0,re=0,pe=0,ce=!1;try{if(br.__emitTokens)br.__emitTokens(q,fr);else{for(Me.matcher.considerAll();;){pe++,ce?ce=!1:Me.matcher.considerAll(),Me.matcher.lastIndex=re;let K=Me.matcher.exec(q);if(!K)break;let Z=q.substring(re,K.index),de=mt(Z,K);re=K.index+de}mt(q.substring(re))}return fr.finalize(),Vc=fr.toHTML(),{language:B,value:Vc,relevance:te,illegal:!1,_emitter:fr,_top:Me}}catch(K){if(K.message&&K.message.includes("Illegal"))return{language:B,value:Rw(q),illegal:!0,relevance:0,_illegalBy:{message:K.message,index:re,context:q.slice(re-100,re+100),mode:K.mode,resultSoFar:Vc},_emitter:fr};if(i)return{language:B,value:Rw(q),illegal:!1,relevance:0,errorRaised:K,_emitter:fr,_top:Me};throw K}}function d(B){let q={value:Rw(B),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return q._emitter.addText(B),q}function h(B,q){q=q||a.languages||Object.keys(e);let ie=d(B),j=q.filter(k).filter(_).map(ge=>p(ge,B,!1));j.unshift(ie);let G=j.sort((ge,oe)=>{if(ge.relevance!==oe.relevance)return oe.relevance-ge.relevance;if(ge.language&&oe.language){if(k(ge.language).supersetOf===oe.language)return 1;if(k(oe.language).supersetOf===ge.language)return-1}return 0}),[J,se]=G,De=J;return De.secondBest=se,De}function m(B,q,ie){let j=q&&r[q]||ie;B.classList.add("hljs"),B.classList.add(`language-${j}`)}function g(B){let q=null,ie=u(B);if(c(ie))return;if(N("before:highlightElement",{el:B,language:ie}),B.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",B);return}if(B.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),a.throwUnescapedHTML))throw new Lw("One of your code blocks includes unescaped HTML.",B.innerHTML);q=B;let j=q.textContent,G=ie?l(j,{language:ie,ignoreIllegals:!0}):h(j);B.innerHTML=G.value,B.dataset.highlighted="yes",m(B,ie,G.language),B.result={language:G.language,re:G.relevance,relevance:G.relevance},G.secondBest&&(B.secondBest={language:G.secondBest.language,relevance:G.secondBest.relevance}),N("after:highlightElement",{el:B,result:G,text:j})}function y(B){a=k3(a,B)}let b=()=>{x(),sp("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function D(){x(),sp("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function x(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(a.cssSelector).forEach(g)}function v(){C&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",v,!1);function w(B,q){let ie=null;try{ie=q(t)}catch(j){if(uu("Language definition for '{}' could not be registered.".replace("{}",B)),i)uu(j);else throw j;ie=o}ie.name||(ie.name=B),e[B]=ie,ie.rawDefinition=q.bind(null,t),ie.aliases&&P(ie.aliases,{languageName:B})}function S(B){delete e[B];for(let q of Object.keys(r))r[q]===B&&delete r[q]}function A(){return Object.keys(e)}function k(B){return B=(B||"").toLowerCase(),e[B]||e[r[B]]}function P(B,{languageName:q}){typeof B=="string"&&(B=[B]),B.forEach(ie=>{r[ie.toLowerCase()]=q})}function _(B){let q=k(B);return q&&!q.disableAutodetect}function L(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=q=>{B["before:highlightBlock"](Object.assign({block:q.el},q))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=q=>{B["after:highlightBlock"](Object.assign({block:q.el},q))})}function H(B){L(B),n.push(B)}function z(B){let q=n.indexOf(B);q!==-1&&n.splice(q,1)}function N(B,q){let ie=B;n.forEach(function(j){j[ie]&&j[ie](q)})}function O(B){return sp("10.7.0","highlightBlock will be removed entirely in v12.0"),sp("10.7.0","Please use highlightElement now."),g(B)}Object.assign(t,{highlight:l,highlightAuto:h,highlightAll:x,highlightElement:g,highlightBlock:O,configure:y,initHighlighting:b,initHighlightingOnLoad:D,registerLanguage:w,unregisterLanguage:S,listLanguages:A,getLanguage:k,registerAliases:P,autoDetection:_,inherit:k3,addPlugin:H,removePlugin:z}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=ipe,t.regex={concat:lu,lookahead:O3,either:$w,optional:xle,anyNumberOfTimes:vle};for(let B in ib)typeof ib[B]=="object"&&N3(ib[B]);return Object.assign(t,ib),t},op=G3({});op.newInstance=()=>G3({});V3.exports=op;op.HighlightJS=op;op.default=op});var K3,W3,J3=F(()=>{f();K3=U(H3(),1),W3=K3.default});function zw(t){let e=W3.newInstance();return t&&s(t),{highlight:r,highlightAuto:n,listLanguages:i,register:s,registerAlias:o,registered:a};function r(c,u,l){let p=l||Y3,d=typeof p.prefix=="string"?p.prefix:ope;if(!e.getLanguage(c))throw new Error("Unknown language: `"+c+"` is not registered");e.configure({__emitter:qw,classPrefix:d});let h=e.highlight(u,{ignoreIllegals:!0,language:c});if(h.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:h.errorRaised});let m=h._emitter.root,g=m.data;return g.language=h.language,g.relevance=h.relevance,m}function n(c,u){let p=(u||Y3).subset||i(),d=-1,h=0,m;for(;++d<p.length;){let g=p[d];if(!e.getLanguage(g))continue;let y=r(g,c,u);y.data&&y.data.relevance!==void 0&&y.data.relevance>h&&(h=y.data.relevance,m=y)}return m||{type:"root",children:[],data:{language:void 0,relevance:h}}}function i(){return e.listLanguages()}function s(c,u){if(typeof c=="string")e.registerLanguage(c,u);else{let l;for(l in c)Object.hasOwn(c,l)&&e.registerLanguage(l,c[l])}}function o(c,u){if(typeof c=="string")e.registerAliases(typeof u=="string"?u:[...u],{languageName:c});else{let l;for(l in c)if(Object.hasOwn(c,l)){let p=c[l];e.registerAliases(typeof p=="string"?p:[...p],{languageName:l})}}}function a(c){return!!e.getLanguage(c)}}var Y3,ope,qw,X3=F(()=>{f();J3();Y3={},ope="hljs-";qw=class{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;let r=this.stack[this.stack.length-1],n=r.children[r.children.length-1];n&&n.type==="text"?n.value+=e:r.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,r){let n=this.stack[this.stack.length-1],i=e.root.children;r?n.children.push({type:"element",tagName:"span",properties:{className:[r]},children:i}):n.children.push(...i)}openNode(e){let r=this,n=e.split(".").map(function(o,a){return a?o+"_".repeat(a):r.options.classPrefix+o}),i=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}});var Gw=F(()=>{f();T3();X3()});function upe(){let t=new Map;for(let[e,r]of Object.entries(sr)){for(let[n,i]of Object.entries(r))sr[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=sr[n],t.set(i[0],i[1]);Object.defineProperty(sr,e,{value:r,enumerable:!1})}return Object.defineProperty(sr,"codes",{value:t,enumerable:!1}),sr.color.close="\x1B[39m",sr.bgColor.close="\x1B[49m",sr.color.ansi=Z3(),sr.color.ansi256=Q3(),sr.color.ansi16m=e8(),sr.bgColor.ansi=Z3(10),sr.bgColor.ansi256=Q3(10),sr.bgColor.ansi16m=e8(10),Object.defineProperties(sr,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>sr.rgbToAnsi256(...sr.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>sr.ansi256ToAnsi(sr.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>sr.ansi256ToAnsi(sr.hexToAnsi256(e)),enumerable:!1}}),sr}var Z3,Q3,e8,sr,aJe,ape,cpe,cJe,lpe,ks,t8=F(()=>{f();Z3=(t=0)=>e=>`\x1B[${e+t}m`,Q3=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,e8=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,sr={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]}},aJe=Object.keys(sr.modifier),ape=Object.keys(sr.color),cpe=Object.keys(sr.bgColor),cJe=[...ape,...cpe];lpe=upe(),ks=lpe});function Hi(t,e=globalThis.Deno?globalThis.Deno.args:ub.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}function ppe(){if("FORCE_COLOR"in mr)return mr.FORCE_COLOR==="true"?1:mr.FORCE_COLOR==="false"?0:mr.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(mr.FORCE_COLOR,10),3)}function dpe(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function fpe(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=ppe();n!==void 0&&(cb=n);let i=r?cb:n;if(i===0)return 0;if(r){if(Hi("color=16m")||Hi("color=full")||Hi("color=truecolor"))return 3;if(Hi("color=256"))return 2}if("TF_BUILD"in mr&&"AGENT_NAME"in mr)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(mr.TERM==="dumb")return s;if(ub.default.platform==="win32"){let o=n8.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in mr)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in mr)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in mr)||mr.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in mr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(mr.TEAMCITY_VERSION)?1:0;if(mr.COLORTERM==="truecolor"||mr.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in mr){let o=Number.parseInt((mr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(mr.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(mr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(mr.TERM)||"COLORTERM"in mr?1:s}function r8(t,e={}){let r=fpe(t,{streamIsTTY:t&&t.isTTY,...e});return dpe(r)}var ub,n8,Vw,mr,cb,mpe,i8,s8=F(()=>{f();ub=U(require("node:process"),1),n8=U(require("node:os"),1),Vw=U(require("node:tty"),1);({env:mr}=ub.default);Hi("no-color")||Hi("no-colors")||Hi("color=false")||Hi("color=never")?cb=0:(Hi("color")||Hi("colors")||Hi("color=true")||Hi("color=always"))&&(cb=1);mpe={stdout:r8({isTTY:Vw.default.isatty(1)}),stderr:r8({isTTY:Vw.default.isatty(2)})},i8=mpe});function o8(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function a8(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.slice(i,o?n-1:n)+e+(o?`\r
|
|
1106
1106
|
`:`
|
|
1107
1107
|
`)+r,i=n+1,n=t.indexOf(`
|
|
1108
1108
|
`,i)}while(n!==-1);return s+=t.slice(i),s}var c8=F(()=>{f()});function Zf(t){return d8(t)}var u8,l8,Hw,ap,Xf,p8,cp,hpe,lb,d8,Kw,gpe,ype,Ww,pb,bpe,bJe,vJe,f8=F(()=>{f();t8();s8();c8();({stdout:u8,stderr:l8}=i8),Hw=Symbol("GENERATOR"),ap=Symbol("STYLER"),Xf=Symbol("IS_EMPTY"),p8=["ansi","ansi","ansi256","ansi16m"],cp=Object.create(null),hpe=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=u8?u8.level:0;t.level=e.level===void 0?r:e.level},lb=class{constructor(e){return d8(e)}},d8=t=>{let e=(...r)=>r.join(" ");return hpe(e,t),Object.setPrototypeOf(e,Zf.prototype),e};Object.setPrototypeOf(Zf.prototype,Function.prototype);for(let[t,e]of Object.entries(ks))cp[t]={get(){let r=pb(this,Ww(e.open,e.close,this[ap]),this[Xf]);return Object.defineProperty(this,t,{value:r}),r}};cp.visible={get(){let t=pb(this,this[ap],!0);return Object.defineProperty(this,"visible",{value:t}),t}};Kw=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?ks[r].ansi16m(...n):e==="ansi256"?ks[r].ansi256(ks.rgbToAnsi256(...n)):ks[r].ansi(ks.rgbToAnsi(...n)):t==="hex"?Kw("rgb",e,r,...ks.hexToRgb(...n)):ks[r][t](...n),gpe=["rgb","hex","ansi256"];for(let t of gpe){cp[t]={get(){let{level:r}=this;return function(...n){let i=Ww(Kw(t,p8[r],"color",...n),ks.color.close,this[ap]);return pb(this,i,this[Xf])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);cp[e]={get(){let{level:r}=this;return function(...n){let i=Ww(Kw(t,p8[r],"bgColor",...n),ks.bgColor.close,this[ap]);return pb(this,i,this[Xf])}}}}ype=Object.defineProperties(()=>{},{...cp,level:{enumerable:!0,get(){return this[Hw].level},set(t){this[Hw].level=t}}}),Ww=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},pb=(t,e,r)=>{let n=(...i)=>bpe(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,ype),n[Hw]=t,n[ap]=e,n[Xf]=r,n},bpe=(t,e)=>{if(t.level<=0||!e)return t[Xf]?"":e;let r=t[ap];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=o8(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
1109
|
-
`);return s!==-1&&(e=a8(e,i,n,s)),n+e+i};Object.defineProperties(Zf.prototype,cp);bJe=Zf(),vJe=Zf({level:l8?l8.level:0})});function Qf(t){let e=zw(t);return{highlight:r,highlightAuto:n,listLanguages:e.listLanguages,register:e.register,registerAlias:e.registerAlias,registered:e.registered};function r(i,s,o){let a=e.highlight(i,s),c=a.data;return{language:c.language,relevance:c.relevance,value:Jw(o||m8,a)}}function n(i,s){let o,a;if(s&&("subset"in s||"sheet"in s)){let l=s;a={subset:l.subset},o=l.sheet}else o=s;let c=e.highlightAuto(i,a),u=c.data;return{language:u.language,relevance:u.relevance,value:Jw(o||m8,c)}}}function Jw(t,e){let r=new Set(e.type==="element"&&Array.isArray(e.properties.className)?e.properties.className.map(function(a){return String(a).replace(/^hljs-/,"")}):[]),n={},i,s="",o;for(o in t)if(Object.hasOwn(t,o)){let a=o.split(" "),c=t[o];r.has(a[0])?a.length===1?i=c:n[a.slice(1).join(" ")]=c:n[o]=c}return"value"in e?s=e.value:"children"in e&&(s=vpe(n,e.children)),i&&(s=i(s)),s}function vpe(t,e){let r=[],n=-1;for(;++n<e.length;)r.push(Jw(t,e[n]));return r.join("")}var at,m8,h8=F(()=>{f();f8();Gw();at=new lb({level:2}),m8={comment:at.gray,quote:at.gray,keyword:at.green,"selector-tag":at.green,addition:at.green,number:at.cyan,string:at.cyan,"meta meta-string":at.cyan,literal:at.cyan,doctag:at.cyan,regexp:at.cyan,title:at.blue,section:at.blue,name:at.blue,"selector-id":at.blue,"selector-class":at.blue,attribute:at.yellow,attr:at.yellow,variable:at.yellow,"template-variable":at.yellow,"class title":at.yellow,type:at.yellow,symbol:at.magenta,bullet:at.magenta,subst:at.magenta,meta:at.magenta,"meta keyword":at.magenta,"selector-attr":at.magenta,"selector-pseudo":at.magenta,link:at.magenta,built_in:at.red,deletion:at.red,emphasis:at.italic,strong:at.bold,formula:at.inverse}});var Yw=F(()=>{f();Gw();h8()});async function fe(t){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([g8.flush(2e3),y8.flush().promise])}catch(e){console.error(e)}process.exit(t)}var g8,y8,Ki=F(()=>{"use strict";f();g8=U(require("@sentry/node"),1),y8=U(require("@amplitude/analytics-node"),1)});var je,nn=F(()=>{"use strict";f();je=process.env.AIR_HOST||"https://api.builder.io"});var v8,b8=F(()=>{v8="1.18.6"});var D8=E(Xw=>{f();var x8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Xw.encode=function(t){if(0<=t&&t<x8.length)return x8[t];throw new TypeError("Must be between 0 and 63: "+t)};Xw.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,u=26,l=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=o?t-s+l:t==a?62:t==c?63:-1}});var eE=E(Qw=>{f();var C8=D8(),Zw=5,w8=1<<Zw,E8=w8-1,S8=w8;function Dpe(t){return t<0?(-t<<1)+1:(t<<1)+0}function Cpe(t){var e=(t&1)===1,r=t>>1;return e?-r:r}Qw.encode=function(e){var r="",n,i=Dpe(e);do n=i&E8,i>>>=Zw,i>0&&(n|=S8),r+=C8.encode(n);while(i>0);return r};Qw.decode=function(e,r,n){var i=e.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=C8.decode(e.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(c&S8),c&=E8,s=s+(c<<o),o+=Zw}while(a);n.value=Cpe(s),n.rest=r}});var lp=E(qr=>{f();function wpe(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}qr.getArg=wpe;var T8=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Epe=/^data:.+\,.+$/;function em(t){var e=t.match(T8);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}qr.urlParse=em;function up(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}qr.urlGenerate=up;var Spe=32;function Tpe(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>Spe&&e.pop(),s}}var tE=Tpe(function(e){var r=e,n=em(e);if(n){if(!n.path)return e;r=n.path}for(var i=qr.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var c,u=0,a=s.length-1;a>=0;a--)c=s[a],c==="."?s.splice(a,1):c===".."?u++:u>0&&(c===""?(s.splice(a+1,u),u=0):(s.splice(a,2),u--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,up(n)):r});qr.normalize=tE;function A8(t,e){t===""&&(t="."),e===""&&(e=".");var r=em(e),n=em(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),up(r);if(r||e.match(Epe))return e;if(n&&!n.host&&!n.path)return n.host=e,up(n);var i=e.charAt(0)==="/"?e:tE(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,up(n)):i}qr.join=A8;qr.isAbsolute=function(t){return t.charAt(0)==="/"||T8.test(t)};function Ape(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}qr.relative=Ape;var _8=(function(){var t=Object.create(null);return!("__proto__"in t)})();function P8(t){return t}function _pe(t){return F8(t)?"$"+t:t}qr.toSetString=_8?P8:_pe;function Ppe(t){return F8(t)?t.slice(1):t}qr.fromSetString=_8?P8:Ppe;function F8(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function Fpe(t,e,r){var n=ta(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:ta(t.name,e.name)}qr.compareByOriginalPositions=Fpe;function kpe(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:ta(t.name,e.name)}qr.compareByOriginalPositionsNoSource=kpe;function Ipe(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=ta(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:ta(t.name,e.name)}qr.compareByGeneratedPositionsDeflated=Ipe;function Npe(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=ta(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:ta(t.name,e.name)}qr.compareByGeneratedPositionsDeflatedNoLine=Npe;function ta(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Rpe(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=ta(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:ta(t.name,e.name)}qr.compareByGeneratedPositionsInflated=Rpe;function Ope(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}qr.parseSourceMapInput=Ope;function Mpe(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=em(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=A8(up(n),e)}return tE(e)}qr.computeSourceURL=Mpe});var iE=E(k8=>{f();var rE=lp(),nE=Object.prototype.hasOwnProperty,pu=typeof Map<"u";function ra(){this._array=[],this._set=pu?new Map:Object.create(null)}ra.fromArray=function(e,r){for(var n=new ra,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};ra.prototype.size=function(){return pu?this._set.size:Object.getOwnPropertyNames(this._set).length};ra.prototype.add=function(e,r){var n=pu?e:rE.toSetString(e),i=pu?this.has(e):nE.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(pu?this._set.set(e,s):this._set[n]=s)};ra.prototype.has=function(e){if(pu)return this._set.has(e);var r=rE.toSetString(e);return nE.call(this._set,r)};ra.prototype.indexOf=function(e){if(pu){var r=this._set.get(e);if(r>=0)return r}else{var n=rE.toSetString(e);if(nE.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};ra.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ra.prototype.toArray=function(){return this._array.slice()};k8.ArraySet=ra});var R8=E(N8=>{f();var I8=lp();function Bpe(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||I8.compareByGeneratedPositionsInflated(t,e)<=0}function db(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}db.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};db.prototype.add=function(e){Bpe(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};db.prototype.toArray=function(){return this._sorted||(this._array.sort(I8.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};N8.MappingList=db});var sE=E(O8=>{f();var tm=eE(),Dr=lp(),fb=iE().ArraySet,Lpe=R8().MappingList;function Wi(t){t||(t={}),this._file=Dr.getArg(t,"file",null),this._sourceRoot=Dr.getArg(t,"sourceRoot",null),this._skipValidation=Dr.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=Dr.getArg(t,"ignoreInvalidMapping",!1),this._sources=new fb,this._names=new fb,this._mappings=new Lpe,this._sourcesContents=null}Wi.prototype._version=3;Wi.fromSourceMap=function(e,r){var n=e.sourceRoot,i=new Wi(Object.assign(r||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=Dr.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=Dr.relative(n,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};Wi.prototype.addMapping=function(e){var r=Dr.getArg(e,"generated"),n=Dr.getArg(e,"original",null),i=Dr.getArg(e,"source",null),s=Dr.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};Wi.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=Dr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Dr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Dr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Wi.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=Dr.relative(s,i));var o=new fb,a=new fb;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var u=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});u.source!=null&&(c.source=u.source,n!=null&&(c.source=Dr.join(n,c.source)),s!=null&&(c.source=Dr.relative(s,c.source)),c.originalLine=u.line,c.originalColumn=u.column,u.name!=null&&(c.name=u.name))}var l=c.source;l!=null&&!o.has(l)&&o.add(l);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,e.sources.forEach(function(c){var u=e.sourceContentFor(c);u!=null&&(n!=null&&(c=Dr.join(n,c)),s!=null&&(c=Dr.relative(s,c)),this.setSourceContent(c,u))},this)};Wi.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="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(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Wi.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",c,u,l,p,d=this._mappings.toArray(),h=0,m=d.length;h<m;h++){if(u=d[h],c="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Dr.compareByGeneratedPositionsInflated(u,d[h-1]))continue;c+=","}c+=tm.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),c+=tm.encode(p-o),o=p,c+=tm.encode(u.originalLine-1-i),i=u.originalLine-1,c+=tm.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(l=this._names.indexOf(u.name),c+=tm.encode(l-s),s=l)),a+=c}return a};Wi.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Dr.relative(r,n));var i=Dr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Wi.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Wi.prototype.toString=function(){return JSON.stringify(this.toJSON())};O8.SourceMapGenerator=Wi});var M8=E(du=>{f();du.GREATEST_LOWER_BOUND=1;du.LEAST_UPPER_BOUND=2;function oE(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?oE(o,e,r,n,i,s):s==du.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?oE(t,o,r,n,i,s):s==du.LEAST_UPPER_BOUND?o:t<0?-1:t}du.search=function(e,r,n,i){if(r.length===0)return-1;var s=oE(-1,r.length,e,r,n,i||du.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var $8=E(L8=>{f();function $pe(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var c=r(o,a),u=o-1;e(i,c,a);for(var l=i[a],p=o;p<a;p++)s(i[p],l,!1)<=0&&(u+=1,e(i,u,p));e(i,u+1,p);var d=u+1;n(i,s,o,d-1),n(i,s,d+1,a)}}return n}function jpe(t){let e=$pe.toString();return new Function(`return ${e}`)()(t)}var B8=new WeakMap;L8.quickSort=function(t,e,r=0){let n=B8.get(e);n===void 0&&(n=jpe(e),B8.set(e,n)),n(t,e,r,t.length-1)}});var q8=E(mb=>{f();var he=lp(),cE=M8(),pp=iE().ArraySet,Upe=eE(),rm=$8().quickSort;function Xt(t,e){var r=t;return typeof t=="string"&&(r=he.parseSourceMapInput(t)),r.sections!=null?new Is(r,e):new sn(r,e)}Xt.fromSourceMap=function(t,e){return sn.fromSourceMap(t,e)};Xt.prototype._version=3;Xt.prototype.__generatedMappings=null;Object.defineProperty(Xt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Xt.prototype.__originalMappings=null;Object.defineProperty(Xt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Xt.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};Xt.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};Xt.GENERATED_ORDER=1;Xt.ORIGINAL_ORDER=2;Xt.GREATEST_LOWER_BOUND=1;Xt.LEAST_UPPER_BOUND=2;Xt.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||Xt.GENERATED_ORDER,o;switch(s){case Xt.GENERATED_ORDER:o=this._generatedMappings;break;case Xt.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,c=e.bind(i),u=this._names,l=this._sources,p=this._sourceMapURL,d=0,h=o.length;d<h;d++){var m=o[d],g=m.source===null?null:l.at(m.source);g!==null&&(g=he.computeSourceURL(a,g,p)),c({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:u.at(m.name)})}};Xt.prototype.allGeneratedPositionsFor=function(e){var r=he.getArg(e,"line"),n={source:he.getArg(e,"source"),originalLine:r,originalColumn:he.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",he.compareByOriginalPositions,cE.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:he.getArg(o,"generatedLine",null),column:he.getArg(o,"generatedColumn",null),lastColumn:he.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:he.getArg(o,"generatedLine",null),column:he.getArg(o,"generatedColumn",null),lastColumn:he.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};mb.SourceMapConsumer=Xt;function sn(t,e){var r=t;typeof t=="string"&&(r=he.parseSourceMapInput(t));var n=he.getArg(r,"version"),i=he.getArg(r,"sources"),s=he.getArg(r,"names",[]),o=he.getArg(r,"sourceRoot",null),a=he.getArg(r,"sourcesContent",null),c=he.getArg(r,"mappings"),u=he.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=he.normalize(o)),i=i.map(String).map(he.normalize).map(function(l){return o&&he.isAbsolute(o)&&he.isAbsolute(l)?he.relative(o,l):l}),this._names=pp.fromArray(s.map(String),!0),this._sources=pp.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(l){return he.computeSourceURL(o,l,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=e,this.file=u}sn.prototype=Object.create(Xt.prototype);sn.prototype.consumer=Xt;sn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=he.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};sn.fromSourceMap=function(e,r){var n=Object.create(sn.prototype),i=n._names=pp.fromArray(e._names.toArray(),!0),s=n._sources=pp.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return he.computeSourceURL(n.sourceRoot,h,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],u=0,l=o.length;u<l;u++){var p=o[u],d=new U8;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),c.push(d)),a.push(d)}return rm(n.__originalMappings,he.compareByOriginalPositions),n};sn.prototype._version=3;Object.defineProperty(sn.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function U8(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var aE=he.compareByGeneratedPositionsDeflatedNoLine;function j8(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];aE(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(aE(o,a)<=0)break;t[s-1]=a,t[s]=o}else rm(t,aE,e)}sn.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,c=0,u=e.length,l=0,p={},d={},h=[],m=[],g,y,b,D,C;let x=0;for(;l<u;)if(e.charAt(l)===";")n++,l++,i=0,j8(m,x),x=m.length;else if(e.charAt(l)===",")l++;else{for(g=new U8,g.generatedLine=n,D=l;D<u&&!this._charIsMappingSeparator(e,D);D++);for(y=e.slice(l,D),b=[];l<D;)Upe.decode(e,l,d),C=d.value,l=d.rest,b.push(C);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=i+b[0],i=g.generatedColumn,b.length>1&&(g.source=a+b[1],a+=b[1],g.originalLine=s+b[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=o+b[3],o=g.originalColumn,b.length>4&&(g.name=c+b[4],c+=b[4])),m.push(g),typeof g.originalLine=="number"){let w=g.source;for(;h.length<=w;)h.push(null);h[w]===null&&(h[w]=[]),h[w].push(g)}}j8(m,x),this.__generatedMappings=m;for(var v=0;v<h.length;v++)h[v]!=null&&rm(h[v],he.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};sn.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return cE.search(e,r,s,o)};sn.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};sn.prototype.originalPositionFor=function(e){var r={generatedLine:he.getArg(e,"line"),generatedColumn:he.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",he.compareByGeneratedPositionsDeflated,he.getArg(e,"bias",Xt.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=he.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=he.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=he.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:he.getArg(i,"originalLine",null),column:he.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};sn.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};sn.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=he.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=he.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};sn.prototype.generatedPositionFor=function(e){var r=he.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:he.getArg(e,"line"),originalColumn:he.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",he.compareByOriginalPositions,he.getArg(e,"bias",Xt.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:he.getArg(s,"generatedLine",null),column:he.getArg(s,"generatedColumn",null),lastColumn:he.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};mb.BasicSourceMapConsumer=sn;function Is(t,e){var r=t;typeof t=="string"&&(r=he.parseSourceMapInput(t));var n=he.getArg(r,"version"),i=he.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new pp,this._names=new pp;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=he.getArg(o,"offset"),c=he.getArg(a,"line"),u=he.getArg(a,"column");if(c<s.line||c===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:u+1},consumer:new Xt(he.getArg(o,"map"),e)}})}Is.prototype=Object.create(Xt.prototype);Is.prototype.constructor=Xt;Is.prototype._version=3;Object.defineProperty(Is.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});Is.prototype.originalPositionFor=function(e){var r={generatedLine:he.getArg(e,"line"),generatedColumn:he.getArg(e,"column")},n=cE.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};Is.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};Is.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};Is.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(he.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Is.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c!==null&&(c=he.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var l={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}rm(this.__generatedMappings,he.compareByGeneratedPositionsDeflated),rm(this.__originalMappings,he.compareByOriginalPositions)};mb.IndexedSourceMapConsumer=Is});var G8=E(z8=>{f();var qpe=sE().SourceMapGenerator,hb=lp(),zpe=/(\r?\n)/,Gpe=10,dp="$$$isSourceNode$$$";function Ai(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[dp]=!0,n!=null&&this.add(n)}Ai.fromStringWithSourceMap=function(e,r,n){var i=new Ai,s=e.split(zpe),o=0,a=function(){var d=m(),h=m()||"";return d+h;function m(){return o<s.length?s[o++]:void 0}},c=1,u=0,l=null;return r.eachMapping(function(d){if(l!==null)if(c<d.generatedLine)p(l,a()),c++,u=0;else{var h=s[o]||"",m=h.substr(0,d.generatedColumn-u);s[o]=h.substr(d.generatedColumn-u),u=d.generatedColumn,p(l,m),l=d;return}for(;c<d.generatedLine;)i.add(a()),c++;if(u<d.generatedColumn){var h=s[o]||"";i.add(h.substr(0,d.generatedColumn)),s[o]=h.substr(d.generatedColumn),u=d.generatedColumn}l=d},this),o<s.length&&(l&&p(l,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=hb.join(n,d)),i.setSourceContent(d,h))}),i;function p(d,h){if(d===null||d.source===void 0)i.add(h);else{var m=n?hb.join(n,d.source):d.source;i.add(new Ai(d.originalLine,d.originalColumn,m,h,d.name))}}};Ai.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[dp]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ai.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[dp]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ai.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[dp]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ai.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};Ai.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[dp]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};Ai.prototype.setSourceContent=function(e,r){this.sourceContents[hb.toSetString(e)]=r};Ai.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][dp]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(hb.fromSetString(i[r]),this.sourceContents[i[r]])};Ai.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};Ai.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new qpe(e),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,l){r.code+=u,l.source!==null&&l.line!==null&&l.column!==null?((s!==l.source||o!==l.line||a!==l.column||c!==l.name)&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name}),s=l.source,o=l.line,a=l.column,c=l.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=u.length;p<d;p++)u.charCodeAt(p)===Gpe?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name})):r.column++}),this.walkSourceContents(function(u,l){n.setSourceContent(u,l)}),{code:r.code,map:n}};z8.SourceNode=Ai});var V8=E(gb=>{f();gb.SourceMapGenerator=sE().SourceMapGenerator;gb.SourceMapConsumer=q8().SourceMapConsumer;gb.SourceNode=G8().SourceNode});var CL=E(dm=>{"use strict";f();Object.defineProperty(dm,"__esModule",{value:!0});function Vpe(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}var ho=class{constructor(e,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=n}},yp=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function Rn(t,e){let{line:r,column:n,index:i}=t;return new ho(r,n+e,i+e)}var H8="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Hpe={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:H8},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:H8}},K8={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},vb=t=>t.type==="UpdateExpression"?K8.UpdateExpression[`${t.prefix}`]:K8[t.type],Kpe={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1109
|
+
`);return s!==-1&&(e=a8(e,i,n,s)),n+e+i};Object.defineProperties(Zf.prototype,cp);bJe=Zf(),vJe=Zf({level:l8?l8.level:0})});function Qf(t){let e=zw(t);return{highlight:r,highlightAuto:n,listLanguages:e.listLanguages,register:e.register,registerAlias:e.registerAlias,registered:e.registered};function r(i,s,o){let a=e.highlight(i,s),c=a.data;return{language:c.language,relevance:c.relevance,value:Jw(o||m8,a)}}function n(i,s){let o,a;if(s&&("subset"in s||"sheet"in s)){let l=s;a={subset:l.subset},o=l.sheet}else o=s;let c=e.highlightAuto(i,a),u=c.data;return{language:u.language,relevance:u.relevance,value:Jw(o||m8,c)}}}function Jw(t,e){let r=new Set(e.type==="element"&&Array.isArray(e.properties.className)?e.properties.className.map(function(a){return String(a).replace(/^hljs-/,"")}):[]),n={},i,s="",o;for(o in t)if(Object.hasOwn(t,o)){let a=o.split(" "),c=t[o];r.has(a[0])?a.length===1?i=c:n[a.slice(1).join(" ")]=c:n[o]=c}return"value"in e?s=e.value:"children"in e&&(s=vpe(n,e.children)),i&&(s=i(s)),s}function vpe(t,e){let r=[],n=-1;for(;++n<e.length;)r.push(Jw(t,e[n]));return r.join("")}var at,m8,h8=F(()=>{f();f8();Gw();at=new lb({level:2}),m8={comment:at.gray,quote:at.gray,keyword:at.green,"selector-tag":at.green,addition:at.green,number:at.cyan,string:at.cyan,"meta meta-string":at.cyan,literal:at.cyan,doctag:at.cyan,regexp:at.cyan,title:at.blue,section:at.blue,name:at.blue,"selector-id":at.blue,"selector-class":at.blue,attribute:at.yellow,attr:at.yellow,variable:at.yellow,"template-variable":at.yellow,"class title":at.yellow,type:at.yellow,symbol:at.magenta,bullet:at.magenta,subst:at.magenta,meta:at.magenta,"meta keyword":at.magenta,"selector-attr":at.magenta,"selector-pseudo":at.magenta,link:at.magenta,built_in:at.red,deletion:at.red,emphasis:at.italic,strong:at.bold,formula:at.inverse}});var Yw=F(()=>{f();Gw();h8()});async function fe(t){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([g8.flush(2e3),y8.flush().promise])}catch(e){console.error(e)}process.exit(t)}var g8,y8,Ki=F(()=>{"use strict";f();g8=U(require("@sentry/node"),1),y8=U(require("@amplitude/analytics-node"),1)});var je,nn=F(()=>{"use strict";f();je=process.env.AIR_HOST||"https://api.builder.io"});var v8,b8=F(()=>{v8="1.18.7"});var D8=E(Xw=>{f();var x8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Xw.encode=function(t){if(0<=t&&t<x8.length)return x8[t];throw new TypeError("Must be between 0 and 63: "+t)};Xw.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,u=26,l=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=o?t-s+l:t==a?62:t==c?63:-1}});var eE=E(Qw=>{f();var C8=D8(),Zw=5,w8=1<<Zw,E8=w8-1,S8=w8;function Dpe(t){return t<0?(-t<<1)+1:(t<<1)+0}function Cpe(t){var e=(t&1)===1,r=t>>1;return e?-r:r}Qw.encode=function(e){var r="",n,i=Dpe(e);do n=i&E8,i>>>=Zw,i>0&&(n|=S8),r+=C8.encode(n);while(i>0);return r};Qw.decode=function(e,r,n){var i=e.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=C8.decode(e.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(c&S8),c&=E8,s=s+(c<<o),o+=Zw}while(a);n.value=Cpe(s),n.rest=r}});var lp=E(qr=>{f();function wpe(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}qr.getArg=wpe;var T8=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Epe=/^data:.+\,.+$/;function em(t){var e=t.match(T8);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}qr.urlParse=em;function up(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}qr.urlGenerate=up;var Spe=32;function Tpe(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>Spe&&e.pop(),s}}var tE=Tpe(function(e){var r=e,n=em(e);if(n){if(!n.path)return e;r=n.path}for(var i=qr.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var c,u=0,a=s.length-1;a>=0;a--)c=s[a],c==="."?s.splice(a,1):c===".."?u++:u>0&&(c===""?(s.splice(a+1,u),u=0):(s.splice(a,2),u--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,up(n)):r});qr.normalize=tE;function A8(t,e){t===""&&(t="."),e===""&&(e=".");var r=em(e),n=em(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),up(r);if(r||e.match(Epe))return e;if(n&&!n.host&&!n.path)return n.host=e,up(n);var i=e.charAt(0)==="/"?e:tE(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,up(n)):i}qr.join=A8;qr.isAbsolute=function(t){return t.charAt(0)==="/"||T8.test(t)};function Ape(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}qr.relative=Ape;var _8=(function(){var t=Object.create(null);return!("__proto__"in t)})();function P8(t){return t}function _pe(t){return F8(t)?"$"+t:t}qr.toSetString=_8?P8:_pe;function Ppe(t){return F8(t)?t.slice(1):t}qr.fromSetString=_8?P8:Ppe;function F8(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function Fpe(t,e,r){var n=ta(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:ta(t.name,e.name)}qr.compareByOriginalPositions=Fpe;function kpe(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:ta(t.name,e.name)}qr.compareByOriginalPositionsNoSource=kpe;function Ipe(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=ta(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:ta(t.name,e.name)}qr.compareByGeneratedPositionsDeflated=Ipe;function Npe(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=ta(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:ta(t.name,e.name)}qr.compareByGeneratedPositionsDeflatedNoLine=Npe;function ta(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Rpe(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=ta(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:ta(t.name,e.name)}qr.compareByGeneratedPositionsInflated=Rpe;function Ope(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}qr.parseSourceMapInput=Ope;function Mpe(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=em(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=A8(up(n),e)}return tE(e)}qr.computeSourceURL=Mpe});var iE=E(k8=>{f();var rE=lp(),nE=Object.prototype.hasOwnProperty,pu=typeof Map<"u";function ra(){this._array=[],this._set=pu?new Map:Object.create(null)}ra.fromArray=function(e,r){for(var n=new ra,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};ra.prototype.size=function(){return pu?this._set.size:Object.getOwnPropertyNames(this._set).length};ra.prototype.add=function(e,r){var n=pu?e:rE.toSetString(e),i=pu?this.has(e):nE.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(pu?this._set.set(e,s):this._set[n]=s)};ra.prototype.has=function(e){if(pu)return this._set.has(e);var r=rE.toSetString(e);return nE.call(this._set,r)};ra.prototype.indexOf=function(e){if(pu){var r=this._set.get(e);if(r>=0)return r}else{var n=rE.toSetString(e);if(nE.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};ra.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ra.prototype.toArray=function(){return this._array.slice()};k8.ArraySet=ra});var R8=E(N8=>{f();var I8=lp();function Bpe(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||I8.compareByGeneratedPositionsInflated(t,e)<=0}function db(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}db.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};db.prototype.add=function(e){Bpe(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};db.prototype.toArray=function(){return this._sorted||(this._array.sort(I8.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};N8.MappingList=db});var sE=E(O8=>{f();var tm=eE(),Dr=lp(),fb=iE().ArraySet,Lpe=R8().MappingList;function Wi(t){t||(t={}),this._file=Dr.getArg(t,"file",null),this._sourceRoot=Dr.getArg(t,"sourceRoot",null),this._skipValidation=Dr.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=Dr.getArg(t,"ignoreInvalidMapping",!1),this._sources=new fb,this._names=new fb,this._mappings=new Lpe,this._sourcesContents=null}Wi.prototype._version=3;Wi.fromSourceMap=function(e,r){var n=e.sourceRoot,i=new Wi(Object.assign(r||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=Dr.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=Dr.relative(n,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};Wi.prototype.addMapping=function(e){var r=Dr.getArg(e,"generated"),n=Dr.getArg(e,"original",null),i=Dr.getArg(e,"source",null),s=Dr.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};Wi.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=Dr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Dr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Dr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Wi.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=Dr.relative(s,i));var o=new fb,a=new fb;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var u=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});u.source!=null&&(c.source=u.source,n!=null&&(c.source=Dr.join(n,c.source)),s!=null&&(c.source=Dr.relative(s,c.source)),c.originalLine=u.line,c.originalColumn=u.column,u.name!=null&&(c.name=u.name))}var l=c.source;l!=null&&!o.has(l)&&o.add(l);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,e.sources.forEach(function(c){var u=e.sourceContentFor(c);u!=null&&(n!=null&&(c=Dr.join(n,c)),s!=null&&(c=Dr.relative(s,c)),this.setSourceContent(c,u))},this)};Wi.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="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(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Wi.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",c,u,l,p,d=this._mappings.toArray(),h=0,m=d.length;h<m;h++){if(u=d[h],c="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Dr.compareByGeneratedPositionsInflated(u,d[h-1]))continue;c+=","}c+=tm.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),c+=tm.encode(p-o),o=p,c+=tm.encode(u.originalLine-1-i),i=u.originalLine-1,c+=tm.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(l=this._names.indexOf(u.name),c+=tm.encode(l-s),s=l)),a+=c}return a};Wi.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Dr.relative(r,n));var i=Dr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Wi.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Wi.prototype.toString=function(){return JSON.stringify(this.toJSON())};O8.SourceMapGenerator=Wi});var M8=E(du=>{f();du.GREATEST_LOWER_BOUND=1;du.LEAST_UPPER_BOUND=2;function oE(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?oE(o,e,r,n,i,s):s==du.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?oE(t,o,r,n,i,s):s==du.LEAST_UPPER_BOUND?o:t<0?-1:t}du.search=function(e,r,n,i){if(r.length===0)return-1;var s=oE(-1,r.length,e,r,n,i||du.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var $8=E(L8=>{f();function $pe(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var c=r(o,a),u=o-1;e(i,c,a);for(var l=i[a],p=o;p<a;p++)s(i[p],l,!1)<=0&&(u+=1,e(i,u,p));e(i,u+1,p);var d=u+1;n(i,s,o,d-1),n(i,s,d+1,a)}}return n}function jpe(t){let e=$pe.toString();return new Function(`return ${e}`)()(t)}var B8=new WeakMap;L8.quickSort=function(t,e,r=0){let n=B8.get(e);n===void 0&&(n=jpe(e),B8.set(e,n)),n(t,e,r,t.length-1)}});var q8=E(mb=>{f();var he=lp(),cE=M8(),pp=iE().ArraySet,Upe=eE(),rm=$8().quickSort;function Xt(t,e){var r=t;return typeof t=="string"&&(r=he.parseSourceMapInput(t)),r.sections!=null?new Is(r,e):new sn(r,e)}Xt.fromSourceMap=function(t,e){return sn.fromSourceMap(t,e)};Xt.prototype._version=3;Xt.prototype.__generatedMappings=null;Object.defineProperty(Xt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Xt.prototype.__originalMappings=null;Object.defineProperty(Xt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Xt.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};Xt.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};Xt.GENERATED_ORDER=1;Xt.ORIGINAL_ORDER=2;Xt.GREATEST_LOWER_BOUND=1;Xt.LEAST_UPPER_BOUND=2;Xt.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||Xt.GENERATED_ORDER,o;switch(s){case Xt.GENERATED_ORDER:o=this._generatedMappings;break;case Xt.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,c=e.bind(i),u=this._names,l=this._sources,p=this._sourceMapURL,d=0,h=o.length;d<h;d++){var m=o[d],g=m.source===null?null:l.at(m.source);g!==null&&(g=he.computeSourceURL(a,g,p)),c({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:u.at(m.name)})}};Xt.prototype.allGeneratedPositionsFor=function(e){var r=he.getArg(e,"line"),n={source:he.getArg(e,"source"),originalLine:r,originalColumn:he.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",he.compareByOriginalPositions,cE.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:he.getArg(o,"generatedLine",null),column:he.getArg(o,"generatedColumn",null),lastColumn:he.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:he.getArg(o,"generatedLine",null),column:he.getArg(o,"generatedColumn",null),lastColumn:he.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};mb.SourceMapConsumer=Xt;function sn(t,e){var r=t;typeof t=="string"&&(r=he.parseSourceMapInput(t));var n=he.getArg(r,"version"),i=he.getArg(r,"sources"),s=he.getArg(r,"names",[]),o=he.getArg(r,"sourceRoot",null),a=he.getArg(r,"sourcesContent",null),c=he.getArg(r,"mappings"),u=he.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=he.normalize(o)),i=i.map(String).map(he.normalize).map(function(l){return o&&he.isAbsolute(o)&&he.isAbsolute(l)?he.relative(o,l):l}),this._names=pp.fromArray(s.map(String),!0),this._sources=pp.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(l){return he.computeSourceURL(o,l,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=e,this.file=u}sn.prototype=Object.create(Xt.prototype);sn.prototype.consumer=Xt;sn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=he.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};sn.fromSourceMap=function(e,r){var n=Object.create(sn.prototype),i=n._names=pp.fromArray(e._names.toArray(),!0),s=n._sources=pp.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return he.computeSourceURL(n.sourceRoot,h,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],u=0,l=o.length;u<l;u++){var p=o[u],d=new U8;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),c.push(d)),a.push(d)}return rm(n.__originalMappings,he.compareByOriginalPositions),n};sn.prototype._version=3;Object.defineProperty(sn.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function U8(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var aE=he.compareByGeneratedPositionsDeflatedNoLine;function j8(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];aE(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(aE(o,a)<=0)break;t[s-1]=a,t[s]=o}else rm(t,aE,e)}sn.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,c=0,u=e.length,l=0,p={},d={},h=[],m=[],g,y,b,D,C;let x=0;for(;l<u;)if(e.charAt(l)===";")n++,l++,i=0,j8(m,x),x=m.length;else if(e.charAt(l)===",")l++;else{for(g=new U8,g.generatedLine=n,D=l;D<u&&!this._charIsMappingSeparator(e,D);D++);for(y=e.slice(l,D),b=[];l<D;)Upe.decode(e,l,d),C=d.value,l=d.rest,b.push(C);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=i+b[0],i=g.generatedColumn,b.length>1&&(g.source=a+b[1],a+=b[1],g.originalLine=s+b[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=o+b[3],o=g.originalColumn,b.length>4&&(g.name=c+b[4],c+=b[4])),m.push(g),typeof g.originalLine=="number"){let w=g.source;for(;h.length<=w;)h.push(null);h[w]===null&&(h[w]=[]),h[w].push(g)}}j8(m,x),this.__generatedMappings=m;for(var v=0;v<h.length;v++)h[v]!=null&&rm(h[v],he.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};sn.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return cE.search(e,r,s,o)};sn.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};sn.prototype.originalPositionFor=function(e){var r={generatedLine:he.getArg(e,"line"),generatedColumn:he.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",he.compareByGeneratedPositionsDeflated,he.getArg(e,"bias",Xt.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=he.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=he.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=he.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:he.getArg(i,"originalLine",null),column:he.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};sn.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};sn.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=he.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=he.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};sn.prototype.generatedPositionFor=function(e){var r=he.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:he.getArg(e,"line"),originalColumn:he.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",he.compareByOriginalPositions,he.getArg(e,"bias",Xt.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:he.getArg(s,"generatedLine",null),column:he.getArg(s,"generatedColumn",null),lastColumn:he.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};mb.BasicSourceMapConsumer=sn;function Is(t,e){var r=t;typeof t=="string"&&(r=he.parseSourceMapInput(t));var n=he.getArg(r,"version"),i=he.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new pp,this._names=new pp;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=he.getArg(o,"offset"),c=he.getArg(a,"line"),u=he.getArg(a,"column");if(c<s.line||c===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:u+1},consumer:new Xt(he.getArg(o,"map"),e)}})}Is.prototype=Object.create(Xt.prototype);Is.prototype.constructor=Xt;Is.prototype._version=3;Object.defineProperty(Is.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});Is.prototype.originalPositionFor=function(e){var r={generatedLine:he.getArg(e,"line"),generatedColumn:he.getArg(e,"column")},n=cE.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};Is.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};Is.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};Is.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(he.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Is.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c!==null&&(c=he.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var l={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}rm(this.__generatedMappings,he.compareByGeneratedPositionsDeflated),rm(this.__originalMappings,he.compareByOriginalPositions)};mb.IndexedSourceMapConsumer=Is});var G8=E(z8=>{f();var qpe=sE().SourceMapGenerator,hb=lp(),zpe=/(\r?\n)/,Gpe=10,dp="$$$isSourceNode$$$";function Ai(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[dp]=!0,n!=null&&this.add(n)}Ai.fromStringWithSourceMap=function(e,r,n){var i=new Ai,s=e.split(zpe),o=0,a=function(){var d=m(),h=m()||"";return d+h;function m(){return o<s.length?s[o++]:void 0}},c=1,u=0,l=null;return r.eachMapping(function(d){if(l!==null)if(c<d.generatedLine)p(l,a()),c++,u=0;else{var h=s[o]||"",m=h.substr(0,d.generatedColumn-u);s[o]=h.substr(d.generatedColumn-u),u=d.generatedColumn,p(l,m),l=d;return}for(;c<d.generatedLine;)i.add(a()),c++;if(u<d.generatedColumn){var h=s[o]||"";i.add(h.substr(0,d.generatedColumn)),s[o]=h.substr(d.generatedColumn),u=d.generatedColumn}l=d},this),o<s.length&&(l&&p(l,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=hb.join(n,d)),i.setSourceContent(d,h))}),i;function p(d,h){if(d===null||d.source===void 0)i.add(h);else{var m=n?hb.join(n,d.source):d.source;i.add(new Ai(d.originalLine,d.originalColumn,m,h,d.name))}}};Ai.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[dp]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ai.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[dp]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ai.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[dp]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ai.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};Ai.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[dp]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};Ai.prototype.setSourceContent=function(e,r){this.sourceContents[hb.toSetString(e)]=r};Ai.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][dp]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(hb.fromSetString(i[r]),this.sourceContents[i[r]])};Ai.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};Ai.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new qpe(e),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,l){r.code+=u,l.source!==null&&l.line!==null&&l.column!==null?((s!==l.source||o!==l.line||a!==l.column||c!==l.name)&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name}),s=l.source,o=l.line,a=l.column,c=l.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=u.length;p<d;p++)u.charCodeAt(p)===Gpe?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name})):r.column++}),this.walkSourceContents(function(u,l){n.setSourceContent(u,l)}),{code:r.code,map:n}};z8.SourceNode=Ai});var V8=E(gb=>{f();gb.SourceMapGenerator=sE().SourceMapGenerator;gb.SourceMapConsumer=q8().SourceMapConsumer;gb.SourceNode=G8().SourceNode});var CL=E(dm=>{"use strict";f();Object.defineProperty(dm,"__esModule",{value:!0});function Vpe(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}var ho=class{constructor(e,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=n}},yp=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function Rn(t,e){let{line:r,column:n,index:i}=t;return new ho(r,n+e,i+e)}var H8="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Hpe={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:H8},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:H8}},K8={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},vb=t=>t.type==="UpdateExpression"?K8.UpdateExpression[`${t.prefix}`]:K8[t.type],Kpe={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1110
1110
|
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
1111
1111
|
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${t===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${vb(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${vb(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${vb(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Wpe={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Jpe=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Ype={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${vb({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Xpe=["message"];function W8(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function Zpe({toMessage:t,code:e,reasonCode:r,syntaxPlugin:n}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};s[r]&&(r=s[r])}return function s(o,a){let c=new SyntaxError;return c.code=e,c.reasonCode=r,c.loc=o,c.pos=o.index,c.syntaxPlugin=n,i&&(c.missingPlugin=a.missingPlugin),W8(c,"clone",function(l={}){var p;let{line:d,column:h,index:m}=(p=l.loc)!=null?p:o;return s(new ho(d,h,m),Object.assign({},a,l.details))}),W8(c,"details",a),Object.defineProperty(c,"message",{configurable:!0,get(){let u=`${t(a)} (${o.line}:${o.column})`;return this.message=u,u},set(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),c}}function oa(t,e){if(Array.isArray(t))return n=>oa(n,t[0]);let r={};for(let n of Object.keys(t)){let i=t[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:o}=s,a=Vpe(s,Xpe),c=typeof o=="string"?()=>o:o;r[n]=Zpe(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},e?{syntaxPlugin:e}:{},a))}return r}var R=Object.assign({},oa(Hpe),oa(Kpe),oa(Wpe),oa`pipelineOperator`(Ype)),{defineProperty:Qpe}=Object,J8=(t,e)=>{t&&Qpe(t,e,{enumerable:!1,value:t[e]})};function nm(t){return J8(t.loc.start,"index"),J8(t.loc.end,"index"),t}var ede=t=>class extends t{parse(){let r=nm(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(nm)),r}parseRegExpLiteral({pattern:r,flags:n}){let i=null;try{i=new RegExp(r,n)}catch{}let s=this.estreeParseLiteral(i);return s.regex={pattern:r,flags:n},s}parseBigIntLiteral(r){let n;try{n=BigInt(r)}catch{n=null}let i=this.estreeParseLiteral(n);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;let i=r;return i.type="ExpressionStatement",i.expression=n,i.directive=n.extra.rawValue,delete n.extra,i}initFunction(r,n){super.initFunction(r,n),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,i,s,o){super.parseBlockBody(r,n,i,s,o);let a=r.directives.map(c=>this.directiveToStmt(c));r.body=a.concat(r.body),delete r.directives}pushClassMethod(r,n,i,s,o,a){this.parseMethod(n,i,s,o,a,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n)}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){let i=super.parseLiteral(r,n);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,n,i=!1){super.parseFunctionBody(r,n,i),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,n,i,s,o,a,c=!1){let u=this.startNode();return u.kind=r.kind,u=super.parseMethod(u,n,i,s,o,a,c),u.type="FunctionExpression",delete u.kind,r.value=u,a==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,i,s,o){let a=super.parseObjectMethod(r,n,i,s,o);return a&&(a.type="Property",a.kind==="method"&&(a.kind="init"),a.shorthand=!1),a}parseObjectProperty(r,n,i,s){let o=super.parseObjectProperty(r,n,i,s);return o&&(o.kind="init",o.type="Property"),o}isValidLVal(r,n,i){return r==="Property"?"value":super.isValidLVal(r,n,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){let{key:i,value:s}=r;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,n)}else super.toAssignable(r,n)}toAssignableObjectExpressionProp(r,n,i){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(R.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(R.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,i)}finishCallExpression(r,n){let i=super.finishCallExpression(r,n);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,o;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(o=i.arguments[1])!=null?o:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,n){let i=this.state.lastTokStartLoc,s=super.parseExport(r,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var o;let{declaration:a}=s;a?.type==="ClassDeclaration"&&((o=a.decorators)==null?void 0:o.length)>0&&a.start===s.start&&this.resetStartLocation(s,i)}break}return s}parseSubscript(r,n,i,s){let o=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((o.type==="OptionalMemberExpression"||o.type==="OptionalCallExpression")&&(o.type=o.type.substring(8)),s.stop){let a=this.startNodeAtNode(o);return a.expression=o,this.finishNode(a,"ChainExpression")}}else(o.type==="MemberExpression"||o.type==="CallExpression")&&(o.optional=!1);return o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,n,i){return nm(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),nm(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),nm(r)}},mu=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r}},Rt={brace:new mu("{"),j_oTag:new mu("<tag"),j_cTag:new mu("</tag"),j_expr:new mu("<tag>...</tag>",!0)};Rt.template=new mu("`",!0);var Ye=!0,ae=!0,uE=!0,im=!0,Ya=!0,tde=!0,Cb=class{constructor(e,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},OE=new Map;function ct(t,e={}){e.keyword=t;let r=Ce(t,e);return OE.set(t,r),r}function Nn(t,e){return Ce(t,{beforeExpr:Ye,binop:e})}var cm=-1,ia=[],ME=[],BE=[],LE=[],$E=[],jE=[];function Ce(t,e={}){var r,n,i,s;return++cm,ME.push(t),BE.push((r=e.binop)!=null?r:-1),LE.push((n=e.beforeExpr)!=null?n:!1),$E.push((i=e.startsExpr)!=null?i:!1),jE.push((s=e.prefix)!=null?s:!1),ia.push(new Cb(t,e)),cm}function Je(t,e={}){var r,n,i,s;return++cm,OE.set(t,cm),ME.push(t),BE.push((r=e.binop)!=null?r:-1),LE.push((n=e.beforeExpr)!=null?n:!1),$E.push((i=e.startsExpr)!=null?i:!1),jE.push((s=e.prefix)!=null?s:!1),ia.push(new Cb("name",e)),cm}var rde={bracketL:Ce("[",{beforeExpr:Ye,startsExpr:ae}),bracketHashL:Ce("#[",{beforeExpr:Ye,startsExpr:ae}),bracketBarL:Ce("[|",{beforeExpr:Ye,startsExpr:ae}),bracketR:Ce("]"),bracketBarR:Ce("|]"),braceL:Ce("{",{beforeExpr:Ye,startsExpr:ae}),braceBarL:Ce("{|",{beforeExpr:Ye,startsExpr:ae}),braceHashL:Ce("#{",{beforeExpr:Ye,startsExpr:ae}),braceR:Ce("}"),braceBarR:Ce("|}"),parenL:Ce("(",{beforeExpr:Ye,startsExpr:ae}),parenR:Ce(")"),comma:Ce(",",{beforeExpr:Ye}),semi:Ce(";",{beforeExpr:Ye}),colon:Ce(":",{beforeExpr:Ye}),doubleColon:Ce("::",{beforeExpr:Ye}),dot:Ce("."),question:Ce("?",{beforeExpr:Ye}),questionDot:Ce("?."),arrow:Ce("=>",{beforeExpr:Ye}),template:Ce("template"),ellipsis:Ce("...",{beforeExpr:Ye}),backQuote:Ce("`",{startsExpr:ae}),dollarBraceL:Ce("${",{beforeExpr:Ye,startsExpr:ae}),templateTail:Ce("...`",{startsExpr:ae}),templateNonTail:Ce("...${",{beforeExpr:Ye,startsExpr:ae}),at:Ce("@"),hash:Ce("#",{startsExpr:ae}),interpreterDirective:Ce("#!..."),eq:Ce("=",{beforeExpr:Ye,isAssign:im}),assign:Ce("_=",{beforeExpr:Ye,isAssign:im}),slashAssign:Ce("_=",{beforeExpr:Ye,isAssign:im}),xorAssign:Ce("_=",{beforeExpr:Ye,isAssign:im}),moduloAssign:Ce("_=",{beforeExpr:Ye,isAssign:im}),incDec:Ce("++/--",{prefix:Ya,postfix:tde,startsExpr:ae}),bang:Ce("!",{beforeExpr:Ye,prefix:Ya,startsExpr:ae}),tilde:Ce("~",{beforeExpr:Ye,prefix:Ya,startsExpr:ae}),doubleCaret:Ce("^^",{startsExpr:ae}),doubleAt:Ce("@@",{startsExpr:ae}),pipeline:Nn("|>",0),nullishCoalescing:Nn("??",1),logicalOR:Nn("||",1),logicalAND:Nn("&&",2),bitwiseOR:Nn("|",3),bitwiseXOR:Nn("^",4),bitwiseAND:Nn("&",5),equality:Nn("==/!=/===/!==",6),lt:Nn("</>/<=/>=",7),gt:Nn("</>/<=/>=",7),relational:Nn("</>/<=/>=",7),bitShift:Nn("<</>>/>>>",8),bitShiftL:Nn("<</>>/>>>",8),bitShiftR:Nn("<</>>/>>>",8),plusMin:Ce("+/-",{beforeExpr:Ye,binop:9,prefix:Ya,startsExpr:ae}),modulo:Ce("%",{binop:10,startsExpr:ae}),star:Ce("*",{binop:10}),slash:Nn("/",10),exponent:Ce("**",{beforeExpr:Ye,binop:11,rightAssociative:!0}),_in:ct("in",{beforeExpr:Ye,binop:7}),_instanceof:ct("instanceof",{beforeExpr:Ye,binop:7}),_break:ct("break"),_case:ct("case",{beforeExpr:Ye}),_catch:ct("catch"),_continue:ct("continue"),_debugger:ct("debugger"),_default:ct("default",{beforeExpr:Ye}),_else:ct("else",{beforeExpr:Ye}),_finally:ct("finally"),_function:ct("function",{startsExpr:ae}),_if:ct("if"),_return:ct("return",{beforeExpr:Ye}),_switch:ct("switch"),_throw:ct("throw",{beforeExpr:Ye,prefix:Ya,startsExpr:ae}),_try:ct("try"),_var:ct("var"),_const:ct("const"),_with:ct("with"),_new:ct("new",{beforeExpr:Ye,startsExpr:ae}),_this:ct("this",{startsExpr:ae}),_super:ct("super",{startsExpr:ae}),_class:ct("class",{startsExpr:ae}),_extends:ct("extends",{beforeExpr:Ye}),_export:ct("export"),_import:ct("import",{startsExpr:ae}),_null:ct("null",{startsExpr:ae}),_true:ct("true",{startsExpr:ae}),_false:ct("false",{startsExpr:ae}),_typeof:ct("typeof",{beforeExpr:Ye,prefix:Ya,startsExpr:ae}),_void:ct("void",{beforeExpr:Ye,prefix:Ya,startsExpr:ae}),_delete:ct("delete",{beforeExpr:Ye,prefix:Ya,startsExpr:ae}),_do:ct("do",{isLoop:uE,beforeExpr:Ye}),_for:ct("for",{isLoop:uE}),_while:ct("while",{isLoop:uE}),_as:Je("as",{startsExpr:ae}),_assert:Je("assert",{startsExpr:ae}),_async:Je("async",{startsExpr:ae}),_await:Je("await",{startsExpr:ae}),_defer:Je("defer",{startsExpr:ae}),_from:Je("from",{startsExpr:ae}),_get:Je("get",{startsExpr:ae}),_let:Je("let",{startsExpr:ae}),_meta:Je("meta",{startsExpr:ae}),_of:Je("of",{startsExpr:ae}),_sent:Je("sent",{startsExpr:ae}),_set:Je("set",{startsExpr:ae}),_source:Je("source",{startsExpr:ae}),_static:Je("static",{startsExpr:ae}),_using:Je("using",{startsExpr:ae}),_yield:Je("yield",{startsExpr:ae}),_asserts:Je("asserts",{startsExpr:ae}),_checks:Je("checks",{startsExpr:ae}),_exports:Je("exports",{startsExpr:ae}),_global:Je("global",{startsExpr:ae}),_implements:Je("implements",{startsExpr:ae}),_intrinsic:Je("intrinsic",{startsExpr:ae}),_infer:Je("infer",{startsExpr:ae}),_is:Je("is",{startsExpr:ae}),_mixins:Je("mixins",{startsExpr:ae}),_proto:Je("proto",{startsExpr:ae}),_require:Je("require",{startsExpr:ae}),_satisfies:Je("satisfies",{startsExpr:ae}),_keyof:Je("keyof",{startsExpr:ae}),_readonly:Je("readonly",{startsExpr:ae}),_unique:Je("unique",{startsExpr:ae}),_abstract:Je("abstract",{startsExpr:ae}),_declare:Je("declare",{startsExpr:ae}),_enum:Je("enum",{startsExpr:ae}),_module:Je("module",{startsExpr:ae}),_namespace:Je("namespace",{startsExpr:ae}),_interface:Je("interface",{startsExpr:ae}),_type:Je("type",{startsExpr:ae}),_opaque:Je("opaque",{startsExpr:ae}),name:Ce("name",{startsExpr:ae}),string:Ce("string",{startsExpr:ae}),num:Ce("num",{startsExpr:ae}),bigint:Ce("bigint",{startsExpr:ae}),decimal:Ce("decimal",{startsExpr:ae}),regexp:Ce("regexp",{startsExpr:ae}),privateName:Ce("#name",{startsExpr:ae}),eof:Ce("eof"),jsxName:Ce("jsxName"),jsxText:Ce("jsxText",{beforeExpr:!0}),jsxTagStart:Ce("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Ce("jsxTagEnd"),placeholder:Ce("%%",{startsExpr:!0})};function xt(t){return t>=93&&t<=132}function nde(t){return t<=92}function Ns(t){return t>=58&&t<=132}function aL(t){return t>=58&&t<=136}function ide(t){return LE[t]}function hE(t){return $E[t]}function sde(t){return t>=29&&t<=33}function Y8(t){return t>=129&&t<=131}function ode(t){return t>=90&&t<=92}function UE(t){return t>=58&&t<=92}function ade(t){return t>=39&&t<=59}function cde(t){return t===34}function ude(t){return jE[t]}function lde(t){return t>=121&&t<=123}function pde(t){return t>=124&&t<=130}function Za(t){return ME[t]}function xb(t){return BE[t]}function dde(t){return t===57}function wb(t){return t>=24&&t<=25}function na(t){return ia[t]}ia[8].updateContext=t=>{t.pop()},ia[5].updateContext=ia[7].updateContext=ia[23].updateContext=t=>{t.push(Rt.brace)},ia[22].updateContext=t=>{t[t.length-1]===Rt.template?t.pop():t.push(Rt.template)},ia[142].updateContext=t=>{t.push(Rt.j_expr,Rt.j_oTag)};var qE="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",cL="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",fde=new RegExp("["+qE+"]"),mde=new RegExp("["+qE+cL+"]");qE=cL=null;var uL=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],hde=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function gE(t,e){let r=65536;for(let n=0,i=e.length;n<i;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function sa(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&fde.test(String.fromCharCode(t)):gE(t,uL)}function mp(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&mde.test(String.fromCharCode(t)):gE(t,uL)||gE(t,hde)}var zE={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},gde=new Set(zE.keyword),yde=new Set(zE.strict),bde=new Set(zE.strictBind);function lL(t,e){return e&&t==="await"||t==="enum"}function pL(t,e){return lL(t,e)||yde.has(t)}function dL(t){return bde.has(t)}function fL(t,e){return pL(t,e)||dL(t)}function vde(t){return gde.has(t)}function xde(t,e,r){return t===64&&e===64&&sa(r)}var Dde=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Cde(t){return Dde.has(t)}var um=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},lm=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new um(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,e,r,n);let s=i.names.get(e)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=e),s=s|2),i.names.set(e,s),r&8&&this.maybeExportDefined(i,e)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,e,r,n),i.names.set(e,(i.names.get(e)||0)|1),this.maybeExportDefined(i,e),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,n,i){this.isRedeclaredInScope(e,r,n)&&this.parser.raise(R.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(e,r,n){if(!(n&1))return!1;if(n&8)return e.names.has(r);let i=e.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(e)&&(i&1)>0:(i&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(i&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&387)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&451&&!(r&4))return r}}},yE=class extends um{constructor(...e){super(...e),this.declareFunctions=new Set}},bE=class extends lm{createScope(e){return new yE(e)}declareName(e,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,e,r,n),this.maybeExportDefined(i,e),i.declareFunctions.add(e);return}super.declareName(e,r,n)}isRedeclaredInScope(e,r,n){if(super.isRedeclaredInScope(e,r,n))return!0;if(n&2048&&!e.declareFunctions.has(r)){let i=e.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},vE=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,n]=e;if(!this.hasPlugin(r))return!1;let i=this.plugins.get(r);for(let s of Object.keys(n))if(i?.[s]!==n[s])return!1;return!0}}getPluginOption(e,r){var n;return(n=this.plugins.get(e))==null?void 0:n[r]}};function mL(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function wde(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function pm(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function sm(t,e,r){let n=null,i=e.length;for(;n===null&&i>0;)n=e[--i];n===null||n.start>r.start?pm(t,r.comments):mL(n,r.comments)}var xE=class extends vE{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===e.end&&(s.leadingNode=e,i--);let{start:o}=e;for(;i>=0;i--){let a=r[i],c=a.end;if(c>o)a.containingNode=e,this.finalizeComment(a),r.splice(i,1);else{c===o&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&mL(e.leadingNode,r),e.trailingNode!==null&&wde(e.trailingNode,r);else{let{containingNode:n,start:i}=e;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":sm(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":sm(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":sm(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":sm(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":sm(n,n.specifiers,e);break;default:pm(n,r)}else pm(n,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===e&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===e?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===e&&(r[n-2].trailingNode=null))}takeSurroundingComments(e,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let o=s-1;for(;o>=0;o--){let a=i[o],c=a.end;if(a.start===n)a.leadingNode=e;else if(c===r)a.trailingNode=e;else if(c<r)break}}},Ede=/\r\n|[\r\n\u2028\u2029]/,yb=new RegExp(Ede.source,"g");function hp(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function X8(t,e,r){for(let n=e;n<r;n++)if(hp(t.charCodeAt(n)))return!0;return!1}var lE=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pE=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Sde(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var DE=class t{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Rt.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:r,startLine:n,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new ho(n,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new ho(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let e=new t;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},Tde=function(e){return e>=48&&e<=57},Z8={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},bb={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Q8(t,e,r,n,i,s){let o=r,a=n,c=i,u="",l=null,p=r,{length:d}=e;for(;;){if(r>=d){s.unterminated(o,a,c),u+=e.slice(p,r);break}let h=e.charCodeAt(r);if(Ade(t,h,e,r)){u+=e.slice(p,r);break}if(h===92){u+=e.slice(p,r);let m=_de(e,r,n,i,t==="template",s);m.ch===null&&!l?l={pos:r,lineStart:n,curLine:i}:u+=m.ch,{pos:r,lineStart:n,curLine:i}=m,p=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?t==="template"?(u+=e.slice(p,r)+`
|
|
1112
1112
|
`,++r,h===13&&e.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(o,a,c):++r}return{pos:r,str:u,firstInvalidLoc:l,lineStart:n,curLine:i,containsInvalid:!!l}}function Ade(t,e,r,n){return t==="template"?e===96||e===36&&r.charCodeAt(n+1)===123:e===(t==="double"?34:39)}function _de(t,e,r,n,i,s){let o=!i;e++;let a=u=>({pos:e,ch:u,lineStart:r,curLine:n}),c=t.charCodeAt(e++);switch(c){case 110:return a(`
|
|
@@ -1252,7 +1252,7 @@ Restarting server after Builder Devtools update...
|
|
|
1252
1252
|
<h3>How's Devtools working for you?</h3>
|
|
1253
1253
|
<p>We'd love your feedback!</p>
|
|
1254
1254
|
</div>
|
|
1255
|
-
\`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.18.6"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
|
|
1255
|
+
\`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.18.7"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
|
|
1256
1256
|
</style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
|
|
1257
1257
|
<aside>
|
|
1258
1258
|
<div class="logo"></div>
|
|
@@ -1291,7 +1291,7 @@ Restarting server after Builder Devtools update...
|
|
|
1291
1291
|
</nav>
|
|
1292
1292
|
</section>
|
|
1293
1293
|
</main>
|
|
1294
|
-
\`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.18.
|
|
1294
|
+
\`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.18.7"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.18.7"),mo());})();`)}async function Z5(t){return Q5(t,`<!doctype html>
|
|
1295
1295
|
<html lang="en" dir="ltr">
|
|
1296
1296
|
<head>
|
|
1297
1297
|
<meta charset="utf-8" />
|
|
@@ -1823,34 +1823,38 @@ ${s.map(o=>oA(o,r)).join(`
|
|
|
1823
1823
|
`)&&(n+=`
|
|
1824
1824
|
`);let i=uDe(t);if(i&&(n.trim()&&(n+=`
|
|
1825
1825
|
`),n+=i+`
|
|
1826
|
-
`),!aDe(n)){let o=new Error(`Failed to write to hosts file at ${sx}`);return e?.captureException(o),!1}return!0}catch(r){return e?.captureException(r),!1}}var ox,$7,j7,sx,z7=F(()=>{"use strict";f();ox=require("node:fs"),$7="# BEGIN BUILDER.IO DEV-TOOLS MANAGED",j7="# END BUILDER.IO DEV-TOOLS MANAGED",sx=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts"});function lDe(t){return!t||typeof t!="string"?t:t.startsWith("~/")||t==="~"?(0,ns.join)((0,G7.homedir)(),t.slice(1)):t}function V7(t,e){if(!t||typeof t!="string")return t;let r=lDe(t);return(0,ns.isAbsolute)(r)?(0,ns.normalize)(r):e?(r=(0,ns.join)(e,r),(0,ns.normalize)(r)):r}function pDe(t,e){if(!t||typeof t!="string")return!1;let r=V7(t,e);return!(!(0,ns.isAbsolute)(r)||(0,ns.normalize)(r)!==r)}function dDe(t){try{let e=(0,ns.dirname)(t);return(0,Ou.existsSync)(e)||(0,Ou.mkdirSync)(e,{recursive:!0,mode:493}),!0}catch{return!1}}function fDe(t,e,r){try{if(!pDe(t.path,e))return{success:!1,error:`Invalid file path: ${t.path}. Path must be resolvable to an absolute path.`};let n=V7(t.path,e);return dDe(n)?((0,Ou.writeFileSync)(n,t.content,"utf-8"),{success:!0,resolvedPath:n}):{success:!1,error:`Failed to create directory for: ${n}`}}catch(n){let i=n instanceof Error?n.message:String(n);return r?.captureException(n),{success:!1,error:i}}}function H7(t,e,r){let n={success:!0,appliedFiles:[],failedFiles:[]};if(!t||t.length===0)return n;for(let i of t){let s=fDe(i,e,r);s.success&&s.resolvedPath?n.appliedFiles.push(s.resolvedPath):(n.success=!1,n.failedFiles.push({path:i.path,error:s.error||"Unknown error"}))}return n}var Ou,ns,G7,K7=F(()=>{"use strict";f();Ou=require("node:fs"),ns=require("node:path"),G7=require("node:os")});function mDe(t){if(!/^[a-zA-Z0-9_-]+$/.test(t))return!1;try{let e=process.platform==="win32"?"where.exe":"which";return(0,sh.execSync)(`${e} ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function hDe(t,e){try{let r=e||t.cwd()||process.cwd();return t.existsSync(t.join(r,"pnpm-lock.yaml"))?"pnpm install":t.existsSync(t.join(r,"yarn.lock"))?"yarn install":t.existsSync(t.join(r,"bun.lockb"))?"bun install":(t.existsSync(t.join(r,"package-lock.json")),"npm install")}catch{return"npm install"}}function gDe(t,e,r){if(t!=="npm install")return t;if(mDe("ni"))return"ni";{let n=t,i=hDe(e,r);return e.Sentry?.captureMessage(`ni command not found in PATH, falling back to detected command: ${i}`,{level:"warning",extra:{originalCommand:n,detectedCommand:i,workingDirectory:r}}),i}}function yDe(t){try{if(t&&(0,X7.existsSync)(t))return t;let e=process.platform==="win32"?"where.exe mise":"which mise";return(0,sh.execSync)(e,{stdio:"ignore"}),"mise"}catch{return null}}function ih(t){if(t)try{return new URL(t)}catch{return}}async function HA(t,e,r){let n=new ci(500),i=new ci(500),s=new ci(500),o=new ci(1e3),a=!1,c=e.autoDetectDevServer??!1,u=e.autoDetectDevServerPatterns,l=c?void 0:ih(e.serverUrl),p,d=[],h={},m=e.devCommand?"stopped":"unset",g="stopped",y=r,b,D,C=[],x=new W7.default,v,w,S,A,k=e.devCommand??void 0,P=e.setupCommand??void 0,_=e.validateCommand??void 0,L=e.setupDependencies??void 0,H=new AbortController,z=yDe(e.miseLocationPath??process.env.MISE_INSTALL_PATH);function N(){C.push({all:new ci(300),out:new ci(300),err:new ci(300)})}function O(){if(!e.autoConfigureHosts||!l)return!1;let V=l.hostname;if(!U7(V)){if(q7([{hostname:V,ip:"127.0.0.1"}],t.Sentry))return I.info(`Updated /etc/hosts with entry: 127.0.0.1 ${V}`),!0;I.warn(`Failed to update /etc/hosts for ${V}. Make sure the process has root/admin permissions.`)}return!1}function B(){if(!e.fileOverrides||e.fileOverrides.length===0)return!0;let V=e.bashWorkingDirectory,te=H7(e.fileOverrides,V,t.Sentry);if(te.success)return te.appliedFiles.length>0&&I.info(`Applied ${te.appliedFiles.length} file override(s): ${te.appliedFiles.map(re=>re).join(", ")}`),!0;I.warn(`Failed to apply some file overrides (${te.failedFiles.length} failed):`);for(let re of te.failedFiles)I.warn(` - ${re.path}: ${re.error}`);return!1}async function q(V,te){let re=e.nativeApp?3e4:5e3,
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
`}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1826
|
+
`),!aDe(n)){let o=new Error(`Failed to write to hosts file at ${sx}`);return e?.captureException(o),!1}return!0}catch(r){return e?.captureException(r),!1}}var ox,$7,j7,sx,z7=F(()=>{"use strict";f();ox=require("node:fs"),$7="# BEGIN BUILDER.IO DEV-TOOLS MANAGED",j7="# END BUILDER.IO DEV-TOOLS MANAGED",sx=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts"});function lDe(t){return!t||typeof t!="string"?t:t.startsWith("~/")||t==="~"?(0,ns.join)((0,G7.homedir)(),t.slice(1)):t}function V7(t,e){if(!t||typeof t!="string")return t;let r=lDe(t);return(0,ns.isAbsolute)(r)?(0,ns.normalize)(r):e?(r=(0,ns.join)(e,r),(0,ns.normalize)(r)):r}function pDe(t,e){if(!t||typeof t!="string")return!1;let r=V7(t,e);return!(!(0,ns.isAbsolute)(r)||(0,ns.normalize)(r)!==r)}function dDe(t){try{let e=(0,ns.dirname)(t);return(0,Ou.existsSync)(e)||(0,Ou.mkdirSync)(e,{recursive:!0,mode:493}),!0}catch{return!1}}function fDe(t,e,r){try{if(!pDe(t.path,e))return{success:!1,error:`Invalid file path: ${t.path}. Path must be resolvable to an absolute path.`};let n=V7(t.path,e);return dDe(n)?((0,Ou.writeFileSync)(n,t.content,"utf-8"),{success:!0,resolvedPath:n}):{success:!1,error:`Failed to create directory for: ${n}`}}catch(n){let i=n instanceof Error?n.message:String(n);return r?.captureException(n),{success:!1,error:i}}}function H7(t,e,r){let n={success:!0,appliedFiles:[],failedFiles:[]};if(!t||t.length===0)return n;for(let i of t){let s=fDe(i,e,r);s.success&&s.resolvedPath?n.appliedFiles.push(s.resolvedPath):(n.success=!1,n.failedFiles.push({path:i.path,error:s.error||"Unknown error"}))}return n}var Ou,ns,G7,K7=F(()=>{"use strict";f();Ou=require("node:fs"),ns=require("node:path"),G7=require("node:os")});function mDe(t){if(!/^[a-zA-Z0-9_-]+$/.test(t))return!1;try{let e=process.platform==="win32"?"where.exe":"which";return(0,sh.execSync)(`${e} ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function hDe(t,e){try{let r=e||t.cwd()||process.cwd();return t.existsSync(t.join(r,"pnpm-lock.yaml"))?"pnpm install":t.existsSync(t.join(r,"yarn.lock"))?"yarn install":t.existsSync(t.join(r,"bun.lockb"))?"bun install":(t.existsSync(t.join(r,"package-lock.json")),"npm install")}catch{return"npm install"}}function gDe(t,e,r){if(t!=="npm install")return t;if(mDe("ni"))return"ni";{let n=t,i=hDe(e,r);return e.Sentry?.captureMessage(`ni command not found in PATH, falling back to detected command: ${i}`,{level:"warning",extra:{originalCommand:n,detectedCommand:i,workingDirectory:r}}),i}}function yDe(t){try{if(t&&(0,X7.existsSync)(t))return t;let e=process.platform==="win32"?"where.exe mise":"which mise";return(0,sh.execSync)(e,{stdio:"ignore"}),"mise"}catch{return null}}function ih(t){if(t)try{return new URL(t)}catch{return}}async function HA(t,e,r){let n=new ci(500),i=new ci(500),s=new ci(500),o=new ci(1e3),a=!1,c=e.autoDetectDevServer??!1,u=e.autoDetectDevServerPatterns,l=c?void 0:ih(e.serverUrl),p,d=[],h={},m=e.devCommand?"stopped":"unset",g="stopped",y=r,b,D,C=[],x=new W7.default,v,w,S,A,k=e.devCommand??void 0,P=e.setupCommand??void 0,_=e.validateCommand??void 0,L=e.setupDependencies??void 0,H=new AbortController,z=yDe(e.miseLocationPath??process.env.MISE_INSTALL_PATH);function N(){C.push({all:new ci(300),out:new ci(300),err:new ci(300)})}function O(){if(!e.autoConfigureHosts||!l)return!1;let V=l.hostname;if(!U7(V)){if(q7([{hostname:V,ip:"127.0.0.1"}],t.Sentry))return I.info(`Updated /etc/hosts with entry: 127.0.0.1 ${V}`),!0;I.warn(`Failed to update /etc/hosts for ${V}. Make sure the process has root/admin permissions.`)}return!1}function B(){if(!e.fileOverrides||e.fileOverrides.length===0)return!0;let V=e.bashWorkingDirectory,te=H7(e.fileOverrides,V,t.Sentry);if(te.success)return te.appliedFiles.length>0&&I.info(`Applied ${te.appliedFiles.length} file override(s): ${te.appliedFiles.map(re=>re).join(", ")}`),!0;I.warn(`Failed to apply some file overrides (${te.failedFiles.length} failed):`);for(let re of te.failedFiles)I.warn(` - ${re.path}: ${re.error}`);return!1}async function q(V,te){let re=e.nativeApp?3e4:5e3,pe=e.nativeApp?1e4:2e3;return V=V??re,te=te??pe,new Promise(ce=>{if(m!=="running"&&m!=="starting")return ce();let K,Z=Ee=>{K&&clearTimeout(K),K=setTimeout(()=>{Ae(),ce()},Ee)},de=()=>Z(te),Ae=()=>{x.off("stdout",de),x.off("stderr",de),K&&clearTimeout(K)};x.on("stdout",de),x.on("stderr",de),Z(V)})}let ie,j=async()=>{let V=p?.getPid();return V?bDe(V):[]},G=()=>{if(e.nativeApp)return ie=void 0,!1;let V=O();return l?ie=nh(l.href,t):ie=void 0,V};function J(V){m!==V&&(m=V,m!=="running"&&De("stopped"),x.emit("devState",m))}function se(V){y!==V&&(y=V,x.emit("setupState",y),y!=="installed"&&De("stopped"),y==="installed"&&br())}function De(V){g!==V&&(g=V,x.emit("httpServerState",g))}async function ge(){let V=0;for(;H;){H=new AbortController;let te=setTimeout(()=>{H?.abort()},2e4),re=H.signal;await Promise.allSettled([oe(re).then(pe=>{m!=="running"||y!=="installed"?(V=0,De("stopped")):pe==="error-5xx"||pe==="error-fetch"?(V++,V>2&&De(pe)):(V=0,De(pe))}),new Promise(pe=>{let ce=2500;g==="ok-2xx"?ce=6e3:g==="error-fetch"?ce=1e3:g==="connecting"&&(ce=100),setTimeout(()=>{pe()},ce),H?.signal.addEventListener("abort",()=>{pe()},{once:!0})})]),clearTimeout(te)}}async function oe(V){if(e.nativeApp)return m==="running"?"ok-2xx":"stopped";try{if(m!=="running"||!l)return"stopped";if(V.aborted||g==="stopped"||V.aborted)return"connecting";if(!l)return"stopped";let re=l.protocol==="https:"?J7.default:Y7.default,pe=l.href,ce=await new Promise((K,Z)=>{let de=()=>{Ae.destroy(),Z(new Error("AbortError"))};if(V.aborted){Z(new Error("AbortError"));return}V.addEventListener("abort",de);let Ae=re.get(pe,{rejectUnauthorized:!1,headers:{accept:"*/*","accept-language":"*","sec-fetch-mode":"cors","user-agent":"node","accept-encoding":"gzip, deflate"}},Ee=>{let ht="";Ee.on("data",ke=>{ht+=ke.toString()}),Ee.on("end",()=>{V.removeEventListener("abort",de),K({status:Ee.statusCode??0,body:ht})})});Ae.on("error",Ee=>{V.removeEventListener("abort",de),Z(Ee)})});if(V.aborted)return"connecting";if(D=ce.status,ce.status>0&&ce.status<400)return b=void 0,"ok-2xx";if(ce.status>=400&&ce.status<500)return b=ce.body,"error-4xx";if(ce.status>=500&&ce.status<600)return b=ce.body,"error-5xx"}catch(te){return D=void 0,te instanceof Error&&te.message==="AbortError"||V.aborted?g==="ok-2xx"?"ok-2xx":"connecting":(b=String(te),"error-fetch")}return"connecting"}function At(){return m==="running"||m==="starting"?"running":y==="installed"?m:y}function rr(V){let te=d.reduce((re,{key:pe,value:ce})=>(re[pe]=ce,re),{});return V?{...te,...h}:te}function ne(V){let te={...e.environmentVariables?.reduce((re,{key:pe,value:ce})=>(re[pe]=ce,re),{}),...process.env,...rr(V)};if(process.platform==="win32"&&z){let pe=`${process.env.MISE_DATA_DIR||`${process.env.LOCALAPPDATA}\\mise`}\\shims`,ce=te.PATH||te.Path||"";if(ce.toLowerCase().includes(pe.toLowerCase())||(ce=`${pe};${ce}`),z!=="mise"&&z.includes("\\")){let K=z.substring(0,z.lastIndexOf("\\"));ce.toLowerCase().includes(K.toLowerCase())||(ce=`${K};${ce}`)}te.PATH=ce}return te}function Ze(V){let te=`[tools]
|
|
1827
|
+
`,re="";for(let pe of V){if(pe.type!=="mise")continue;pe.tool==="maven"&&(re+=`mise plugin install maven
|
|
1828
|
+
`);let ce=pe.tool,K=pe.version??"latest";(ce==="docker"||ce==="docker-cli"||ce==="docker-compose")&&t.existsSync("/usr/local/bin/setup-docker.sh")?te+=`${ce} = { version = "${K}", postinstall = "/usr/local/bin/setup-docker.sh" }
|
|
1829
|
+
`:te+=`${ce} = '${K}'
|
|
1830
|
+
`}return re&&(te+=`
|
|
1831
|
+
[hooks]
|
|
1832
|
+
`,te+=`preinstall = ${JSON.stringify(re)}
|
|
1833
|
+
`),te}async function ee(V,te=!1){try{if(!z)return null;let re=process.env.FUSION_ENVIRONMENT,pe="",ce=!!(e.workspace&&e.workingDirectory&&re!=="cloud"),K=ce?`${t.resolve(process.cwd(),e.workingDirectory??".")}/mise.toml`:"/etc/mise/config.toml",Z=L?.filter(de=>de.type==="mise");if(Z?.length){if(te){let Ae=process.platform==="win32"?"echo ======== Install dependencies ========":`printf '======== Install dependencies ========
|
|
1834
|
+
|
|
1835
|
+
'`;pe+=`${Ae}
|
|
1836
|
+
`;let Ee=process.platform==="win32"?"type":"cat";pe+=`${Ee} ${JSON.stringify(K)}
|
|
1837
|
+
`}ce&&(pe+=`${JSON.stringify(z)} trust ${JSON.stringify(K)}
|
|
1838
|
+
`),pe+=`${JSON.stringify(z)} install
|
|
1839
|
+
`,pe+=`${JSON.stringify(z)} reshim
|
|
1840
|
+
`,V.includes("fish")?pe+=`${JSON.stringify(z)} activate fish | source
|
|
1841
|
+
`:process.platform==="win32"?V.includes("powershell")||V.includes("pwsh")?pe+=`& ${JSON.stringify(z)} activate powershell | Invoke-Expression
|
|
1842
|
+
`:pe+=`${JSON.stringify(z)} current
|
|
1843
|
+
`:pe+=`eval "$(${JSON.stringify(z)} activate)"
|
|
1844
|
+
`;let de=Ze(Z);return await t.writeFile(K,de),pe}else await t.exists(K)&&await t.unlink(K)}catch(re){t.Sentry?.captureException(re)}return null}async function Te(){if(w&&v)return v.abort(),w}async function ve(){if(A&&S)return S.abort(),A}async function Qe(V){await Te();let te=P?.trim();if(h={},!te)return se("installed"),Promise.resolve({code:0,output:""});se("installing");let re=process.env.SHELL||process.env.COMSPEC||"/bin/sh";v=new AbortController;let pe=v.signal;return w=ee(re,!0).then(ce=>new Promise(K=>{n.clear();let Z="";ce&&(Z=ce+`
|
|
1841
1845
|
`);let de=process.platform==="win32"?"echo ========= Run setup command ==========":`printf '
|
|
1842
1846
|
========= Run setup command ==========
|
|
1843
1847
|
|
|
1844
1848
|
'`;Z+=`${de}
|
|
1845
|
-
`,Z+=te;let Ae=NU({command:Z});Z=Ae.command;let Ee=Eo(re,Z,{stdio:["ignore","pipe","pipe"],cwd:e.bashWorkingDirectory??e.workingDirectory,env:ne(!1)}),ht=da([V,
|
|
1849
|
+
`,Z+=te;let Ae=NU({command:Z});Z=Ae.command;let Ee=Eo(re,Z,{stdio:["ignore","pipe","pipe"],cwd:e.bashWorkingDirectory??e.workingDirectory,env:ne(!1)}),ht=da([V,pe]);ht.addEventListener("abort",()=>{Ni(t,Ee).then(ke=>{ke&&y==="installing"&&se("install-aborted"),K({code:null,output:n.getContent()})})},{once:!0}),Ee.on("error",ke=>{se("install-failed"),K({code:null,output:n.getContent()})}),Ee.stdout.on("data",ke=>{let ze=ke.toString();n.write(ze),x.emit("installStdout",ze)}),Ee.stderr.on("data",ke=>{let ze=ke.toString();n.write(ze),x.emit("installStderr",ze)}),Ee.on("close",async ke=>{let ze=await Ae.getCapturedEnv();ke===0&&ze&&(h=ze),se(ke===0?"installed":"install-failed"),typeof ke=="number"&&!ht?.aborted&&x.emit("installStderr",`
|
|
1846
1850
|
|
|
1847
1851
|
exited with code ${ke}
|
|
1848
|
-
`),K({code:ke,output:n.getContent(),capturedEnv:ze})})}).finally(()=>{v=void 0,w=void 0})),w}async function mt(V){await ve();let te=_?.trim();if(!te)return{status:"success",command:te};let re=process.env.SHELL||process.env.COMSPEC||"/bin/sh";S=new AbortController;let
|
|
1849
|
-
`+K);let Z=Rl({runInPty:e.runInPty,command:K??"",shell:re,cwd:e.bashWorkingDirectory??e.workingDirectory,env:ne(!0)});p=Z,N();let de=!1;Z.onSpawn(()=>{de=!0,J("starting"),q().then(()=>{de&&(J("running"),H?.abort(),
|
|
1852
|
+
`),K({code:ke,output:n.getContent(),capturedEnv:ze})})}).finally(()=>{v=void 0,w=void 0})),w}async function mt(V){await ve();let te=_?.trim();if(!te)return{status:"success",command:te};let re=process.env.SHELL||process.env.COMSPEC||"/bin/sh";S=new AbortController;let pe=S.signal;return A=new Promise(ce=>{let K=new ci(500),Z=da([V,pe]),de=Eo(re,te,{stdio:["ignore","pipe","pipe"],cwd:e.bashWorkingDirectory??e.workingDirectory,env:ne(!1)});Z.addEventListener("abort",()=>{Ni(t,de).then(()=>{ce({status:"failure",code:0,command:te,output:K.getContent()})})},{once:!0}),de.on("error",Ae=>{ce({status:"failure",code:null,command:te,output:K.getContent()})}),de.stdout.on("data",Ae=>{let Ee=Ae.toString();K.write(Ee)}),de.stderr.on("data",Ae=>{let Ee=Ae.toString();K.write(Ee)}),de.on("close",Ae=>{ce(Ae===0?{status:"success",command:te}:{status:"failure",code:Ae,command:te,output:K.getContent()})})}).finally(()=>{S=void 0,A=void 0}),A}async function br(V){if(At()==="stopped"||At()==="failed")try{return await Zn(V),!0}catch{return!1}return!1}async function Zn(V){let te=p;if(p=void 0,a=!1,await Ni(t,te,V),!k)return J("unset"),{status:"failure",code:null,output:"DevCommand is not set"};if(H?.abort(),J("stopped"),V?.aborted)return{status:"failure",code:null,output:"Aborted"};if(y!=="installed")return{status:"failure",code:null,output:"Setup command is not installed"};let re=process.env.SHELL||process.env.COMSPEC||"/bin/sh";return ee(re).then(pe=>new Promise(ce=>{V?.aborted&&ce({status:"failure",code:null,output:"Aborted"}),V?.addEventListener("abort",()=>{ce({status:"failure",code:null,output:"Aborted"})},{once:!0});let K=k;pe&&(K=pe+`
|
|
1853
|
+
`+K);let Z=Rl({runInPty:e.runInPty,command:K??"",shell:re,cwd:e.bashWorkingDirectory??e.workingDirectory,env:ne(!0)});p=Z,N();let de=!1;Z.onSpawn(()=>{de=!0,J("starting"),q().then(()=>{de&&(J("running"),H?.abort(),ce({status:"success"}))})}),Z.onError(ke=>{de=!1,J("failed"),t.Sentry?.captureException(ke),ce({status:"failure",code:null,output:ke.message})}),Z.onClose(ke=>{de=!1,J("failed"),typeof ke=="number"&&!V?.aborted&&ht(`
|
|
1850
1854
|
|
|
1851
1855
|
exited with code ${ke}
|
|
1852
|
-
`),x.emit("close",ke),
|
|
1853
|
-
`)}return G(),B(),ge(),y==="installed"&&Zn(),{clearEnvVariables(){d=[]},setEnvVariable(V,te){let re=d.findIndex(
|
|
1856
|
+
`),x.emit("close",ke),ce({status:"failure",code:ke,output:fr(1,"all")})});let Ae=ke=>{if(c&&!a){let ze=B7(ke,u);ze&&(l=ih(ze.url),l&&(a=!0,G(),H?.abort(),I.info(`URL auto-detected: ${l.href}`),x.emit("urlDetected",l.href)))}},Ee=ke=>{if(p!==Z)return;i.write(ke),o.write(ke);let ze=C[C.length-1];ze&&(ze.out.write(ke),ze.all.write(ke)),Ae(ke),x.emit("stdout",ke)},ht=ke=>{if(p!==Z)return;s.write(ke),o.write(ke);let ze=C[C.length-1];ze&&(ze.err.write(ke),ze.all.write(ke)),Ae(ke),x.emit("stderr",ke)};Z.stdout.on("data",ke=>{let ze=ke.toString();Ee(ze)}),Z.stderr.on("data",ke=>{let ze=ke.toString();ht(ze)})}))}function Vc({command:V,shell:te,cwd:re,env:pe}){let ce=Eo(te,V,{stdio:["inherit","pipe","pipe"],cwd:re,env:{...pe,NODE_ENV:"development",TERM:"dumb"}});return{type:"devCommandProcess",getPid:()=>ce.pid,getExitCode:()=>ce.exitCode,kill:K=>ce.kill(K),onSpawn:K=>ce.on("spawn",K),onError:K=>ce.on("error",K),onClose:K=>ce.on("close",K),stdout:{on:(K,Z)=>ce.stdout?.on(K,Z)},stderr:{on:(K,Z)=>ce.stderr?.on(K,Z)},removeAllListeners:()=>ce.removeAllListeners()}}function Me({command:V,shell:te,cwd:re,env:pe,pty:ce}){let K=pe.TERM||"xterm-color",Z=ce.spawn(te,nA(V,te),{name:K,cols:80,rows:30,cwd:re,env:{...pe,TERM:K}}),de=null;return{type:"devCommandProcess",getPid:()=>Z.pid,getExitCode:()=>de,kill:Ee=>{try{return Z.kill(Ee),!0}catch{return!1}},resize(Ee,ht){Z.resize(Ee??Z.cols,ht??Z.rows)},write(Ee){Z.write(Ee)},onSpawn:Ee=>{setTimeout(()=>Ee(),0)},onError:Ee=>{Z.onExit(ht=>{ht.exitCode!==0&&Ee(new Error(`Process exited with code ${ht.exitCode}`))})},onClose:Ee=>{Z.onExit(ht=>{de=ht.exitCode,Ee(ht.exitCode,null)})},stdout:{on:(Ee,ht)=>{Ee==="data"&&Z.onData(ke=>{ht(Buffer.from(ke))})}},stderr:{on:(Ee,ht)=>{}},removeAllListeners:()=>{}}}function Rl({runInPty:V,...te}){if(V){let re=VA(t);return re?Me({...te,pty:re}):(I.warn("Could not import node-pty for interactive terminal mode. Falling back to normal process."),Vc({...te}))}return Vc({...te})}function fr(V,te){return C.slice(-V).map(re=>te==="all"?re.all.getContent():te==="out"?re.out.getContent():te==="err"?re.err.getContent():"").join(`
|
|
1857
|
+
`)}return G(),B(),ge(),y==="installed"&&Zn(),{clearEnvVariables(){d=[]},setEnvVariable(V,te){let re=d.findIndex(ce=>ce.key===V),pe=re>=0?d[re]:void 0;if(pe?.value===te)return!1;if(pe&&te===void 0)d.splice(re,1);else if(pe&&te!==void 0)pe.value=te;else if(te!==void 0)d.push({key:V,value:te,isSecret:!1});else return!1;return!0},async setSetupCommand(V){let te=V.setupCommand===void 0?P:V.setupCommand||void 0,re=V.setupDependencies===void 0?L:V.setupDependencies||void 0;e._useNI&&(te=gDe(te??"",t,e.workingDirectory));let pe=!1;if(V.forceRestart&&(pe=!0),P!==te&&(pe=!0),JSON.stringify(re)!==JSON.stringify(L)&&(pe=!0),!pe)return null;if(L=re,P=te,m==="running")try{let ce=p;p=void 0,await Ni(t,ce,V.signal),H?.abort(),J(k?"stopped":"unset")}catch(ce){t.Sentry?.captureException(ce)}return await Qe(V.signal)},async runSetupCommand(V){return await Qe(V)},async ensureSetupCommand(V){return(y==="install-failed"||y==="not-installed"||y==="installing")&&(w||await Qe(V)),y==="installed"},get setupCommandPromise(){return w},abortSetupCommand(){return Te()},abortValidateCommand(){return ve()},async setDevCommand(V,te,re){return k===V&&!te?{status:"success",code:null,output:"Same command, no restart"}:(k=V,await Zn(re))},getOpenPorts:j,async setProxyServer(V){let te=ih(V);if(l?.href===te?.href)return{updatedProxyServer:!1,updatedHosts:!1};l=te,De("stopped");let re=G();return H?.abort(),{updatedProxyServer:!0,updatedHosts:re}},async setPort(V){return Number(l?.port)===V?!1:(l||(l=new URL(`http://localhost:${V}`)),l.port=V.toString(),De("stopped"),G(),H?.abort(),!0)},async setAutoDetectSettings(V,te){return c===V?!1:(c=V,te!==void 0&&(u=te),De("stopped"),G(),H?.abort(),a=!1,c&&m==="running"&&await Zn(),!0)},get hasValidateCommand(){return!!_},runValidateCommand(V,te){return V===null?_=void 0:V!==void 0&&(_=V),mt(te)},ensureDevCommand:br,onClose(V){x.on("close",V)},addCheckpoint:N,emitter:x,getCheckpoints:fr,getAllStdout(){return i.getContent()},getAllStderr(){return s.getContent()},getOutput(){return o.getContent()},getSetupWrite(){return n?.getWrite()},getDevWrite(){return i?.getWrite()},getSetupOutput(){return n.getContent()},async getMiseActivationCommand(V){return await ee(V)},async waitUntilIdle(V,te){return q(V,te)},async restart(V){return Zn(V)},get devCommandProcess(){return p},get httpServerState(){return g},get devCommand(){return k??""},get proxyTarget(){return l?.href},get environmentVariables(){return d},get envVars(){return rr(!0)},get proxyPort(){if(l)return l.protocol==="https:"?Number(l.port)||443:Number(l.port)||80},get proxyMiddleware(){return ie},get setupCommand(){return P},get setupState(){return y},get lastServerStatus(){return D},get lastServerBody(){return b},get devState(){return m},get state(){return At()},get pid(){return p?.getPid()},get autoDetectedUrl(){return a},get autoDetectDevServer(){return c},get autoDetectDevServerPatterns(){return u},async close(){try{H?.abort(),v?.abort(),H=void 0,w=void 0,v=void 0,P=void 0,x.removeAllListeners();let V=p;p=void 0,await Ni(t,V),n.clear(),C=[],i.clear(),s.clear(),o.clear(),hU()}catch(V){t.Sentry?.captureException(V)}}}}var W7,sh,J7,Y7,X7,VA,bDe,ax=F(()=>{"use strict";f();dc();RU();W7=U(require("events"),1),sh=require("node:child_process");pA();zA();Gm();L7();Ot();J7=U(require("node:https"),1),Y7=U(require("node:http"),1);z7();K7();X7=require("node:fs");VA=t=>{let e,r;try{e=require("@lydell/node-pty")}catch(n){r=n instanceof Error?n:new Error(String(n))}if(!e){let n=new Error("Could not import node-pty.",{cause:r});t.Sentry?.captureException(n)}return e};bDe=t=>{try{if(process.platform==="win32"){let e=(0,sh.execSync)(`netstat -ano | findstr :.*LISTENING | findstr ${t}`,{encoding:"utf8",timeout:5e3}),r=[],n=e.trim().split(`
|
|
1854
1858
|
`);for(let i of n)if(i.trim()){let s=i.trim().split(/\s+/);if(s.length>=2){let a=s[1].match(/:(\d+)$/);if(a){let c=parseInt(a[1],10);r.includes(c)||r.push(c)}}}return r}else{let e=(0,sh.execSync)(`parent=${t}
|
|
1855
1859
|
pids=$(ps -e -o pid=,ppid= |
|
|
1856
1860
|
awk -v root=$parent '
|
|
@@ -1917,7 +1921,7 @@ exited with code ${A}`),C({isError:P,toolResult:k.trim(),title:`${d} command "${
|
|
|
1917
1921
|
|
|
1918
1922
|
NEXT UP!
|
|
1919
1923
|
The Agent found important files which content must be read. Use the "Read" tool to look at their content (specially if relevance is high):`;for(let o of i.importantFiles.important_files)s+=`
|
|
1920
|
-
- ${o.file_path}${o.offset?`:${o.offset+1}`:""}${o.offset&&o.limit?`-${o.limit+o.offset+1}`:""}${o.relevance?` (relevance: ${o.relevance})`:""}`}return{isError:!1,toolResult:s,title:"Agent Task Completed"}}catch(i){return{isError:!0,toolResult:`Agent task failed: ${i instanceof Error?i.message:String(i)}`,title:"Agent Task Failed"}}}}function cx(){let t=new Error("AbortError");return t.name="AbortError",t}var KA,FDe,kDe,rq=F(()=>{"use strict";f();Vv();Vv();cA();PU();dc();IU();Pm();pA();ax();oh();KA=U(require("@sentry/node"),1);Gm();Ln();FDe=["!**/.git/**","!**/.hg/**","!**/.svn/**","!**/.DS_Store","!**/.idea/**","!**/.vscode/**","!**/.cache/**","!**/coverage/**","!**/node_modules/**","!**/dist/**","!**/*.tsbuildinfo","!**/package-lock.json","!**/yarn.lock","!**/pnpm-lock.yaml","!**/*.min.js","!**/*.min.css","!**/*.bundle.js","!**/*.chunk.js","!**/builder-registry.*","!**/*.bundle.css","!**/*.map","!**/vendor/**","!**/target/**","!**/__pycache__/**","!**/*.pyc","!**/*.pyo","!**/*.class","!**/*.jar","!**/build/**/*.gradle","!**/*.lock","!**/*.log","!**/*.o","!**/*.a","!**/*.so","!**/*.dylib","!**/*.dll","!**/*.exe","!**/*.zip","!**/*.tar","!**/*.tar.gz","!**/*.tgz","!**/*.7z","!**/*.rar","!**/*.png","!**/*.jpg","!**/*.jpeg","!**/*.gif","!**/*.svg","!**/*.ico","!**/*.webp","!**/*.mp4","!**/*.mp3"],kDe=t=>{let e=["{","(","["],r=["}",")","]"],n=[],i=[],s=new Map([["{","}"],["(",")"],["[","]"]]);for(let o=0;o<=t.length-1;o++){let a=t[o];t[o-1]==="\\"&&t[o-2]!=="\\"||(e.includes(a)?n.push({location:o,value:a}):r.includes(a)&&i.push({location:o,value:a}))}for(let o of n){let{location:a,value:c}=o,u=i.findIndex(l=>l.location>a&&l.value===s.get(c));if(u>-1)i.splice(u,1);else return!0}return i.length>0}});function WA(t){if(t)return LDe[t.toLowerCase()]??t}function nq(t,e){try{if(!t||!t.trim())return null;let r=Lv(t);if(!r.frontmatter||Object.keys(r.frontmatter).length===0)return{name:ah.default.basename(e,ah.default.extname(e)),systemPrompt:r.body||t.trim(),filePath:e};let n=r.body;if(!n)return null;let i=r.frontmatter.name||ah.default.basename(e,ah.default.extname(e)),s;r.frontmatter.tools&&(Array.isArray(r.frontmatter.tools)?s=r.frontmatter.tools.map(c=>c.trim()):typeof r.frontmatter.tools=="string"&&(s=r.frontmatter.tools.split(",").map(c=>c.trim())));let o=r.frontmatter.model?WA(r.frontmatter.model):void 0,a=r.frontmatter.mode;return{name:i,description:r.frontmatter.description,systemPrompt:n,tools:s,model:o,mode:a,filePath:e}}catch{return null}}var ah,LDe,JA=F(()=>{"use strict";f();ah=U(require("node:path"),1);qT();LDe={sonnet:"acs45","sonnet-4":"acs4",opus:"aco41",haiku:"ach351022",gpt5:"opa5","gpt5-codex":"opa5c.acs4",codex:"opa5c.acs4","gpt5-codex-mini":"opa5c-mini","gpt5-mini":"opa5-mini","gpt5-nano":"opa5-nano"}});async function iq(t,e,r,n=""){let i=[];try{if(!await t.exists(e))return i;let s=await t.readdir(e);for(let o of s){let a=t.join(e,o),c=await t.stat(a).catch(()=>null);if(c)if(c.isDirectory()){let u=n?`${n}/${o}`:o,l=await iq(t,a,r,u);i.push(...l)}else(o.endsWith(".mdc")||o.endsWith(".md")||o.endsWith(".yml")||o.endsWith(".yaml"))&&i.push(a)}}catch{}return i}async function $De(t,e,r){try{if(!(await t.stat(e).catch(()=>null))?.isFile())return null;let i=await t.readFile(e);if(!i)return null;let s=t.relative(r,e);return nq(i,s)}catch(n){return t.Sentry?.captureException(n),null}}async function sq({sys:t,projectDir:e,currentDir:r,rootDir:n}){let i=[],s=[".claude/agents",".builder/agents",".cursor/agents"],o;do{try{for(let a of s){let c=t.resolve(r,a);if(await t.exists(c)){let u=await iq(t,c,c);for(let l of u){let p=await $De(t,l,e);p&&i.push(p)}}}}catch(a){console.debug(`Error reading ${r}:`,a)}if(o=r,r=t.dirname(r),r===o)break}while(o!==n);return i}var oq=F(()=>{"use strict";f();JA()});function ux(t){if(!t)return;let e=structuredClone(t);return e.privacyMode?.encryptKey&&(e.privacyMode.encryptKey="*****"),e}function jDe(t){if(t.startsWith("ai/")){let e=t.split("/");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("/");return{sessionId:r,featureBranch:n}}else if(t.startsWith("ai_")){let e=t.split("_");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("_");return{sessionId:r,featureBranch:n}}return{sessionId:void 0,featureBranch:t}}function lq(t,e){return`ai_${t}_${e}`.trim()}var aq,cq,uq,lx,ch=F(()=>{"use strict";f();aq=U(require("path"),1);cq=()=>process.env.FLY_APP_NAME!==void 0,uq=t=>aq.default.resolve(process.cwd(),t.workingDirectory??".");lx=async({sys:t,gitWorkingDirectory:e,strict:r})=>{let n=await t.getRepoInfo(e);if(!n.hasGit)throw new Error("Git is not initialized");let i=n.currentBranch,s=jDe(i);if(r&&s.featureBranch===""&&i.startsWith("ai__"))throw new Error("AI branch is corrupted");return{currentBranch:i,featureBranch:s.featureBranch,sessionId:s.sessionId}}});function pq(t){let{filePath:e,forceWorkspace:r=!1,workspace:n,workingDirectory:i,sys:s,canCollapseWorkspace:o}=t,a=e;if(a.startsWith("/")?a=a.substring(1):a.startsWith("./")&&(a=a.substring(2)),!n?.folders?.length)return{resolvedPath:s.resolve(i,a)};if(n.folders.length===1&&n.folders[0].name==="."||o){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}let u=a.indexOf("/");if(u===-1){if(r){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}return{resolvedPath:s.resolve(i,a)}}let l=a.substring(0,u),p=a.substring(u+1),d=n.folders.find(m=>m.name?m.name===l:s.basename(m.path)===l);if(!d){if(!r)return{resolvedPath:s.resolve(i,a)};d=n.folders[0];let m=s.resolve(i,d.path);return{resolvedPath:s.resolve(m,a),workspaceFolder:d}}let h=s.resolve(i,d.path);return{resolvedPath:s.resolve(h,p),workspaceFolder:d}}function dq(t){let{absolutePath:e,workspace:r,workingDirectory:n,sys:i,canCollapseWorkspace:s}=t;if(!r?.folders?.length)return;let o=i.resolve(e);if(r.folders.length===1&&r.folders[0].name==="."){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}if(s&&r.folders.length===1){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}for(let c of r.folders){let u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);l.startsWith("/")&&(l=l.substring(1));let p=c.name||i.basename(c.path);if(p==="."&&r.folders.length>1)continue;return l?`${p}/${l}`:p}}if(s&&r.folders.length>0){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}}var fq=F(()=>{"use strict";f()});var tt,YA,pe,Ao,uh=F(()=>{f();(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(tt||(tt={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(YA||(YA={}));pe=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ao=t=>{switch(typeof t){case"undefined":return pe.undefined;case"string":return pe.string;case"number":return Number.isNaN(t)?pe.nan:pe.number;case"boolean":return pe.boolean;case"function":return pe.function;case"bigint":return pe.bigint;case"symbol":return pe.symbol;case"object":return Array.isArray(t)?pe.array:t===null?pe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?pe.promise:typeof Map<"u"&&t instanceof Map?pe.map:typeof Set<"u"&&t instanceof Set?pe.set:typeof Date<"u"&&t instanceof Date?pe.date:pe.object;default:return pe.unknown}}});var Q,UDe,pi,px=F(()=>{f();uh();Q=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),UDe=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),pi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};pi.create=t=>new pi(t)});var qDe,ma,XA=F(()=>{f();px();uh();qDe=(t,e)=>{let r;switch(t.code){case Q.invalid_type:t.received===pe.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case Q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,tt.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:r=`Unrecognized key(s) in object: ${tt.joinValues(t.keys,", ")}`;break;case Q.invalid_union:r="Invalid input";break;case Q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tt.joinValues(t.options)}`;break;case Q.invalid_enum_value:r=`Invalid enum value. Expected ${tt.joinValues(t.options)}, received '${t.received}'`;break;case Q.invalid_arguments:r="Invalid function arguments";break;case Q.invalid_return_type:r="Invalid function return type";break;case Q.invalid_date:r="Invalid date";break;case Q.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:tt.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case Q.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case Q.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case Q.custom:r="Invalid input";break;case Q.invalid_intersection_types:r="Intersection results could not be merged";break;case Q.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case Q.not_finite:r="Number must be finite";break;default:r=e.defaultError,tt.assertNever(t)}return{message:r}},ma=qDe});function zDe(t){mq=t}function Zp(){return mq}var mq,dx=F(()=>{f();XA();mq=ma});function ce(t,e){let r=Zp(),n=lh({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===ma?void 0:ma].filter(i=>!!i)});t.common.issues.push(n)}var lh,GDe,cn,Pe,Mu,Cn,fx,mx,gc,Qp,ZA=F(()=>{f();dx();XA();lh=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}},GDe=[];cn=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return Pe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Pe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},Pe=Object.freeze({status:"aborted"}),Mu=t=>({status:"dirty",value:t}),Cn=t=>({status:"valid",value:t}),fx=t=>t.status==="aborted",mx=t=>t.status==="dirty",gc=t=>t.status==="valid",Qp=t=>typeof Promise<"u"&&t instanceof Promise});var hq=F(()=>{f()});var ye,gq=F(()=>{f();(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(ye||(ye={}))});function Ue(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}function xq(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function aCe(t){return new RegExp(`^${xq(t)}$`)}function Dq(t){let e=`${vq}T${xq(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function cCe(t,e){return!!((e==="v4"||!e)&&eCe.test(t)||(e==="v6"||!e)&&rCe.test(t))}function uCe(t,e){if(!YDe.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function lCe(t,e){return!!((e==="v4"||!e)&&tCe.test(t)||(e==="v6"||!e)&&nCe.test(t))}function pCe(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function ed(t){if(t instanceof di){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=is.create(ed(n))}return new di({...t._def,shape:()=>e})}else return t instanceof ya?new ya({...t._def,type:ed(t.element)}):t instanceof is?is.create(ed(t.unwrap())):t instanceof Po?Po.create(ed(t.unwrap())):t instanceof _o?_o.create(t.items.map(e=>ed(e))):t}function e_(t,e){let r=Ao(t),n=Ao(e);if(t===e)return{valid:!0,data:t};if(r===pe.object&&n===pe.object){let i=tt.objectKeys(e),s=tt.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=e_(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===pe.array&&n===pe.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=e_(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===pe.date&&n===pe.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function Cq(t,e){return new Ku({values:t,typeName:Re.ZodEnum,...Ue(e)})}function bq(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function wq(t,e={},r){return t?bc.create().superRefine((n,i)=>{let s=t(n);if(s instanceof Promise)return s.then(o=>{if(!o){let a=bq(e,n),c=a.fatal??r??!0;i.addIssue({code:"custom",...a,fatal:c})}});if(!s){let o=bq(e,n),a=o.fatal??r??!0;i.addIssue({code:"custom",...o,fatal:a})}}):bc.create()}var ss,yq,Ke,VDe,HDe,KDe,WDe,JDe,YDe,XDe,ZDe,QDe,QA,eCe,tCe,rCe,nCe,iCe,sCe,vq,oCe,yc,Bu,Lu,$u,ju,td,Uu,qu,bc,ga,qs,rd,ya,di,zu,ha,hx,Gu,_o,gx,nd,id,yx,Vu,Hu,Ku,Wu,vc,os,is,Po,Ju,Yu,sd,dCe,ph,dh,Xu,fCe,Re,mCe,Eq,Sq,hCe,gCe,Tq,yCe,bCe,vCe,xCe,DCe,CCe,wCe,ECe,SCe,TCe,ACe,_Ce,PCe,FCe,kCe,ICe,NCe,RCe,OCe,MCe,BCe,LCe,$Ce,jCe,UCe,qCe,zCe,GCe,VCe,HCe,KCe,WCe,JCe,YCe,Aq=F(()=>{f();px();dx();gq();ZA();uh();ss=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},yq=(t,e)=>{if(gc(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new pi(t.common.issues);return this._error=r,this._error}}};Ke=class{get description(){return this._def.description}_getType(e){return Ao(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ao(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new cn,ctx:{common:e.parent.common,data:e.data,parsedType:Ao(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Qp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ao(e)},i=this._parseSync({data:e,path:n.path,parent:n});return yq(n,i)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ao(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return gc(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>gc(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ao(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Qp(i)?i:Promise.resolve(i));return yq(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:Q.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new os({schema:this,typeName:Re.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return is.create(this,this._def)}nullable(){return Po.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ya.create(this)}promise(){return vc.create(this,this._def)}or(e){return zu.create([this,e],this._def)}and(e){return Gu.create(this,e,this._def)}transform(e){return new os({...Ue(this._def),schema:this,typeName:Re.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ju({...Ue(this._def),innerType:this,defaultValue:r,typeName:Re.ZodDefault})}brand(){return new ph({typeName:Re.ZodBranded,type:this,...Ue(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Yu({...Ue(this._def),innerType:this,catchValue:r,typeName:Re.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return dh.create(this,e)}readonly(){return Xu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},VDe=/^c[^\s-]{8,}$/i,HDe=/^[0-9a-z]+$/,KDe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,WDe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,JDe=/^[a-z0-9_-]{21}$/i,YDe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,XDe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ZDe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,QDe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",eCe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tCe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rCe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nCe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iCe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sCe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vq="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",oCe=new RegExp(`^${vq}$`);yc=class t extends Ke{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==pe.string){let s=this._getOrReturnCtx(e);return ce(s,{code:Q.invalid_type,expected:pe.string,received:s.parsedType}),Pe}let n=new cn,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?ce(i,{code:Q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ce(i,{code:Q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")ZDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"email",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")QA||(QA=new RegExp(QDe,"u")),QA.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"emoji",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")WDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"uuid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")JDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"nanoid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")VDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cuid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")HDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cuid2",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")KDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"ulid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ce(i,{validation:"url",code:Q.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"regex",code:Q.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?Dq(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?oCe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?aCe(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?XDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"duration",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?cCe(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"ip",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?uCe(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"jwt",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?lCe(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cidr",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?iCe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"base64",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?sCe.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"base64url",code:Q.invalid_string,message:s.message}),n.dirty()):tt.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:Q.invalid_string,...ye.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ye.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ye.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ye.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ye.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ye.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ye.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ye.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ye.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ye.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ye.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ye.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ye.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ye.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...ye.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...ye.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ye.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ye.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...ye.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ye.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ye.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ye.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ye.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ye.errToObj(r)})}nonempty(e){return this.min(1,ye.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};yc.create=t=>new yc({checks:[],typeName:Re.ZodString,coerce:t?.coerce??!1,...Ue(t)});Bu=class t extends Ke{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==pe.number){let s=this._getOrReturnCtx(e);return ce(s,{code:Q.invalid_type,expected:pe.number,received:s.parsedType}),Pe}let n,i=new cn;for(let s of this._def.checks)s.kind==="int"?tt.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?pCe(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.not_finite,message:s.message}),i.dirty()):tt.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ye.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ye.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ye.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ye.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ye.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ye.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ye.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ye.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ye.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ye.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ye.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ye.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ye.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ye.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&tt.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Bu.create=t=>new Bu({checks:[],typeName:Re.ZodNumber,coerce:t?.coerce||!1,...Ue(t)});Lu=class t extends Ke{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==pe.bigint)return this._getInvalidInput(e);let n,i=new cn;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:Q.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):tt.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return ce(r,{code:Q.invalid_type,expected:pe.bigint,received:r.parsedType}),Pe}gte(e,r){return this.setLimit("min",e,!0,ye.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ye.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ye.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ye.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ye.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ye.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ye.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ye.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ye.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ye.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Lu.create=t=>new Lu({checks:[],typeName:Re.ZodBigInt,coerce:t?.coerce??!1,...Ue(t)});$u=class extends Ke{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==pe.boolean){let n=this._getOrReturnCtx(e);return ce(n,{code:Q.invalid_type,expected:pe.boolean,received:n.parsedType}),Pe}return Cn(e.data)}};$u.create=t=>new $u({typeName:Re.ZodBoolean,coerce:t?.coerce||!1,...Ue(t)});ju=class t extends Ke{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==pe.date){let s=this._getOrReturnCtx(e);return ce(s,{code:Q.invalid_type,expected:pe.date,received:s.parsedType}),Pe}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return ce(s,{code:Q.invalid_date}),Pe}let n=new cn,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:Q.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):tt.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ye.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ye.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};ju.create=t=>new ju({checks:[],coerce:t?.coerce||!1,typeName:Re.ZodDate,...Ue(t)});td=class extends Ke{_parse(e){if(this._getType(e)!==pe.symbol){let n=this._getOrReturnCtx(e);return ce(n,{code:Q.invalid_type,expected:pe.symbol,received:n.parsedType}),Pe}return Cn(e.data)}};td.create=t=>new td({typeName:Re.ZodSymbol,...Ue(t)});Uu=class extends Ke{_parse(e){if(this._getType(e)!==pe.undefined){let n=this._getOrReturnCtx(e);return ce(n,{code:Q.invalid_type,expected:pe.undefined,received:n.parsedType}),Pe}return Cn(e.data)}};Uu.create=t=>new Uu({typeName:Re.ZodUndefined,...Ue(t)});qu=class extends Ke{_parse(e){if(this._getType(e)!==pe.null){let n=this._getOrReturnCtx(e);return ce(n,{code:Q.invalid_type,expected:pe.null,received:n.parsedType}),Pe}return Cn(e.data)}};qu.create=t=>new qu({typeName:Re.ZodNull,...Ue(t)});bc=class extends Ke{constructor(){super(...arguments),this._any=!0}_parse(e){return Cn(e.data)}};bc.create=t=>new bc({typeName:Re.ZodAny,...Ue(t)});ga=class extends Ke{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Cn(e.data)}};ga.create=t=>new ga({typeName:Re.ZodUnknown,...Ue(t)});qs=class extends Ke{_parse(e){let r=this._getOrReturnCtx(e);return ce(r,{code:Q.invalid_type,expected:pe.never,received:r.parsedType}),Pe}};qs.create=t=>new qs({typeName:Re.ZodNever,...Ue(t)});rd=class extends Ke{_parse(e){if(this._getType(e)!==pe.undefined){let n=this._getOrReturnCtx(e);return ce(n,{code:Q.invalid_type,expected:pe.void,received:n.parsedType}),Pe}return Cn(e.data)}};rd.create=t=>new rd({typeName:Re.ZodVoid,...Ue(t)});ya=class t extends Ke{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==pe.array)return ce(r,{code:Q.invalid_type,expected:pe.array,received:r.parsedType}),Pe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(ce(r,{code:o?Q.too_big:Q.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ce(r,{code:Q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ce(r,{code:Q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ss(r,o,r.path,a)))).then(o=>cn.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ss(r,o,r.path,a)));return cn.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:ye.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:ye.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:ye.toString(r)}})}nonempty(e){return this.min(1,e)}};ya.create=(t,e)=>new ya({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Re.ZodArray,...Ue(e)});di=class t extends Ke{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=tt.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==pe.object){let u=this._getOrReturnCtx(e);return ce(u,{code:Q.invalid_type,expected:pe.object,received:u.parsedType}),Pe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof qs&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=s[u],p=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ss(i,p,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof qs){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(ce(i,{code:Q.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let p=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ss(i,p,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key,d=await l.value;u.push({key:p,value:d,alwaysSet:l.alwaysSet})}return u}).then(u=>cn.mergeObjectSync(n,u)):cn.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return ye.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:ye.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Re.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of tt.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of tt.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return ed(this)}partial(e){let r={};for(let n of tt.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of tt.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof is;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return Cq(tt.objectKeys(this.shape))}};di.create=(t,e)=>new di({shape:()=>t,unknownKeys:"strip",catchall:qs.create(),typeName:Re.ZodObject,...Ue(e)});di.strictCreate=(t,e)=>new di({shape:()=>t,unknownKeys:"strict",catchall:qs.create(),typeName:Re.ZodObject,...Ue(e)});di.lazycreate=(t,e)=>new di({shape:t,unknownKeys:"strip",catchall:qs.create(),typeName:Re.ZodObject,...Ue(e)});zu=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new pi(a.ctx.common.issues));return ce(r,{code:Q.invalid_union,unionErrors:o}),Pe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new pi(c));return ce(r,{code:Q.invalid_union,unionErrors:a}),Pe}}get options(){return this._def.options}};zu.create=(t,e)=>new zu({options:t,typeName:Re.ZodUnion,...Ue(e)});ha=t=>t instanceof Vu?ha(t.schema):t instanceof os?ha(t.innerType()):t instanceof Hu?[t.value]:t instanceof Ku?t.options:t instanceof Wu?tt.objectValues(t.enum):t instanceof Ju?ha(t._def.innerType):t instanceof Uu?[void 0]:t instanceof qu?[null]:t instanceof is?[void 0,...ha(t.unwrap())]:t instanceof Po?[null,...ha(t.unwrap())]:t instanceof ph||t instanceof Xu?ha(t.unwrap()):t instanceof Yu?ha(t._def.innerType):[],hx=class t extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==pe.object)return ce(r,{code:Q.invalid_type,expected:pe.object,received:r.parsedType}),Pe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ce(r,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Pe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=ha(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:Re.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ue(n)})}};Gu=class extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(fx(s)||fx(o))return Pe;let a=e_(s.value,o.value);return a.valid?((mx(s)||mx(o))&&r.dirty(),{status:r.value,value:a.data}):(ce(n,{code:Q.invalid_intersection_types}),Pe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Gu.create=(t,e,r)=>new Gu({left:t,right:e,typeName:Re.ZodIntersection,...Ue(r)});_o=class t extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==pe.array)return ce(n,{code:Q.invalid_type,expected:pe.array,received:n.parsedType}),Pe;if(n.data.length<this._def.items.length)return ce(n,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&n.data.length>this._def.items.length&&(ce(n,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ss(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>cn.mergeArray(r,o)):cn.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_o.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _o({items:t,typeName:Re.ZodTuple,rest:null,...Ue(e)})};gx=class t extends Ke{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==pe.object)return ce(n,{code:Q.invalid_type,expected:pe.object,received:n.parsedType}),Pe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ss(n,a,n.path,a)),value:o._parse(new ss(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?cn.mergeObjectAsync(r,i):cn.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Ke?new t({keyType:e,valueType:r,typeName:Re.ZodRecord,...Ue(n)}):new t({keyType:yc.create(),valueType:e,typeName:Re.ZodRecord,...Ue(r)})}},nd=class extends Ke{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==pe.map)return ce(n,{code:Q.invalid_type,expected:pe.map,received:n.parsedType}),Pe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new ss(n,a,n.path,[u,"key"])),value:s._parse(new ss(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Pe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Pe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};nd.create=(t,e,r)=>new nd({valueType:e,keyType:t,typeName:Re.ZodMap,...Ue(r)});id=class t extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==pe.set)return ce(n,{code:Q.invalid_type,expected:pe.set,received:n.parsedType}),Pe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ce(n,{code:Q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ce(n,{code:Q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return Pe;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new ss(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:ye.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:ye.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};id.create=(t,e)=>new id({valueType:t,minSize:null,maxSize:null,typeName:Re.ZodSet,...Ue(e)});yx=class t extends Ke{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==pe.function)return ce(r,{code:Q.invalid_type,expected:pe.function,received:r.parsedType}),Pe;function n(a,c){return lh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Zp(),ma].filter(u=>!!u),issueData:{code:Q.invalid_arguments,argumentsError:c}})}function i(a,c){return lh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Zp(),ma].filter(u=>!!u),issueData:{code:Q.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof vc){let a=this;return Cn(async function(...c){let u=new pi([]),l=await a._def.args.parseAsync(c,s).catch(h=>{throw u.addIssue(n(c,h)),u}),p=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(p,s).catch(h=>{throw u.addIssue(i(p,h)),u})})}else{let a=this;return Cn(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new pi([n(c,u.error)]);let l=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(l,s);if(!p.success)throw new pi([i(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_o.create(e).rest(ga.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||_o.create([]).rest(ga.create()),returns:r||ga.create(),typeName:Re.ZodFunction,...Ue(n)})}},Vu=class extends Ke{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Vu.create=(t,e)=>new Vu({getter:t,typeName:Re.ZodLazy,...Ue(e)});Hu=class extends Ke{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return ce(r,{received:r.data,code:Q.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:e.data}}get value(){return this._def.value}};Hu.create=(t,e)=>new Hu({value:t,typeName:Re.ZodLiteral,...Ue(e)});Ku=class t extends Ke{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return ce(r,{expected:tt.joinValues(n),received:r.parsedType,code:Q.invalid_type}),Pe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return ce(r,{received:r.data,code:Q.invalid_enum_value,options:n}),Pe}return Cn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};Ku.create=Cq;Wu=class extends Ke{_parse(e){let r=tt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==pe.string&&n.parsedType!==pe.number){let i=tt.objectValues(r);return ce(n,{expected:tt.joinValues(i),received:n.parsedType,code:Q.invalid_type}),Pe}if(this._cache||(this._cache=new Set(tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=tt.objectValues(r);return ce(n,{received:n.data,code:Q.invalid_enum_value,options:i}),Pe}return Cn(e.data)}get enum(){return this._def.values}};Wu.create=(t,e)=>new Wu({values:t,typeName:Re.ZodNativeEnum,...Ue(e)});vc=class extends Ke{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==pe.promise&&r.common.async===!1)return ce(r,{code:Q.invalid_type,expected:pe.promise,received:r.parsedType}),Pe;let n=r.parsedType===pe.promise?r.data:Promise.resolve(r.data);return Cn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};vc.create=(t,e)=>new vc({type:t,typeName:Re.ZodPromise,...Ue(e)});os=class extends Ke{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{ce(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pe;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?Pe:c.status==="dirty"?Mu(c.value):r.value==="dirty"?Mu(c.value):c});{if(r.value==="aborted")return Pe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Pe:a.status==="dirty"?Mu(a.value):r.value==="dirty"?Mu(a.value):a}}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!gc(o))return Pe;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>gc(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):Pe);tt.assertNever(i)}};os.create=(t,e,r)=>new os({schema:t,typeName:Re.ZodEffects,effect:e,...Ue(r)});os.createWithPreprocess=(t,e,r)=>new os({schema:e,effect:{type:"preprocess",transform:t},typeName:Re.ZodEffects,...Ue(r)});is=class extends Ke{_parse(e){return this._getType(e)===pe.undefined?Cn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};is.create=(t,e)=>new is({innerType:t,typeName:Re.ZodOptional,...Ue(e)});Po=class extends Ke{_parse(e){return this._getType(e)===pe.null?Cn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Po.create=(t,e)=>new Po({innerType:t,typeName:Re.ZodNullable,...Ue(e)});Ju=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===pe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ju.create=(t,e)=>new Ju({innerType:t,typeName:Re.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ue(e)});Yu=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Qp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new pi(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new pi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Yu.create=(t,e)=>new Yu({innerType:t,typeName:Re.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ue(e)});sd=class extends Ke{_parse(e){if(this._getType(e)!==pe.nan){let n=this._getOrReturnCtx(e);return ce(n,{code:Q.invalid_type,expected:pe.nan,received:n.parsedType}),Pe}return{status:"valid",value:e.data}}};sd.create=t=>new sd({typeName:Re.ZodNaN,...Ue(t)});dCe=Symbol("zod_brand"),ph=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},dh=class t extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Pe:s.status==="dirty"?(r.dirty(),Mu(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Pe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:Re.ZodPipeline})}},Xu=class extends Ke{_parse(e){let r=this._def.innerType._parse(e),n=i=>(gc(i)&&(i.value=Object.freeze(i.value)),i);return Qp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};Xu.create=(t,e)=>new Xu({innerType:t,typeName:Re.ZodReadonly,...Ue(e)});fCe={object:di.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Re||(Re={}));mCe=(t,e={message:`Input not instance of ${t.name}`})=>wq(r=>r instanceof t,e),Eq=yc.create,Sq=Bu.create,hCe=sd.create,gCe=Lu.create,Tq=$u.create,yCe=ju.create,bCe=td.create,vCe=Uu.create,xCe=qu.create,DCe=bc.create,CCe=ga.create,wCe=qs.create,ECe=rd.create,SCe=ya.create,TCe=di.create,ACe=di.strictCreate,_Ce=zu.create,PCe=hx.create,FCe=Gu.create,kCe=_o.create,ICe=gx.create,NCe=nd.create,RCe=id.create,OCe=yx.create,MCe=Vu.create,BCe=Hu.create,LCe=Ku.create,$Ce=Wu.create,jCe=vc.create,UCe=os.create,qCe=is.create,zCe=Po.create,GCe=os.createWithPreprocess,VCe=dh.create,HCe=()=>Eq().optional(),KCe=()=>Sq().optional(),WCe=()=>Tq().optional(),JCe={string:(t=>yc.create({...t,coerce:!0})),number:(t=>Bu.create({...t,coerce:!0})),boolean:(t=>$u.create({...t,coerce:!0})),bigint:(t=>Lu.create({...t,coerce:!0})),date:(t=>ju.create({...t,coerce:!0}))},YCe=Pe});var T={};dy(T,{BRAND:()=>dCe,DIRTY:()=>Mu,EMPTY_PATH:()=>GDe,INVALID:()=>Pe,NEVER:()=>YCe,OK:()=>Cn,ParseStatus:()=>cn,Schema:()=>Ke,ZodAny:()=>bc,ZodArray:()=>ya,ZodBigInt:()=>Lu,ZodBoolean:()=>$u,ZodBranded:()=>ph,ZodCatch:()=>Yu,ZodDate:()=>ju,ZodDefault:()=>Ju,ZodDiscriminatedUnion:()=>hx,ZodEffects:()=>os,ZodEnum:()=>Ku,ZodError:()=>pi,ZodFirstPartyTypeKind:()=>Re,ZodFunction:()=>yx,ZodIntersection:()=>Gu,ZodIssueCode:()=>Q,ZodLazy:()=>Vu,ZodLiteral:()=>Hu,ZodMap:()=>nd,ZodNaN:()=>sd,ZodNativeEnum:()=>Wu,ZodNever:()=>qs,ZodNull:()=>qu,ZodNullable:()=>Po,ZodNumber:()=>Bu,ZodObject:()=>di,ZodOptional:()=>is,ZodParsedType:()=>pe,ZodPipeline:()=>dh,ZodPromise:()=>vc,ZodReadonly:()=>Xu,ZodRecord:()=>gx,ZodSchema:()=>Ke,ZodSet:()=>id,ZodString:()=>yc,ZodSymbol:()=>td,ZodTransformer:()=>os,ZodTuple:()=>_o,ZodType:()=>Ke,ZodUndefined:()=>Uu,ZodUnion:()=>zu,ZodUnknown:()=>ga,ZodVoid:()=>rd,addIssueToContext:()=>ce,any:()=>DCe,array:()=>SCe,bigint:()=>gCe,boolean:()=>Tq,coerce:()=>JCe,custom:()=>wq,date:()=>yCe,datetimeRegex:()=>Dq,defaultErrorMap:()=>ma,discriminatedUnion:()=>PCe,effect:()=>UCe,enum:()=>LCe,function:()=>OCe,getErrorMap:()=>Zp,getParsedType:()=>Ao,instanceof:()=>mCe,intersection:()=>FCe,isAborted:()=>fx,isAsync:()=>Qp,isDirty:()=>mx,isValid:()=>gc,late:()=>fCe,lazy:()=>MCe,literal:()=>BCe,makeIssue:()=>lh,map:()=>NCe,nan:()=>hCe,nativeEnum:()=>$Ce,never:()=>wCe,null:()=>xCe,nullable:()=>zCe,number:()=>Sq,object:()=>TCe,objectUtil:()=>YA,oboolean:()=>WCe,onumber:()=>KCe,optional:()=>qCe,ostring:()=>HCe,pipeline:()=>VCe,preprocess:()=>GCe,promise:()=>jCe,quotelessJson:()=>UDe,record:()=>ICe,set:()=>RCe,setErrorMap:()=>zDe,strictObject:()=>ACe,string:()=>Eq,symbol:()=>bCe,transformer:()=>UCe,tuple:()=>kCe,undefined:()=>vCe,union:()=>_Ce,unknown:()=>CCe,util:()=>tt,void:()=>ECe});var t_=F(()=>{f();dx();ZA();hq();uh();Aq();px()});var _q=F(()=>{f();t_();t_()});var r_,Pq,bx,Fq,kq,XCe,us,fi,fh,Fo,ls,vx,Iq,Nq,Rq,Oq,Mq,n_,as,Bq,Lq,$q,Zu,xx,ZCe,mh,hh,jq,QCe,ewe,twe,i_,rwe,Dx,nwe,Cx,wx,Ex,Uq,qq,s_,zq,Gq,iwe,swe,o_,owe,a_,awe,c_,cwe,uwe,lwe,pwe,dwe,fwe,mwe,u_,hwe,l_,p_,d_,gwe,ywe,Vq,bwe,f_,vwe,xwe,Dwe,Cwe,m_,Sx,iot,wwe,Ewe,Hq,Swe,Twe,Awe,_we,Pwe,Fwe,kwe,Iwe,Nwe,Rwe,Owe,Mwe,Bwe,Lwe,$we,jwe,Uwe,h_,qwe,zwe,Gwe,Vwe,sot,oot,aot,cot,uot,lot,cs,Tx=F(()=>{f();_q();r_="2025-06-18",Pq=[r_,"2025-03-26","2024-11-05","2024-10-07"],bx="2.0",Fq=T.union([T.string(),T.number().int()]),kq=T.string(),XCe=T.object({progressToken:T.optional(Fq)}).passthrough(),us=T.object({_meta:T.optional(XCe)}).passthrough(),fi=T.object({method:T.string(),params:T.optional(us)}),fh=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),Fo=T.object({method:T.string(),params:T.optional(fh)}),ls=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),vx=T.union([T.string(),T.number().int()]),Iq=T.object({jsonrpc:T.literal(bx),id:vx}).merge(fi).strict(),Nq=t=>Iq.safeParse(t).success,Rq=T.object({jsonrpc:T.literal(bx)}).merge(Fo).strict(),Oq=t=>Rq.safeParse(t).success,Mq=T.object({jsonrpc:T.literal(bx),id:vx,result:ls}).strict(),n_=t=>Mq.safeParse(t).success;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"})(as||(as={}));Bq=T.object({jsonrpc:T.literal(bx),id:vx,error:T.object({code:T.number().int(),message:T.string(),data:T.optional(T.unknown())})}).strict(),Lq=t=>Bq.safeParse(t).success,$q=T.union([Iq,Rq,Mq,Bq]),Zu=ls.strict(),xx=Fo.extend({method:T.literal("notifications/cancelled"),params:fh.extend({requestId:vx,reason:T.string().optional()})}),ZCe=T.object({src:T.string(),mimeType:T.optional(T.string()),sizes:T.optional(T.array(T.string()))}).passthrough(),mh=T.object({icons:T.array(ZCe).optional()}).passthrough(),hh=T.object({name:T.string(),title:T.optional(T.string())}).passthrough(),jq=hh.extend({version:T.string(),websiteUrl:T.optional(T.string())}).merge(mh),QCe=T.object({experimental:T.optional(T.object({}).passthrough()),sampling:T.optional(T.object({}).passthrough()),elicitation:T.optional(T.object({}).passthrough()),roots:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),ewe=fi.extend({method:T.literal("initialize"),params:us.extend({protocolVersion:T.string(),capabilities:QCe,clientInfo:jq})}),twe=T.object({experimental:T.optional(T.object({}).passthrough()),logging:T.optional(T.object({}).passthrough()),completions:T.optional(T.object({}).passthrough()),prompts:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough()),resources:T.optional(T.object({subscribe:T.optional(T.boolean()),listChanged:T.optional(T.boolean())}).passthrough()),tools:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),i_=ls.extend({protocolVersion:T.string(),capabilities:twe,serverInfo:jq,instructions:T.optional(T.string())}),rwe=Fo.extend({method:T.literal("notifications/initialized")}),Dx=fi.extend({method:T.literal("ping")}),nwe=T.object({progress:T.number(),total:T.optional(T.number()),message:T.optional(T.string())}).passthrough(),Cx=Fo.extend({method:T.literal("notifications/progress"),params:fh.merge(nwe).extend({progressToken:Fq})}),wx=fi.extend({params:us.extend({cursor:T.optional(kq)}).optional()}),Ex=ls.extend({nextCursor:T.optional(kq)}),Uq=T.object({uri:T.string(),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),qq=Uq.extend({text:T.string()}),s_=T.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),zq=Uq.extend({blob:s_}),Gq=hh.extend({uri:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(mh),iwe=hh.extend({uriTemplate:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(mh),swe=wx.extend({method:T.literal("resources/list")}),o_=Ex.extend({resources:T.array(Gq)}),owe=wx.extend({method:T.literal("resources/templates/list")}),a_=Ex.extend({resourceTemplates:T.array(iwe)}),awe=fi.extend({method:T.literal("resources/read"),params:us.extend({uri:T.string()})}),c_=ls.extend({contents:T.array(T.union([qq,zq]))}),cwe=Fo.extend({method:T.literal("notifications/resources/list_changed")}),uwe=fi.extend({method:T.literal("resources/subscribe"),params:us.extend({uri:T.string()})}),lwe=fi.extend({method:T.literal("resources/unsubscribe"),params:us.extend({uri:T.string()})}),pwe=Fo.extend({method:T.literal("notifications/resources/updated"),params:fh.extend({uri:T.string()})}),dwe=T.object({name:T.string(),description:T.optional(T.string()),required:T.optional(T.boolean())}).passthrough(),fwe=hh.extend({description:T.optional(T.string()),arguments:T.optional(T.array(dwe)),_meta:T.optional(T.object({}).passthrough())}).merge(mh),mwe=wx.extend({method:T.literal("prompts/list")}),u_=Ex.extend({prompts:T.array(fwe)}),hwe=fi.extend({method:T.literal("prompts/get"),params:us.extend({name:T.string(),arguments:T.optional(T.record(T.string()))})}),l_=T.object({type:T.literal("text"),text:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),p_=T.object({type:T.literal("image"),data:s_,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),d_=T.object({type:T.literal("audio"),data:s_,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),gwe=T.object({type:T.literal("resource"),resource:T.union([qq,zq]),_meta:T.optional(T.object({}).passthrough())}).passthrough(),ywe=Gq.extend({type:T.literal("resource_link")}),Vq=T.union([l_,p_,d_,ywe,gwe]),bwe=T.object({role:T.enum(["user","assistant"]),content:Vq}).passthrough(),f_=ls.extend({description:T.optional(T.string()),messages:T.array(bwe)}),vwe=Fo.extend({method:T.literal("notifications/prompts/list_changed")}),xwe=T.object({title:T.optional(T.string()),readOnlyHint:T.optional(T.boolean()),destructiveHint:T.optional(T.boolean()),idempotentHint:T.optional(T.boolean()),openWorldHint:T.optional(T.boolean())}).passthrough(),Dwe=hh.extend({description:T.optional(T.string()),inputSchema:T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough(),outputSchema:T.optional(T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough()),annotations:T.optional(xwe),_meta:T.optional(T.object({}).passthrough())}).merge(mh),Cwe=wx.extend({method:T.literal("tools/list")}),m_=Ex.extend({tools:T.array(Dwe)}),Sx=ls.extend({content:T.array(Vq).default([]),structuredContent:T.object({}).passthrough().optional(),isError:T.optional(T.boolean())}),iot=Sx.or(ls.extend({toolResult:T.unknown()})),wwe=fi.extend({method:T.literal("tools/call"),params:us.extend({name:T.string(),arguments:T.optional(T.record(T.unknown()))})}),Ewe=Fo.extend({method:T.literal("notifications/tools/list_changed")}),Hq=T.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),Swe=fi.extend({method:T.literal("logging/setLevel"),params:us.extend({level:Hq})}),Twe=Fo.extend({method:T.literal("notifications/message"),params:fh.extend({level:Hq,logger:T.optional(T.string()),data:T.unknown()})}),Awe=T.object({name:T.string().optional()}).passthrough(),_we=T.object({hints:T.optional(T.array(Awe)),costPriority:T.optional(T.number().min(0).max(1)),speedPriority:T.optional(T.number().min(0).max(1)),intelligencePriority:T.optional(T.number().min(0).max(1))}).passthrough(),Pwe=T.object({role:T.enum(["user","assistant"]),content:T.union([l_,p_,d_])}).passthrough(),Fwe=fi.extend({method:T.literal("sampling/createMessage"),params:us.extend({messages:T.array(Pwe),systemPrompt:T.optional(T.string()),includeContext:T.optional(T.enum(["none","thisServer","allServers"])),temperature:T.optional(T.number()),maxTokens:T.number().int(),stopSequences:T.optional(T.array(T.string())),metadata:T.optional(T.object({}).passthrough()),modelPreferences:T.optional(_we)})}),kwe=ls.extend({model:T.string(),stopReason:T.optional(T.enum(["endTurn","stopSequence","maxTokens"]).or(T.string())),role:T.enum(["user","assistant"]),content:T.discriminatedUnion("type",[l_,p_,d_])}),Iwe=T.object({type:T.literal("boolean"),title:T.optional(T.string()),description:T.optional(T.string()),default:T.optional(T.boolean())}).passthrough(),Nwe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),minLength:T.optional(T.number()),maxLength:T.optional(T.number()),format:T.optional(T.enum(["email","uri","date","date-time"]))}).passthrough(),Rwe=T.object({type:T.enum(["number","integer"]),title:T.optional(T.string()),description:T.optional(T.string()),minimum:T.optional(T.number()),maximum:T.optional(T.number())}).passthrough(),Owe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),enum:T.array(T.string()),enumNames:T.optional(T.array(T.string()))}).passthrough(),Mwe=T.union([Iwe,Nwe,Rwe,Owe]),Bwe=fi.extend({method:T.literal("elicitation/create"),params:us.extend({message:T.string(),requestedSchema:T.object({type:T.literal("object"),properties:T.record(T.string(),Mwe),required:T.optional(T.array(T.string()))}).passthrough()})}),Lwe=ls.extend({action:T.enum(["accept","decline","cancel"]),content:T.optional(T.record(T.string(),T.unknown()))}),$we=T.object({type:T.literal("ref/resource"),uri:T.string()}).passthrough(),jwe=T.object({type:T.literal("ref/prompt"),name:T.string()}).passthrough(),Uwe=fi.extend({method:T.literal("completion/complete"),params:us.extend({ref:T.union([jwe,$we]),argument:T.object({name:T.string(),value:T.string()}).passthrough(),context:T.optional(T.object({arguments:T.optional(T.record(T.string(),T.string()))}))})}),h_=ls.extend({completion:T.object({values:T.array(T.string()).max(100),total:T.optional(T.number().int()),hasMore:T.optional(T.boolean())}).passthrough()}),qwe=T.object({uri:T.string().startsWith("file://"),name:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),zwe=fi.extend({method:T.literal("roots/list")}),Gwe=ls.extend({roots:T.array(qwe)}),Vwe=Fo.extend({method:T.literal("notifications/roots/list_changed")}),sot=T.union([Dx,ewe,Uwe,Swe,hwe,mwe,swe,owe,awe,uwe,lwe,wwe,Cwe]),oot=T.union([xx,Cx,rwe,Vwe]),aot=T.union([Zu,kwe,Lwe,Gwe]),cot=T.union([Dx,Fwe,Bwe,zwe]),uot=T.union([xx,Cx,Twe,pwe,cwe,Ewe,vwe]),lot=T.union([Zu,i_,h_,f_,u_,o_,a_,c_,Sx,m_]),cs=class extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}}});function Kq(t,e){return Object.entries(e).reduce((r,[n,i])=>(i&&typeof i=="object"?r[n]=r[n]?{...r[n],...i}:i:r[n]=i,r),{...t})}var Hwe,Ax,Wq=F(()=>{f();Tx();Hwe=6e4,Ax=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(xx,r=>{let n=this._requestHandlerAbortControllers.get(r.params.requestId);n?.abort(r.params.reason)}),this.setNotificationHandler(Cx,r=>{this._onprogress(r)}),this.setRequestHandler(Dx,r=>({}))}_setupTimeout(e,r,n,i,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:s,onTimeout:i})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),new cs(as.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var r,n,i;this._transport=e;let s=(r=this.transport)===null||r===void 0?void 0:r.onclose;this._transport.onclose=()=>{s?.(),this._onclose()};let o=(n=this.transport)===null||n===void 0?void 0:n.onerror;this._transport.onerror=c=>{o?.(c),this._onerror(c)};let a=(i=this._transport)===null||i===void 0?void 0:i.onmessage;this._transport.onmessage=(c,u)=>{a?.(c,u),n_(c)||Lq(c)?this._onresponse(c):Nq(c)?this._onrequest(c,u):Oq(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var e;let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(e=this.onclose)===null||e===void 0||e.call(this);let n=new cs(as.ConnectionClosed,"Connection closed");for(let i of r.values())i(n)}_onerror(e){var r;(r=this.onerror)===null||r===void 0||r.call(this,e)}_onnotification(e){var r;let n=(r=this._notificationHandlers.get(e.method))!==null&&r!==void 0?r:this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(e)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(e,r){var n,i;let s=(n=this._requestHandlers.get(e.method))!==null&&n!==void 0?n:this.fallbackRequestHandler,o=this._transport;if(s===void 0){o?.send({jsonrpc:"2.0",id:e.id,error:{code:as.MethodNotFound,message:"Method not found"}}).catch(u=>this._onerror(new Error(`Failed to send an error response: ${u}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let c={signal:a.signal,sessionId:o?.sessionId,_meta:(i=e.params)===null||i===void 0?void 0:i._meta,sendNotification:u=>this.notification(u,{relatedRequestId:e.id}),sendRequest:(u,l,p)=>this.request(u,l,{...p,relatedRequestId:e.id}),authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo};Promise.resolve().then(()=>s(e,c)).then(u=>{if(!a.signal.aborted)return o?.send({result:u,jsonrpc:"2.0",id:e.id})},u=>{var l;if(!a.signal.aborted)return o?.send({jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:as.InternalError,message:(l=u.message)!==null&&l!==void 0?l:"Internal error"}})}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,i=Number(r),s=this._progressHandlers.get(i);if(!s){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(c){o(c);return}s(n)}_onresponse(e){let r=Number(e.id),n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}if(this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),n_(e))n(e);else{let i=new cs(e.error.code,e.error.message,e.error.data);n(i)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)===null||e===void 0?void 0:e.close())}request(e,r,n){let{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}=n??{};return new Promise((a,c)=>{var u,l,p,d,h,m;if(!this._transport){c(new Error("Not connected"));return}((u=this._options)===null||u===void 0?void 0:u.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(e.method),(l=n?.signal)===null||l===void 0||l.throwIfAborted();let g=this._requestMessageId++,y={...e,jsonrpc:"2.0",id:g};n?.onprogress&&(this._progressHandlers.set(g,n.onprogress),y.params={...e.params,_meta:{...((p=e.params)===null||p===void 0?void 0:p._meta)||{},progressToken:g}});let b=x=>{var v;this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),(v=this._transport)===null||v===void 0||v.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(x)}},{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(w=>this._onerror(new Error(`Failed to send cancellation: ${w}`))),c(x)};this._responseHandlers.set(g,x=>{var v;if(!(!((v=n?.signal)===null||v===void 0)&&v.aborted)){if(x instanceof Error)return c(x);try{let w=r.parse(x.result);a(w)}catch(w){c(w)}}}),(d=n?.signal)===null||d===void 0||d.addEventListener("abort",()=>{var x;b((x=n?.signal)===null||x===void 0?void 0:x.reason)});let D=(h=n?.timeout)!==null&&h!==void 0?h:Hwe,C=()=>b(new cs(as.RequestTimeout,"Request timed out",{timeout:D}));this._setupTimeout(g,D,n?.maxTotalTimeout,C,(m=n?.resetTimeoutOnProgress)!==null&&m!==void 0?m:!1),this._transport.send(y,{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(g),c(x)})})}async notification(e,r){var n,i;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(e.method),((i=(n=this._options)===null||n===void 0?void 0:n.debouncedNotificationMethods)!==null&&i!==void 0?i:[]).includes(e.method)&&!e.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var c;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let u={...e,jsonrpc:"2.0"};(c=this._transport)===null||c===void 0||c.send(u,r).catch(l=>this._onerror(l))});return}let a={...e,jsonrpc:"2.0"};await this._transport.send(a,r)}setRequestHandler(e,r){let n=e.shape.method.value;this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,s)=>Promise.resolve(r(e.parse(i),s)))}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){this._notificationHandlers.set(e.shape.method.value,n=>Promise.resolve(r(e.parse(n))))}removeNotificationHandler(e){this._notificationHandlers.delete(e)}}});var bh=E(bt=>{"use strict";f();Object.defineProperty(bt,"__esModule",{value:!0});bt.regexpCode=bt.getEsmExportName=bt.getProperty=bt.safeStringify=bt.stringify=bt.strConcat=bt.addCodeArg=bt.str=bt._=bt.nil=bt._Code=bt.Name=bt.IDENTIFIER=bt._CodeOrName=void 0;var gh=class{};bt._CodeOrName=gh;bt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Qu=class extends gh{constructor(e){if(super(),!bt.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};bt.Name=Qu;var ps=class extends gh{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Qu&&(r[n.str]=(r[n.str]||0)+1),r),{})}};bt._Code=ps;bt.nil=new ps("");function Jq(t,...e){let r=[t[0]],n=0;for(;n<e.length;)y_(r,e[n]),r.push(t[++n]);return new ps(r)}bt._=Jq;var g_=new ps("+");function Yq(t,...e){let r=[yh(t[0])],n=0;for(;n<e.length;)r.push(g_),y_(r,e[n]),r.push(g_,yh(t[++n]));return Kwe(r),new ps(r)}bt.str=Yq;function y_(t,e){e instanceof ps?t.push(...e._items):e instanceof Qu?t.push(e):t.push(Ywe(e))}bt.addCodeArg=y_;function Kwe(t){let e=1;for(;e<t.length-1;){if(t[e]===g_){let r=Wwe(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Wwe(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Qu||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Qu))return`"${t}${e.slice(1)}`}function Jwe(t,e){return e.emptyStr()?t:t.emptyStr()?e:Yq`${t}${e}`}bt.strConcat=Jwe;function Ywe(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:yh(Array.isArray(t)?t.join(","):t)}function Xwe(t){return new ps(yh(t))}bt.stringify=Xwe;function yh(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}bt.safeStringify=yh;function Zwe(t){return typeof t=="string"&&bt.IDENTIFIER.test(t)?new ps(`.${t}`):Jq`[${t}]`}bt.getProperty=Zwe;function Qwe(t){if(typeof t=="string"&&bt.IDENTIFIER.test(t))return new ps(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}bt.getEsmExportName=Qwe;function eEe(t){return new ps(t.toString())}bt.regexpCode=eEe});var x_=E(hi=>{"use strict";f();Object.defineProperty(hi,"__esModule",{value:!0});hi.ValueScope=hi.ValueScopeName=hi.Scope=hi.varKinds=hi.UsedValueState=void 0;var mi=bh(),b_=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},_x;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(_x||(hi.UsedValueState=_x={}));hi.varKinds={const:new mi.Name("const"),let:new mi.Name("let"),var:new mi.Name("var")};var Px=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof mi.Name?e:this.name(e)}name(e){return new mi.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};hi.Scope=Px;var Fx=class extends mi.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,mi._)`.${new mi.Name(r)}[${n}]`}};hi.ValueScopeName=Fx;var tEe=(0,mi._)`\n`,v_=class extends Px{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?tEe:mi.nil}}get(){return this._scope}name(e){return new Fx(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:s}=i,o=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let l=a.get(o);if(l)return l}else a=this._values[s]=new Map;a.set(o,i);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,i.setValue(r,{property:s,itemIndex:u}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,mi._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=mi.nil;for(let o in e){let a=e[o];if(!a)continue;let c=n[o]=n[o]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,_x.Started);let l=r(u);if(l){let p=this.opts.es5?hi.varKinds.var:hi.varKinds.const;s=(0,mi._)`${s}${p} ${u} = ${l};${this.opts._n}`}else if(l=i?.(u))s=(0,mi._)`${s}${l}${this.opts._n}`;else throw new b_(u);c.set(u,_x.Completed)})}return s}};hi.ValueScope=v_});var We=E(Xe=>{"use strict";f();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.or=Xe.and=Xe.not=Xe.CodeGen=Xe.operators=Xe.varKinds=Xe.ValueScopeName=Xe.ValueScope=Xe.Scope=Xe.Name=Xe.regexpCode=Xe.stringify=Xe.getProperty=Xe.nil=Xe.strConcat=Xe.str=Xe._=void 0;var lt=bh(),zs=x_(),xc=bh();Object.defineProperty(Xe,"_",{enumerable:!0,get:function(){return xc._}});Object.defineProperty(Xe,"str",{enumerable:!0,get:function(){return xc.str}});Object.defineProperty(Xe,"strConcat",{enumerable:!0,get:function(){return xc.strConcat}});Object.defineProperty(Xe,"nil",{enumerable:!0,get:function(){return xc.nil}});Object.defineProperty(Xe,"getProperty",{enumerable:!0,get:function(){return xc.getProperty}});Object.defineProperty(Xe,"stringify",{enumerable:!0,get:function(){return xc.stringify}});Object.defineProperty(Xe,"regexpCode",{enumerable:!0,get:function(){return xc.regexpCode}});Object.defineProperty(Xe,"Name",{enumerable:!0,get:function(){return xc.Name}});var Rx=x_();Object.defineProperty(Xe,"Scope",{enumerable:!0,get:function(){return Rx.Scope}});Object.defineProperty(Xe,"ValueScope",{enumerable:!0,get:function(){return Rx.ValueScope}});Object.defineProperty(Xe,"ValueScopeName",{enumerable:!0,get:function(){return Rx.ValueScopeName}});Object.defineProperty(Xe,"varKinds",{enumerable:!0,get:function(){return Rx.varKinds}});Xe.operators={GT:new lt._Code(">"),GTE:new lt._Code(">="),LT:new lt._Code("<"),LTE:new lt._Code("<="),EQ:new lt._Code("==="),NEQ:new lt._Code("!=="),NOT:new lt._Code("!"),OR:new lt._Code("||"),AND:new lt._Code("&&"),ADD:new lt._Code("+")};var ba=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},D_=class extends ba{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?zs.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ad(this.rhs,e,r)),this}get names(){return this.rhs instanceof lt._CodeOrName?this.rhs.names:{}}},kx=class extends ba{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof lt.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ad(this.rhs,e,r),this}get names(){let e=this.lhs instanceof lt.Name?{}:{...this.lhs.names};return Nx(e,this.rhs)}},C_=class extends kx{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},w_=class extends ba{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},E_=class extends ba{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},S_=class extends ba{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},T_=class extends ba{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ad(this.code,e,r),this}get names(){return this.code instanceof lt._CodeOrName?this.code.names:{}}},vh=class extends ba{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(e,r)||(rEe(e,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>rl(e,r.names),{})}},va=class extends vh{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},A_=class extends vh{},od=class extends va{};od.kind="else";var el=class t extends va{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new od(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Xq(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ad(this.condition,e,r),this}get names(){let e=super.names;return Nx(e,this.condition),this.else&&rl(e,this.else.names),e}};el.kind="if";var tl=class extends va{};tl.kind="for";var __=class extends tl{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ad(this.iteration,e,r),this}get names(){return rl(super.names,this.iteration.names)}},P_=class extends tl{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?zs.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=Nx(super.names,this.from);return Nx(e,this.to)}},Ix=class extends tl{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ad(this.iterable,e,r),this}get names(){return rl(super.names,this.iterable.names)}},xh=class extends va{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};xh.kind="func";var Dh=class extends vh{render(e){return"return "+super.render(e)}};Dh.kind="return";var F_=class extends va{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&rl(e,this.catch.names),this.finally&&rl(e,this.finally.names),e}},Ch=class extends va{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Ch.kind="catch";var wh=class extends va{render(e){return"finally"+super.render(e)}};wh.kind="finally";var k_=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
1924
|
+
- ${o.file_path}${o.offset?`:${o.offset+1}`:""}${o.offset&&o.limit?`-${o.limit+o.offset+1}`:""}${o.relevance?` (relevance: ${o.relevance})`:""}`}return{isError:!1,toolResult:s,title:"Agent Task Completed"}}catch(i){return{isError:!0,toolResult:`Agent task failed: ${i instanceof Error?i.message:String(i)}`,title:"Agent Task Failed"}}}}function cx(){let t=new Error("AbortError");return t.name="AbortError",t}var KA,FDe,kDe,rq=F(()=>{"use strict";f();Vv();Vv();cA();PU();dc();IU();Pm();pA();ax();oh();KA=U(require("@sentry/node"),1);Gm();Ln();FDe=["!**/.git/**","!**/.hg/**","!**/.svn/**","!**/.DS_Store","!**/.idea/**","!**/.vscode/**","!**/.cache/**","!**/coverage/**","!**/node_modules/**","!**/dist/**","!**/*.tsbuildinfo","!**/package-lock.json","!**/yarn.lock","!**/pnpm-lock.yaml","!**/*.min.js","!**/*.min.css","!**/*.bundle.js","!**/*.chunk.js","!**/builder-registry.*","!**/*.bundle.css","!**/*.map","!**/vendor/**","!**/target/**","!**/__pycache__/**","!**/*.pyc","!**/*.pyo","!**/*.class","!**/*.jar","!**/build/**/*.gradle","!**/*.lock","!**/*.log","!**/*.o","!**/*.a","!**/*.so","!**/*.dylib","!**/*.dll","!**/*.exe","!**/*.zip","!**/*.tar","!**/*.tar.gz","!**/*.tgz","!**/*.7z","!**/*.rar","!**/*.png","!**/*.jpg","!**/*.jpeg","!**/*.gif","!**/*.svg","!**/*.ico","!**/*.webp","!**/*.mp4","!**/*.mp3"],kDe=t=>{let e=["{","(","["],r=["}",")","]"],n=[],i=[],s=new Map([["{","}"],["(",")"],["[","]"]]);for(let o=0;o<=t.length-1;o++){let a=t[o];t[o-1]==="\\"&&t[o-2]!=="\\"||(e.includes(a)?n.push({location:o,value:a}):r.includes(a)&&i.push({location:o,value:a}))}for(let o of n){let{location:a,value:c}=o,u=i.findIndex(l=>l.location>a&&l.value===s.get(c));if(u>-1)i.splice(u,1);else return!0}return i.length>0}});function WA(t){if(t)return LDe[t.toLowerCase()]??t}function nq(t,e){try{if(!t||!t.trim())return null;let r=Lv(t);if(!r.frontmatter||Object.keys(r.frontmatter).length===0)return{name:ah.default.basename(e,ah.default.extname(e)),systemPrompt:r.body||t.trim(),filePath:e};let n=r.body;if(!n)return null;let i=r.frontmatter.name||ah.default.basename(e,ah.default.extname(e)),s;r.frontmatter.tools&&(Array.isArray(r.frontmatter.tools)?s=r.frontmatter.tools.map(c=>c.trim()):typeof r.frontmatter.tools=="string"&&(s=r.frontmatter.tools.split(",").map(c=>c.trim())));let o=r.frontmatter.model?WA(r.frontmatter.model):void 0,a=r.frontmatter.mode;return{name:i,description:r.frontmatter.description,systemPrompt:n,tools:s,model:o,mode:a,filePath:e}}catch{return null}}var ah,LDe,JA=F(()=>{"use strict";f();ah=U(require("node:path"),1);qT();LDe={sonnet:"acs45","sonnet-4":"acs4",opus:"aco41",haiku:"ach351022",gpt5:"opa5","gpt5-codex":"opa5c.acs4",codex:"opa5c.acs4","gpt5-codex-mini":"opa5c-mini","gpt5-mini":"opa5-mini","gpt5-nano":"opa5-nano"}});async function iq(t,e,r,n=""){let i=[];try{if(!await t.exists(e))return i;let s=await t.readdir(e);for(let o of s){let a=t.join(e,o),c=await t.stat(a).catch(()=>null);if(c)if(c.isDirectory()){let u=n?`${n}/${o}`:o,l=await iq(t,a,r,u);i.push(...l)}else(o.endsWith(".mdc")||o.endsWith(".md")||o.endsWith(".yml")||o.endsWith(".yaml"))&&i.push(a)}}catch{}return i}async function $De(t,e,r){try{if(!(await t.stat(e).catch(()=>null))?.isFile())return null;let i=await t.readFile(e);if(!i)return null;let s=t.relative(r,e);return nq(i,s)}catch(n){return t.Sentry?.captureException(n),null}}async function sq({sys:t,projectDir:e,currentDir:r,rootDir:n}){let i=[],s=[".claude/agents",".builder/agents",".cursor/agents"],o;do{try{for(let a of s){let c=t.resolve(r,a);if(await t.exists(c)){let u=await iq(t,c,c);for(let l of u){let p=await $De(t,l,e);p&&i.push(p)}}}}catch(a){console.debug(`Error reading ${r}:`,a)}if(o=r,r=t.dirname(r),r===o)break}while(o!==n);return i}var oq=F(()=>{"use strict";f();JA()});function ux(t){if(!t)return;let e=structuredClone(t);return e.privacyMode?.encryptKey&&(e.privacyMode.encryptKey="*****"),e}function jDe(t){if(t.startsWith("ai/")){let e=t.split("/");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("/");return{sessionId:r,featureBranch:n}}else if(t.startsWith("ai_")){let e=t.split("_");if(e.length<3)return{sessionId:void 0,featureBranch:t};let r=e.pop();e.shift();let n=e.join("_");return{sessionId:r,featureBranch:n}}return{sessionId:void 0,featureBranch:t}}function lq(t,e){return`ai_${t}_${e}`.trim()}var aq,cq,uq,lx,ch=F(()=>{"use strict";f();aq=U(require("path"),1);cq=()=>process.env.FLY_APP_NAME!==void 0,uq=t=>aq.default.resolve(process.cwd(),t.workingDirectory??".");lx=async({sys:t,gitWorkingDirectory:e,strict:r})=>{let n=await t.getRepoInfo(e);if(!n.hasGit)throw new Error("Git is not initialized");let i=n.currentBranch,s=jDe(i);if(r&&s.featureBranch===""&&i.startsWith("ai__"))throw new Error("AI branch is corrupted");return{currentBranch:i,featureBranch:s.featureBranch,sessionId:s.sessionId}}});function pq(t){let{filePath:e,forceWorkspace:r=!1,workspace:n,workingDirectory:i,sys:s,canCollapseWorkspace:o}=t,a=e;if(a.startsWith("/")?a=a.substring(1):a.startsWith("./")&&(a=a.substring(2)),!n?.folders?.length)return{resolvedPath:s.resolve(i,a)};if(n.folders.length===1&&n.folders[0].name==="."||o){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}let u=a.indexOf("/");if(u===-1){if(r){let m=n.folders[0],g=s.resolve(i,m.path);return{resolvedPath:s.resolve(g,a),workspaceFolder:m}}return{resolvedPath:s.resolve(i,a)}}let l=a.substring(0,u),p=a.substring(u+1),d=n.folders.find(m=>m.name?m.name===l:s.basename(m.path)===l);if(!d){if(!r)return{resolvedPath:s.resolve(i,a)};d=n.folders[0];let m=s.resolve(i,d.path);return{resolvedPath:s.resolve(m,a),workspaceFolder:d}}let h=s.resolve(i,d.path);return{resolvedPath:s.resolve(h,p),workspaceFolder:d}}function dq(t){let{absolutePath:e,workspace:r,workingDirectory:n,sys:i,canCollapseWorkspace:s}=t;if(!r?.folders?.length)return;let o=i.resolve(e);if(r.folders.length===1&&r.folders[0].name==="."){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}if(s&&r.folders.length===1){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}for(let c of r.folders){let u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);l.startsWith("/")&&(l=l.substring(1));let p=c.name||i.basename(c.path);if(p==="."&&r.folders.length>1)continue;return l?`${p}/${l}`:p}}if(s&&r.folders.length>0){let c=r.folders[0],u=i.resolve(n,c.path);if(o.startsWith(u)){let l=o.substring(u.length);return l.startsWith("/")&&(l=l.substring(1)),l}}}var fq=F(()=>{"use strict";f()});var tt,YA,le,Ao,uh=F(()=>{f();(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(tt||(tt={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(YA||(YA={}));le=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ao=t=>{switch(typeof t){case"undefined":return le.undefined;case"string":return le.string;case"number":return Number.isNaN(t)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(t)?le.array:t===null?le.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?le.promise:typeof Map<"u"&&t instanceof Map?le.map:typeof Set<"u"&&t instanceof Set?le.set:typeof Date<"u"&&t instanceof Date?le.date:le.object;default:return le.unknown}}});var Q,UDe,pi,px=F(()=>{f();uh();Q=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),UDe=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),pi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)if(i.path.length>0){let s=i.path[0];r[s]=r[s]||[],r[s].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};pi.create=t=>new pi(t)});var qDe,ma,XA=F(()=>{f();px();uh();qDe=(t,e)=>{let r;switch(t.code){case Q.invalid_type:t.received===le.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case Q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,tt.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:r=`Unrecognized key(s) in object: ${tt.joinValues(t.keys,", ")}`;break;case Q.invalid_union:r="Invalid input";break;case Q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tt.joinValues(t.options)}`;break;case Q.invalid_enum_value:r=`Invalid enum value. Expected ${tt.joinValues(t.options)}, received '${t.received}'`;break;case Q.invalid_arguments:r="Invalid function arguments";break;case Q.invalid_return_type:r="Invalid function return type";break;case Q.invalid_date:r="Invalid date";break;case Q.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:tt.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case Q.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case Q.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case Q.custom:r="Invalid input";break;case Q.invalid_intersection_types:r="Intersection results could not be merged";break;case Q.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case Q.not_finite:r="Number must be finite";break;default:r=e.defaultError,tt.assertNever(t)}return{message:r}},ma=qDe});function zDe(t){mq=t}function Zp(){return mq}var mq,dx=F(()=>{f();XA();mq=ma});function ue(t,e){let r=Zp(),n=lh({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===ma?void 0:ma].filter(i=>!!i)});t.common.issues.push(n)}var lh,GDe,cn,Pe,Mu,Cn,fx,mx,gc,Qp,ZA=F(()=>{f();dx();XA();lh=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:a}},GDe=[];cn=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return Pe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Pe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},Pe=Object.freeze({status:"aborted"}),Mu=t=>({status:"dirty",value:t}),Cn=t=>({status:"valid",value:t}),fx=t=>t.status==="aborted",mx=t=>t.status==="dirty",gc=t=>t.status==="valid",Qp=t=>typeof Promise<"u"&&t instanceof Promise});var hq=F(()=>{f()});var ye,gq=F(()=>{f();(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(ye||(ye={}))});function Ue(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:i}}function xq(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function aCe(t){return new RegExp(`^${xq(t)}$`)}function Dq(t){let e=`${vq}T${xq(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function cCe(t,e){return!!((e==="v4"||!e)&&eCe.test(t)||(e==="v6"||!e)&&rCe.test(t))}function uCe(t,e){if(!YDe.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function lCe(t,e){return!!((e==="v4"||!e)&&tCe.test(t)||(e==="v6"||!e)&&nCe.test(t))}function pCe(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=Number.parseInt(t.toFixed(i).replace(".","")),o=Number.parseInt(e.toFixed(i).replace(".",""));return s%o/10**i}function ed(t){if(t instanceof di){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=is.create(ed(n))}return new di({...t._def,shape:()=>e})}else return t instanceof ya?new ya({...t._def,type:ed(t.element)}):t instanceof is?is.create(ed(t.unwrap())):t instanceof Po?Po.create(ed(t.unwrap())):t instanceof _o?_o.create(t.items.map(e=>ed(e))):t}function e_(t,e){let r=Ao(t),n=Ao(e);if(t===e)return{valid:!0,data:t};if(r===le.object&&n===le.object){let i=tt.objectKeys(e),s=tt.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=e_(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===le.array&&n===le.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=e_(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===le.date&&n===le.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function Cq(t,e){return new Ku({values:t,typeName:Re.ZodEnum,...Ue(e)})}function bq(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function wq(t,e={},r){return t?bc.create().superRefine((n,i)=>{let s=t(n);if(s instanceof Promise)return s.then(o=>{if(!o){let a=bq(e,n),c=a.fatal??r??!0;i.addIssue({code:"custom",...a,fatal:c})}});if(!s){let o=bq(e,n),a=o.fatal??r??!0;i.addIssue({code:"custom",...o,fatal:a})}}):bc.create()}var ss,yq,Ke,VDe,HDe,KDe,WDe,JDe,YDe,XDe,ZDe,QDe,QA,eCe,tCe,rCe,nCe,iCe,sCe,vq,oCe,yc,Bu,Lu,$u,ju,td,Uu,qu,bc,ga,qs,rd,ya,di,zu,ha,hx,Gu,_o,gx,nd,id,yx,Vu,Hu,Ku,Wu,vc,os,is,Po,Ju,Yu,sd,dCe,ph,dh,Xu,fCe,Re,mCe,Eq,Sq,hCe,gCe,Tq,yCe,bCe,vCe,xCe,DCe,CCe,wCe,ECe,SCe,TCe,ACe,_Ce,PCe,FCe,kCe,ICe,NCe,RCe,OCe,MCe,BCe,LCe,$Ce,jCe,UCe,qCe,zCe,GCe,VCe,HCe,KCe,WCe,JCe,YCe,Aq=F(()=>{f();px();dx();gq();ZA();uh();ss=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},yq=(t,e)=>{if(gc(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new pi(t.common.issues);return this._error=r,this._error}}};Ke=class{get description(){return this._def.description}_getType(e){return Ao(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ao(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new cn,ctx:{common:e.parent.common,data:e.data,parsedType:Ao(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Qp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ao(e)},i=this._parseSync({data:e,path:n.path,parent:n});return yq(n,i)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ao(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:r});return gc(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>gc(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ao(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Qp(i)?i:Promise.resolve(i));return yq(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:Q.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new os({schema:this,typeName:Re.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return is.create(this,this._def)}nullable(){return Po.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ya.create(this)}promise(){return vc.create(this,this._def)}or(e){return zu.create([this,e],this._def)}and(e){return Gu.create(this,e,this._def)}transform(e){return new os({...Ue(this._def),schema:this,typeName:Re.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ju({...Ue(this._def),innerType:this,defaultValue:r,typeName:Re.ZodDefault})}brand(){return new ph({typeName:Re.ZodBranded,type:this,...Ue(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Yu({...Ue(this._def),innerType:this,catchValue:r,typeName:Re.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return dh.create(this,e)}readonly(){return Xu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},VDe=/^c[^\s-]{8,}$/i,HDe=/^[0-9a-z]+$/,KDe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,WDe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,JDe=/^[a-z0-9_-]{21}$/i,YDe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,XDe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ZDe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,QDe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",eCe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tCe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rCe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nCe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iCe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sCe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vq="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",oCe=new RegExp(`^${vq}$`);yc=class t extends Ke{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==le.string){let s=this._getOrReturnCtx(e);return ue(s,{code:Q.invalid_type,expected:le.string,received:s.parsedType}),Pe}let n=new cn,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?ue(i,{code:Q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ue(i,{code:Q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")ZDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"email",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")QA||(QA=new RegExp(QDe,"u")),QA.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"emoji",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")WDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"uuid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")JDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"nanoid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")VDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cuid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")HDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cuid2",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")KDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"ulid",code:Q.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ue(i,{validation:"url",code:Q.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"regex",code:Q.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?Dq(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?oCe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?aCe(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?XDe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"duration",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?cCe(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"ip",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?uCe(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"jwt",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?lCe(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"cidr",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?iCe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"base64",code:Q.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?sCe.test(e.data)||(i=this._getOrReturnCtx(e,i),ue(i,{validation:"base64url",code:Q.invalid_string,message:s.message}),n.dirty()):tt.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:Q.invalid_string,...ye.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ye.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ye.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ye.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ye.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ye.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ye.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ye.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ye.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ye.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ye.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ye.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ye.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ye.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...ye.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...ye.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ye.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ye.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...ye.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ye.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ye.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ye.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ye.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ye.errToObj(r)})}nonempty(e){return this.min(1,ye.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};yc.create=t=>new yc({checks:[],typeName:Re.ZodString,coerce:t?.coerce??!1,...Ue(t)});Bu=class t extends Ke{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==le.number){let s=this._getOrReturnCtx(e);return ue(s,{code:Q.invalid_type,expected:le.number,received:s.parsedType}),Pe}let n,i=new cn;for(let s of this._def.checks)s.kind==="int"?tt.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?pCe(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.not_finite,message:s.message}),i.dirty()):tt.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ye.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ye.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ye.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ye.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ye.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ye.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ye.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ye.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ye.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ye.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ye.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ye.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ye.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ye.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&tt.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Bu.create=t=>new Bu({checks:[],typeName:Re.ZodNumber,coerce:t?.coerce||!1,...Ue(t)});Lu=class t extends Ke{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==le.bigint)return this._getInvalidInput(e);let n,i=new cn;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ue(n,{code:Q.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):tt.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return ue(r,{code:Q.invalid_type,expected:le.bigint,received:r.parsedType}),Pe}gte(e,r){return this.setLimit("min",e,!0,ye.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ye.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ye.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ye.toString(r))}setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ye.toString(i)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ye.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ye.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ye.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ye.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ye.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Lu.create=t=>new Lu({checks:[],typeName:Re.ZodBigInt,coerce:t?.coerce??!1,...Ue(t)});$u=class extends Ke{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==le.boolean){let n=this._getOrReturnCtx(e);return ue(n,{code:Q.invalid_type,expected:le.boolean,received:n.parsedType}),Pe}return Cn(e.data)}};$u.create=t=>new $u({typeName:Re.ZodBoolean,coerce:t?.coerce||!1,...Ue(t)});ju=class t extends Ke{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==le.date){let s=this._getOrReturnCtx(e);return ue(s,{code:Q.invalid_type,expected:le.date,received:s.parsedType}),Pe}if(Number.isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return ue(s,{code:Q.invalid_date}),Pe}let n=new cn,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),ue(i,{code:Q.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):tt.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ye.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ye.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};ju.create=t=>new ju({checks:[],coerce:t?.coerce||!1,typeName:Re.ZodDate,...Ue(t)});td=class extends Ke{_parse(e){if(this._getType(e)!==le.symbol){let n=this._getOrReturnCtx(e);return ue(n,{code:Q.invalid_type,expected:le.symbol,received:n.parsedType}),Pe}return Cn(e.data)}};td.create=t=>new td({typeName:Re.ZodSymbol,...Ue(t)});Uu=class extends Ke{_parse(e){if(this._getType(e)!==le.undefined){let n=this._getOrReturnCtx(e);return ue(n,{code:Q.invalid_type,expected:le.undefined,received:n.parsedType}),Pe}return Cn(e.data)}};Uu.create=t=>new Uu({typeName:Re.ZodUndefined,...Ue(t)});qu=class extends Ke{_parse(e){if(this._getType(e)!==le.null){let n=this._getOrReturnCtx(e);return ue(n,{code:Q.invalid_type,expected:le.null,received:n.parsedType}),Pe}return Cn(e.data)}};qu.create=t=>new qu({typeName:Re.ZodNull,...Ue(t)});bc=class extends Ke{constructor(){super(...arguments),this._any=!0}_parse(e){return Cn(e.data)}};bc.create=t=>new bc({typeName:Re.ZodAny,...Ue(t)});ga=class extends Ke{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Cn(e.data)}};ga.create=t=>new ga({typeName:Re.ZodUnknown,...Ue(t)});qs=class extends Ke{_parse(e){let r=this._getOrReturnCtx(e);return ue(r,{code:Q.invalid_type,expected:le.never,received:r.parsedType}),Pe}};qs.create=t=>new qs({typeName:Re.ZodNever,...Ue(t)});rd=class extends Ke{_parse(e){if(this._getType(e)!==le.undefined){let n=this._getOrReturnCtx(e);return ue(n,{code:Q.invalid_type,expected:le.void,received:n.parsedType}),Pe}return Cn(e.data)}};rd.create=t=>new rd({typeName:Re.ZodVoid,...Ue(t)});ya=class t extends Ke{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==le.array)return ue(r,{code:Q.invalid_type,expected:le.array,received:r.parsedType}),Pe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(ue(r,{code:o?Q.too_big:Q.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ue(r,{code:Q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ue(r,{code:Q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ss(r,o,r.path,a)))).then(o=>cn.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ss(r,o,r.path,a)));return cn.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:ye.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:ye.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:ye.toString(r)}})}nonempty(e){return this.min(1,e)}};ya.create=(t,e)=>new ya({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Re.ZodArray,...Ue(e)});di=class t extends Ke{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=tt.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==le.object){let u=this._getOrReturnCtx(e);return ue(u,{code:Q.invalid_type,expected:le.object,received:u.parsedType}),Pe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof qs&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let l=s[u],p=i.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ss(i,p,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof qs){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:i.data[l]}});else if(u==="strict")a.length>0&&(ue(i,{code:Q.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let p=i.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ss(i,p,i.path,l)),alwaysSet:l in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key,d=await l.value;u.push({key:p,value:d,alwaysSet:l.alwaysSet})}return u}).then(u=>cn.mergeObjectSync(n,u)):cn.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return ye.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:ye.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Re.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of tt.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of tt.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return ed(this)}partial(e){let r={};for(let n of tt.objectKeys(this.shape)){let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of tt.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof is;)s=s._def.innerType;r[n]=s}return new t({...this._def,shape:()=>r})}keyof(){return Cq(tt.objectKeys(this.shape))}};di.create=(t,e)=>new di({shape:()=>t,unknownKeys:"strip",catchall:qs.create(),typeName:Re.ZodObject,...Ue(e)});di.strictCreate=(t,e)=>new di({shape:()=>t,unknownKeys:"strict",catchall:qs.create(),typeName:Re.ZodObject,...Ue(e)});di.lazycreate=(t,e)=>new di({shape:t,unknownKeys:"strip",catchall:qs.create(),typeName:Re.ZodObject,...Ue(e)});zu=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new pi(a.ctx.common.issues));return ue(r,{code:Q.invalid_union,unionErrors:o}),Pe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new pi(c));return ue(r,{code:Q.invalid_union,unionErrors:a}),Pe}}get options(){return this._def.options}};zu.create=(t,e)=>new zu({options:t,typeName:Re.ZodUnion,...Ue(e)});ha=t=>t instanceof Vu?ha(t.schema):t instanceof os?ha(t.innerType()):t instanceof Hu?[t.value]:t instanceof Ku?t.options:t instanceof Wu?tt.objectValues(t.enum):t instanceof Ju?ha(t._def.innerType):t instanceof Uu?[void 0]:t instanceof qu?[null]:t instanceof is?[void 0,...ha(t.unwrap())]:t instanceof Po?[null,...ha(t.unwrap())]:t instanceof ph||t instanceof Xu?ha(t.unwrap()):t instanceof Yu?ha(t._def.innerType):[],hx=class t extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==le.object)return ue(r,{code:Q.invalid_type,expected:le.object,received:r.parsedType}),Pe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ue(r,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Pe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=ha(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new t({typeName:Re.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ue(n)})}};Gu=class extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(fx(s)||fx(o))return Pe;let a=e_(s.value,o.value);return a.valid?((mx(s)||mx(o))&&r.dirty(),{status:r.value,value:a.data}):(ue(n,{code:Q.invalid_intersection_types}),Pe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Gu.create=(t,e,r)=>new Gu({left:t,right:e,typeName:Re.ZodIntersection,...Ue(r)});_o=class t extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==le.array)return ue(n,{code:Q.invalid_type,expected:le.array,received:n.parsedType}),Pe;if(n.data.length<this._def.items.length)return ue(n,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&n.data.length>this._def.items.length&&(ue(n,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ss(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>cn.mergeArray(r,o)):cn.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_o.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _o({items:t,typeName:Re.ZodTuple,rest:null,...Ue(e)})};gx=class t extends Ke{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==le.object)return ue(n,{code:Q.invalid_type,expected:le.object,received:n.parsedType}),Pe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ss(n,a,n.path,a)),value:o._parse(new ss(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?cn.mergeObjectAsync(r,i):cn.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Ke?new t({keyType:e,valueType:r,typeName:Re.ZodRecord,...Ue(n)}):new t({keyType:yc.create(),valueType:e,typeName:Re.ZodRecord,...Ue(r)})}},nd=class extends Ke{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==le.map)return ue(n,{code:Q.invalid_type,expected:le.map,received:n.parsedType}),Pe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new ss(n,a,n.path,[u,"key"])),value:s._parse(new ss(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Pe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Pe;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};nd.create=(t,e,r)=>new nd({valueType:e,keyType:t,typeName:Re.ZodMap,...Ue(r)});id=class t extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==le.set)return ue(n,{code:Q.invalid_type,expected:le.set,received:n.parsedType}),Pe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ue(n,{code:Q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ue(n,{code:Q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let l of c){if(l.status==="aborted")return Pe;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new ss(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:ye.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:ye.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};id.create=(t,e)=>new id({valueType:t,minSize:null,maxSize:null,typeName:Re.ZodSet,...Ue(e)});yx=class t extends Ke{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==le.function)return ue(r,{code:Q.invalid_type,expected:le.function,received:r.parsedType}),Pe;function n(a,c){return lh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Zp(),ma].filter(u=>!!u),issueData:{code:Q.invalid_arguments,argumentsError:c}})}function i(a,c){return lh({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Zp(),ma].filter(u=>!!u),issueData:{code:Q.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof vc){let a=this;return Cn(async function(...c){let u=new pi([]),l=await a._def.args.parseAsync(c,s).catch(h=>{throw u.addIssue(n(c,h)),u}),p=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(p,s).catch(h=>{throw u.addIssue(i(p,h)),u})})}else{let a=this;return Cn(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new pi([n(c,u.error)]);let l=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(l,s);if(!p.success)throw new pi([i(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_o.create(e).rest(ga.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||_o.create([]).rest(ga.create()),returns:r||ga.create(),typeName:Re.ZodFunction,...Ue(n)})}},Vu=class extends Ke{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Vu.create=(t,e)=>new Vu({getter:t,typeName:Re.ZodLazy,...Ue(e)});Hu=class extends Ke{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return ue(r,{received:r.data,code:Q.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:e.data}}get value(){return this._def.value}};Hu.create=(t,e)=>new Hu({value:t,typeName:Re.ZodLiteral,...Ue(e)});Ku=class t extends Ke{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return ue(r,{expected:tt.joinValues(n),received:r.parsedType,code:Q.invalid_type}),Pe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return ue(r,{received:r.data,code:Q.invalid_enum_value,options:n}),Pe}return Cn(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};Ku.create=Cq;Wu=class extends Ke{_parse(e){let r=tt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==le.string&&n.parsedType!==le.number){let i=tt.objectValues(r);return ue(n,{expected:tt.joinValues(i),received:n.parsedType,code:Q.invalid_type}),Pe}if(this._cache||(this._cache=new Set(tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let i=tt.objectValues(r);return ue(n,{received:n.data,code:Q.invalid_enum_value,options:i}),Pe}return Cn(e.data)}get enum(){return this._def.values}};Wu.create=(t,e)=>new Wu({values:t,typeName:Re.ZodNativeEnum,...Ue(e)});vc=class extends Ke{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==le.promise&&r.common.async===!1)return ue(r,{code:Q.invalid_type,expected:le.promise,received:r.parsedType}),Pe;let n=r.parsedType===le.promise?r.data:Promise.resolve(r.data);return Cn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};vc.create=(t,e)=>new vc({type:t,typeName:Re.ZodPromise,...Ue(e)});os=class extends Ke{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{ue(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pe;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?Pe:c.status==="dirty"?Mu(c.value):r.value==="dirty"?Mu(c.value):c});{if(r.value==="aborted")return Pe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Pe:a.status==="dirty"?Mu(a.value):r.value==="dirty"?Mu(a.value):a}}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!gc(o))return Pe;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>gc(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):Pe);tt.assertNever(i)}};os.create=(t,e,r)=>new os({schema:t,typeName:Re.ZodEffects,effect:e,...Ue(r)});os.createWithPreprocess=(t,e,r)=>new os({schema:e,effect:{type:"preprocess",transform:t},typeName:Re.ZodEffects,...Ue(r)});is=class extends Ke{_parse(e){return this._getType(e)===le.undefined?Cn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};is.create=(t,e)=>new is({innerType:t,typeName:Re.ZodOptional,...Ue(e)});Po=class extends Ke{_parse(e){return this._getType(e)===le.null?Cn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Po.create=(t,e)=>new Po({innerType:t,typeName:Re.ZodNullable,...Ue(e)});Ju=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===le.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ju.create=(t,e)=>new Ju({innerType:t,typeName:Re.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ue(e)});Yu=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Qp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new pi(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new pi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Yu.create=(t,e)=>new Yu({innerType:t,typeName:Re.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ue(e)});sd=class extends Ke{_parse(e){if(this._getType(e)!==le.nan){let n=this._getOrReturnCtx(e);return ue(n,{code:Q.invalid_type,expected:le.nan,received:n.parsedType}),Pe}return{status:"valid",value:e.data}}};sd.create=t=>new sd({typeName:Re.ZodNaN,...Ue(t)});dCe=Symbol("zod_brand"),ph=class extends Ke{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},dh=class t extends Ke{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Pe:s.status==="dirty"?(r.dirty(),Mu(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Pe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:Re.ZodPipeline})}},Xu=class extends Ke{_parse(e){let r=this._def.innerType._parse(e),n=i=>(gc(i)&&(i.value=Object.freeze(i.value)),i);return Qp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};Xu.create=(t,e)=>new Xu({innerType:t,typeName:Re.ZodReadonly,...Ue(e)});fCe={object:di.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Re||(Re={}));mCe=(t,e={message:`Input not instance of ${t.name}`})=>wq(r=>r instanceof t,e),Eq=yc.create,Sq=Bu.create,hCe=sd.create,gCe=Lu.create,Tq=$u.create,yCe=ju.create,bCe=td.create,vCe=Uu.create,xCe=qu.create,DCe=bc.create,CCe=ga.create,wCe=qs.create,ECe=rd.create,SCe=ya.create,TCe=di.create,ACe=di.strictCreate,_Ce=zu.create,PCe=hx.create,FCe=Gu.create,kCe=_o.create,ICe=gx.create,NCe=nd.create,RCe=id.create,OCe=yx.create,MCe=Vu.create,BCe=Hu.create,LCe=Ku.create,$Ce=Wu.create,jCe=vc.create,UCe=os.create,qCe=is.create,zCe=Po.create,GCe=os.createWithPreprocess,VCe=dh.create,HCe=()=>Eq().optional(),KCe=()=>Sq().optional(),WCe=()=>Tq().optional(),JCe={string:(t=>yc.create({...t,coerce:!0})),number:(t=>Bu.create({...t,coerce:!0})),boolean:(t=>$u.create({...t,coerce:!0})),bigint:(t=>Lu.create({...t,coerce:!0})),date:(t=>ju.create({...t,coerce:!0}))},YCe=Pe});var T={};dy(T,{BRAND:()=>dCe,DIRTY:()=>Mu,EMPTY_PATH:()=>GDe,INVALID:()=>Pe,NEVER:()=>YCe,OK:()=>Cn,ParseStatus:()=>cn,Schema:()=>Ke,ZodAny:()=>bc,ZodArray:()=>ya,ZodBigInt:()=>Lu,ZodBoolean:()=>$u,ZodBranded:()=>ph,ZodCatch:()=>Yu,ZodDate:()=>ju,ZodDefault:()=>Ju,ZodDiscriminatedUnion:()=>hx,ZodEffects:()=>os,ZodEnum:()=>Ku,ZodError:()=>pi,ZodFirstPartyTypeKind:()=>Re,ZodFunction:()=>yx,ZodIntersection:()=>Gu,ZodIssueCode:()=>Q,ZodLazy:()=>Vu,ZodLiteral:()=>Hu,ZodMap:()=>nd,ZodNaN:()=>sd,ZodNativeEnum:()=>Wu,ZodNever:()=>qs,ZodNull:()=>qu,ZodNullable:()=>Po,ZodNumber:()=>Bu,ZodObject:()=>di,ZodOptional:()=>is,ZodParsedType:()=>le,ZodPipeline:()=>dh,ZodPromise:()=>vc,ZodReadonly:()=>Xu,ZodRecord:()=>gx,ZodSchema:()=>Ke,ZodSet:()=>id,ZodString:()=>yc,ZodSymbol:()=>td,ZodTransformer:()=>os,ZodTuple:()=>_o,ZodType:()=>Ke,ZodUndefined:()=>Uu,ZodUnion:()=>zu,ZodUnknown:()=>ga,ZodVoid:()=>rd,addIssueToContext:()=>ue,any:()=>DCe,array:()=>SCe,bigint:()=>gCe,boolean:()=>Tq,coerce:()=>JCe,custom:()=>wq,date:()=>yCe,datetimeRegex:()=>Dq,defaultErrorMap:()=>ma,discriminatedUnion:()=>PCe,effect:()=>UCe,enum:()=>LCe,function:()=>OCe,getErrorMap:()=>Zp,getParsedType:()=>Ao,instanceof:()=>mCe,intersection:()=>FCe,isAborted:()=>fx,isAsync:()=>Qp,isDirty:()=>mx,isValid:()=>gc,late:()=>fCe,lazy:()=>MCe,literal:()=>BCe,makeIssue:()=>lh,map:()=>NCe,nan:()=>hCe,nativeEnum:()=>$Ce,never:()=>wCe,null:()=>xCe,nullable:()=>zCe,number:()=>Sq,object:()=>TCe,objectUtil:()=>YA,oboolean:()=>WCe,onumber:()=>KCe,optional:()=>qCe,ostring:()=>HCe,pipeline:()=>VCe,preprocess:()=>GCe,promise:()=>jCe,quotelessJson:()=>UDe,record:()=>ICe,set:()=>RCe,setErrorMap:()=>zDe,strictObject:()=>ACe,string:()=>Eq,symbol:()=>bCe,transformer:()=>UCe,tuple:()=>kCe,undefined:()=>vCe,union:()=>_Ce,unknown:()=>CCe,util:()=>tt,void:()=>ECe});var t_=F(()=>{f();dx();ZA();hq();uh();Aq();px()});var _q=F(()=>{f();t_();t_()});var r_,Pq,bx,Fq,kq,XCe,us,fi,fh,Fo,ls,vx,Iq,Nq,Rq,Oq,Mq,n_,as,Bq,Lq,$q,Zu,xx,ZCe,mh,hh,jq,QCe,ewe,twe,i_,rwe,Dx,nwe,Cx,wx,Ex,Uq,qq,s_,zq,Gq,iwe,swe,o_,owe,a_,awe,c_,cwe,uwe,lwe,pwe,dwe,fwe,mwe,u_,hwe,l_,p_,d_,gwe,ywe,Vq,bwe,f_,vwe,xwe,Dwe,Cwe,m_,Sx,iot,wwe,Ewe,Hq,Swe,Twe,Awe,_we,Pwe,Fwe,kwe,Iwe,Nwe,Rwe,Owe,Mwe,Bwe,Lwe,$we,jwe,Uwe,h_,qwe,zwe,Gwe,Vwe,sot,oot,aot,cot,uot,lot,cs,Tx=F(()=>{f();_q();r_="2025-06-18",Pq=[r_,"2025-03-26","2024-11-05","2024-10-07"],bx="2.0",Fq=T.union([T.string(),T.number().int()]),kq=T.string(),XCe=T.object({progressToken:T.optional(Fq)}).passthrough(),us=T.object({_meta:T.optional(XCe)}).passthrough(),fi=T.object({method:T.string(),params:T.optional(us)}),fh=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),Fo=T.object({method:T.string(),params:T.optional(fh)}),ls=T.object({_meta:T.optional(T.object({}).passthrough())}).passthrough(),vx=T.union([T.string(),T.number().int()]),Iq=T.object({jsonrpc:T.literal(bx),id:vx}).merge(fi).strict(),Nq=t=>Iq.safeParse(t).success,Rq=T.object({jsonrpc:T.literal(bx)}).merge(Fo).strict(),Oq=t=>Rq.safeParse(t).success,Mq=T.object({jsonrpc:T.literal(bx),id:vx,result:ls}).strict(),n_=t=>Mq.safeParse(t).success;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"})(as||(as={}));Bq=T.object({jsonrpc:T.literal(bx),id:vx,error:T.object({code:T.number().int(),message:T.string(),data:T.optional(T.unknown())})}).strict(),Lq=t=>Bq.safeParse(t).success,$q=T.union([Iq,Rq,Mq,Bq]),Zu=ls.strict(),xx=Fo.extend({method:T.literal("notifications/cancelled"),params:fh.extend({requestId:vx,reason:T.string().optional()})}),ZCe=T.object({src:T.string(),mimeType:T.optional(T.string()),sizes:T.optional(T.array(T.string()))}).passthrough(),mh=T.object({icons:T.array(ZCe).optional()}).passthrough(),hh=T.object({name:T.string(),title:T.optional(T.string())}).passthrough(),jq=hh.extend({version:T.string(),websiteUrl:T.optional(T.string())}).merge(mh),QCe=T.object({experimental:T.optional(T.object({}).passthrough()),sampling:T.optional(T.object({}).passthrough()),elicitation:T.optional(T.object({}).passthrough()),roots:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),ewe=fi.extend({method:T.literal("initialize"),params:us.extend({protocolVersion:T.string(),capabilities:QCe,clientInfo:jq})}),twe=T.object({experimental:T.optional(T.object({}).passthrough()),logging:T.optional(T.object({}).passthrough()),completions:T.optional(T.object({}).passthrough()),prompts:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough()),resources:T.optional(T.object({subscribe:T.optional(T.boolean()),listChanged:T.optional(T.boolean())}).passthrough()),tools:T.optional(T.object({listChanged:T.optional(T.boolean())}).passthrough())}).passthrough(),i_=ls.extend({protocolVersion:T.string(),capabilities:twe,serverInfo:jq,instructions:T.optional(T.string())}),rwe=Fo.extend({method:T.literal("notifications/initialized")}),Dx=fi.extend({method:T.literal("ping")}),nwe=T.object({progress:T.number(),total:T.optional(T.number()),message:T.optional(T.string())}).passthrough(),Cx=Fo.extend({method:T.literal("notifications/progress"),params:fh.merge(nwe).extend({progressToken:Fq})}),wx=fi.extend({params:us.extend({cursor:T.optional(kq)}).optional()}),Ex=ls.extend({nextCursor:T.optional(kq)}),Uq=T.object({uri:T.string(),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),qq=Uq.extend({text:T.string()}),s_=T.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),zq=Uq.extend({blob:s_}),Gq=hh.extend({uri:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(mh),iwe=hh.extend({uriTemplate:T.string(),description:T.optional(T.string()),mimeType:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).merge(mh),swe=wx.extend({method:T.literal("resources/list")}),o_=Ex.extend({resources:T.array(Gq)}),owe=wx.extend({method:T.literal("resources/templates/list")}),a_=Ex.extend({resourceTemplates:T.array(iwe)}),awe=fi.extend({method:T.literal("resources/read"),params:us.extend({uri:T.string()})}),c_=ls.extend({contents:T.array(T.union([qq,zq]))}),cwe=Fo.extend({method:T.literal("notifications/resources/list_changed")}),uwe=fi.extend({method:T.literal("resources/subscribe"),params:us.extend({uri:T.string()})}),lwe=fi.extend({method:T.literal("resources/unsubscribe"),params:us.extend({uri:T.string()})}),pwe=Fo.extend({method:T.literal("notifications/resources/updated"),params:fh.extend({uri:T.string()})}),dwe=T.object({name:T.string(),description:T.optional(T.string()),required:T.optional(T.boolean())}).passthrough(),fwe=hh.extend({description:T.optional(T.string()),arguments:T.optional(T.array(dwe)),_meta:T.optional(T.object({}).passthrough())}).merge(mh),mwe=wx.extend({method:T.literal("prompts/list")}),u_=Ex.extend({prompts:T.array(fwe)}),hwe=fi.extend({method:T.literal("prompts/get"),params:us.extend({name:T.string(),arguments:T.optional(T.record(T.string()))})}),l_=T.object({type:T.literal("text"),text:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),p_=T.object({type:T.literal("image"),data:s_,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),d_=T.object({type:T.literal("audio"),data:s_,mimeType:T.string(),_meta:T.optional(T.object({}).passthrough())}).passthrough(),gwe=T.object({type:T.literal("resource"),resource:T.union([qq,zq]),_meta:T.optional(T.object({}).passthrough())}).passthrough(),ywe=Gq.extend({type:T.literal("resource_link")}),Vq=T.union([l_,p_,d_,ywe,gwe]),bwe=T.object({role:T.enum(["user","assistant"]),content:Vq}).passthrough(),f_=ls.extend({description:T.optional(T.string()),messages:T.array(bwe)}),vwe=Fo.extend({method:T.literal("notifications/prompts/list_changed")}),xwe=T.object({title:T.optional(T.string()),readOnlyHint:T.optional(T.boolean()),destructiveHint:T.optional(T.boolean()),idempotentHint:T.optional(T.boolean()),openWorldHint:T.optional(T.boolean())}).passthrough(),Dwe=hh.extend({description:T.optional(T.string()),inputSchema:T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough(),outputSchema:T.optional(T.object({type:T.literal("object"),properties:T.optional(T.object({}).passthrough()),required:T.optional(T.array(T.string()))}).passthrough()),annotations:T.optional(xwe),_meta:T.optional(T.object({}).passthrough())}).merge(mh),Cwe=wx.extend({method:T.literal("tools/list")}),m_=Ex.extend({tools:T.array(Dwe)}),Sx=ls.extend({content:T.array(Vq).default([]),structuredContent:T.object({}).passthrough().optional(),isError:T.optional(T.boolean())}),iot=Sx.or(ls.extend({toolResult:T.unknown()})),wwe=fi.extend({method:T.literal("tools/call"),params:us.extend({name:T.string(),arguments:T.optional(T.record(T.unknown()))})}),Ewe=Fo.extend({method:T.literal("notifications/tools/list_changed")}),Hq=T.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),Swe=fi.extend({method:T.literal("logging/setLevel"),params:us.extend({level:Hq})}),Twe=Fo.extend({method:T.literal("notifications/message"),params:fh.extend({level:Hq,logger:T.optional(T.string()),data:T.unknown()})}),Awe=T.object({name:T.string().optional()}).passthrough(),_we=T.object({hints:T.optional(T.array(Awe)),costPriority:T.optional(T.number().min(0).max(1)),speedPriority:T.optional(T.number().min(0).max(1)),intelligencePriority:T.optional(T.number().min(0).max(1))}).passthrough(),Pwe=T.object({role:T.enum(["user","assistant"]),content:T.union([l_,p_,d_])}).passthrough(),Fwe=fi.extend({method:T.literal("sampling/createMessage"),params:us.extend({messages:T.array(Pwe),systemPrompt:T.optional(T.string()),includeContext:T.optional(T.enum(["none","thisServer","allServers"])),temperature:T.optional(T.number()),maxTokens:T.number().int(),stopSequences:T.optional(T.array(T.string())),metadata:T.optional(T.object({}).passthrough()),modelPreferences:T.optional(_we)})}),kwe=ls.extend({model:T.string(),stopReason:T.optional(T.enum(["endTurn","stopSequence","maxTokens"]).or(T.string())),role:T.enum(["user","assistant"]),content:T.discriminatedUnion("type",[l_,p_,d_])}),Iwe=T.object({type:T.literal("boolean"),title:T.optional(T.string()),description:T.optional(T.string()),default:T.optional(T.boolean())}).passthrough(),Nwe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),minLength:T.optional(T.number()),maxLength:T.optional(T.number()),format:T.optional(T.enum(["email","uri","date","date-time"]))}).passthrough(),Rwe=T.object({type:T.enum(["number","integer"]),title:T.optional(T.string()),description:T.optional(T.string()),minimum:T.optional(T.number()),maximum:T.optional(T.number())}).passthrough(),Owe=T.object({type:T.literal("string"),title:T.optional(T.string()),description:T.optional(T.string()),enum:T.array(T.string()),enumNames:T.optional(T.array(T.string()))}).passthrough(),Mwe=T.union([Iwe,Nwe,Rwe,Owe]),Bwe=fi.extend({method:T.literal("elicitation/create"),params:us.extend({message:T.string(),requestedSchema:T.object({type:T.literal("object"),properties:T.record(T.string(),Mwe),required:T.optional(T.array(T.string()))}).passthrough()})}),Lwe=ls.extend({action:T.enum(["accept","decline","cancel"]),content:T.optional(T.record(T.string(),T.unknown()))}),$we=T.object({type:T.literal("ref/resource"),uri:T.string()}).passthrough(),jwe=T.object({type:T.literal("ref/prompt"),name:T.string()}).passthrough(),Uwe=fi.extend({method:T.literal("completion/complete"),params:us.extend({ref:T.union([jwe,$we]),argument:T.object({name:T.string(),value:T.string()}).passthrough(),context:T.optional(T.object({arguments:T.optional(T.record(T.string(),T.string()))}))})}),h_=ls.extend({completion:T.object({values:T.array(T.string()).max(100),total:T.optional(T.number().int()),hasMore:T.optional(T.boolean())}).passthrough()}),qwe=T.object({uri:T.string().startsWith("file://"),name:T.optional(T.string()),_meta:T.optional(T.object({}).passthrough())}).passthrough(),zwe=fi.extend({method:T.literal("roots/list")}),Gwe=ls.extend({roots:T.array(qwe)}),Vwe=Fo.extend({method:T.literal("notifications/roots/list_changed")}),sot=T.union([Dx,ewe,Uwe,Swe,hwe,mwe,swe,owe,awe,uwe,lwe,wwe,Cwe]),oot=T.union([xx,Cx,rwe,Vwe]),aot=T.union([Zu,kwe,Lwe,Gwe]),cot=T.union([Dx,Fwe,Bwe,zwe]),uot=T.union([xx,Cx,Twe,pwe,cwe,Ewe,vwe]),lot=T.union([Zu,i_,h_,f_,u_,o_,a_,c_,Sx,m_]),cs=class extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}}});function Kq(t,e){return Object.entries(e).reduce((r,[n,i])=>(i&&typeof i=="object"?r[n]=r[n]?{...r[n],...i}:i:r[n]=i,r),{...t})}var Hwe,Ax,Wq=F(()=>{f();Tx();Hwe=6e4,Ax=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(xx,r=>{let n=this._requestHandlerAbortControllers.get(r.params.requestId);n?.abort(r.params.reason)}),this.setNotificationHandler(Cx,r=>{this._onprogress(r)}),this.setRequestHandler(Dx,r=>({}))}_setupTimeout(e,r,n,i,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:s,onTimeout:i})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),new cs(as.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var r,n,i;this._transport=e;let s=(r=this.transport)===null||r===void 0?void 0:r.onclose;this._transport.onclose=()=>{s?.(),this._onclose()};let o=(n=this.transport)===null||n===void 0?void 0:n.onerror;this._transport.onerror=c=>{o?.(c),this._onerror(c)};let a=(i=this._transport)===null||i===void 0?void 0:i.onmessage;this._transport.onmessage=(c,u)=>{a?.(c,u),n_(c)||Lq(c)?this._onresponse(c):Nq(c)?this._onrequest(c,u):Oq(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var e;let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(e=this.onclose)===null||e===void 0||e.call(this);let n=new cs(as.ConnectionClosed,"Connection closed");for(let i of r.values())i(n)}_onerror(e){var r;(r=this.onerror)===null||r===void 0||r.call(this,e)}_onnotification(e){var r;let n=(r=this._notificationHandlers.get(e.method))!==null&&r!==void 0?r:this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(e)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(e,r){var n,i;let s=(n=this._requestHandlers.get(e.method))!==null&&n!==void 0?n:this.fallbackRequestHandler,o=this._transport;if(s===void 0){o?.send({jsonrpc:"2.0",id:e.id,error:{code:as.MethodNotFound,message:"Method not found"}}).catch(u=>this._onerror(new Error(`Failed to send an error response: ${u}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let c={signal:a.signal,sessionId:o?.sessionId,_meta:(i=e.params)===null||i===void 0?void 0:i._meta,sendNotification:u=>this.notification(u,{relatedRequestId:e.id}),sendRequest:(u,l,p)=>this.request(u,l,{...p,relatedRequestId:e.id}),authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo};Promise.resolve().then(()=>s(e,c)).then(u=>{if(!a.signal.aborted)return o?.send({result:u,jsonrpc:"2.0",id:e.id})},u=>{var l;if(!a.signal.aborted)return o?.send({jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:as.InternalError,message:(l=u.message)!==null&&l!==void 0?l:"Internal error"}})}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,i=Number(r),s=this._progressHandlers.get(i);if(!s){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(c){o(c);return}s(n)}_onresponse(e){let r=Number(e.id),n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}if(this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),n_(e))n(e);else{let i=new cs(e.error.code,e.error.message,e.error.data);n(i)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)===null||e===void 0?void 0:e.close())}request(e,r,n){let{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}=n??{};return new Promise((a,c)=>{var u,l,p,d,h,m;if(!this._transport){c(new Error("Not connected"));return}((u=this._options)===null||u===void 0?void 0:u.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(e.method),(l=n?.signal)===null||l===void 0||l.throwIfAborted();let g=this._requestMessageId++,y={...e,jsonrpc:"2.0",id:g};n?.onprogress&&(this._progressHandlers.set(g,n.onprogress),y.params={...e.params,_meta:{...((p=e.params)===null||p===void 0?void 0:p._meta)||{},progressToken:g}});let b=x=>{var v;this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),(v=this._transport)===null||v===void 0||v.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(x)}},{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(w=>this._onerror(new Error(`Failed to send cancellation: ${w}`))),c(x)};this._responseHandlers.set(g,x=>{var v;if(!(!((v=n?.signal)===null||v===void 0)&&v.aborted)){if(x instanceof Error)return c(x);try{let w=r.parse(x.result);a(w)}catch(w){c(w)}}}),(d=n?.signal)===null||d===void 0||d.addEventListener("abort",()=>{var x;b((x=n?.signal)===null||x===void 0?void 0:x.reason)});let D=(h=n?.timeout)!==null&&h!==void 0?h:Hwe,C=()=>b(new cs(as.RequestTimeout,"Request timed out",{timeout:D}));this._setupTimeout(g,D,n?.maxTotalTimeout,C,(m=n?.resetTimeoutOnProgress)!==null&&m!==void 0?m:!1),this._transport.send(y,{relatedRequestId:i,resumptionToken:s,onresumptiontoken:o}).catch(x=>{this._cleanupTimeout(g),c(x)})})}async notification(e,r){var n,i;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(e.method),((i=(n=this._options)===null||n===void 0?void 0:n.debouncedNotificationMethods)!==null&&i!==void 0?i:[]).includes(e.method)&&!e.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var c;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let u={...e,jsonrpc:"2.0"};(c=this._transport)===null||c===void 0||c.send(u,r).catch(l=>this._onerror(l))});return}let a={...e,jsonrpc:"2.0"};await this._transport.send(a,r)}setRequestHandler(e,r){let n=e.shape.method.value;this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,s)=>Promise.resolve(r(e.parse(i),s)))}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){this._notificationHandlers.set(e.shape.method.value,n=>Promise.resolve(r(e.parse(n))))}removeNotificationHandler(e){this._notificationHandlers.delete(e)}}});var bh=E(bt=>{"use strict";f();Object.defineProperty(bt,"__esModule",{value:!0});bt.regexpCode=bt.getEsmExportName=bt.getProperty=bt.safeStringify=bt.stringify=bt.strConcat=bt.addCodeArg=bt.str=bt._=bt.nil=bt._Code=bt.Name=bt.IDENTIFIER=bt._CodeOrName=void 0;var gh=class{};bt._CodeOrName=gh;bt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Qu=class extends gh{constructor(e){if(super(),!bt.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};bt.Name=Qu;var ps=class extends gh{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Qu&&(r[n.str]=(r[n.str]||0)+1),r),{})}};bt._Code=ps;bt.nil=new ps("");function Jq(t,...e){let r=[t[0]],n=0;for(;n<e.length;)y_(r,e[n]),r.push(t[++n]);return new ps(r)}bt._=Jq;var g_=new ps("+");function Yq(t,...e){let r=[yh(t[0])],n=0;for(;n<e.length;)r.push(g_),y_(r,e[n]),r.push(g_,yh(t[++n]));return Kwe(r),new ps(r)}bt.str=Yq;function y_(t,e){e instanceof ps?t.push(...e._items):e instanceof Qu?t.push(e):t.push(Ywe(e))}bt.addCodeArg=y_;function Kwe(t){let e=1;for(;e<t.length-1;){if(t[e]===g_){let r=Wwe(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Wwe(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Qu||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Qu))return`"${t}${e.slice(1)}`}function Jwe(t,e){return e.emptyStr()?t:t.emptyStr()?e:Yq`${t}${e}`}bt.strConcat=Jwe;function Ywe(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:yh(Array.isArray(t)?t.join(","):t)}function Xwe(t){return new ps(yh(t))}bt.stringify=Xwe;function yh(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}bt.safeStringify=yh;function Zwe(t){return typeof t=="string"&&bt.IDENTIFIER.test(t)?new ps(`.${t}`):Jq`[${t}]`}bt.getProperty=Zwe;function Qwe(t){if(typeof t=="string"&&bt.IDENTIFIER.test(t))return new ps(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}bt.getEsmExportName=Qwe;function eEe(t){return new ps(t.toString())}bt.regexpCode=eEe});var x_=E(hi=>{"use strict";f();Object.defineProperty(hi,"__esModule",{value:!0});hi.ValueScope=hi.ValueScopeName=hi.Scope=hi.varKinds=hi.UsedValueState=void 0;var mi=bh(),b_=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},_x;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(_x||(hi.UsedValueState=_x={}));hi.varKinds={const:new mi.Name("const"),let:new mi.Name("let"),var:new mi.Name("var")};var Px=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof mi.Name?e:this.name(e)}name(e){return new mi.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};hi.Scope=Px;var Fx=class extends mi.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,mi._)`.${new mi.Name(r)}[${n}]`}};hi.ValueScopeName=Fx;var tEe=(0,mi._)`\n`,v_=class extends Px{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?tEe:mi.nil}}get(){return this._scope}name(e){return new Fx(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:s}=i,o=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let l=a.get(o);if(l)return l}else a=this._values[s]=new Map;a.set(o,i);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,i.setValue(r,{property:s,itemIndex:u}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,mi._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=mi.nil;for(let o in e){let a=e[o];if(!a)continue;let c=n[o]=n[o]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,_x.Started);let l=r(u);if(l){let p=this.opts.es5?hi.varKinds.var:hi.varKinds.const;s=(0,mi._)`${s}${p} ${u} = ${l};${this.opts._n}`}else if(l=i?.(u))s=(0,mi._)`${s}${l}${this.opts._n}`;else throw new b_(u);c.set(u,_x.Completed)})}return s}};hi.ValueScope=v_});var We=E(Xe=>{"use strict";f();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.or=Xe.and=Xe.not=Xe.CodeGen=Xe.operators=Xe.varKinds=Xe.ValueScopeName=Xe.ValueScope=Xe.Scope=Xe.Name=Xe.regexpCode=Xe.stringify=Xe.getProperty=Xe.nil=Xe.strConcat=Xe.str=Xe._=void 0;var lt=bh(),zs=x_(),xc=bh();Object.defineProperty(Xe,"_",{enumerable:!0,get:function(){return xc._}});Object.defineProperty(Xe,"str",{enumerable:!0,get:function(){return xc.str}});Object.defineProperty(Xe,"strConcat",{enumerable:!0,get:function(){return xc.strConcat}});Object.defineProperty(Xe,"nil",{enumerable:!0,get:function(){return xc.nil}});Object.defineProperty(Xe,"getProperty",{enumerable:!0,get:function(){return xc.getProperty}});Object.defineProperty(Xe,"stringify",{enumerable:!0,get:function(){return xc.stringify}});Object.defineProperty(Xe,"regexpCode",{enumerable:!0,get:function(){return xc.regexpCode}});Object.defineProperty(Xe,"Name",{enumerable:!0,get:function(){return xc.Name}});var Rx=x_();Object.defineProperty(Xe,"Scope",{enumerable:!0,get:function(){return Rx.Scope}});Object.defineProperty(Xe,"ValueScope",{enumerable:!0,get:function(){return Rx.ValueScope}});Object.defineProperty(Xe,"ValueScopeName",{enumerable:!0,get:function(){return Rx.ValueScopeName}});Object.defineProperty(Xe,"varKinds",{enumerable:!0,get:function(){return Rx.varKinds}});Xe.operators={GT:new lt._Code(">"),GTE:new lt._Code(">="),LT:new lt._Code("<"),LTE:new lt._Code("<="),EQ:new lt._Code("==="),NEQ:new lt._Code("!=="),NOT:new lt._Code("!"),OR:new lt._Code("||"),AND:new lt._Code("&&"),ADD:new lt._Code("+")};var ba=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},D_=class extends ba{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?zs.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ad(this.rhs,e,r)),this}get names(){return this.rhs instanceof lt._CodeOrName?this.rhs.names:{}}},kx=class extends ba{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof lt.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ad(this.rhs,e,r),this}get names(){let e=this.lhs instanceof lt.Name?{}:{...this.lhs.names};return Nx(e,this.rhs)}},C_=class extends kx{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},w_=class extends ba{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},E_=class extends ba{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},S_=class extends ba{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},T_=class extends ba{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ad(this.code,e,r),this}get names(){return this.code instanceof lt._CodeOrName?this.code.names:{}}},vh=class extends ba{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(e,r)||(rEe(e,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>rl(e,r.names),{})}},va=class extends vh{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},A_=class extends vh{},od=class extends va{};od.kind="else";var el=class t extends va{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new od(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Xq(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ad(this.condition,e,r),this}get names(){let e=super.names;return Nx(e,this.condition),this.else&&rl(e,this.else.names),e}};el.kind="if";var tl=class extends va{};tl.kind="for";var __=class extends tl{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ad(this.iteration,e,r),this}get names(){return rl(super.names,this.iteration.names)}},P_=class extends tl{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?zs.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=Nx(super.names,this.from);return Nx(e,this.to)}},Ix=class extends tl{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ad(this.iterable,e,r),this}get names(){return rl(super.names,this.iterable.names)}},xh=class extends va{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};xh.kind="func";var Dh=class extends vh{render(e){return"return "+super.render(e)}};Dh.kind="return";var F_=class extends va{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&rl(e,this.catch.names),this.finally&&rl(e,this.finally.names),e}},Ch=class extends va{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Ch.kind="catch";var wh=class extends va{render(e){return"finally"+super.render(e)}};wh.kind="finally";var k_=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
1921
1925
|
`:""},this._extScope=e,this._scope=new zs.Scope({parent:e}),this._nodes=[new A_]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new D_(e,s,n)),s}const(e,r,n){return this._def(zs.varKinds.const,e,r,n)}let(e,r,n){return this._def(zs.varKinds.let,e,r,n)}var(e,r,n){return this._def(zs.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new kx(e,r,n))}add(e,r){return this._leafNode(new C_(e,Xe.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==lt.nil&&this._leafNode(new T_(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,lt.addCodeArg)(r,i));return r.push("}"),new lt._Code(r)}if(e,r,n){if(this._blockNode(new el(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new el(e))}else(){return this._elseNode(new od)}endIf(){return this._endBlockNode(el,od)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new __(e),r)}forRange(e,r,n,i,s=this.opts.es5?zs.varKinds.var:zs.varKinds.let){let o=this._scope.toName(e);return this._for(new P_(s,o,r,n),()=>i(o))}forOf(e,r,n,i=zs.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let o=r instanceof lt.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,lt._)`${o}.length`,a=>{this.var(s,(0,lt._)`${o}[${a}]`),n(s)})}return this._for(new Ix("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?zs.varKinds.var:zs.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,lt._)`Object.keys(${r})`,n);let s=this._scope.toName(e);return this._for(new Ix("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(tl)}label(e){return this._leafNode(new w_(e))}break(e){return this._leafNode(new E_(e))}return(e){let r=new Dh;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Dh)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new F_;if(this._blockNode(i),this.code(e),r){let s=this.name("e");this._currNode=i.catch=new Ch(s),r(s)}return n&&(this._currNode=i.finally=new wh,this.code(n)),this._endBlockNode(Ch,wh)}throw(e){return this._leafNode(new S_(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=lt.nil,n,i){return this._blockNode(new xh(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(xh)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof el))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};Xe.CodeGen=k_;function rl(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function Nx(t,e){return e instanceof lt._CodeOrName?rl(t,e.names):t}function ad(t,e,r){if(t instanceof lt.Name)return n(t);if(!i(t))return t;return new lt._Code(t._items.reduce((s,o)=>(o instanceof lt.Name&&(o=n(o)),o instanceof lt._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=r[s.str];return o===void 0||e[s.str]!==1?s:(delete e[s.str],o)}function i(s){return s instanceof lt._Code&&s._items.some(o=>o instanceof lt.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function rEe(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Xq(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,lt._)`!${I_(t)}`}Xe.not=Xq;var nEe=Zq(Xe.operators.AND);function iEe(...t){return t.reduce(nEe)}Xe.and=iEe;var sEe=Zq(Xe.operators.OR);function oEe(...t){return t.reduce(sEe)}Xe.or=oEe;function Zq(t){return(e,r)=>e===lt.nil?r:r===lt.nil?e:(0,lt._)`${I_(e)} ${t} ${I_(r)}`}function I_(t){return t instanceof lt.Name?t:(0,lt._)`(${t})`}});var vt=E(et=>{"use strict";f();Object.defineProperty(et,"__esModule",{value:!0});et.checkStrictMode=et.getErrorPath=et.Type=et.useFunc=et.setEvaluated=et.evaluatedPropsToName=et.mergeEvaluated=et.eachItem=et.unescapeJsonPointer=et.escapeJsonPointer=et.escapeFragment=et.unescapeFragment=et.schemaRefOrVal=et.schemaHasRulesButRef=et.schemaHasRules=et.checkUnknownRules=et.alwaysValidSchema=et.toHash=void 0;var qt=We(),aEe=bh();function cEe(t){let e={};for(let r of t)e[r]=!0;return e}et.toHash=cEe;function uEe(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(tz(t,e),!rz(e,t.self.RULES.all))}et.alwaysValidSchema=uEe;function tz(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let s in e)i[s]||sz(t,`unknown keyword: "${s}"`)}et.checkUnknownRules=tz;function rz(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}et.schemaHasRules=rz;function lEe(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}et.schemaHasRulesButRef=lEe;function pEe({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,qt._)`${r}`}return(0,qt._)`${t}${e}${(0,qt.getProperty)(n)}`}et.schemaRefOrVal=pEe;function dEe(t){return nz(decodeURIComponent(t))}et.unescapeFragment=dEe;function fEe(t){return encodeURIComponent(R_(t))}et.escapeFragment=fEe;function R_(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}et.escapeJsonPointer=R_;function nz(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}et.unescapeJsonPointer=nz;function mEe(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}et.eachItem=mEe;function Qq({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,o,a)=>{let c=o===void 0?s:o instanceof qt.Name?(s instanceof qt.Name?t(i,s,o):e(i,s,o),o):s instanceof qt.Name?(e(i,o,s),s):r(s,o);return a===qt.Name&&!(c instanceof qt.Name)?n(i,c):c}}et.mergeEvaluated={props:Qq({mergeNames:(t,e,r)=>t.if((0,qt._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,qt._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,qt._)`${r} || {}`).code((0,qt._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,qt._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,qt._)`${r} || {}`),O_(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:iz}),items:Qq({mergeNames:(t,e,r)=>t.if((0,qt._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,qt._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,qt._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,qt._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function iz(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,qt._)`{}`);return e!==void 0&&O_(t,r,e),r}et.evaluatedPropsToName=iz;function O_(t,e,r){Object.keys(r).forEach(n=>t.assign((0,qt._)`${e}${(0,qt.getProperty)(n)}`,!0))}et.setEvaluated=O_;var ez={};function hEe(t,e){return t.scopeValue("func",{ref:e,code:ez[e.code]||(ez[e.code]=new aEe._Code(e.code))})}et.useFunc=hEe;var N_;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(N_||(et.Type=N_={}));function gEe(t,e,r){if(t instanceof qt.Name){let n=e===N_.Num;return r?n?(0,qt._)`"[" + ${t} + "]"`:(0,qt._)`"['" + ${t} + "']"`:n?(0,qt._)`"/" + ${t}`:(0,qt._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,qt.getProperty)(t).toString():"/"+R_(t)}et.getErrorPath=gEe;function sz(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}et.checkStrictMode=sz});var xa=E(M_=>{"use strict";f();Object.defineProperty(M_,"__esModule",{value:!0});var wn=We(),yEe={data:new wn.Name("data"),valCxt:new wn.Name("valCxt"),instancePath:new wn.Name("instancePath"),parentData:new wn.Name("parentData"),parentDataProperty:new wn.Name("parentDataProperty"),rootData:new wn.Name("rootData"),dynamicAnchors:new wn.Name("dynamicAnchors"),vErrors:new wn.Name("vErrors"),errors:new wn.Name("errors"),this:new wn.Name("this"),self:new wn.Name("self"),scope:new wn.Name("scope"),json:new wn.Name("json"),jsonPos:new wn.Name("jsonPos"),jsonLen:new wn.Name("jsonLen"),jsonPart:new wn.Name("jsonPart")};M_.default=yEe});var Eh=E(En=>{"use strict";f();Object.defineProperty(En,"__esModule",{value:!0});En.extendErrors=En.resetErrorsCount=En.reportExtraError=En.reportError=En.keyword$DataError=En.keywordError=void 0;var ft=We(),Ox=vt(),jn=xa();En.keywordError={message:({keyword:t})=>(0,ft.str)`must pass "${t}" keyword validation`};En.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ft.str)`"${t}" keyword must be ${e} ($data)`:(0,ft.str)`"${t}" keyword is invalid ($data)`};function bEe(t,e=En.keywordError,r,n){let{it:i}=t,{gen:s,compositeRule:o,allErrors:a}=i,c=cz(t,e,r);n??(o||a)?oz(s,c):az(i,(0,ft._)`[${c}]`)}En.reportError=bEe;function vEe(t,e=En.keywordError,r){let{it:n}=t,{gen:i,compositeRule:s,allErrors:o}=n,a=cz(t,e,r);oz(i,a),s||o||az(n,jn.default.vErrors)}En.reportExtraError=vEe;function xEe(t,e){t.assign(jn.default.errors,e),t.if((0,ft._)`${jn.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ft._)`${jn.default.vErrors}.length`,e),()=>t.assign(jn.default.vErrors,null)))}En.resetErrorsCount=xEe;function DEe({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",i,jn.default.errors,a=>{t.const(o,(0,ft._)`${jn.default.vErrors}[${a}]`),t.if((0,ft._)`${o}.instancePath === undefined`,()=>t.assign((0,ft._)`${o}.instancePath`,(0,ft.strConcat)(jn.default.instancePath,s.errorPath))),t.assign((0,ft._)`${o}.schemaPath`,(0,ft.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,ft._)`${o}.schema`,r),t.assign((0,ft._)`${o}.data`,n))})}En.extendErrors=DEe;function oz(t,e){let r=t.const("err",e);t.if((0,ft._)`${jn.default.vErrors} === null`,()=>t.assign(jn.default.vErrors,(0,ft._)`[${r}]`),(0,ft._)`${jn.default.vErrors}.push(${r})`),t.code((0,ft._)`${jn.default.errors}++`)}function az(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,ft._)`new ${t.ValidationError}(${e})`):(r.assign((0,ft._)`${n}.errors`,e),r.return(!1))}var nl={keyword:new ft.Name("keyword"),schemaPath:new ft.Name("schemaPath"),params:new ft.Name("params"),propertyName:new ft.Name("propertyName"),message:new ft.Name("message"),schema:new ft.Name("schema"),parentSchema:new ft.Name("parentSchema")};function cz(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,ft._)`{}`:CEe(t,e,r)}function CEe(t,e,r={}){let{gen:n,it:i}=t,s=[wEe(i,r),EEe(t,r)];return SEe(t,e,s),n.object(...s)}function wEe({errorPath:t},{instancePath:e}){let r=e?(0,ft.str)`${t}${(0,Ox.getErrorPath)(e,Ox.Type.Str)}`:t;return[jn.default.instancePath,(0,ft.strConcat)(jn.default.instancePath,r)]}function EEe({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,ft.str)`${e}/${t}`;return r&&(i=(0,ft.str)`${i}${(0,Ox.getErrorPath)(r,Ox.Type.Str)}`),[nl.schemaPath,i]}function SEe(t,{params:e,message:r},n){let{keyword:i,data:s,schemaValue:o,it:a}=t,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:p}=a;n.push([nl.keyword,i],[nl.params,typeof e=="function"?e(t):e||(0,ft._)`{}`]),c.messages&&n.push([nl.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([nl.schema,o],[nl.parentSchema,(0,ft._)`${l}${p}`],[jn.default.data,s]),u&&n.push([nl.propertyName,u])}});var lz=E(cd=>{"use strict";f();Object.defineProperty(cd,"__esModule",{value:!0});cd.boolOrEmptySchema=cd.topBoolOrEmptySchema=void 0;var TEe=Eh(),AEe=We(),_Ee=xa(),PEe={message:"boolean schema is false"};function FEe(t){let{gen:e,schema:r,validateName:n}=t;r===!1?uz(t,!1):typeof r=="object"&&r.$async===!0?e.return(_Ee.default.data):(e.assign((0,AEe._)`${n}.errors`,null),e.return(!0))}cd.topBoolOrEmptySchema=FEe;function kEe(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),uz(t)):r.var(e,!0)}cd.boolOrEmptySchema=kEe;function uz(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,TEe.reportError)(i,PEe,void 0,e)}});var B_=E(ud=>{"use strict";f();Object.defineProperty(ud,"__esModule",{value:!0});ud.getRules=ud.isJSONType=void 0;var IEe=["string","number","integer","boolean","null","object","array"],NEe=new Set(IEe);function REe(t){return typeof t=="string"&&NEe.has(t)}ud.isJSONType=REe;function OEe(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}ud.getRules=OEe});var L_=E(Dc=>{"use strict";f();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.shouldUseRule=Dc.shouldUseGroup=Dc.schemaHasRulesForType=void 0;function MEe({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&pz(t,n)}Dc.schemaHasRulesForType=MEe;function pz(t,e){return e.rules.some(r=>dz(t,r))}Dc.shouldUseGroup=pz;function dz(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Dc.shouldUseRule=dz});var Sh=E(Sn=>{"use strict";f();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.reportTypeError=Sn.checkDataTypes=Sn.checkDataType=Sn.coerceAndCheckDataType=Sn.getJSONTypes=Sn.getSchemaTypes=Sn.DataType=void 0;var BEe=B_(),LEe=L_(),$Ee=Eh(),Ve=We(),fz=vt(),ld;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ld||(Sn.DataType=ld={}));function jEe(t){let e=mz(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Sn.getSchemaTypes=jEe;function mz(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(BEe.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Sn.getJSONTypes=mz;function UEe(t,e){let{gen:r,data:n,opts:i}=t,s=qEe(e,i.coerceTypes),o=e.length>0&&!(s.length===0&&e.length===1&&(0,LEe.schemaHasRulesForType)(t,e[0]));if(o){let a=j_(e,n,i.strictNumbers,ld.Wrong);r.if(a,()=>{s.length?zEe(t,e,s):U_(t)})}return o}Sn.coerceAndCheckDataType=UEe;var hz=new Set(["string","number","integer","boolean","null"]);function qEe(t,e){return e?t.filter(r=>hz.has(r)||e==="array"&&r==="array"):[]}function zEe(t,e,r){let{gen:n,data:i,opts:s}=t,o=n.let("dataType",(0,Ve._)`typeof ${i}`),a=n.let("coerced",(0,Ve._)`undefined`);s.coerceTypes==="array"&&n.if((0,Ve._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Ve._)`${i}[0]`).assign(o,(0,Ve._)`typeof ${i}`).if(j_(e,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,Ve._)`${a} !== undefined`);for(let u of r)(hz.has(u)||u==="array"&&s.coerceTypes==="array")&&c(u);n.else(),U_(t),n.endIf(),n.if((0,Ve._)`${a} !== undefined`,()=>{n.assign(i,a),GEe(t,a)});function c(u){switch(u){case"string":n.elseIf((0,Ve._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,Ve._)`"" + ${i}`).elseIf((0,Ve._)`${i} === null`).assign(a,(0,Ve._)`""`);return;case"number":n.elseIf((0,Ve._)`${o} == "boolean" || ${i} === null
|
|
1922
1926
|
|| (${o} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Ve._)`+${i}`);return;case"integer":n.elseIf((0,Ve._)`${o} === "boolean" || ${i} === null
|
|
1923
1927
|
|| (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Ve._)`+${i}`);return;case"boolean":n.elseIf((0,Ve._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Ve._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Ve._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Ve._)`${o} === "string" || ${o} === "number"
|
|
@@ -2362,7 +2366,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
|
|
|
2362
2366
|
`)+`\r
|
|
2363
2367
|
\r
|
|
2364
2368
|
`+r)}function _l(t,e,r,n,i,s){if(t.listenerCount("wsClientError")){let o=new Error(i);Error.captureStackTrace(o,_l),t.emit("wsClientError",o,r,e)}else sy(r,n,i,s)}});var wne=E((qxt,Cne)=>{f();var U2=class{constructor(e,r,n){this.etaBufferLength=e||100,this.valueBuffer=[n],this.timeBuffer=[r],this.eta="0"}update(e,r,n){this.valueBuffer.push(r),this.timeBuffer.push(e),this.calculate(n-r)}getTime(){return this.eta}calculate(e){let r=this.valueBuffer.length,n=Math.min(this.etaBufferLength,r),i=this.valueBuffer[r-1]-this.valueBuffer[r-n],s=this.timeBuffer[r-1]-this.timeBuffer[r-n],o=i/s;this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);let a=Math.ceil(e/o/1e3);isNaN(a)?this.eta="NULL":isFinite(a)?a>1e7?this.eta="INF":a<0?this.eta=0:this.eta=a:this.eta="INF"}};Cne.exports=U2});var z2=E((Gxt,Ene)=>{f();var Fl=require("readline"),q2=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("\x1B7")}cursorRestore(){this.stream.isTTY&&this.stream.write("\x1B8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("\x1B[?25h"):this.stream.write("\x1B[?25l"))}cursorTo(e=null,r=null){this.stream.isTTY&&Fl.cursorTo(this.stream,e,r)}cursorRelative(e=null,r=null){this.stream.isTTY&&(this.dy=this.dy+r,Fl.moveCursor(this.stream,e,r))}cursorRelativeReset(){this.stream.isTTY&&(Fl.moveCursor(this.stream,0,-this.dy),Fl.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Fl.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Fl.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Fl.clearScreenDown(this.stream)}newline(){this.stream.write(`
|
|
2365
|
-
`),this.dy++}write(e,r=!1){this.linewrap===!0&&r===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("\x1B[?7h"):this.stream.write("\x1B[?7l"))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}};Ene.exports=q2});var Tne=E((Hxt,Sne)=>{"use strict";f();Sne.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var _ne=E((Wxt,Ane)=>{"use strict";f();var l6e=Tne();Ane.exports=t=>typeof t=="string"?t.replace(l6e(),""):t});var Fne=E((Yxt,G2)=>{"use strict";f();var Pne=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);G2.exports=Pne;G2.exports.default=Pne});var Ine=E((Zxt,kne)=>{"use strict";f();kne.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 Rne=E((e0t,V2)=>{"use strict";f();var p6e=_ne(),d6e=Fne(),f6e=Ine(),Nne=t=>{if(typeof t!="string"||t.length===0||(t=p6e(t),t.length===0))return 0;t=t.replace(f6e()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=d6e(n)?2:1)}return e};V2.exports=Nne;V2.exports.default=Nne});var H2=E((r0t,One)=>{f();One.exports=function(e,r,n){if(r.autopadding!==!0)return e;function i(s,o){return(r.autopaddingChar+s).slice(-o)}switch(n){case"percentage":return i(e,3);default:return e}}});var K2=E((i0t,Mne)=>{f();Mne.exports=function(e,r){let n=Math.round(e*r.barsize),i=r.barsize-n;return r.barCompleteString.substr(0,n)+r.barGlue+r.barIncompleteString.substr(0,i)}});var W2=E((o0t,Bne)=>{f();Bne.exports=function(e,r,n){function i(o){return n?n*Math.round(o/n):o}function s(o){return(r.autopaddingChar+o).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(i(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(i(e%60))+"s":e>10?s(i(e))+"s":s(e)+"s"}});var J2=E((c0t,Lne)=>{f();var m6e=Rne(),h6e=H2(),g6e=K2(),y6e=W2();Lne.exports=function(e,r,n){let i=e.format,s=e.formatTime||y6e,o=e.formatValue||h6e,a=e.formatBar||g6e,c=Math.floor(r.progress*100)+"",u=r.stopTime||Date.now(),l=Math.round((u-r.startTime)/1e3),p=Object.assign({},n,{bar:a(r.progress,e),percentage:o(c,e,"percentage"),total:o(r.total,e,"total"),value:o(r.value,e,"value"),eta:o(r.eta,e,"eta"),eta_formatted:s(r.eta,e,5),duration:o(l,e,"duration"),duration_formatted:s(l,e,1)});i=i.replace(/\{(\w+)\}/g,function(m,g){return typeof p[g]<"u"?p[g]:m});let d=Math.max(0,r.maxWidth-m6e(i)-2),h=Math.floor(d/2);switch(e.align){case"right":i=d>0?" ".repeat(d)+i:i;break;case"center":i=h>0?" ".repeat(h)+i:i;break;case"left":default:break}return i}});var XD=E((l0t,$ne)=>{f();function Gt(t,e){return typeof t>"u"||t===null?e:t}$ne.exports={parse:function(e,r){let n={},i=Object.assign({},r,e);return n.throttleTime=1e3/Gt(i.fps,10),n.stream=Gt(i.stream,process.stderr),n.terminal=Gt(i.terminal,null),n.clearOnComplete=Gt(i.clearOnComplete,!1),n.stopOnComplete=Gt(i.stopOnComplete,!1),n.barsize=Gt(i.barsize,40),n.align=Gt(i.align,"left"),n.hideCursor=Gt(i.hideCursor,!1),n.linewrap=Gt(i.linewrap,!1),n.barGlue=Gt(i.barGlue,""),n.barCompleteChar=Gt(i.barCompleteChar,"="),n.barIncompleteChar=Gt(i.barIncompleteChar,"-"),n.format=Gt(i.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=Gt(i.formatTime,null),n.formatValue=Gt(i.formatValue,null),n.formatBar=Gt(i.formatBar,null),n.etaBufferLength=Gt(i.etaBuffer,10),n.etaAsynchronousUpdate=Gt(i.etaAsynchronousUpdate,!1),n.progressCalculationRelative=Gt(i.progressCalculationRelative,!1),n.synchronousUpdate=Gt(i.synchronousUpdate,!0),n.noTTYOutput=Gt(i.noTTYOutput,!1),n.notTTYSchedule=Gt(i.notTTYSchedule,2e3),n.emptyOnZero=Gt(i.emptyOnZero,!1),n.forceRedraw=Gt(i.forceRedraw,!1),n.autopadding=Gt(i.autopadding,!1),n.gracefulExit=Gt(i.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Gt(e.autopaddingChar," "):"",e}}});var Y2=E((f0t,Une)=>{f();var jne=wne(),b6e=z2(),v6e=J2(),x6e=XD(),D6e=require("events");Une.exports=class extends D6e{constructor(e){super(),this.options=x6e.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new b6e(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new jne(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format=="function"?this.options.format:v6e}render(e=!1){let r={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,r,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,r,n){this.value=r||0,this.total=typeof e<"u"&&e>=0?e:100,this.startValue=r||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new jne(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,r)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,r={}){typeof e=="number"&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e=="object"?e:r)||{};this.emit("update",this.total,this.value);for(let i in n)this.payload[i]=n[i];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,r={}){typeof e=="object"?this.update(this.value+1,e):this.update(this.value+e,r)}getTotal(){return this.total}setTotal(e){typeof e<"u"&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}});var zne=E((g0t,qne)=>{f();var C6e=Y2(),w6e=XD();qne.exports=class extends C6e{constructor(e,r){super(w6e.parse(e,r)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,r){this.timer&&(super.update(e,r),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,r,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,r,n),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}});var Vne=E((v0t,Gne)=>{f();var E6e=z2(),S6e=Y2(),T6e=XD(),A6e=require("events");Gne.exports=class extends A6e{constructor(e,r){super(),this.bars=[],this.options=T6e.parse(e,r),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new E6e(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,r,n,i={}){let s=new S6e(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(s),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,r,n),this.emit("start")),s}remove(e){let r=this.bars.indexOf(e);return r<0?!1:(this.bars.splice(r,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}}});var Kne=E((D0t,Hne)=>{f();Hne.exports={format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"}});var Jne=E((w0t,Wne)=>{f();Wne.exports={format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var Xne=E((S0t,Yne)=>{f();Yne.exports={format:" \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var Qne=E((A0t,Zne)=>{f();Zne.exports={format:" {bar}\u25A0 {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u25A0",barIncompleteChar:" "}});var tie=E((P0t,eie)=>{f();var _6e=Kne(),P6e=Jne(),F6e=Xne(),k6e=Qne();eie.exports={legacy:_6e,shades_classic:P6e,shades_grey:F6e,rect:k6e}});var iie=E((k0t,nie)=>{f();var rie=zne(),I6e=Vne(),N6e=tie(),R6e=J2(),O6e=H2(),M6e=K2(),B6e=W2();nie.exports={Bar:rie,SingleBar:rie,MultiBar:I6e,Presets:N6e,Format:{Formatter:R6e,BarFormat:M6e,ValueFormat:O6e,TimeFormat:B6e}}});var lie=E(($0t,uie)=>{f();uie.exports=()=>/[#*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\uDC70\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-\uDED7\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\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\uDD3D\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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]|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\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});var b9e={};dy(b9e,{default:()=>y9e});module.exports=_se(b9e);f();f();try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="504f6626-f966-4710-a196-15703e4eb8b9",t._sentryDebugIdIdentifier="sentry-dbid-504f6626-f966-4710-a196-15703e4eb8b9")}catch{}f();var yse=require("../core/index.cjs"),bse=require("../node/index.cjs"),vse=require("../server/index.cjs"),xse=U(iN(),1);f();f();var A0=require("fs/promises");xf();Vr();Up();Ot();var ar=U(lr(),1),Id=require("node:path");Ki();Fi();Rr();Ar();xu();var IFe="https://cdn.builder.io",RK=async(t,e)=>{console.log(""),Et((0,ar.bgCyan)((0,ar.bold)((0,ar.white)(" figma migrate ")))+" "+(0,ar.dim)(Ge));let{builderPrivateKey:r,builderPublicKey:n}=await Lt(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await st("figma publish started",{spaceId:n});let i=await Tu(t);if(i.length>0){await st("figma migrate with existing files",{spaceId:n}),I.warning(`${(0,ar.yellow)("This repo already has figma mappings in:")}
|
|
2369
|
+
`),this.dy++}write(e,r=!1){this.linewrap===!0&&r===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("\x1B[?7h"):this.stream.write("\x1B[?7l"))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}};Ene.exports=q2});var Tne=E((Hxt,Sne)=>{"use strict";f();Sne.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var _ne=E((Wxt,Ane)=>{"use strict";f();var l6e=Tne();Ane.exports=t=>typeof t=="string"?t.replace(l6e(),""):t});var Fne=E((Yxt,G2)=>{"use strict";f();var Pne=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);G2.exports=Pne;G2.exports.default=Pne});var Ine=E((Zxt,kne)=>{"use strict";f();kne.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 Rne=E((e0t,V2)=>{"use strict";f();var p6e=_ne(),d6e=Fne(),f6e=Ine(),Nne=t=>{if(typeof t!="string"||t.length===0||(t=p6e(t),t.length===0))return 0;t=t.replace(f6e()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=d6e(n)?2:1)}return e};V2.exports=Nne;V2.exports.default=Nne});var H2=E((r0t,One)=>{f();One.exports=function(e,r,n){if(r.autopadding!==!0)return e;function i(s,o){return(r.autopaddingChar+s).slice(-o)}switch(n){case"percentage":return i(e,3);default:return e}}});var K2=E((i0t,Mne)=>{f();Mne.exports=function(e,r){let n=Math.round(e*r.barsize),i=r.barsize-n;return r.barCompleteString.substr(0,n)+r.barGlue+r.barIncompleteString.substr(0,i)}});var W2=E((o0t,Bne)=>{f();Bne.exports=function(e,r,n){function i(o){return n?n*Math.round(o/n):o}function s(o){return(r.autopaddingChar+o).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(i(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(i(e%60))+"s":e>10?s(i(e))+"s":s(e)+"s"}});var J2=E((c0t,Lne)=>{f();var m6e=Rne(),h6e=H2(),g6e=K2(),y6e=W2();Lne.exports=function(e,r,n){let i=e.format,s=e.formatTime||y6e,o=e.formatValue||h6e,a=e.formatBar||g6e,c=Math.floor(r.progress*100)+"",u=r.stopTime||Date.now(),l=Math.round((u-r.startTime)/1e3),p=Object.assign({},n,{bar:a(r.progress,e),percentage:o(c,e,"percentage"),total:o(r.total,e,"total"),value:o(r.value,e,"value"),eta:o(r.eta,e,"eta"),eta_formatted:s(r.eta,e,5),duration:o(l,e,"duration"),duration_formatted:s(l,e,1)});i=i.replace(/\{(\w+)\}/g,function(m,g){return typeof p[g]<"u"?p[g]:m});let d=Math.max(0,r.maxWidth-m6e(i)-2),h=Math.floor(d/2);switch(e.align){case"right":i=d>0?" ".repeat(d)+i:i;break;case"center":i=h>0?" ".repeat(h)+i:i;break;case"left":default:break}return i}});var XD=E((l0t,$ne)=>{f();function Gt(t,e){return typeof t>"u"||t===null?e:t}$ne.exports={parse:function(e,r){let n={},i=Object.assign({},r,e);return n.throttleTime=1e3/Gt(i.fps,10),n.stream=Gt(i.stream,process.stderr),n.terminal=Gt(i.terminal,null),n.clearOnComplete=Gt(i.clearOnComplete,!1),n.stopOnComplete=Gt(i.stopOnComplete,!1),n.barsize=Gt(i.barsize,40),n.align=Gt(i.align,"left"),n.hideCursor=Gt(i.hideCursor,!1),n.linewrap=Gt(i.linewrap,!1),n.barGlue=Gt(i.barGlue,""),n.barCompleteChar=Gt(i.barCompleteChar,"="),n.barIncompleteChar=Gt(i.barIncompleteChar,"-"),n.format=Gt(i.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=Gt(i.formatTime,null),n.formatValue=Gt(i.formatValue,null),n.formatBar=Gt(i.formatBar,null),n.etaBufferLength=Gt(i.etaBuffer,10),n.etaAsynchronousUpdate=Gt(i.etaAsynchronousUpdate,!1),n.progressCalculationRelative=Gt(i.progressCalculationRelative,!1),n.synchronousUpdate=Gt(i.synchronousUpdate,!0),n.noTTYOutput=Gt(i.noTTYOutput,!1),n.notTTYSchedule=Gt(i.notTTYSchedule,2e3),n.emptyOnZero=Gt(i.emptyOnZero,!1),n.forceRedraw=Gt(i.forceRedraw,!1),n.autopadding=Gt(i.autopadding,!1),n.gracefulExit=Gt(i.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Gt(e.autopaddingChar," "):"",e}}});var Y2=E((f0t,Une)=>{f();var jne=wne(),b6e=z2(),v6e=J2(),x6e=XD(),D6e=require("events");Une.exports=class extends D6e{constructor(e){super(),this.options=x6e.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new b6e(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new jne(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format=="function"?this.options.format:v6e}render(e=!1){let r={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,r,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,r,n){this.value=r||0,this.total=typeof e<"u"&&e>=0?e:100,this.startValue=r||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new jne(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,r)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,r={}){typeof e=="number"&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e=="object"?e:r)||{};this.emit("update",this.total,this.value);for(let i in n)this.payload[i]=n[i];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,r={}){typeof e=="object"?this.update(this.value+1,e):this.update(this.value+e,r)}getTotal(){return this.total}setTotal(e){typeof e<"u"&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}});var zne=E((g0t,qne)=>{f();var C6e=Y2(),w6e=XD();qne.exports=class extends C6e{constructor(e,r){super(w6e.parse(e,r)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,r){this.timer&&(super.update(e,r),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,r,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,r,n),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}});var Vne=E((v0t,Gne)=>{f();var E6e=z2(),S6e=Y2(),T6e=XD(),A6e=require("events");Gne.exports=class extends A6e{constructor(e,r){super(),this.bars=[],this.options=T6e.parse(e,r),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new E6e(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,r,n,i={}){let s=new S6e(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(s),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,r,n),this.emit("start")),s}remove(e){let r=this.bars.indexOf(e);return r<0?!1:(this.bars.splice(r,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}}});var Kne=E((D0t,Hne)=>{f();Hne.exports={format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"}});var Jne=E((w0t,Wne)=>{f();Wne.exports={format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var Xne=E((S0t,Yne)=>{f();Yne.exports={format:" \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var Qne=E((A0t,Zne)=>{f();Zne.exports={format:" {bar}\u25A0 {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u25A0",barIncompleteChar:" "}});var tie=E((P0t,eie)=>{f();var _6e=Kne(),P6e=Jne(),F6e=Xne(),k6e=Qne();eie.exports={legacy:_6e,shades_classic:P6e,shades_grey:F6e,rect:k6e}});var iie=E((k0t,nie)=>{f();var rie=zne(),I6e=Vne(),N6e=tie(),R6e=J2(),O6e=H2(),M6e=K2(),B6e=W2();nie.exports={Bar:rie,SingleBar:rie,MultiBar:I6e,Presets:N6e,Format:{Formatter:R6e,BarFormat:M6e,ValueFormat:O6e,TimeFormat:B6e}}});var lie=E(($0t,uie)=>{f();uie.exports=()=>/[#*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\uDC70\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-\uDED7\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\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\uDD3D\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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]|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\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});var b9e={};dy(b9e,{default:()=>y9e});module.exports=_se(b9e);f();f();try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="38b8e2ae-45e5-4bfe-80e8-1e346556af5c",t._sentryDebugIdIdentifier="sentry-dbid-38b8e2ae-45e5-4bfe-80e8-1e346556af5c")}catch{}f();var yse=require("../core/index.cjs"),bse=require("../node/index.cjs"),vse=require("../server/index.cjs"),xse=U(iN(),1);f();f();var A0=require("fs/promises");xf();Vr();Up();Ot();var ar=U(lr(),1),Id=require("node:path");Ki();Fi();Rr();Ar();xu();var IFe="https://cdn.builder.io",RK=async(t,e)=>{console.log(""),Et((0,ar.bgCyan)((0,ar.bold)((0,ar.white)(" figma migrate ")))+" "+(0,ar.dim)(Ge));let{builderPrivateKey:r,builderPublicKey:n}=await Lt(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await st("figma publish started",{spaceId:n});let i=await Tu(t);if(i.length>0){await st("figma migrate with existing files",{spaceId:n}),I.warning(`${(0,ar.yellow)("This repo already has figma mappings in:")}
|
|
2366
2370
|
|
|
2367
2371
|
${i.map(u=>` - ${(0,Id.relative)(t.getAppRootDir(),u)}`).join(`
|
|
2368
2372
|
`)}
|
|
@@ -4726,7 +4730,7 @@ Re-run your command and try again. If this problem persists, please contact us a
|
|
|
4726
4730
|
Learn more at https://www.builder.io/c/docs/component-indexing#generating-code.
|
|
4727
4731
|
`)},eN=async(t,e)=>{let{designSystemPackage:r,skipDetailedGrouping:n,force:i,skipHeader:s,listIndexedRepos:o,components:a,include:c,exclude:u,instructions:l}=e,{designSystemName:p}=e,d=Date.now();Il.getCurrentScope().setTag("operation","repo-indexing"),Il.getCurrentScope().setTag("designSystemPackage",r||"none"),s||(console.log(),Et((0,Ko.bgCyan)((0,Ko.bold)((0,Ko.white)(" repository indexing ")))+" "+(0,Ko.dim)(Ge)));let h=await Lt(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0}),m=await xie(h);if(o){let L=await Zh(h);if(L.length===0){console.log("No indexed repositories found");return}console.log("Indexed repositories:"),L.forEach((H,z)=>{console.log(`${z+1}. ${H.designSystemName}`)});return}let g=Hie.default.randomUUID().slice(0,8);Il.getCurrentScope().setTag("sessionId",g);try{let L=await s9e(h,e.debug);L.isAllowed||(I.error(`Error: ${L.reason||"Access denied for repository indexing"}`),process.exit(1))}catch(L){if(L instanceof yt){Gr(L);return}I.error("Error: We were unable to determine if your subscription is an enterprise subscription. Contact support@builder.io for more information."),process.exit(1)}let y=await fK(t,r),b=y.version,D=y.name,C=await Zh(h,{onlyEditAccess:!0}),x,v;try{if(p===void 0){let L=[...C.map(z=>({value:z.id,label:z.designSystemName+" ("+z.scope+")"+(e.debug?` - ${z.id}`:"")}))],H="new";if(L.length>0&&(H=await rn({message:"Which design system would you like to index? You can bypass this by re-running this command with the --designSystemName flag.",options:[...L,{value:"new",label:"Create a new design system"}]}),xe(H)))return;if(H==="new"){let z=await MF(h,m);if(!z)return;v=z;let N=await wt({message:"What is your design system name?",initialValue:D,validate(O){if(O.trim().length===0)return"A design system name is required"}});if(xe(N))return;if(p=N,x=hK(h,p,v,C),x){if(v==="organization"&&x.spaceId!==h.builderPublicKey){I.warn("A design system with this name already exists within your organization, but you do not have permission to re-index it.");return}if(!e.yes){let O=await xr({message:`A design system with the name "${p}" already exists in your ${v}. Would you like to proceed with this design system?`});if(xe(O)||!O)return}}}else{if(x=C.find(z=>z.id===H),v=x.scope,v==="organization"&&(x.spaceId!==h.builderPublicKey||!m?.isAdminInOrganization)){I.warn("A design system with this name already exists within your organization, but you do not have permission to re-index it.");return}p=x.designSystemName}}else if(x=mK(p,C),x){if(v=x.scope,v==="organization"&&(x.spaceId!==h.builderPublicKey||!m?.isAdminInOrganization)){I.warn("A design system with this name already exists within your organization, but you do not have permission to re-index it.");return}}else{if(!e.yes){let H=await xr({message:`No indexed design system named "${p}" exists. Would you like to proceed with creating a new design system index?`});if(xe(H)||!H)return}let L=await MF(h,m,e.scope);if(!L)return;v=L}}catch(L){let H=new Ct("Failed to select a design system",{cause:L});Il.captureException(H,{tags:{operation:"repo-indexing",sessionId:g,designSystemPackage:r||"none"}}),console.log("Sorry, we encountered a problem when selecting a design system to index. Please try again. If the issue persists, contact support@builder.io.");return}let w=Wo(),S={folders:[{path:t.getCwdDir()}]};if(r)if((0,Kie.isAbsolute)(r))S.folders.push({path:r});else{let L=t.join(t.getAppRootDir(),`node_modules/${r}`);await t.exists(L)||(I.error(`Design system package ${r} is not installed. Please install it first.`),process.exit(1))}e.includeDirectories&&e.includeDirectories.split(",").forEach(H=>{let z=H.trim();z.length>0&&S.folders.push({path:z})}),e.addDirectory&&(Array.isArray(e.addDirectory)?e.addDirectory:[e.addDirectory]).forEach(H=>{let z=H.trim();z.length>0&&S.folders.push({path:z})}),e.debug&&console.log("Workspace config",S);let A=x?.id||"";if(!x&&p){let L=await tC(t);A=await gK(h,{designSystemName:p,designSystemVersion:b,designSystemPackage:r,status:"in-progress",scope:v,gitOriginUrl:L?.originUrl,gitRelativePath:L?.recommendedRoot,cliArgs:process.argv.slice(2)})}if(await yK(t)){if(I.warn(cy(`\u26A0\uFE0F Warning: Existing ${OF} folder found.
|
|
4728
4732
|
|
|
4729
|
-
For best results, please delete the repo-indexing folder in your project before running this command. Indexed component documentation can be viewed at https://builder.io/app/design-system-intelligence after completion.`,(process.stdout.columns||80)-4)),!e.yes){let L=await xr({message:"Continue with existing files?"});if(typeof L=="symbol"||!L){I.info("Repository indexing canceled.");return}}w=Wo()}w.start("Indexing repository");let _={sessionId:g,commandString:process.argv.slice(2).join(" "),forceBoolean:e.force||!1,currentDirectory:t.getCwdDir(),skipDetailedGroupingBoolean:e.skipDetailedGrouping,designSystemPackage:r||"none",designSystemPackageName:D||"none",designSystemVersion:b||"none",designSystemId:A||"none",workspaceConfig:S,includeDirectories:e.includeDirectories||"none",addDirectory:e.addDirectory,debugBoolean:e.debug||!1,listIndexedReposBoolean:o||!1,userId:h.userId,spaceId:h.builderPublicKey,instructions:l};try{await st("repo indexing started",_),w.message("Looking for components");let L=await i9e(h,A,e.debug),H=L.find(re=>_j(re)),z=L.filter(re=>Pj(re)),N=L.filter(re=>Fj(re)),O=r9e(a),B=O.length>0,[q,ie,j,G]=await Promise.all([Eie(t,h,`${g}-component-discovery`,N,{designSystemPackage:r,designSystemVersion:b,workspaceConfig:S,debug:e.debug,force:i,specificComponents:O,include:c,exclude:u,instructions:l}),Rie(t,h,`${g}-installation-discovery`,{designSystemId:A,designSystemPackage:r,designSystemVersion:b,workspaceConfig:S,debug:e.debug,include:c,exclude:u,instructions:l}),!B&&Aie(t,h,`${g}-icon-discovery`,{designSystemPackage:r,workspaceConfig:S,debug:e.debug,include:c,exclude:u,instructions:l})||void 0,!B&&kie(t,h,`${g}-token-discovery`,z,{designSystemPackage:r,workspaceConfig:S,debug:e.debug,force:i,include:c,exclude:u,instructions:l})]),{numComponentsFound:J,componentsToIndex:se,discoveredComponents:De}=q,{tokenGroupsToIndex:ge,discoveredTokenGroups:oe}=G||{tokenGroupsToIndex:[],discoveredTokenGroups:[]};if(O.length>0&&se.length===0){I.info("No changes detected for the specified components. Use --force to reindex anyway.");return}let At=!B&&(i||!H||H.hash!==j?.hash),rr=!B&&ge.length>0;if(J===0&&!At&&!rr&&(I.warn(cy("We were unable to index your repository because no components were found. If your components are a dependency of your project be sure to specify the package name using --designSystemPackage when re-running this command.",(process.stdout.columns||80)-4)),process.exit(1)),se.length===0&&!At&&!rr){I.info(cy("Component index is up to date!",(process.stdout.columns||80)-4));return}if(n)return;let ne=L.find(re=>OT(re));if(i){let re=N.length;if(w.stop(`${J} new and ${re} existing component docs found`),re>0){let
|
|
4733
|
+
For best results, please delete the repo-indexing folder in your project before running this command. Indexed component documentation can be viewed at https://builder.io/app/design-system-intelligence after completion.`,(process.stdout.columns||80)-4)),!e.yes){let L=await xr({message:"Continue with existing files?"});if(typeof L=="symbol"||!L){I.info("Repository indexing canceled.");return}}w=Wo()}w.start("Indexing repository");let _={sessionId:g,commandString:process.argv.slice(2).join(" "),forceBoolean:e.force||!1,currentDirectory:t.getCwdDir(),skipDetailedGroupingBoolean:e.skipDetailedGrouping,designSystemPackage:r||"none",designSystemPackageName:D||"none",designSystemVersion:b||"none",designSystemId:A||"none",workspaceConfig:S,includeDirectories:e.includeDirectories||"none",addDirectory:e.addDirectory,debugBoolean:e.debug||!1,listIndexedReposBoolean:o||!1,userId:h.userId,spaceId:h.builderPublicKey,instructions:l};try{await st("repo indexing started",_),w.message("Looking for components");let L=await i9e(h,A,e.debug),H=L.find(re=>_j(re)),z=L.filter(re=>Pj(re)),N=L.filter(re=>Fj(re)),O=r9e(a),B=O.length>0,[q,ie,j,G]=await Promise.all([Eie(t,h,`${g}-component-discovery`,N,{designSystemPackage:r,designSystemVersion:b,workspaceConfig:S,debug:e.debug,force:i,specificComponents:O,include:c,exclude:u,instructions:l}),Rie(t,h,`${g}-installation-discovery`,{designSystemId:A,designSystemPackage:r,designSystemVersion:b,workspaceConfig:S,debug:e.debug,include:c,exclude:u,instructions:l}),!B&&Aie(t,h,`${g}-icon-discovery`,{designSystemPackage:r,workspaceConfig:S,debug:e.debug,include:c,exclude:u,instructions:l})||void 0,!B&&kie(t,h,`${g}-token-discovery`,z,{designSystemPackage:r,workspaceConfig:S,debug:e.debug,force:i,include:c,exclude:u,instructions:l})]),{numComponentsFound:J,componentsToIndex:se,discoveredComponents:De}=q,{tokenGroupsToIndex:ge,discoveredTokenGroups:oe}=G||{tokenGroupsToIndex:[],discoveredTokenGroups:[]};if(O.length>0&&se.length===0){I.info("No changes detected for the specified components. Use --force to reindex anyway.");return}let At=!B&&(i||!H||H.hash!==j?.hash),rr=!B&&ge.length>0;if(J===0&&!At&&!rr&&(I.warn(cy("We were unable to index your repository because no components were found. If your components are a dependency of your project be sure to specify the package name using --designSystemPackage when re-running this command.",(process.stdout.columns||80)-4)),process.exit(1)),se.length===0&&!At&&!rr){I.info(cy("Component index is up to date!",(process.stdout.columns||80)-4));return}if(n)return;let ne=L.find(re=>OT(re));if(i){let re=N.length;if(w.stop(`${J} new and ${re} existing component docs found`),re>0){let pe=await xr({message:"Using --force will remove existing component documents. Continue?"});if(typeof pe=="symbol"||!pe){w.stop("Canceled");return}}w.start("")}let Ze=0,ee=[];w.stop("Started indexing component docs:");let Te=new Q2.default.MultiBar({clearOnComplete:!1,hideCursor:!0},Q2.default.Presets.shades_grey);Te.log(""),Te.log(`Indexing in progress with ${ly} workers...`);let ve=Te.create(se.length+ge.length,Ze,{name:"Total"},{format:`${(0,Ko.cyan)("{bar}")} | {name} | {percentage}% | (Step {value}/{total})`}),Qe={};for(let re=0;re<ly;re++)Qe[re]={statusBar:Te.create(1,0,{name:"Starting..."},{format:"{name}"}),name:"Starting..."};let mt=(re,pe)=>{pe?Qe[re].name=`Indexing: ${pe}`:Qe[re].name=rC,ve.update(Ze)},br=async(re,pe)=>{let ce=[],K=[],Z=[...re],de=async ze=>{for(;Z.length>0;){let Ci=Z.shift();if(!Ci)break;switch(mt(ze,Ci.name),Ci.type){case"token":try{await Iie(t,h,`${g}-${Ci.name}-doc`,Ci,{designSystemId:A,designSystemPackage:r,designSystemVersion:b,workspaceConfig:S,debug:e.debug,include:c,exclude:u,instructions:l}),Ze++}catch{K.push(Ci.name)}break;case"component":try{await Lie(t,h,`${g}-${Ci.name}-doc`,Ci,{designSystemId:A,designSystemPackage:r,designSystemVersion:b,workspaceConfig:S,debug:e.debug,include:c,exclude:u,instructions:l}),w.message(`Component docs stored for ${Ci.name}`),ee.push(Ci),Ze++}catch{ce.push(Ci.name)}break}}mt(ze,"")},Ae=Array.from({length:pe},(ze,Ci)=>de(Ci)),Ee=0,ht=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],ke=setInterval(()=>{for(let ze=0;ze<ly;ze++)Qe[ze].name!==rC?Qe[ze].statusBar.update(0,{name:`${Qe[ze].name} ${ht[Ee]}`}):Qe[ze].statusBar.update(0,{name:rC});Ee=(Ee+1)%ht.length},100);await Promise.all(Ae),clearInterval(ke);for(let ze=0;ze<ly;ze++)Qe[ze].statusBar.update(0,{name:rC});return Te.stop(),{failedComponents:ce,failedTokens:K}},Zn=De.some(re=>!N.find(pe=>pe.name===re.name)),[Vc,Me,Rl]=await Promise.all([(async()=>{if(!ne||i||Zn||At||rr){w.message("Summarizing component library");try{return await $ie(t,h,De,{designSystemId:A,debug:e.debug,hasIcons:!B&&(j?.icons.length||0)>0,hasDesignTokens:!B&&oe.length>0}),w.message("Agent docs stored"),{success:!0}}catch(re){throw A&&await C0(h,{id:A,designSystemName:p,designSystemPackage:r,designSystemVersion:b,status:"failed",scope:v}),re}}return{success:!0}})(),j&&_ie(h,j,{designSystemId:A,debug:e.debug,sessionId:`${g}-icon-discovery`,previousHash:H?.hash,force:i}),br(B?se:[...se,...ge],ly)]),{failedComponents:fr,failedTokens:V}=Rl,te=[...De,...B?[]:oe];(j?.icons.length||0)>0&&te.push({name:kd,type:"icon"}),ie?.hash&&te.push({name:D0,type:"installation",hash:ie.hash,relevantFiles:ie.relevantFiles}),await jie(h,te,L.filter(re=>!OT(re)&&(O.length===0||O.includes(re.name)))),n9e(De,ee,d,fr,i,p,A,B?0:Me&&j?.icons.length||0,B?[]:oe,B?[]:ge,B?[]:V),await st("repo indexing completed",{sessionId:g,commandString:process.argv.slice(2).join(" "),forceBoolean:e.force,skipDetailedGroupingBoolean:e.skipDetailedGrouping,designSystemPackage:r||"none",designSystemId:A||"none",userId:h.userId,spaceId:h.builderPublicKey}),A&&await C0(h,{id:A,designSystemName:p,designSystemPackage:r,designSystemVersion:b,status:"completed",scope:v})}catch(L){throw I.error(L instanceof Error?L.message:String(L)),Il.captureException(L,{tags:{operation:"repo-indexing",sessionId:g,designSystemPackage:r||"none"},extra:{skipDetailedGrouping:n,force:i}}),e.debug&&console.error(`
|
|
4730
4734
|
Stack trace:`,L instanceof Error?L.stack:""),A&&await C0(h,{id:A,designSystemName:p,designSystemPackage:r,designSystemVersion:b,status:"failed",scope:v}),L}},i9e=async(t,e,r)=>{let n=new URL(`/design-systems/v1/${e}/docs`,je);n.searchParams.set("apiKey",t.builderPublicKey),n.searchParams.set("userId",t.userId);let i=await Ne(n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.builderPrivateKey}`}});if(!i.ok){let s=await i.text();return r&&console.error("API request failed:",i.status,s),[]}return await i.json()},s9e=async(t,e)=>{let r=new URL("/allow-feature",je);r.searchParams.set("feature","repo-indexing"),r.searchParams.set("apiKey",t.builderPublicKey),r.searchParams.set("userId",t.userId);let n=await Ne(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.builderPrivateKey}`}});if(!n.ok){let s=await n.text();return e&&console.error("API request failed:",n.status,s),{isAllowed:!1,reason:s||"Unable to verify permissions"}}let i=await n.json();return{isAllowed:i.isAllowed,reason:i.reason}};f();f();Vr();var nC=U(lr(),1);Ot();Ln();var Wie=(t,e)=>{try{let{builderPublicKey:r,userId:n,spaceName:i}=zF(t,e);if(r===void 0){I.message((0,nC.red)("\u2717 Not Authenticated to Builder.io")),I.message('Re-run this with the "auth" command to authenticate with Builder.io.');return}I.message((0,nC.green)("\u2713 Authenticated to Builder.io")),i!==void 0&&I.message(`Space Name: ${i}`),r!==void 0&&I.message(`Space ID: ${r}`),n!==void 0&&I.message(`User ID: ${n}`)}catch(r){let n=t.Sentry?.captureException(new Ct("Failed to read credentials",{cause:r}));I.error(`Sorry, we ran into a problem while checking authentication. Please try again. If this issue persists, contact support@builder.io, and provide the error ID: ${n}`)}};Vr();Ot();var Mr=U(lr(),1);Ar();Fi();var Jie=async(t,e,r)=>{if(e==="status"){Wie(t,r);return}if(r.reset){console.log(""),Et((0,Mr.bgCyan)((0,Mr.bold)((0,Mr.white)(" auth reset ")))+" "+(0,Mr.dim)(Ge)),kK(t)?(I.success("Credentials have been cleared successfully"),await st("auth reset",{})):I.info("No credentials found to clear"),Tr((0,Mr.bgGreen)((0,Mr.bold)((0,Mr.white)(" Done! \u{1F389} "))));return}console.log(""),Et((0,Mr.bgCyan)((0,Mr.bold)((0,Mr.white)(" auth ")))+" "+(0,Mr.dim)(Ge));let n=await rn({message:"Authenticate with Figma?",options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]});if(xe(n))return;let{builderPublicKey:i}=await Lt(t,r,{builderPrivateKey:!0,builderPublicKey:!0,force:!0,requireFigmaAuth:n?"always":void 0});await st("auth",{spaceId:i}),Tr((0,Mr.bgGreen)((0,Mr.bold)((0,Mr.white)(" Done! \u{1F389} "))))};f();Ot();var Br=U(lr(),1);Ar();Fd();Vr();Rr();nn();Yh();var mse=require("child_process"),hse=require("util");f();var Yie=require("child_process"),Xie=require("util"),vf=(0,Xie.promisify)(Yie.exec);async function Zie(){let t={};try{let{stdout:e}=await vf("node --version");t.node=e.trim().replace(/^v/,"")}catch{}try{let{stdout:e}=await vf("npm --version");t.npm=e.trim()}catch{}try{let{stdout:e}=await vf("pnpm --version");t.pnpm=e.trim()}catch{}try{let{stdout:e}=await vf("yarn --version");t.yarn=e.trim()}catch{}try{let{stdout:e}=await vf("bun --version");t.bun=e.trim()}catch{}try{let{stdout:e}=await vf("deno --version"),r=e.match(/deno (\d+\.\d+\.\d+)/);r&&(t.deno=r[1])}catch{}return t}function Qie(t){let e=[];return t.node&&e.push({key:"node",type:"mise",tool:"node",version:t.node}),t.npm&&e.push({key:"npm",type:"mise",tool:"npm",version:t.npm}),t.pnpm&&e.push({key:"pnpm",type:"mise",tool:"pnpm",version:t.pnpm}),t.yarn&&e.push({key:"yarn",type:"mise",tool:"yarn",version:t.yarn}),t.bun&&e.push({key:"bun",type:"mise",tool:"bun",version:t.bun}),t.deno&&e.push({key:"deno",type:"mise",tool:"deno",version:t.deno}),e}function ese(t){let e=[];return t.node&&e.push(`node v${t.node}`),t.npm&&e.push(`npm ${t.npm}`),t.pnpm&&e.push(`pnpm ${t.pnpm}`),t.yarn&&e.push(`yarn ${t.yarn}`),t.bun&&e.push(`bun ${t.bun}`),t.deno&&e.push(`deno ${t.deno}`),e.join(", ")}f();Ot();var ise=U(bF(),1),sse=require("path"),ose=require("fs"),o9e=new Set(["PATH","HOME","SHELL","USER","LOGNAME","TMPDIR","TEMP","TMP","PWD","OLDPWD","TERM","TERM_PROGRAM","TERM_PROGRAM_VERSION","TERM_SESSION_ID","LANG","LC_ALL","LC_CTYPE","LC_COLLATE","LC_TIME","LC_NUMERIC","LC_MONETARY","LC_MESSAGES","SHLVL","_","DISPLAY","COLORTERM","XDG_CONFIG_HOME","XDG_DATA_HOME","XDG_CACHE_HOME","XDG_RUNTIME_DIR","SSH_AUTH_SOCK","SSH_AGENT_PID","MANPATH","INFOPATH","HOMEBREW_PREFIX","HOMEBREW_CELLAR","HOMEBREW_REPOSITORY","COMMAND_MODE","__CFBundleIdentifier","__CF_USER_TEXT_ENCODING","Apple_PubSub_Socket_Render","SUDO_COMMAND","SUDO_USER","SUDO_UID","SUDO_GID","ORIGINAL_XDG_CURRENT_DESKTOP","EDITOR","VISUAL","PAGER","LESS","LESSOPEN","NODE","NODE_PATH","NODE_OPTIONS","CLAUDE_CODE_SSE_PORT","COLOR","CURSOR_TRACE_ID","ENABLE_IDE_INTEGRATION","GIT_ASKPASS","VSCODE_GIT_ASKPASS_EXTRA_ARGS","VSCODE_GIT_ASKPASS_MAIN","VSCODE_GIT_ASKPASS_NODE","VSCODE_GIT_IPC_HANDLE","VSCODE_INJECTION","VSCODE_INSPECTOR_OPTIONS","INIT_CWD","MallocNanoZone","OSLogRateLimit","XPC_FLAGS","XPC_SERVICE_NAME","PNPM_HOME"]),a9e=[/^npm_config_/,/^npm_command$/,/^npm_execpath$/,/^npm_lifecycle_/,/^npm_node_execpath$/,/^npm_package_/];function tse(t){return o9e.has(t)?!0:a9e.some(e=>e.test(t))}var rse={"Build & Development":[/^NODE_ENV$/,/^CI$/,/^NODE_OPTIONS$/,/^DEBUG$/,/^PORT$/,/^HOST$/,/^ENVIRONMENT$/,/^ENV$/,/^BUILD_/,/^DEV_/],"NPM & Package Managers":[/^NPM_/,/^YARN_/,/^PNPM_/,/^BUN_/],"Framework Specific":[/^NEXT_/,/^REACT_/,/^VITE_/,/^NUXT_/,/^VUE_/,/^ANGULAR_/,/^SVELTE_/,/^GATSBY_/,/^REMIX_/],"Public Variables":[/^PUBLIC_/,/^NEXT_PUBLIC_/,/^REACT_APP_/,/^VITE_/],"API & Services":[/^API_/,/^DATABASE_/,/^DB_/,/^REDIS_/,/^AWS_/,/^GCP_/,/^AZURE_/,/^STRIPE_/,/^SENTRY_/,/^VERCEL_/,/^NETLIFY_/],Custom:[]},nse=[/TOKEN/i,/KEY/i,/SECRET/i,/PASSWORD/i,/PASS/i,/AUTH/i,/PRIVATE/i,/CREDENTIAL/i],c9e=new Set(["NODE_ENV","CI","PORT","HOST","ENVIRONMENT"]);async function u9e(t,e){let r=[".env",".env.local",".env.development",".env.development.local"],n={};for(let i of r){let s=(0,sse.join)(e,i);if((0,ose.existsSync)(s))try{let o=(0,ise.config)({path:s});o.parsed&&Object.assign(n,o.parsed)}catch{}}return n}function l9e(t){let e=[];if(t)for(let[n,i]of Object.entries(t)){if(!i||tse(n))continue;let s="Custom";for(let[a,c]of Object.entries(rse))if(c.some(u=>u.test(n))){s=a;break}let o=nse.some(a=>a.test(n));e.push({key:n,value:i,category:s==="Custom"?".env Variables":s,isSecret:o,shouldPreselect:!0,fromDotEnv:!0})}let r=new Set(t?Object.keys(t):[]);for(let[n,i]of Object.entries(process.env)){if(r.has(n)||tse(n)||i===void 0)continue;let s="Custom";for(let[c,u]of Object.entries(rse))if(u.some(l=>l.test(n))){s=c;break}let o=nse.some(c=>c.test(n)),a=c9e.has(n)||n.startsWith("NEXT_PUBLIC_")||n.startsWith("REACT_APP_")||n.startsWith("VITE_")||n.startsWith("PUBLIC_")||n==="NODE_ENV"||n==="CI";e.push({key:n,value:i,category:s,isSecret:o,shouldPreselect:a})}return e.sort((n,i)=>n.category!==i.category?n.category.localeCompare(i.category):n.key.localeCompare(i.key)),e}async function ase(t,e){let r=await u9e(t,e),n=l9e(r);if(n.length===0)return[];let i=new Map;for(let m of n)i.has(m.category)||i.set(m.category,[]),i.get(m.category).push(m);let s=[];for(let[m,g]of i){s.push({value:`__category_${m}__`,label:`
|
|
4731
4735
|
${m} (${g.length})`,hint:""});for(let y of g){let b=y.isSecret?"***":y.value.length>50?`${y.value.substring(0,47)}...`:y.value;s.push({value:y.key,label:` ${y.key}`,hint:b})}}let o=n.filter(m=>m.shouldPreselect).map(m=>m.key),a=o.length,c=n.length,u=n.filter(m=>m.fromDotEnv).length,l=u>0?`Select environment variables (${u} from .env, ${a} pre-selected)`:`Select environment variables (${a} of ${c} pre-selected)`,p=await ja({message:l,options:s.filter(m=>!m.value.startsWith("__category_")),initialValues:o,required:!1});if(xe(p))return null;let d=new Set(p),h=[];for(let m of n)d.has(m.key)&&h.push({key:m.key,value:m.value,isSecret:m.isSecret});return h}function cse(t){let e=t.filter(n=>n.isSecret).length,r=t.length-e;return{total:t.length,secrets:e,public:r}}f();var tN=require("path"),use=require("os");Ot();async function lse(t,e){let r={},n=(0,tN.join)(e,".npmrc");try{let o=await t.readFile(n);o&&(r.projectNpmrc={path:n,content:o})}catch{}let i=(0,tN.join)((0,use.homedir)(),".npmrc");try{let o=await t.readFile(i);o&&(r.userNpmrc={path:i,content:o})}catch{}let s="/etc/hosts";try{let o=await t.readFile(s);o&&(r.etcHosts={path:s,content:o})}catch{}return r}async function pse(t){let e=[];if(t.projectNpmrc&&e.push({key:"projectNpmrc",displayName:".npmrc (project)",path:"./.npmrc",content:t.projectNpmrc.content,hint:"NPM configuration for project"}),t.userNpmrc&&e.push({key:"userNpmrc",displayName:".npmrc (user)",path:"~/.npmrc",content:t.userNpmrc.content,hint:"Your user NPM configuration"}),t.etcHosts&&e.push({key:"etcHosts",displayName:"/etc/hosts",path:"/etc/hosts",content:t.etcHosts.content,hint:"System hosts file"}),e.length===0)return[];let r=e.map(a=>({value:a.key,label:a.displayName,hint:a.hint})),n=e.map(a=>a.key),i=await ja({message:`Select configuration files to include (${e.length} found)`,options:r,initialValues:n,required:!1});if(xe(i))return null;let s=new Set(i),o=[];for(let a of e)s.has(a.key)&&o.push({path:a.path,content:a.content});return o}f();var dse=require("child_process");Ot();var Nl=U(lr(),1);async function fse(t,e){let n=0,i=e;for(;n<3;){if(n++,i)I.info(`Working directory: ${t}`);else{I.info(`Working directory: ${t}`);let o=await wt({message:"Enter install command",placeholder:"npm install",defaultValue:"npm install",validate:a=>{if(!a||a.trim().length===0)return"Command cannot be empty"}});if(xe(o))return{success:!1,command:"",skipped:!0};i=o}let s=await p9e(i,t);if(s.success)return I.success((0,Nl.green)("\u2713 Install completed successfully!")),{success:!0,command:i,exitCode:0,skipped:!1};if(I.error((0,Nl.red)(`\u2717 Install failed with exit code ${s.exitCode}`)),n<3){let o=await rn({message:"Try again with a different command?",options:[{value:"retry",label:"Yes, try again"},{value:"skip",label:"No, skip and continue anyway"}]});if(xe(o)||o==="skip")return I.warn((0,Nl.yellow)("\u26A0 Skipping install step")),{success:!1,command:i,exitCode:s.exitCode,skipped:!0};i=void 0}else{I.warn((0,Nl.yellow)("\u26A0 Maximum retry attempts reached"));let o=await rn({message:"Continue without successful install?",options:[{value:"yes",label:"Yes, continue anyway"},{value:"no",label:"No, exit"}]});return xe(o)||o==="no"?{success:!1,command:i,exitCode:s.exitCode,skipped:!1}:{success:!1,command:i,exitCode:s.exitCode,skipped:!0}}}return{success:!1,command:i||"",skipped:!0}}function p9e(t,e){return new Promise(r=>{let n=t.trim().split(/\s+/),i=n[0],s=n.slice(1),o=(0,dse.spawn)(i,s,{cwd:e,stdio:"inherit",shell:!0});o.on("error",a=>{I.error(`Failed to execute command: ${a.message}`),r({success:!1,exitCode:1})}),o.on("exit",a=>{let c=a??1;r({success:c===0,exitCode:c})})})}var d9e=(0,hse.promisify)(mse.exec);function f9e(t){let e=t.replace(/\.git$/,"");return e.startsWith("git@")&&(e=e.replace(/^git@/,"https://").replace(/:([^/])/,"/$1")),!e.startsWith("http://")&&!e.startsWith("https://")&&(e=`https://${e}`),e}async function gse(t,e){console.log(""),Et((0,Br.bgCyan)((0,Br.bold)((0,Br.white)(" connect-repo ")))+" "+(0,Br.dim)(Ge));try{I.step("Detecting git repository...");let r=await tC(t);if(!r){be("No git repository detected. Please run this command from within a git repository.");return}let n=Vie(r);wf(n.join(`
|
|
4732
4736
|
`),"Repository Detected");let i=await wt({message:"Project name",initialValue:r.projectName,validate:m=>{if(!m||m.trim().length===0)return"Project name cannot be empty"}});if(xe(i)){be("Project creation cancelled");return}let s=i.trim(),o=await fse(r.gitRoot,e.installCommand);if(!o.success&&!o.skipped){be("Installation failed. Cannot continue.");return}I.step("Collecting environment variables...");let a=await ase(t,r.gitRoot);if(a===null){be("Environment variable selection cancelled");return}let c=cse(a);I.info(`\u2713 Selected ${c.total} variables (${c.secrets} secret, ${c.public} public)`),I.step("Collecting configuration files...");let u=await lse(t,r.gitRoot),l=await pse(u);if(l===null){be("Configuration file selection cancelled");return}l.length>0?I.info(`\u2713 Selected ${l.length} configuration file(s)`):I.info("\u25CB No configuration files selected"),I.step("Detecting tool versions...");let p=qn();p.start("Checking installed tools");let d=await Zie(),h=Qie(d);p.stop(),I.info(`\u2713 Detected: ${ese(d)}`),await m9e(t,e,r,s,o.command,h,a,l)}catch(r){throw t.Sentry?.captureException(r),I.error(r instanceof Error?r.message:String(r)),be("Command failed"),r}}async function m9e(t,e,r,n,i,s,o,a){I.step("Creating Fusion project...");let c=[`Project: ${(0,Br.bold)(n)}`,`Provider: ${r.repoProvider} (${r.isPrivate?"private":"public"})`];r.recommendedRoot&&c.push(`Recommended root: ${r.recommendedRoot}`),c.push(`Environment: ${o.length} variables`,`Config files: ${a.length} files`,`Tools: ${s.length} dependencies`),wf(c.join(`
|