builder.io 1.6.47 → 1.6.48
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 +20 -20
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +3 -3
- package/server/index.mjs +3 -3
- package/types/cli/prettier.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ej=Object.create;var Ed=Object.defineProperty;var wj=Object.getOwnPropertyDescriptor;var Cj=Object.getOwnPropertyNames;var Dj=Object.getPrototypeOf,Sj=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zg=(e,t)=>{for(var r in t)Ed(e,r,{get:t[r],enumerable:!0})},vC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Cj(t))!Sj.call(e,i)&&i!==r&&Ed(e,i,{get:()=>t[i],enumerable:!(n=wj(t,i))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?Ej(Dj(e)):{},vC(t||!e||!e.__esModule?Ed(r,"default",{value:e,enumerable:!0}):r,e)),Tj=e=>vC(Ed({},"__esModule",{value:!0}),e);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 Ej=Object.create;var Ed=Object.defineProperty;var wj=Object.getOwnPropertyDescriptor;var Cj=Object.getOwnPropertyNames;var Dj=Object.getPrototypeOf,Sj=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zg=(e,t)=>{for(var r in t)Ed(e,r,{get:t[r],enumerable:!0})},vC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Cj(t))!Sj.call(e,i)&&i!==r&&Ed(e,i,{get:()=>t[i],enumerable:!(n=wj(t,i))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?Ej(Dj(e)):{},vC(t||!e||!e.__esModule?Ed(r,"default",{value:e,enumerable:!0}):r,e)),Tj=e=>vC(Ed({},"__esModule",{value:!0}),e);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:"3180110ba421a04ea20425cbc7eebc3916456035"}}});var wC=D((Wme,EC)=>{g();function ey(e){return e==null?[]:Array.isArray(e)?e:[e]}function Aj(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]}EC.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=ey(t.string),t.boolean=ey(t.boolean),d)for(r in t.alias)for(n=t.alias[r]=ey(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);Aj(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}});function Pj(e){if(!e)return ty.default;try{let r=(0,CC.createRequire)(e)("prettier");if(!r)throw new Error("Prettier not found");return r}catch{return ty.default}}async function sn(e,t,r,n){try{let i=DC.default.resolve(e,n??"file.tsx"),s=Pj(i),a=await s.resolveConfig(i);return a?await s.format(t,{...a,filepath:n,parser:r}):await s.format(t,{filepath:n,parser:r})}catch{return t}}var ty,CC,DC,Al=k(()=>{"use strict";g();ty=K(require("prettier"),1),CC=require("module"),DC=K(require("path"),1)});var ry,wo,wd,Cd,SC,xa,ny,iy,va,TC,Co=k(()=>{"use strict";g();ry="preview-url",wo="framework",wd="platform",Cd="node",SC="/~builder-connect",xa="/~builder-connected",ny="/~builder-dev-tools",iy="/~builder-dev-tools.js",va="/~builder-dev-tools-close",TC="/mappings"});var Dd=D((ehe,AC)=>{"use strict";g();var sy="\x1B",St=`${sy}[`,_j="\x07",ay={to(e,t){return t?`${St}${t+1};${e+1}H`:`${St}${e+1}G`},move(e,t){let r="";return e<0?r+=`${St}${-e}D`:e>0&&(r+=`${St}${e}C`),t<0?r+=`${St}${-t}A`:t>0&&(r+=`${St}${t}B`),r},up:(e=1)=>`${St}${e}A`,down:(e=1)=>`${St}${e}B`,forward:(e=1)=>`${St}${e}C`,backward:(e=1)=>`${St}${e}D`,nextLine:(e=1)=>`${St}E`.repeat(e),prevLine:(e=1)=>`${St}F`.repeat(e),left:`${St}G`,hide:`${St}?25l`,show:`${St}?25h`,save:`${sy}7`,restore:`${sy}8`},Ij={up:(e=1)=>`${St}S`.repeat(e),down:(e=1)=>`${St}T`.repeat(e)},kj={screen:`${St}2J`,up:(e=1)=>`${St}1J`.repeat(e),down:(e=1)=>`${St}J`.repeat(e),line:`${St}2K`,lineEnd:`${St}K`,lineStart:`${St}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?ay.up():"");return e&&(t+=ay.left),t}};AC.exports={cursor:ay,scroll:Ij,erase:kj,beep:_j}});var dt=D((rhe,oy)=>{g();var Td=process||{},PC=Td.argv||[],Sd=Td.env||{},Nj=!(Sd.NO_COLOR||PC.includes("--no-color"))&&(!!Sd.FORCE_COLOR||PC.includes("--color")||Td.platform==="win32"||(Td.stdout||{}).isTTY&&Sd.TERM!=="dumb"||!!Sd.CI),Fj=(e,t,r=e)=>n=>{let i=""+n,s=i.indexOf(t,e.length);return~s?e+Oj(i,t,r,s)+t:e+i+t},Oj=(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)},_C=(e=Nj)=>{let t=e?Fj:()=>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")}};oy.exports=_C();oy.exports.createColors=_C});function Rj({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 jC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Lj,"")}function UC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pl(e,t={}){if(typeof e!="string"||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=jC(e),e.length===0))return 0;e=e.replace(jj()," ");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(Mj.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function zj(){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=IC(),bt.color.ansi256=kC(),bt.color.ansi16m=NC(),bt.bgColor.ansi=IC(cy),bt.bgColor.ansi256=kC(cy),bt.bgColor.ansi16m=NC(cy),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 RC(e,t,r){return String(e).normalize().replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`).map(n=>Jj(n,t,r)).join(`
|
|
4
4
|
`)}function my(e,t){if(typeof e=="string")return Pd.aliases.get(e)===t;for(let r of e)if(r!==void 0&&my(r,t))return!0;return!1}function Xj(e,t){if(e===t)return;let r=e.split(`
|
|
@@ -65,7 +65,7 @@ ${WC}${n.trimStart()}`),r=3+(0,Fd.stripVTControlCharacters)(n.trimStart()).lengt
|
|
|
65
65
|
`),f(),i()};return{start:v,stop:w,message:(x="")=>{o=y(x??o)}}}});function xe(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function Md(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 Be(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 vy=D((whe,rD)=>{"use strict";g();rD.exports=function(){if(process.env.npm_config_user_agent)return pU(process.env.npm_config_user_agent)};function pU(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 gr(e){return e.endsWith(".mapper.tsx")||e.endsWith(".mapper.jsx")||e.endsWith(".mapper.ts")||e.endsWith(".mapper.js")||e.endsWith(".mapper.mjs")}function Me(e,t,r){t=zn(t),r=zn(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=zn(e.normalize(i)),i.startsWith(".")||(i="./"+i),i}function zn(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}function Ea(e,t){let r=e.extname(t),n=e.basename(t,r).split(/[\/\\]/),i=n[n.length-1];return nD(i==="index"?e.basename(e.dirname(t)):i)}function nD(e){return ot(e).replace(/ /g,"")}function wn(e,t){let r=e.extname(t),n=zn(e.basename(t,r)).split("/").pop();return ot(n==="index"?e.basename(e.dirname(t)):n)}function ct(e,t){let r=zn(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 ot(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 jr(e){return e.sort((t,r)=>t.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function st(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 sD(e){return(await e.hash(e.getAppRootDir())).substring(0,8)}function _l(e){return typeof e=="number"}function Ao(e){return typeof e=="boolean"}function Dr(e){return typeof e=="string"}function Po(e){return typeof e=="string"?/^[A-Z][A-Za-z0-9]*$/.test(e):!1}function on(e){return JSON.parse(JSON.stringify(e))}function $d(e,t,r){for(let n of t)if(e.dirname(r).includes(n))return!0;return!1}function aD(){try{let e=(0,iD.default)();if(e?.name)return e.name}catch{}return"npm"}function dU(){return process.platform.startsWith("win")}function Ur(){return dU()?'"@builder.io/dev-tools"':"builder.io"}var iD,_e=k(()=>{"use strict";g();iD=K(vy(),1)});function cn(e){let t=e.join(e.getAppRootDir(),"tsconfig.json");return e.exists(t)}async function Cn(e,t){async function r(i,s){if(s>10)return;let a=await e.readdir(i);for(let o of a){if(fU.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 cn(e)?"ts":"js"}`;return e.join(t,s)}return n}async function Dn(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 oD(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 Il(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 Il(e,a,r);if(c)return c}}))).find(s=>typeof s=="string")}var fU,Sr=k(()=>{"use strict";g();fU=["node_modules","dist","build","public"]});async function Kt(e,t,r){if(!Array.isArray(t)||t.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${t}`);let n=await oD(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=kl.get(o);if(!c){try{e.statSync(o).isFile()?c={exists:!0,content:e.readFileSync(o)}:c={exists:!1}}catch{c={exists:!1}}kl.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=kl.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=lD.get(l),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Ud(l)}return o.includes("node_modules")&&(c?kl.set(o,{exists:!0,content:c}):kl.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 mU(e,a,t,r)}catch(o){if(o instanceof Ud){await hU(e,o.libName);continue}throw e.Sentry?.captureException(o),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:o})}}function mU(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=cD.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,cD.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 _o(e,t,r){r||(r=await Kt(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 hU(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;jd.has(t)||jd.set(t,fetch(r).then(n=>n.text()).then(n=>{lD.set(t,n)})),await jd.get(t),jd.delete(t)}async function uD(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:Ey(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function Ey(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 Ud,lD,jd,kl,cD,Sn=k(()=>{"use strict";g();xt();_e();Sr();Ud=class{constructor(t){this.libName=t}};lD=new Map,jd=new Map,kl=new Map,cD=new Map});var gU,He,yr=k(()=>{"use strict";g();gU="1.6.
|
|
68
|
+
`,getSourceFile:o=>{if(o=e.normalize(o),o.includes("node_modules")){let l=kl.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=lD.get(l),c==null&&typeof self<"u"&&typeof fetch=="function"))throw new Ud(l)}return o.includes("node_modules")&&(c?kl.set(o,{exists:!0,content:c}):kl.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 mU(e,a,t,r)}catch(o){if(o instanceof Ud){await hU(e,o.libName);continue}throw e.Sentry?.captureException(o),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:o})}}function mU(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=cD.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,cD.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 _o(e,t,r){r||(r=await Kt(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 hU(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;jd.has(t)||jd.set(t,fetch(r).then(n=>n.text()).then(n=>{lD.set(t,n)})),await jd.get(t),jd.delete(t)}async function uD(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:Ey(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function Ey(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 Ud,lD,jd,kl,cD,Sn=k(()=>{"use strict";g();xt();_e();Sr();Ud=class{constructor(t){this.libName=t}};lD=new Map,jd=new Map,kl=new Map,cD=new Map});var gU,He,yr=k(()=>{"use strict";g();gU="1.6.48",He=process.env.OVERRIDE_VERSION??gU});async function Fs(e){let t=[],r=await Dn(e,e.getRepoRootDir());if(r){let n=await fD(r,e);t.push(...n)}return t}async function dD(e){let t=await Dn(e,e.getRepoRootDir());return t?.scripts?.dev?t.scripts.dev.includes("--turbopack"):!1}async function fD(e,t){let r=[];if(e&&typeof e=="object"){let n=new Set(Object.keys({...e.dependencies,...e.devDependencies}));for(let i of yU)if(n.has(i)&&!r.some(s=>s.name===i)){let s={name:i};pD.has(i)&&(s.version=await pD.get(i)(t)),r.push(s)}}return r}function wy(e){let t=parseInt(e);return Number.isNaN(t)?void 0:t}var pD,yU,wa=k(()=>{"use strict";g();Sr();_e();pD=new Map([["next",async e=>{if(!e.spawnSync)return;let t=aD(),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:wy(a),minor:wy(o),patch:wy(c)}}]]),yU=["@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 mi(e){let t=mD(e),r=await e.readFile(t);return typeof r=="string"?JSON.parse(r):{}}async function hi(e,t){t=typeof t=="object"&&t!=null?t:{};let r=mD(e);await e.writeFile(r,JSON.stringify(t??{},null,2))}function mD(e){let t=e.getAppRootDir();return e.join(t,"node_modules",".builder","builder-cache.json")}var Io=k(()=>{"use strict";g()});async function Os(e,t,r){let n={envKey:r,envValue:null,file:""};for(let i of t){let s=e.join(e.getAppRootDir(),i),a=await bU(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 bU(e,t){let r=await e.readFile(t);return typeof r=="string"?hD(r):null}function hD(e){let t={},r=e.replace(/\r\n?/gm,`
|
|
69
69
|
`),n;for(;(n=xU.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 Rs(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 A_=k(()=>{g()});function ru(e){return k_(e)}var P_,__,zb,Xo,tu,I_,Qo,aG,Sf,k_,Kb,oG,cG,Hb,Tf,lG,gDe,yDe,N_=k(()=>{g();v_();D_();A_();({stdout:P_,stderr:__}=C_),zb=Symbol("GENERATOR"),Xo=Symbol("STYLER"),tu=Symbol("IS_EMPTY"),I_=["ansi","ansi","ansi256","ansi16m"],Qo=Object.create(null),aG=(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=P_?P_.level:0;e.level=t.level===void 0?r:t.level},Sf=class{constructor(t){return k_(t)}},k_=e=>{let t=(...r)=>r.join(" ");return aG(t,e),Object.setPrototypeOf(t,ru.prototype),t};Object.setPrototypeOf(ru.prototype,Function.prototype);for(let[e,t]of Object.entries(Jn))Qo[e]={get(){let r=Tf(this,Hb(t.open,t.close,this[Xo]),this[tu]);return Object.defineProperty(this,e,{value:r}),r}};Qo.visible={get(){let e=Tf(this,this[Xo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Kb=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Jn[r].ansi16m(...n):t==="ansi256"?Jn[r].ansi256(Jn.rgbToAnsi256(...n)):Jn[r].ansi(Jn.rgbToAnsi(...n)):e==="hex"?Kb("rgb",t,r,...Jn.hexToRgb(...n)):Jn[r][e](...n),oG=["rgb","hex","ansi256"];for(let e of oG){Qo[e]={get(){let{level:r}=this;return function(...n){let i=Hb(Kb(e,I_[r],"color",...n),Jn.color.close,this[Xo]);return Tf(this,i,this[tu])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Qo[t]={get(){let{level:r}=this;return function(...n){let i=Hb(Kb(e,I_[r],"bgColor",...n),Jn.bgColor.close,this[Xo]);return Tf(this,i,this[tu])}}}}cG=Object.defineProperties(()=>{},{...Qo,level:{enumerable:!0,get(){return this[zb].level},set(e){this[zb].level=e}}}),Hb=(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}},Tf=(e,t,r)=>{let n=(...i)=>lG(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,cG),n[zb]=e,n[Xo]=t,n[tu]=r,n},lG=(e,t)=>{if(e.level<=0||!t)return e[tu]?"":t;let r=e[Xo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=S_(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
1035
|
-
`);return s!==-1&&(t=T_(t,i,n,s)),n+t+i};Object.defineProperties(ru.prototype,Qo);gDe=ru(),yDe=ru({level:__?__.level:0})});function nu(e){let t=jb(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:Gb(a||F_,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:Gb(a||F_,c)}}}function Gb(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=uG(n,t.children)),i&&(s=i(s)),s}function uG(e,t){let r=[],n=-1;for(;++n<t.length;)r.push(Gb(e,t[n]));return r.join("")}var Ae,F_,O_=k(()=>{g();N_();Ub();Ae=new Sf({level:2}),F_={comment:Ae.gray,quote:Ae.gray,keyword:Ae.green,"selector-tag":Ae.green,addition:Ae.green,number:Ae.cyan,string:Ae.cyan,"meta meta-string":Ae.cyan,literal:Ae.cyan,doctag:Ae.cyan,regexp:Ae.cyan,title:Ae.blue,section:Ae.blue,name:Ae.blue,"selector-id":Ae.blue,"selector-class":Ae.blue,attribute:Ae.yellow,attr:Ae.yellow,variable:Ae.yellow,"template-variable":Ae.yellow,"class title":Ae.yellow,type:Ae.yellow,symbol:Ae.magenta,bullet:Ae.magenta,subst:Ae.magenta,meta:Ae.magenta,"meta keyword":Ae.magenta,"selector-attr":Ae.magenta,"selector-pseudo":Ae.magenta,link:Ae.magenta,built_in:Ae.red,deletion:Ae.red,emphasis:Ae.italic,strong:Ae.bold,formula:Ae.inverse}});var Vb=k(()=>{g();Ub();O_()});async function Q(e){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([R_.flush(2e3),L_.flush().promise])}catch(t){console.error(t)}process.exit(e)}var R_,L_,un=k(()=>{"use strict";g();R_=K(require("@sentry/node"),1),L_=K(require("@amplitude/analytics-node"),1)});var Hr,Na=k(()=>{"use strict";g();Hr=process.env.AIR_HOST||"https://ai.builder.io"});var M_,B_=k(()=>{M_="1.6.47"});var j_=D(Wb=>{g();var $_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Wb.encode=function(e){if(0<=e&&e<$_.length)return $_[e];throw new TypeError("Must be between 0 and 63: "+e)};Wb.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 Xb=D(Yb=>{g();var U_=j_(),Jb=5,q_=1<<Jb,z_=q_-1,K_=q_;function dG(e){return e<0?(-e<<1)+1:(e<<1)+0}function fG(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Yb.encode=function(t){var r="",n,i=dG(t);do n=i&z_,i>>>=Jb,i>0&&(n|=K_),r+=U_.encode(n);while(i>0);return r};Yb.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=U_.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(c&K_),c&=z_,s=s+(c<<a),a+=Jb}while(o);n.value=fG(s),n.rest=r}});var ec=D(Jt=>{g();function mG(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Jt.getArg=mG;var H_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,hG=/^data:.+\,.+$/;function iu(e){var t=e.match(H_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Jt.urlParse=iu;function Zo(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}Jt.urlGenerate=Zo;var gG=32;function yG(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>gG&&t.pop(),s}}var Qb=yG(function(t){var r=t,n=iu(t);if(n){if(!n.path)return t;r=n.path}for(var i=Jt.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,Zo(n)):r});Jt.normalize=Qb;function G_(e,t){e===""&&(e="."),t===""&&(t=".");var r=iu(t),n=iu(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zo(r);if(r||t.match(hG))return t;if(n&&!n.host&&!n.path)return n.host=t,Zo(n);var i=t.charAt(0)==="/"?t:Qb(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zo(n)):i}Jt.join=G_;Jt.isAbsolute=function(e){return e.charAt(0)==="/"||H_.test(e)};function bG(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)}Jt.relative=bG;var V_=function(){var e=Object.create(null);return!("__proto__"in e)}();function W_(e){return e}function xG(e){return J_(e)?"$"+e:e}Jt.toSetString=V_?W_:xG;function vG(e){return J_(e)?e.slice(1):e}Jt.fromSetString=V_?W_:vG;function J_(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 EG(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)}Jt.compareByOriginalPositions=EG;function wG(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)}Jt.compareByOriginalPositionsNoSource=wG;function CG(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)}Jt.compareByGeneratedPositionsDeflated=CG;function DG(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)}Jt.compareByGeneratedPositionsDeflatedNoLine=DG;function is(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function SG(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)}Jt.compareByGeneratedPositionsInflated=SG;function TG(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Jt.parseSourceMapInput=TG;function AG(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=iu(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=G_(Zo(n),t)}return Qb(t)}Jt.computeSourceURL=AG});var tx=D(Y_=>{g();var Zb=ec(),ex=Object.prototype.hasOwnProperty,Fa=typeof Map<"u";function ss(){this._array=[],this._set=Fa?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 Fa?this._set.size:Object.getOwnPropertyNames(this._set).length};ss.prototype.add=function(t,r){var n=Fa?t:Zb.toSetString(t),i=Fa?this.has(t):ex.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Fa?this._set.set(t,s):this._set[n]=s)};ss.prototype.has=function(t){if(Fa)return this._set.has(t);var r=Zb.toSetString(t);return ex.call(this._set,r)};ss.prototype.indexOf=function(t){if(Fa){var r=this._set.get(t);if(r>=0)return r}else{var n=Zb.toSetString(t);if(ex.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()};Y_.ArraySet=ss});var Z_=D(Q_=>{g();var X_=ec();function PG(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||X_.compareByGeneratedPositionsInflated(e,t)<=0}function Af(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Af.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Af.prototype.add=function(t){PG(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Af.prototype.toArray=function(){return this._sorted||(this._array.sort(X_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Q_.MappingList=Af});var rx=D(e2=>{g();var su=Xb(),Lt=ec(),Pf=tx().ArraySet,_G=Z_().MappingList;function In(e){e||(e={}),this._file=Lt.getArg(e,"file",null),this._sourceRoot=Lt.getArg(e,"sourceRoot",null),this._skipValidation=Lt.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=Lt.getArg(e,"ignoreInvalidMapping",!1),this._sources=new Pf,this._names=new Pf,this._mappings=new _G,this._sourcesContents=null}In.prototype._version=3;In.fromSourceMap=function(t,r){var n=t.sourceRoot,i=new In(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=Lt.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=Lt.relative(n,s)),i._sources.has(a)||i._sources.add(a);var o=t.sourceContentFor(s);o!=null&&i.setSourceContent(s,o)}),i};In.prototype.addMapping=function(t){var r=Lt.getArg(t,"generated"),n=Lt.getArg(t,"original",null),i=Lt.getArg(t,"source",null),s=Lt.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}))};In.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Lt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Lt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Lt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};In.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=Lt.relative(s,i));var a=new Pf,o=new Pf;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=Lt.join(n,c.source)),s!=null&&(c.source=Lt.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=Lt.join(n,c)),s!=null&&(c=Lt.relative(s,c)),this.setSourceContent(c,l))},this)};In.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)}};In.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(!Lt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=su.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=su.encode(p-a),a=p,c+=su.encode(l.originalLine-1-i),i=l.originalLine-1,c+=su.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(u=this._names.indexOf(l.name),c+=su.encode(u-s),s=u)),o+=c}return o};In.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Lt.relative(r,n));var i=Lt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};In.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};In.prototype.toString=function(){return JSON.stringify(this.toJSON())};e2.SourceMapGenerator=In});var t2=D(Oa=>{g();Oa.GREATEST_LOWER_BOUND=1;Oa.LEAST_UPPER_BOUND=2;function nx(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?nx(a,t,r,n,i,s):s==Oa.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?nx(e,a,r,n,i,s):s==Oa.LEAST_UPPER_BOUND?a:e<0?-1:e}Oa.search=function(t,r,n,i){if(r.length===0)return-1;var s=nx(-1,r.length,t,r,n,i||Oa.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var i2=D(n2=>{g();function IG(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 kG(e){let t=IG.toString();return new Function(`return ${t}`)()(e)}var r2=new WeakMap;n2.quickSort=function(e,t,r=0){let n=r2.get(t);n===void 0&&(n=kG(t),r2.set(t,n)),n(e,t,r,e.length-1)}});var o2=D(_f=>{g();var ne=ec(),sx=t2(),tc=tx().ArraySet,NG=Xb(),au=i2().quickSort;function ht(e,t){var r=e;return typeof e=="string"&&(r=ne.parseSourceMapInput(e)),r.sections!=null?new Yn(r,t):new lr(r,t)}ht.fromSourceMap=function(e,t){return lr.fromSourceMap(e,t)};ht.prototype._version=3;ht.prototype.__generatedMappings=null;Object.defineProperty(ht.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});ht.prototype.__originalMappings=null;Object.defineProperty(ht.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});ht.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};ht.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};ht.GENERATED_ORDER=1;ht.ORIGINAL_ORDER=2;ht.GREATEST_LOWER_BOUND=1;ht.LEAST_UPPER_BOUND=2;ht.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||ht.GENERATED_ORDER,a;switch(s){case ht.GENERATED_ORDER:a=this._generatedMappings;break;case ht.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)})}};ht.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,sx.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};_f.SourceMapConsumer=ht;function lr(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=tc.fromArray(s.map(String),!0),this._sources=tc.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}lr.prototype=Object.create(ht.prototype);lr.prototype.consumer=ht;lr.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};lr.fromSourceMap=function(t,r){var n=Object.create(lr.prototype),i=n._names=tc.fromArray(t._names.toArray(),!0),s=n._sources=tc.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 a2;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 au(n.__originalMappings,ne.compareByOriginalPositions),n};lr.prototype._version=3;Object.defineProperty(lr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function a2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var ix=ne.compareByGeneratedPositionsDeflatedNoLine;function s2(e,t){let r=e.length,n=e.length-t;if(!(n<=1))if(n==2){let i=e[t],s=e[t+1];ix(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(ix(a,o)<=0)break;e[s-1]=o,e[s]=a}else au(e,ix,t)}lr.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,v,w;let x=0;for(;u<l;)if(t.charAt(u)===";")n++,u++,i=0,s2(f,x),x=f.length;else if(t.charAt(u)===",")u++;else{for(m=new a2,m.generatedLine=n,v=u;v<l&&!this._charIsMappingSeparator(t,v);v++);for(y=t.slice(u,v),b=[];u<v;)NG.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 C=m.source;for(;h.length<=C;)h.push(null);h[C]===null&&(h[C]=[]),h[C].push(m)}}s2(f,x),this.__generatedMappings=f;for(var E=0;E<h.length;E++)h[E]!=null&&au(h[E],ne.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};lr.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 sx.search(t,r,s,a)};lr.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}};lr.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",ht.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}};lr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};lr.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.')};lr.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",ht.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}};_f.BasicSourceMapConsumer=lr;function Yn(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 tc,this._names=new tc;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 ht(ne.getArg(a,"map"),t)}})}Yn.prototype=Object.create(ht.prototype);Yn.prototype.constructor=ht;Yn.prototype._version=3;Object.defineProperty(Yn.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}});Yn.prototype.originalPositionFor=function(t){var r={generatedLine:ne.getArg(t,"line"),generatedColumn:ne.getArg(t,"column")},n=sx.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}};Yn.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Yn.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.')};Yn.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}};Yn.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)}au(this.__generatedMappings,ne.compareByGeneratedPositionsDeflated),au(this.__originalMappings,ne.compareByOriginalPositions)};_f.IndexedSourceMapConsumer=Yn});var l2=D(c2=>{g();var FG=rx().SourceMapGenerator,If=ec(),OG=/(\r?\n)/,RG=10,rc="$$$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[rc]=!0,n!=null&&this.add(n)}pn.fromStringWithSourceMap=function(t,r,n){var i=new pn,s=t.split(OG),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=If.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?If.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[rc]||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[rc]||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[rc]?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[rc]?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[If.toSetString(t)]=r};pn.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][rc]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(If.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 FG(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)===RG?(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}};c2.SourceNode=pn});var u2=D(kf=>{g();kf.SourceMapGenerator=rx().SourceMapGenerator;kf.SourceMapConsumer=o2().SourceMapConsumer;kf.SourceNode=l2().SourceNode});var U2=D(gu=>{"use strict";g();Object.defineProperty(gu,"__esModule",{value:!0});function LG(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 _i=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}},oc=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 _r(e,t){let{line:r,column:n,index:i}=e;return new _i(r,n+t,i+t)}var p2="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",BG={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:p2},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:p2}},d2={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"},Of=e=>e.type==="UpdateExpression"?d2.UpdateExpression[`${e.prefix}`]:d2[e.type],MG={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=T_(t,i,n,s)),n+t+i};Object.defineProperties(ru.prototype,Qo);gDe=ru(),yDe=ru({level:__?__.level:0})});function nu(e){let t=jb(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:Gb(a||F_,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:Gb(a||F_,c)}}}function Gb(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=uG(n,t.children)),i&&(s=i(s)),s}function uG(e,t){let r=[],n=-1;for(;++n<t.length;)r.push(Gb(e,t[n]));return r.join("")}var Ae,F_,O_=k(()=>{g();N_();Ub();Ae=new Sf({level:2}),F_={comment:Ae.gray,quote:Ae.gray,keyword:Ae.green,"selector-tag":Ae.green,addition:Ae.green,number:Ae.cyan,string:Ae.cyan,"meta meta-string":Ae.cyan,literal:Ae.cyan,doctag:Ae.cyan,regexp:Ae.cyan,title:Ae.blue,section:Ae.blue,name:Ae.blue,"selector-id":Ae.blue,"selector-class":Ae.blue,attribute:Ae.yellow,attr:Ae.yellow,variable:Ae.yellow,"template-variable":Ae.yellow,"class title":Ae.yellow,type:Ae.yellow,symbol:Ae.magenta,bullet:Ae.magenta,subst:Ae.magenta,meta:Ae.magenta,"meta keyword":Ae.magenta,"selector-attr":Ae.magenta,"selector-pseudo":Ae.magenta,link:Ae.magenta,built_in:Ae.red,deletion:Ae.red,emphasis:Ae.italic,strong:Ae.bold,formula:Ae.inverse}});var Vb=k(()=>{g();Ub();O_()});async function Q(e){if(process.env.NODE_ENV!=="test")try{await Promise.allSettled([R_.flush(2e3),L_.flush().promise])}catch(t){console.error(t)}process.exit(e)}var R_,L_,un=k(()=>{"use strict";g();R_=K(require("@sentry/node"),1),L_=K(require("@amplitude/analytics-node"),1)});var Hr,Na=k(()=>{"use strict";g();Hr=process.env.AIR_HOST||"https://ai.builder.io"});var M_,B_=k(()=>{M_="1.6.48"});var j_=D(Wb=>{g();var $_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Wb.encode=function(e){if(0<=e&&e<$_.length)return $_[e];throw new TypeError("Must be between 0 and 63: "+e)};Wb.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 Xb=D(Yb=>{g();var U_=j_(),Jb=5,q_=1<<Jb,z_=q_-1,K_=q_;function dG(e){return e<0?(-e<<1)+1:(e<<1)+0}function fG(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Yb.encode=function(t){var r="",n,i=dG(t);do n=i&z_,i>>>=Jb,i>0&&(n|=K_),r+=U_.encode(n);while(i>0);return r};Yb.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=U_.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(c&K_),c&=z_,s=s+(c<<a),a+=Jb}while(o);n.value=fG(s),n.rest=r}});var ec=D(Jt=>{g();function mG(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Jt.getArg=mG;var H_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,hG=/^data:.+\,.+$/;function iu(e){var t=e.match(H_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Jt.urlParse=iu;function Zo(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}Jt.urlGenerate=Zo;var gG=32;function yG(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>gG&&t.pop(),s}}var Qb=yG(function(t){var r=t,n=iu(t);if(n){if(!n.path)return t;r=n.path}for(var i=Jt.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,Zo(n)):r});Jt.normalize=Qb;function G_(e,t){e===""&&(e="."),t===""&&(t=".");var r=iu(t),n=iu(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zo(r);if(r||t.match(hG))return t;if(n&&!n.host&&!n.path)return n.host=t,Zo(n);var i=t.charAt(0)==="/"?t:Qb(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zo(n)):i}Jt.join=G_;Jt.isAbsolute=function(e){return e.charAt(0)==="/"||H_.test(e)};function bG(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)}Jt.relative=bG;var V_=function(){var e=Object.create(null);return!("__proto__"in e)}();function W_(e){return e}function xG(e){return J_(e)?"$"+e:e}Jt.toSetString=V_?W_:xG;function vG(e){return J_(e)?e.slice(1):e}Jt.fromSetString=V_?W_:vG;function J_(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 EG(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)}Jt.compareByOriginalPositions=EG;function wG(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)}Jt.compareByOriginalPositionsNoSource=wG;function CG(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)}Jt.compareByGeneratedPositionsDeflated=CG;function DG(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)}Jt.compareByGeneratedPositionsDeflatedNoLine=DG;function is(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function SG(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)}Jt.compareByGeneratedPositionsInflated=SG;function TG(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Jt.parseSourceMapInput=TG;function AG(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=iu(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=G_(Zo(n),t)}return Qb(t)}Jt.computeSourceURL=AG});var tx=D(Y_=>{g();var Zb=ec(),ex=Object.prototype.hasOwnProperty,Fa=typeof Map<"u";function ss(){this._array=[],this._set=Fa?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 Fa?this._set.size:Object.getOwnPropertyNames(this._set).length};ss.prototype.add=function(t,r){var n=Fa?t:Zb.toSetString(t),i=Fa?this.has(t):ex.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Fa?this._set.set(t,s):this._set[n]=s)};ss.prototype.has=function(t){if(Fa)return this._set.has(t);var r=Zb.toSetString(t);return ex.call(this._set,r)};ss.prototype.indexOf=function(t){if(Fa){var r=this._set.get(t);if(r>=0)return r}else{var n=Zb.toSetString(t);if(ex.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()};Y_.ArraySet=ss});var Z_=D(Q_=>{g();var X_=ec();function PG(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||X_.compareByGeneratedPositionsInflated(e,t)<=0}function Af(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Af.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Af.prototype.add=function(t){PG(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Af.prototype.toArray=function(){return this._sorted||(this._array.sort(X_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Q_.MappingList=Af});var rx=D(e2=>{g();var su=Xb(),Lt=ec(),Pf=tx().ArraySet,_G=Z_().MappingList;function In(e){e||(e={}),this._file=Lt.getArg(e,"file",null),this._sourceRoot=Lt.getArg(e,"sourceRoot",null),this._skipValidation=Lt.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=Lt.getArg(e,"ignoreInvalidMapping",!1),this._sources=new Pf,this._names=new Pf,this._mappings=new _G,this._sourcesContents=null}In.prototype._version=3;In.fromSourceMap=function(t,r){var n=t.sourceRoot,i=new In(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=Lt.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=Lt.relative(n,s)),i._sources.has(a)||i._sources.add(a);var o=t.sourceContentFor(s);o!=null&&i.setSourceContent(s,o)}),i};In.prototype.addMapping=function(t){var r=Lt.getArg(t,"generated"),n=Lt.getArg(t,"original",null),i=Lt.getArg(t,"source",null),s=Lt.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}))};In.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Lt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Lt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Lt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};In.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=Lt.relative(s,i));var a=new Pf,o=new Pf;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=Lt.join(n,c.source)),s!=null&&(c.source=Lt.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=Lt.join(n,c)),s!=null&&(c=Lt.relative(s,c)),this.setSourceContent(c,l))},this)};In.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)}};In.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(!Lt.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=su.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=su.encode(p-a),a=p,c+=su.encode(l.originalLine-1-i),i=l.originalLine-1,c+=su.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(u=this._names.indexOf(l.name),c+=su.encode(u-s),s=u)),o+=c}return o};In.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Lt.relative(r,n));var i=Lt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};In.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};In.prototype.toString=function(){return JSON.stringify(this.toJSON())};e2.SourceMapGenerator=In});var t2=D(Oa=>{g();Oa.GREATEST_LOWER_BOUND=1;Oa.LEAST_UPPER_BOUND=2;function nx(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?nx(a,t,r,n,i,s):s==Oa.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?nx(e,a,r,n,i,s):s==Oa.LEAST_UPPER_BOUND?a:e<0?-1:e}Oa.search=function(t,r,n,i){if(r.length===0)return-1;var s=nx(-1,r.length,t,r,n,i||Oa.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var i2=D(n2=>{g();function IG(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 kG(e){let t=IG.toString();return new Function(`return ${t}`)()(e)}var r2=new WeakMap;n2.quickSort=function(e,t,r=0){let n=r2.get(t);n===void 0&&(n=kG(t),r2.set(t,n)),n(e,t,r,e.length-1)}});var o2=D(_f=>{g();var ne=ec(),sx=t2(),tc=tx().ArraySet,NG=Xb(),au=i2().quickSort;function ht(e,t){var r=e;return typeof e=="string"&&(r=ne.parseSourceMapInput(e)),r.sections!=null?new Yn(r,t):new lr(r,t)}ht.fromSourceMap=function(e,t){return lr.fromSourceMap(e,t)};ht.prototype._version=3;ht.prototype.__generatedMappings=null;Object.defineProperty(ht.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});ht.prototype.__originalMappings=null;Object.defineProperty(ht.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});ht.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};ht.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};ht.GENERATED_ORDER=1;ht.ORIGINAL_ORDER=2;ht.GREATEST_LOWER_BOUND=1;ht.LEAST_UPPER_BOUND=2;ht.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||ht.GENERATED_ORDER,a;switch(s){case ht.GENERATED_ORDER:a=this._generatedMappings;break;case ht.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)})}};ht.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,sx.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};_f.SourceMapConsumer=ht;function lr(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=tc.fromArray(s.map(String),!0),this._sources=tc.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}lr.prototype=Object.create(ht.prototype);lr.prototype.consumer=ht;lr.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};lr.fromSourceMap=function(t,r){var n=Object.create(lr.prototype),i=n._names=tc.fromArray(t._names.toArray(),!0),s=n._sources=tc.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 a2;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 au(n.__originalMappings,ne.compareByOriginalPositions),n};lr.prototype._version=3;Object.defineProperty(lr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function a2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var ix=ne.compareByGeneratedPositionsDeflatedNoLine;function s2(e,t){let r=e.length,n=e.length-t;if(!(n<=1))if(n==2){let i=e[t],s=e[t+1];ix(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(ix(a,o)<=0)break;e[s-1]=o,e[s]=a}else au(e,ix,t)}lr.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,v,w;let x=0;for(;u<l;)if(t.charAt(u)===";")n++,u++,i=0,s2(f,x),x=f.length;else if(t.charAt(u)===",")u++;else{for(m=new a2,m.generatedLine=n,v=u;v<l&&!this._charIsMappingSeparator(t,v);v++);for(y=t.slice(u,v),b=[];u<v;)NG.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 C=m.source;for(;h.length<=C;)h.push(null);h[C]===null&&(h[C]=[]),h[C].push(m)}}s2(f,x),this.__generatedMappings=f;for(var E=0;E<h.length;E++)h[E]!=null&&au(h[E],ne.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};lr.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 sx.search(t,r,s,a)};lr.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}};lr.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",ht.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}};lr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};lr.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.')};lr.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",ht.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}};_f.BasicSourceMapConsumer=lr;function Yn(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 tc,this._names=new tc;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 ht(ne.getArg(a,"map"),t)}})}Yn.prototype=Object.create(ht.prototype);Yn.prototype.constructor=ht;Yn.prototype._version=3;Object.defineProperty(Yn.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}});Yn.prototype.originalPositionFor=function(t){var r={generatedLine:ne.getArg(t,"line"),generatedColumn:ne.getArg(t,"column")},n=sx.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}};Yn.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Yn.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.')};Yn.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}};Yn.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)}au(this.__generatedMappings,ne.compareByGeneratedPositionsDeflated),au(this.__originalMappings,ne.compareByOriginalPositions)};_f.IndexedSourceMapConsumer=Yn});var l2=D(c2=>{g();var FG=rx().SourceMapGenerator,If=ec(),OG=/(\r?\n)/,RG=10,rc="$$$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[rc]=!0,n!=null&&this.add(n)}pn.fromStringWithSourceMap=function(t,r,n){var i=new pn,s=t.split(OG),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=If.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?If.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[rc]||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[rc]||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[rc]?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[rc]?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[If.toSetString(t)]=r};pn.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][rc]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(If.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 FG(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)===RG?(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}};c2.SourceNode=pn});var u2=D(kf=>{g();kf.SourceMapGenerator=rx().SourceMapGenerator;kf.SourceMapConsumer=o2().SourceMapConsumer;kf.SourceNode=l2().SourceNode});var U2=D(gu=>{"use strict";g();Object.defineProperty(gu,"__esModule",{value:!0});function LG(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 _i=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}},oc=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 _r(e,t){let{line:r,column:n,index:i}=e;return new _i(r,n+t,i+t)}var p2="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",BG={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:p2},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:p2}},d2={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"},Of=e=>e.type==="UpdateExpression"?d2.UpdateExpression[`${e.prefix}`]:d2[e.type],MG={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 ${Of(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Of(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Of(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."},$G={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."},jG=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),UG={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 ${Of({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.'},qG=["message"];function f2(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function zG({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),f2(c,"clone",function(u={}){var p;let{line:d,column:h,index:f}=(p=u.loc)!=null?p:a;return s(new _i(d,h,f),Object.assign({},o,u.details))}),f2(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=LG(s,qG),c=typeof a=="string"?()=>a:a;r[n]=zG(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:c},t?{syntaxPlugin:t}:{},o))}return r}var T=Object.assign({},ls(BG),ls(MG),ls($G),ls`pipelineOperator`(UG)),{defineProperty:KG}=Object,m2=(e,t)=>{e&&KG(e,t,{enumerable:!1,value:e[t]})};function ou(e){return m2(e.loc.start,"index"),m2(e.loc.end,"index"),e}var HG=e=>class extends e{parse(){let r=ou(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(ou)),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 ou(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),ou(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),ou(r)}},La=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},Qe={brace:new La("{"),j_oTag:new La("<tag"),j_cTag:new La("</tag"),j_expr:new La("<tag>...</tag>",!0)};Qe.template=new La("`",!0);var De=!0,W=!0,ax=!0,cu=!0,Ks=!0,GG=!0,Bf=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}},Nx=new Map;function Pe(e,t={}){t.keyword=e;let r=se(e,t);return Nx.set(e,r),r}function Pr(e,t){return se(e,{beforeExpr:De,binop:t})}var du=-1,os=[],Fx=[],Ox=[],Rx=[],Lx=[],Bx=[];function se(e,t={}){var r,n,i,s;return++du,Fx.push(e),Ox.push((r=t.binop)!=null?r:-1),Rx.push((n=t.beforeExpr)!=null?n:!1),Lx.push((i=t.startsExpr)!=null?i:!1),Bx.push((s=t.prefix)!=null?s:!1),os.push(new Bf(e,t)),du}function Ce(e,t={}){var r,n,i,s;return++du,Nx.set(e,du),Fx.push(e),Ox.push((r=t.binop)!=null?r:-1),Rx.push((n=t.beforeExpr)!=null?n:!1),Lx.push((i=t.startsExpr)!=null?i:!1),Bx.push((s=t.prefix)!=null?s:!1),os.push(new Bf("name",t)),du}var VG={bracketL:se("[",{beforeExpr:De,startsExpr:W}),bracketHashL:se("#[",{beforeExpr:De,startsExpr:W}),bracketBarL:se("[|",{beforeExpr:De,startsExpr:W}),bracketR:se("]"),bracketBarR:se("|]"),braceL:se("{",{beforeExpr:De,startsExpr:W}),braceBarL:se("{|",{beforeExpr:De,startsExpr:W}),braceHashL:se("#{",{beforeExpr:De,startsExpr:W}),braceR:se("}"),braceBarR:se("|}"),parenL:se("(",{beforeExpr:De,startsExpr:W}),parenR:se(")"),comma:se(",",{beforeExpr:De}),semi:se(";",{beforeExpr:De}),colon:se(":",{beforeExpr:De}),doubleColon:se("::",{beforeExpr:De}),dot:se("."),question:se("?",{beforeExpr:De}),questionDot:se("?."),arrow:se("=>",{beforeExpr:De}),template:se("template"),ellipsis:se("...",{beforeExpr:De}),backQuote:se("`",{startsExpr:W}),dollarBraceL:se("${",{beforeExpr:De,startsExpr:W}),templateTail:se("...`",{startsExpr:W}),templateNonTail:se("...${",{beforeExpr:De,startsExpr:W}),at:se("@"),hash:se("#",{startsExpr:W}),interpreterDirective:se("#!..."),eq:se("=",{beforeExpr:De,isAssign:cu}),assign:se("_=",{beforeExpr:De,isAssign:cu}),slashAssign:se("_=",{beforeExpr:De,isAssign:cu}),xorAssign:se("_=",{beforeExpr:De,isAssign:cu}),moduloAssign:se("_=",{beforeExpr:De,isAssign:cu}),incDec:se("++/--",{prefix:Ks,postfix:GG,startsExpr:W}),bang:se("!",{beforeExpr:De,prefix:Ks,startsExpr:W}),tilde:se("~",{beforeExpr:De,prefix:Ks,startsExpr:W}),doubleCaret:se("^^",{startsExpr:W}),doubleAt:se("@@",{startsExpr:W}),pipeline:Pr("|>",0),nullishCoalescing:Pr("??",1),logicalOR:Pr("||",1),logicalAND:Pr("&&",2),bitwiseOR:Pr("|",3),bitwiseXOR:Pr("^",4),bitwiseAND:Pr("&",5),equality:Pr("==/!=/===/!==",6),lt:Pr("</>/<=/>=",7),gt:Pr("</>/<=/>=",7),relational:Pr("</>/<=/>=",7),bitShift:Pr("<</>>/>>>",8),bitShiftL:Pr("<</>>/>>>",8),bitShiftR:Pr("<</>>/>>>",8),plusMin:se("+/-",{beforeExpr:De,binop:9,prefix:Ks,startsExpr:W}),modulo:se("%",{binop:10,startsExpr:W}),star:se("*",{binop:10}),slash:Pr("/",10),exponent:se("**",{beforeExpr:De,binop:11,rightAssociative:!0}),_in:Pe("in",{beforeExpr:De,binop:7}),_instanceof:Pe("instanceof",{beforeExpr:De,binop:7}),_break:Pe("break"),_case:Pe("case",{beforeExpr:De}),_catch:Pe("catch"),_continue:Pe("continue"),_debugger:Pe("debugger"),_default:Pe("default",{beforeExpr:De}),_else:Pe("else",{beforeExpr:De}),_finally:Pe("finally"),_function:Pe("function",{startsExpr:W}),_if:Pe("if"),_return:Pe("return",{beforeExpr:De}),_switch:Pe("switch"),_throw:Pe("throw",{beforeExpr:De,prefix:Ks,startsExpr:W}),_try:Pe("try"),_var:Pe("var"),_const:Pe("const"),_with:Pe("with"),_new:Pe("new",{beforeExpr:De,startsExpr:W}),_this:Pe("this",{startsExpr:W}),_super:Pe("super",{startsExpr:W}),_class:Pe("class",{startsExpr:W}),_extends:Pe("extends",{beforeExpr:De}),_export:Pe("export"),_import:Pe("import",{startsExpr:W}),_null:Pe("null",{startsExpr:W}),_true:Pe("true",{startsExpr:W}),_false:Pe("false",{startsExpr:W}),_typeof:Pe("typeof",{beforeExpr:De,prefix:Ks,startsExpr:W}),_void:Pe("void",{beforeExpr:De,prefix:Ks,startsExpr:W}),_delete:Pe("delete",{beforeExpr:De,prefix:Ks,startsExpr:W}),_do:Pe("do",{isLoop:ax,beforeExpr:De}),_for:Pe("for",{isLoop:ax}),_while:Pe("while",{isLoop:ax}),_as:Ce("as",{startsExpr:W}),_assert:Ce("assert",{startsExpr:W}),_async:Ce("async",{startsExpr:W}),_await:Ce("await",{startsExpr:W}),_defer:Ce("defer",{startsExpr:W}),_from:Ce("from",{startsExpr:W}),_get:Ce("get",{startsExpr:W}),_let:Ce("let",{startsExpr:W}),_meta:Ce("meta",{startsExpr:W}),_of:Ce("of",{startsExpr:W}),_sent:Ce("sent",{startsExpr:W}),_set:Ce("set",{startsExpr:W}),_source:Ce("source",{startsExpr:W}),_static:Ce("static",{startsExpr:W}),_using:Ce("using",{startsExpr:W}),_yield:Ce("yield",{startsExpr:W}),_asserts:Ce("asserts",{startsExpr:W}),_checks:Ce("checks",{startsExpr:W}),_exports:Ce("exports",{startsExpr:W}),_global:Ce("global",{startsExpr:W}),_implements:Ce("implements",{startsExpr:W}),_intrinsic:Ce("intrinsic",{startsExpr:W}),_infer:Ce("infer",{startsExpr:W}),_is:Ce("is",{startsExpr:W}),_mixins:Ce("mixins",{startsExpr:W}),_proto:Ce("proto",{startsExpr:W}),_require:Ce("require",{startsExpr:W}),_satisfies:Ce("satisfies",{startsExpr:W}),_keyof:Ce("keyof",{startsExpr:W}),_readonly:Ce("readonly",{startsExpr:W}),_unique:Ce("unique",{startsExpr:W}),_abstract:Ce("abstract",{startsExpr:W}),_declare:Ce("declare",{startsExpr:W}),_enum:Ce("enum",{startsExpr:W}),_module:Ce("module",{startsExpr:W}),_namespace:Ce("namespace",{startsExpr:W}),_interface:Ce("interface",{startsExpr:W}),_type:Ce("type",{startsExpr:W}),_opaque:Ce("opaque",{startsExpr:W}),name:se("name",{startsExpr:W}),string:se("string",{startsExpr:W}),num:se("num",{startsExpr:W}),bigint:se("bigint",{startsExpr:W}),decimal:se("decimal",{startsExpr:W}),regexp:se("regexp",{startsExpr:W}),privateName:se("#name",{startsExpr:W}),eof:se("eof"),jsxName:se("jsxName"),jsxText:se("jsxText",{beforeExpr:!0}),jsxTagStart:se("jsxTagStart",{startsExpr:!0}),jsxTagEnd:se("jsxTagEnd"),placeholder:se("%%",{startsExpr:!0})};function $e(e){return e>=93&&e<=132}function WG(e){return e<=92}function Xn(e){return e>=58&&e<=132}function T2(e){return e>=58&&e<=136}function JG(e){return Rx[e]}function dx(e){return Lx[e]}function YG(e){return e>=29&&e<=33}function h2(e){return e>=129&&e<=131}function XG(e){return e>=90&&e<=92}function Mx(e){return e>=58&&e<=92}function QG(e){return e>=39&&e<=59}function ZG(e){return e===34}function eV(e){return Bx[e]}function tV(e){return e>=121&&e<=123}function rV(e){return e>=124&&e<=130}function Gs(e){return Fx[e]}function Rf(e){return Ox[e]}function nV(e){return e===57}function Mf(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 $x="\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",A2="\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",iV=new RegExp("["+$x+"]"),sV=new RegExp("["+$x+A2+"]");$x=A2=null;var P2=[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],aV=[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 fx(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&&iV.test(String.fromCharCode(e)):fx(e,P2)}function ic(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&&sV.test(String.fromCharCode(e)):fx(e,P2)||fx(e,aV)}var jx={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"]},oV=new Set(jx.keyword),cV=new Set(jx.strict),lV=new Set(jx.strictBind);function _2(e,t){return t&&e==="await"||e==="enum"}function I2(e,t){return _2(e,t)||cV.has(e)}function k2(e){return lV.has(e)}function N2(e,t){return I2(e,t)||k2(e)}function uV(e){return oV.has(e)}function pV(e,t,r){return e===64&&t===64&&cs(r)}var dV=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 fV(e){return dV.has(e)}var fu=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},mu=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 fu(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}}},mx=class extends fu{constructor(...t){super(...t),this.declareFunctions=new Set}},hx=class extends mu{createScope(t){return new mx(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)}},gx=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 F2(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 hu(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function lu(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?hu(e,r.comments):F2(n,r.comments)}var yx=class extends gx{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&&F2(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":lu(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":lu(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":lu(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":lu(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":lu(n,n.specifiers,t);break;default:hu(n,r)}else hu(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}}},hV=/\r\n|[\r\n\u2028\u2029]/,Nf=new RegExp(hV.source,"g");function sc(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function g2(e,t,r){for(let n=t;n<r;n++)if(sc(e.charCodeAt(n)))return!0;return!1}var ox=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,cx=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function gV(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 bx=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 _i(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 _i(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}},yV=function(t){return t>=48&&t<=57},y2={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ff={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 b2(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(bV(e,h,t,r)){l+=t.slice(p,r);break}if(h===92){l+=t.slice(p,r);let f=xV(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 bV(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function xV(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.47"}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.48"}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.48"),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.48"),mo());})();`)}async function Ok(e){return Rk(e,`<!doctype html>
|
|
1224
1224
|
<html lang="en" dir="ltr">
|
|
1225
1225
|
<head>
|
|
1226
1226
|
<meta charset="utf-8" />
|
|
@@ -1387,12 +1387,12 @@ Restarting server after Builder Devtools update...
|
|
|
1387
1387
|
</body>
|
|
1388
1388
|
</html>
|
|
1389
1389
|
`)}async function Rk(e,t){let r=await sD(e),n=e.getFrameworks();return t.replace(/__LOCAL_APP_ID__/g,r).replace(/__DEV_TOOLS_URL__/g,e.devToolsServerUrl).replace(/__CLIENT_ID__/g,e.getClientId()).replace(/__FRAMEWORK__/g,n.length?n[0].name:"")}var Lk=k(()=>{"use strict";g();_e()});async function Mk(e,t){let r=new URL("/cli-auth","https://builder.io");r.searchParams.set("client_id",e.getClientId()),r.searchParams.set("host",await e.getDeviceId()),r.searchParams.set("response_type","code"),r.searchParams.set("cli","true");let n=new URL(xa,e.devToolsServerUrl);n.searchParams.set(wd,(0,Bk.platform)()),n.searchParams.set(Cd,process.versions.node);let i=e.getFrameworks();return i.length>0&&(r.searchParams.set(wo,i[0].name),n.searchParams.set(wo,i[0].name)),r.searchParams.set("redirect_url",n.href),r.searchParams.set("preview_url",t),r.href}var Bk,$k=k(()=>{"use strict";g();Co();Bk=require("os")});async function Uk(e,t,r,n){try{if(!e)return Cc(r,n,400,"Builder context closed");let i=iY(r);if(i.pathname===ny){if(r.method==="POST"){let s=await nY(r);if(s)try{let a=await kk(e,JSON.parse(s));return jk(r,n,200,a)}catch(a){e.debug("Dev API Error",a.stack||a.message||a);let o={errors:[String(a.message||a)]};return jk(r,n,500,o)}}else if(r.method==="OPTIONS"){let s={"Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"Content-Type, Cache-Control, X-Builder-Devtools-Version, sentry-trace, baggage"},a=r.headers.origin;a&&a!=="null"?qk(new URL(a))&&(s["Access-Control-Allow-Origin"]=a):s["Access-Control-Allow-Origin"]="*",n.writeHead(200,s),n.end();return}return Cc(r,n,405,`${ny} is an API endpoint used only during development by the Builder.io Devtools client-side script`)}if(i.pathname===iy)return eY(r,n,200,await Fk(e));if(i.pathname===SC){let s=i.searchParams.get(ry);return s?rY(n,302,await Mk(e,s)):Cc(r,n,400,`Missing ${ry} querystring`)}if(i.pathname===xa)return tY(r,n,200,await Ok(e));if(i.pathname===TC){await wt(e,{_:[]},{});let s=await qa(e),{figmaBuilderLinks:a,diagnostics:o}=await Lu({mappingFiles:s,sys:e});return Ru(r,n,200,"application/json",JSON.stringify({figmaBuilderLinks:a,foundErrors:o.length>0,diagnostics:o,version:2,local:!0},null,2))}return i.pathname===va?(e.debug(`Close Dev Tools Server Requested: ${i.href}`),setTimeout(()=>{try{t.close(s=>{e.debug(`Dev Tools Server Closed Error: ${s}`)})}catch(s){e.debug(`Error closing devtools server: ${s}`)}},20),Cc(r,n,200,"Closing Dev Tools Server")):Cc(r,n,404,"Not found")}catch(i){return e?.Sentry?.captureException(i),Cc(r,n,500,`Dev Server Error: ${i}`)}}function jk(e,t,r,n){Ru(e,t,r,"application/json",JSON.stringify(n))}function eY(e,t,r,n){Ru(e,t,r,"application/javascript",n)}function tY(e,t,r,n){Ru(e,t,r,"text/html",n)}function Cc(e,t,r,n){Ru(e,t,r,"text/plain",n)}function Ru(e,t,r,n,i){let s={"Content-Type":`${n}; charset=utf-8`,"Cache-Control":"no-cache, no-store, must-revalidate","X-Builder-Devtools-Version":He},a=e.headers.origin;a&&a!=="null"?qk(new URL(a))&&(s["Access-Control-Allow-Origin"]=a):s["Access-Control-Allow-Origin"]="*",t.writeHead(r,s),t.end(i)}function qk(e){return e.hostname==="localhost"||e.origin==="https://builder.io"||e.origin==="https://www.builder.io"||e.origin.endsWith(".builder.io")?!0:e.port===""?!1:e.port!=="80"&&e.port!=="443"}function rY(e,t,r){e.writeHead(t,{Location:r}),e.end()}async function nY(e){let t="";for await(let r of e)t+=r;return t}function iY(e){let t=e.url||"/";return new URL(t,`http://${e.headers.host}`)}var zk=k(()=>{"use strict";g();Co();Nk();Lk();$k();Vr();Dc();yr()});async function Kk(e){if(globalThis.__builderDevToolsServer)return e.debug("reusing existing devtools server"),globalThis.__builderDevToolsServer.setContext(e),globalThis.__builderDevToolsServer;let t=await sY(e),r=(0,mm.createServer)((i,s)=>{Uk(e,r,i,s)}),n=()=>new Promise((i,s)=>{r.listening?(e.debug(`closing devtools server on port ${t}`),r.close(a=>{e=null,a?(e.debug(`error closing devtools server on port ${t}`),s(a)):(e&&e.debug(`closed devtools server on port ${t}`),i())})):(e.debug(`devtools server on port ${t} not listening`),i())});return process.once("SIGTERM",n),process.once("SIGINT",n),process.env.CI!=="true"&&process.stdin.on("end",n),globalThis.__builderDevToolsServer={url:new URL(`http://localhost:${t}`).href,port:t,setContext:i=>{e.debug(`set devtools context on server ${t}`),e=i},close:async()=>{globalThis.__builderDevToolsServer=null,await n()}},new Promise(i=>{r.listen(t,()=>{e.debug(`started devtools server on port ${t}`),i(globalThis.__builderDevToolsServer)})})}function sY(e){return new Promise(t=>{let r=e.port;try{(0,mm.request)({hostname:"localhost",port:r,path:va,method:"GET"},i=>{i.on("end",()=>{e.debug(`${va} - Response ended`),t(r)})}).on("error",i=>{e.debug(`${va} - No response ${i}`),t(r)}).end()}catch(n){e.debug(`${va} - Error ${n}`),t(r)}})}var mm,Hk=k(()=>{"use strict";g();mm=require("http");zk();Co()});async function w0(e){let t={...e,devToolsServerUrl:"",isValid:!1,serverShouldRestart:!1,publicApiKey:"",port:e.port||5273,ignoreMissingConfig:!1,getAllProjectFiles:e.getAllProjectFiles||(()=>Promise.resolve([]))},r=e.getFrameworks().map(s=>s.name).join(", ");t.debug(`create devtools ${Vk} [${r}]`);let n=await Kk(t);return t.devToolsServerUrl=n.url,t.port=n.port,{getUrl:()=>t.devToolsServerUrl}}var Gk=k(()=>{"use strict";g();Hk();C0()});var Vk,C0=k(()=>{"use strict";g();yr();Gk();Vk=He});async function Wk(e){if(console.log(""),it((0,Js.bgCyan)((0,Js.bold)((0,Js.white)(" add ")))+" "+(0,Js.dim)(He)),!e.path&&!process.stdout.isTTY&&process.env.FORCE_TTY!=="1")return Ne(`This command requires a TTY-enabled terminal.
|
|
1390
|
-
If you are using Windows Git Bash, try a different terminal or wrap the command with winpty.`),await Q(1);let t=e.snippetId;if(!t&&!e.snippet)return Ne("SnippetId expected. npx builder.io add <snippetId>"),await Q(1);let r=To(),n=e.snippet||null;if(!n&&t&&(r.start(`Fetching snippet ${t}`),n=await D0(t),r.stop(`Fetched snippet ${t}`)),!n)return Ne(`No snippet found for id ${t}`),await Q(1);let i=process.cwd(),s=ku(i)??i;if(n.files?.length>0){let a=S0(s,n.framework||"react"),o=e.path||await Rt({message:"Where should we copy the files?",initialValue:a,validate(l){if(l.length===0)return"File path is required!";if(l[0]!==".")return"Please enter a relative path."}});if(Ie(o))return Ne("Cancelled sync"),await Q(0);let c=await hm(s,n,n.files,o,!1);return j.success("All files have been written successfully."),{snippet:n,pathInput:o,writtenFiles:c,timeStamp:Date.now()}}else{let{code:a,suggestedName:o,framework:c}=n;c&&(o=await oY(s,c,a)),o??="./src/components/MyComponent.jsx";let l=Jk(n,aY(n.code),n.framework);try{n.framework==="html"?l=await sn(l,"html"):n.framework==="angular"?l=await sn(l,"angular"):n.framework==="vue"?l=await sn(l,"vue"):n.framework==="svelte"?l=await sn(l,"
|
|
1390
|
+
If you are using Windows Git Bash, try a different terminal or wrap the command with winpty.`),await Q(1);let t=e.snippetId;if(!t&&!e.snippet)return Ne("SnippetId expected. npx builder.io add <snippetId>"),await Q(1);let r=To(),n=e.snippet||null;if(!n&&t&&(r.start(`Fetching snippet ${t}`),n=await D0(t),r.stop(`Fetched snippet ${t}`)),!n)return Ne(`No snippet found for id ${t}`),await Q(1);let i=process.cwd(),s=ku(i)??i;if(n.files?.length>0){let a=S0(s,n.framework||"react"),o=e.path||await Rt({message:"Where should we copy the files?",initialValue:a,validate(l){if(l.length===0)return"File path is required!";if(l[0]!==".")return"Please enter a relative path."}});if(Ie(o))return Ne("Cancelled sync"),await Q(0);let c=await hm(s,n,n.files,o,!1);return j.success("All files have been written successfully."),{snippet:n,pathInput:o,writtenFiles:c,timeStamp:Date.now()}}else{let{code:a,suggestedName:o,framework:c}=n;c&&(o=await oY(s,c,a)),o??="./src/components/MyComponent.jsx";let l=Jk(n,aY(n.code),n.framework);try{n.framework==="html"?l=await sn(s,l,"html",void 0):n.framework==="angular"?l=await sn(s,l,"angular",void 0):n.framework==="vue"?l=await sn(s,l,"vue",void 0):n.framework==="svelte"?l=await sn(s,l,"svelte",void 0):l=await sn(s,l,"typescript",void 0)}catch{}let u=e.path;if(!u){try{let h=(await cm({cwd:process.cwd()})).getFrameworks();if(h.length>0){let f;if(h.some(m=>m.name.includes("qwik"))?f="qwik":h.some(m=>m.name.includes("react"))?f="react":f=h[0].name,n.framework&&n.framework!==f){let m=await hr({message:`This snippet is for ${n.framework}, but you are using ${f}. Continue?`,initialValue:!1});if(Ie(m)||!m)return console.log("Please go back to builder and change the output framework to match your project."),console.log(),await Q(0)}}}catch{}if(u=await Rt({message:"Where should we copy the code?",initialValue:o?.startsWith("./")?o:`./${o}`,validate(d){if(d.length===0)return"File path is required!";if(d[0]!==".")return"Please enter a relative path."}}),Ie(u))return console.log(""),await Q(0)}let p=(0,ii.resolve)(s,u);j.info(`Writing code to ${p}`),(0,pr.mkdirSync)((0,ii.dirname)(p),{recursive:!0}),(0,pr.writeFileSync)(p,l)}}function D0(e){return It(`https://cdn.builder.io/api/v1/snippet/${e}`).then(t=>t.status===404?null:t.json())}function aY(e){return e.replace(/^```jsx\s?|\s?```$/g,"").trim()}function Jk(e,t,r,n=!1){if(!r)return t;let i="This code was generated by Builder.io",s=n?`https://builder.io/content/${e.contentId}?codeSession=${e.sessionKey}&sid=${e.id}`:"",a=["vue","html","svelte"].includes(r.toLowerCase()),o=[i,s].filter(Boolean);return`${a?o.map(l=>`<!-- ${l} -->`).join(`
|
|
1391
1391
|
`):`/**
|
|
1392
1392
|
${o.map(l=>` * ${l}`).join(`
|
|
1393
1393
|
`)}
|
|
1394
1394
|
*/`}
|
|
1395
|
-
${t}`}async function oY(e,t,r){let n,i=lY(r,t.toLowerCase());switch(t.toLowerCase()){case"react":let s=await cY(e);n=`components/${i||"MyComponent"}.${s?"tsx":"jsx"}`;break;case"angular":n=`app/components/${i||"my-component"}.component.ts`;break;case"vue":n=`components/${i||"MyComponent"}.vue`;break;case"svelte":n=`components/${i||"MyComponent"}.svelte`;break;case"html":n=`${i||"my-design"}.html`;break;case"qwik":n=`components/${i||"MyComponent"}.tsx`;break;default:n=`components/${i||"MyComponent"}.tsx`}return n=(0,pr.existsSync)("./src")?`./src/${n}`:`./${n}`,n}async function cY(e){if((0,pr.existsSync)((0,ii.join)(e,"./tsconfig.json")))return!0;let t=u0(e);return t&&(0,pr.existsSync)((0,ii.join)(t,"./package.json"))?(0,pr.readFileSync)((0,ii.join)(t,"./package.json"),"utf-8").includes("typescript"):!1}function lY(e,t){let r={vue:/name:\s*'([^']+)'/,react:/function (\w+)\([\w\W]+\)/,qwik:/export const (\w+) = component\$/,angular:/selector:\s*'([^']+)'/};if(!r[t])return null;let n=e.match(r[t]);return t==="react"&&!n?.[1]?e.match(/const (\w+)[\w\W]+=\s*\(/)?.[1]||null:n?.[1]||null}async function hm(e,t,r,n,i){let s=[];for(let a of r){let o=uY(n,a.path),c=(0,ii.resolve)(e,o);if("code"in a){let l=await dY(t,a.code,pY(a.path),i);(0,pr.existsSync)(c)||(0,pr.mkdirSync)((0,ii.dirname)(c),{recursive:!0}),(0,pr.writeFileSync)(c,l),s.push({...a,path:o,code:l,timestamp:(0,pr.statSync)(c).mtime.getTime()}),j.info(`Writing file to ${c}`)}else(0,pr.mkdirSync)(c,{recursive:!0}),s=s.concat(await hm(e,t,a.files,o,i))}return s}function uY(e,t){let r=e.replace(/^\.?\/+|\/+$/g,""),n=t.replace(/^\.?\/+|\/+$/g,""),i=r.split("/").filter(Boolean),s=n.split("/").filter(Boolean),a=-1;for(let c=0;c<i.length;c++){let l=s.indexOf(i[c]);l!==-1&&(a=l)}return[...i,...s.slice(a+1)].join("/")}function pY(e){switch(e.split(".").pop()?.toLowerCase()){case"html":case"svelte":return"html";case"vue":return"vue";case"ts":case"tsx":case"js":case"jsx":return"typescript";case"css":return"css";case"json":return"json";default:return"typescript"}}async function dY(e,t,r,n){let i=t;try{i=await sn(t,r)}catch{}return n?Jk(e,i,r,n):i}function S0(e,t){let n=(0,pr.existsSync)((0,ii.join)(e,"src"))?"src/":"";switch(t.toLowerCase()){case"angular":return`./${n}app/components/`;case"html":return"./";default:return`./${n}components/`}}var ii,pr,Js,T0=k(()=>{"use strict";g();or();ii=require("path"),pr=require("fs");xc();Al();Js=K(dt(),1);un();Ni();yr()});function e8(e){let t=e.match(/builder\.io\/content\/([^?]+)\?codeSession=([^&]+)&sid=([^\s]+)/);return t?{contentId:t[1],sessionKey:t[2],snippetId:t[3]}:{}}async function Xs(e,t,r="**/*"){let n=t??ym(e);return await(0,A0.glob)(r,{cwd:e,ignore:{ignored(s){return n(s.relative())}},absolute:!1,posix:!0,nodir:!0})}async function fY(e,t,r){let n=await(0,A0.glob)("**/*",{cwd:e,ignore:["node_modules/**"],nodir:!0}),i=[];for(let s of n){let a=(0,Fr.resolve)(e,s);try{let o=(0,Wr.readFileSync)(a,"utf-8");if(o.includes("This code was generated by Builder.io")){let c=e8(o);if(t&&r&&(c.contentId!==t||c.sessionKey!==r))continue;i.push({path:s,code:gm(o),name:s.split("/").pop()||"",timestamp:(0,Wr.statSync)(a).mtime.getTime(),snippetId:c.snippetId})}}catch(o){console.error(`Error reading file ${a}:`,o)}}return i}function mY(e,t){let r=e8(e);return r.contentId===t.contentId&&r.sessionKey===t.sessionKey}function t8(e){return e.filter(t=>!t.endsWith(".png")&&!t.endsWith(".jpg")&&!t.endsWith(".jpeg")&&!t.endsWith(".gif")&&!t.endsWith(".webp")&&!t.includes(".mapper."))}function ym(e){let t=["*.yml","*.yaml","*.snap","*.liquid",".git",".DS_Store",".vscode","node_modules",".next","coverage","example","yarn.lock","pnpm-lock.yaml","__snapshots__","package-lock.json","builder-registry.*",".gradle","xcuserdata",".build","*.zip"],r=(0,Zk.default)().add(t);function n(i){try{let s=(0,Fr.resolve)(e,i);if((0,Wr.existsSync)(s)){let a=(0,Wr.readFileSync)(s,"utf8");r.add(a)}}catch(s){console.debug(`No ${i} found or error reading it:`,s)}}return n(".gitignore"),n(".prettierignore"),n(".builderignore"),i=>{let s=(0,Fr.relative)(e,i);if(!s)return!1;let a=s.split(Fr.sep).join("/");return r.ignores(a)}}function Yk(e,t,r){let n=ym(e),i=Qk.default.watch(e,{ignored:n,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:500,pollInterval:600},ignorePermissionErrors:!0,followSymlinks:!1,atomic:600}),s=async o=>{let c=(0,Fr.relative)(e,o);try{let l=(0,Wr.readFileSync)(o,"utf-8");if(mY(l,t.snippet)){let u=t.writtenFiles.find(p=>p.path===c);u?(u.code=gm(l),u.timestamp=Date.now()):t.writtenFiles.push({path:c,code:gm(l),timestamp:Date.now(),name:c.split("/").pop()||""}),t.timeStamp=Date.now(),r(t)}}catch(l){console.debug(`Error reading file ${o}:`,l)}};i.on("add",async o=>{j.info(`File added: ${o}`),await s(o)}).on("change",async o=>{j.info(`File changed: ${o}`),await s(o)}).on("unlink",o=>{j.info(`File deleted: ${o}`);let c=(0,Fr.relative)(e,o);t.writtenFiles=t.writtenFiles.filter(l=>l.path!==c),t.timeStamp=Date.now(),r(t)}).on("unlinkDir",o=>{j.info(`Folder deleted: ${o}`);let c=(0,Fr.relative)(e,o);t.writtenFiles=t.writtenFiles.filter(l=>!l.path.startsWith(c)),t.timeStamp=Date.now(),r(t)}).on("ready",()=>{console.debug("Initial scan complete. Ready for changes.")}).on("error",o=>{console.error(`Watcher error: ${o}`)}),i.on("raw",async(o,c,l)=>{if(o==="rename"){j.info(`File renamed: ${l?.oldPath} -> ${c}`);let u=l?.oldPath?(0,Fr.relative)(e,l.oldPath):void 0,p=c?(0,Fr.relative)(e,c):void 0;if(u&&p){let d=t.writtenFiles.find(h=>h.path===u);d&&(d.path=p,t.timeStamp=Date.now(),r(t))}}});let a=async()=>{await i.close()};return process.on("SIGINT",a),process.on("SIGTERM",a),a}async function r8(e,t){console.log(""),it((0,Ys.bgMagenta)((0,Ys.bold)((0,Ys.white)(" sync server ")))+" "+(0,Ys.dim)(He)),e.debug("builder sync server init");let r=await qs(e),n=t,i=()=>Promise.resolve();n&&setTimeout(()=>{i=Yk(e.getAppRootDir(),n,s=>{n=s})},1e3),await w0({...r,ensureFigmaImportPage:()=>Promise.reject("Not supported"),getPastSyncInfo:({sessionKey:s,since:a})=>!n||s!==n.snippet.sessionKey?null:{...n,hasChanged:n.timeStamp>a},resyncSnippet:async s=>{await i();let a=await P0({path:n?.pathInput,snippet:s.snippet,cwd:e.getAppRootDir()});return a&&(n=a,i=Yk(e.getAppRootDir(),n,o=>{n=o})),n},getClientId:()=>"builder-sync-cli",closeAppServer:async()=>{await i()},restartAppServer:async()=>{e.debug("restart server")},enableAppWatch:async s=>s,...e})}async function P0(e){let t=e.snippetId,r=e.snippet||null;if(!r&&t&&(r=await D0(t)),!r)return Ne(`No snippet found for id ${t}`),await Q(1);let n=process.cwd(),i=ku(n)??n,s=await fY(i,r.contentId,r.sessionKey),a=s.filter(p=>p.snippetId===r.id);if(j.info(`Found ${a.length} matching files for snippet ${r.id} in existing files ${s.length}`),a.length>0){let p=Math.max(...a.map(d=>d.timestamp||0));return{snippet:r,writtenFiles:a,pathInput:Xk(a.map(d=>d.path)),timeStamp:p}}let o=S0(i,r.framework||"react"),c=e.path||Xk(s.map(p=>p.path))||await Rt({message:"Where should we copy the files?",initialValue:o,validate(p){if(p.length===0)return"File path is required!";if(p[0]!==".")return"Please enter a relative path."}});Ie(c)&&(Ne("Cancelled sync"),process.exit(0));for(let p of s){let d=(0,Fr.resolve)(i,p.path);try{(0,Wr.unlinkSync)(d),j.info(`Deleted old file: ${d}`);let h=(0,Fr.dirname)(d);(0,Wr.readdirSync)(h).length===0&&((0,Wr.rmdirSync)(h),j.info(`Deleted empty folder: ${h}`))}catch(h){j.error(`Error cleaning up file ${d}: ${h}`)}}let l=await hm(i,r,r.files,c,!0);j.success("All files have been written successfully.");let u=Math.max(...l.map(p=>p.timestamp||0));return{snippet:r,writtenFiles:l.map(p=>({...p,code:gm(p.code)})),pathInput:c,timeStamp:u||Date.now()}}function gm(e){if(!e)return e;let t=/<!--\s*This code was generated by Builder\.io\s*-->\s*(?:<!--\s*https:\/\/builder\.io\/content\/[a-f0-9]+\?codeSession=[a-f0-9]+&sid=[a-f0-9]+\s*-->\s*)?/,r=/\/\*\*\s*\n\s*\* This code was generated by Builder\.io\s*\n\s*\* https:\/\/builder\.io\/content\/[a-f0-9]+\?codeSession=[a-f0-9]+&sid=[a-f0-9]+\s*\n\s*\*\/\s*/,n=e.replace(t,"").replace(r,"");return n=n.replace(/^\n+/,""),n}function Xk(e){if(e.length===0)return"";if(e.length===1)return`./${e[0].slice(0,e[0].lastIndexOf("/")+1)}`;let t=e.map(i=>i.split("/")),r=Math.min(...t.map(i=>i.length)),n=[];for(let i=0;i<r;i++){let s=t[0][i];if(t.every(a=>a[i]===s))n.push(s);else break}return`./${n.join("/")}`}var Fr,Wr,Ys,A0,Qk,Zk,Sc=k(()=>{"use strict";g();Fr=require("path"),Wr=require("fs"),Ys=K(dt(),1),A0=require("glob");Ql();C0();T0();or();Qk=K(require("chokidar"),1),Zk=K(require("ignore"),1);un();xc();yr()});function I0(){let{env:e}=_0.default,{TERM:t,TERM_PROGRAM:r}=e;return _0.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var _0,n8=k(()=>{g();_0=K(require("process"),1)});function vY({input:e=bm.stdin,output:t=bm.stdout,overwrite:r=!0,hideCursor:n=!0}={}){let i=Qs.createInterface({input:e,output:t,prompt:"",tabSize:1});Qs.emitKeypressEvents(e,i),e.isTTY&&e.setRawMode(!0);let s=(a,{name:o})=>{if(String(a)===""){n&&t.write(fs.cursor.show),process.exit(0);return}if(!r)return;Qs.moveCursor(t,o==="return"?0:-1,o==="return"?-1:0,()=>{Qs.clearLine(t,1,()=>{e.once("keypress",s)})})};return n&&t.write(fs.cursor.hide),e.once("keypress",s),()=>{e.off("keypress",s),n&&t.write(fs.cursor.show),e.isTTY&&!xY&&e.setRawMode(!1),i.terminal=!1,i.close()}}var k0,fs,bm,Qs,Bu,Fi,N0,xm,hY,gY,yY,bY,xY,Mu=k(()=>{"use strict";g();n8();k0=K(dt(),1),fs=K(Dd(),1),bm=require("process"),Qs=K(require("readline"),1),Bu=K(dt(),1),Fi=()=>{let e=N0?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=N0?80:120,r,n,i=!1,s="",a="",o="",c=b=>{let v=b>1?"Something went wrong":"Canceled";i&&f(v,b)},l=(b,v)=>{console.error(v,b),c(2)},u=()=>c(1),p=()=>{process.on("uncaughtExceptionMonitor",l),process.on("unhandledRejection",l),process.on("SIGINT",u),process.on("SIGTERM",u),process.on("exit",c)},d=()=>{process.removeListener("uncaughtExceptionMonitor",l),process.removeListener("unhandledRejection",l),process.removeListener("SIGINT",u),process.removeListener("SIGTERM",u),process.removeListener("exit",c)},h=(b="")=>{i=!0,r=vY(),s=b.replace(/\.+$/,""),process.stdout.write(`${k0.default.gray(hY)}
|
|
1395
|
+
${t}`}async function oY(e,t,r){let n,i=lY(r,t.toLowerCase());switch(t.toLowerCase()){case"react":let s=await cY(e);n=`components/${i||"MyComponent"}.${s?"tsx":"jsx"}`;break;case"angular":n=`app/components/${i||"my-component"}.component.ts`;break;case"vue":n=`components/${i||"MyComponent"}.vue`;break;case"svelte":n=`components/${i||"MyComponent"}.svelte`;break;case"html":n=`${i||"my-design"}.html`;break;case"qwik":n=`components/${i||"MyComponent"}.tsx`;break;default:n=`components/${i||"MyComponent"}.tsx`}return n=(0,pr.existsSync)("./src")?`./src/${n}`:`./${n}`,n}async function cY(e){if((0,pr.existsSync)((0,ii.join)(e,"./tsconfig.json")))return!0;let t=u0(e);return t&&(0,pr.existsSync)((0,ii.join)(t,"./package.json"))?(0,pr.readFileSync)((0,ii.join)(t,"./package.json"),"utf-8").includes("typescript"):!1}function lY(e,t){let r={vue:/name:\s*'([^']+)'/,react:/function (\w+)\([\w\W]+\)/,qwik:/export const (\w+) = component\$/,angular:/selector:\s*'([^']+)'/};if(!r[t])return null;let n=e.match(r[t]);return t==="react"&&!n?.[1]?e.match(/const (\w+)[\w\W]+=\s*\(/)?.[1]||null:n?.[1]||null}async function hm(e,t,r,n,i){let s=[];for(let a of r){let o=uY(n,a.path),c=(0,ii.resolve)(e,o);if("code"in a){let l=await dY(e,t,a.code,pY(a.path),i);(0,pr.existsSync)(c)||(0,pr.mkdirSync)((0,ii.dirname)(c),{recursive:!0}),(0,pr.writeFileSync)(c,l),s.push({...a,path:o,code:l,timestamp:(0,pr.statSync)(c).mtime.getTime()}),j.info(`Writing file to ${c}`)}else(0,pr.mkdirSync)(c,{recursive:!0}),s=s.concat(await hm(e,t,a.files,o,i))}return s}function uY(e,t){let r=e.replace(/^\.?\/+|\/+$/g,""),n=t.replace(/^\.?\/+|\/+$/g,""),i=r.split("/").filter(Boolean),s=n.split("/").filter(Boolean),a=-1;for(let c=0;c<i.length;c++){let l=s.indexOf(i[c]);l!==-1&&(a=l)}return[...i,...s.slice(a+1)].join("/")}function pY(e){switch(e.split(".").pop()?.toLowerCase()){case"html":case"svelte":return"html";case"vue":return"vue";case"ts":case"tsx":case"js":case"jsx":return"typescript";case"css":return"css";case"json":return"json";default:return"typescript"}}async function dY(e,t,r,n,i){let s=r;try{s=await sn(e,r,n,void 0)}catch{}return i?Jk(t,s,n,i):s}function S0(e,t){let n=(0,pr.existsSync)((0,ii.join)(e,"src"))?"src/":"";switch(t.toLowerCase()){case"angular":return`./${n}app/components/`;case"html":return"./";default:return`./${n}components/`}}var ii,pr,Js,T0=k(()=>{"use strict";g();or();ii=require("path"),pr=require("fs");xc();Al();Js=K(dt(),1);un();Ni();yr()});function e8(e){let t=e.match(/builder\.io\/content\/([^?]+)\?codeSession=([^&]+)&sid=([^\s]+)/);return t?{contentId:t[1],sessionKey:t[2],snippetId:t[3]}:{}}async function Xs(e,t,r="**/*"){let n=t??ym(e);return await(0,A0.glob)(r,{cwd:e,ignore:{ignored(s){return n(s.relative())}},absolute:!1,posix:!0,nodir:!0})}async function fY(e,t,r){let n=await(0,A0.glob)("**/*",{cwd:e,ignore:["node_modules/**"],nodir:!0}),i=[];for(let s of n){let a=(0,Fr.resolve)(e,s);try{let o=(0,Wr.readFileSync)(a,"utf-8");if(o.includes("This code was generated by Builder.io")){let c=e8(o);if(t&&r&&(c.contentId!==t||c.sessionKey!==r))continue;i.push({path:s,code:gm(o),name:s.split("/").pop()||"",timestamp:(0,Wr.statSync)(a).mtime.getTime(),snippetId:c.snippetId})}}catch(o){console.error(`Error reading file ${a}:`,o)}}return i}function mY(e,t){let r=e8(e);return r.contentId===t.contentId&&r.sessionKey===t.sessionKey}function t8(e){return e.filter(t=>!t.endsWith(".png")&&!t.endsWith(".jpg")&&!t.endsWith(".jpeg")&&!t.endsWith(".gif")&&!t.endsWith(".webp")&&!t.includes(".mapper."))}function ym(e){let t=["*.yml","*.yaml","*.snap","*.liquid",".git",".DS_Store",".vscode","node_modules",".next","coverage","example","yarn.lock","pnpm-lock.yaml","__snapshots__","package-lock.json","builder-registry.*",".gradle","xcuserdata",".build","*.zip"],r=(0,Zk.default)().add(t);function n(i){try{let s=(0,Fr.resolve)(e,i);if((0,Wr.existsSync)(s)){let a=(0,Wr.readFileSync)(s,"utf8");r.add(a)}}catch(s){console.debug(`No ${i} found or error reading it:`,s)}}return n(".gitignore"),n(".prettierignore"),n(".builderignore"),i=>{let s=(0,Fr.relative)(e,i);if(!s)return!1;let a=s.split(Fr.sep).join("/");return r.ignores(a)}}function Yk(e,t,r){let n=ym(e),i=Qk.default.watch(e,{ignored:n,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:500,pollInterval:600},ignorePermissionErrors:!0,followSymlinks:!1,atomic:600}),s=async o=>{let c=(0,Fr.relative)(e,o);try{let l=(0,Wr.readFileSync)(o,"utf-8");if(mY(l,t.snippet)){let u=t.writtenFiles.find(p=>p.path===c);u?(u.code=gm(l),u.timestamp=Date.now()):t.writtenFiles.push({path:c,code:gm(l),timestamp:Date.now(),name:c.split("/").pop()||""}),t.timeStamp=Date.now(),r(t)}}catch(l){console.debug(`Error reading file ${o}:`,l)}};i.on("add",async o=>{j.info(`File added: ${o}`),await s(o)}).on("change",async o=>{j.info(`File changed: ${o}`),await s(o)}).on("unlink",o=>{j.info(`File deleted: ${o}`);let c=(0,Fr.relative)(e,o);t.writtenFiles=t.writtenFiles.filter(l=>l.path!==c),t.timeStamp=Date.now(),r(t)}).on("unlinkDir",o=>{j.info(`Folder deleted: ${o}`);let c=(0,Fr.relative)(e,o);t.writtenFiles=t.writtenFiles.filter(l=>!l.path.startsWith(c)),t.timeStamp=Date.now(),r(t)}).on("ready",()=>{console.debug("Initial scan complete. Ready for changes.")}).on("error",o=>{console.error(`Watcher error: ${o}`)}),i.on("raw",async(o,c,l)=>{if(o==="rename"){j.info(`File renamed: ${l?.oldPath} -> ${c}`);let u=l?.oldPath?(0,Fr.relative)(e,l.oldPath):void 0,p=c?(0,Fr.relative)(e,c):void 0;if(u&&p){let d=t.writtenFiles.find(h=>h.path===u);d&&(d.path=p,t.timeStamp=Date.now(),r(t))}}});let a=async()=>{await i.close()};return process.on("SIGINT",a),process.on("SIGTERM",a),a}async function r8(e,t){console.log(""),it((0,Ys.bgMagenta)((0,Ys.bold)((0,Ys.white)(" sync server ")))+" "+(0,Ys.dim)(He)),e.debug("builder sync server init");let r=await qs(e),n=t,i=()=>Promise.resolve();n&&setTimeout(()=>{i=Yk(e.getAppRootDir(),n,s=>{n=s})},1e3),await w0({...r,ensureFigmaImportPage:()=>Promise.reject("Not supported"),getPastSyncInfo:({sessionKey:s,since:a})=>!n||s!==n.snippet.sessionKey?null:{...n,hasChanged:n.timeStamp>a},resyncSnippet:async s=>{await i();let a=await P0({path:n?.pathInput,snippet:s.snippet,cwd:e.getAppRootDir()});return a&&(n=a,i=Yk(e.getAppRootDir(),n,o=>{n=o})),n},getClientId:()=>"builder-sync-cli",closeAppServer:async()=>{await i()},restartAppServer:async()=>{e.debug("restart server")},enableAppWatch:async s=>s,...e})}async function P0(e){let t=e.snippetId,r=e.snippet||null;if(!r&&t&&(r=await D0(t)),!r)return Ne(`No snippet found for id ${t}`),await Q(1);let n=process.cwd(),i=ku(n)??n,s=await fY(i,r.contentId,r.sessionKey),a=s.filter(p=>p.snippetId===r.id);if(j.info(`Found ${a.length} matching files for snippet ${r.id} in existing files ${s.length}`),a.length>0){let p=Math.max(...a.map(d=>d.timestamp||0));return{snippet:r,writtenFiles:a,pathInput:Xk(a.map(d=>d.path)),timeStamp:p}}let o=S0(i,r.framework||"react"),c=e.path||Xk(s.map(p=>p.path))||await Rt({message:"Where should we copy the files?",initialValue:o,validate(p){if(p.length===0)return"File path is required!";if(p[0]!==".")return"Please enter a relative path."}});Ie(c)&&(Ne("Cancelled sync"),process.exit(0));for(let p of s){let d=(0,Fr.resolve)(i,p.path);try{(0,Wr.unlinkSync)(d),j.info(`Deleted old file: ${d}`);let h=(0,Fr.dirname)(d);(0,Wr.readdirSync)(h).length===0&&((0,Wr.rmdirSync)(h),j.info(`Deleted empty folder: ${h}`))}catch(h){j.error(`Error cleaning up file ${d}: ${h}`)}}let l=await hm(i,r,r.files,c,!0);j.success("All files have been written successfully.");let u=Math.max(...l.map(p=>p.timestamp||0));return{snippet:r,writtenFiles:l.map(p=>({...p,code:gm(p.code)})),pathInput:c,timeStamp:u||Date.now()}}function gm(e){if(!e)return e;let t=/<!--\s*This code was generated by Builder\.io\s*-->\s*(?:<!--\s*https:\/\/builder\.io\/content\/[a-f0-9]+\?codeSession=[a-f0-9]+&sid=[a-f0-9]+\s*-->\s*)?/,r=/\/\*\*\s*\n\s*\* This code was generated by Builder\.io\s*\n\s*\* https:\/\/builder\.io\/content\/[a-f0-9]+\?codeSession=[a-f0-9]+&sid=[a-f0-9]+\s*\n\s*\*\/\s*/,n=e.replace(t,"").replace(r,"");return n=n.replace(/^\n+/,""),n}function Xk(e){if(e.length===0)return"";if(e.length===1)return`./${e[0].slice(0,e[0].lastIndexOf("/")+1)}`;let t=e.map(i=>i.split("/")),r=Math.min(...t.map(i=>i.length)),n=[];for(let i=0;i<r;i++){let s=t[0][i];if(t.every(a=>a[i]===s))n.push(s);else break}return`./${n.join("/")}`}var Fr,Wr,Ys,A0,Qk,Zk,Sc=k(()=>{"use strict";g();Fr=require("path"),Wr=require("fs"),Ys=K(dt(),1),A0=require("glob");Ql();C0();T0();or();Qk=K(require("chokidar"),1),Zk=K(require("ignore"),1);un();xc();yr()});function I0(){let{env:e}=_0.default,{TERM:t,TERM_PROGRAM:r}=e;return _0.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var _0,n8=k(()=>{g();_0=K(require("process"),1)});function vY({input:e=bm.stdin,output:t=bm.stdout,overwrite:r=!0,hideCursor:n=!0}={}){let i=Qs.createInterface({input:e,output:t,prompt:"",tabSize:1});Qs.emitKeypressEvents(e,i),e.isTTY&&e.setRawMode(!0);let s=(a,{name:o})=>{if(String(a)===""){n&&t.write(fs.cursor.show),process.exit(0);return}if(!r)return;Qs.moveCursor(t,o==="return"?0:-1,o==="return"?-1:0,()=>{Qs.clearLine(t,1,()=>{e.once("keypress",s)})})};return n&&t.write(fs.cursor.hide),e.once("keypress",s),()=>{e.off("keypress",s),n&&t.write(fs.cursor.show),e.isTTY&&!xY&&e.setRawMode(!1),i.terminal=!1,i.close()}}var k0,fs,bm,Qs,Bu,Fi,N0,xm,hY,gY,yY,bY,xY,Mu=k(()=>{"use strict";g();n8();k0=K(dt(),1),fs=K(Dd(),1),bm=require("process"),Qs=K(require("readline"),1),Bu=K(dt(),1),Fi=()=>{let e=N0?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=N0?80:120,r,n,i=!1,s="",a="",o="",c=b=>{let v=b>1?"Something went wrong":"Canceled";i&&f(v,b)},l=(b,v)=>{console.error(v,b),c(2)},u=()=>c(1),p=()=>{process.on("uncaughtExceptionMonitor",l),process.on("unhandledRejection",l),process.on("SIGINT",u),process.on("SIGTERM",u),process.on("exit",c)},d=()=>{process.removeListener("uncaughtExceptionMonitor",l),process.removeListener("unhandledRejection",l),process.removeListener("SIGINT",u),process.removeListener("SIGTERM",u),process.removeListener("exit",c)},h=(b="")=>{i=!0,r=vY(),s=b.replace(/\.+$/,""),process.stdout.write(`${k0.default.gray(hY)}
|
|
1396
1396
|
`);let v=0,w=0;p(),process.env.CI||(n=setInterval(()=>{let x=k0.default.magenta(e[v]),E=".".repeat(Math.floor(w)).slice(0,3);process.stdout.write(fs.cursor.move(-999,-o.split(`
|
|
1397
1397
|
`).length+1)),process.stdout.write(fs.erase.down(o.split(`
|
|
1398
1398
|
`).length));let C=`${x} ${s}${E}${a}`;process.stdout.write(C),v=v+1<e.length?v+1:0,w=w<e.length?w+.125:0,o=C},t))},f=(b,v=0)=>{s=b??s,i=!1,clearInterval(n);let w=v===0?(0,Bu.green)(bY):v===1?(0,Bu.red)(gY):(0,Bu.red)(yY);process.stdout.write(fs.cursor.move(-999,-o.split(`
|
|
@@ -1961,25 +1961,25 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
|
|
|
1961
1961
|
`+Object.keys(n).map(i=>`${i}: ${n[i]}`).join(`\r
|
|
1962
1962
|
`)+`\r
|
|
1963
1963
|
\r
|
|
1964
|
-
`+r)}function vo(e,t,r,n,i){if(e.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,vo),e.emit("wsClientError",s,r,t)}else hd(r,n,i)}});var V7=D(fC=>{"use strict";g();fC.parse=Eme;fC.serialize=wme;var hme=Object.prototype.toString,gme=Object.prototype.hasOwnProperty,yme=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,bme=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,xme=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,vme=/^[\u0020-\u003A\u003D-\u007E]*$/;function Eme(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||Cme,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=H7(e,s,a),l=G7(e,a,c),u=e.slice(c,l);if(!gme.call(r,u)){var p=H7(e,a+1,o),d=G7(e,o,p);e.charCodeAt(p)===34&&e.charCodeAt(d-1)===34&&(p++,d--);var h=e.slice(p,d);r[u]=Sme(h,i)}s=o+1}while(s<n);return r}function H7(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function G7(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function wme(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!yme.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!bme.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(!xme.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!vme.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var o=r.expires;if(!Dme(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 Cme(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Dme(e){return hme.call(e)==="[object Date]"}function Sme(e,t){try{return t(e)}catch{return e}}});var X7=D((S6e,Sl)=>{"use strict";g();var Tme=V7(),Ame=NE();Sl.exports=Pme;Sl.exports.JSONCookie=W7;Sl.exports.JSONCookies=mC;Sl.exports.signedCookie=J7;Sl.exports.signedCookies=Y7;function Pme(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=Tme.parse(o,t),r.length!==0&&(i.signedCookies=Y7(i.cookies,r),i.signedCookies=mC(i.signedCookies)),i.cookies=mC(i.cookies),a()}}function W7(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function mC(e){for(var t=Object.keys(e),r,n,i=0;i<t.length;i++)r=t[i],n=W7(e[r]),n&&(e[r]=n);return e}function J7(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=Ame.unsign(e.slice(2),r[n]);if(i!==!1)return i}return!1}}function Y7(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=J7(a,t),a!==n&&(s[i]=n,delete e[i]);return s}});var Hme={};Zg(Hme,{default:()=>Kme});module.exports=Tj(Hme);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]="
|
|
1964
|
+
`+r)}function vo(e,t,r,n,i){if(e.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,vo),e.emit("wsClientError",s,r,t)}else hd(r,n,i)}});var V7=D(fC=>{"use strict";g();fC.parse=Eme;fC.serialize=wme;var hme=Object.prototype.toString,gme=Object.prototype.hasOwnProperty,yme=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,bme=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,xme=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,vme=/^[\u0020-\u003A\u003D-\u007E]*$/;function Eme(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||Cme,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=H7(e,s,a),l=G7(e,a,c),u=e.slice(c,l);if(!gme.call(r,u)){var p=H7(e,a+1,o),d=G7(e,o,p);e.charCodeAt(p)===34&&e.charCodeAt(d-1)===34&&(p++,d--);var h=e.slice(p,d);r[u]=Sme(h,i)}s=o+1}while(s<n);return r}function H7(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function G7(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function wme(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!yme.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!bme.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(!xme.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!vme.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var o=r.expires;if(!Dme(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 Cme(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Dme(e){return hme.call(e)==="[object Date]"}function Sme(e,t){try{return t(e)}catch{return e}}});var X7=D((S6e,Sl)=>{"use strict";g();var Tme=V7(),Ame=NE();Sl.exports=Pme;Sl.exports.JSONCookie=W7;Sl.exports.JSONCookies=mC;Sl.exports.signedCookie=J7;Sl.exports.signedCookies=Y7;function Pme(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=Tme.parse(o,t),r.length!==0&&(i.signedCookies=Y7(i.cookies,r),i.signedCookies=mC(i.signedCookies)),i.cookies=mC(i.cookies),a()}}function W7(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function mC(e){for(var t=Object.keys(e),r,n,i=0;i<t.length;i++)r=t[i],n=W7(e[r]),n&&(e[r]=n);return e}function J7(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=Ame.unsign(e.slice(2),r[n]);if(i!==!1)return i}return!1}}function Y7(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=J7(a,t),a!==n&&(s[i]=n,delete e[i]);return s}});var Hme={};Zg(Hme,{default:()=>Kme});module.exports=Tj(Hme);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]="592b4ac1-f25d-44a2-aa58-0582e89c3e69",e._sentryDebugIdIdentifier="sentry-dbid-592b4ac1-f25d-44a2-aa58-0582e89c3e69")}catch{}g();var pj=require("../core/index.cjs"),dj=require("../node/index.cjs"),fj=require("../server/index.cjs"),mj=K(wC(),1);g();g();var Fm=require("fs/promises");Al();Vr();Dc();or();var Ct=K(dt(),1),Pc=require("path");un();ri();Ni();yr();vc();var mX="https://cdn.builder.io",aN=async(e,t)=>{console.log(""),it((0,Ct.bgCyan)((0,Ct.bold)((0,Ct.white)(" figma migrate ")))+" "+(0,Ct.dim)(He));let{builderPrivateKey:r,builderPublicKey:n}=await wt(e,t,{forceSpaceId:t.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await Re("figma publish started",{spaceId:n});let i=await qa(e);if(i.length>0){await Re("figma migrate with existing files",{spaceId:n}),j.warning(`${(0,Ct.yellow)("This repo already has figma mappings in:")}
|
|
1965
1965
|
|
|
1966
1966
|
${i.map(l=>` - ${(0,Pc.relative)(e.getAppRootDir(),l)}`).join(`
|
|
1967
1967
|
`)}
|
|
1968
1968
|
|
|
1969
1969
|
Migration is going to create new files, possibly duplicates.`);let c=await hr({message:"Do you want to continue?",initialValue:!1});if(!c||Ie(c))return Ne("Migration cancelled"),await Q(1)}j.message("We are about to import your existing figma mappings into this local repo.");let s=To();s.start("Fetching figma mappings");let a=await V0({privateKey:r,spaceId:n});s.stop(`Fetched ${a.length} figma mappings:`),j.message(a.map(c=>{switch(c.figmaKey){case"design-tokens":return(0,Ct.cyan)("\u2747\uFE0E Design tokens mapper");case"*":return(0,Ct.yellow)("\u25CF Generic mapper");default:return`${(0,Ct.magenta)("\u2756 "+Gr(c.figmaName))} ${(0,Ct.dim)("\u2192")} ${c.builderName}`}}).join(`
|
|
1970
|
-
`));let o=await Rt({message:`Where do you want to save the figma mappings? ${(0,Ct.dim)("(Ctrl+C to exit)")}`,initialValue:"./src/mappings",defaultValue:"./src/mappings",placeholder:"./src/mappings",validate:c=>{if((0,Pc.extname)(c)!=="")return"It must be a valid directory path, not a file";if((0,Pc.isAbsolute)(c))return"It must be a relative path"}});if(Ie(o))return Ne("Migration cancelled"),await Q(1);await(0,Fm.mkdir)(o,{recursive:!0}),await Promise.all(a.map(async c=>{let l=await hX(c),u;switch(c.figmaKey){case"design-tokens":u="design-tokens";break;case"*":u="generic";break;default:u=Gr(c.figmaName)}let p=o+"/"+u+".mapper.tsx";return j.info((0,Ct.green)("created ")+(0,Ct.dim)(p)),(0,Fm.writeFile)(p,l)})),j.info("Check out the docs for following steps: https://builder.io/docs/figma/figma-mappings"),zt((0,Ct.bgGreen)((0,Ct.bold)((0,Ct.white)(" Done! \u{1F389} ")))+` ${a.length} mappings imported`),await Re("figma migrate success",{spaceId:n,mappingFiles:a.length})};async function V0(e){let t=await It(`${mX}/api/internal/kv/${e.spaceId}/figma-builder?apiKey=${e.spaceId}`,{headers:{Authorization:`Bearer ${e.privateKey}`}});if(!t.ok)throw new Error(`Failed to fetch figma-builder links: ${t.statusText}`);let r=await t.json();if(!(r instanceof Object&&"figmaBuilderLinks"in r))throw new Error("Invalid response");return r.figmaBuilderLinks}async function hX(e){let
|
|
1971
|
-
designTokenMapper(${
|
|
1972
|
-
})`;break;case"*":
|
|
1973
|
-
genericMapper(${
|
|
1974
|
-
})`;break;default:
|
|
1975
|
-
url: ${JSON.stringify(
|
|
1976
|
-
componentKey: ${JSON.stringify(
|
|
1977
|
-
mapper(${
|
|
1978
|
-
})`}let
|
|
1979
|
-
`):sN(
|
|
1980
|
-
${
|
|
1970
|
+
`));let o=await Rt({message:`Where do you want to save the figma mappings? ${(0,Ct.dim)("(Ctrl+C to exit)")}`,initialValue:"./src/mappings",defaultValue:"./src/mappings",placeholder:"./src/mappings",validate:c=>{if((0,Pc.extname)(c)!=="")return"It must be a valid directory path, not a file";if((0,Pc.isAbsolute)(c))return"It must be a relative path"}});if(Ie(o))return Ne("Migration cancelled"),await Q(1);await(0,Fm.mkdir)(o,{recursive:!0}),await Promise.all(a.map(async c=>{let l=await hX(e,c),u;switch(c.figmaKey){case"design-tokens":u="design-tokens";break;case"*":u="generic";break;default:u=Gr(c.figmaName)}let p=o+"/"+u+".mapper.tsx";return j.info((0,Ct.green)("created ")+(0,Ct.dim)(p)),(0,Fm.writeFile)(p,l)})),j.info("Check out the docs for following steps: https://builder.io/docs/figma/figma-mappings"),zt((0,Ct.bgGreen)((0,Ct.bold)((0,Ct.white)(" Done! \u{1F389} ")))+` ${a.length} mappings imported`),await Re("figma migrate success",{spaceId:n,mappingFiles:a.length})};async function V0(e){let t=await It(`${mX}/api/internal/kv/${e.spaceId}/figma-builder?apiKey=${e.spaceId}`,{headers:{Authorization:`Bearer ${e.privateKey}`}});if(!t.ok)throw new Error(`Failed to fetch figma-builder links: ${t.statusText}`);let r=await t.json();if(!(r instanceof Object&&"figmaBuilderLinks"in r))throw new Error("Invalid response");return r.figmaBuilderLinks}async function hX(e,t){let r="figmaMapping",n=t.originalInputMapper?.match(/function Mapper\(\s*([a-zA-Z0-9_$]+)\s*(?::[^)])?\s*\)/)?.[1],i=t.originalInputMapper?.match(/function Mapper\([^)]*\)(\s*{([^]*))$/)?.[1],s;switch(t.figmaKey){case"design-tokens":s=`${r}({
|
|
1971
|
+
designTokenMapper(${n||"designToken"})${i}
|
|
1972
|
+
})`;break;case"*":s=`${r}({
|
|
1973
|
+
genericMapper(${n||"figma"})${i}
|
|
1974
|
+
})`;break;default:s=`${r}({${t.figmaUrl?`
|
|
1975
|
+
url: ${JSON.stringify(t.figmaUrl)},`:""}
|
|
1976
|
+
componentKey: ${JSON.stringify(t.figmaKey)}${i?`,
|
|
1977
|
+
mapper(${n||"figma"})${i}`:""}
|
|
1978
|
+
})`}let a=t.imports?t.imports?.map(sN).join(`
|
|
1979
|
+
`):sN(t);return sn(e.getAppRootDir(),`import { figmaMapping } from '@builder.io/dev-tools/figma';
|
|
1980
|
+
${a}
|
|
1981
1981
|
|
|
1982
|
-
${
|
|
1982
|
+
${s}`,"typescript",void 0)}function sN(e){let{importName:t,importPath:r}=e,n="importType"in e?e.importType:e.exportType;if(t&&r){let i=JSON.stringify(r);return n==="named"?`import { ${t} } from ${i};`:`import ${t} from ${i};`}return""}g();Ql();var Om=K(require("prompts"),1),Ic=K(require("fs"),1);Vb();or();Al();Vr();var le=K(dt(),1),uN=require("path");Ac();var Vu=K(cN(),1);un();Na();Dc();ri();Ni();yr();Ka();Hu();fm();vc();_e();Mu();g();g();g();g();g();g();g();function xX(e){try{return new URL(e),!0}catch{return!1}}var pN=async(e,t)=>{let r=await _m(e);e.Sentry?.setContext("userContext",r);let n=!t.componentName||!t.mappingOutput||!t.skipInstallation;if(n&&!process.stdout.isTTY&&process.env.FORCE_TTY!=="1")return await Re("tty error",{}),Ne(`This command requires a TTY-enabled terminal.
|
|
1983
1983
|
If you are using Windows Git Bash, try a different terminal or wrap the command with winpty.`),await Q(1);if(console.log(""),it((0,le.bgMagenta)((0,le.bold)((0,le.white)(" figma generate ")))+" "+(0,le.dim)(He)),j.message((0,le.dim)(`This command will help you create new mapper files to connect Figma components to your code components.
|
|
1984
1984
|
Check out `)+(0,le.bold)((0,le.cyan)("https://www.builder.io/c/docs/cli-mapping"))+(0,le.dim)(" for more details.")),t.componentName&&!t.mappingOutput)return j.error("Mapping output must be provided when mapping a single component"),await Q(1);if(typeof t.mappingOutput=="string"&&!gr(t.mappingOutput))return j.error("Mapping output must end with .mapper.{tsx, ts, jsx, js, mjs}, e.g. my-component.mapper.tsx"),await Q(1);await Ha(e,n);let i;i=Fi(),i.start("Loading type information");let s;try{s=await qs(e)}catch(b){return e.Sentry?.captureException(b),i.stop("Repo's framework is not supported"),await Re("figma generate, framework not supported",{frameworks:e.getFrameworks().map(v=>v.name)}),i.message(`We can not generate mappers automatically, but it's possible to do it manually:
|
|
1985
1985
|
https://www.builder.io/c/docs/mapping-functions`),await Q(1)}let a=[],o;if(t.token)j.message(),o=await wt(e,t,{}),a=await fk(o,t.token,!!t.verbose);else{i&&(i.stop("Component metadata processed"),i=void 0);let b=t._.slice(2);if(!b.length)return Ne(`No Figma URL provided, use:
|