builder.io 1.6.27 → 1.6.28
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 +12 -12
- package/cli/index.cjs.map +3 -3
- 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 V$=Object.create;var Cd=Object.defineProperty;var G$=Object.getOwnPropertyDescriptor;var W$=Object.getOwnPropertyNames;var J$=Object.getPrototypeOf,Y$=Object.prototype.hasOwnProperty;var cC=e=>{throw TypeError(e)};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vg=(e,t)=>{for(var r in t)Cd(e,r,{get:t[r],enumerable:!0})},lC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of W$(t))!Y$.call(e,i)&&i!==r&&Cd(e,i,{get:()=>t[i],enumerable:!(n=G$(t,i))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?V$(J$(e)):{},lC(t||!e||!e.__esModule?Cd(r,"default",{value:e,enumerable:!0}):r,e)),X$=e=>lC(Cd({},"__esModule",{value:!0}),e);var Gg=(e,t,r)=>t.has(e)||cC("Cannot "+r);var se=(e,t,r)=>(Gg(e,t,"read from private field"),r?r.call(e):t.get(e)),lr=(e,t,r)=>t.has(e)?cC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Rt=(e,t,r,n)=>(Gg(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),kl=(e,t,r)=>(Gg(e,t,"access private method"),r);var g=k(()=>{{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"
|
|
1
|
+
var V$=Object.create;var Cd=Object.defineProperty;var G$=Object.getOwnPropertyDescriptor;var W$=Object.getOwnPropertyNames;var J$=Object.getPrototypeOf,Y$=Object.prototype.hasOwnProperty;var cC=e=>{throw TypeError(e)};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vg=(e,t)=>{for(var r in t)Cd(e,r,{get:t[r],enumerable:!0})},lC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of W$(t))!Y$.call(e,i)&&i!==r&&Cd(e,i,{get:()=>t[i],enumerable:!(n=G$(t,i))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?V$(J$(e)):{},lC(t||!e||!e.__esModule?Cd(r,"default",{value:e,enumerable:!0}):r,e)),X$=e=>lC(Cd({},"__esModule",{value:!0}),e);var Gg=(e,t,r)=>t.has(e)||cC("Cannot "+r);var se=(e,t,r)=>(Gg(e,t,"read from private field"),r?r.call(e):t.get(e)),lr=(e,t,r)=>t.has(e)?cC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Rt=(e,t,r,n)=>(Gg(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),kl=(e,t,r)=>(Gg(e,t,"access private method"),r);var g=k(()=>{{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b03675d304955eb82d59e9d54598ae86004d5029"}}});var pC=D((Yfe,uC)=>{g();function Wg(e){return e==null?[]:Array.isArray(e)?e:[e]}function Q$(e,t,r,n){var i,s=e[t],a=~n.string.indexOf(t)?r==null||r===!0?"":String(r):typeof r=="boolean"?r:~n.boolean.indexOf(t)?r==="false"?!1:r==="true"||(e._.push((i=+r,i*0===0?i:r)),!!r):(i=+r,i*0===0?i:r);e[t]=s==null?a:Array.isArray(s)?s.concat(a):[s,a]}uC.exports=function(e,t){e=e||[],t=t||{};var r,n,i,s,a,o={_:[]},c=0,l=0,u=0,p=e.length;let d=t.alias!==void 0,h=t.unknown!==void 0,f=t.default!==void 0;if(t.alias=t.alias||{},t.string=Wg(t.string),t.boolean=Wg(t.boolean),d)for(r in t.alias)for(n=t.alias[r]=Wg(t.alias[r]),c=0;c<n.length;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(n=t.alias[t.boolean[c]]||[],l=n.length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(n=t.alias[t.string[c]]||[],l=n.length;l-- >0;)t.string.push(n[l]);if(f){for(r in t.default)if(s=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],t[s]!==void 0)for(t[s].push(r),c=0;c<n.length;c++)t[s].push(n[c])}let m=h?Object.keys(t.alias):[];for(c=0;c<p;c++){if(i=e[c],i==="--"){o._=o._.concat(e.slice(++c));break}for(l=0;l<i.length&&i.charCodeAt(l)===45;l++);if(l===0)o._.push(i);else if(i.substring(l,l+3)==="no-"){if(s=i.substring(l+3),h&&!~m.indexOf(s))return t.unknown(i);o[s]=!1}else{for(u=l+1;u<i.length&&i.charCodeAt(u)!==61;u++);for(s=i.substring(l,u),a=i.substring(++u)||c+1===p||(""+e[c+1]).charCodeAt(0)===45||e[++c],n=l===2?[s]:s,u=0;u<n.length;u++){if(s=n[u],h&&!~m.indexOf(s))return t.unknown("-".repeat(l)+s);Q$(o,s,u+1<n.length||a,t)}}}if(f)for(r in t.default)o[r]===void 0&&(o[r]=t.default[r]);if(d)for(r in o)for(n=t.alias[r]||[];n.length>0;)o[n.shift()]=o[r];return o}});async function Kn(e,t,r){try{if(r){let i=await vo.default.getFileInfo(r);if(i.ignored||i.inferredParser==null)return e}let n=await vo.default.resolveConfigFile(process.cwd());if(n){let i=await vo.default.resolveConfig(n);return await vo.default.format(e,{...i,filepath:r,parser:t})}else return await vo.default.format(e,{filepath:r,parser:t})}catch(n){return console.warn("Error formatting code",n),e}}var vo,Dd=k(()=>{"use strict";g();vo=K(require("prettier"),1)});var Jg,Eo,Sd,Td,dC,ba,Yg,Xg,xa,fC,wo=k(()=>{"use strict";g();Jg="preview-url",Eo="framework",Sd="platform",Td="node",dC="/~builder-connect",ba="/~builder-connected",Yg="/~builder-dev-tools",Xg="/~builder-dev-tools.js",xa="/~builder-dev-tools-close",fC="/mappings"});var Ad=D((rme,mC)=>{"use strict";g();var Qg="\x1B",Dt=`${Qg}[`,Z$="\x07",Zg={to(e,t){return t?`${Dt}${t+1};${e+1}H`:`${Dt}${e+1}G`},move(e,t){let r="";return e<0?r+=`${Dt}${-e}D`:e>0&&(r+=`${Dt}${e}C`),t<0?r+=`${Dt}${-t}A`:t>0&&(r+=`${Dt}${t}B`),r},up:(e=1)=>`${Dt}${e}A`,down:(e=1)=>`${Dt}${e}B`,forward:(e=1)=>`${Dt}${e}C`,backward:(e=1)=>`${Dt}${e}D`,nextLine:(e=1)=>`${Dt}E`.repeat(e),prevLine:(e=1)=>`${Dt}F`.repeat(e),left:`${Dt}G`,hide:`${Dt}?25l`,show:`${Dt}?25h`,save:`${Qg}7`,restore:`${Qg}8`},ej={up:(e=1)=>`${Dt}S`.repeat(e),down:(e=1)=>`${Dt}T`.repeat(e)},tj={screen:`${Dt}2J`,up:(e=1)=>`${Dt}1J`.repeat(e),down:(e=1)=>`${Dt}J`.repeat(e),line:`${Dt}2K`,lineEnd:`${Dt}K`,lineStart:`${Dt}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?Zg.up():"");return e&&(t+=Zg.left),t}};mC.exports={cursor:Zg,scroll:ej,erase:tj,beep:Z$}});var yt=D((ime,ey)=>{g();var _d=process||{},hC=_d.argv||[],Pd=_d.env||{},rj=!(Pd.NO_COLOR||hC.includes("--no-color"))&&(!!Pd.FORCE_COLOR||hC.includes("--color")||_d.platform==="win32"||(_d.stdout||{}).isTTY&&Pd.TERM!=="dumb"||!!Pd.CI),nj=(e,t,r=e)=>n=>{let i=""+n,s=i.indexOf(t,e.length);return~s?e+ij(i,t,r,s)+t:e+i+t},ij=(e,t,r,n)=>{let i="",s=0;do i+=e.substring(s,n)+r,s=n+t.length,n=e.indexOf(t,s);while(~n);return i+e.substring(s)},gC=(e=rj)=>{let t=e?nj:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ey.exports=gC();ey.exports.createColors=gC});function sj({onlyFirst:e=!1}={}){let t=["[\\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(t,e?void 0:"g")}function AC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(aj,"")}function PC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nl(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=AC(e),e.length===0))return 0;e=e.replace(uj()," ");let r=t.ambiguousIsNarrow?1:2,n=0;for(let i of e){let s=i.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(cj.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function fj(){let e=new Map;for(let[t,r]of Object.entries(bt)){for(let[n,i]of Object.entries(r))bt[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=bt[n],e.set(i[0],i[1]);Object.defineProperty(bt,t,{value:r,enumerable:!1})}return Object.defineProperty(bt,"codes",{value:e,enumerable:!1}),bt.color.close="\x1B[39m",bt.bgColor.close="\x1B[49m",bt.color.ansi=yC(),bt.color.ansi256=bC(),bt.color.ansi16m=xC(),bt.bgColor.ansi=yC(ty),bt.bgColor.ansi256=bC(ty),bt.bgColor.ansi16m=xC(ty),Object.defineProperties(bt,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.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:t=>bt.rgbToAnsi256(...bt.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>bt.ansi256ToAnsi(bt.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>bt.ansi256ToAnsi(bt.hexToAnsi256(t)),enumerable:!1}}),bt}function wC(e,t,r){return String(e).normalize().replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`).map(n=>xj(n,t,r)).join(`
|
|
4
4
|
`)}function oy(e,t){if(typeof e=="string")return kd.aliases.get(e)===t;for(let r of e)if(r!==void 0&&oy(r,t))return!0;return!1}function Ej(e,t){if(e===t)return;let r=e.split(`
|
|
@@ -65,7 +65,7 @@ ${RC}${n.trimStart()}`),r=3+(0,Ld.stripVTControlCharacters)(n.trimStart()).lengt
|
|
|
65
65
|
`),f(),i()};return{start:x,stop:w,message:(v="")=>{o=y(v??o)}}}});function xe(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function Ud(e,t=""){let r=xe(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function Le(e,t,r){if(t){let n=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?n.printFile(t).trim()+`
|
|
66
66
|
`:n.printNode(e.ts.EmitHint.Unspecified,t,e.ts.createSourceFile("module.tsx","",e.ts.ScriptTarget.Latest)).trim()+`
|
|
67
67
|
`}return""}var xt=k(()=>{"use strict";g()});var fy=D((Dme,zC)=>{"use strict";g();zC.exports=function(){if(process.env.npm_config_user_agent)return Rj(process.env.npm_config_user_agent)};function Rj(e){let t=e.split(" ")[0],r=t.lastIndexOf("/"),n=t.substring(0,r);return{name:n==="npminstall"?"cnpm":n,version:t.substring(r+1)}}});function xr(e){return e.endsWith(".mapper.tsx")||e.endsWith(".mapper.jsx")||e.endsWith(".mapper.ts")||e.endsWith(".mapper.js")||e.endsWith(".mapper.mjs")}function Be(e,t,r){t=Hn(t),r=Hn(r),t=e.dirname(t);let n=e.basename(r,e.extname(r));r=e.dirname(r);let i;return n==="index"?i=e.relative(t,r):i=e.relative(t,e.join(r,n)),i=Hn(e.normalize(i)),i.startsWith(".")||(i="./"+i),i}function Hn(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}function va(e,t){let r=e.extname(t),n=e.basename(t,r).split(/[\/\\]/),i=n[n.length-1];return KC(i==="index"?e.basename(e.dirname(t)):i)}function KC(e){return at(e).replace(/ /g,"")}function Cn(e,t){let r=e.extname(t),n=Hn(e.basename(t,r)).split("/").pop();return at(n==="index"?e.basename(e.dirname(t)):n)}function ot(e,t){let r=Hn(e.relative(e.getAppRootDir(),t));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=e.getFrameworks();return r.startsWith("src/")&&(r=r.slice(4)),n.some(i=>i.name.includes("next"))?"@/"+r:"~/"+r}function qe(e,t){let r=t,n=[];for(let i=0;i<2;i++){let s=e.basename(r);if(!s||s==="components")break;n.unshift(s),r=e.dirname(r)}return n.join("/")}function at(e){for(e=e.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();e.includes(" ");)e=e.replace(/ /g," ");return e.split(" ").map(t=>t.length>2?t[0].toUpperCase()+t.slice(1):t).join("").trim()}function zr(e){return e.sort((t,r)=>t.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function nt(e,t,r,n){if(typeof r!="string"||r==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${r}, ${t}`);return n&&(t=n),t=e.normalize(t),(await e.hash(t+"#"+r)).substring(0,8)}async function VC(e){return(await e.hash(e.getAppRootDir())).substring(0,8)}function Fl(e){return typeof e=="number"}function To(e){return typeof e=="boolean"}function Ar(e){return typeof e=="string"}function Ao(e){return typeof e=="string"?/^[A-Z][A-Za-z0-9]*$/.test(e):!1}function on(e){return JSON.parse(JSON.stringify(e))}function qd(e,t,r){for(let n of t)if(e.dirname(r).includes(n))return!0;return!1}function GC(){try{let e=(0,HC.default)();if(e?.name)return e.name}catch{}return"npm"}function Lj(){return process.platform.startsWith("win")}function cn(){return Lj()?'"@builder.io/dev-tools"':"builder.io"}var HC,Ie=k(()=>{"use strict";g();HC=K(fy(),1)});function ln(e){let t=e.join(e.getAppRootDir(),"tsconfig.json");return e.exists(t)}async function Dn(e,t){async function r(i,s){if(s>10)return;let a=await e.readdir(i);for(let o of a){if(Bj.includes(o))continue;let c=e.join(i,o),l=await e.stat(c);if(l){if(l.isFile()&&o.startsWith("builder-registry."))return c;if(l.isDirectory()){let u=await r(c,s+1);if(u)return u}}}}let n=await r(e.getAppRootDir(),0);if(!n){let s=`builder-registry.${await ln(e)?"ts":"js"}`;return e.join(t,s)}return n}async function Sn(e,t){let r=e.resolve("/");for(let n=0;n<20;n++){let i=e.join(t,"package.json"),s=await e.readFile(i);if(s)return JSON.parse(s);if(t===r)break;t=e.dirname(t)}return null}async function WC(e,t){for(let r=0;r<20;r++){let n=e.dirname(t),i=e.join(n,"node_modules");if(await e.exists(i))return i;if(t===e.getAppRootDir())break;t=e.dirname(t)}return e.join(e.getAppRootDir(),"node_modules")}async function Ol(e,t,r){let n=await e.readdir(t);return n.includes(r)?e.join(t,r):(await Promise.all(n.map(async s=>{if(s.startsWith(".")||s==="node_modules")return;let a=e.join(t,s);if((await e.stat(a)).isDirectory()){let c=await Ol(e,a,r);if(c)return c}}))).find(s=>typeof s=="string")}var Bj,Pr=k(()=>{"use strict";g();Bj=["node_modules","dist","build","public"]});async function Ht(e,t,r){if(!Array.isArray(t)||t.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${t}`);let n=await WC(e,t[0]),i=e.join(n,"typescript","lib"),s=new Map,a={fileExists:o=>{if(o=e.normalize(o),o.includes("node_modules")){let c=Rl.get(o);if(!c){try{e.statSync(o).isFile()?c={exists:!0,content:e.readFileSync(o)}:c={exists:!1}}catch{c={exists:!1}}Rl.set(o,c)}return c.exists}if(!s.has(o))if(e.existsSync(o)){let l=e.statSync(o);s.set(o,l.isFile())}else s.set(o,!1);return s.get(o)},getCanonicalFileName:o=>e.normalize(o),getCurrentDirectory:()=>e.cwd(),getDefaultLibFileName:()=>e.join(i,"lib.d.ts"),getDefaultLibLocation:()=>i,getNewLine:()=>`
|
|
68
|
-
`,getSourceFile:o=>{if(o=e.normalize(o),o.includes("node_modules")){let l=Rl.get(o);if(l)return xe(e,l.content)}let c;try{c=e.readFileSync(o)}catch{console.error(`Could not read: ${o}`),c==null}if(c==null){let l=e.basename(o),u=e.extname(l).toLowerCase();if(o.startsWith(i)&&u===".ts"&&(c=YC.get(l),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Kd(l)}return o.includes("node_modules")&&(c?Rl.set(o,{exists:!0,content:c}):Rl.set(o,{exists:!1})),xe(e,c)},readFile:o=>{let c=e.readFileSync(o);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return Mj(e,a,t,r)}catch(o){if(o instanceof Kd){await $j(e,o.libName);continue}throw e.Sentry?.captureException(o),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:o})}}function Mj(e,t,r,n){let i={rootNames:[...r],host:t,options:{}},s=e.ts.findConfigFile(e.dirname(r[0]),a=>e.existsSync(a));if(s){let a=JC.get(s);if(!a){let o=e.ts.readConfigFile(s,c=>{let l=e.readFileSync(c);return typeof l=="string"?l:void 0});o.error?e.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:o.error,tsConfigPath:s}}):(a=e.ts.parseJsonConfigFileContent(o.config,e.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(l,u)=>e.readdirSync(l),fileExists:l=>e.existsSync(l),readFile:l=>e.readFileSync(l)||void 0},e.dirname(s),void 0,s).options,JC.set(s,a))}a&&(i.options=on(a))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=e.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),e.ts.createProgram(i)}async function Po(e,t,r){r||(r=await Ht(e,[t]));let n=r.getSourceFile(t);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${t}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}async function $j(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;zd.has(t)||zd.set(t,fetch(r).then(n=>n.text()).then(n=>{YC.set(t,n)})),await zd.get(t),zd.delete(t)}async function XC(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:my(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function my(e,t){let r={diagnostics:[],code:t.code,output:null};try{let n=e.ts.transpileModule(t.code,{compilerOptions:t.compilerOptions,fileName:t.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 Kd,YC,zd,Rl,JC,Tn=k(()=>{"use strict";g();xt();Ie();Pr();Kd=class{constructor(t){this.libName=t}};YC=new Map,zd=new Map,Rl=new Map,JC=new Map});var jj,He,vr=k(()=>{"use strict";g();jj="1.6.
|
|
68
|
+
`,getSourceFile:o=>{if(o=e.normalize(o),o.includes("node_modules")){let l=Rl.get(o);if(l)return xe(e,l.content)}let c;try{c=e.readFileSync(o)}catch{console.error(`Could not read: ${o}`),c==null}if(c==null){let l=e.basename(o),u=e.extname(l).toLowerCase();if(o.startsWith(i)&&u===".ts"&&(c=YC.get(l),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Kd(l)}return o.includes("node_modules")&&(c?Rl.set(o,{exists:!0,content:c}):Rl.set(o,{exists:!1})),xe(e,c)},readFile:o=>{let c=e.readFileSync(o);return typeof c=="string"?c:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return Mj(e,a,t,r)}catch(o){if(o instanceof Kd){await $j(e,o.libName);continue}throw e.Sentry?.captureException(o),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:o})}}function Mj(e,t,r,n){let i={rootNames:[...r],host:t,options:{}},s=e.ts.findConfigFile(e.dirname(r[0]),a=>e.existsSync(a));if(s){let a=JC.get(s);if(!a){let o=e.ts.readConfigFile(s,c=>{let l=e.readFileSync(c);return typeof l=="string"?l:void 0});o.error?e.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:o.error,tsConfigPath:s}}):(a=e.ts.parseJsonConfigFileContent(o.config,e.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(l,u)=>e.readdirSync(l),fileExists:l=>e.existsSync(l),readFile:l=>e.readFileSync(l)||void 0},e.dirname(s),void 0,s).options,JC.set(s,a))}a&&(i.options=on(a))}return i.options.noEmit=!0,i.options.isolatedModules=!1,i.options.strict=!1,i.options.jsx=e.ts.JsxEmit.Preserve,i.options.allowJs=!0,Object.assign(i.options,n),e.ts.createProgram(i)}async function Po(e,t,r){r||(r=await Ht(e,[t]));let n=r.getSourceFile(t);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${t}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}async function $j(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;zd.has(t)||zd.set(t,fetch(r).then(n=>n.text()).then(n=>{YC.set(t,n)})),await zd.get(t),zd.delete(t)}async function XC(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:my(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function my(e,t){let r={diagnostics:[],code:t.code,output:null};try{let n=e.ts.transpileModule(t.code,{compilerOptions:t.compilerOptions,fileName:t.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 Kd,YC,zd,Rl,JC,Tn=k(()=>{"use strict";g();xt();Ie();Pr();Kd=class{constructor(t){this.libName=t}};YC=new Map,zd=new Map,Rl=new Map,JC=new Map});var jj,He,vr=k(()=>{"use strict";g();jj="1.6.28",He=process.env.OVERRIDE_VERSION??jj});async function ks(e){let t=[],r=await Sn(e,e.getRepoRootDir());if(r){let n=await eD(r,e);t.push(...n)}return t}async function ZC(e){let t=await Sn(e,e.getRepoRootDir());return t?.scripts?.dev?t.scripts.dev.includes("--turbopack"):!1}async function eD(e,t){let r=[];if(e&&typeof e=="object"){let n=new Set(Object.keys({...e.dependencies,...e.devDependencies}));for(let i of Uj)if(n.has(i)&&!r.some(s=>s.name===i)){let s={name:i};QC.has(i)&&(s.version=await QC.get(i)(t)),r.push(s)}}return r}function hy(e){let t=parseInt(e);return Number.isNaN(t)?void 0:t}var QC,Uj,Ea=k(()=>{"use strict";g();Pr();Ie();QC=new Map([["next",async e=>{if(!e.spawnSync)return;let t=GC(),r=t==="npm"?"npx":t,{stdout:n}=e.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],[a,o,c]=s.split(".");return{major:hy(a),minor:hy(o),patch:hy(c)}}]]),Uj=["@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 fi(e){let t=tD(e),r=await e.readFile(t);return typeof r=="string"?JSON.parse(r):{}}async function mi(e,t){t=typeof t=="object"&&t!=null?t:{};let r=tD(e);await e.writeFile(r,JSON.stringify(t??{},null,2))}function tD(e){let t=e.getAppRootDir();return e.join(t,"node_modules",".builder","builder-cache.json")}var _o=k(()=>{"use strict";g()});async function Ns(e,t,r){let n={envKey:r,envValue:null,file:""};for(let i of t){let s=e.join(e.getAppRootDir(),i),a=await qj(e,s);if(a){let o=a[r];if(typeof o=="string"&&o.length>0&&o!=="YOUR_API_KEY")return n.envValue=o,n.file=s,n}}return n.file=e.join(e.getAppRootDir(),t[t.length-1]),n}async function qj(e,t){let r=await e.readFile(t);return typeof r=="string"?rD(r):null}function rD(e){let t={},r=e.replace(/\r\n?/gm,`
|
|
69
69
|
`),n;for(;(n=zj.exec(r))!=null;){let i=n[1],s=n[2]||"";s=s.trim();let a=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),a==='"'&&(s=s.replace(/\\n/g,`
|
|
70
70
|
`),s=s.replace(/\\r/g,"\r")),t[i]=s}return t}async function Fs(e,t,r,n){let i="# https://www.builder.io/c/docs/using-your-api-key",s=await e.readFile(t);try{if(s)if(s.includes(r))if(s.includes(n))e.debug(`"${r}" with "${n}" already set in ${t}`);else return e.debug(`Replace "${r}" in ${t}`),s=s.replace(new RegExp(`${r}=.*`),`${r}=${n}`),await e.writeFile(t,s),"update";else return e.debug(`Append "${r}" to ${t}`),s+=`
|
|
71
71
|
|
|
@@ -1032,7 +1032,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),B=L,R=$),Z===void 0&&(
|
|
|
1032
1032
|
`:`
|
|
1033
1033
|
`)+r,i=n+1,n=e.indexOf(`
|
|
1034
1034
|
`,i)}while(n!==-1);return s+=e.slice(i),s}var m_=k(()=>{g()});function au(e){return b_(e)}var h_,g_,Lb,Yo,su,y_,Xo,IH,Pf,b_,Bb,kH,NH,Mb,_f,FH,bCe,xCe,x_=k(()=>{g();o_();p_();m_();({stdout:h_,stderr:g_}=u_),Lb=Symbol("GENERATOR"),Yo=Symbol("STYLER"),su=Symbol("IS_EMPTY"),y_=["ansi","ansi","ansi256","ansi16m"],Xo=Object.create(null),IH=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=h_?h_.level:0;e.level=t.level===void 0?r:t.level},Pf=class{constructor(t){return b_(t)}},b_=e=>{let t=(...r)=>r.join(" ");return IH(t,e),Object.setPrototypeOf(t,au.prototype),t};Object.setPrototypeOf(au.prototype,Function.prototype);for(let[e,t]of Object.entries(Xn))Xo[e]={get(){let r=_f(this,Mb(t.open,t.close,this[Yo]),this[su]);return Object.defineProperty(this,e,{value:r}),r}};Xo.visible={get(){let e=_f(this,this[Yo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Bb=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Xn[r].ansi16m(...n):t==="ansi256"?Xn[r].ansi256(Xn.rgbToAnsi256(...n)):Xn[r].ansi(Xn.rgbToAnsi(...n)):e==="hex"?Bb("rgb",t,r,...Xn.hexToRgb(...n)):Xn[r][e](...n),kH=["rgb","hex","ansi256"];for(let e of kH){Xo[e]={get(){let{level:r}=this;return function(...n){let i=Mb(Bb(e,y_[r],"color",...n),Xn.color.close,this[Yo]);return _f(this,i,this[su])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Xo[t]={get(){let{level:r}=this;return function(...n){let i=Mb(Bb(e,y_[r],"bgColor",...n),Xn.bgColor.close,this[Yo]);return _f(this,i,this[su])}}}}NH=Object.defineProperties(()=>{},{...Xo,level:{enumerable:!0,get(){return this[Lb].level},set(e){this[Lb].level=e}}}),Mb=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},_f=(e,t,r)=>{let n=(...i)=>FH(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,NH),n[Lb]=e,n[Yo]=t,n[su]=r,n},FH=(e,t)=>{if(e.level<=0||!t)return e[su]?"":t;let r=e[Yo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=d_(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
1035
|
-
`);return s!==-1&&(t=f_(t,i,n,s)),n+t+i};Object.defineProperties(au.prototype,Xo);bCe=au(),xCe=au({level:g_?g_.level:0})});function ou(e){let t=Fb(e);return{highlight:r,highlightAuto:n,listLanguages:t.listLanguages,register:t.register,registerAlias:t.registerAlias,registered:t.registered};function r(i,s,a){let o=t.highlight(i,s),c=o.data;return{language:c.language,relevance:c.relevance,value:$b(a||v_,o)}}function n(i,s){let a,o;if(s&&("subset"in s||"sheet"in s)){let u=s;o={subset:u.subset},a=u.sheet}else a=s;let c=t.highlightAuto(i,o),l=c.data;return{language:l.language,relevance:l.relevance,value:$b(a||v_,c)}}}function $b(e,t){let r=new Set(t.type==="element"&&Array.isArray(t.properties.className)?t.properties.className.map(function(o){return String(o).replace(/^hljs-/,"")}):[]),n={},i,s="",a;for(a in e)if(Object.hasOwn(e,a)){let o=a.split(" "),c=e[a];r.has(o[0])?o.length===1?i=c:n[o.slice(1).join(" ")]=c:n[a]=c}return"value"in t?s=t.value:"children"in t&&(s=OH(n,t.children)),i&&(s=i(s)),s}function OH(e,t){let r=[],n=-1;for(;++n<t.length;)r.push($b(e,t[n]));return r.join("")}var Pe,v_,E_=k(()=>{g();x_();Ob();Pe=new Pf({level:2}),v_={comment:Pe.gray,quote:Pe.gray,keyword:Pe.green,"selector-tag":Pe.green,addition:Pe.green,number:Pe.cyan,string:Pe.cyan,"meta meta-string":Pe.cyan,literal:Pe.cyan,doctag:Pe.cyan,regexp:Pe.cyan,title:Pe.blue,section:Pe.blue,name:Pe.blue,"selector-id":Pe.blue,"selector-class":Pe.blue,attribute:Pe.yellow,attr:Pe.yellow,variable:Pe.yellow,"template-variable":Pe.yellow,"class title":Pe.yellow,type:Pe.yellow,symbol:Pe.magenta,bullet:Pe.magenta,subst:Pe.magenta,meta:Pe.magenta,"meta keyword":Pe.magenta,"selector-attr":Pe.magenta,"selector-pseudo":Pe.magenta,link:Pe.magenta,built_in:Pe.red,deletion:Pe.red,emphasis:Pe.italic,strong:Pe.bold,formula:Pe.inverse}});var jb=k(()=>{g();Ob();E_()});async function ee(e){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([w_.flush(2e3),C_.flush().promise])}catch(t){console.error(t)}process.exit(e)}var w_,C_,kn=k(()=>{"use strict";g();w_=K(require("@sentry/node"),1),C_=K(require("@amplitude/analytics-node"),1)});var Gr,qs=k(()=>{"use strict";g();Gr=process.env.AIR_HOST||"https://ai.builder.io"});var S_,D_=k(()=>{S_="1.6.27"});var A_=D(Ub=>{g();var T_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ub.encode=function(e){if(0<=e&&e<T_.length)return T_[e];throw new TypeError("Must be between 0 and 63: "+e)};Ub.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,o=43,c=47,l=26,u=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+u:e==o?62:e==c?63:-1}});var Kb=D(zb=>{g();var P_=A_(),qb=5,__=1<<qb,I_=__-1,k_=__;function LH(e){return e<0?(-e<<1)+1:(e<<1)+0}function BH(e){var t=(e&1)===1,r=e>>1;return t?-r:r}zb.encode=function(t){var r="",n,i=LH(t);do n=i&I_,i>>>=qb,i>0&&(n|=k_),r+=P_.encode(n);while(i>0);return r};zb.decode=function(t,r,n){var i=t.length,s=0,a=0,o,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=P_.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(c&k_),c&=I_,s=s+(c<<a),a+=qb}while(o);n.value=BH(s),n.rest=r}});var Zo=D(Xt=>{g();function MH(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Xt.getArg=MH;var N_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,$H=/^data:.+\,.+$/;function cu(e){var t=e.match(N_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Xt.urlParse=cu;function Qo(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}Xt.urlGenerate=Qo;var jH=32;function UH(e){var t=[];return function(r){for(var n=0;n<t.length;n++)if(t[n].input===r){var i=t[0];return t[0]=t[n],t[n]=i,t[0].result}var s=e(r);return t.unshift({input:r,result:s}),t.length>jH&&t.pop(),s}}var Hb=UH(function(t){var r=t,n=cu(t);if(n){if(!n.path)return t;r=n.path}for(var i=Xt.isAbsolute(r),s=[],a=0,o=0;;)if(a=o,o=r.indexOf("/",a),o===-1){s.push(r.slice(a));break}else for(s.push(r.slice(a,o));o<r.length&&r[o]==="/";)o++;for(var c,l=0,o=s.length-1;o>=0;o--)c=s[o],c==="."?s.splice(o,1):c===".."?l++:l>0&&(c===""?(s.splice(o+1,l),l=0):(s.splice(o,2),l--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Qo(n)):r});Xt.normalize=Hb;function F_(e,t){e===""&&(e="."),t===""&&(t=".");var r=cu(t),n=cu(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Qo(r);if(r||t.match($H))return t;if(n&&!n.host&&!n.path)return n.host=t,Qo(n);var i=t.charAt(0)==="/"?t:Hb(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Qo(n)):i}Xt.join=F_;Xt.isAbsolute=function(e){return e.charAt(0)==="/"||N_.test(e)};function qH(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}Xt.relative=qH;var O_=function(){var e=Object.create(null);return!("__proto__"in e)}();function R_(e){return e}function zH(e){return L_(e)?"$"+e:e}Xt.toSetString=O_?R_:zH;function KH(e){return L_(e)?e.slice(1):e}Xt.fromSetString=O_?R_:KH;function L_(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function HH(e,t,r){var n=is(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:is(e.name,t.name)}Xt.compareByOriginalPositions=HH;function VH(e,t,r){var n;return n=e.originalLine-t.originalLine,n!==0||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:is(e.name,t.name)}Xt.compareByOriginalPositionsNoSource=VH;function GH(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=is(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:is(e.name,t.name)}Xt.compareByGeneratedPositionsDeflated=GH;function WH(e,t,r){var n=e.generatedColumn-t.generatedColumn;return n!==0||r||(n=is(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:is(e.name,t.name)}Xt.compareByGeneratedPositionsDeflatedNoLine=WH;function is(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function JH(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=is(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:is(e.name,t.name)}Xt.compareByGeneratedPositionsInflated=JH;function YH(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Xt.parseSourceMapInput=YH;function XH(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=cu(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))}t=F_(Qo(n),t)}return Hb(t)}Xt.computeSourceURL=XH});var Wb=D(B_=>{g();var Vb=Zo(),Gb=Object.prototype.hasOwnProperty,ka=typeof Map<"u";function ss(){this._array=[],this._set=ka?new Map:Object.create(null)}ss.fromArray=function(t,r){for(var n=new ss,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};ss.prototype.size=function(){return ka?this._set.size:Object.getOwnPropertyNames(this._set).length};ss.prototype.add=function(t,r){var n=ka?t:Vb.toSetString(t),i=ka?this.has(t):Gb.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(ka?this._set.set(t,s):this._set[n]=s)};ss.prototype.has=function(t){if(ka)return this._set.has(t);var r=Vb.toSetString(t);return Gb.call(this._set,r)};ss.prototype.indexOf=function(t){if(ka){var r=this._set.get(t);if(r>=0)return r}else{var n=Vb.toSetString(t);if(Gb.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};ss.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};ss.prototype.toArray=function(){return this._array.slice()};B_.ArraySet=ss});var j_=D($_=>{g();var M_=Zo();function QH(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||M_.compareByGeneratedPositionsInflated(e,t)<=0}function If(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}If.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};If.prototype.add=function(t){QH(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};If.prototype.toArray=function(){return this._sorted||(this._array.sort(M_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};$_.MappingList=If});var Jb=D(U_=>{g();var lu=Kb(),Bt=Zo(),kf=Wb().ArraySet,ZH=j_().MappingList;function Nn(e){e||(e={}),this._file=Bt.getArg(e,"file",null),this._sourceRoot=Bt.getArg(e,"sourceRoot",null),this._skipValidation=Bt.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=Bt.getArg(e,"ignoreInvalidMapping",!1),this._sources=new kf,this._names=new kf,this._mappings=new ZH,this._sourcesContents=null}Nn.prototype._version=3;Nn.fromSourceMap=function(t,r){var n=t.sourceRoot,i=new Nn(Object.assign(r||{},{file:t.file,sourceRoot:n}));return t.eachMapping(function(s){var a={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(a.source=s.source,n!=null&&(a.source=Bt.relative(n,a.source)),a.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(a.name=s.name)),i.addMapping(a)}),t.sources.forEach(function(s){var a=s;n!==null&&(a=Bt.relative(n,s)),i._sources.has(a)||i._sources.add(a);var o=t.sourceContentFor(s);o!=null&&i.setSourceContent(s,o)}),i};Nn.prototype.addMapping=function(t){var r=Bt.getArg(t,"generated"),n=Bt.getArg(t,"original",null),i=Bt.getArg(t,"source",null),s=Bt.getArg(t,"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}))};Nn.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Bt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Bt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Bt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Nn.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.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=t.file}var s=this._sourceRoot;s!=null&&(i=Bt.relative(s,i));var a=new kf,o=new kf;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Bt.join(n,c.source)),s!=null&&(c.source=Bt.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var u=c.source;u!=null&&!a.has(u)&&a.add(u);var p=c.name;p!=null&&!o.has(p)&&o.add(p)},this),this._sources=a,this._names=o,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Bt.join(n,c)),s!=null&&(c=Bt.relative(s,c)),this.setSourceContent(c,l))},this)};Nn.prototype._validateMapping=function(t,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(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Nn.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,o="",c,l,u,p,d=this._mappings.toArray(),h=0,f=d.length;h<f;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Bt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=lu.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=lu.encode(p-a),a=p,c+=lu.encode(l.originalLine-1-i),i=l.originalLine-1,c+=lu.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(u=this._names.indexOf(l.name),c+=lu.encode(u-s),s=u)),o+=c}return o};Nn.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Bt.relative(r,n));var i=Bt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Nn.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Nn.prototype.toString=function(){return JSON.stringify(this.toJSON())};U_.SourceMapGenerator=Nn});var q_=D(Na=>{g();Na.GREATEST_LOWER_BOUND=1;Na.LEAST_UPPER_BOUND=2;function Yb(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,o=i(r,n[a],!0);return o===0?a:o>0?t-a>1?Yb(a,t,r,n,i,s):s==Na.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Yb(e,a,r,n,i,s):s==Na.LEAST_UPPER_BOUND?a:e<0?-1:e}Na.search=function(t,r,n,i){if(r.length===0)return-1;var s=Yb(-1,r.length,t,r,n,i||Na.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var H_=D(K_=>{g();function eV(e){function t(i,s,a){var o=i[s];i[s]=i[a],i[a]=o}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,a,o){if(a<o){var c=r(a,o),l=a-1;t(i,c,o);for(var u=i[o],p=a;p<o;p++)s(i[p],u,!1)<=0&&(l+=1,t(i,l,p));t(i,l+1,p);var d=l+1;n(i,s,a,d-1),n(i,s,d+1,o)}}return n}function tV(e){let t=eV.toString();return new Function(`return ${t}`)()(e)}var z_=new WeakMap;K_.quickSort=function(e,t,r=0){let n=z_.get(t);n===void 0&&(n=tV(t),z_.set(t,n)),n(e,t,r,e.length-1)}});var W_=D(Nf=>{g();var ne=Zo(),Qb=q_(),ec=Wb().ArraySet,rV=Kb(),uu=H_().quickSort;function mt(e,t){var r=e;return typeof e=="string"&&(r=ne.parseSourceMapInput(e)),r.sections!=null?new Qn(r,t):new pr(r,t)}mt.fromSourceMap=function(e,t){return pr.fromSourceMap(e,t)};mt.prototype._version=3;mt.prototype.__generatedMappings=null;Object.defineProperty(mt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});mt.prototype.__originalMappings=null;Object.defineProperty(mt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});mt.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};mt.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};mt.GENERATED_ORDER=1;mt.ORIGINAL_ORDER=2;mt.GREATEST_LOWER_BOUND=1;mt.LEAST_UPPER_BOUND=2;mt.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||mt.GENERATED_ORDER,a;switch(s){case mt.GENERATED_ORDER:a=this._generatedMappings;break;case mt.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,c=t.bind(i),l=this._names,u=this._sources,p=this._sourceMapURL,d=0,h=a.length;d<h;d++){var f=a[d],m=f.source===null?null:u.at(f.source);m!==null&&(m=ne.computeSourceURL(o,m,p)),c({source:m,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:f.name===null?null:l.at(f.name)})}};mt.prototype.allGeneratedPositionsFor=function(t){var r=ne.getArg(t,"line"),n={source:ne.getArg(t,"source"),originalLine:r,originalColumn:ne.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ne.compareByOriginalPositions,Qb.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)i.push({line:ne.getArg(a,"generatedLine",null),column:ne.getArg(a,"generatedColumn",null),lastColumn:ne.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:ne.getArg(a,"generatedLine",null),column:ne.getArg(a,"generatedColumn",null),lastColumn:ne.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Nf.SourceMapConsumer=mt;function pr(e,t){var r=e;typeof e=="string"&&(r=ne.parseSourceMapInput(e));var n=ne.getArg(r,"version"),i=ne.getArg(r,"sources"),s=ne.getArg(r,"names",[]),a=ne.getArg(r,"sourceRoot",null),o=ne.getArg(r,"sourcesContent",null),c=ne.getArg(r,"mappings"),l=ne.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=ne.normalize(a)),i=i.map(String).map(ne.normalize).map(function(u){return a&&ne.isAbsolute(a)&&ne.isAbsolute(u)?ne.relative(a,u):u}),this._names=ec.fromArray(s.map(String),!0),this._sources=ec.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return ne.computeSourceURL(a,u,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=c,this._sourceMapURL=t,this.file=l}pr.prototype=Object.create(mt.prototype);pr.prototype.consumer=mt;pr.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=ne.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};pr.fromSourceMap=function(t,r){var n=Object.create(pr.prototype),i=n._names=ec.fromArray(t._names.toArray(),!0),s=n._sources=ec.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return ne.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),o=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,u=a.length;l<u;l++){var p=a[l],d=new G_;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)),o.push(d)}return uu(n.__originalMappings,ne.compareByOriginalPositions),n};pr.prototype._version=3;Object.defineProperty(pr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function G_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Xb=ne.compareByGeneratedPositionsDeflatedNoLine;function V_(e,t){let r=e.length,n=e.length-t;if(!(n<=1))if(n==2){let i=e[t],s=e[t+1];Xb(i,s)>0&&(e[t]=s,e[t+1]=i)}else if(n<20)for(let i=t;i<r;i++)for(let s=i;s>t;s--){let a=e[s-1],o=e[s];if(Xb(a,o)<=0)break;e[s-1]=o,e[s]=a}else uu(e,Xb,t)}pr.prototype._parseMappings=function(t,r){var n=1,i=0,s=0,a=0,o=0,c=0,l=t.length,u=0,p={},d={},h=[],f=[],m,y,b,x,w;let v=0;for(;u<l;)if(t.charAt(u)===";")n++,u++,i=0,V_(f,v),v=f.length;else if(t.charAt(u)===",")u++;else{for(m=new G_,m.generatedLine=n,x=u;x<l&&!this._charIsMappingSeparator(t,x);x++);for(y=t.slice(u,x),b=[];u<x;)rV.decode(t,u,d),w=d.value,u=d.rest,b.push(w);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(m.generatedColumn=i+b[0],i=m.generatedColumn,b.length>1&&(m.source=o+b[1],o+=b[1],m.originalLine=s+b[2],s=m.originalLine,m.originalLine+=1,m.originalColumn=a+b[3],a=m.originalColumn,b.length>4&&(m.name=c+b[4],c+=b[4])),f.push(m),typeof m.originalLine=="number"){let E=m.source;for(;h.length<=E;)h.push(null);h[E]===null&&(h[E]=[]),h[E].push(m)}}V_(f,v),this.__generatedMappings=f;for(var C=0;C<h.length;C++)h[C]!=null&&uu(h[C],ne.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};pr.prototype._findMapping=function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Qb.search(t,r,s,a)};pr.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};pr.prototype.originalPositionFor=function(t){var r={generatedLine:ne.getArg(t,"line"),generatedColumn:ne.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",ne.compareByGeneratedPositionsDeflated,ne.getArg(t,"bias",mt.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=ne.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=ne.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=ne.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:ne.getArg(i,"originalLine",null),column:ne.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};pr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};pr.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=ne.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=ne.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];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.')};pr.prototype.generatedPositionFor=function(t){var r=ne.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:ne.getArg(t,"line"),originalColumn:ne.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ne.compareByOriginalPositions,ne.getArg(t,"bias",mt.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:ne.getArg(s,"generatedLine",null),column:ne.getArg(s,"generatedColumn",null),lastColumn:ne.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Nf.BasicSourceMapConsumer=pr;function Qn(e,t){var r=e;typeof e=="string"&&(r=ne.parseSourceMapInput(e));var n=ne.getArg(r,"version"),i=ne.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new ec,this._names=new ec;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=ne.getArg(a,"offset"),c=ne.getArg(o,"line"),l=ne.getArg(o,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=o,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new mt(ne.getArg(a,"map"),t)}})}Qn.prototype=Object.create(mt.prototype);Qn.prototype.constructor=mt;Qn.prototype._version=3;Object.defineProperty(Qn.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Qn.prototype.originalPositionFor=function(t){var r={generatedLine:ne.getArg(t,"line"),generatedColumn:ne.getArg(t,"column")},n=Qb.search(r,this._sections,function(s,a){var o=s.generatedLine-a.generatedOffset.generatedLine;return o||s.generatedColumn-a.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:t.bias}):{source:null,line:null,column:null,name:null}};Qn.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Qn.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Qn.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(ne.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);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}};Qn.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var o=s[a],c=i.consumer._sources.at(o.source);c!==null&&(c=ne.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var l=null;o.name&&(l=i.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var u={source:c,generatedLine:o.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(i.generatedOffset.generatedLine===o.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}uu(this.__generatedMappings,ne.compareByGeneratedPositionsDeflated),uu(this.__originalMappings,ne.compareByOriginalPositions)};Nf.IndexedSourceMapConsumer=Qn});var Y_=D(J_=>{g();var nV=Jb().SourceMapGenerator,Ff=Zo(),iV=/(\r?\n)/,sV=10,tc="$$$isSourceNode$$$";function pn(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[tc]=!0,n!=null&&this.add(n)}pn.fromStringWithSourceMap=function(t,r,n){var i=new pn,s=t.split(iV),a=0,o=function(){var d=f(),h=f()||"";return d+h;function f(){return a<s.length?s[a++]:void 0}},c=1,l=0,u=null;return r.eachMapping(function(d){if(u!==null)if(c<d.generatedLine)p(u,o()),c++,l=0;else{var h=s[a]||"",f=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,p(u,f),u=d;return}for(;c<d.generatedLine;)i.add(o()),c++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}u=d},this),a<s.length&&(u&&p(u,o()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Ff.join(n,d)),i.setSourceContent(d,h))}),i;function p(d,h){if(d===null||d.source===void 0)i.add(h);else{var f=n?Ff.join(n,d.source):d.source;i.add(new pn(d.originalLine,d.originalColumn,f,h,d.name))}}};pn.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[tc]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};pn.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[tc]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};pn.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[tc]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};pn.prototype.join=function(t){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(t);r.push(this.children[n]),this.children=r}return this};pn.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[tc]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};pn.prototype.setSourceContent=function(t,r){this.sourceContents[Ff.toSetString(t)]=r};pn.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][tc]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Ff.fromSetString(i[r]),this.sourceContents[i[r]])};pn.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};pn.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new nV(t),i=!1,s=null,a=null,o=null,c=null;return this.walk(function(l,u){r.code+=l,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||a!==u.line||o!==u.column||c!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name}),s=u.source,a=u.line,o=u.column,c=u.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===sV?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name})):r.column++}),this.walkSourceContents(function(l,u){n.setSourceContent(l,u)}),{code:r.code,map:n}};J_.SourceNode=pn});var X_=D(Of=>{g();Of.SourceMapGenerator=Jb().SourceMapGenerator;Of.SourceMapConsumer=W_().SourceMapConsumer;Of.SourceNode=Y_().SourceNode});var P2=D(vu=>{"use strict";g();Object.defineProperty(vu,"__esModule",{value:!0});function aV(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Pi=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}},ac=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function Nr(e,t){let{line:r,column:n,index:i}=e;return new Pi(r,n+t,i+t)}var Q_="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",oV={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Q_},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Q_}},Z_={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"},Bf=e=>e.type==="UpdateExpression"?Z_.UpdateExpression[`${e.prefix}`]:Z_[e.type],cV={AccessorIsGenerator:({kind:e})=>`A ${e}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:e})=>`Missing initializer in ${e} 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:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1035
|
+
`);return s!==-1&&(t=f_(t,i,n,s)),n+t+i};Object.defineProperties(au.prototype,Xo);bCe=au(),xCe=au({level:g_?g_.level:0})});function ou(e){let t=Fb(e);return{highlight:r,highlightAuto:n,listLanguages:t.listLanguages,register:t.register,registerAlias:t.registerAlias,registered:t.registered};function r(i,s,a){let o=t.highlight(i,s),c=o.data;return{language:c.language,relevance:c.relevance,value:$b(a||v_,o)}}function n(i,s){let a,o;if(s&&("subset"in s||"sheet"in s)){let u=s;o={subset:u.subset},a=u.sheet}else a=s;let c=t.highlightAuto(i,o),l=c.data;return{language:l.language,relevance:l.relevance,value:$b(a||v_,c)}}}function $b(e,t){let r=new Set(t.type==="element"&&Array.isArray(t.properties.className)?t.properties.className.map(function(o){return String(o).replace(/^hljs-/,"")}):[]),n={},i,s="",a;for(a in e)if(Object.hasOwn(e,a)){let o=a.split(" "),c=e[a];r.has(o[0])?o.length===1?i=c:n[o.slice(1).join(" ")]=c:n[a]=c}return"value"in t?s=t.value:"children"in t&&(s=OH(n,t.children)),i&&(s=i(s)),s}function OH(e,t){let r=[],n=-1;for(;++n<t.length;)r.push($b(e,t[n]));return r.join("")}var Pe,v_,E_=k(()=>{g();x_();Ob();Pe=new Pf({level:2}),v_={comment:Pe.gray,quote:Pe.gray,keyword:Pe.green,"selector-tag":Pe.green,addition:Pe.green,number:Pe.cyan,string:Pe.cyan,"meta meta-string":Pe.cyan,literal:Pe.cyan,doctag:Pe.cyan,regexp:Pe.cyan,title:Pe.blue,section:Pe.blue,name:Pe.blue,"selector-id":Pe.blue,"selector-class":Pe.blue,attribute:Pe.yellow,attr:Pe.yellow,variable:Pe.yellow,"template-variable":Pe.yellow,"class title":Pe.yellow,type:Pe.yellow,symbol:Pe.magenta,bullet:Pe.magenta,subst:Pe.magenta,meta:Pe.magenta,"meta keyword":Pe.magenta,"selector-attr":Pe.magenta,"selector-pseudo":Pe.magenta,link:Pe.magenta,built_in:Pe.red,deletion:Pe.red,emphasis:Pe.italic,strong:Pe.bold,formula:Pe.inverse}});var jb=k(()=>{g();Ob();E_()});async function ee(e){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([w_.flush(2e3),C_.flush().promise])}catch(t){console.error(t)}process.exit(e)}var w_,C_,kn=k(()=>{"use strict";g();w_=K(require("@sentry/node"),1),C_=K(require("@amplitude/analytics-node"),1)});var Gr,qs=k(()=>{"use strict";g();Gr=process.env.AIR_HOST||"https://ai.builder.io"});var S_,D_=k(()=>{S_="1.6.28"});var A_=D(Ub=>{g();var T_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ub.encode=function(e){if(0<=e&&e<T_.length)return T_[e];throw new TypeError("Must be between 0 and 63: "+e)};Ub.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,o=43,c=47,l=26,u=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+u:e==o?62:e==c?63:-1}});var Kb=D(zb=>{g();var P_=A_(),qb=5,__=1<<qb,I_=__-1,k_=__;function LH(e){return e<0?(-e<<1)+1:(e<<1)+0}function BH(e){var t=(e&1)===1,r=e>>1;return t?-r:r}zb.encode=function(t){var r="",n,i=LH(t);do n=i&I_,i>>>=qb,i>0&&(n|=k_),r+=P_.encode(n);while(i>0);return r};zb.decode=function(t,r,n){var i=t.length,s=0,a=0,o,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=P_.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(c&k_),c&=I_,s=s+(c<<a),a+=qb}while(o);n.value=BH(s),n.rest=r}});var Zo=D(Xt=>{g();function MH(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Xt.getArg=MH;var N_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,$H=/^data:.+\,.+$/;function cu(e){var t=e.match(N_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Xt.urlParse=cu;function Qo(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}Xt.urlGenerate=Qo;var jH=32;function UH(e){var t=[];return function(r){for(var n=0;n<t.length;n++)if(t[n].input===r){var i=t[0];return t[0]=t[n],t[n]=i,t[0].result}var s=e(r);return t.unshift({input:r,result:s}),t.length>jH&&t.pop(),s}}var Hb=UH(function(t){var r=t,n=cu(t);if(n){if(!n.path)return t;r=n.path}for(var i=Xt.isAbsolute(r),s=[],a=0,o=0;;)if(a=o,o=r.indexOf("/",a),o===-1){s.push(r.slice(a));break}else for(s.push(r.slice(a,o));o<r.length&&r[o]==="/";)o++;for(var c,l=0,o=s.length-1;o>=0;o--)c=s[o],c==="."?s.splice(o,1):c===".."?l++:l>0&&(c===""?(s.splice(o+1,l),l=0):(s.splice(o,2),l--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Qo(n)):r});Xt.normalize=Hb;function F_(e,t){e===""&&(e="."),t===""&&(t=".");var r=cu(t),n=cu(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Qo(r);if(r||t.match($H))return t;if(n&&!n.host&&!n.path)return n.host=t,Qo(n);var i=t.charAt(0)==="/"?t:Hb(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Qo(n)):i}Xt.join=F_;Xt.isAbsolute=function(e){return e.charAt(0)==="/"||N_.test(e)};function qH(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}Xt.relative=qH;var O_=function(){var e=Object.create(null);return!("__proto__"in e)}();function R_(e){return e}function zH(e){return L_(e)?"$"+e:e}Xt.toSetString=O_?R_:zH;function KH(e){return L_(e)?e.slice(1):e}Xt.fromSetString=O_?R_:KH;function L_(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function HH(e,t,r){var n=is(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:is(e.name,t.name)}Xt.compareByOriginalPositions=HH;function VH(e,t,r){var n;return n=e.originalLine-t.originalLine,n!==0||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:is(e.name,t.name)}Xt.compareByOriginalPositionsNoSource=VH;function GH(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=is(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:is(e.name,t.name)}Xt.compareByGeneratedPositionsDeflated=GH;function WH(e,t,r){var n=e.generatedColumn-t.generatedColumn;return n!==0||r||(n=is(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:is(e.name,t.name)}Xt.compareByGeneratedPositionsDeflatedNoLine=WH;function is(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function JH(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=is(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:is(e.name,t.name)}Xt.compareByGeneratedPositionsInflated=JH;function YH(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Xt.parseSourceMapInput=YH;function XH(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=cu(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))}t=F_(Qo(n),t)}return Hb(t)}Xt.computeSourceURL=XH});var Wb=D(B_=>{g();var Vb=Zo(),Gb=Object.prototype.hasOwnProperty,ka=typeof Map<"u";function ss(){this._array=[],this._set=ka?new Map:Object.create(null)}ss.fromArray=function(t,r){for(var n=new ss,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};ss.prototype.size=function(){return ka?this._set.size:Object.getOwnPropertyNames(this._set).length};ss.prototype.add=function(t,r){var n=ka?t:Vb.toSetString(t),i=ka?this.has(t):Gb.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(ka?this._set.set(t,s):this._set[n]=s)};ss.prototype.has=function(t){if(ka)return this._set.has(t);var r=Vb.toSetString(t);return Gb.call(this._set,r)};ss.prototype.indexOf=function(t){if(ka){var r=this._set.get(t);if(r>=0)return r}else{var n=Vb.toSetString(t);if(Gb.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};ss.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};ss.prototype.toArray=function(){return this._array.slice()};B_.ArraySet=ss});var j_=D($_=>{g();var M_=Zo();function QH(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||M_.compareByGeneratedPositionsInflated(e,t)<=0}function If(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}If.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};If.prototype.add=function(t){QH(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};If.prototype.toArray=function(){return this._sorted||(this._array.sort(M_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};$_.MappingList=If});var Jb=D(U_=>{g();var lu=Kb(),Bt=Zo(),kf=Wb().ArraySet,ZH=j_().MappingList;function Nn(e){e||(e={}),this._file=Bt.getArg(e,"file",null),this._sourceRoot=Bt.getArg(e,"sourceRoot",null),this._skipValidation=Bt.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=Bt.getArg(e,"ignoreInvalidMapping",!1),this._sources=new kf,this._names=new kf,this._mappings=new ZH,this._sourcesContents=null}Nn.prototype._version=3;Nn.fromSourceMap=function(t,r){var n=t.sourceRoot,i=new Nn(Object.assign(r||{},{file:t.file,sourceRoot:n}));return t.eachMapping(function(s){var a={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(a.source=s.source,n!=null&&(a.source=Bt.relative(n,a.source)),a.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(a.name=s.name)),i.addMapping(a)}),t.sources.forEach(function(s){var a=s;n!==null&&(a=Bt.relative(n,s)),i._sources.has(a)||i._sources.add(a);var o=t.sourceContentFor(s);o!=null&&i.setSourceContent(s,o)}),i};Nn.prototype.addMapping=function(t){var r=Bt.getArg(t,"generated"),n=Bt.getArg(t,"original",null),i=Bt.getArg(t,"source",null),s=Bt.getArg(t,"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}))};Nn.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Bt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Bt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Bt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Nn.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.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=t.file}var s=this._sourceRoot;s!=null&&(i=Bt.relative(s,i));var a=new kf,o=new kf;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Bt.join(n,c.source)),s!=null&&(c.source=Bt.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var u=c.source;u!=null&&!a.has(u)&&a.add(u);var p=c.name;p!=null&&!o.has(p)&&o.add(p)},this),this._sources=a,this._names=o,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Bt.join(n,c)),s!=null&&(c=Bt.relative(s,c)),this.setSourceContent(c,l))},this)};Nn.prototype._validateMapping=function(t,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(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Nn.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,o="",c,l,u,p,d=this._mappings.toArray(),h=0,f=d.length;h<f;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Bt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=lu.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=lu.encode(p-a),a=p,c+=lu.encode(l.originalLine-1-i),i=l.originalLine-1,c+=lu.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(u=this._names.indexOf(l.name),c+=lu.encode(u-s),s=u)),o+=c}return o};Nn.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Bt.relative(r,n));var i=Bt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Nn.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Nn.prototype.toString=function(){return JSON.stringify(this.toJSON())};U_.SourceMapGenerator=Nn});var q_=D(Na=>{g();Na.GREATEST_LOWER_BOUND=1;Na.LEAST_UPPER_BOUND=2;function Yb(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,o=i(r,n[a],!0);return o===0?a:o>0?t-a>1?Yb(a,t,r,n,i,s):s==Na.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Yb(e,a,r,n,i,s):s==Na.LEAST_UPPER_BOUND?a:e<0?-1:e}Na.search=function(t,r,n,i){if(r.length===0)return-1;var s=Yb(-1,r.length,t,r,n,i||Na.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var H_=D(K_=>{g();function eV(e){function t(i,s,a){var o=i[s];i[s]=i[a],i[a]=o}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,a,o){if(a<o){var c=r(a,o),l=a-1;t(i,c,o);for(var u=i[o],p=a;p<o;p++)s(i[p],u,!1)<=0&&(l+=1,t(i,l,p));t(i,l+1,p);var d=l+1;n(i,s,a,d-1),n(i,s,d+1,o)}}return n}function tV(e){let t=eV.toString();return new Function(`return ${t}`)()(e)}var z_=new WeakMap;K_.quickSort=function(e,t,r=0){let n=z_.get(t);n===void 0&&(n=tV(t),z_.set(t,n)),n(e,t,r,e.length-1)}});var W_=D(Nf=>{g();var ne=Zo(),Qb=q_(),ec=Wb().ArraySet,rV=Kb(),uu=H_().quickSort;function mt(e,t){var r=e;return typeof e=="string"&&(r=ne.parseSourceMapInput(e)),r.sections!=null?new Qn(r,t):new pr(r,t)}mt.fromSourceMap=function(e,t){return pr.fromSourceMap(e,t)};mt.prototype._version=3;mt.prototype.__generatedMappings=null;Object.defineProperty(mt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});mt.prototype.__originalMappings=null;Object.defineProperty(mt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});mt.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};mt.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};mt.GENERATED_ORDER=1;mt.ORIGINAL_ORDER=2;mt.GREATEST_LOWER_BOUND=1;mt.LEAST_UPPER_BOUND=2;mt.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||mt.GENERATED_ORDER,a;switch(s){case mt.GENERATED_ORDER:a=this._generatedMappings;break;case mt.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,c=t.bind(i),l=this._names,u=this._sources,p=this._sourceMapURL,d=0,h=a.length;d<h;d++){var f=a[d],m=f.source===null?null:u.at(f.source);m!==null&&(m=ne.computeSourceURL(o,m,p)),c({source:m,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:f.name===null?null:l.at(f.name)})}};mt.prototype.allGeneratedPositionsFor=function(t){var r=ne.getArg(t,"line"),n={source:ne.getArg(t,"source"),originalLine:r,originalColumn:ne.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ne.compareByOriginalPositions,Qb.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)i.push({line:ne.getArg(a,"generatedLine",null),column:ne.getArg(a,"generatedColumn",null),lastColumn:ne.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:ne.getArg(a,"generatedLine",null),column:ne.getArg(a,"generatedColumn",null),lastColumn:ne.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Nf.SourceMapConsumer=mt;function pr(e,t){var r=e;typeof e=="string"&&(r=ne.parseSourceMapInput(e));var n=ne.getArg(r,"version"),i=ne.getArg(r,"sources"),s=ne.getArg(r,"names",[]),a=ne.getArg(r,"sourceRoot",null),o=ne.getArg(r,"sourcesContent",null),c=ne.getArg(r,"mappings"),l=ne.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=ne.normalize(a)),i=i.map(String).map(ne.normalize).map(function(u){return a&&ne.isAbsolute(a)&&ne.isAbsolute(u)?ne.relative(a,u):u}),this._names=ec.fromArray(s.map(String),!0),this._sources=ec.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return ne.computeSourceURL(a,u,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=c,this._sourceMapURL=t,this.file=l}pr.prototype=Object.create(mt.prototype);pr.prototype.consumer=mt;pr.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=ne.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};pr.fromSourceMap=function(t,r){var n=Object.create(pr.prototype),i=n._names=ec.fromArray(t._names.toArray(),!0),s=n._sources=ec.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return ne.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),o=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,u=a.length;l<u;l++){var p=a[l],d=new G_;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)),o.push(d)}return uu(n.__originalMappings,ne.compareByOriginalPositions),n};pr.prototype._version=3;Object.defineProperty(pr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function G_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Xb=ne.compareByGeneratedPositionsDeflatedNoLine;function V_(e,t){let r=e.length,n=e.length-t;if(!(n<=1))if(n==2){let i=e[t],s=e[t+1];Xb(i,s)>0&&(e[t]=s,e[t+1]=i)}else if(n<20)for(let i=t;i<r;i++)for(let s=i;s>t;s--){let a=e[s-1],o=e[s];if(Xb(a,o)<=0)break;e[s-1]=o,e[s]=a}else uu(e,Xb,t)}pr.prototype._parseMappings=function(t,r){var n=1,i=0,s=0,a=0,o=0,c=0,l=t.length,u=0,p={},d={},h=[],f=[],m,y,b,x,w;let v=0;for(;u<l;)if(t.charAt(u)===";")n++,u++,i=0,V_(f,v),v=f.length;else if(t.charAt(u)===",")u++;else{for(m=new G_,m.generatedLine=n,x=u;x<l&&!this._charIsMappingSeparator(t,x);x++);for(y=t.slice(u,x),b=[];u<x;)rV.decode(t,u,d),w=d.value,u=d.rest,b.push(w);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(m.generatedColumn=i+b[0],i=m.generatedColumn,b.length>1&&(m.source=o+b[1],o+=b[1],m.originalLine=s+b[2],s=m.originalLine,m.originalLine+=1,m.originalColumn=a+b[3],a=m.originalColumn,b.length>4&&(m.name=c+b[4],c+=b[4])),f.push(m),typeof m.originalLine=="number"){let E=m.source;for(;h.length<=E;)h.push(null);h[E]===null&&(h[E]=[]),h[E].push(m)}}V_(f,v),this.__generatedMappings=f;for(var C=0;C<h.length;C++)h[C]!=null&&uu(h[C],ne.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};pr.prototype._findMapping=function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Qb.search(t,r,s,a)};pr.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};pr.prototype.originalPositionFor=function(t){var r={generatedLine:ne.getArg(t,"line"),generatedColumn:ne.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",ne.compareByGeneratedPositionsDeflated,ne.getArg(t,"bias",mt.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=ne.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=ne.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=ne.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:ne.getArg(i,"originalLine",null),column:ne.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};pr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};pr.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=ne.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=ne.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];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.')};pr.prototype.generatedPositionFor=function(t){var r=ne.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:ne.getArg(t,"line"),originalColumn:ne.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ne.compareByOriginalPositions,ne.getArg(t,"bias",mt.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:ne.getArg(s,"generatedLine",null),column:ne.getArg(s,"generatedColumn",null),lastColumn:ne.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Nf.BasicSourceMapConsumer=pr;function Qn(e,t){var r=e;typeof e=="string"&&(r=ne.parseSourceMapInput(e));var n=ne.getArg(r,"version"),i=ne.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new ec,this._names=new ec;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=ne.getArg(a,"offset"),c=ne.getArg(o,"line"),l=ne.getArg(o,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=o,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new mt(ne.getArg(a,"map"),t)}})}Qn.prototype=Object.create(mt.prototype);Qn.prototype.constructor=mt;Qn.prototype._version=3;Object.defineProperty(Qn.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Qn.prototype.originalPositionFor=function(t){var r={generatedLine:ne.getArg(t,"line"),generatedColumn:ne.getArg(t,"column")},n=Qb.search(r,this._sections,function(s,a){var o=s.generatedLine-a.generatedOffset.generatedLine;return o||s.generatedColumn-a.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:t.bias}):{source:null,line:null,column:null,name:null}};Qn.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Qn.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Qn.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(ne.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);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}};Qn.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var o=s[a],c=i.consumer._sources.at(o.source);c!==null&&(c=ne.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var l=null;o.name&&(l=i.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var u={source:c,generatedLine:o.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(i.generatedOffset.generatedLine===o.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}uu(this.__generatedMappings,ne.compareByGeneratedPositionsDeflated),uu(this.__originalMappings,ne.compareByOriginalPositions)};Nf.IndexedSourceMapConsumer=Qn});var Y_=D(J_=>{g();var nV=Jb().SourceMapGenerator,Ff=Zo(),iV=/(\r?\n)/,sV=10,tc="$$$isSourceNode$$$";function pn(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[tc]=!0,n!=null&&this.add(n)}pn.fromStringWithSourceMap=function(t,r,n){var i=new pn,s=t.split(iV),a=0,o=function(){var d=f(),h=f()||"";return d+h;function f(){return a<s.length?s[a++]:void 0}},c=1,l=0,u=null;return r.eachMapping(function(d){if(u!==null)if(c<d.generatedLine)p(u,o()),c++,l=0;else{var h=s[a]||"",f=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,p(u,f),u=d;return}for(;c<d.generatedLine;)i.add(o()),c++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}u=d},this),a<s.length&&(u&&p(u,o()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Ff.join(n,d)),i.setSourceContent(d,h))}),i;function p(d,h){if(d===null||d.source===void 0)i.add(h);else{var f=n?Ff.join(n,d.source):d.source;i.add(new pn(d.originalLine,d.originalColumn,f,h,d.name))}}};pn.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[tc]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};pn.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[tc]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};pn.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[tc]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};pn.prototype.join=function(t){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(t);r.push(this.children[n]),this.children=r}return this};pn.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[tc]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};pn.prototype.setSourceContent=function(t,r){this.sourceContents[Ff.toSetString(t)]=r};pn.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][tc]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Ff.fromSetString(i[r]),this.sourceContents[i[r]])};pn.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};pn.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new nV(t),i=!1,s=null,a=null,o=null,c=null;return this.walk(function(l,u){r.code+=l,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||a!==u.line||o!==u.column||c!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name}),s=u.source,a=u.line,o=u.column,c=u.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===sV?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name})):r.column++}),this.walkSourceContents(function(l,u){n.setSourceContent(l,u)}),{code:r.code,map:n}};J_.SourceNode=pn});var X_=D(Of=>{g();Of.SourceMapGenerator=Jb().SourceMapGenerator;Of.SourceMapConsumer=W_().SourceMapConsumer;Of.SourceNode=Y_().SourceNode});var P2=D(vu=>{"use strict";g();Object.defineProperty(vu,"__esModule",{value:!0});function aV(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Pi=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}},ac=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function Nr(e,t){let{line:r,column:n,index:i}=e;return new Pi(r,n+t,i+t)}var Q_="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",oV={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Q_},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Q_}},Z_={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"},Bf=e=>e.type==="UpdateExpression"?Z_.UpdateExpression[`${e.prefix}`]:Z_[e.type],cV={AccessorIsGenerator:({kind:e})=>`A ${e}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:e})=>`Missing initializer in ${e} 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:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1036
1036
|
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="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:e})=>`Unsyntactic ${e==="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:e})=>`A string literal cannot be used as an imported binding.
|
|
1037
1037
|
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===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:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Bf(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Bf(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Bf(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} 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:e})=>`Label '${e}' 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:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).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:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' 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:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,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:e})=>`Unexpected keyword '${e}'.`,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:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,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:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,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:e})=>`Identifier '${e}' 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."},lV={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' 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."},uV=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),pV={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:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Bf({type:e})}; 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.'},dV=["message"];function e2(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function fV({toMessage:e,code:t,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(a,o){let c=new SyntaxError;return c.code=t,c.reasonCode=r,c.loc=a,c.pos=a.index,c.syntaxPlugin=n,i&&(c.missingPlugin=o.missingPlugin),e2(c,"clone",function(u={}){var p;let{line:d,column:h,index:f}=(p=u.loc)!=null?p:a;return s(new Pi(d,h,f),Object.assign({},o,u.details))}),e2(c,"details",o),Object.defineProperty(c,"message",{configurable:!0,get(){let l=`${e(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),c}}function ls(e,t){if(Array.isArray(e))return n=>ls(n,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=aV(s,dV),c=typeof a=="string"?()=>a:a;r[n]=fV(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},t?{syntaxPlugin:t}:{},o))}return r}var T=Object.assign({},ls(oV),ls(cV),ls(lV),ls`pipelineOperator`(pV)),{defineProperty:mV}=Object,t2=(e,t)=>{e&&mV(e,t,{enumerable:!1,value:e[t]})};function pu(e){return t2(e.loc.start,"index"),t2(e.loc.end,"index"),e}var hV=e=>class extends e{parse(){let r=pu(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(pu)),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,a){super.parseBlockBody(r,n,i,s,a);let o=r.directives.map(c=>this.directiveToStmt(c));r.body=o.concat(r.body),delete r.directives}pushClassMethod(r,n,i,s,a,o){this.parseMethod(n,i,s,a,o,"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,a,o,c=!1){let l=this.startNode();return l.kind=r.kind,l=super.parseMethod(l,n,i,s,a,o,c),l.type="FunctionExpression",delete l.kind,r.value=l,o==="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,a){let o=super.parseObjectMethod(r,n,i,s,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,n,i,s){let a=super.parseObjectProperty(r,n,i,s);return a&&(a.kind="init",a.type="Property"),a}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(T.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(T.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,a;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(a=i.arguments[1])!=null?a: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 a;let{declaration:o}=s;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===s.start&&this.resetStartLocation(s,i)}break}return s}parseSubscript(r,n,i,s){let a=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),s.stop){let o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else(a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}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 pu(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),pu(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),pu(r)}},Oa=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},Qe={brace:new Oa("{"),j_oTag:new Oa("<tag"),j_cTag:new Oa("</tag"),j_expr:new Oa("<tag>...</tag>",!0)};Qe.template=new Oa("`",!0);var De=!0,Y=!0,Zb=!0,du=!0,zs=!0,gV=!0,jf=class{constructor(t,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=t,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}},Sx=new Map;function _e(e,t={}){t.keyword=e;let r=ae(e,t);return Sx.set(e,r),r}function kr(e,t){return ae(e,{beforeExpr:De,binop:t})}var gu=-1,os=[],Tx=[],Ax=[],Px=[],_x=[],Ix=[];function ae(e,t={}){var r,n,i,s;return++gu,Tx.push(e),Ax.push((r=t.binop)!=null?r:-1),Px.push((n=t.beforeExpr)!=null?n:!1),_x.push((i=t.startsExpr)!=null?i:!1),Ix.push((s=t.prefix)!=null?s:!1),os.push(new jf(e,t)),gu}function Ce(e,t={}){var r,n,i,s;return++gu,Sx.set(e,gu),Tx.push(e),Ax.push((r=t.binop)!=null?r:-1),Px.push((n=t.beforeExpr)!=null?n:!1),_x.push((i=t.startsExpr)!=null?i:!1),Ix.push((s=t.prefix)!=null?s:!1),os.push(new jf("name",t)),gu}var yV={bracketL:ae("[",{beforeExpr:De,startsExpr:Y}),bracketHashL:ae("#[",{beforeExpr:De,startsExpr:Y}),bracketBarL:ae("[|",{beforeExpr:De,startsExpr:Y}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:De,startsExpr:Y}),braceBarL:ae("{|",{beforeExpr:De,startsExpr:Y}),braceHashL:ae("#{",{beforeExpr:De,startsExpr:Y}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:De,startsExpr:Y}),parenR:ae(")"),comma:ae(",",{beforeExpr:De}),semi:ae(";",{beforeExpr:De}),colon:ae(":",{beforeExpr:De}),doubleColon:ae("::",{beforeExpr:De}),dot:ae("."),question:ae("?",{beforeExpr:De}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:De}),template:ae("template"),ellipsis:ae("...",{beforeExpr:De}),backQuote:ae("`",{startsExpr:Y}),dollarBraceL:ae("${",{beforeExpr:De,startsExpr:Y}),templateTail:ae("...`",{startsExpr:Y}),templateNonTail:ae("...${",{beforeExpr:De,startsExpr:Y}),at:ae("@"),hash:ae("#",{startsExpr:Y}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:De,isAssign:du}),assign:ae("_=",{beforeExpr:De,isAssign:du}),slashAssign:ae("_=",{beforeExpr:De,isAssign:du}),xorAssign:ae("_=",{beforeExpr:De,isAssign:du}),moduloAssign:ae("_=",{beforeExpr:De,isAssign:du}),incDec:ae("++/--",{prefix:zs,postfix:gV,startsExpr:Y}),bang:ae("!",{beforeExpr:De,prefix:zs,startsExpr:Y}),tilde:ae("~",{beforeExpr:De,prefix:zs,startsExpr:Y}),doubleCaret:ae("^^",{startsExpr:Y}),doubleAt:ae("@@",{startsExpr:Y}),pipeline:kr("|>",0),nullishCoalescing:kr("??",1),logicalOR:kr("||",1),logicalAND:kr("&&",2),bitwiseOR:kr("|",3),bitwiseXOR:kr("^",4),bitwiseAND:kr("&",5),equality:kr("==/!=/===/!==",6),lt:kr("</>/<=/>=",7),gt:kr("</>/<=/>=",7),relational:kr("</>/<=/>=",7),bitShift:kr("<</>>/>>>",8),bitShiftL:kr("<</>>/>>>",8),bitShiftR:kr("<</>>/>>>",8),plusMin:ae("+/-",{beforeExpr:De,binop:9,prefix:zs,startsExpr:Y}),modulo:ae("%",{binop:10,startsExpr:Y}),star:ae("*",{binop:10}),slash:kr("/",10),exponent:ae("**",{beforeExpr:De,binop:11,rightAssociative:!0}),_in:_e("in",{beforeExpr:De,binop:7}),_instanceof:_e("instanceof",{beforeExpr:De,binop:7}),_break:_e("break"),_case:_e("case",{beforeExpr:De}),_catch:_e("catch"),_continue:_e("continue"),_debugger:_e("debugger"),_default:_e("default",{beforeExpr:De}),_else:_e("else",{beforeExpr:De}),_finally:_e("finally"),_function:_e("function",{startsExpr:Y}),_if:_e("if"),_return:_e("return",{beforeExpr:De}),_switch:_e("switch"),_throw:_e("throw",{beforeExpr:De,prefix:zs,startsExpr:Y}),_try:_e("try"),_var:_e("var"),_const:_e("const"),_with:_e("with"),_new:_e("new",{beforeExpr:De,startsExpr:Y}),_this:_e("this",{startsExpr:Y}),_super:_e("super",{startsExpr:Y}),_class:_e("class",{startsExpr:Y}),_extends:_e("extends",{beforeExpr:De}),_export:_e("export"),_import:_e("import",{startsExpr:Y}),_null:_e("null",{startsExpr:Y}),_true:_e("true",{startsExpr:Y}),_false:_e("false",{startsExpr:Y}),_typeof:_e("typeof",{beforeExpr:De,prefix:zs,startsExpr:Y}),_void:_e("void",{beforeExpr:De,prefix:zs,startsExpr:Y}),_delete:_e("delete",{beforeExpr:De,prefix:zs,startsExpr:Y}),_do:_e("do",{isLoop:Zb,beforeExpr:De}),_for:_e("for",{isLoop:Zb}),_while:_e("while",{isLoop:Zb}),_as:Ce("as",{startsExpr:Y}),_assert:Ce("assert",{startsExpr:Y}),_async:Ce("async",{startsExpr:Y}),_await:Ce("await",{startsExpr:Y}),_defer:Ce("defer",{startsExpr:Y}),_from:Ce("from",{startsExpr:Y}),_get:Ce("get",{startsExpr:Y}),_let:Ce("let",{startsExpr:Y}),_meta:Ce("meta",{startsExpr:Y}),_of:Ce("of",{startsExpr:Y}),_sent:Ce("sent",{startsExpr:Y}),_set:Ce("set",{startsExpr:Y}),_source:Ce("source",{startsExpr:Y}),_static:Ce("static",{startsExpr:Y}),_using:Ce("using",{startsExpr:Y}),_yield:Ce("yield",{startsExpr:Y}),_asserts:Ce("asserts",{startsExpr:Y}),_checks:Ce("checks",{startsExpr:Y}),_exports:Ce("exports",{startsExpr:Y}),_global:Ce("global",{startsExpr:Y}),_implements:Ce("implements",{startsExpr:Y}),_intrinsic:Ce("intrinsic",{startsExpr:Y}),_infer:Ce("infer",{startsExpr:Y}),_is:Ce("is",{startsExpr:Y}),_mixins:Ce("mixins",{startsExpr:Y}),_proto:Ce("proto",{startsExpr:Y}),_require:Ce("require",{startsExpr:Y}),_satisfies:Ce("satisfies",{startsExpr:Y}),_keyof:Ce("keyof",{startsExpr:Y}),_readonly:Ce("readonly",{startsExpr:Y}),_unique:Ce("unique",{startsExpr:Y}),_abstract:Ce("abstract",{startsExpr:Y}),_declare:Ce("declare",{startsExpr:Y}),_enum:Ce("enum",{startsExpr:Y}),_module:Ce("module",{startsExpr:Y}),_namespace:Ce("namespace",{startsExpr:Y}),_interface:Ce("interface",{startsExpr:Y}),_type:Ce("type",{startsExpr:Y}),_opaque:Ce("opaque",{startsExpr:Y}),name:ae("name",{startsExpr:Y}),string:ae("string",{startsExpr:Y}),num:ae("num",{startsExpr:Y}),bigint:ae("bigint",{startsExpr:Y}),decimal:ae("decimal",{startsExpr:Y}),regexp:ae("regexp",{startsExpr:Y}),privateName:ae("#name",{startsExpr:Y}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:!0}),jsxTagStart:ae("jsxTagStart",{startsExpr:!0}),jsxTagEnd:ae("jsxTagEnd"),placeholder:ae("%%",{startsExpr:!0})};function Me(e){return e>=93&&e<=132}function bV(e){return e<=92}function Zn(e){return e>=58&&e<=132}function f2(e){return e>=58&&e<=136}function xV(e){return Px[e]}function sx(e){return _x[e]}function vV(e){return e>=29&&e<=33}function r2(e){return e>=129&&e<=131}function EV(e){return e>=90&&e<=92}function kx(e){return e>=58&&e<=92}function wV(e){return e>=39&&e<=59}function CV(e){return e===34}function DV(e){return Ix[e]}function SV(e){return e>=121&&e<=123}function TV(e){return e>=124&&e<=130}function Hs(e){return Tx[e]}function Mf(e){return Ax[e]}function AV(e){return e===57}function Uf(e){return e>=24&&e<=25}function as(e){return os[e]}os[8].updateContext=e=>{e.pop()},os[5].updateContext=os[7].updateContext=os[23].updateContext=e=>{e.push(Qe.brace)},os[22].updateContext=e=>{e[e.length-1]===Qe.template?e.pop():e.push(Qe.template)},os[142].updateContext=e=>{e.push(Qe.j_expr,Qe.j_oTag)};var Nx="\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",m2="\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",PV=new RegExp("["+Nx+"]"),_V=new RegExp("["+Nx+m2+"]");Nx=m2=null;var h2=[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],IV=[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 ax(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function cs(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&PV.test(String.fromCharCode(e)):ax(e,h2)}function nc(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&_V.test(String.fromCharCode(e)):ax(e,h2)||ax(e,IV)}var Fx={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"]},kV=new Set(Fx.keyword),NV=new Set(Fx.strict),FV=new Set(Fx.strictBind);function g2(e,t){return t&&e==="await"||e==="enum"}function y2(e,t){return g2(e,t)||NV.has(e)}function b2(e){return FV.has(e)}function x2(e,t){return y2(e,t)||b2(e)}function OV(e){return kV.has(e)}function RV(e,t,r){return e===64&&t===64&&cs(r)}var LV=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 BV(e){return LV.has(e)}var yu=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},bu=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,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 t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];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(t){return new yu(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(T.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);let i=t.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}},ox=class extends yu{constructor(...t){super(...t),this.declareFunctions=new Set}},cx=class extends bu{createScope(t){return new ox(t)}declareName(t,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){let i=t.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},lx=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;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(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}};function v2(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function MV(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function xu(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function fu(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?xu(e,r.comments):v2(n,r.comments)}var ux=class extends lx{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===t.end&&(s.leadingNode=t,i--);let{start:a}=t;for(;i>=0;i--){let o=r[i],c=o.end;if(c>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else{c===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&v2(t.leadingNode,r),t.trailingNode!==null&&MV(t.trailingNode,r);else{let{containingNode:n,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":fu(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":fu(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":fu(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":fu(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":fu(n,n.specifiers,t);break;default:xu(n,r)}else xu(n,r)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===t?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===t&&(r[n-2].trailingNode=null))}takeSurroundingComments(t,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=i[a],c=o.end;if(o.start===n)o.leadingNode=t;else if(c===r)o.trailingNode=t;else if(c<r)break}}},$V=/\r\n|[\r\n\u2028\u2029]/,Rf=new RegExp($V.source,"g");function ic(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function n2(e,t,r){for(let n=t;n<r;n++)if(ic(e.charCodeAt(n)))return!0;return!1}var ex=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tx=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function jV(e){switch(e){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 px=class e{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=[Qe.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startLine:n,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new Pi(n,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new Pi(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},UV=function(t){return t>=48&&t<=57},i2={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Lf={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function s2(e,t,r,n,i,s){let a=r,o=n,c=i,l="",u=null,p=r,{length:d}=t;for(;;){if(r>=d){s.unterminated(a,o,c),l+=t.slice(p,r);break}let h=t.charCodeAt(r);if(qV(e,h,t,r)){l+=t.slice(p,r);break}if(h===92){l+=t.slice(p,r);let f=zV(t,r,n,i,e==="template",s);f.ch===null&&!u?u={pos:r,lineStart:n,curLine:i}:l+=f.ch,{pos:r,lineStart:n,curLine:i}=f,p=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?e==="template"?(l+=t.slice(p,r)+`
|
|
1038
1038
|
`,++r,h===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,c):++r}return{pos:r,str:l,firstInvalidLoc:u,lineStart:n,curLine:i,containsInvalid:!!u}}function qV(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function zV(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),c=e.charCodeAt(t++);switch(c){case 110:return o(`
|
|
@@ -1181,7 +1181,7 @@ Restarting server after Builder Devtools update...
|
|
|
1181
1181
|
<h3>How's Devtools working for you?</h3>
|
|
1182
1182
|
<p>We'd love your feedback!</p>
|
|
1183
1183
|
</div>
|
|
1184
|
-
\`,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.6.27"}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)}
|
|
1184
|
+
\`,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.6.28"}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)}
|
|
1185
1185
|
</style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
|
|
1186
1186
|
<aside>
|
|
1187
1187
|
<div class="logo"></div>
|
|
@@ -1220,7 +1220,7 @@ Restarting server after Builder Devtools update...
|
|
|
1220
1220
|
</nav>
|
|
1221
1221
|
</section>
|
|
1222
1222
|
</main>
|
|
1223
|
-
\`,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.6.
|
|
1223
|
+
\`,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.6.28"),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.6.28"),mo());})();`)}async function wk(e){return Ck(e,`<!doctype html>
|
|
1224
1224
|
<html lang="en" dir="ltr">
|
|
1225
1225
|
<head>
|
|
1226
1226
|
<meta charset="utf-8" />
|
|
@@ -1895,7 +1895,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
|
|
|
1895
1895
|
`)+`\r
|
|
1896
1896
|
\r
|
|
1897
1897
|
`};hl.setupSocket(r),i&&i.length&&r.unshift(i);var c=(hl.isSSL.test(n.target.protocol)?ale:sle).request(hl.setupOutgoing(n.ssl||{},n,t));return s&&s.emit("proxyReqWs",c,t,r,n,i),c.on("error",l),c.on("response",function(u){u.upgrade||(r.write(o("HTTP/"+u.httpVersion+" "+u.statusCode+" "+u.statusMessage,u.headers)),u.pipe(r))}),c.on("upgrade",function(u,p,d){p.on("error",l),p.on("end",function(){s.emit("close",u,p,d)}),r.on("error",function(){p.end()}),hl.setupSocket(p),d&&d.length&&p.unshift(d),r.write(o("HTTP/1.1 101 Switching Protocols",u.headers)),p.pipe(r).pipe(p),s.emit("open",p),s.emit("proxySocket",p)}),c.end();function l(u){a?a(u,t,r):s.emit("error",u,t,r),r.end()}}}});var u5=D((d4e,l5)=>{g();var o5=l5.exports,i5=require("util")._extend,ole=require("url").parse,c5=PB(),cle=require("http"),lle=require("https"),s5=t5(),a5=n5();o5.Server=lo;function GE(e){return function(t){return function(r,n){var i=e==="ws"?this.wsPasses:this.webPasses,s=[].slice.call(arguments),a=s.length-1,o,c;typeof s[a]=="function"&&(c=s[a],a--);var l=t;if(!(s[a]instanceof Buffer)&&s[a]!==n&&(l=i5({},t),i5(l,s[a]),a--),s[a]instanceof Buffer&&(o=s[a]),["target","forward"].forEach(function(p){typeof l[p]=="string"&&(l[p]=ole(l[p]))}),!l.target&&!l.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var u=0;u<i.length&&!i[u](r,n,l,o,this,c);u++);}}}o5.createRightProxy=GE;function lo(e){c5.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=GE("web")(e),this.ws=this.proxyWebsocketRequest=GE("ws")(e),this.options=e,this.webPasses=Object.keys(s5).map(function(t){return s5[t]}),this.wsPasses=Object.keys(a5).map(function(t){return a5[t]}),this.on("error",this.onError,this)}require("util").inherits(lo,c5);lo.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};lo.prototype.listen=function(e,t){var r=this,n=function(i,s){r.web(i,s)};return this._server=this.options.ssl?lle.createServer(this.options.ssl,n):cle.createServer(n),this.options.ws&&this._server.on("upgrade",function(i,s,a){r.ws(i,s,a)}),this._server.listen(e,t),this};lo.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};lo.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(s,a){s.name===t&&(i=a)}),i===!1)throw new Error("No such pass");n.splice(i,0,r)};lo.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(s,a){s.name===t&&(i=a)}),i===!1)throw new Error("No such pass");n.splice(i++,0,r)}});var d5=D((m4e,p5)=>{g();var id=u5().Server;function WE(e){return new id(e)}id.createProxyServer=WE;id.createServer=WE;id.createProxy=WE;p5.exports=id});var m5=D((g4e,f5)=>{g();f5.exports=d5()});var cg=D((b4e,h5)=>{"use strict";g();h5.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var lg=D(sd=>{"use strict";g();Object.defineProperty(sd,"__esModule",{value:!0});sd.ERRORS=void 0;var ule;(function(e){e.ERR_CONFIG_FACTORY_TARGET_MISSING='[HPM] Missing "target" option. Example: {target: "http://www.example.org"}',e.ERR_CONTEXT_MATCHER_GENERIC='[HPM] Invalid context. Expecting something like: "/api" or ["/api", "/ajax"]',e.ERR_CONTEXT_MATCHER_INVALID_ARRAY='[HPM] Invalid context. Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"]',e.ERR_PATH_REWRITER_CONFIG="[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function"})(ule=sd.ERRORS||(sd.ERRORS={}))});var yl=D(gl=>{"use strict";g();Object.defineProperty(gl,"__esModule",{value:!0});gl.getArrow=gl.getInstance=void 0;var ple=require("util"),JE,g5={log:console.log,debug:console.log,info:console.info,warn:console.warn,error:console.error},ad;(function(e){e[e.debug=10]="debug",e[e.info=20]="info",e[e.warn=30]="warn",e[e.error=50]="error",e[e.silent=80]="silent"})(ad||(ad={}));function dle(){return JE||(JE=new YE),JE}gl.getInstance=dle;var YE=class{constructor(){this.setLevel("info"),this.setProvider(()=>g5)}log(){this.provider.log(this._interpolate.apply(null,arguments))}debug(){this._showLevel("debug")&&this.provider.debug(this._interpolate.apply(null,arguments))}info(){this._showLevel("info")&&this.provider.info(this._interpolate.apply(null,arguments))}warn(){this._showLevel("warn")&&this.provider.warn(this._interpolate.apply(null,arguments))}error(){this._showLevel("error")&&this.provider.error(this._interpolate.apply(null,arguments))}setLevel(t){this.isValidLevel(t)&&(this.logLevel=t)}setProvider(t){t&&this.isValidProvider(t)&&(this.provider=t(g5))}isValidProvider(t){if(t&&typeof t!="function")throw new Error("[HPM] Log provider config error. Expecting a function.");return!0}isValidLevel(t){let n=Object.keys(ad).includes(t);if(!n)throw new Error("[HPM] Log level error. Invalid logLevel.");return n}_showLevel(t){let r=!1,n=ad[this.logLevel];return n&&n<=ad[t]&&(r=!0),r}_interpolate(t,...r){return ple.format(t,...r)}};function fle(e,t,r,n){let i=[">"],s=r!==n,a=e!==t;return a&&!s?i.unshift("~"):!a&&s?i.unshift("="):a&&s?i.unshift("\u2248"):i.unshift("-"),i.join("")}gl.getArrow=fle});var x5=D(ug=>{"use strict";g();Object.defineProperty(ug,"__esModule",{value:!0});ug.createConfig=void 0;var mle=cg(),b5=require("url"),hle=lg(),gle=yl(),y5=(0,gle.getInstance)();function yle(e,t){let r={context:void 0,options:{}};if(xle(e,t))r.context="/",r.options=Object.assign(r.options,e);else if(ble(e)){let n=b5.parse(e),i=[n.protocol,"//",n.host].join("");r.context=n.pathname||"/",r.options=Object.assign(r.options,{target:i},t),(n.protocol==="ws:"||n.protocol==="wss:")&&(r.options.ws=!0)}else r.context=e,r.options=Object.assign(r.options,t);if(vle(r.options),!r.options.target&&!r.options.router)throw new Error(hle.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING);return r}ug.createConfig=yle;function ble(e){if(typeof e=="string")return!!b5.parse(e).host}function xle(e,t){return mle(e)&&(t==null||Object.keys(t).length===0)}function vle(e){e.logLevel&&y5.setLevel(e.logLevel),e.logProvider&&y5.setProvider(e.logProvider)}});var E5=D((T4e,v5)=>{g();v5.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var D5=D((P4e,C5)=>{g();var Ele=E5(),w5={"{":"}","(":")","[":"]"},wle=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,a=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(a===-1||a>n||(a=e.indexOf("\\",t),a===-1||a>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(a=e.indexOf("\\",t),a===-1||a>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(a=e.indexOf("\\",t),a===-1||a>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(a=e.indexOf("\\",r),a===-1||a>s))))return!0;if(e[t]==="\\"){var o=e[t+1];t+=2;var c=w5[o];if(c){var l=e.indexOf(c,t);l!==-1&&(t=l+1)}if(e[t]==="!")return!0}else t++}return!1},Cle=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=w5[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};C5.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Ele(t))return!0;var n=wle;return r&&r.strict===!1&&(n=Cle),n(t)}});var pg=D(Un=>{"use strict";g();Un.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Un.find=(e,t)=>e.nodes.find(r=>r.type===t);Un.exceedsLimit=(e,t,r=1,n)=>n===!1||!Un.isInteger(e)||!Un.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;Un.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Un.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Un.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Un.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Un.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Un.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var dg=D((N4e,T5)=>{"use strict";g();var S5=pg();T5.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&S5.isInvalidBrace(i),a=n.invalid===!0&&t.escapeInvalid===!0,o="";if(n.value)return(s||a)&&S5.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)o+=r(c);return o};return r(e)}});var P5=D((O4e,A5)=>{"use strict";g();A5.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var B5=D((L4e,L5)=>{"use strict";g();var _5=P5(),uo=(e,t,r)=>{if(_5(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(_5(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),a=String(n.capture),o=String(n.wrap),c=e+":"+t+"="+i+s+a+o;if(uo.cache.hasOwnProperty(c))return uo.cache[c].result;let l=Math.min(e,t),u=Math.max(e,t);if(Math.abs(l-u)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let p=R5(e)||R5(t),d={min:e,max:t,a:l,b:u},h=[],f=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),l<0){let m=u<0?Math.abs(u):1;f=I5(m,Math.abs(l),d,n),l=d.a=0}return u>=0&&(h=I5(l,u,d,n)),d.negatives=f,d.positives=h,d.result=Dle(f,h,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&h.length+f.length>1&&(d.result=`(?:${d.result})`),uo.cache[c]=d,d.result};function Dle(e,t,r){let n=XE(e,t,"-",!1,r)||[],i=XE(t,e,"",!1,r)||[],s=XE(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Sle(e,t){let r=1,n=1,i=N5(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=N5(e,r);for(i=F5(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=F5(t+1,n)-1;return s=[...s],s.sort(Ple),s}function Tle(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Ale(e,t),i=n.length,s="",a=0;for(let o=0;o<i;o++){let[c,l]=n[o];c===l?s+=c:c!=="0"||l!=="9"?s+=_le(c,l,r):a++}return a&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[a],digits:i}}function I5(e,t,r,n){let i=Sle(e,t),s=[],a=e,o;for(let c=0;c<i.length;c++){let l=i[c],u=Tle(String(a),String(l),n),p="";if(!r.isPadded&&o&&o.pattern===u.pattern){o.count.length>1&&o.count.pop(),o.count.push(u.count[0]),o.string=o.pattern+O5(o.count),a=l+1;continue}r.isPadded&&(p=Ile(l,r,n)),u.string=p+u.pattern+O5(u.count),s.push(u),a=l+1,o=u}return s}function XE(e,t,r,n,i){let s=[];for(let a of e){let{string:o}=a;!n&&!k5(t,"string",o)&&s.push(r+o),n&&k5(t,"string",o)&&s.push(r+o)}return s}function Ale(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Ple(e,t){return e>t?1:t>e?-1:0}function k5(e,t,r){return e.some(n=>n[t]===r)}function N5(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function F5(e,t){return e-e%Math.pow(10,t)}function O5(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function _le(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function R5(e){return/^-?(0+)\d/.test(e)}function Ile(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}uo.cache={};uo.clearCache=()=>uo.cache={};L5.exports=uo});var ew=D((M4e,K5)=>{"use strict";g();var kle=require("util"),$5=B5(),M5=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Nle=e=>t=>e===!0?Number(t):String(t),QE=e=>typeof e=="number"||typeof e=="string"&&e!=="",od=e=>Number.isInteger(+e),ZE=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Fle=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Ole=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},mg=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Rle=(e,t,r)=>{e.negatives.sort((o,c)=>o<c?-1:o>c?1:0),e.positives.sort((o,c)=>o<c?-1:o>c?1:0);let n=t.capture?"":"?:",i="",s="",a;return e.positives.length&&(i=e.positives.map(o=>mg(String(o),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(o=>mg(String(o),r)).join("|")})`),i&&s?a=`${i}|${s}`:a=i||s,t.wrap?`(${n}${a})`:a},j5=(e,t,r,n)=>{if(r)return $5(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},U5=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return $5(e,t,r)},q5=(...e)=>new RangeError("Invalid range arguments: "+kle.inspect(...e)),z5=(e,t,r)=>{if(r.strictRanges===!0)throw q5([e,t]);return[]},Lle=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Ble=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw q5([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let a=i>s,o=String(e),c=String(t),l=String(r);r=Math.max(Math.abs(r),1);let u=ZE(o)||ZE(c)||ZE(l),p=u?Math.max(o.length,c.length,l.length):0,d=u===!1&&Fle(e,t,n)===!1,h=n.transform||Nle(d);if(n.toRegex&&r===1)return j5(mg(e,p),mg(t,p),!0,n);let f={negatives:[],positives:[]},m=x=>f[x<0?"negatives":"positives"].push(Math.abs(x)),y=[],b=0;for(;a?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):y.push(Ole(h(i,b),p,d)),i=a?i-r:i+r,b++;return n.toRegex===!0?r>1?Rle(f,n,p):U5(y,null,{wrap:!1,...n}):y},Mle=(e,t,r=1,n={})=>{if(!od(e)&&e.length>1||!od(t)&&t.length>1)return z5(e,t,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),o=s>a,c=Math.min(s,a),l=Math.max(s,a);if(n.toRegex&&r===1)return j5(c,l,!1,n);let u=[],p=0;for(;o?s>=a:s<=a;)u.push(i(s,p)),s=o?s-r:s+r,p++;return n.toRegex===!0?U5(u,null,{wrap:!1,options:n}):u},fg=(e,t,r,n={})=>{if(t==null&&QE(e))return[e];if(!QE(e)||!QE(t))return z5(e,t,n);if(typeof r=="function")return fg(e,t,1,{transform:r});if(M5(r))return fg(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,od(r)?od(e)&&od(t)?Ble(e,t,r,i):Mle(e,t,Math.max(Math.abs(r),1),i):r!=null&&!M5(r)?Lle(r,i):fg(e,t,1,r)};K5.exports=fg});var G5=D((j4e,V5)=>{"use strict";g();var $le=ew(),H5=pg(),jle=(e,t={})=>{let r=(n,i={})=>{let s=H5.isInvalidBrace(i),a=n.invalid===!0&&t.escapeInvalid===!0,o=s===!0||a===!0,c=t.escapeInvalid===!0?"\\":"",l="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return o?c+n.value:"(";if(n.type==="close")return o?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":o?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=H5.reduce(n.nodes),p=$le(...u,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return u.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let u of n.nodes)l+=r(u,n);return l};return r(e)};V5.exports=jle});var Y5=D((q4e,J5)=>{"use strict";g();var Ule=ew(),W5=dg(),bl=pg(),po=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?bl.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(po(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?po(i,s,r):i+s);return bl.flatten(n)},qle=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let a=s,o=s.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(i.invalid||i.dollar){o.push(po(o.pop(),W5(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){o.push(po(o.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let p=bl.reduce(i.nodes);if(bl.exceedsLimit(...p,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=Ule(...p,t);d.length===0&&(d=W5(i,t)),o.push(po(o.pop(),d)),i.nodes=[];return}let c=bl.encloseBrace(i),l=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=u.queue;for(let p=0;p<i.nodes.length;p++){let d=i.nodes[p];if(d.type==="comma"&&i.type==="brace"){p===1&&l.push(""),l.push("");continue}if(d.type==="close"){o.push(po(o.pop(),l,c));continue}if(d.value&&d.type!=="open"){l.push(po(l.pop(),d.value));continue}d.nodes&&n(d,i)}return l};return bl.flatten(n(e))};J5.exports=qle});var Q5=D((K4e,X5)=>{"use strict";g();X5.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
1898
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var nM=D((V4e,rM)=>{"use strict";g();var zle=dg(),{MAX_LENGTH:Z5,CHAR_BACKSLASH:tw,CHAR_BACKTICK:Kle,CHAR_COMMA:Hle,CHAR_DOT:Vle,CHAR_LEFT_PARENTHESES:Gle,CHAR_RIGHT_PARENTHESES:Wle,CHAR_LEFT_CURLY_BRACE:Jle,CHAR_RIGHT_CURLY_BRACE:Yle,CHAR_LEFT_SQUARE_BRACKET:eM,CHAR_RIGHT_SQUARE_BRACKET:tM,CHAR_DOUBLE_QUOTE:Xle,CHAR_SINGLE_QUOTE:Qle,CHAR_NO_BREAK_SPACE:Zle,CHAR_ZERO_WIDTH_NOBREAK_SPACE:eue}=Q5(),tue=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Z5,r.maxLength):Z5;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],a=i,o=i,c=0,l=e.length,u=0,p=0,d,h=()=>e[u++],f=m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return a.nodes.push(m),m.parent=a,m.prev=o,o=m,m};for(f({type:"bos"});u<l;)if(a=s[s.length-1],d=h(),!(d===eue||d===Zle)){if(d===tw){f({type:"text",value:(t.keepEscaping?d:"")+h()});continue}if(d===tM){f({type:"text",value:"\\"+d});continue}if(d===eM){c++;let m;for(;u<l&&(m=h());){if(d+=m,m===eM){c++;continue}if(m===tw){d+=h();continue}if(m===tM&&(c--,c===0))break}f({type:"text",value:d});continue}if(d===Gle){a=f({type:"paren",nodes:[]}),s.push(a),f({type:"text",value:d});continue}if(d===Wle){if(a.type!=="paren"){f({type:"text",value:d});continue}a=s.pop(),f({type:"text",value:d}),a=s[s.length-1];continue}if(d===Xle||d===Qle||d===Kle){let m=d,y;for(t.keepQuotes!==!0&&(d="");u<l&&(y=h());){if(y===tw){d+=y+h();continue}if(y===m){t.keepQuotes===!0&&(d+=y);break}d+=y}f({type:"text",value:d});continue}if(d===Jle){p++;let y={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||a.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};a=f(y),s.push(a),f({type:"open",value:d});continue}if(d===Yle){if(a.type!=="brace"){f({type:"text",value:d});continue}let m="close";a=s.pop(),a.close=!0,f({type:m,value:d}),p--,a=s[s.length-1];continue}if(d===Hle&&p>0){if(a.ranges>0){a.ranges=0;let m=a.nodes.shift();a.nodes=[m,{type:"text",value:zle(a)}]}f({type:"comma",value:d}),a.commas++;continue}if(d===Vle&&p>0&&a.commas===0){let m=a.nodes;if(p===0||m.length===0){f({type:"text",value:d});continue}if(o.type==="dot"){if(a.range=[],o.value+=d,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){m.pop();let y=m[m.length-1];y.value+=o.value+d,o=y,a.ranges--;continue}f({type:"dot",value:d});continue}f({type:"text",value:d})}do if(a=s.pop(),a.type!=="root"){a.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let m=s[s.length-1],y=m.nodes.indexOf(a);m.nodes.splice(y,1,...a.nodes)}while(s.length>0);return f({type:"eos"}),i};rM.exports=tue});var aM=D((W4e,sM)=>{"use strict";g();var iM=dg(),rue=G5(),nue=Y5(),iue=nM(),bn=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=bn.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(bn.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};bn.parse=(e,t={})=>iue(e,t);bn.stringify=(e,t={})=>iM(typeof e=="string"?bn.parse(e,t):e,t);bn.compile=(e,t={})=>(typeof e=="string"&&(e=bn.parse(e,t)),rue(e,t));bn.expand=(e,t={})=>{typeof e=="string"&&(e=bn.parse(e,t));let r=nue(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};bn.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?bn.compile(e,t):bn.expand(e,t);sM.exports=bn});var cd=D((Y4e,pM)=>{"use strict";g();var sue=require("path"),Hi="\\\\/",oM=`[^${Hi}]`,Es="\\.",aue="\\+",oue="\\?",hg="\\/",cue="(?=.)",cM="[^/]",rw=`(?:${hg}|$)`,lM=`(?:^|${hg})`,nw=`${Es}{1,2}${rw}`,lue=`(?!${Es})`,uue=`(?!${lM}${nw})`,pue=`(?!${Es}{0,1}${rw})`,due=`(?!${nw})`,fue=`[^.${hg}]`,mue=`${cM}*?`,uM={DOT_LITERAL:Es,PLUS_LITERAL:aue,QMARK_LITERAL:oue,SLASH_LITERAL:hg,ONE_CHAR:cue,QMARK:cM,END_ANCHOR:rw,DOTS_SLASH:nw,NO_DOT:lue,NO_DOTS:uue,NO_DOT_SLASH:pue,NO_DOTS_SLASH:due,QMARK_NO_DOT:fue,STAR:mue,START_ANCHOR:lM},hue={...uM,SLASH_LITERAL:`[${Hi}]`,QMARK:oM,STAR:`${oM}*?`,DOTS_SLASH:`${Es}{1,2}(?:[${Hi}]|$)`,NO_DOT:`(?!${Es})`,NO_DOTS:`(?!(?:^|[${Hi}])${Es}{1,2}(?:[${Hi}]|$))`,NO_DOT_SLASH:`(?!${Es}{0,1}(?:[${Hi}]|$))`,NO_DOTS_SLASH:`(?!${Es}{1,2}(?:[${Hi}]|$))`,QMARK_NO_DOT:`[^.${Hi}]`,START_ANCHOR:`(?:^|[${Hi}])`,END_ANCHOR:`(?:[${Hi}]|$)`},gue={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};pM.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:gue,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:sue.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?hue:uM}}});var ld=D(nn=>{"use strict";g();var yue=require("path"),bue=process.platform==="win32",{REGEX_BACKSLASH:xue,REGEX_REMOVE_BACKSLASH:vue,REGEX_SPECIAL_CHARS:Eue,REGEX_SPECIAL_CHARS_GLOBAL:wue}=cd();nn.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);nn.hasRegexChars=e=>Eue.test(e);nn.isRegexChar=e=>e.length===1&&nn.hasRegexChars(e);nn.escapeRegex=e=>e.replace(wue,"\\$1");nn.toPosixSlashes=e=>e.replace(xue,"/");nn.removeBackslashes=e=>e.replace(vue,t=>t==="\\"?"":t);nn.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};nn.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:bue===!0||yue.sep==="\\";nn.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?nn.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};nn.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};nn.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var xM=D((eOe,bM)=>{"use strict";g();var dM=ld(),{CHAR_ASTERISK:iw,CHAR_AT:Cue,CHAR_BACKWARD_SLASH:ud,CHAR_COMMA:Due,CHAR_DOT:sw,CHAR_EXCLAMATION_MARK:aw,CHAR_FORWARD_SLASH:yM,CHAR_LEFT_CURLY_BRACE:ow,CHAR_LEFT_PARENTHESES:cw,CHAR_LEFT_SQUARE_BRACKET:Sue,CHAR_PLUS:Tue,CHAR_QUESTION_MARK:fM,CHAR_RIGHT_CURLY_BRACE:Aue,CHAR_RIGHT_PARENTHESES:mM,CHAR_RIGHT_SQUARE_BRACKET:Pue}=cd(),hM=e=>e===yM||e===ud,gM=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},_ue=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],a=[],o=[],c=e,l=-1,u=0,p=0,d=!1,h=!1,f=!1,m=!1,y=!1,b=!1,x=!1,w=!1,v=!1,C=!1,E=0,S,_,N={value:"",depth:0,isGlob:!1},F=()=>l>=n,A=()=>c.charCodeAt(l+1),W=()=>(S=_,c.charCodeAt(++l));for(;l<n;){_=W();let L;if(_===ud){x=N.backslashes=!0,_=W(),_===ow&&(b=!0);continue}if(b===!0||_===ow){for(E++;F()!==!0&&(_=W());){if(_===ud){x=N.backslashes=!0,W();continue}if(_===ow){E++;continue}if(b!==!0&&_===sw&&(_=W())===sw){if(d=N.isBrace=!0,f=N.isGlob=!0,C=!0,i===!0)continue;break}if(b!==!0&&_===Due){if(d=N.isBrace=!0,f=N.isGlob=!0,C=!0,i===!0)continue;break}if(_===Aue&&(E--,E===0)){b=!1,d=N.isBrace=!0,C=!0;break}}if(i===!0)continue;break}if(_===yM){if(s.push(l),a.push(N),N={value:"",depth:0,isGlob:!1},C===!0)continue;if(S===sw&&l===u+1){u+=2;continue}p=l+1;continue}if(r.noext!==!0&&(_===Tue||_===Cue||_===iw||_===fM||_===aw)===!0&&A()===cw){if(f=N.isGlob=!0,m=N.isExtglob=!0,C=!0,_===aw&&l===u&&(v=!0),i===!0){for(;F()!==!0&&(_=W());){if(_===ud){x=N.backslashes=!0,_=W();continue}if(_===mM){f=N.isGlob=!0,C=!0;break}}continue}break}if(_===iw){if(S===iw&&(y=N.isGlobstar=!0),f=N.isGlob=!0,C=!0,i===!0)continue;break}if(_===fM){if(f=N.isGlob=!0,C=!0,i===!0)continue;break}if(_===Sue){for(;F()!==!0&&(L=W());){if(L===ud){x=N.backslashes=!0,W();continue}if(L===Pue){h=N.isBracket=!0,f=N.isGlob=!0,C=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&_===aw&&l===u){w=N.negated=!0,u++;continue}if(r.noparen!==!0&&_===cw){if(f=N.isGlob=!0,i===!0){for(;F()!==!0&&(_=W());){if(_===cw){x=N.backslashes=!0,_=W();continue}if(_===mM){C=!0;break}}continue}break}if(f===!0){if(C=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,f=!1);let G=c,re="",P="";u>0&&(re=c.slice(0,u),c=c.slice(u),p-=u),G&&f===!0&&p>0?(G=c.slice(0,p),P=c.slice(p)):f===!0?(G="",P=c):G=c,G&&G!==""&&G!=="/"&&G!==c&&hM(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),r.unescape===!0&&(P&&(P=dM.removeBackslashes(P)),G&&x===!0&&(G=dM.removeBackslashes(G)));let O={prefix:re,input:e,start:u,base:G,glob:P,isBrace:d,isBracket:h,isGlob:f,isExtglob:m,isGlobstar:y,negated:w,negatedExtglob:v};if(r.tokens===!0&&(O.maxDepth=0,hM(_)||a.push(N),O.tokens=a),r.parts===!0||r.tokens===!0){let L;for(let $=0;$<s.length;$++){let Z=L?L+1:u,R=s[$],B=e.slice(Z,R);r.tokens&&($===0&&u!==0?(a[$].isPrefix=!0,a[$].value=re):a[$].value=B,gM(a[$]),O.maxDepth+=a[$].depth),($!==0||B!=="")&&o.push(B),L=R}if(L&&L+1<e.length){let $=e.slice(L+1);o.push($),r.tokens&&(a[a.length-1].value=$,gM(a[a.length-1]),O.maxDepth+=a[a.length-1].depth)}O.slashes=s,O.parts=o}return O};bM.exports=_ue});var wM=D((rOe,EM)=>{"use strict";g();var gg=cd(),xn=ld(),{MAX_LENGTH:yg,POSIX_REGEX_SOURCE:Iue,REGEX_NON_SPECIAL_CHARS:kue,REGEX_SPECIAL_CHARS_BACKREF:Nue,REPLACEMENTS:vM}=gg,Fue=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>xn.escapeRegex(i)).join("..")}return r},xl=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,lw=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vM[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(yg,r.maxLength):yg,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},a=[s],o=r.capture?"":"?:",c=xn.isWindows(t),l=gg.globChars(c),u=gg.extglobChars(l),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:x,QMARK:w,QMARK_NO_DOT:v,STAR:C,START_ANCHOR:E}=l,S=J=>`(${o}(?:(?!${E}${J.dot?m:p}).)*?)`,_=r.dot?"":y,N=r.dot?w:v,F=r.bash===!0?S(r):C;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=xn.removePrefix(e,A),i=e.length;let W=[],G=[],re=[],P=s,O,L=()=>A.index===i-1,$=A.peek=(J=1)=>e[A.index+J],Z=A.advance=()=>e[++A.index]||"",R=()=>e.slice(A.index+1),B=(J="",Ue=0)=>{A.consumed+=J,A.index+=Ue},V=J=>{A.output+=J.output!=null?J.output:J.value,B(J.value)},ie=()=>{let J=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)Z(),A.start++,J++;return J%2===0?!1:(A.negated=!0,A.start++,!0)},Ee=J=>{A[J]++,re.push(J)},de=J=>{A[J]--,re.pop()},X=J=>{if(P.type==="globstar"){let Ue=A.braces>0&&(J.type==="comma"||J.type==="brace"),H=J.extglob===!0||W.length&&(J.type==="pipe"||J.type==="paren");J.type!=="slash"&&J.type!=="paren"&&!Ue&&!H&&(A.output=A.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=F,A.output+=P.output)}if(W.length&&J.type!=="paren"&&(W[W.length-1].inner+=J.value),(J.value||J.output)&&V(J),P&&P.type==="text"&&J.type==="text"){P.value+=J.value,P.output=(P.output||"")+J.value;return}J.prev=P,a.push(J),P=J},At=(J,Ue)=>{let H={...u[Ue],conditions:1,inner:""};H.prev=P,H.parens=A.parens,H.output=A.output;let me=(r.capture?"(":"")+H.open;Ee("parens"),X({type:J,value:Ue,output:A.output?"":f}),X({type:"paren",extglob:!0,value:Z(),output:me}),W.push(H)},or=J=>{let Ue=J.close+(r.capture?")":""),H;if(J.type==="negate"){let me=F;if(J.inner&&J.inner.length>1&&J.inner.includes("/")&&(me=S(r)),(me!==F||L()||/^\)+$/.test(R()))&&(Ue=J.close=`)$))${me}`),J.inner.includes("*")&&(H=R())&&/^\.[^\\/.]+$/.test(H)){let le=lw(H,{...t,fastpaths:!1}).output;Ue=J.close=`)${le})${me})`}J.prev.type==="bos"&&(A.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:O,output:Ue}),de("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let J=!1,Ue=e.replace(Nue,(H,me,le,ut,Ze,hr)=>ut==="\\"?(J=!0,H):ut==="?"?me?me+ut+(Ze?w.repeat(Ze.length):""):hr===0?N+(Ze?w.repeat(Ze.length):""):w.repeat(le.length):ut==="."?p.repeat(le.length):ut==="*"?me?me+ut+(Ze?F:""):F:me?H:`\\${H}`);return J===!0&&(r.unescape===!0?Ue=Ue.replace(/\\/g,""):Ue=Ue.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),Ue===e&&r.contains===!0?(A.output=e,A):(A.output=xn.wrapOutput(Ue,A,t),A)}for(;!L();){if(O=Z(),O==="\0")continue;if(O==="\\"){let H=$();if(H==="/"&&r.bash!==!0||H==="."||H===";")continue;if(!H){O+="\\",X({type:"text",value:O});continue}let me=/^\\+/.exec(R()),le=0;if(me&&me[0].length>2&&(le=me[0].length,A.index+=le,le%2!==0&&(O+="\\")),r.unescape===!0?O=Z():O+=Z(),A.brackets===0){X({type:"text",value:O});continue}}if(A.brackets>0&&(O!=="]"||P.value==="["||P.value==="[^")){if(r.posix!==!1&&O===":"){let H=P.value.slice(1);if(H.includes("[")&&(P.posix=!0,H.includes(":"))){let me=P.value.lastIndexOf("["),le=P.value.slice(0,me),ut=P.value.slice(me+2),Ze=Iue[ut];if(Ze){P.value=le+Ze,A.backtrack=!0,Z(),!s.output&&a.indexOf(P)===1&&(s.output=f);continue}}}(O==="["&&$()!==":"||O==="-"&&$()==="]")&&(O=`\\${O}`),O==="]"&&(P.value==="["||P.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&P.value==="["&&(O="^"),P.value+=O,V({value:O});continue}if(A.quotes===1&&O!=='"'){O=xn.escapeRegex(O),P.value+=O,V({value:O});continue}if(O==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&X({type:"text",value:O});continue}if(O==="("){Ee("parens"),X({type:"paren",value:O});continue}if(O===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xl("opening","("));let H=W[W.length-1];if(H&&A.parens===H.parens+1){or(W.pop());continue}X({type:"paren",value:O,output:A.parens?")":"\\)"}),de("parens");continue}if(O==="["){if(r.nobracket===!0||!R().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xl("closing","]"));O=`\\${O}`}else Ee("brackets");X({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){X({type:"text",value:O,output:`\\${O}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xl("opening","["));X({type:"text",value:O,output:`\\${O}`});continue}de("brackets");let H=P.value.slice(1);if(P.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(O=`/${O}`),P.value+=O,V({value:O}),r.literalBrackets===!1||xn.hasRegexChars(H))continue;let me=xn.escapeRegex(P.value);if(A.output=A.output.slice(0,-P.value.length),r.literalBrackets===!0){A.output+=me,P.value=me;continue}P.value=`(${o}${me}|${P.value})`,A.output+=P.value;continue}if(O==="{"&&r.nobrace!==!0){Ee("braces");let H={type:"brace",value:O,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};G.push(H),X(H);continue}if(O==="}"){let H=G[G.length-1];if(r.nobrace===!0||!H){X({type:"text",value:O,output:O});continue}let me=")";if(H.dots===!0){let le=a.slice(),ut=[];for(let Ze=le.length-1;Ze>=0&&(a.pop(),le[Ze].type!=="brace");Ze--)le[Ze].type!=="dots"&&ut.unshift(le[Ze].value);me=Fue(ut,r),A.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){let le=A.output.slice(0,H.outputIndex),ut=A.tokens.slice(H.tokensIndex);H.value=H.output="\\{",O=me="\\}",A.output=le;for(let Ze of ut)A.output+=Ze.output||Ze.value}X({type:"brace",value:O,output:me}),de("braces"),G.pop();continue}if(O==="|"){W.length>0&&W[W.length-1].conditions++,X({type:"text",value:O});continue}if(O===","){let H=O,me=G[G.length-1];me&&re[re.length-1]==="braces"&&(me.comma=!0,H="|"),X({type:"comma",value:O,output:H});continue}if(O==="/"){if(P.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",a.pop(),P=s;continue}X({type:"slash",value:O,output:h});continue}if(O==="."){if(A.braces>0&&P.type==="dot"){P.value==="."&&(P.output=p);let H=G[G.length-1];P.type="dots",P.output+=O,P.value+=O,H.dots=!0;continue}if(A.braces+A.parens===0&&P.type!=="bos"&&P.type!=="slash"){X({type:"text",value:O,output:p});continue}X({type:"dot",value:O,output:p});continue}if(O==="?"){if(!(P&&P.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){At("qmark",O);continue}if(P&&P.type==="paren"){let me=$(),le=O;if(me==="<"&&!xn.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(me)||me==="<"&&!/<([!=]|\w+>)/.test(R()))&&(le=`\\${O}`),X({type:"text",value:O,output:le});continue}if(r.dot!==!0&&(P.type==="slash"||P.type==="bos")){X({type:"qmark",value:O,output:v});continue}X({type:"qmark",value:O,output:w});continue}if(O==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){At("negate",O);continue}if(r.nonegate!==!0&&A.index===0){ie();continue}}if(O==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){At("plus",O);continue}if(P&&P.value==="("||r.regex===!1){X({type:"plus",value:O,output:d});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||A.parens>0){X({type:"plus",value:O});continue}X({type:"plus",value:d});continue}if(O==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){X({type:"at",extglob:!0,value:O,output:""});continue}X({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let H=kue.exec(R());H&&(O+=H[0],A.index+=H[0].length),X({type:"text",value:O});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=O,P.output=F,A.backtrack=!0,A.globstar=!0,B(O);continue}let J=R();if(r.noextglob!==!0&&/^\([^?]/.test(J)){At("star",O);continue}if(P.type==="star"){if(r.noglobstar===!0){B(O);continue}let H=P.prev,me=H.prev,le=H.type==="slash"||H.type==="bos",ut=me&&(me.type==="star"||me.type==="globstar");if(r.bash===!0&&(!le||J[0]&&J[0]!=="/")){X({type:"star",value:O,output:""});continue}let Ze=A.braces>0&&(H.type==="comma"||H.type==="brace"),hr=W.length&&(H.type==="pipe"||H.type==="paren");if(!le&&H.type!=="paren"&&!Ze&&!hr){X({type:"star",value:O,output:""});continue}for(;J.slice(0,3)==="/**";){let xo=e[A.index+4];if(xo&&xo!=="/")break;J=J.slice(3),B("/**",3)}if(H.type==="bos"&&L()){P.type="globstar",P.value+=O,P.output=S(r),A.output=P.output,A.globstar=!0,B(O);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!ut&&L()){A.output=A.output.slice(0,-(H.output+P.output).length),H.output=`(?:${H.output}`,P.type="globstar",P.output=S(r)+(r.strictSlashes?")":"|$)"),P.value+=O,A.globstar=!0,A.output+=H.output+P.output,B(O);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&J[0]==="/"){let xo=J[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(H.output+P.output).length),H.output=`(?:${H.output}`,P.type="globstar",P.output=`${S(r)}${h}|${h}${xo})`,P.value+=O,A.output+=H.output+P.output,A.globstar=!0,B(O+Z()),X({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&J[0]==="/"){P.type="globstar",P.value+=O,P.output=`(?:^|${h}|${S(r)}${h})`,A.output=P.output,A.globstar=!0,B(O+Z()),X({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-P.output.length),P.type="globstar",P.output=S(r),P.value+=O,A.output+=P.output,A.globstar=!0,B(O);continue}let Ue={type:"star",value:O,output:F};if(r.bash===!0){Ue.output=".*?",(P.type==="bos"||P.type==="slash")&&(Ue.output=_+Ue.output),X(Ue);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&r.regex===!0){Ue.output=O,X(Ue);continue}(A.index===A.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(A.output+=b,P.output+=b):r.dot===!0?(A.output+=x,P.output+=x):(A.output+=_,P.output+=_),$()!=="*"&&(A.output+=f,P.output+=f)),X(Ue)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xl("closing","]"));A.output=xn.escapeLast(A.output,"["),de("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xl("closing",")"));A.output=xn.escapeLast(A.output,"("),de("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xl("closing","}"));A.output=xn.escapeLast(A.output,"{"),de("braces")}if(r.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${h}?`}),A.backtrack===!0){A.output="";for(let J of A.tokens)A.output+=J.output!=null?J.output:J.value,J.suffix&&(A.output+=J.suffix)}return A};lw.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(yg,r.maxLength):yg,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=vM[e]||e;let s=xn.isWindows(t),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:h,START_ANCHOR:f}=gg.globChars(s),m=r.dot?p:u,y=r.dot?d:u,b=r.capture?"":"?:",x={negated:!1,prefix:""},w=r.bash===!0?".*?":h;r.capture&&(w=`(${w})`);let v=_=>_.noglobstar===!0?w:`(${b}(?:(?!${f}${_.dot?l:a}).)*?)`,C=_=>{switch(_){case"*":return`${m}${c}${w}`;case".*":return`${a}${c}${w}`;case"*.*":return`${m}${w}${a}${c}${w}`;case"*/*":return`${m}${w}${o}${c}${y}${w}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${o})?${y}${c}${w}`;case"**/*.*":return`(?:${m}${v(r)}${o})?${y}${w}${a}${c}${w}`;case"**/.*":return`(?:${m}${v(r)}${o})?${a}${c}${w}`;default:{let N=/^(.*?)\.(\w+)$/.exec(_);if(!N)return;let F=C(N[1]);return F?F+a+N[2]:void 0}}},E=xn.removePrefix(e,x),S=C(E);return S&&r.strictSlashes!==!0&&(S+=`${o}?`),S};EM.exports=lw});var DM=D((iOe,CM)=>{"use strict";g();var Oue=require("path"),Rue=xM(),uw=wM(),pw=ld(),Lue=cd(),Bue=e=>e&&typeof e=="object"&&!Array.isArray(e),$t=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(d=>$t(d,t,r));return d=>{for(let h of u){let f=h(d);if(f)return f}return!1}}let n=Bue(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=pw.isWindows(t),a=n?$t.compileRe(e,t):$t.makeRe(e,t,!1,!0),o=a.state;delete a.state;let c=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};c=$t(i.ignore,u,r)}let l=(u,p=!1)=>{let{isMatch:d,match:h,output:f}=$t.test(u,a,t,{glob:e,posix:s}),m={glob:e,state:o,regex:a,posix:s,input:u,output:f,match:h,isMatch:d};return typeof i.onResult=="function"&&i.onResult(m),d===!1?(m.isMatch=!1,p?m:!1):c(u)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,p?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),p?m:!0)};return r&&(l.state=o),l};$t.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},a=s.format||(i?pw.toPosixSlashes:null),o=e===n,c=o&&a?a(e):e;return o===!1&&(c=a?a(e):e,o=c===n),(o===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?o=$t.matchBase(e,t,r,i):o=t.exec(c)),{isMatch:!!o,match:o,output:c}};$t.matchBase=(e,t,r,n=pw.isWindows(r))=>(t instanceof RegExp?t:$t.makeRe(t,r)).test(Oue.basename(e));$t.isMatch=(e,t,r)=>$t(t,r)(e);$t.parse=(e,t)=>Array.isArray(e)?e.map(r=>$t.parse(r,t)):uw(e,{...t,fastpaths:!1});$t.scan=(e,t)=>Rue(e,t);$t.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",a=i.contains?"":"$",o=`${s}(?:${e.output})${a}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let c=$t.toRegex(o,t);return n===!0&&(c.state=e),c};$t.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=uw.fastpaths(e,t)),i.output||(i=uw(e,t)),$t.compileRe(i,t,r,n)};$t.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};$t.constants=Lue;CM.exports=$t});var TM=D((aOe,SM)=>{"use strict";g();SM.exports=DM()});var NM=D((cOe,kM)=>{"use strict";g();var PM=require("util"),_M=aM(),Vi=TM(),dw=ld(),AM=e=>e===""||e==="./",IM=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},gt=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,a=0,o=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let p=Vi(String(t[u]),{...r,onResult:o},!0),d=p.state.negated||p.state.negatedExtglob;d&&a++;for(let h of e){let f=p(h,!0);(d?!f.isMatch:f.isMatch)&&(d?n.add(f.output):(n.delete(f.output),i.add(f.output)))}}let l=(a===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(u=>u.replace(/\\/g,"")):t}return l};gt.match=gt;gt.matcher=(e,t)=>Vi(e,t);gt.isMatch=(e,t,r)=>Vi(t,r)(e);gt.any=gt.isMatch;gt.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=o=>{r.onResult&&r.onResult(o),i.push(o.output)},a=new Set(gt(e,t,{...r,onResult:s}));for(let o of i)a.has(o)||n.add(o);return[...n]};gt.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${PM.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>gt.contains(e,n,r));if(typeof t=="string"){if(AM(e)||AM(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return gt.isMatch(e,t,{...r,contains:!0})};gt.matchKeys=(e,t,r)=>{if(!dw.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=gt(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};gt.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Vi(String(i),r);if(n.some(a=>s(a)))return!0}return!1};gt.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Vi(String(i),r);if(!n.every(a=>s(a)))return!1}return!0};gt.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${PM.inspect(e)}"`);return[].concat(t).every(n=>Vi(n,r)(e))};gt.capture=(e,t,r)=>{let n=dw.isWindows(r),s=Vi.makeRe(String(e),{...r,capture:!0}).exec(n?dw.toPosixSlashes(t):t);if(s)return s.slice(1).map(a=>a===void 0?"":a)};gt.makeRe=(...e)=>Vi.makeRe(...e);gt.scan=(...e)=>Vi.scan(...e);gt.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of _M(String(n),t))r.push(Vi.parse(i,t));return r};gt.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!IM(e)?[e]:_M(e,t)};gt.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return gt.braces(e,{...t,expand:!0})};gt.hasBraces=IM;kM.exports=gt});var $M=D(bg=>{"use strict";g();Object.defineProperty(bg,"__esModule",{value:!0});bg.match=void 0;var LM=D5(),Mue=NM(),$ue=require("url"),FM=lg();function jue(e,t,r){if(OM(e))return BM(e,t);if(RM(e))return MM(e,t);if(Array.isArray(e)){if(e.every(OM))return que(e,t);if(e.every(RM))return Uue(e,t);throw new Error(FM.ERRORS.ERR_CONTEXT_MATCHER_INVALID_ARRAY)}if(typeof e=="function"){let n=fw(t);return e(n,r)}throw new Error(FM.ERRORS.ERR_CONTEXT_MATCHER_GENERIC)}bg.match=jue;function BM(e,t){return fw(t).indexOf(e)===0}function MM(e,t){let r=fw(t),n=Mue([r],e);return n&&n.length>0}function Uue(e,t){return MM(e,t)}function que(e,t){let r=!1;for(let n of e)if(BM(n,t)){r=!0;break}return r}function fw(e){return e&&$ue.parse(e).pathname}function OM(e){return typeof e=="string"&&!LM(e)}function RM(e){return LM(e)}});var UM=D(vl=>{"use strict";g();Object.defineProperty(vl,"__esModule",{value:!0});vl.getHandlers=vl.init=void 0;var zue=yl(),xg=(0,zue.getInstance)();function Kue(e,t){let r=jM(t);for(let n of Object.keys(r))e.on(n,r[n]);e.on("econnreset",(n,i,s,a)=>{xg.error("[HPM] ECONNRESET: %O",n)}),e.on("proxyReqWs",(n,i,s,a,o)=>{s.on("error",c=>{xg.error("[HPM] WebSocket error: %O",c)})}),xg.debug("[HPM] Subscribed to http-proxy events:",Object.keys(r))}vl.init=Kue;function jM(e){let t={error:"onError",proxyReq:"onProxyReq",proxyReqWs:"onProxyReqWs",proxyRes:"onProxyRes",open:"onOpen",close:"onClose"},r={};for(let[n,i]of Object.entries(t)){let s=e?e[i]:null;typeof s=="function"&&(r[n]=s)}return typeof r.error!="function"&&(r.error=Hue),typeof r.close!="function"&&(r.close=Vue),r}vl.getHandlers=jM;function Hue(e,t,r){if(!t&&!r)throw e;let n=t.headers&&t.headers.host,i=e.code;if(r.writeHead&&!r.headersSent)if(/HPE_INVALID/.test(i))r.writeHead(502);else switch(i){case"ECONNRESET":case"ENOTFOUND":case"ECONNREFUSED":case"ETIMEDOUT":r.writeHead(504);break;default:r.writeHead(500)}r.end(`Error occurred while trying to proxy: ${n}${t.url}`)}function Vue(e,t,r){xg.info("[HPM] Client disconnected")}});var KM=D(vg=>{"use strict";g();Object.defineProperty(vg,"__esModule",{value:!0});vg.createPathRewriter=void 0;var qM=cg(),Gue=lg(),Wue=yl(),zM=(0,Wue.getInstance)();function Jue(e){let t;if(!Yue(e))return;if(typeof e=="function")return e;return t=Xue(e),r;function r(n){let i=n;for(let s of t)if(s.regex.test(n)){i=i.replace(s.regex,s.value),zM.debug('[HPM] Rewriting path from "%s" to "%s"',n,i);break}return i}}vg.createPathRewriter=Jue;function Yue(e){if(typeof e=="function")return!0;if(qM(e))return Object.keys(e).length!==0;if(e==null)return!1;throw new Error(Gue.ERRORS.ERR_PATH_REWRITER_CONFIG)}function Xue(e){let t=[];if(qM(e))for(let[r]of Object.entries(e))t.push({regex:new RegExp(r),value:e[r]}),zM.info('[HPM] Proxy rewrite rule created: "%s" ~> "%s"',r,e[r]);return t}});var VM=D(Eg=>{"use strict";g();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getTarget=void 0;var Que=cg(),Zue=yl(),HM=(0,Zue.getInstance)();async function epe(e,t){let r,n=t.router;return Que(n)?r=tpe(e,n):typeof n=="function"&&(r=await n(e)),r}Eg.getTarget=epe;function tpe(e,t){let r,n=e.headers.host,i=e.url,s=n+i;for(let[a]of Object.entries(t))if(rpe(a)){if(s.indexOf(a)>-1){r=t[a],HM.debug('[HPM] Router table match: "%s"',a);break}}else if(a===n){r=t[a],HM.debug('[HPM] Router table match: "%s"',n);break}return r}function rpe(e){return e.indexOf("/")>-1}});var WM=D(wg=>{"use strict";g();Object.defineProperty(wg,"__esModule",{value:!0});wg.HttpProxyMiddleware=void 0;var npe=m5(),ipe=x5(),spe=$M(),ape=UM(),GM=yl(),ope=KM(),cpe=VM(),mw=class{constructor(t,r){this.logger=(0,GM.getInstance)(),this.wsInternalSubscribed=!1,this.serverOnCloseSubscribed=!1,this.middleware=async(n,i,s)=>{var a,o;if(this.shouldProxy(this.config.context,n))try{let l=await this.prepareProxyRequest(n);this.proxy.web(n,i,l)}catch(l){s(l)}else s();let c=(o=(a=n.socket)!==null&&a!==void 0?a:n.connection)===null||o===void 0?void 0:o.server;c&&!this.serverOnCloseSubscribed&&(c.on("close",()=>{this.logger.info("[HPM] server close signal received: closing proxy server"),this.proxy.close()}),this.serverOnCloseSubscribed=!0),this.proxyOptions.ws===!0&&this.catchUpgradeRequest(c)},this.catchUpgradeRequest=n=>{this.wsInternalSubscribed||(n.on("upgrade",this.handleUpgrade),this.wsInternalSubscribed=!0)},this.handleUpgrade=async(n,i,s)=>{if(this.shouldProxy(this.config.context,n)){let a=await this.prepareProxyRequest(n);this.proxy.ws(n,i,s,a),this.logger.info("[HPM] Upgrading to WebSocket")}},this.shouldProxy=(n,i)=>{try{let s=i.originalUrl||i.url;return spe.match(n,s,i)}catch(s){return this.logger.error(s),!1}},this.prepareProxyRequest=async n=>{n.url=n.originalUrl||n.url;let i=n.url,s=Object.assign({},this.proxyOptions);if(await this.applyRouter(n,s),await this.applyPathRewrite(n,this.pathRewriter),this.proxyOptions.logLevel==="debug"){let a=(0,GM.getArrow)(i,n.url,this.proxyOptions.target,s.target);this.logger.debug("[HPM] %s %s %s %s",n.method,i,a,s.target)}return s},this.applyRouter=async(n,i)=>{let s;i.router&&(s=await cpe.getTarget(n,i),s&&(this.logger.debug('[HPM] Router new target: %s -> "%s"',i.target,s),i.target=s))},this.applyPathRewrite=async(n,i)=>{if(i){let s=await i(n.url,n);typeof s=="string"?n.url=s:this.logger.info("[HPM] pathRewrite: No rewritten path found. (%s)",n.url)}},this.logError=(n,i,s,a)=>{var o;let l=`${((o=i.headers)===null||o===void 0?void 0:o.host)||i.hostname||i.host}${i.url}`,u=`${a?.href}`;this.logger.error("[HPM] Error occurred while proxying request %s to %s [%s] (%s)",l,u,n.code||n,"https://nodejs.org/api/errors.html#errors_common_system_errors")},this.config=(0,ipe.createConfig)(t,r),this.proxyOptions=this.config.options,this.proxy=npe.createProxyServer({}),this.logger.info(`[HPM] Proxy created: ${this.config.context} -> ${this.proxyOptions.target}`),this.pathRewriter=ope.createPathRewriter(this.proxyOptions.pathRewrite),ape.init(this.proxy,this.proxyOptions),this.proxy.on("error",this.logError),this.middleware.upgrade=(n,i,s)=>{this.wsInternalSubscribed||this.handleUpgrade(n,i,s)}}};wg.HttpProxyMiddleware=mw});var JM=D(Cg=>{"use strict";g();Object.defineProperty(Cg,"__esModule",{value:!0});Cg.responseInterceptor=void 0;var hw=require("zlib");function lpe(e){return async function(t,r,n){let i=t,s=Buffer.from("","utf8"),a=upe(t,t.headers["content-encoding"]);a.on("data",o=>s=Buffer.concat([s,o])),a.on("end",async()=>{ppe(t,n);let o=Buffer.from(await e(s,i,r,n));n.setHeader("content-length",Buffer.byteLength(o,"utf8")),n.write(o),n.end()}),a.on("error",o=>{n.end(`Error fetching proxied request: ${o.message}`)})}}Cg.responseInterceptor=lpe;function upe(e,t){let r=e,n;switch(t){case"gzip":n=hw.createGunzip();break;case"br":n=hw.createBrotliDecompress();break;case"deflate":n=hw.createInflate();break;default:break}return n&&(r.pipe(n),r=n),r}function ppe(e,t){if(t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.setHeader){let r=Object.keys(e.headers);r=r.filter(n=>!["content-encoding","transfer-encoding"].includes(n)),r.forEach(n=>{let i=e.headers[n];n==="set-cookie"&&(i=Array.isArray(i)?i:[i],i=i.map(s=>s.replace(/Domain=[^;]+?/i,""))),t.setHeader(n,i)})}else t.headers=e.headers}});var YM=D(Dg=>{"use strict";g();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.fixRequestBody=void 0;var dpe=require("querystring");function fpe(e,t){let r=t.body;if(!r)return;let n=e.getHeader("Content-Type"),i=s=>{e.setHeader("Content-Length",Buffer.byteLength(s)),e.write(s)};n&&n.includes("application/json")&&i(JSON.stringify(r)),n&&n.includes("application/x-www-form-urlencoded")&&i(dpe.stringify(r))}Dg.fixRequestBody=fpe});var XM=D(El=>{"use strict";g();Object.defineProperty(El,"__esModule",{value:!0});El.fixRequestBody=El.responseInterceptor=void 0;var mpe=JM();Object.defineProperty(El,"responseInterceptor",{enumerable:!0,get:function(){return mpe.responseInterceptor}});var hpe=YM();Object.defineProperty(El,"fixRequestBody",{enumerable:!0,get:function(){return hpe.fixRequestBody}})});var QM=D(fo=>{"use strict";g();var gpe=fo&&fo.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ype=fo&&fo.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gpe(t,e,r)};Object.defineProperty(fo,"__esModule",{value:!0});ype(XM(),fo)});var ZM=D(ws=>{"use strict";g();var bpe=ws&&ws.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),xpe=ws&&ws.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bpe(t,e,r)};Object.defineProperty(ws,"__esModule",{value:!0});ws.createProxyMiddleware=void 0;var vpe=WM();function Epe(e,t){let{middleware:r}=new vpe.HttpProxyMiddleware(e,t);return r}ws.createProxyMiddleware=Epe;xpe(QM(),ws)});var i9=D((IOe,n9)=>{g();n9.exports=r9;r9.sync=Cpe;var e9=require("fs");function wpe(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function t9(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:wpe(t,r)}function r9(e,t,r){e9.stat(e,function(n,i){r(n,n?!1:t9(i,e,t))})}function Cpe(e,t){return t9(e9.statSync(e),e,t)}});var l9=D((NOe,c9)=>{g();c9.exports=a9;a9.sync=Dpe;var s9=require("fs");function a9(e,t,r){s9.stat(e,function(n,i){r(n,n?!1:o9(i,t))})}function Dpe(e,t){return o9(s9.statSync(e),t)}function o9(e,t){return e.isFile()&&Spe(e,t)}function Spe(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),o=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=o|c,p=r&l||r&c&&i===a||r&o&&n===s||r&u&&s===0;return p}});var p9=D((ROe,u9)=>{g();var OOe=require("fs"),Sg;process.platform==="win32"||global.TESTING_WINDOWS?Sg=i9():Sg=l9();u9.exports=gw;gw.sync=Tpe;function gw(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){gw(e,t||{},function(s,a){s?i(s):n(a)})})}Sg(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function Tpe(e,t){try{return Sg.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var b9=D((BOe,y9)=>{g();var wl=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",d9=require("path"),Ape=wl?";":":",f9=p9(),m9=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),h9=(e,t)=>{let r=t.colon||Ape,n=e.match(/\//)||wl&&e.match(/\\/)?[""]:[...wl?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=wl?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=wl?i.split(r):[""];return wl&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},g9=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=h9(e,t),a=[],o=l=>new Promise((u,p)=>{if(l===n.length)return t.all&&a.length?u(a):p(m9(e));let d=n[l],h=/^".*"$/.test(d)?d.slice(1,-1):d,f=d9.join(h,e),m=!h&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;u(c(m,l,0))}),c=(l,u,p)=>new Promise((d,h)=>{if(p===i.length)return d(o(u+1));let f=i[p];f9(l+f,{pathExt:s},(m,y)=>{if(!m&&y)if(t.all)a.push(l+f);else return d(l+f);return d(c(l,u,p+1))})});return r?o(0).then(l=>r(null,l),r):o(0)},Ppe=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=h9(e,t),s=[];for(let a=0;a<r.length;a++){let o=r[a],c=/^".*"$/.test(o)?o.slice(1,-1):o,l=d9.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let p=0;p<n.length;p++){let d=u+n[p];try{if(f9.sync(d,{pathExt:i}))if(t.all)s.push(d);else return d}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw m9(e)};y9.exports=g9;g9.sync=Ppe});var v9=D(($Oe,yw)=>{"use strict";g();var x9=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};yw.exports=x9;yw.exports.default=x9});var D9=D((UOe,C9)=>{"use strict";g();var E9=require("path"),_pe=b9(),Ipe=v9();function w9(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let a;try{a=_pe.sync(e.command,{path:r[Ipe({env:r})],pathExt:t?E9.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return a&&(a=E9.resolve(i?e.options.cwd:"",a)),a}function kpe(e){return w9(e)||w9(e,!0)}C9.exports=kpe});var S9=D((zOe,xw)=>{"use strict";g();var bw=/([()\][%!^"`<>&|;, *?])/g;function Npe(e){return e=e.replace(bw,"^$1"),e}function Fpe(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(bw,"^$1"),t&&(e=e.replace(bw,"^$1")),e}xw.exports.command=Npe;xw.exports.argument=Fpe});var A9=D((HOe,T9)=>{"use strict";g();T9.exports=/^#!(.*)/});var _9=D((GOe,P9)=>{"use strict";g();var Ope=A9();P9.exports=(e="")=>{let t=e.match(Ope);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var k9=D((JOe,I9)=>{"use strict";g();var vw=require("fs"),Rpe=_9();function Lpe(e){let r=Buffer.alloc(150),n;try{n=vw.openSync(e,"r"),vw.readSync(n,r,0,150,0),vw.closeSync(n)}catch{}return Rpe(r.toString())}I9.exports=Lpe});var R9=D((XOe,O9)=>{"use strict";g();var Bpe=require("path"),N9=D9(),F9=S9(),Mpe=k9(),$pe=process.platform==="win32",jpe=/\.(?:com|exe)$/i,Upe=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function qpe(e){e.file=N9(e);let t=e.file&&Mpe(e.file);return t?(e.args.unshift(e.file),e.command=t,N9(e)):e.file}function zpe(e){if(!$pe)return e;let t=qpe(e),r=!jpe.test(t);if(e.options.forceShell||r){let n=Upe.test(t);e.command=Bpe.normalize(e.command),e.command=F9.command(e.command),e.args=e.args.map(s=>F9.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Kpe(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:zpe(n)}O9.exports=Kpe});var M9=D((ZOe,B9)=>{"use strict";g();var Ew=process.platform==="win32";function ww(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Hpe(e,t){if(!Ew)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=L9(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function L9(e,t){return Ew&&e===1&&!t.file?ww(t.original,"spawn"):null}function Vpe(e,t){return Ew&&e===1&&!t.file?ww(t.original,"spawnSync"):null}B9.exports={hookChildProcess:Hpe,verifyENOENT:L9,verifyENOENTSync:Vpe,notFoundError:ww}});var U9=D((t3e,Cl)=>{"use strict";g();var $9=require("child_process"),Cw=R9(),Dw=M9();function j9(e,t,r){let n=Cw(e,t,r),i=$9.spawn(n.command,n.args,n.options);return Dw.hookChildProcess(i,n),i}function Gpe(e,t,r){let n=Cw(e,t,r),i=$9.spawnSync(n.command,n.args,n.options);return i.error=i.error||Dw.verifyENOENTSync(i.status,n),i}Cl.exports=j9;Cl.exports.spawn=j9;Cl.exports.sync=Gpe;Cl.exports._parse=Cw;Cl.exports._enoent=Dw});var X9=D((m3e,Y9)=>{"use strict";g();var{Duplex:Xpe}=require("stream");function W9(e){e.emit("close")}function Qpe(){!this.destroyed&&this._writableState.finished&&this.destroy()}function J9(e){this.removeListener("error",J9),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e)}function Zpe(e,t){let r=!0,n=new Xpe({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(s,a){let o=!a&&n._readableState.objectMode?s.toString():s;n.push(o)||e.pause()}),e.once("error",function(s){n.destroyed||(r=!1,n.destroy(s))}),e.once("close",function(){n.destroyed||n.push(null)}),n._destroy=function(i,s){if(e.readyState===e.CLOSED){s(i),process.nextTick(W9,n);return}let a=!1;e.once("error",function(c){a=!0,s(c)}),e.once("close",function(){a||s(i),process.nextTick(W9,n)}),r&&e.terminate()},n._final=function(i){if(e.readyState===e.CONNECTING){e.once("open",function(){n._final(i)});return}e._socket!==null&&(e._socket._writableState.finished?(i(),n._readableState.endEmitted&&n.destroy()):(e._socket.once("finish",function(){i()}),e.close()))},n._read=function(){e.isPaused&&e.resume()},n._write=function(i,s,a){if(e.readyState===e.CONNECTING){e.once("open",function(){n._write(i,s,a)});return}e.send(i,a)},n.on("end",Qpe),n.on("error",J9),n}Y9.exports=Zpe});var Cs=D((g3e,e7)=>{"use strict";g();var Q9=["nodebuffer","arraybuffer","fragments"],Z9=typeof Blob<"u";Z9&&Q9.push("blob");e7.exports={BINARY_TYPES:Q9,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:Z9,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var g7=D((b3e,h7)=>{g();var i7=require("fs"),Ds=require("path"),s7=require("os"),a7=typeof __webpack_require__=="function"?__non_webpack_require__:require,ede=process.config&&process.config.variables||{},tde=!!process.env.PREBUILDS_ONLY,t7=process.versions.modules,Sw=ide()?"electron":nde()?"node-webkit":"node",Tw=process.env.npm_config_arch||s7.arch(),Aw=process.env.npm_config_platform||s7.platform(),o7=process.env.LIBC||(sde(Aw)?"musl":"glibc"),Pw=process.env.ARM_VERSION||(Tw==="arm64"?"8":ede.arm_version)||"",c7=(process.versions.uv||"").split(".")[0];h7.exports=Ji;function Ji(e){return a7(Ji.resolve(e))}Ji.resolve=Ji.path=function(e){e=Ds.resolve(e||".");try{var t=a7(Ds.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch{}if(!tde){var r=r7(Ds.join(e,"build/Release"),n7);if(r)return r;var n=r7(Ds.join(e,"build/Debug"),n7);if(n)return n}var i=o(e);if(i)return i;var s=o(Ds.dirname(process.execPath));if(s)return s;var a=["platform="+Aw,"arch="+Tw,"runtime="+Sw,"abi="+t7,"uv="+c7,Pw?"armv="+Pw:"","libc="+o7,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+a+`
|
|
1898
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var n9=D((V4e,r9)=>{"use strict";g();var zle=dg(),{MAX_LENGTH:Z5,CHAR_BACKSLASH:tw,CHAR_BACKTICK:Kle,CHAR_COMMA:Hle,CHAR_DOT:Vle,CHAR_LEFT_PARENTHESES:Gle,CHAR_RIGHT_PARENTHESES:Wle,CHAR_LEFT_CURLY_BRACE:Jle,CHAR_RIGHT_CURLY_BRACE:Yle,CHAR_LEFT_SQUARE_BRACKET:e9,CHAR_RIGHT_SQUARE_BRACKET:t9,CHAR_DOUBLE_QUOTE:Xle,CHAR_SINGLE_QUOTE:Qle,CHAR_NO_BREAK_SPACE:Zle,CHAR_ZERO_WIDTH_NOBREAK_SPACE:eue}=Q5(),tue=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Z5,r.maxLength):Z5;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],a=i,o=i,c=0,l=e.length,u=0,p=0,d,h=()=>e[u++],f=m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return a.nodes.push(m),m.parent=a,m.prev=o,o=m,m};for(f({type:"bos"});u<l;)if(a=s[s.length-1],d=h(),!(d===eue||d===Zle)){if(d===tw){f({type:"text",value:(t.keepEscaping?d:"")+h()});continue}if(d===t9){f({type:"text",value:"\\"+d});continue}if(d===e9){c++;let m;for(;u<l&&(m=h());){if(d+=m,m===e9){c++;continue}if(m===tw){d+=h();continue}if(m===t9&&(c--,c===0))break}f({type:"text",value:d});continue}if(d===Gle){a=f({type:"paren",nodes:[]}),s.push(a),f({type:"text",value:d});continue}if(d===Wle){if(a.type!=="paren"){f({type:"text",value:d});continue}a=s.pop(),f({type:"text",value:d}),a=s[s.length-1];continue}if(d===Xle||d===Qle||d===Kle){let m=d,y;for(t.keepQuotes!==!0&&(d="");u<l&&(y=h());){if(y===tw){d+=y+h();continue}if(y===m){t.keepQuotes===!0&&(d+=y);break}d+=y}f({type:"text",value:d});continue}if(d===Jle){p++;let y={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||a.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};a=f(y),s.push(a),f({type:"open",value:d});continue}if(d===Yle){if(a.type!=="brace"){f({type:"text",value:d});continue}let m="close";a=s.pop(),a.close=!0,f({type:m,value:d}),p--,a=s[s.length-1];continue}if(d===Hle&&p>0){if(a.ranges>0){a.ranges=0;let m=a.nodes.shift();a.nodes=[m,{type:"text",value:zle(a)}]}f({type:"comma",value:d}),a.commas++;continue}if(d===Vle&&p>0&&a.commas===0){let m=a.nodes;if(p===0||m.length===0){f({type:"text",value:d});continue}if(o.type==="dot"){if(a.range=[],o.value+=d,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){m.pop();let y=m[m.length-1];y.value+=o.value+d,o=y,a.ranges--;continue}f({type:"dot",value:d});continue}f({type:"text",value:d})}do if(a=s.pop(),a.type!=="root"){a.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let m=s[s.length-1],y=m.nodes.indexOf(a);m.nodes.splice(y,1,...a.nodes)}while(s.length>0);return f({type:"eos"}),i};r9.exports=tue});var a9=D((W4e,s9)=>{"use strict";g();var i9=dg(),rue=G5(),nue=Y5(),iue=n9(),bn=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=bn.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(bn.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};bn.parse=(e,t={})=>iue(e,t);bn.stringify=(e,t={})=>i9(typeof e=="string"?bn.parse(e,t):e,t);bn.compile=(e,t={})=>(typeof e=="string"&&(e=bn.parse(e,t)),rue(e,t));bn.expand=(e,t={})=>{typeof e=="string"&&(e=bn.parse(e,t));let r=nue(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};bn.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?bn.compile(e,t):bn.expand(e,t);s9.exports=bn});var cd=D((Y4e,p9)=>{"use strict";g();var sue=require("path"),Hi="\\\\/",o9=`[^${Hi}]`,Es="\\.",aue="\\+",oue="\\?",hg="\\/",cue="(?=.)",c9="[^/]",rw=`(?:${hg}|$)`,l9=`(?:^|${hg})`,nw=`${Es}{1,2}${rw}`,lue=`(?!${Es})`,uue=`(?!${l9}${nw})`,pue=`(?!${Es}{0,1}${rw})`,due=`(?!${nw})`,fue=`[^.${hg}]`,mue=`${c9}*?`,u9={DOT_LITERAL:Es,PLUS_LITERAL:aue,QMARK_LITERAL:oue,SLASH_LITERAL:hg,ONE_CHAR:cue,QMARK:c9,END_ANCHOR:rw,DOTS_SLASH:nw,NO_DOT:lue,NO_DOTS:uue,NO_DOT_SLASH:pue,NO_DOTS_SLASH:due,QMARK_NO_DOT:fue,STAR:mue,START_ANCHOR:l9},hue={...u9,SLASH_LITERAL:`[${Hi}]`,QMARK:o9,STAR:`${o9}*?`,DOTS_SLASH:`${Es}{1,2}(?:[${Hi}]|$)`,NO_DOT:`(?!${Es})`,NO_DOTS:`(?!(?:^|[${Hi}])${Es}{1,2}(?:[${Hi}]|$))`,NO_DOT_SLASH:`(?!${Es}{0,1}(?:[${Hi}]|$))`,NO_DOTS_SLASH:`(?!${Es}{1,2}(?:[${Hi}]|$))`,QMARK_NO_DOT:`[^.${Hi}]`,START_ANCHOR:`(?:^|[${Hi}])`,END_ANCHOR:`(?:[${Hi}]|$)`},gue={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};p9.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:gue,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:sue.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?hue:u9}}});var ld=D(nn=>{"use strict";g();var yue=require("path"),bue=process.platform==="win32",{REGEX_BACKSLASH:xue,REGEX_REMOVE_BACKSLASH:vue,REGEX_SPECIAL_CHARS:Eue,REGEX_SPECIAL_CHARS_GLOBAL:wue}=cd();nn.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);nn.hasRegexChars=e=>Eue.test(e);nn.isRegexChar=e=>e.length===1&&nn.hasRegexChars(e);nn.escapeRegex=e=>e.replace(wue,"\\$1");nn.toPosixSlashes=e=>e.replace(xue,"/");nn.removeBackslashes=e=>e.replace(vue,t=>t==="\\"?"":t);nn.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};nn.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:bue===!0||yue.sep==="\\";nn.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?nn.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};nn.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};nn.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var x9=D((eOe,b9)=>{"use strict";g();var d9=ld(),{CHAR_ASTERISK:iw,CHAR_AT:Cue,CHAR_BACKWARD_SLASH:ud,CHAR_COMMA:Due,CHAR_DOT:sw,CHAR_EXCLAMATION_MARK:aw,CHAR_FORWARD_SLASH:y9,CHAR_LEFT_CURLY_BRACE:ow,CHAR_LEFT_PARENTHESES:cw,CHAR_LEFT_SQUARE_BRACKET:Sue,CHAR_PLUS:Tue,CHAR_QUESTION_MARK:f9,CHAR_RIGHT_CURLY_BRACE:Aue,CHAR_RIGHT_PARENTHESES:m9,CHAR_RIGHT_SQUARE_BRACKET:Pue}=cd(),h9=e=>e===y9||e===ud,g9=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},_ue=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],a=[],o=[],c=e,l=-1,u=0,p=0,d=!1,h=!1,f=!1,m=!1,y=!1,b=!1,x=!1,w=!1,v=!1,C=!1,E=0,S,_,N={value:"",depth:0,isGlob:!1},F=()=>l>=n,A=()=>c.charCodeAt(l+1),W=()=>(S=_,c.charCodeAt(++l));for(;l<n;){_=W();let L;if(_===ud){x=N.backslashes=!0,_=W(),_===ow&&(b=!0);continue}if(b===!0||_===ow){for(E++;F()!==!0&&(_=W());){if(_===ud){x=N.backslashes=!0,W();continue}if(_===ow){E++;continue}if(b!==!0&&_===sw&&(_=W())===sw){if(d=N.isBrace=!0,f=N.isGlob=!0,C=!0,i===!0)continue;break}if(b!==!0&&_===Due){if(d=N.isBrace=!0,f=N.isGlob=!0,C=!0,i===!0)continue;break}if(_===Aue&&(E--,E===0)){b=!1,d=N.isBrace=!0,C=!0;break}}if(i===!0)continue;break}if(_===y9){if(s.push(l),a.push(N),N={value:"",depth:0,isGlob:!1},C===!0)continue;if(S===sw&&l===u+1){u+=2;continue}p=l+1;continue}if(r.noext!==!0&&(_===Tue||_===Cue||_===iw||_===f9||_===aw)===!0&&A()===cw){if(f=N.isGlob=!0,m=N.isExtglob=!0,C=!0,_===aw&&l===u&&(v=!0),i===!0){for(;F()!==!0&&(_=W());){if(_===ud){x=N.backslashes=!0,_=W();continue}if(_===m9){f=N.isGlob=!0,C=!0;break}}continue}break}if(_===iw){if(S===iw&&(y=N.isGlobstar=!0),f=N.isGlob=!0,C=!0,i===!0)continue;break}if(_===f9){if(f=N.isGlob=!0,C=!0,i===!0)continue;break}if(_===Sue){for(;F()!==!0&&(L=W());){if(L===ud){x=N.backslashes=!0,W();continue}if(L===Pue){h=N.isBracket=!0,f=N.isGlob=!0,C=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&_===aw&&l===u){w=N.negated=!0,u++;continue}if(r.noparen!==!0&&_===cw){if(f=N.isGlob=!0,i===!0){for(;F()!==!0&&(_=W());){if(_===cw){x=N.backslashes=!0,_=W();continue}if(_===m9){C=!0;break}}continue}break}if(f===!0){if(C=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,f=!1);let G=c,re="",P="";u>0&&(re=c.slice(0,u),c=c.slice(u),p-=u),G&&f===!0&&p>0?(G=c.slice(0,p),P=c.slice(p)):f===!0?(G="",P=c):G=c,G&&G!==""&&G!=="/"&&G!==c&&h9(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),r.unescape===!0&&(P&&(P=d9.removeBackslashes(P)),G&&x===!0&&(G=d9.removeBackslashes(G)));let O={prefix:re,input:e,start:u,base:G,glob:P,isBrace:d,isBracket:h,isGlob:f,isExtglob:m,isGlobstar:y,negated:w,negatedExtglob:v};if(r.tokens===!0&&(O.maxDepth=0,h9(_)||a.push(N),O.tokens=a),r.parts===!0||r.tokens===!0){let L;for(let $=0;$<s.length;$++){let Z=L?L+1:u,R=s[$],B=e.slice(Z,R);r.tokens&&($===0&&u!==0?(a[$].isPrefix=!0,a[$].value=re):a[$].value=B,g9(a[$]),O.maxDepth+=a[$].depth),($!==0||B!=="")&&o.push(B),L=R}if(L&&L+1<e.length){let $=e.slice(L+1);o.push($),r.tokens&&(a[a.length-1].value=$,g9(a[a.length-1]),O.maxDepth+=a[a.length-1].depth)}O.slashes=s,O.parts=o}return O};b9.exports=_ue});var w9=D((rOe,E9)=>{"use strict";g();var gg=cd(),xn=ld(),{MAX_LENGTH:yg,POSIX_REGEX_SOURCE:Iue,REGEX_NON_SPECIAL_CHARS:kue,REGEX_SPECIAL_CHARS_BACKREF:Nue,REPLACEMENTS:v9}=gg,Fue=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>xn.escapeRegex(i)).join("..")}return r},xl=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,lw=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=v9[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(yg,r.maxLength):yg,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},a=[s],o=r.capture?"":"?:",c=xn.isWindows(t),l=gg.globChars(c),u=gg.extglobChars(l),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:x,QMARK:w,QMARK_NO_DOT:v,STAR:C,START_ANCHOR:E}=l,S=J=>`(${o}(?:(?!${E}${J.dot?m:p}).)*?)`,_=r.dot?"":y,N=r.dot?w:v,F=r.bash===!0?S(r):C;r.capture&&(F=`(${F})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=xn.removePrefix(e,A),i=e.length;let W=[],G=[],re=[],P=s,O,L=()=>A.index===i-1,$=A.peek=(J=1)=>e[A.index+J],Z=A.advance=()=>e[++A.index]||"",R=()=>e.slice(A.index+1),B=(J="",Ue=0)=>{A.consumed+=J,A.index+=Ue},V=J=>{A.output+=J.output!=null?J.output:J.value,B(J.value)},ie=()=>{let J=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)Z(),A.start++,J++;return J%2===0?!1:(A.negated=!0,A.start++,!0)},Ee=J=>{A[J]++,re.push(J)},de=J=>{A[J]--,re.pop()},X=J=>{if(P.type==="globstar"){let Ue=A.braces>0&&(J.type==="comma"||J.type==="brace"),H=J.extglob===!0||W.length&&(J.type==="pipe"||J.type==="paren");J.type!=="slash"&&J.type!=="paren"&&!Ue&&!H&&(A.output=A.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=F,A.output+=P.output)}if(W.length&&J.type!=="paren"&&(W[W.length-1].inner+=J.value),(J.value||J.output)&&V(J),P&&P.type==="text"&&J.type==="text"){P.value+=J.value,P.output=(P.output||"")+J.value;return}J.prev=P,a.push(J),P=J},At=(J,Ue)=>{let H={...u[Ue],conditions:1,inner:""};H.prev=P,H.parens=A.parens,H.output=A.output;let me=(r.capture?"(":"")+H.open;Ee("parens"),X({type:J,value:Ue,output:A.output?"":f}),X({type:"paren",extglob:!0,value:Z(),output:me}),W.push(H)},or=J=>{let Ue=J.close+(r.capture?")":""),H;if(J.type==="negate"){let me=F;if(J.inner&&J.inner.length>1&&J.inner.includes("/")&&(me=S(r)),(me!==F||L()||/^\)+$/.test(R()))&&(Ue=J.close=`)$))${me}`),J.inner.includes("*")&&(H=R())&&/^\.[^\\/.]+$/.test(H)){let le=lw(H,{...t,fastpaths:!1}).output;Ue=J.close=`)${le})${me})`}J.prev.type==="bos"&&(A.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:O,output:Ue}),de("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let J=!1,Ue=e.replace(Nue,(H,me,le,ut,Ze,hr)=>ut==="\\"?(J=!0,H):ut==="?"?me?me+ut+(Ze?w.repeat(Ze.length):""):hr===0?N+(Ze?w.repeat(Ze.length):""):w.repeat(le.length):ut==="."?p.repeat(le.length):ut==="*"?me?me+ut+(Ze?F:""):F:me?H:`\\${H}`);return J===!0&&(r.unescape===!0?Ue=Ue.replace(/\\/g,""):Ue=Ue.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),Ue===e&&r.contains===!0?(A.output=e,A):(A.output=xn.wrapOutput(Ue,A,t),A)}for(;!L();){if(O=Z(),O==="\0")continue;if(O==="\\"){let H=$();if(H==="/"&&r.bash!==!0||H==="."||H===";")continue;if(!H){O+="\\",X({type:"text",value:O});continue}let me=/^\\+/.exec(R()),le=0;if(me&&me[0].length>2&&(le=me[0].length,A.index+=le,le%2!==0&&(O+="\\")),r.unescape===!0?O=Z():O+=Z(),A.brackets===0){X({type:"text",value:O});continue}}if(A.brackets>0&&(O!=="]"||P.value==="["||P.value==="[^")){if(r.posix!==!1&&O===":"){let H=P.value.slice(1);if(H.includes("[")&&(P.posix=!0,H.includes(":"))){let me=P.value.lastIndexOf("["),le=P.value.slice(0,me),ut=P.value.slice(me+2),Ze=Iue[ut];if(Ze){P.value=le+Ze,A.backtrack=!0,Z(),!s.output&&a.indexOf(P)===1&&(s.output=f);continue}}}(O==="["&&$()!==":"||O==="-"&&$()==="]")&&(O=`\\${O}`),O==="]"&&(P.value==="["||P.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&P.value==="["&&(O="^"),P.value+=O,V({value:O});continue}if(A.quotes===1&&O!=='"'){O=xn.escapeRegex(O),P.value+=O,V({value:O});continue}if(O==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&X({type:"text",value:O});continue}if(O==="("){Ee("parens"),X({type:"paren",value:O});continue}if(O===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xl("opening","("));let H=W[W.length-1];if(H&&A.parens===H.parens+1){or(W.pop());continue}X({type:"paren",value:O,output:A.parens?")":"\\)"}),de("parens");continue}if(O==="["){if(r.nobracket===!0||!R().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xl("closing","]"));O=`\\${O}`}else Ee("brackets");X({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){X({type:"text",value:O,output:`\\${O}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xl("opening","["));X({type:"text",value:O,output:`\\${O}`});continue}de("brackets");let H=P.value.slice(1);if(P.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(O=`/${O}`),P.value+=O,V({value:O}),r.literalBrackets===!1||xn.hasRegexChars(H))continue;let me=xn.escapeRegex(P.value);if(A.output=A.output.slice(0,-P.value.length),r.literalBrackets===!0){A.output+=me,P.value=me;continue}P.value=`(${o}${me}|${P.value})`,A.output+=P.value;continue}if(O==="{"&&r.nobrace!==!0){Ee("braces");let H={type:"brace",value:O,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};G.push(H),X(H);continue}if(O==="}"){let H=G[G.length-1];if(r.nobrace===!0||!H){X({type:"text",value:O,output:O});continue}let me=")";if(H.dots===!0){let le=a.slice(),ut=[];for(let Ze=le.length-1;Ze>=0&&(a.pop(),le[Ze].type!=="brace");Ze--)le[Ze].type!=="dots"&&ut.unshift(le[Ze].value);me=Fue(ut,r),A.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){let le=A.output.slice(0,H.outputIndex),ut=A.tokens.slice(H.tokensIndex);H.value=H.output="\\{",O=me="\\}",A.output=le;for(let Ze of ut)A.output+=Ze.output||Ze.value}X({type:"brace",value:O,output:me}),de("braces"),G.pop();continue}if(O==="|"){W.length>0&&W[W.length-1].conditions++,X({type:"text",value:O});continue}if(O===","){let H=O,me=G[G.length-1];me&&re[re.length-1]==="braces"&&(me.comma=!0,H="|"),X({type:"comma",value:O,output:H});continue}if(O==="/"){if(P.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",a.pop(),P=s;continue}X({type:"slash",value:O,output:h});continue}if(O==="."){if(A.braces>0&&P.type==="dot"){P.value==="."&&(P.output=p);let H=G[G.length-1];P.type="dots",P.output+=O,P.value+=O,H.dots=!0;continue}if(A.braces+A.parens===0&&P.type!=="bos"&&P.type!=="slash"){X({type:"text",value:O,output:p});continue}X({type:"dot",value:O,output:p});continue}if(O==="?"){if(!(P&&P.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){At("qmark",O);continue}if(P&&P.type==="paren"){let me=$(),le=O;if(me==="<"&&!xn.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(me)||me==="<"&&!/<([!=]|\w+>)/.test(R()))&&(le=`\\${O}`),X({type:"text",value:O,output:le});continue}if(r.dot!==!0&&(P.type==="slash"||P.type==="bos")){X({type:"qmark",value:O,output:v});continue}X({type:"qmark",value:O,output:w});continue}if(O==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){At("negate",O);continue}if(r.nonegate!==!0&&A.index===0){ie();continue}}if(O==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){At("plus",O);continue}if(P&&P.value==="("||r.regex===!1){X({type:"plus",value:O,output:d});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||A.parens>0){X({type:"plus",value:O});continue}X({type:"plus",value:d});continue}if(O==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){X({type:"at",extglob:!0,value:O,output:""});continue}X({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let H=kue.exec(R());H&&(O+=H[0],A.index+=H[0].length),X({type:"text",value:O});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=O,P.output=F,A.backtrack=!0,A.globstar=!0,B(O);continue}let J=R();if(r.noextglob!==!0&&/^\([^?]/.test(J)){At("star",O);continue}if(P.type==="star"){if(r.noglobstar===!0){B(O);continue}let H=P.prev,me=H.prev,le=H.type==="slash"||H.type==="bos",ut=me&&(me.type==="star"||me.type==="globstar");if(r.bash===!0&&(!le||J[0]&&J[0]!=="/")){X({type:"star",value:O,output:""});continue}let Ze=A.braces>0&&(H.type==="comma"||H.type==="brace"),hr=W.length&&(H.type==="pipe"||H.type==="paren");if(!le&&H.type!=="paren"&&!Ze&&!hr){X({type:"star",value:O,output:""});continue}for(;J.slice(0,3)==="/**";){let xo=e[A.index+4];if(xo&&xo!=="/")break;J=J.slice(3),B("/**",3)}if(H.type==="bos"&&L()){P.type="globstar",P.value+=O,P.output=S(r),A.output=P.output,A.globstar=!0,B(O);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!ut&&L()){A.output=A.output.slice(0,-(H.output+P.output).length),H.output=`(?:${H.output}`,P.type="globstar",P.output=S(r)+(r.strictSlashes?")":"|$)"),P.value+=O,A.globstar=!0,A.output+=H.output+P.output,B(O);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&J[0]==="/"){let xo=J[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(H.output+P.output).length),H.output=`(?:${H.output}`,P.type="globstar",P.output=`${S(r)}${h}|${h}${xo})`,P.value+=O,A.output+=H.output+P.output,A.globstar=!0,B(O+Z()),X({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&J[0]==="/"){P.type="globstar",P.value+=O,P.output=`(?:^|${h}|${S(r)}${h})`,A.output=P.output,A.globstar=!0,B(O+Z()),X({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-P.output.length),P.type="globstar",P.output=S(r),P.value+=O,A.output+=P.output,A.globstar=!0,B(O);continue}let Ue={type:"star",value:O,output:F};if(r.bash===!0){Ue.output=".*?",(P.type==="bos"||P.type==="slash")&&(Ue.output=_+Ue.output),X(Ue);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&r.regex===!0){Ue.output=O,X(Ue);continue}(A.index===A.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(A.output+=b,P.output+=b):r.dot===!0?(A.output+=x,P.output+=x):(A.output+=_,P.output+=_),$()!=="*"&&(A.output+=f,P.output+=f)),X(Ue)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xl("closing","]"));A.output=xn.escapeLast(A.output,"["),de("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xl("closing",")"));A.output=xn.escapeLast(A.output,"("),de("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xl("closing","}"));A.output=xn.escapeLast(A.output,"{"),de("braces")}if(r.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${h}?`}),A.backtrack===!0){A.output="";for(let J of A.tokens)A.output+=J.output!=null?J.output:J.value,J.suffix&&(A.output+=J.suffix)}return A};lw.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(yg,r.maxLength):yg,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=v9[e]||e;let s=xn.isWindows(t),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:h,START_ANCHOR:f}=gg.globChars(s),m=r.dot?p:u,y=r.dot?d:u,b=r.capture?"":"?:",x={negated:!1,prefix:""},w=r.bash===!0?".*?":h;r.capture&&(w=`(${w})`);let v=_=>_.noglobstar===!0?w:`(${b}(?:(?!${f}${_.dot?l:a}).)*?)`,C=_=>{switch(_){case"*":return`${m}${c}${w}`;case".*":return`${a}${c}${w}`;case"*.*":return`${m}${w}${a}${c}${w}`;case"*/*":return`${m}${w}${o}${c}${y}${w}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${o})?${y}${c}${w}`;case"**/*.*":return`(?:${m}${v(r)}${o})?${y}${w}${a}${c}${w}`;case"**/.*":return`(?:${m}${v(r)}${o})?${a}${c}${w}`;default:{let N=/^(.*?)\.(\w+)$/.exec(_);if(!N)return;let F=C(N[1]);return F?F+a+N[2]:void 0}}},E=xn.removePrefix(e,x),S=C(E);return S&&r.strictSlashes!==!0&&(S+=`${o}?`),S};E9.exports=lw});var D9=D((iOe,C9)=>{"use strict";g();var Oue=require("path"),Rue=x9(),uw=w9(),pw=ld(),Lue=cd(),Bue=e=>e&&typeof e=="object"&&!Array.isArray(e),$t=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(d=>$t(d,t,r));return d=>{for(let h of u){let f=h(d);if(f)return f}return!1}}let n=Bue(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=pw.isWindows(t),a=n?$t.compileRe(e,t):$t.makeRe(e,t,!1,!0),o=a.state;delete a.state;let c=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};c=$t(i.ignore,u,r)}let l=(u,p=!1)=>{let{isMatch:d,match:h,output:f}=$t.test(u,a,t,{glob:e,posix:s}),m={glob:e,state:o,regex:a,posix:s,input:u,output:f,match:h,isMatch:d};return typeof i.onResult=="function"&&i.onResult(m),d===!1?(m.isMatch=!1,p?m:!1):c(u)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,p?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),p?m:!0)};return r&&(l.state=o),l};$t.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},a=s.format||(i?pw.toPosixSlashes:null),o=e===n,c=o&&a?a(e):e;return o===!1&&(c=a?a(e):e,o=c===n),(o===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?o=$t.matchBase(e,t,r,i):o=t.exec(c)),{isMatch:!!o,match:o,output:c}};$t.matchBase=(e,t,r,n=pw.isWindows(r))=>(t instanceof RegExp?t:$t.makeRe(t,r)).test(Oue.basename(e));$t.isMatch=(e,t,r)=>$t(t,r)(e);$t.parse=(e,t)=>Array.isArray(e)?e.map(r=>$t.parse(r,t)):uw(e,{...t,fastpaths:!1});$t.scan=(e,t)=>Rue(e,t);$t.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",a=i.contains?"":"$",o=`${s}(?:${e.output})${a}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let c=$t.toRegex(o,t);return n===!0&&(c.state=e),c};$t.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=uw.fastpaths(e,t)),i.output||(i=uw(e,t)),$t.compileRe(i,t,r,n)};$t.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};$t.constants=Lue;C9.exports=$t});var T9=D((aOe,S9)=>{"use strict";g();S9.exports=D9()});var N9=D((cOe,k9)=>{"use strict";g();var P9=require("util"),_9=a9(),Vi=T9(),dw=ld(),A9=e=>e===""||e==="./",I9=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},gt=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,a=0,o=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let p=Vi(String(t[u]),{...r,onResult:o},!0),d=p.state.negated||p.state.negatedExtglob;d&&a++;for(let h of e){let f=p(h,!0);(d?!f.isMatch:f.isMatch)&&(d?n.add(f.output):(n.delete(f.output),i.add(f.output)))}}let l=(a===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(u=>u.replace(/\\/g,"")):t}return l};gt.match=gt;gt.matcher=(e,t)=>Vi(e,t);gt.isMatch=(e,t,r)=>Vi(t,r)(e);gt.any=gt.isMatch;gt.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=o=>{r.onResult&&r.onResult(o),i.push(o.output)},a=new Set(gt(e,t,{...r,onResult:s}));for(let o of i)a.has(o)||n.add(o);return[...n]};gt.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${P9.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>gt.contains(e,n,r));if(typeof t=="string"){if(A9(e)||A9(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return gt.isMatch(e,t,{...r,contains:!0})};gt.matchKeys=(e,t,r)=>{if(!dw.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=gt(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};gt.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Vi(String(i),r);if(n.some(a=>s(a)))return!0}return!1};gt.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Vi(String(i),r);if(!n.every(a=>s(a)))return!1}return!0};gt.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${P9.inspect(e)}"`);return[].concat(t).every(n=>Vi(n,r)(e))};gt.capture=(e,t,r)=>{let n=dw.isWindows(r),s=Vi.makeRe(String(e),{...r,capture:!0}).exec(n?dw.toPosixSlashes(t):t);if(s)return s.slice(1).map(a=>a===void 0?"":a)};gt.makeRe=(...e)=>Vi.makeRe(...e);gt.scan=(...e)=>Vi.scan(...e);gt.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of _9(String(n),t))r.push(Vi.parse(i,t));return r};gt.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!I9(e)?[e]:_9(e,t)};gt.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return gt.braces(e,{...t,expand:!0})};gt.hasBraces=I9;k9.exports=gt});var $9=D(bg=>{"use strict";g();Object.defineProperty(bg,"__esModule",{value:!0});bg.match=void 0;var L9=D5(),Mue=N9(),$ue=require("url"),F9=lg();function jue(e,t,r){if(O9(e))return B9(e,t);if(R9(e))return M9(e,t);if(Array.isArray(e)){if(e.every(O9))return que(e,t);if(e.every(R9))return Uue(e,t);throw new Error(F9.ERRORS.ERR_CONTEXT_MATCHER_INVALID_ARRAY)}if(typeof e=="function"){let n=fw(t);return e(n,r)}throw new Error(F9.ERRORS.ERR_CONTEXT_MATCHER_GENERIC)}bg.match=jue;function B9(e,t){return fw(t).indexOf(e)===0}function M9(e,t){let r=fw(t),n=Mue([r],e);return n&&n.length>0}function Uue(e,t){return M9(e,t)}function que(e,t){let r=!1;for(let n of e)if(B9(n,t)){r=!0;break}return r}function fw(e){return e&&$ue.parse(e).pathname}function O9(e){return typeof e=="string"&&!L9(e)}function R9(e){return L9(e)}});var U9=D(vl=>{"use strict";g();Object.defineProperty(vl,"__esModule",{value:!0});vl.getHandlers=vl.init=void 0;var zue=yl(),xg=(0,zue.getInstance)();function Kue(e,t){let r=j9(t);for(let n of Object.keys(r))e.on(n,r[n]);e.on("econnreset",(n,i,s,a)=>{xg.error("[HPM] ECONNRESET: %O",n)}),e.on("proxyReqWs",(n,i,s,a,o)=>{s.on("error",c=>{xg.error("[HPM] WebSocket error: %O",c)})}),xg.debug("[HPM] Subscribed to http-proxy events:",Object.keys(r))}vl.init=Kue;function j9(e){let t={error:"onError",proxyReq:"onProxyReq",proxyReqWs:"onProxyReqWs",proxyRes:"onProxyRes",open:"onOpen",close:"onClose"},r={};for(let[n,i]of Object.entries(t)){let s=e?e[i]:null;typeof s=="function"&&(r[n]=s)}return typeof r.error!="function"&&(r.error=Hue),typeof r.close!="function"&&(r.close=Vue),r}vl.getHandlers=j9;function Hue(e,t,r){if(!t&&!r)throw e;let n=t.headers&&t.headers.host,i=e.code;if(r.writeHead&&!r.headersSent)if(/HPE_INVALID/.test(i))r.writeHead(502);else switch(i){case"ECONNRESET":case"ENOTFOUND":case"ECONNREFUSED":case"ETIMEDOUT":r.writeHead(504);break;default:r.writeHead(500)}r.end(`Error occurred while trying to proxy: ${n}${t.url}`)}function Vue(e,t,r){xg.info("[HPM] Client disconnected")}});var K9=D(vg=>{"use strict";g();Object.defineProperty(vg,"__esModule",{value:!0});vg.createPathRewriter=void 0;var q9=cg(),Gue=lg(),Wue=yl(),z9=(0,Wue.getInstance)();function Jue(e){let t;if(!Yue(e))return;if(typeof e=="function")return e;return t=Xue(e),r;function r(n){let i=n;for(let s of t)if(s.regex.test(n)){i=i.replace(s.regex,s.value),z9.debug('[HPM] Rewriting path from "%s" to "%s"',n,i);break}return i}}vg.createPathRewriter=Jue;function Yue(e){if(typeof e=="function")return!0;if(q9(e))return Object.keys(e).length!==0;if(e==null)return!1;throw new Error(Gue.ERRORS.ERR_PATH_REWRITER_CONFIG)}function Xue(e){let t=[];if(q9(e))for(let[r]of Object.entries(e))t.push({regex:new RegExp(r),value:e[r]}),z9.info('[HPM] Proxy rewrite rule created: "%s" ~> "%s"',r,e[r]);return t}});var V9=D(Eg=>{"use strict";g();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getTarget=void 0;var Que=cg(),Zue=yl(),H9=(0,Zue.getInstance)();async function epe(e,t){let r,n=t.router;return Que(n)?r=tpe(e,n):typeof n=="function"&&(r=await n(e)),r}Eg.getTarget=epe;function tpe(e,t){let r,n=e.headers.host,i=e.url,s=n+i;for(let[a]of Object.entries(t))if(rpe(a)){if(s.indexOf(a)>-1){r=t[a],H9.debug('[HPM] Router table match: "%s"',a);break}}else if(a===n){r=t[a],H9.debug('[HPM] Router table match: "%s"',n);break}return r}function rpe(e){return e.indexOf("/")>-1}});var W9=D(wg=>{"use strict";g();Object.defineProperty(wg,"__esModule",{value:!0});wg.HttpProxyMiddleware=void 0;var npe=m5(),ipe=x5(),spe=$9(),ape=U9(),G9=yl(),ope=K9(),cpe=V9(),mw=class{constructor(t,r){this.logger=(0,G9.getInstance)(),this.wsInternalSubscribed=!1,this.serverOnCloseSubscribed=!1,this.middleware=async(n,i,s)=>{var a,o;if(this.shouldProxy(this.config.context,n))try{let l=await this.prepareProxyRequest(n);this.proxy.web(n,i,l)}catch(l){s(l)}else s();let c=(o=(a=n.socket)!==null&&a!==void 0?a:n.connection)===null||o===void 0?void 0:o.server;c&&!this.serverOnCloseSubscribed&&(c.on("close",()=>{this.logger.info("[HPM] server close signal received: closing proxy server"),this.proxy.close()}),this.serverOnCloseSubscribed=!0),this.proxyOptions.ws===!0&&this.catchUpgradeRequest(c)},this.catchUpgradeRequest=n=>{this.wsInternalSubscribed||(n.on("upgrade",this.handleUpgrade),this.wsInternalSubscribed=!0)},this.handleUpgrade=async(n,i,s)=>{if(this.shouldProxy(this.config.context,n)){let a=await this.prepareProxyRequest(n);this.proxy.ws(n,i,s,a),this.logger.info("[HPM] Upgrading to WebSocket")}},this.shouldProxy=(n,i)=>{try{let s=i.originalUrl||i.url;return spe.match(n,s,i)}catch(s){return this.logger.error(s),!1}},this.prepareProxyRequest=async n=>{n.url=n.originalUrl||n.url;let i=n.url,s=Object.assign({},this.proxyOptions);if(await this.applyRouter(n,s),await this.applyPathRewrite(n,this.pathRewriter),this.proxyOptions.logLevel==="debug"){let a=(0,G9.getArrow)(i,n.url,this.proxyOptions.target,s.target);this.logger.debug("[HPM] %s %s %s %s",n.method,i,a,s.target)}return s},this.applyRouter=async(n,i)=>{let s;i.router&&(s=await cpe.getTarget(n,i),s&&(this.logger.debug('[HPM] Router new target: %s -> "%s"',i.target,s),i.target=s))},this.applyPathRewrite=async(n,i)=>{if(i){let s=await i(n.url,n);typeof s=="string"?n.url=s:this.logger.info("[HPM] pathRewrite: No rewritten path found. (%s)",n.url)}},this.logError=(n,i,s,a)=>{var o;let l=`${((o=i.headers)===null||o===void 0?void 0:o.host)||i.hostname||i.host}${i.url}`,u=`${a?.href}`;this.logger.error("[HPM] Error occurred while proxying request %s to %s [%s] (%s)",l,u,n.code||n,"https://nodejs.org/api/errors.html#errors_common_system_errors")},this.config=(0,ipe.createConfig)(t,r),this.proxyOptions=this.config.options,this.proxy=npe.createProxyServer({}),this.logger.info(`[HPM] Proxy created: ${this.config.context} -> ${this.proxyOptions.target}`),this.pathRewriter=ope.createPathRewriter(this.proxyOptions.pathRewrite),ape.init(this.proxy,this.proxyOptions),this.proxy.on("error",this.logError),this.middleware.upgrade=(n,i,s)=>{this.wsInternalSubscribed||this.handleUpgrade(n,i,s)}}};wg.HttpProxyMiddleware=mw});var J9=D(Cg=>{"use strict";g();Object.defineProperty(Cg,"__esModule",{value:!0});Cg.responseInterceptor=void 0;var hw=require("zlib");function lpe(e){return async function(t,r,n){let i=t,s=Buffer.from("","utf8"),a=upe(t,t.headers["content-encoding"]);a.on("data",o=>s=Buffer.concat([s,o])),a.on("end",async()=>{ppe(t,n);let o=Buffer.from(await e(s,i,r,n));n.setHeader("content-length",Buffer.byteLength(o,"utf8")),n.write(o),n.end()}),a.on("error",o=>{n.end(`Error fetching proxied request: ${o.message}`)})}}Cg.responseInterceptor=lpe;function upe(e,t){let r=e,n;switch(t){case"gzip":n=hw.createGunzip();break;case"br":n=hw.createBrotliDecompress();break;case"deflate":n=hw.createInflate();break;default:break}return n&&(r.pipe(n),r=n),r}function ppe(e,t){if(t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.setHeader){let r=Object.keys(e.headers);r=r.filter(n=>!["content-encoding","transfer-encoding"].includes(n)),r.forEach(n=>{let i=e.headers[n];n==="set-cookie"&&(i=Array.isArray(i)?i:[i],i=i.map(s=>s.replace(/Domain=[^;]+?/i,""))),t.setHeader(n,i)})}else t.headers=e.headers}});var Y9=D(Dg=>{"use strict";g();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.fixRequestBody=void 0;var dpe=require("querystring");function fpe(e,t){let r=t.body;if(!r)return;let n=e.getHeader("Content-Type"),i=s=>{e.setHeader("Content-Length",Buffer.byteLength(s)),e.write(s)};n&&n.includes("application/json")&&i(JSON.stringify(r)),n&&n.includes("application/x-www-form-urlencoded")&&i(dpe.stringify(r))}Dg.fixRequestBody=fpe});var X9=D(El=>{"use strict";g();Object.defineProperty(El,"__esModule",{value:!0});El.fixRequestBody=El.responseInterceptor=void 0;var mpe=J9();Object.defineProperty(El,"responseInterceptor",{enumerable:!0,get:function(){return mpe.responseInterceptor}});var hpe=Y9();Object.defineProperty(El,"fixRequestBody",{enumerable:!0,get:function(){return hpe.fixRequestBody}})});var Q9=D(fo=>{"use strict";g();var gpe=fo&&fo.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ype=fo&&fo.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gpe(t,e,r)};Object.defineProperty(fo,"__esModule",{value:!0});ype(X9(),fo)});var Z9=D(ws=>{"use strict";g();var bpe=ws&&ws.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),xpe=ws&&ws.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bpe(t,e,r)};Object.defineProperty(ws,"__esModule",{value:!0});ws.createProxyMiddleware=void 0;var vpe=W9();function Epe(e,t){let{middleware:r}=new vpe.HttpProxyMiddleware(e,t);return r}ws.createProxyMiddleware=Epe;xpe(Q9(),ws)});var iM=D((IOe,nM)=>{g();nM.exports=rM;rM.sync=Cpe;var eM=require("fs");function wpe(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function tM(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:wpe(t,r)}function rM(e,t,r){eM.stat(e,function(n,i){r(n,n?!1:tM(i,e,t))})}function Cpe(e,t){return tM(eM.statSync(e),e,t)}});var lM=D((NOe,cM)=>{g();cM.exports=aM;aM.sync=Dpe;var sM=require("fs");function aM(e,t,r){sM.stat(e,function(n,i){r(n,n?!1:oM(i,t))})}function Dpe(e,t){return oM(sM.statSync(e),t)}function oM(e,t){return e.isFile()&&Spe(e,t)}function Spe(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),o=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=o|c,p=r&l||r&c&&i===a||r&o&&n===s||r&u&&s===0;return p}});var pM=D((ROe,uM)=>{g();var OOe=require("fs"),Sg;process.platform==="win32"||global.TESTING_WINDOWS?Sg=iM():Sg=lM();uM.exports=gw;gw.sync=Tpe;function gw(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){gw(e,t||{},function(s,a){s?i(s):n(a)})})}Sg(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function Tpe(e,t){try{return Sg.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var bM=D((BOe,yM)=>{g();var wl=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",dM=require("path"),Ape=wl?";":":",fM=pM(),mM=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),hM=(e,t)=>{let r=t.colon||Ape,n=e.match(/\//)||wl&&e.match(/\\/)?[""]:[...wl?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=wl?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=wl?i.split(r):[""];return wl&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},gM=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=hM(e,t),a=[],o=l=>new Promise((u,p)=>{if(l===n.length)return t.all&&a.length?u(a):p(mM(e));let d=n[l],h=/^".*"$/.test(d)?d.slice(1,-1):d,f=dM.join(h,e),m=!h&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;u(c(m,l,0))}),c=(l,u,p)=>new Promise((d,h)=>{if(p===i.length)return d(o(u+1));let f=i[p];fM(l+f,{pathExt:s},(m,y)=>{if(!m&&y)if(t.all)a.push(l+f);else return d(l+f);return d(c(l,u,p+1))})});return r?o(0).then(l=>r(null,l),r):o(0)},Ppe=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=hM(e,t),s=[];for(let a=0;a<r.length;a++){let o=r[a],c=/^".*"$/.test(o)?o.slice(1,-1):o,l=dM.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let p=0;p<n.length;p++){let d=u+n[p];try{if(fM.sync(d,{pathExt:i}))if(t.all)s.push(d);else return d}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw mM(e)};yM.exports=gM;gM.sync=Ppe});var vM=D(($Oe,yw)=>{"use strict";g();var xM=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};yw.exports=xM;yw.exports.default=xM});var DM=D((UOe,CM)=>{"use strict";g();var EM=require("path"),_pe=bM(),Ipe=vM();function wM(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let a;try{a=_pe.sync(e.command,{path:r[Ipe({env:r})],pathExt:t?EM.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return a&&(a=EM.resolve(i?e.options.cwd:"",a)),a}function kpe(e){return wM(e)||wM(e,!0)}CM.exports=kpe});var SM=D((zOe,xw)=>{"use strict";g();var bw=/([()\][%!^"`<>&|;, *?])/g;function Npe(e){return e=e.replace(bw,"^$1"),e}function Fpe(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(bw,"^$1"),t&&(e=e.replace(bw,"^$1")),e}xw.exports.command=Npe;xw.exports.argument=Fpe});var AM=D((HOe,TM)=>{"use strict";g();TM.exports=/^#!(.*)/});var _M=D((GOe,PM)=>{"use strict";g();var Ope=AM();PM.exports=(e="")=>{let t=e.match(Ope);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var kM=D((JOe,IM)=>{"use strict";g();var vw=require("fs"),Rpe=_M();function Lpe(e){let r=Buffer.alloc(150),n;try{n=vw.openSync(e,"r"),vw.readSync(n,r,0,150,0),vw.closeSync(n)}catch{}return Rpe(r.toString())}IM.exports=Lpe});var RM=D((XOe,OM)=>{"use strict";g();var Bpe=require("path"),NM=DM(),FM=SM(),Mpe=kM(),$pe=process.platform==="win32",jpe=/\.(?:com|exe)$/i,Upe=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function qpe(e){e.file=NM(e);let t=e.file&&Mpe(e.file);return t?(e.args.unshift(e.file),e.command=t,NM(e)):e.file}function zpe(e){if(!$pe)return e;let t=qpe(e),r=!jpe.test(t);if(e.options.forceShell||r){let n=Upe.test(t);e.command=Bpe.normalize(e.command),e.command=FM.command(e.command),e.args=e.args.map(s=>FM.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Kpe(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:zpe(n)}OM.exports=Kpe});var MM=D((ZOe,BM)=>{"use strict";g();var Ew=process.platform==="win32";function ww(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Hpe(e,t){if(!Ew)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=LM(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function LM(e,t){return Ew&&e===1&&!t.file?ww(t.original,"spawn"):null}function Vpe(e,t){return Ew&&e===1&&!t.file?ww(t.original,"spawnSync"):null}BM.exports={hookChildProcess:Hpe,verifyENOENT:LM,verifyENOENTSync:Vpe,notFoundError:ww}});var UM=D((t3e,Cl)=>{"use strict";g();var $M=require("child_process"),Cw=RM(),Dw=MM();function jM(e,t,r){let n=Cw(e,t,r),i=$M.spawn(n.command,n.args,n.options);return Dw.hookChildProcess(i,n),i}function Gpe(e,t,r){let n=Cw(e,t,r),i=$M.spawnSync(n.command,n.args,n.options);return i.error=i.error||Dw.verifyENOENTSync(i.status,n),i}Cl.exports=jM;Cl.exports.spawn=jM;Cl.exports.sync=Gpe;Cl.exports._parse=Cw;Cl.exports._enoent=Dw});var XM=D((m3e,YM)=>{"use strict";g();var{Duplex:Xpe}=require("stream");function WM(e){e.emit("close")}function Qpe(){!this.destroyed&&this._writableState.finished&&this.destroy()}function JM(e){this.removeListener("error",JM),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e)}function Zpe(e,t){let r=!0,n=new Xpe({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(s,a){let o=!a&&n._readableState.objectMode?s.toString():s;n.push(o)||e.pause()}),e.once("error",function(s){n.destroyed||(r=!1,n.destroy(s))}),e.once("close",function(){n.destroyed||n.push(null)}),n._destroy=function(i,s){if(e.readyState===e.CLOSED){s(i),process.nextTick(WM,n);return}let a=!1;e.once("error",function(c){a=!0,s(c)}),e.once("close",function(){a||s(i),process.nextTick(WM,n)}),r&&e.terminate()},n._final=function(i){if(e.readyState===e.CONNECTING){e.once("open",function(){n._final(i)});return}e._socket!==null&&(e._socket._writableState.finished?(i(),n._readableState.endEmitted&&n.destroy()):(e._socket.once("finish",function(){i()}),e.close()))},n._read=function(){e.isPaused&&e.resume()},n._write=function(i,s,a){if(e.readyState===e.CONNECTING){e.once("open",function(){n._write(i,s,a)});return}e.send(i,a)},n.on("end",Qpe),n.on("error",JM),n}YM.exports=Zpe});var Cs=D((g3e,e7)=>{"use strict";g();var QM=["nodebuffer","arraybuffer","fragments"],ZM=typeof Blob<"u";ZM&&QM.push("blob");e7.exports={BINARY_TYPES:QM,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:ZM,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var g7=D((b3e,h7)=>{g();var i7=require("fs"),Ds=require("path"),s7=require("os"),a7=typeof __webpack_require__=="function"?__non_webpack_require__:require,ede=process.config&&process.config.variables||{},tde=!!process.env.PREBUILDS_ONLY,t7=process.versions.modules,Sw=ide()?"electron":nde()?"node-webkit":"node",Tw=process.env.npm_config_arch||s7.arch(),Aw=process.env.npm_config_platform||s7.platform(),o7=process.env.LIBC||(sde(Aw)?"musl":"glibc"),Pw=process.env.ARM_VERSION||(Tw==="arm64"?"8":ede.arm_version)||"",c7=(process.versions.uv||"").split(".")[0];h7.exports=Ji;function Ji(e){return a7(Ji.resolve(e))}Ji.resolve=Ji.path=function(e){e=Ds.resolve(e||".");try{var t=a7(Ds.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch{}if(!tde){var r=r7(Ds.join(e,"build/Release"),n7);if(r)return r;var n=r7(Ds.join(e,"build/Debug"),n7);if(n)return n}var i=o(e);if(i)return i;var s=o(Ds.dirname(process.execPath));if(s)return s;var a=["platform="+Aw,"arch="+Tw,"runtime="+Sw,"abi="+t7,"uv="+c7,Pw?"armv="+Pw:"","libc="+o7,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+a+`
|
|
1899
1899
|
loaded from: `+e+`
|
|
1900
1900
|
`);function o(c){var l=_w(Ds.join(c,"prebuilds")).map(l7),u=l.filter(u7(Aw,Tw)).sort(p7)[0];if(u){var p=Ds.join(c,"prebuilds",u.name),d=_w(p).map(d7),h=d.filter(f7(Sw,t7)),f=h.sort(m7(Sw))[0];if(f)return Ds.join(p,f.file)}}};function _w(e){try{return i7.readdirSync(e)}catch{return[]}}function r7(e,t){var r=_w(e).filter(t);return r[0]&&Ds.join(e,r[0])}function n7(e){return/\.node$/.test(e)}function l7(e){var t=e.split("-");if(t.length===2){var r=t[0],n=t[1].split("+");if(r&&n.length&&n.every(Boolean))return{name:e,platform:r,architectures:n}}}function u7(e,t){return function(r){return r==null||r.platform!==e?!1:r.architectures.includes(t)}}function p7(e,t){return e.architectures.length-t.architectures.length}function d7(e){var t=e.split("."),r=t.pop(),n={file:e,specificity:0};if(r==="node"){for(var i=0;i<t.length;i++){var s=t[i];if(s==="node"||s==="electron"||s==="node-webkit")n.runtime=s;else if(s==="napi")n.napi=!0;else if(s.slice(0,3)==="abi")n.abi=s.slice(3);else if(s.slice(0,2)==="uv")n.uv=s.slice(2);else if(s.slice(0,4)==="armv")n.armv=s.slice(4);else if(s==="glibc"||s==="musl")n.libc=s;else continue;n.specificity++}return n}}function f7(e,t){return function(r){return!(r==null||r.runtime&&r.runtime!==e&&!rde(r)||r.abi&&r.abi!==t&&!r.napi||r.uv&&r.uv!==c7||r.armv&&r.armv!==Pw||r.libc&&r.libc!==o7)}}function rde(e){return e.runtime==="node"&&e.napi}function m7(e){return function(t,r){return t.runtime!==r.runtime?t.runtime===e?-1:1:t.abi!==r.abi?t.abi?-1:1:t.specificity!==r.specificity?t.specificity>r.specificity?-1:1:0}}function nde(){return!!(process.versions&&process.versions.nw)}function ide(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function sde(e){return e==="linux"&&i7.existsSync("/etc/alpine-release")}Ji.parseTags=d7;Ji.matchTags=f7;Ji.compareTags=m7;Ji.parseTuple=l7;Ji.matchTuple=u7;Ji.compareTuples=p7});var Nw=D((v3e,kw)=>{g();var Iw=typeof __webpack_require__=="function"?__non_webpack_require__:require;typeof Iw.addon=="function"?kw.exports=Iw.addon.bind(Iw):kw.exports=g7()});var b7=D((w3e,y7)=>{"use strict";g();var ade=(e,t,r,n,i)=>{for(var s=0;s<i;s++)r[n+s]=e[s]^t[s&3]},ode=(e,t)=>{let r=e.length;for(var n=0;n<r;n++)e[n]^=t[n&3]};y7.exports={mask:ade,unmask:ode}});var x7=D((D3e,Fw)=>{"use strict";g();try{Fw.exports=Nw()(__dirname)}catch{Fw.exports=b7()}});var pd=D((T3e,Pg)=>{"use strict";g();var{EMPTY_BUFFER:cde}=Cs(),Ow=Buffer[Symbol.species];function lde(e,t){if(e.length===0)return cde;if(e.length===1)return e[0];let r=Buffer.allocUnsafe(t),n=0;for(let i=0;i<e.length;i++){let s=e[i];r.set(s,n),n+=s.length}return n<t?new Ow(r.buffer,r.byteOffset,n):r}function v7(e,t,r,n,i){for(let s=0;s<i;s++)r[n+s]=e[s]^t[s&3]}function E7(e,t){for(let r=0;r<e.length;r++)e[r]^=t[r&3]}function ude(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function Rw(e){if(Rw.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new Ow(e):ArrayBuffer.isView(e)?t=new Ow(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),Rw.readOnly=!1),t}Pg.exports={concat:lde,mask:v7,toArrayBuffer:ude,toBuffer:Rw,unmask:E7};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=x7();Pg.exports.mask=function(t,r,n,i,s){s<48?v7(t,r,n,i,s):e.mask(t,r,n,i,s)},Pg.exports.unmask=function(t,r){t.length<32?E7(t,r):e.unmask(t,r)}}catch{}});var D7=D((P3e,C7)=>{"use strict";g();var w7=Symbol("kDone"),Lw=Symbol("kRun"),Bw=class{constructor(t){this[w7]=()=>{this.pending--,this[Lw]()},this.concurrency=t||1/0,this.jobs=[],this.pending=0}add(t){this.jobs.push(t),this[Lw]()}[Lw](){if(this.pending!==this.concurrency&&this.jobs.length){let t=this.jobs.shift();this.pending++,t(this[w7])}}};C7.exports=Bw});var md=D((I3e,P7)=>{"use strict";g();var dd=require("zlib"),S7=pd(),pde=D7(),{kStatusCode:T7}=Cs(),dde=Buffer[Symbol.species],fde=Buffer.from([0,0,255,255]),kg=Symbol("permessage-deflate"),Ss=Symbol("total-length"),fd=Symbol("callback"),ha=Symbol("buffers"),Ig=Symbol("error"),_g,Mw=class{constructor(t,r,n){if(this._maxPayload=n|0,this._options=t||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!r,this._deflate=null,this._inflate=null,this.params=null,!_g){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;_g=new pde(i)}}static get extensionName(){return"permessage-deflate"}offer(){let t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let t=this._deflate[fd];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(t){let r=this._options,n=t.find(i=>!(r.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>i.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(n.server_no_context_takeover=!0),r.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(n.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?n.client_max_window_bits=r.clientMaxWindowBits:(n.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(t){let r=t[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(t){return t.forEach(r=>{Object.keys(r).forEach(n=>{let i=r[n];if(i.length>1)throw new Error(`Parameter "${n}" must have only a single value`);if(i=i[0],n==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else if(n==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else throw new Error(`Unknown parameter "${n}"`);r[n]=i})}),t}decompress(t,r,n){_g.add(i=>{this._decompress(t,r,(s,a)=>{i(),n(s,a)})})}compress(t,r,n){_g.add(i=>{this._compress(t,r,(s,a)=>{i(),n(s,a)})})}_decompress(t,r,n){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,a=typeof this.params[s]!="number"?dd.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=dd.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[kg]=this,this._inflate[Ss]=0,this._inflate[ha]=[],this._inflate.on("error",hde),this._inflate.on("data",A7)}this._inflate[fd]=n,this._inflate.write(t),r&&this._inflate.write(fde),this._inflate.flush(()=>{let s=this._inflate[Ig];if(s){this._inflate.close(),this._inflate=null,n(s);return}let a=S7.concat(this._inflate[ha],this._inflate[Ss]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Ss]=0,this._inflate[ha]=[],r&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),n(null,a)})}_compress(t,r,n){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,a=typeof this.params[s]!="number"?dd.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=dd.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[Ss]=0,this._deflate[ha]=[],this._deflate.on("data",mde)}this._deflate[fd]=n,this._deflate.write(t),this._deflate.flush(dd.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=S7.concat(this._deflate[ha],this._deflate[Ss]);r&&(s=new dde(s.buffer,s.byteOffset,s.length-4)),this._deflate[fd]=null,this._deflate[Ss]=0,this._deflate[ha]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),n(null,s)})}};P7.exports=Mw;function mde(e){this[ha].push(e),this[Ss]+=e.length}function A7(e){if(this[Ss]+=e.length,this[kg]._maxPayload<1||this[Ss]<=this[kg]._maxPayload){this[ha].push(e);return}this[Ig]=new RangeError("Max payload size exceeded"),this[Ig].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Ig][T7]=1009,this.removeListener("data",A7),this.reset()}function hde(e){this[kg]._inflate=null,e[T7]=1007,this[fd](e)}});var I7=D((N3e,_7)=>{"use strict";g();function gde(e){let t=e.length,r=0;for(;r<t;)if(!(e[r]&128))r++;else if((e[r]&224)===192){if(r+1===t||(e[r+1]&192)!==128||(e[r]&254)===192)return!1;r+=2}else if((e[r]&240)===224){if(r+2>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160)return!1;r+=3}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244)return!1;r+=4}else return!1;return!0}_7.exports=gde});var k7=D((O3e,$w)=>{"use strict";g();try{$w.exports=Nw()(__dirname)}catch{$w.exports=I7()}});var Dl=D((L3e,Ng)=>{"use strict";g();var{isUtf8:N7}=require("buffer"),{hasBlob:yde}=Cs(),bde=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function xde(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function jw(e){let t=e.length,r=0;for(;r<t;)if(!(e[r]&128))r++;else if((e[r]&224)===192){if(r+1===t||(e[r+1]&192)!==128||(e[r]&254)===192)return!1;r+=2}else if((e[r]&240)===224){if(r+2>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160)return!1;r+=3}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244)return!1;r+=4}else return!1;return!0}function vde(e){return yde&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}Ng.exports={isBlob:vde,isValidStatusCode:xde,isValidUTF8:jw,tokenChars:bde};if(N7)Ng.exports.isValidUTF8=function(e){return e.length<24?jw(e):N7(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=k7();Ng.exports.isValidUTF8=function(t){return t.length<32?jw(t):e(t)}}catch{}});var Hw=D((M3e,$7)=>{"use strict";g();var{Writable:Ede}=require("stream"),F7=md(),{BINARY_TYPES:wde,EMPTY_BUFFER:O7,kStatusCode:Cde,kWebSocket:Dde}=Cs(),{concat:Uw,toArrayBuffer:Sde,unmask:Tde}=pd(),{isValidStatusCode:Ade,isValidUTF8:R7}=Dl(),Fg=Buffer[Symbol.species],qn=0,L7=1,B7=2,M7=3,qw=4,zw=5,Og=6,Kw=class extends Ede{constructor(t={}){super(),this._allowSynchronousEvents=t.allowSynchronousEvents!==void 0?t.allowSynchronousEvents:!0,this._binaryType=t.binaryType||wde[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=t.maxPayload|0,this._skipUTF8Validation=!!t.skipUTF8Validation,this[Dde]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=qn}_write(t,r,n){if(this._opcode===8&&this._state==qn)return n();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(n)}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t<this._buffers[0].length){let n=this._buffers[0];return this._buffers[0]=new Fg(n.buffer,n.byteOffset+t,n.length-t),new Fg(n.buffer,n.byteOffset,t)}let r=Buffer.allocUnsafe(t);do{let n=this._buffers[0],i=r.length-t;t>=n.length?r.set(this._buffers.shift(),i):(r.set(new Uint8Array(n.buffer,n.byteOffset,t),i),this._buffers[0]=new Fg(n.buffer,n.byteOffset+t,n.length-t)),t-=n.length}while(t>0);return r}startLoop(t){this._loop=!0;do switch(this._state){case qn:this.getInfo(t);break;case L7:this.getPayloadLength16(t);break;case B7:this.getPayloadLength64(t);break;case M7:this.getMask();break;case qw:this.getData(t);break;case zw:case Og:this._loop=!1;return}while(this._loop);this._errored||t()}getInfo(t){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if(r[0]&48){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");t(i);return}let n=(r[0]&64)===64;if(n&&!this._extensions[F7.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(n){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");t(i);return}if(n){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");t(i);return}}else{let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");t(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");t(i);return}this._payloadLength===126?this._state=L7:this._payloadLength===127?this._state=B7:this.haveLength(t)}getPayloadLength16(t){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t)}getPayloadLength64(t){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),n=r.readUInt32BE(0);if(n>Math.pow(2,21)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");t(i);return}this._payloadLength=n*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(t)}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(r);return}this._masked?this._state=M7:this._state=qw}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=qw}getData(t){let r=O7;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&Tde(r,this._mask)}if(this._opcode>7){this.controlMessage(r,t);return}if(this._compressed){this._state=zw,this.decompress(r,t);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(t)}decompress(t,r){this._extensions[F7.extensionName].decompress(t,this._fin,(i,s)=>{if(i)return r(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(a);return}this._fragments.push(s)}this.dataMessage(r),this._state===qn&&this.startLoop(r)})}dataMessage(t){if(!this._fin){this._state=qn;return}let r=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=Uw(n,r):this._binaryType==="arraybuffer"?i=Sde(Uw(n,r)):this._binaryType==="blob"?i=new Blob(n):i=n,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=qn):(this._state=Og,setImmediate(()=>{this.emit("message",i,!0),this._state=qn,this.startLoop(t)}))}else{let i=Uw(n,r);if(!this._skipUTF8Validation&&!R7(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(s);return}this._state===zw||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=qn):(this._state=Og,setImmediate(()=>{this.emit("message",i,!1),this._state=qn,this.startLoop(t)}))}}controlMessage(t,r){if(this._opcode===8){if(t.length===0)this._loop=!1,this.emit("conclude",1005,O7),this.end();else{let n=t.readUInt16BE(0);if(!Ade(n)){let s=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(s);return}let i=new Fg(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!R7(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(s);return}this._loop=!1,this.emit("conclude",n,i),this.end()}this._state=qn;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",t),this._state=qn):(this._state=Og,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",t),this._state=qn,this.startLoop(r)}))}createError(t,r,n,i,s){this._loop=!1,this._errored=!0;let a=new t(n?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(a,this.createError),a.code=s,a[Cde]=i,a}};$7.exports=Kw});var Ww=D((U3e,q7)=>{"use strict";g();var{Duplex:j3e}=require("stream"),{randomFillSync:Pde}=require("crypto"),j7=md(),{EMPTY_BUFFER:_de,kWebSocket:Ide,NOOP:kde}=Cs(),{isBlob:Sl,isValidStatusCode:Nde}=Dl(),{mask:U7,toBuffer:mo}=pd(),zn=Symbol("kByteLength"),Fde=Buffer.alloc(4),Rg=8*1024,ho,Tl=Rg,di=0,Ode=1,Rde=2,Vw=class e{constructor(t,r,n){this._extensions=r||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=di,this.onerror=kde,this[Ide]=void 0}static frame(t,r){let n,i=!1,s=2,a=!1;r.mask&&(n=r.maskBuffer||Fde,r.generateMask?r.generateMask(n):(Tl===Rg&&(ho===void 0&&(ho=Buffer.alloc(Rg)),Pde(ho,0,Rg),Tl=0),n[0]=ho[Tl++],n[1]=ho[Tl++],n[2]=ho[Tl++],n[3]=ho[Tl++]),a=(n[0]|n[1]|n[2]|n[3])===0,s=6);let o;typeof t=="string"?(!r.mask||a)&&r[zn]!==void 0?o=r[zn]:(t=Buffer.from(t),o=t.length):(o=t.length,i=r.mask&&r.readOnly&&!a);let c=o;o>=65536?(s+=8,c=127):o>125&&(s+=2,c=126);let l=Buffer.allocUnsafe(i?o+s:s);return l[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(o,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),r.mask?(l[1]|=128,l[s-4]=n[0],l[s-3]=n[1],l[s-2]=n[2],l[s-1]=n[3],a?[l,t]:i?(U7(t,n,l,s,o),[l]):(U7(t,n,t,0,o),[l,t])):[l,t]}close(t,r,n,i){let s;if(t===void 0)s=_de;else{if(typeof t!="number"||!Nde(t))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else{let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+o),s.writeUInt16BE(t,0),typeof r=="string"?s.write(r,2):s.set(r,2)}}let a={[zn]:s.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==di?this.enqueue([this.dispatch,s,!1,a,i]):this.sendFrame(e.frame(s,a),i)}ping(t,r,n){let i,s;if(typeof t=="string"?(i=Buffer.byteLength(t),s=!1):Sl(t)?(i=t.size,s=!1):(t=mo(t),i=t.length,s=mo.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[zn]:i,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};Sl(t)?this._state!==di?this.enqueue([this.getBlobData,t,!1,a,n]):this.getBlobData(t,!1,a,n):this._state!==di?this.enqueue([this.dispatch,t,!1,a,n]):this.sendFrame(e.frame(t,a),n)}pong(t,r,n){let i,s;if(typeof t=="string"?(i=Buffer.byteLength(t),s=!1):Sl(t)?(i=t.size,s=!1):(t=mo(t),i=t.length,s=mo.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[zn]:i,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};Sl(t)?this._state!==di?this.enqueue([this.getBlobData,t,!1,a,n]):this.getBlobData(t,!1,a,n):this._state!==di?this.enqueue([this.dispatch,t,!1,a,n]):this.sendFrame(e.frame(t,a),n)}send(t,r,n){let i=this._extensions[j7.extensionName],s=r.binary?2:1,a=r.compress,o,c;typeof t=="string"?(o=Buffer.byteLength(t),c=!1):Sl(t)?(o=t.size,c=!1):(t=mo(t),o=t.length,c=mo.readOnly),this._firstFragment?(this._firstFragment=!1,a&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=i._threshold),this._compress=a):(a=!1,s=0),r.fin&&(this._firstFragment=!0);let l={[zn]:o,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:c,rsv1:a};Sl(t)?this._state!==di?this.enqueue([this.getBlobData,t,this._compress,l,n]):this.getBlobData(t,this._compress,l,n):this._state!==di?this.enqueue([this.dispatch,t,this._compress,l,n]):this.dispatch(t,this._compress,l,n)}getBlobData(t,r,n,i){this._bufferedBytes+=n[zn],this._state=Rde,t.arrayBuffer().then(s=>{if(this._socket.destroyed){let o=new Error("The socket was closed while the blob was being read");process.nextTick(Gw,this,o,i);return}this._bufferedBytes-=n[zn];let a=mo(s);r?this.dispatch(a,r,n,i):(this._state=di,this.sendFrame(e.frame(a,n),i),this.dequeue())}).catch(s=>{process.nextTick(Lde,this,s,i)})}dispatch(t,r,n,i){if(!r){this.sendFrame(e.frame(t,n),i);return}let s=this._extensions[j7.extensionName];this._bufferedBytes+=n[zn],this._state=Ode,s.compress(t,n.fin,(a,o)=>{if(this._socket.destroyed){let c=new Error("The socket was closed while data was being compressed");Gw(this,c,i);return}this._bufferedBytes-=n[zn],this._state=di,n.readOnly=!1,this.sendFrame(e.frame(o,n),i),this.dequeue()})}dequeue(){for(;this._state===di&&this._queue.length;){let t=this._queue.shift();this._bufferedBytes-=t[3][zn],Reflect.apply(t[0],this,t.slice(1))}}enqueue(t){this._bufferedBytes+=t[3][zn],this._queue.push(t)}sendFrame(t,r){t.length===2?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],r),this._socket.uncork()):this._socket.write(t[0],r)}};q7.exports=Vw;function Gw(e,t,r){typeof r=="function"&&r(t);for(let n=0;n<e._queue.length;n++){let i=e._queue[n],s=i[i.length-1];typeof s=="function"&&s(t)}}function Lde(e,t,r){Gw(e,t,r),e.onerror(t)}});var X7=D((z3e,Y7)=>{"use strict";g();var{kForOnEventAttribute:hd,kListener:Jw}=Cs(),z7=Symbol("kCode"),K7=Symbol("kData"),H7=Symbol("kError"),V7=Symbol("kMessage"),G7=Symbol("kReason"),Al=Symbol("kTarget"),W7=Symbol("kType"),J7=Symbol("kWasClean"),Ts=class{constructor(t){this[Al]=null,this[W7]=t}get target(){return this[Al]}get type(){return this[W7]}};Object.defineProperty(Ts.prototype,"target",{enumerable:!0});Object.defineProperty(Ts.prototype,"type",{enumerable:!0});var go=class extends Ts{constructor(t,r={}){super(t),this[z7]=r.code===void 0?0:r.code,this[G7]=r.reason===void 0?"":r.reason,this[J7]=r.wasClean===void 0?!1:r.wasClean}get code(){return this[z7]}get reason(){return this[G7]}get wasClean(){return this[J7]}};Object.defineProperty(go.prototype,"code",{enumerable:!0});Object.defineProperty(go.prototype,"reason",{enumerable:!0});Object.defineProperty(go.prototype,"wasClean",{enumerable:!0});var Pl=class extends Ts{constructor(t,r={}){super(t),this[H7]=r.error===void 0?null:r.error,this[V7]=r.message===void 0?"":r.message}get error(){return this[H7]}get message(){return this[V7]}};Object.defineProperty(Pl.prototype,"error",{enumerable:!0});Object.defineProperty(Pl.prototype,"message",{enumerable:!0});var gd=class extends Ts{constructor(t,r={}){super(t),this[K7]=r.data===void 0?null:r.data}get data(){return this[K7]}};Object.defineProperty(gd.prototype,"data",{enumerable:!0});var Bde={addEventListener(e,t,r={}){for(let i of this.listeners(e))if(!r[hd]&&i[Jw]===t&&!i[hd])return;let n;if(e==="message")n=function(s,a){let o=new gd("message",{data:a?s:s.toString()});o[Al]=this,Lg(t,this,o)};else if(e==="close")n=function(s,a){let o=new go("close",{code:s,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[Al]=this,Lg(t,this,o)};else if(e==="error")n=function(s){let a=new Pl("error",{error:s,message:s.message});a[Al]=this,Lg(t,this,a)};else if(e==="open")n=function(){let s=new Ts("open");s[Al]=this,Lg(t,this,s)};else return;n[hd]=!!r[hd],n[Jw]=t,r.once?this.once(e,n):this.on(e,n)},removeEventListener(e,t){for(let r of this.listeners(e))if(r[Jw]===t&&!r[hd]){this.removeListener(e,r);break}}};Y7.exports={CloseEvent:go,ErrorEvent:Pl,Event:Ts,EventTarget:Bde,MessageEvent:gd};function Lg(e,t,r){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,r):e.call(t,r)}});var Yw=D((H3e,Q7)=>{"use strict";g();var{tokenChars:yd}=Dl();function Yi(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}function Mde(e){let t=Object.create(null),r=Object.create(null),n=!1,i=!1,s=!1,a,o,c=-1,l=-1,u=-1,p=0;for(;p<e.length;p++)if(l=e.charCodeAt(p),a===void 0)if(u===-1&&yd[l]===1)c===-1&&(c=p);else if(p!==0&&(l===32||l===9))u===-1&&c!==-1&&(u=p);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${p}`);u===-1&&(u=p);let h=e.slice(c,u);l===44?(Yi(t,h,r),r=Object.create(null)):a=h,c=u=-1}else throw new SyntaxError(`Unexpected character at index ${p}`);else if(o===void 0)if(u===-1&&yd[l]===1)c===-1&&(c=p);else if(l===32||l===9)u===-1&&c!==-1&&(u=p);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${p}`);u===-1&&(u=p),Yi(r,e.slice(c,u),!0),l===44&&(Yi(t,a,r),r=Object.create(null),a=void 0),c=u=-1}else if(l===61&&c!==-1&&u===-1)o=e.slice(c,p),c=u=-1;else throw new SyntaxError(`Unexpected character at index ${p}`);else if(i){if(yd[l]!==1)throw new SyntaxError(`Unexpected character at index ${p}`);c===-1?c=p:n||(n=!0),i=!1}else if(s)if(yd[l]===1)c===-1&&(c=p);else if(l===34&&c!==-1)s=!1,u=p;else if(l===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${p}`);else if(l===34&&e.charCodeAt(p-1)===61)s=!0;else if(u===-1&&yd[l]===1)c===-1&&(c=p);else if(c!==-1&&(l===32||l===9))u===-1&&(u=p);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${p}`);u===-1&&(u=p);let h=e.slice(c,u);n&&(h=h.replace(/\\/g,""),n=!1),Yi(r,o,h),l===44&&(Yi(t,a,r),r=Object.create(null),a=void 0),o=void 0,c=u=-1}else throw new SyntaxError(`Unexpected character at index ${p}`);if(c===-1||s||l===32||l===9)throw new SyntaxError("Unexpected end of input");u===-1&&(u=p);let d=e.slice(c,u);return a===void 0?Yi(t,d,r):(o===void 0?Yi(r,d,!0):n?Yi(r,o,d.replace(/\\/g,"")):Yi(r,o,d),Yi(t,a,r)),t}function $de(e){return Object.keys(e).map(t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(n=>[t].concat(Object.keys(n).map(i=>{let s=n[i];return Array.isArray(s)||(s=[s]),s.map(a=>a===!0?i:`${i}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Q7.exports={format:$de,parse:Mde}});var tC=D((J3e,u$)=>{"use strict";g();var jde=require("events"),Ude=require("https"),qde=require("http"),t$=require("net"),zde=require("tls"),{randomBytes:Kde,createHash:Hde}=require("crypto"),{Duplex:G3e,Readable:W3e}=require("stream"),{URL:Xw}=require("url"),ga=md(),Vde=Hw(),Gde=Ww(),{isBlob:Wde}=Dl(),{BINARY_TYPES:Z7,EMPTY_BUFFER:Bg,GUID:Jde,kForOnEventAttribute:Qw,kListener:Yde,kStatusCode:Xde,kWebSocket:ar,NOOP:r$}=Cs(),{EventTarget:{addEventListener:Qde,removeEventListener:Zde}}=X7(),{format:efe,parse:tfe}=Yw(),{toBuffer:rfe}=pd(),nfe=30*1e3,n$=Symbol("kAborted"),Zw=[8,13],As=["CONNECTING","OPEN","CLOSING","CLOSED"],ife=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,Ct=class e extends jde{constructor(t,r,n){super(),this._binaryType=Z7[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Bg,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?r=[]:Array.isArray(r)||(typeof r=="object"&&r!==null?(n=r,r=[]):r=[r]),i$(this,t,r,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(t){Z7.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,r,n){let i=new Vde({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),s=new Gde(t,this._extensions,n.generateMask);this._receiver=i,this._sender=s,this._socket=t,i[ar]=this,s[ar]=this,t[ar]=this,i.on("conclude",ofe),i.on("drain",cfe),i.on("error",lfe),i.on("message",ufe),i.on("ping",pfe),i.on("pong",dfe),s.onerror=ffe,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),r.length>0&&t.unshift(r),t.on("close",o$),t.on("data",$g),t.on("end",c$),t.on("error",l$),this._readyState=e.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[ga.extensionName]&&this._extensions[ga.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(t,r){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){vn(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,r,!this._isServer,n=>{n||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),a$(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(n=t,t=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){eC(this,t,n);return}r===void 0&&(r=!this._isServer),this._sender.ping(t||Bg,r,n)}pong(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(n=t,t=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){eC(this,t,n);return}r===void 0&&(r=!this._isServer),this._sender.pong(t||Bg,r,n)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(n=r,r={}),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){eC(this,t,n);return}let i={binary:typeof t!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[ga.extensionName]||(i.compress=!1),this._sender.send(t||Bg,i,n)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){vn(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(Ct,"CONNECTING",{enumerable:!0,value:As.indexOf("CONNECTING")});Object.defineProperty(Ct.prototype,"CONNECTING",{enumerable:!0,value:As.indexOf("CONNECTING")});Object.defineProperty(Ct,"OPEN",{enumerable:!0,value:As.indexOf("OPEN")});Object.defineProperty(Ct.prototype,"OPEN",{enumerable:!0,value:As.indexOf("OPEN")});Object.defineProperty(Ct,"CLOSING",{enumerable:!0,value:As.indexOf("CLOSING")});Object.defineProperty(Ct.prototype,"CLOSING",{enumerable:!0,value:As.indexOf("CLOSING")});Object.defineProperty(Ct,"CLOSED",{enumerable:!0,value:As.indexOf("CLOSED")});Object.defineProperty(Ct.prototype,"CLOSED",{enumerable:!0,value:As.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(Ct.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach(e=>{Object.defineProperty(Ct.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[Qw])return t[Yde];return null},set(t){for(let r of this.listeners(e))if(r[Qw]){this.removeListener(e,r);break}typeof t=="function"&&this.addEventListener(e,t,{[Qw]:!0})}})});Ct.prototype.addEventListener=Qde;Ct.prototype.removeEventListener=Zde;u$.exports=Ct;function i$(e,t,r,n){let i={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:Zw[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,!Zw.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${Zw.join(", ")})`);let s;if(t instanceof Xw)s=t;else try{s=new Xw(t)}catch{throw new SyntaxError(`Invalid URL: ${t}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),e._url=s.href;let a=s.protocol==="wss:",o=s.protocol==="ws+unix:",c;if(s.protocol!=="ws:"&&!a&&!o?c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:o&&!s.pathname?c="The URL's pathname is empty":s.hash&&(c="The URL contains a fragment identifier"),c){let m=new SyntaxError(c);if(e._redirects===0)throw m;Mg(e,m);return}let l=a?443:80,u=Kde(16).toString("base64"),p=a?Ude.request:qde.request,d=new Set,h;if(i.createConnection=i.createConnection||(a?afe:sfe),i.defaultPort=i.defaultPort||l,i.port=s.port||l,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":u,Connection:"Upgrade",Upgrade:"websocket"},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(h=new ga(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=efe({[ga.extensionName]:h.offer()})),r.length){for(let m of r){if(typeof m!="string"||!ife.test(m)||d.has(m))throw new SyntaxError("An invalid or duplicated subprotocol was specified");d.add(m)}i.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),o){let m=i.path.split(":");i.socketPath=m[0],i.path=m[1]}let f;if(i.followRedirects){if(e._redirects===0){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?i.socketPath:s.host;let m=n&&n.headers;if(n={...n,headers:{}},m)for(let[y,b]of Object.entries(m))n.headers[y.toLowerCase()]=b}else if(e.listenerCount("redirect")===0){let m=o?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:s.host===e._originalHostOrSocketPath;(!m||e._originalSecure&&!a)&&(delete i.headers.authorization,delete i.headers.cookie,m||delete i.headers.host,i.auth=void 0)}i.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),f=e._req=p(i),e._redirects&&e.emit("redirect",e.url,f)}else f=e._req=p(i);i.timeout&&f.on("timeout",()=>{vn(e,f,"Opening handshake has timed out")}),f.on("error",m=>{f===null||f[n$]||(f=e._req=null,Mg(e,m))}),f.on("response",m=>{let y=m.headers.location,b=m.statusCode;if(y&&i.followRedirects&&b>=300&&b<400){if(++e._redirects>i.maxRedirects){vn(e,f,"Maximum redirects exceeded");return}f.abort();let x;try{x=new Xw(y,t)}catch{let v=new SyntaxError(`Invalid URL: ${y}`);Mg(e,v);return}i$(e,x,r,n)}else e.emit("unexpected-response",f,m)||vn(e,f,`Unexpected server response: ${m.statusCode}`)}),f.on("upgrade",(m,y,b)=>{if(e.emit("upgrade",m),e.readyState!==Ct.CONNECTING)return;f=e._req=null;let x=m.headers.upgrade;if(x===void 0||x.toLowerCase()!=="websocket"){vn(e,y,"Invalid Upgrade header");return}let w=Hde("sha1").update(u+Jde).digest("base64");if(m.headers["sec-websocket-accept"]!==w){vn(e,y,"Invalid Sec-WebSocket-Accept header");return}let v=m.headers["sec-websocket-protocol"],C;if(v!==void 0?d.size?d.has(v)||(C="Server sent an invalid subprotocol"):C="Server sent a subprotocol but none was requested":d.size&&(C="Server sent no subprotocol"),C){vn(e,y,C);return}v&&(e._protocol=v);let E=m.headers["sec-websocket-extensions"];if(E!==void 0){if(!h){vn(e,y,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let S;try{S=tfe(E)}catch{vn(e,y,"Invalid Sec-WebSocket-Extensions header");return}let _=Object.keys(S);if(_.length!==1||_[0]!==ga.extensionName){vn(e,y,"Server indicated an extension that was not requested");return}try{h.accept(S[ga.extensionName])}catch{vn(e,y,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[ga.extensionName]=h}e.setSocket(y,b,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(f,e):f.end()}function Mg(e,t){e._readyState=Ct.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function sfe(e){return e.path=e.socketPath,t$.connect(e)}function afe(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=t$.isIP(e.host)?"":e.host),zde.connect(e)}function vn(e,t,r){e._readyState=Ct.CLOSING;let n=new Error(r);Error.captureStackTrace(n,vn),t.setHeader?(t[n$]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(Mg,e,n)):(t.destroy(n),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function eC(e,t,r){if(t){let n=Wde(t)?t.size:rfe(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(r){let n=new Error(`WebSocket is not open: readyState ${e.readyState} (${As[e.readyState]})`);process.nextTick(r,n)}}function ofe(e,t){let r=this[ar];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,r._socket[ar]!==void 0&&(r._socket.removeListener("data",$g),process.nextTick(s$,r._socket),e===1005?r.close():r.close(e,t))}function cfe(){let e=this[ar];e.isPaused||e._socket.resume()}function lfe(e){let t=this[ar];t._socket[ar]!==void 0&&(t._socket.removeListener("data",$g),process.nextTick(s$,t._socket),t.close(e[Xde])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function e$(){this[ar].emitClose()}function ufe(e,t){this[ar].emit("message",e,t)}function pfe(e){let t=this[ar];t._autoPong&&t.pong(e,!this._isServer,r$),t.emit("ping",e)}function dfe(e){this[ar].emit("pong",e)}function s$(e){e.resume()}function ffe(e){let t=this[ar];t.readyState!==Ct.CLOSED&&(t.readyState===Ct.OPEN&&(t._readyState=Ct.CLOSING,a$(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function a$(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),nfe)}function o$(){let e=this[ar];this.removeListener("close",o$),this.removeListener("data",$g),this.removeListener("end",c$),e._readyState=Ct.CLOSING;let t;!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null&&e._receiver.write(t),e._receiver.end(),this[ar]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",e$),e._receiver.on("finish",e$))}function $g(e){this[ar]._receiver.write(e)||this.pause()}function c$(){let e=this[ar];e._readyState=Ct.CLOSING,e._receiver.end(),this.end()}function l$(){let e=this[ar];this.removeListener("error",l$),this.on("error",r$),e&&(e._readyState=Ct.CLOSING,this.destroy())}});var d$=D((X3e,p$)=>{"use strict";g();var{tokenChars:mfe}=Dl();function hfe(e){let t=new Set,r=-1,n=-1,i=0;for(i;i<e.length;i++){let a=e.charCodeAt(i);if(n===-1&&mfe[a]===1)r===-1&&(r=i);else if(i!==0&&(a===32||a===9))n===-1&&r!==-1&&(n=i);else if(a===44){if(r===-1)throw new SyntaxError(`Unexpected character at index ${i}`);n===-1&&(n=i);let o=e.slice(r,n);if(t.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);t.add(o),r=n=-1}else throw new SyntaxError(`Unexpected character at index ${i}`)}if(r===-1||n!==-1)throw new SyntaxError("Unexpected end of input");let s=e.slice(r,i);if(t.has(s))throw new SyntaxError(`The "${s}" subprotocol is duplicated`);return t.add(s),t}p$.exports={parse:hfe}});var x$=D((eRe,b$)=>{"use strict";g();var gfe=require("events"),jg=require("http"),{Duplex:Z3e}=require("stream"),{createHash:yfe}=require("crypto"),f$=Yw(),yo=md(),bfe=d$(),xfe=tC(),{GUID:vfe,kWebSocket:Efe}=Cs(),wfe=/^[+/0-9A-Za-z]{22}==$/,m$=0,h$=1,y$=2,rC=class extends gfe{constructor(t,r){if(super(),t={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:xfe,...t},t.port==null&&!t.server&&!t.noServer||t.port!=null&&(t.server||t.noServer)||t.server&&t.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(t.port!=null?(this._server=jg.createServer((n,i)=>{let s=jg.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s)}),this._server.listen(t.port,t.host,t.backlog,r)):t.server&&(this._server=t.server),this._server){let n=this.emit.bind(this,"connection");this._removeListeners=Cfe(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,a)=>{this.handleUpgrade(i,s,a,n)}})}t.perMessageDeflate===!0&&(t.perMessageDeflate={}),t.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=t,this._state=m$}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(t){if(this._state===y$){t&&this.once("close",()=>{t(new Error("The server is not running"))}),process.nextTick(bd,this);return}if(t&&this.once("close",t),this._state!==h$)if(this._state=h$,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(bd,this):process.nextTick(bd,this);else{let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{bd(this)})}}shouldHandle(t){if(this.options.path){let r=t.url.indexOf("?");if((r!==-1?t.url.slice(0,r):t.url)!==this.options.path)return!1}return!0}handleUpgrade(t,r,n,i){r.on("error",g$);let s=t.headers["sec-websocket-key"],a=t.headers.upgrade,o=+t.headers["sec-websocket-version"];if(t.method!=="GET"){bo(this,t,r,405,"Invalid HTTP method");return}if(a===void 0||a.toLowerCase()!=="websocket"){bo(this,t,r,400,"Invalid Upgrade header");return}if(s===void 0||!wfe.test(s)){bo(this,t,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==8&&o!==13){bo(this,t,r,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(t)){xd(r,400);return}let c=t.headers["sec-websocket-protocol"],l=new Set;if(c!==void 0)try{l=bfe.parse(c)}catch{bo(this,t,r,400,"Invalid Sec-WebSocket-Protocol header");return}let u=t.headers["sec-websocket-extensions"],p={};if(this.options.perMessageDeflate&&u!==void 0){let d=new yo(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let h=f$.parse(u);h[yo.extensionName]&&(d.accept(h[yo.extensionName]),p[yo.extensionName]=d)}catch{bo(this,t,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let d={origin:t.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(t.socket.authorized||t.socket.encrypted),req:t};if(this.options.verifyClient.length===2){this.options.verifyClient(d,(h,f,m,y)=>{if(!h)return xd(r,f||401,m,y);this.completeUpgrade(p,s,l,t,r,n,i)});return}if(!this.options.verifyClient(d))return xd(r,401)}this.completeUpgrade(p,s,l,t,r,n,i)}completeUpgrade(t,r,n,i,s,a,o){if(!s.readable||!s.writable)return s.destroy();if(s[Efe])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>m$)return xd(s,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${yfe("sha1").update(r+vfe).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(n.size){let p=this.options.handleProtocols?this.options.handleProtocols(n,i):n.values().next().value;p&&(l.push(`Sec-WebSocket-Protocol: ${p}`),u._protocol=p)}if(t[yo.extensionName]){let p=t[yo.extensionName].params,d=f$.format({[yo.extensionName]:[p]});l.push(`Sec-WebSocket-Extensions: ${d}`),u._extensions=t}this.emit("headers",l,i),s.write(l.concat(`\r
|
|
1901
1901
|
`).join(`\r
|
|
@@ -1903,7 +1903,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
|
|
|
1903
1903
|
`+Object.keys(n).map(i=>`${i}: ${n[i]}`).join(`\r
|
|
1904
1904
|
`)+`\r
|
|
1905
1905
|
\r
|
|
1906
|
-
`+r)}function bo(e,t,r,n,i){if(e.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,bo),e.emit("wsClientError",s,r,t)}else xd(r,n,i)}});var S$=D(iC=>{"use strict";g();iC.parse=Ofe;iC.serialize=Rfe;var Pfe=Object.prototype.toString,_fe=Object.prototype.hasOwnProperty,Ife=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,kfe=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,Nfe=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Ffe=/^[\u0020-\u003A\u003D-\u007E]*$/;function Ofe(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var i=t&&t.decode||Lfe,s=0,a=0,o=0;do{if(a=e.indexOf("=",s),a===-1)break;if(o=e.indexOf(";",s),o===-1)o=n;else if(a>o){s=e.lastIndexOf(";",a-1)+1;continue}var c=C$(e,s,a),l=D$(e,a,c),u=e.slice(c,l);if(!_fe.call(r,u)){var p=C$(e,a+1,o),d=D$(e,o,p);e.charCodeAt(p)===34&&e.charCodeAt(d-1)===34&&(p++,d--);var h=e.slice(p,d);r[u]=Mfe(h,i)}s=o+1}while(s<n);return r}function C$(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function D$(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function Rfe(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!Ife.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!kfe.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(!r)return s;if(r.maxAge!=null){var a=Math.floor(r.maxAge);if(!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+a}if(r.domain){if(!Nfe.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Ffe.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var o=r.expires;if(!Bfe(o)||isNaN(o.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+o.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Lfe(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Bfe(e){return Pfe.call(e)==="[object Date]"}function Mfe(e,t){try{return t(e)}catch{return e}}});var _$=D((pRe,_l)=>{"use strict";g();var $fe=S$(),jfe=CE();_l.exports=Ufe;_l.exports.JSONCookie=T$;_l.exports.JSONCookies=sC;_l.exports.signedCookie=A$;_l.exports.signedCookies=P$;function Ufe(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(i,s,a){if(i.cookies)return a();var o=i.headers.cookie;if(i.secret=r[0],i.cookies=Object.create(null),i.signedCookies=Object.create(null),!o)return a();i.cookies=$fe.parse(o,t),r.length!==0&&(i.signedCookies=P$(i.cookies,r),i.signedCookies=sC(i.signedCookies)),i.cookies=sC(i.cookies),a()}}function T$(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function sC(e){for(var t=Object.keys(e),r,n,i=0;i<t.length;i++)r=t[i],n=T$(e[r]),n&&(e[r]=n);return e}function A$(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],n=0;n<r.length;n++){var i=jfe.unsign(e.slice(2),r[n]);if(i!==!1)return i}return!1}}function P$(e,t){for(var r=Object.keys(e),n,i,s=Object.create(null),a,o=0;o<r.length;o++)i=r[o],a=e[i],n=A$(a,t),a!==n&&(s[i]=n,delete e[i]);return s}});var Gfe={};Vg(Gfe,{default:()=>Vfe});module.exports=X$(Gfe);g();g();try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="
|
|
1906
|
+
`+r)}function bo(e,t,r,n,i){if(e.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,bo),e.emit("wsClientError",s,r,t)}else xd(r,n,i)}});var S$=D(iC=>{"use strict";g();iC.parse=Ofe;iC.serialize=Rfe;var Pfe=Object.prototype.toString,_fe=Object.prototype.hasOwnProperty,Ife=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,kfe=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,Nfe=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Ffe=/^[\u0020-\u003A\u003D-\u007E]*$/;function Ofe(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var i=t&&t.decode||Lfe,s=0,a=0,o=0;do{if(a=e.indexOf("=",s),a===-1)break;if(o=e.indexOf(";",s),o===-1)o=n;else if(a>o){s=e.lastIndexOf(";",a-1)+1;continue}var c=C$(e,s,a),l=D$(e,a,c),u=e.slice(c,l);if(!_fe.call(r,u)){var p=C$(e,a+1,o),d=D$(e,o,p);e.charCodeAt(p)===34&&e.charCodeAt(d-1)===34&&(p++,d--);var h=e.slice(p,d);r[u]=Mfe(h,i)}s=o+1}while(s<n);return r}function C$(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function D$(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function Rfe(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!Ife.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!kfe.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(!r)return s;if(r.maxAge!=null){var a=Math.floor(r.maxAge);if(!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+a}if(r.domain){if(!Nfe.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Ffe.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var o=r.expires;if(!Bfe(o)||isNaN(o.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+o.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Lfe(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Bfe(e){return Pfe.call(e)==="[object Date]"}function Mfe(e,t){try{return t(e)}catch{return e}}});var _$=D((pRe,_l)=>{"use strict";g();var $fe=S$(),jfe=CE();_l.exports=Ufe;_l.exports.JSONCookie=T$;_l.exports.JSONCookies=sC;_l.exports.signedCookie=A$;_l.exports.signedCookies=P$;function Ufe(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(i,s,a){if(i.cookies)return a();var o=i.headers.cookie;if(i.secret=r[0],i.cookies=Object.create(null),i.signedCookies=Object.create(null),!o)return a();i.cookies=$fe.parse(o,t),r.length!==0&&(i.signedCookies=P$(i.cookies,r),i.signedCookies=sC(i.signedCookies)),i.cookies=sC(i.cookies),a()}}function T$(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function sC(e){for(var t=Object.keys(e),r,n,i=0;i<t.length;i++)r=t[i],n=T$(e[r]),n&&(e[r]=n);return e}function A$(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],n=0;n<r.length;n++){var i=jfe.unsign(e.slice(2),r[n]);if(i!==!1)return i}return!1}}function P$(e,t){for(var r=Object.keys(e),n,i,s=Object.create(null),a,o=0;o<r.length;o++)i=r[o],a=e[i],n=A$(a,t),a!==n&&(s[i]=n,delete e[i]);return s}});var Gfe={};Vg(Gfe,{default:()=>Vfe});module.exports=X$(Gfe);g();g();try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="993670f4-6d43-44c6-b16f-8fb7f6904e46",e._sentryDebugIdIdentifier="sentry-dbid-993670f4-6d43-44c6-b16f-8fb7f6904e46")}catch{}g();var L$=require("../core/index.cjs"),B$=require("../node/index.cjs"),M$=require("../server/index.cjs"),$$=K(pC(),1);g();g();var Nm=require("fs/promises");Dd();mn();Sc();Wt();var wt=K(yt(),1),Fc=require("path");kn();ni();Ni();vr();Ec();var _Y="https://cdn.builder.io",H8=async(e,t)=>{console.log(""),st((0,wt.bgCyan)((0,wt.bold)((0,wt.white)(" figma migrate ")))+" "+(0,wt.dim)(He));let{builderPrivateKey:r,builderPublicKey:n}=await It(e,t,{forceSpaceId:t.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await Oe("figma publish started",{spaceId:n});let i=await $a(e);if(i.length>0){await Oe("figma migrate with existing files",{spaceId:n}),q.warning(`${(0,wt.yellow)("This repo already has figma mappings in:")}
|
|
1907
1907
|
|
|
1908
1908
|
${i.map(l=>` - ${(0,Fc.relative)(e.getAppRootDir(),l)}`).join(`
|
|
1909
1909
|
`)}
|
|
@@ -3607,15 +3607,15 @@ This component has the following variants:
|
|
|
3607
3607
|
=== Components Before Report Generation ===`),c.forEach(l=>{console.log(`Component "${l.name}": node_id=${l.node_id}, key=${l.key}`)}),console.log(`=== End Components ===
|
|
3608
3608
|
`),await Promise.all(c.map(l=>QY(l,a))),console.log(`
|
|
3609
3609
|
Reports generated in: ${a}`),console.log(`Total components processed: ${o.length}`),o.length===0&&console.log("No components were found."),console.log(`
|
|
3610
|
-
DONE`)};var nN=async(e,t,r)=>{if(t==="migrate")await H8(e,r);else if(t==="publish"||t==="p")await B8(e,r);else if(t==="add"||t==="generate"||t==="gen"||t==="g")await Y8(e,r);else if(t==="report")await rN(e,r);else if(t==="auth"){console.log(""),st((0,Rn.bgCyan)((0,Rn.bold)((0,Rn.white)(" figma auth ")))+" "+(0,Rn.dim)(He));let{builderPublicKey:n}=await It(e,r,{figmaAuth:!0,builderPrivateKey:!0,builderPublicKey:!0,force:!0});await Oe("figma auth",{spaceId:n}),Kt((0,Rn.bgGreen)((0,Rn.bold)((0,Rn.white)(" Done! \u{1F389} "))))}else t==="help"&&ai(r._[2])};var j$=K(require("@amplitude/analytics-node"),1);Wt();b0();g();function j0(e,t){return{cwd:e,command:t[0],snippetId:t[1],path:t[2]}}Tc();kn();ni();var aC=K(require("@sentry/node"),1);Nc();_m();g();Wt();var En=require("child_process"),Ug=K(TB(),1),k$=K(require("http"),1);var N$=K(ZM(),1),F$=K(require("os"),1),sn=K(yt(),1);vc();mn();kn();ni();_0();g();var Wi=require("fs"),Ag=require("path"),H9=K(U9(),1),V9=K(fy(),1);xb();Pr();yb();g();xt();An();Vn();async function z9(e,t,r,n,i){try{let s={content:r,filePath:t,fileName:e.basename(t),outcome:"no-update"},a=xe(e,r);if(e.debug(`Source file statements: ${a.statements.length}`),a.statements.length===1){let p=a.statements[0];if(e.ts.isExpressionStatement(p)&&e.ts.isBinaryExpression(p.expression)&&Tg(e,p.expression)&&e.ts.isFunctionExpression(p.expression.right)){let d=p.expression.right;if(e.ts.isBlock(d.body)&&d.body.statements.length>0){let h=d.body.statements.find(f=>e.ts.isVariableStatement(f)&&f.declarationList.declarations.some(m=>e.ts.isVariableDeclaration(m)&&e.ts.isIdentifier(m.name)&&m.name.text==="config"&&m.initializer&&e.ts.isObjectLiteralExpression(m.initializer)));if(h&&e.ts.isVariableStatement(h)){let f=h.declarationList.declarations.find(m=>e.ts.isVariableDeclaration(m)&&e.ts.isIdentifier(m.name)&&m.name.text==="config");if(f&&f.initializer&&e.ts.isObjectLiteralExpression(f.initializer)){let m=Gi(e,f.initializer,n);if(m){let y=e.ts.factory.updateVariableDeclaration(f,f.name,f.exclamationToken,f.type,m),b=[...h.declarationList.declarations],x=b.findIndex(w=>e.ts.isVariableDeclaration(w)&&e.ts.isIdentifier(w.name)&&w.name.text==="config");if(x>=0){b[x]=y;let w=e.ts.factory.updateVariableStatement(h,h.modifiers,e.ts.factory.updateVariableDeclarationList(h.declarationList,b)),v=[...d.body.statements],C=v.findIndex(E=>e.ts.isVariableStatement(E)&&E.declarationList.declarations.some(S=>e.ts.isVariableDeclaration(S)&&e.ts.isIdentifier(S.name)&&S.name.text==="config"));if(C>=0){v[C]=w;let E=e.ts.factory.updateBlock(d.body,v),S=e.ts.factory.updateFunctionExpression(d,d.modifiers,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,E),_=e.ts.factory.updateBinaryExpression(p.expression,p.expression.left,p.expression.operatorToken,S),N=e.ts.factory.updateExpressionStatement(p,_);return a=e.ts.factory.updateSourceFile(a,[N]),a=be(e,a,{namedImports:[n],importPath:i}),s.content=Le(e,a),s.outcome="added",s}}}}}}}}a.statements.forEach((p,d)=>{if(e.ts.isExportAssignment(p))e.debug(`Statement ${d} is an export assignment`),e.ts.isFunctionExpression(p.expression)?e.debug(" Export is a function expression"):e.ts.isArrowFunction(p.expression)?e.debug(" Export is an arrow function"):e.ts.isObjectLiteralExpression(p.expression)?e.debug(" Export is an object literal"):(e.debug(` Export is of kind: ${p.expression.kind}`),(p.expression.kind===e.ts.SyntaxKind.FunctionExpression||p.expression.kind===234)&&e.debug(" Export is a function declaration"));else if(e.ts.isExpressionStatement(p)&&e.ts.isBinaryExpression(p.expression)){let h=p.expression;e.debug(`Statement ${d} is a binary expression`),Tg(e,h)&&(e.debug(" This is a module.exports assignment"),e.ts.isFunctionExpression(h.right)?e.debug(" Right side is a function expression"):e.ts.isArrowFunction(h.right)?(e.debug(" Right side is an arrow function"),e.ts.isParenthesizedExpression(h.right.body)?(e.debug(" Arrow function body is a parenthesized expression"),e.ts.isObjectLiteralExpression(h.right.body.expression)&&e.debug(" Parenthesized expression contains an object literal")):e.ts.isObjectLiteralExpression(h.right.body)?e.debug(" Arrow function body is an object literal"):e.debug(` Arrow function body is of kind: ${h.right.body.kind}`)):e.ts.isObjectLiteralExpression(h.right)?e.debug(" Right side is an object literal"):e.debug(` Right side is of kind: ${h.right.kind}`))}else e.ts.isFunctionDeclaration(p)&&p.modifiers&&p.modifiers.some(f=>f.kind===e.ts.SyntaxKind.ExportKeyword)&&p.modifiers.some(f=>f.kind===e.ts.SyntaxKind.DefaultKeyword)&&e.debug(`Statement ${d} is an export default function declaration`)});let o=a.statements.some(p=>{if(e.ts.isImportDeclaration(p)){let d=p.moduleSpecifier;if(e.ts.isStringLiteral(d)&&d.text==="@builder.io/webpack-plugin-jsx-loc")return!0}return!1}),c=!1;for(let p of a.statements){if(e.ts.isExportAssignment(p)&&!p.isExportEquals&&e.ts.isObjectLiteralExpression(p.expression)){let d=p.expression.properties.find(h=>e.ts.isPropertyAssignment(h)&&Fe(e,h)==="plugins");if(d&&e.ts.isPropertyAssignment(d)&&e.ts.isArrayLiteralExpression(d.initializer)&&(c=d.initializer.elements.some(h=>e.ts.isNewExpression(h)&&e.ts.isIdentifier(h.expression)&&h.expression.text===n),c))break}if(e.ts.isExpressionStatement(p)&&e.ts.isBinaryExpression(p.expression)){let d=p.expression;if(Tg(e,d)){let h=d.right;if(e.ts.isObjectLiteralExpression(h)){let f=h.properties.find(m=>e.ts.isPropertyAssignment(m)&&Fe(e,m)==="plugins");if(f&&e.ts.isPropertyAssignment(f)&&e.ts.isArrayLiteralExpression(f.initializer)&&(c=f.initializer.elements.some(m=>e.ts.isNewExpression(m)&&e.ts.isIdentifier(m.expression)&&m.expression.text===n),c))break}}}}if(c&&o)return s.outcome="already-exists",s;let l=!1,u=[];for(let p=0;p<a.statements.length;p++){let d=a.statements[p];if(e.ts.isFunctionDeclaration(d)&&d.modifiers&&d.modifiers.some(f=>f.kind===e.ts.SyntaxKind.ExportKeyword)&&d.modifiers.some(f=>f.kind===e.ts.SyntaxKind.DefaultKeyword)&&d.body){let f=d.body.statements.findIndex(m=>e.ts.isReturnStatement(m));if(f>=0){let m=d.body.statements[f];if(m.expression&&e.ts.isObjectLiteralExpression(m.expression)){let y=Gi(e,m.expression,n);if(y){let b=[...d.body.statements];b[f]=e.ts.factory.updateReturnStatement(m,y);let x=e.ts.factory.updateBlock(d.body,b),w=e.ts.factory.updateFunctionDeclaration(d,d.modifiers,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,x);u.push(w),l=!0;continue}}}}if(e.ts.isExportAssignment(d)&&!d.isExportEquals){if(e.ts.isObjectLiteralExpression(d.expression)){let h=Gi(e,d.expression,n);if(h){let f=e.ts.factory.updateExportAssignment(d,d.modifiers,h);u.push(f),l=!0;continue}}else if(e.ts.isFunctionExpression(d.expression)||e.ts.isArrowFunction(d.expression)||d.expression.kind===e.ts.SyntaxKind.FunctionExpression){if(e.debug(`Processing export default function case (kind=${d.expression.kind})`),d.expression.kind===e.ts.SyntaxKind.FunctionExpression){let f=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(n),void 0,[])]),m=e.ts.factory.createPropertyAssignment("plugins",f),y=e.ts.factory.createObjectLiteralExpression([m],!0),b=e.ts.factory.createReturnStatement(y),x=e.ts.factory.createBlock([b],!0),w=e.ts.factory.createIdentifier("env"),v=e.ts.factory.createParameterDeclaration(void 0,void 0,w,void 0,void 0,void 0),C=e.ts.factory.createFunctionExpression(void 0,void 0,void 0,[],[v],void 0,x),E=e.ts.factory.updateExportAssignment(d,d.modifiers,C);u.push(E),l=!0;continue}let h=q9(e,d.expression,n);if(h){let f=e.ts.factory.updateExportAssignment(d,d.modifiers,h);u.push(f),l=!0;continue}}}if(e.ts.isExpressionStatement(d)&&e.ts.isBinaryExpression(d.expression)){let h=d.expression;if(Tg(e,h)){let f=h.right;if(e.ts.isObjectLiteralExpression(f)){let m=Gi(e,f,n);if(m){let y=e.ts.factory.updateBinaryExpression(h,h.left,h.operatorToken,m),b=e.ts.factory.updateExpressionStatement(d,y);u.push(b),l=!0;continue}}else if(e.ts.isFunctionExpression(f)||e.ts.isArrowFunction(f)){let m=q9(e,f,n);if(!m&&e.ts.isArrowFunction(f)&&e.ts.isParenthesizedExpression(f.body)&&e.ts.isObjectLiteralExpression(f.body.expression)&&f.body.expression.properties.length===0){let y=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(n),void 0,[])]),b=e.ts.factory.createPropertyAssignment("plugins",y),x=e.ts.factory.createObjectLiteralExpression([b],!0),w=e.ts.factory.updateParenthesizedExpression(f.body,x);m=e.ts.factory.updateArrowFunction(f,f.modifiers,f.typeParameters,f.parameters,f.type,f.equalsGreaterThanToken,w)}if(m){let y=e.ts.factory.updateBinaryExpression(h,h.left,h.operatorToken,m),b=e.ts.factory.updateExpressionStatement(d,y);u.push(b),l=!0;continue}}}}u.push(d)}return l&&(a=e.ts.factory.updateSourceFile(a,u),a=be(e,a,{namedImports:[n],importPath:i}),s.content=Le(e,a),s.outcome="added"),s}catch(s){throw e.Sentry?.captureException(s,{extra:{configFilePath:t,configContent:r},level:"warning"}),s}}function Tg(e,t){if(t.operatorToken.kind!==e.ts.SyntaxKind.EqualsToken)return!1;let r=t.left;if(!e.ts.isPropertyAccessExpression(r))return!1;let n=r.expression,i=r.name;return e.ts.isIdentifier(n)&&n.text==="module"&&e.ts.isIdentifier(i)&&i.text==="exports"}function Wpe(e,t){return t.kind===e.ts.SyntaxKind.FunctionExpression}function Jpe(e,t){return t.kind===e.ts.SyntaxKind.ArrowFunction}function q9(e,t,r){if(e.debug(`updateConfigFunction called with node kind: ${t.kind}`),Wpe(e,t)&&e.ts.isBlock(t.body)){e.debug("Function expression with block detected");let n=t.body.statements.findIndex(c=>e.ts.isReturnStatement(c));if(n>=0){let c=t.body.statements[n];if(c.expression&&e.ts.isObjectLiteralExpression(c.expression)){let l=Gi(e,c.expression,r);if(l){let u=[...t.body.statements];u[n]=e.ts.factory.updateReturnStatement(c,l);let p=e.ts.factory.updateBlock(t.body,u);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,p)}}else if(c.expression&&e.ts.isIdentifier(c.expression)){let l=c.expression.text,u=!1,p=[...t.body.statements];for(let f=0;f<p.length;f++){let m=p[f];if(e.ts.isVariableStatement(m)){let y=m.declarationList.declarations;for(let b=0;b<y.length;b++){let x=y[b];if(e.ts.isIdentifier(x.name)&&x.name.text===l&&x.initializer&&e.ts.isObjectLiteralExpression(x.initializer)){let w=Gi(e,x.initializer,r);if(w){let v=[...y];v[b]=e.ts.factory.updateVariableDeclaration(x,x.name,x.exclamationToken,x.type,w),p[f]=e.ts.factory.updateVariableStatement(m,m.modifiers,e.ts.factory.updateVariableDeclarationList(m.declarationList,v)),u=!0;break}}}}if(e.ts.isExpressionStatement(m)&&e.ts.isBinaryExpression(m.expression)&&m.expression.operatorToken.kind===e.ts.SyntaxKind.EqualsToken){if(e.ts.isIdentifier(m.expression.left)&&m.expression.left.text===l&&e.ts.isObjectLiteralExpression(m.expression.right)){let y=Gi(e,m.expression.right,r);if(y){p[f]=e.ts.factory.updateExpressionStatement(m,e.ts.factory.updateBinaryExpression(m.expression,m.expression.left,m.expression.operatorToken,y)),u=!0;break}}if(e.ts.isPropertyAccessExpression(m.expression.left)&&e.ts.isIdentifier(m.expression.left.expression)&&m.expression.left.expression.text===l&&e.ts.isIdentifier(m.expression.left.name)&&m.expression.left.name.text==="plugins"&&e.ts.isArrayLiteralExpression(m.expression.right)){let y=e.ts.factory.updateArrayLiteralExpression(m.expression.right,[...m.expression.right.elements,e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]);p[f]=e.ts.factory.updateExpressionStatement(m,e.ts.factory.updateBinaryExpression(m.expression,m.expression.left,m.expression.operatorToken,y)),u=!0;break}}}if(u){let f=e.ts.factory.updateBlock(t.body,p);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,f)}let d=e.ts.factory.createExpressionStatement(e.ts.factory.createBinaryExpression(e.ts.factory.createPropertyAccessExpression(e.ts.factory.createIdentifier(l),e.ts.factory.createIdentifier("plugins")),e.ts.factory.createToken(e.ts.SyntaxKind.EqualsToken),e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])],!0)));p.splice(n,0,d);let h=e.ts.factory.updateBlock(t.body,p);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,h)}}e.debug("Creating a default implementation as last resort");let i=[...t.body.statements],s=e.ts.factory.createVariableStatement(void 0,e.ts.factory.createVariableDeclarationList([e.ts.factory.createVariableDeclaration(e.ts.factory.createIdentifier("config"),void 0,void 0,e.ts.factory.createObjectLiteralExpression([e.ts.factory.createPropertyAssignment("plugins",e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])],!0))],!0))],e.ts.NodeFlags.Const)),a=e.ts.factory.createReturnStatement(e.ts.factory.createIdentifier("config"));i.unshift(s),i.some(c=>e.ts.isReturnStatement(c))||i.push(a);let o=e.ts.factory.updateBlock(t.body,i);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,o)}else if(Jpe(e,t)){if(e.debug("Arrow function detected"),e.ts.isBlock(t.body)){let a=t.body.statements.findIndex(o=>e.ts.isReturnStatement(o));if(a>=0){let o=t.body.statements[a];if(o.expression&&e.ts.isObjectLiteralExpression(o.expression)){let c=Gi(e,o.expression,r);if(c){let l=[...t.body.statements];l[a]=e.ts.factory.updateReturnStatement(o,c);let u=e.ts.factory.updateBlock(t.body,l);return e.ts.factory.updateArrowFunction(t,t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,u)}}}}if(e.ts.isParenthesizedExpression(t.body)&&e.ts.isObjectLiteralExpression(t.body.expression)){let a=Gi(e,t.body.expression,r);if(a){let o=e.ts.factory.updateParenthesizedExpression(t.body,a);return e.ts.factory.updateArrowFunction(t,t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,o)}}if(e.ts.isObjectLiteralExpression(t.body)){let a=Gi(e,t.body,r);if(a)return e.ts.factory.updateArrowFunction(t,t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,a)}let n=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]),i=e.ts.factory.createPropertyAssignment("plugins",n),s=e.ts.factory.createObjectLiteralExpression([i],!0);return e.ts.factory.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,s)}}function Gi(e,t,r){let n=[...t.properties],i=-1,s=n.find((a,o)=>e.ts.isPropertyAssignment(a)&&(e.ts.isIdentifier(a.name)&&a.name.text==="plugins"||e.ts.isStringLiteral(a.name)&&a.name.text==="plugins")?(i=o,!0):!1);if(e.debug(`Plugins property found: ${!!s}`),s&&e.debug(`Plugins property type: ${s.initializer.kind}`),s&&i>=0){if(e.ts.isArrayLiteralExpression(s.initializer)&&s.initializer.elements.some(a=>{if(e.ts.isNewExpression(a)){let o=a.expression;return e.ts.isIdentifier(o)&&o.text===r}return!1}))return;if(e.ts.isArrayLiteralExpression(s.initializer)){let a=!1;if(n.forEach(u=>{e.ts.isPropertyAssignment(u)&&(e.ts.isIdentifier(u.name)&&u.name.text==="plugins"||e.ts.isStringLiteral(u.name)&&u.name.text==="plugins")&&e.ts.isCallExpression(u.initializer)&&e.ts.isPropertyAccessExpression(u.initializer.expression)&&e.ts.isArrayLiteralExpression(u.initializer.expression.expression)&&e.ts.isIdentifier(u.initializer.expression.name)&&u.initializer.expression.name.text==="filter"&&(a=!0)}),a){e.debug("Found plugins.filter(Boolean) pattern");let u=e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[]),p=e.ts.factory.createArrayLiteralExpression([...s.initializer.elements,u],!0);return n[i]=e.ts.factory.updatePropertyAssignment(s,s.name,p),e.ts.factory.updateObjectLiteralExpression(t,n)}let o=[...s.initializer.elements],c=e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[]);o.push(c);let l=e.ts.factory.updateArrayLiteralExpression(s.initializer,o);return n[i]=e.ts.factory.updatePropertyAssignment(s,s.name,l),e.ts.factory.updateObjectLiteralExpression(t,n)}else{let a=e.ts.factory.createSpreadElement(s.initializer),o=e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[]),c=e.ts.factory.createArrayLiteralExpression([a,o],!0);return n[i]=e.ts.factory.updatePropertyAssignment(s,s.name,c),e.ts.factory.updateObjectLiteralExpression(t,n)}}else{let a=-1,o=n.find((u,p)=>e.ts.isPropertyAssignment(u)&&(e.ts.isIdentifier(u.name)&&u.name.text==="module"||e.ts.isStringLiteral(u.name)&&u.name.text==="module")?(a=p,!0):!1);if(o&&a>=0&&e.ts.isObjectLiteralExpression(o.initializer)){let u=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]),p=e.ts.factory.createPropertyAssignment("plugins",u);return e.ts.factory.updateObjectLiteralExpression(t,[...n,p])}let c=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]),l=e.ts.factory.createPropertyAssignment("plugins",c);return e.ts.factory.updateObjectLiteralExpression(t,[...n,l])}}function Ype(e=process.cwd()){try{if((0,Wi.existsSync)((0,Ag.join)(e,"pnpm-lock.yaml")))return"pnpm";if((0,Wi.existsSync)((0,Ag.join)(e,"yarn.lock")))return"yarn";if((0,Wi.existsSync)((0,Ag.join)(e,"package-lock.json")))return"npm"}catch(t){console.error("Error detecting package manager from lock files:",t)}try{let t=(0,V9.default)();if(t?.name)return t.name}catch(t){console.error("Error detecting package manager:",t)}return"npm"}function K9(e,t,r,n=!1){let i=[];e==="yarn"?(i.push("add"),n&&i.push("--dev")):(i.push("install"),n&&i.push("--save-dev")),r.forEach(a=>{i.push(a)});let s=(0,H9.default)(e,i,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1",NODE_ENV:"development"},cwd:t});return{command:new Promise(a=>{s.on("close",o=>{a(o===0)})})}}var G9=async(e,t)=>{let r=t.skipInstallation===!0||process.env.SKIP_INSTALL==="true";if(r)return console.log(`
|
|
3610
|
+
DONE`)};var nN=async(e,t,r)=>{if(t==="migrate")await H8(e,r);else if(t==="publish"||t==="p")await B8(e,r);else if(t==="add"||t==="generate"||t==="gen"||t==="g")await Y8(e,r);else if(t==="report")await rN(e,r);else if(t==="auth"){console.log(""),st((0,Rn.bgCyan)((0,Rn.bold)((0,Rn.white)(" figma auth ")))+" "+(0,Rn.dim)(He));let{builderPublicKey:n}=await It(e,r,{figmaAuth:!0,builderPrivateKey:!0,builderPublicKey:!0,force:!0});await Oe("figma auth",{spaceId:n}),Kt((0,Rn.bgGreen)((0,Rn.bold)((0,Rn.white)(" Done! \u{1F389} "))))}else t==="help"&&ai(r._[2])};var j$=K(require("@amplitude/analytics-node"),1);Wt();b0();g();function j0(e,t){return{cwd:e,command:t[0],snippetId:t[1],path:t[2]}}Tc();kn();ni();var aC=K(require("@sentry/node"),1);Nc();_m();g();Wt();var En=require("child_process"),Ug=K(TB(),1),k$=K(require("http"),1);var N$=K(Z9(),1),F$=K(require("os"),1),sn=K(yt(),1);vc();mn();kn();ni();_0();g();var Wi=require("fs"),Ag=require("path"),HM=K(UM(),1),VM=K(fy(),1);xb();Pr();yb();g();xt();An();Vn();async function zM(e,t,r,n,i){try{let s={content:r,filePath:t,fileName:e.basename(t),outcome:"no-update"},a=xe(e,r);if(e.debug(`Source file statements: ${a.statements.length}`),a.statements.length===1){let p=a.statements[0];if(e.ts.isExpressionStatement(p)&&e.ts.isBinaryExpression(p.expression)&&Tg(e,p.expression)&&e.ts.isFunctionExpression(p.expression.right)){let d=p.expression.right;if(e.ts.isBlock(d.body)&&d.body.statements.length>0){let h=d.body.statements.find(f=>e.ts.isVariableStatement(f)&&f.declarationList.declarations.some(m=>e.ts.isVariableDeclaration(m)&&e.ts.isIdentifier(m.name)&&m.name.text==="config"&&m.initializer&&e.ts.isObjectLiteralExpression(m.initializer)));if(h&&e.ts.isVariableStatement(h)){let f=h.declarationList.declarations.find(m=>e.ts.isVariableDeclaration(m)&&e.ts.isIdentifier(m.name)&&m.name.text==="config");if(f&&f.initializer&&e.ts.isObjectLiteralExpression(f.initializer)){let m=Gi(e,f.initializer,n);if(m){let y=e.ts.factory.updateVariableDeclaration(f,f.name,f.exclamationToken,f.type,m),b=[...h.declarationList.declarations],x=b.findIndex(w=>e.ts.isVariableDeclaration(w)&&e.ts.isIdentifier(w.name)&&w.name.text==="config");if(x>=0){b[x]=y;let w=e.ts.factory.updateVariableStatement(h,h.modifiers,e.ts.factory.updateVariableDeclarationList(h.declarationList,b)),v=[...d.body.statements],C=v.findIndex(E=>e.ts.isVariableStatement(E)&&E.declarationList.declarations.some(S=>e.ts.isVariableDeclaration(S)&&e.ts.isIdentifier(S.name)&&S.name.text==="config"));if(C>=0){v[C]=w;let E=e.ts.factory.updateBlock(d.body,v),S=e.ts.factory.updateFunctionExpression(d,d.modifiers,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,E),_=e.ts.factory.updateBinaryExpression(p.expression,p.expression.left,p.expression.operatorToken,S),N=e.ts.factory.updateExpressionStatement(p,_);return a=e.ts.factory.updateSourceFile(a,[N]),a=be(e,a,{namedImports:[n],importPath:i}),s.content=Le(e,a),s.outcome="added",s}}}}}}}}a.statements.forEach((p,d)=>{if(e.ts.isExportAssignment(p))e.debug(`Statement ${d} is an export assignment`),e.ts.isFunctionExpression(p.expression)?e.debug(" Export is a function expression"):e.ts.isArrowFunction(p.expression)?e.debug(" Export is an arrow function"):e.ts.isObjectLiteralExpression(p.expression)?e.debug(" Export is an object literal"):(e.debug(` Export is of kind: ${p.expression.kind}`),(p.expression.kind===e.ts.SyntaxKind.FunctionExpression||p.expression.kind===234)&&e.debug(" Export is a function declaration"));else if(e.ts.isExpressionStatement(p)&&e.ts.isBinaryExpression(p.expression)){let h=p.expression;e.debug(`Statement ${d} is a binary expression`),Tg(e,h)&&(e.debug(" This is a module.exports assignment"),e.ts.isFunctionExpression(h.right)?e.debug(" Right side is a function expression"):e.ts.isArrowFunction(h.right)?(e.debug(" Right side is an arrow function"),e.ts.isParenthesizedExpression(h.right.body)?(e.debug(" Arrow function body is a parenthesized expression"),e.ts.isObjectLiteralExpression(h.right.body.expression)&&e.debug(" Parenthesized expression contains an object literal")):e.ts.isObjectLiteralExpression(h.right.body)?e.debug(" Arrow function body is an object literal"):e.debug(` Arrow function body is of kind: ${h.right.body.kind}`)):e.ts.isObjectLiteralExpression(h.right)?e.debug(" Right side is an object literal"):e.debug(` Right side is of kind: ${h.right.kind}`))}else e.ts.isFunctionDeclaration(p)&&p.modifiers&&p.modifiers.some(f=>f.kind===e.ts.SyntaxKind.ExportKeyword)&&p.modifiers.some(f=>f.kind===e.ts.SyntaxKind.DefaultKeyword)&&e.debug(`Statement ${d} is an export default function declaration`)});let o=a.statements.some(p=>{if(e.ts.isImportDeclaration(p)){let d=p.moduleSpecifier;if(e.ts.isStringLiteral(d)&&d.text==="@builder.io/webpack-plugin-jsx-loc")return!0}return!1}),c=!1;for(let p of a.statements){if(e.ts.isExportAssignment(p)&&!p.isExportEquals&&e.ts.isObjectLiteralExpression(p.expression)){let d=p.expression.properties.find(h=>e.ts.isPropertyAssignment(h)&&Fe(e,h)==="plugins");if(d&&e.ts.isPropertyAssignment(d)&&e.ts.isArrayLiteralExpression(d.initializer)&&(c=d.initializer.elements.some(h=>e.ts.isNewExpression(h)&&e.ts.isIdentifier(h.expression)&&h.expression.text===n),c))break}if(e.ts.isExpressionStatement(p)&&e.ts.isBinaryExpression(p.expression)){let d=p.expression;if(Tg(e,d)){let h=d.right;if(e.ts.isObjectLiteralExpression(h)){let f=h.properties.find(m=>e.ts.isPropertyAssignment(m)&&Fe(e,m)==="plugins");if(f&&e.ts.isPropertyAssignment(f)&&e.ts.isArrayLiteralExpression(f.initializer)&&(c=f.initializer.elements.some(m=>e.ts.isNewExpression(m)&&e.ts.isIdentifier(m.expression)&&m.expression.text===n),c))break}}}}if(c&&o)return s.outcome="already-exists",s;let l=!1,u=[];for(let p=0;p<a.statements.length;p++){let d=a.statements[p];if(e.ts.isFunctionDeclaration(d)&&d.modifiers&&d.modifiers.some(f=>f.kind===e.ts.SyntaxKind.ExportKeyword)&&d.modifiers.some(f=>f.kind===e.ts.SyntaxKind.DefaultKeyword)&&d.body){let f=d.body.statements.findIndex(m=>e.ts.isReturnStatement(m));if(f>=0){let m=d.body.statements[f];if(m.expression&&e.ts.isObjectLiteralExpression(m.expression)){let y=Gi(e,m.expression,n);if(y){let b=[...d.body.statements];b[f]=e.ts.factory.updateReturnStatement(m,y);let x=e.ts.factory.updateBlock(d.body,b),w=e.ts.factory.updateFunctionDeclaration(d,d.modifiers,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,x);u.push(w),l=!0;continue}}}}if(e.ts.isExportAssignment(d)&&!d.isExportEquals){if(e.ts.isObjectLiteralExpression(d.expression)){let h=Gi(e,d.expression,n);if(h){let f=e.ts.factory.updateExportAssignment(d,d.modifiers,h);u.push(f),l=!0;continue}}else if(e.ts.isFunctionExpression(d.expression)||e.ts.isArrowFunction(d.expression)||d.expression.kind===e.ts.SyntaxKind.FunctionExpression){if(e.debug(`Processing export default function case (kind=${d.expression.kind})`),d.expression.kind===e.ts.SyntaxKind.FunctionExpression){let f=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(n),void 0,[])]),m=e.ts.factory.createPropertyAssignment("plugins",f),y=e.ts.factory.createObjectLiteralExpression([m],!0),b=e.ts.factory.createReturnStatement(y),x=e.ts.factory.createBlock([b],!0),w=e.ts.factory.createIdentifier("env"),v=e.ts.factory.createParameterDeclaration(void 0,void 0,w,void 0,void 0,void 0),C=e.ts.factory.createFunctionExpression(void 0,void 0,void 0,[],[v],void 0,x),E=e.ts.factory.updateExportAssignment(d,d.modifiers,C);u.push(E),l=!0;continue}let h=qM(e,d.expression,n);if(h){let f=e.ts.factory.updateExportAssignment(d,d.modifiers,h);u.push(f),l=!0;continue}}}if(e.ts.isExpressionStatement(d)&&e.ts.isBinaryExpression(d.expression)){let h=d.expression;if(Tg(e,h)){let f=h.right;if(e.ts.isObjectLiteralExpression(f)){let m=Gi(e,f,n);if(m){let y=e.ts.factory.updateBinaryExpression(h,h.left,h.operatorToken,m),b=e.ts.factory.updateExpressionStatement(d,y);u.push(b),l=!0;continue}}else if(e.ts.isFunctionExpression(f)||e.ts.isArrowFunction(f)){let m=qM(e,f,n);if(!m&&e.ts.isArrowFunction(f)&&e.ts.isParenthesizedExpression(f.body)&&e.ts.isObjectLiteralExpression(f.body.expression)&&f.body.expression.properties.length===0){let y=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(n),void 0,[])]),b=e.ts.factory.createPropertyAssignment("plugins",y),x=e.ts.factory.createObjectLiteralExpression([b],!0),w=e.ts.factory.updateParenthesizedExpression(f.body,x);m=e.ts.factory.updateArrowFunction(f,f.modifiers,f.typeParameters,f.parameters,f.type,f.equalsGreaterThanToken,w)}if(m){let y=e.ts.factory.updateBinaryExpression(h,h.left,h.operatorToken,m),b=e.ts.factory.updateExpressionStatement(d,y);u.push(b),l=!0;continue}}}}u.push(d)}return l&&(a=e.ts.factory.updateSourceFile(a,u),a=be(e,a,{namedImports:[n],importPath:i}),s.content=Le(e,a),s.outcome="added"),s}catch(s){throw e.Sentry?.captureException(s,{extra:{configFilePath:t,configContent:r},level:"warning"}),s}}function Tg(e,t){if(t.operatorToken.kind!==e.ts.SyntaxKind.EqualsToken)return!1;let r=t.left;if(!e.ts.isPropertyAccessExpression(r))return!1;let n=r.expression,i=r.name;return e.ts.isIdentifier(n)&&n.text==="module"&&e.ts.isIdentifier(i)&&i.text==="exports"}function Wpe(e,t){return t.kind===e.ts.SyntaxKind.FunctionExpression}function Jpe(e,t){return t.kind===e.ts.SyntaxKind.ArrowFunction}function qM(e,t,r){if(e.debug(`updateConfigFunction called with node kind: ${t.kind}`),Wpe(e,t)&&e.ts.isBlock(t.body)){e.debug("Function expression with block detected");let n=t.body.statements.findIndex(c=>e.ts.isReturnStatement(c));if(n>=0){let c=t.body.statements[n];if(c.expression&&e.ts.isObjectLiteralExpression(c.expression)){let l=Gi(e,c.expression,r);if(l){let u=[...t.body.statements];u[n]=e.ts.factory.updateReturnStatement(c,l);let p=e.ts.factory.updateBlock(t.body,u);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,p)}}else if(c.expression&&e.ts.isIdentifier(c.expression)){let l=c.expression.text,u=!1,p=[...t.body.statements];for(let f=0;f<p.length;f++){let m=p[f];if(e.ts.isVariableStatement(m)){let y=m.declarationList.declarations;for(let b=0;b<y.length;b++){let x=y[b];if(e.ts.isIdentifier(x.name)&&x.name.text===l&&x.initializer&&e.ts.isObjectLiteralExpression(x.initializer)){let w=Gi(e,x.initializer,r);if(w){let v=[...y];v[b]=e.ts.factory.updateVariableDeclaration(x,x.name,x.exclamationToken,x.type,w),p[f]=e.ts.factory.updateVariableStatement(m,m.modifiers,e.ts.factory.updateVariableDeclarationList(m.declarationList,v)),u=!0;break}}}}if(e.ts.isExpressionStatement(m)&&e.ts.isBinaryExpression(m.expression)&&m.expression.operatorToken.kind===e.ts.SyntaxKind.EqualsToken){if(e.ts.isIdentifier(m.expression.left)&&m.expression.left.text===l&&e.ts.isObjectLiteralExpression(m.expression.right)){let y=Gi(e,m.expression.right,r);if(y){p[f]=e.ts.factory.updateExpressionStatement(m,e.ts.factory.updateBinaryExpression(m.expression,m.expression.left,m.expression.operatorToken,y)),u=!0;break}}if(e.ts.isPropertyAccessExpression(m.expression.left)&&e.ts.isIdentifier(m.expression.left.expression)&&m.expression.left.expression.text===l&&e.ts.isIdentifier(m.expression.left.name)&&m.expression.left.name.text==="plugins"&&e.ts.isArrayLiteralExpression(m.expression.right)){let y=e.ts.factory.updateArrayLiteralExpression(m.expression.right,[...m.expression.right.elements,e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]);p[f]=e.ts.factory.updateExpressionStatement(m,e.ts.factory.updateBinaryExpression(m.expression,m.expression.left,m.expression.operatorToken,y)),u=!0;break}}}if(u){let f=e.ts.factory.updateBlock(t.body,p);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,f)}let d=e.ts.factory.createExpressionStatement(e.ts.factory.createBinaryExpression(e.ts.factory.createPropertyAccessExpression(e.ts.factory.createIdentifier(l),e.ts.factory.createIdentifier("plugins")),e.ts.factory.createToken(e.ts.SyntaxKind.EqualsToken),e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])],!0)));p.splice(n,0,d);let h=e.ts.factory.updateBlock(t.body,p);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,h)}}e.debug("Creating a default implementation as last resort");let i=[...t.body.statements],s=e.ts.factory.createVariableStatement(void 0,e.ts.factory.createVariableDeclarationList([e.ts.factory.createVariableDeclaration(e.ts.factory.createIdentifier("config"),void 0,void 0,e.ts.factory.createObjectLiteralExpression([e.ts.factory.createPropertyAssignment("plugins",e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])],!0))],!0))],e.ts.NodeFlags.Const)),a=e.ts.factory.createReturnStatement(e.ts.factory.createIdentifier("config"));i.unshift(s),i.some(c=>e.ts.isReturnStatement(c))||i.push(a);let o=e.ts.factory.updateBlock(t.body,i);return e.ts.factory.updateFunctionExpression(t,t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,o)}else if(Jpe(e,t)){if(e.debug("Arrow function detected"),e.ts.isBlock(t.body)){let a=t.body.statements.findIndex(o=>e.ts.isReturnStatement(o));if(a>=0){let o=t.body.statements[a];if(o.expression&&e.ts.isObjectLiteralExpression(o.expression)){let c=Gi(e,o.expression,r);if(c){let l=[...t.body.statements];l[a]=e.ts.factory.updateReturnStatement(o,c);let u=e.ts.factory.updateBlock(t.body,l);return e.ts.factory.updateArrowFunction(t,t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,u)}}}}if(e.ts.isParenthesizedExpression(t.body)&&e.ts.isObjectLiteralExpression(t.body.expression)){let a=Gi(e,t.body.expression,r);if(a){let o=e.ts.factory.updateParenthesizedExpression(t.body,a);return e.ts.factory.updateArrowFunction(t,t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,o)}}if(e.ts.isObjectLiteralExpression(t.body)){let a=Gi(e,t.body,r);if(a)return e.ts.factory.updateArrowFunction(t,t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,a)}let n=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]),i=e.ts.factory.createPropertyAssignment("plugins",n),s=e.ts.factory.createObjectLiteralExpression([i],!0);return e.ts.factory.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,s)}}function Gi(e,t,r){let n=[...t.properties],i=-1,s=n.find((a,o)=>e.ts.isPropertyAssignment(a)&&(e.ts.isIdentifier(a.name)&&a.name.text==="plugins"||e.ts.isStringLiteral(a.name)&&a.name.text==="plugins")?(i=o,!0):!1);if(e.debug(`Plugins property found: ${!!s}`),s&&e.debug(`Plugins property type: ${s.initializer.kind}`),s&&i>=0){if(e.ts.isArrayLiteralExpression(s.initializer)&&s.initializer.elements.some(a=>{if(e.ts.isNewExpression(a)){let o=a.expression;return e.ts.isIdentifier(o)&&o.text===r}return!1}))return;if(e.ts.isArrayLiteralExpression(s.initializer)){let a=!1;if(n.forEach(u=>{e.ts.isPropertyAssignment(u)&&(e.ts.isIdentifier(u.name)&&u.name.text==="plugins"||e.ts.isStringLiteral(u.name)&&u.name.text==="plugins")&&e.ts.isCallExpression(u.initializer)&&e.ts.isPropertyAccessExpression(u.initializer.expression)&&e.ts.isArrayLiteralExpression(u.initializer.expression.expression)&&e.ts.isIdentifier(u.initializer.expression.name)&&u.initializer.expression.name.text==="filter"&&(a=!0)}),a){e.debug("Found plugins.filter(Boolean) pattern");let u=e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[]),p=e.ts.factory.createArrayLiteralExpression([...s.initializer.elements,u],!0);return n[i]=e.ts.factory.updatePropertyAssignment(s,s.name,p),e.ts.factory.updateObjectLiteralExpression(t,n)}let o=[...s.initializer.elements],c=e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[]);o.push(c);let l=e.ts.factory.updateArrayLiteralExpression(s.initializer,o);return n[i]=e.ts.factory.updatePropertyAssignment(s,s.name,l),e.ts.factory.updateObjectLiteralExpression(t,n)}else{let a=e.ts.factory.createSpreadElement(s.initializer),o=e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[]),c=e.ts.factory.createArrayLiteralExpression([a,o],!0);return n[i]=e.ts.factory.updatePropertyAssignment(s,s.name,c),e.ts.factory.updateObjectLiteralExpression(t,n)}}else{let a=-1,o=n.find((u,p)=>e.ts.isPropertyAssignment(u)&&(e.ts.isIdentifier(u.name)&&u.name.text==="module"||e.ts.isStringLiteral(u.name)&&u.name.text==="module")?(a=p,!0):!1);if(o&&a>=0&&e.ts.isObjectLiteralExpression(o.initializer)){let u=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]),p=e.ts.factory.createPropertyAssignment("plugins",u);return e.ts.factory.updateObjectLiteralExpression(t,[...n,p])}let c=e.ts.factory.createArrayLiteralExpression([e.ts.factory.createNewExpression(e.ts.factory.createIdentifier(r),void 0,[])]),l=e.ts.factory.createPropertyAssignment("plugins",c);return e.ts.factory.updateObjectLiteralExpression(t,[...n,l])}}function Ype(e=process.cwd()){try{if((0,Wi.existsSync)((0,Ag.join)(e,"pnpm-lock.yaml")))return"pnpm";if((0,Wi.existsSync)((0,Ag.join)(e,"yarn.lock")))return"yarn";if((0,Wi.existsSync)((0,Ag.join)(e,"package-lock.json")))return"npm"}catch(t){console.error("Error detecting package manager from lock files:",t)}try{let t=(0,VM.default)();if(t?.name)return t.name}catch(t){console.error("Error detecting package manager:",t)}return"npm"}function KM(e,t,r,n=!1){let i=[];e==="yarn"?(i.push("add"),n&&i.push("--dev")):(i.push("install"),n&&i.push("--save-dev")),r.forEach(a=>{i.push(a)});let s=(0,HM.default)(e,i,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1",NODE_ENV:"development"},cwd:t});return{command:new Promise(a=>{s.on("close",o=>{a(o===0)})})}}var GM=async(e,t)=>{let r=t.skipInstallation===!0||process.env.SKIP_INSTALL==="true";if(r)return console.log(`
|
|
3611
3611
|
Skipping installation of JSX location plugin as requested.`),{installOutcome:"already-exists"};let n=null,i="no-update";try{let s=await bb(e);if(s)n=s.id,console.log(`
|
|
3612
3612
|
Detected build tool: ${n}`);else{let l=await Sn(e,e.getRepoRootDir());if(l){let u={...l.dependencies,...l.devDependencies};u.vite?(n="vite",console.log(`
|
|
3613
3613
|
Detected Vite from package.json dependencies`)):u.webpack&&(n="webpack",console.log(`
|
|
3614
3614
|
Detected Webpack from package.json dependencies`))}}if(!n)return console.error("No build tool detected"),{installOutcome:"no-update"};if(r)return console.log(`
|
|
3615
3615
|
Skipping installation of JSX location plugin as requested.`),{installOutcome:"already-exists"};let a=e.getRepoRootDir(),o=Ype(a),c=!0;if(n==="vite"){let l="@builder.io/vite-plugin-jsx-loc";try{let u=s?.filePath;if(u){let p=(0,Wi.readFileSync)(u,"utf-8"),d=await gb(e,u,p,"jsxLocPlugin",l);if(i=d.outcome,d.outcome==="added"){(0,Wi.writeFileSync)(u,d.content),console.log(`
|
|
3616
|
-
Now installing ${l}...`);let{command:h}=
|
|
3617
|
-
Now installing ${l}...`);let{command:h}=
|
|
3618
|
-
\u2705 Successfully installed ${l}`),await h||(i="install-failed")}}}catch(u){console.error(`Error updating Webpack config: ${u}`)}}}catch(s){console.error("Error while detecting build tool:",s)}return{installOutcome:i}};g();g();var Dfe=K(
|
|
3616
|
+
Now installing ${l}...`);let{command:h}=KM(o,a,[l],c);await h||(i="install-failed")}}}catch(u){console.error(`Error updating Vite config: ${u}`)}}else if(n==="webpack"){let l="@builder.io/webpack-plugin-jsx-loc";try{let u=s?.filePath;if(u){let p=(0,Wi.readFileSync)(u,"utf-8"),d=await zM(e,u,p,"JsxLocPlugin",l);if(i=d.outcome,d.outcome==="added"){(0,Wi.writeFileSync)(u,d.content),console.log(`
|
|
3617
|
+
Now installing ${l}...`);let{command:h}=KM(o,a,[l],c);console.log(`
|
|
3618
|
+
\u2705 Successfully installed ${l}`),await h||(i="install-failed")}}}catch(u){console.error(`Error updating Webpack config: ${u}`)}}}catch(s){console.error("Error while detecting build tool:",s)}return{installOutcome:i}};g();g();var Dfe=K(XM(),1),Sfe=K(Hw(),1),Tfe=K(Ww(),1),Afe=K(tC(),1),nC=K(x$(),1);var v$=K(require("stream"),1),E$=require("crypto");function w$(e){let t=!1,r="2.0",n=new nC.default(e),i=new v$.default.EventEmitter,s=new Map,a=new Map([["rpc.on",h],["rpc.off",f]]);function o(E){return JSON.stringify({jsonrpc:r,id:E?.id,notification:E?.notification,result:E?.result,params:E?.params,error:E?.error})}function c(){p(),n.on("listening",()=>{t=!0,i.emit("listening"),n.on("connection",(E,S)=>{let _=S.url||"/";if(!/^\/\w*$/g.test(_)||!s.has(_))return E.close();let F=(0,E$.randomUUID)(),A=s.get(_);A.clients.set(F,E),i.emit("connection",E,F),u(E,F,_),E.on("error",W=>i.emit("socket-error",F,W)),E.on("close",()=>{A.clients.delete(F),i.emit("disconnection",F)})}),n.on("error",E=>i.emit("error",E))})}function l(E){return!!E.params&&Array.isArray(E.params)&&E.params.length>0}function u(E,S,_="/"){E.on("message",async N=>{let F={};try{N instanceof ArrayBuffer&&(F.binary=!0,N=Buffer.from(N).toString())}catch{return E.send(o({id:null,error:{code:-32700,message:"Parse error"}}))}let A;try{A=JSON.parse(N)}catch{return E.send(o({id:null,error:{code:-32700,message:"Parse error"}}))}try{let W=s.get(_);if(a.has(A.method)){let G=a.get(A.method);return E.send(G(W,A,S),F)}if(!W.methods.has(A.method))return E.send(o({id:A.id,error:{code:-32601,message:"Method not found"}}),F);try{let re=await W.methods.get(A.method)(A.params,S);return E.send(o({id:A.id,result:re||void 0}),F)}catch(G){return E.send(o({id:A.id,error:{code:-32e3,message:G?.message||"Internal error",data:G?.data}}),F)}}catch{return E.send(o({id:A?.id||null,error:{code:-32603,message:"Internal error"}}),F)}})}function p(E="/"){s.set(E,{clients:new Map,events:new Map,methods:new Map})}function d(E,S,_="/",...N){let A=[...s.get(_).clients.entries()].filter(([W])=>S.has(W)).map(([W,G])=>G);for(let W of A)W.send(o({notification:E,params:N}))}function h(E,S,_){if(!l(S))return o({id:S.id,error:{code:-32602,message:"Invalid params"}});if(!E.events.has(S.params[0]))return o({id:S.id,error:{code:-32602,message:"Invalid params"}});let N=S.params[0];return E.events.get(N).add(_),o({id:S.id,result:{[N]:!0}})}function f(E,S,_){if(!l(S))return o({id:S.id,error:{code:-32602,message:"Invalid params"}});if(!E.events.has(S.params[0]))return o({id:S.id,error:{code:-32602,message:"Invalid params"}});let N=S.params[0];return E.events.get(N).delete(_),o({id:S.id,result:{[N]:!1}})}function m(E,S,_="/"){s.has(_)||p(_),s.get(_).methods.set(E,S)}function y(E,S){i.on(E,S)}function b(E,S="/"){s.has(S)||p(S);let _=s.get(S);if(_.events.has(E))throw new Error("Event already exists");_.events.set(E,new Set)}function x(E,S="/",..._){if(!s.has(S))return;let N=s.get(S);if(!N.events.has(E))return;let F=N.events.get(E);d(E,F,S,..._)}function w(E){if(!E)throw new Error("Namespace is required");return s.has(E)||p(E),{emit:(S,..._)=>x(S,E,..._),clients:()=>s.get(E)?.clients||new Map,register:(S,_)=>m(S,_,E),event:S=>b(S,E)}}async function v(E,S,_,N){n.handleUpgrade(E,S,_,F=>{t||n.emit("listening"),n.emit("connection",F,E),N&&N(F,E)})}function C(){return new Promise((E,S)=>{try{n.close(),i.emit("close"),E(null)}catch(_){S(_)}})}return c(),{on:y,of:w,event:E=>b(E),handleUpgrade:v,clients:()=>s.get("/")?.clients||new Map,register:(E,S)=>m(E,S),emit:(E,...S)=>x(E,"/",...S),close:C}}kc();var O$=K(_$(),1),vd=48752;async function R$({sys:e,args:t}){let r=t.auth===!1||t.noAuth===!0,{installOutcome:n}=await GM(e,t),i;if(r)console.log(`
|
|
3619
3619
|
Skipping authentication due to --no-auth flag`);else{console.log(`
|
|
3620
3620
|
Verifying authentication...`);try{if(i=await It(e,t,{builderPrivateKey:!0,builderPublicKey:!0}),!i.builderPublicKey||!i.builderPrivateKey)return q.error("You need to be logged in to use the launch command."),q.info("Please login first with: npx builder.io login"),await ee(1);q.success(`Logged in as space: ${i.spaceName||i.builderPublicKey}`)}catch{return q.error("Authentication failed."),q.info("Please login first with: npx builder.io login"),await ee(1)}}let s=t.c||t.command,a=t.p||t.port,o="Usage: npx builder.io launch -p <port> -c <command> --projectId <projectId>";if(!s)return console.error(`No command specified. ${o}`),await ee(1);if(!a)return console.error(`No port specified. ${o}`),await ee(1);if(!t.projectId)return console.error(`No project ID specified. ${o}`),await ee(1);st((0,sn.bgGreen)((0,sn.bold)((0,sn.white)(" Builder.io launch ")))+(0,sn.dim)(` Running ${(0,sn.cyan)(s)} on port ${(0,sn.cyan)(a.toString())}...`));let c=(0,En.spawn)(s,[],{shell:!0,stdio:"pipe"});t.silent||(c.stdout.pipe(process.stdout),c.stderr.pipe(process.stderr));try{zfe({sys:e,credentials:i,args:t,port:a,skipAuth:r,installOutcome:n})}catch(l){console.error("Error setting up servers:",l)}return await Oe("launch",{command:s,port:a,dev:!!t.dev}),new Promise(l=>{c.on("close",async u=>{Kt((0,sn.bgGreen)((0,sn.bold)((0,sn.white)(" Done! ")))),l(u??0)})})}function qfe(e){let t;switch(F$.platform()){case"darwin":t=`open "${e}"`;break;case"win32":t=`start "" "${e}"`;break;default:t=`xdg-open "${e}"`;break}try{(0,En.spawn)(t,{shell:!0,stdio:"ignore"}),console.log(`\u{1F310} Opening browser at ${e}`)}catch(n){console.error("Error opening browser:",n)}}async function I$(e,t=10,r=500){for(let n=0;n<t;n++)try{let i=k$.request(e,{method:"HEAD",timeout:2e3},a=>{if(a.statusCode&&a.statusCode<400)return!0});if(await new Promise(a=>{i.on("error",()=>a(!1)),i.on("timeout",()=>{i.destroy(),a(!1)}),i.on("response",()=>a(!0)),i.end()}))return!0;await new Promise(a=>setTimeout(a,r))}catch{await new Promise(s=>setTimeout(s,r))}return!1}function zfe({sys:e,credentials:t,args:r,port:n,skipAuth:i,installOutcome:s}){try{console.log(`\u{1F50D} Setting up Builder.io server on port ${vd}`);let o=(0,Ug.default)();o.set("etag",!1),(s==="install-failed"||s==="no-update")&&o.get("*",(h,f)=>{f.status(500).send(`
|
|
3621
3621
|
<!DOCTYPE html>
|
|
@@ -3653,7 +3653,7 @@ Verifying authentication...`);try{if(i=await It(e,t,{builderPrivateKey:!0,builde
|
|
|
3653
3653
|
</ul>
|
|
3654
3654
|
</body>
|
|
3655
3655
|
</html>
|
|
3656
|
-
`)}),o.use((0,O$.default)()),o.use(Ug.default.json()),o.use(Ug.default.urlencoded({extended:!0}));let c=t?.builderPrivateKey;o.use((h,f,m)=>{if(f.header("Access-Control-Allow-Origin",
|
|
3656
|
+
`)}),o.use((0,O$.default)()),o.use(Ug.default.json()),o.use(Ug.default.urlencoded({extended:!0}));let c=t?.builderPrivateKey;o.use((h,f,m)=>{if(f.header("Access-Control-Allow-Origin",h.headers.origin),f.header("Access-Control-Allow-Methods","GET, POST, OPTIONS"),f.header("Access-Control-Allow-Headers","Origin, X-Requested-With, Content-Type, Accept, Authorization, X-Builder-Private-Key"),f.header("Access-Control-Allow-Credentials","true"),h.method==="OPTIONS")return f.status(204).end();if(i){m();return}let y=h.headers["X-Builder-Private-Key"]||h.headers["x-builder-private-key"]||h.cookies.builderPrivateKey;if(c&&y===c){h.cookies.builderPrivateKey||f.cookie("builderPrivateKey",c,{httpOnly:!0,sameSite:"lax",maxAge:24*60*60*1e3}),m();return}return f.status(401).json({error:"Authentication required."})}),o.get("/_builder.io/api/status",(h,f)=>{f.json({status:"ok"})});let l=async()=>{(0,En.execSync)("git add .")};o.post("/_builder.io/api/generate",async(h,f)=>{try{if(!t)return f.status(401).json({error:"Not authenticated"});let{prompt:m,context:{commitChanges:y,pushChanges:b}}=h.body;if(!m)return f.status(400).json({error:"No prompt provided"});f.setHeader("Content-Type","text/event-stream"),f.setHeader("Cache-Control","no-cache"),f.setHeader("Connection","keep-alive");let x=await bc({cwd:process.cwd()}),w=await Promise.resolve().then(()=>(kc(),A8)),v=new w.CodeGenSession(x,t,r,"fusion",void 0,"quality");v.setDebug(!!r.debug);let C=console.log;console.log=function(...E){C.apply(console,E),typeof E[0]=="string"&&f.write(`data: ${JSON.stringify({type:"progress",message:E[0]})}
|
|
3657
3657
|
|
|
3658
3658
|
`)},f.write(`data: ${JSON.stringify({type:"start",message:"Starting code generation..."})}
|
|
3659
3659
|
|