@webflow/webflow-cli 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,52 +1,53 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var Mg=Object.create;var Ni=Object.defineProperty;var $g=Object.getOwnPropertyDescriptor;var Wg=Object.getOwnPropertyNames;var zg=Object.getPrototypeOf,Ug=Object.prototype.hasOwnProperty;var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var Mi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ml=(e,t)=>{for(var n in t)Ni(e,n,{get:t[n],enumerable:!0})},Vg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wg(t))!Ug.call(e,o)&&o!==n&&Ni(e,o,{get:()=>t[o],enumerable:!(r=$g(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?Mg(zg(e)):{},Vg(t||!e||!e.__esModule?Ni(n,"default",{value:e,enumerable:!0}):n,e));function Hg(){let e=new Map;for(let[t,n]of Object.entries(K)){for(let[r,o]of Object.entries(n))K[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=K[r],e.set(o[0],o[1]);Object.defineProperty(K,t,{value:n,enumerable:!1})}return Object.defineProperty(K,"codes",{value:e,enumerable:!1}),K.color.close="\x1B[39m",K.bgColor.close="\x1B[49m",K.color.ansi=$l(),K.color.ansi256=Wl(),K.color.ansi16m=zl(),K.bgColor.ansi=$l(10),K.bgColor.ansi256=Wl(10),K.bgColor.ansi16m=zl(10),Object.defineProperties(K,{rgbToAnsi256:{value(t,n,r){return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>K.rgbToAnsi256(...K.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,o;if(t>=232)n=((t-232)*10+8)/255,r=n,o=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let i=Math.max(n,r,o)*2;if(i===0)return 30;let s=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,r)=>K.ansi256ToAnsi(K.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>K.ansi256ToAnsi(K.hexToAnsi256(t)),enumerable:!1}}),K}var $l,Wl,zl,K,LE,Gg,qg,RE,Jg,je,Ul=C(()=>{"use strict";$l=(e=0)=>t=>`\x1B[${t+e}m`,Wl=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,zl=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,K={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},LE=Object.keys(K.modifier),Gg=Object.keys(K.color),qg=Object.keys(K.bgColor),RE=[...Gg,...qg];Jg=Hg(),je=Jg});function ke(e,t=globalThis.Deno?globalThis.Deno.args:oo.default.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}function Zg(){if("FORCE_COLOR"in ee)return ee.FORCE_COLOR==="true"?1:ee.FORCE_COLOR==="false"?0:ee.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ee.FORCE_COLOR,10),3)}function Yg(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Kg(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Zg();r!==void 0&&(ro=r);let o=n?ro:r;if(o===0)return 0;if(n){if(ke("color=16m")||ke("color=full")||ke("color=truecolor"))return 3;if(ke("color=256"))return 2}if("TF_BUILD"in ee&&"AGENT_NAME"in ee)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(ee.TERM==="dumb")return i;if(oo.default.platform==="win32"){let s=Gl.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ee)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ee)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ee)||ee.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor"||ee.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ee){let s=Number.parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:i}function Vl(e,t={}){let n=Kg(e,{streamIsTTY:e&&e.isTTY,...t});return Yg(n)}var oo,Gl,$i,ee,ro,Xg,ql,Hl=C(()=>{"use strict";oo=D(require("process"),1),Gl=D(require("os"),1),$i=D(require("tty"),1);({env:ee}=oo.default);ke("no-color")||ke("no-colors")||ke("color=false")||ke("color=never")?ro=0:(ke("color")||ke("colors")||ke("color=true")||ke("color=always"))&&(ro=1);Xg={stdout:Vl({isTTY:$i.default.isatty(1)}),stderr:Vl({isTTY:$i.default.isatty(2)})},ql=Xg});function Jl(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let o=t.length,i=0,s="";do s+=e.slice(i,r)+t+n,i=r+o,r=e.indexOf(t,i);while(r!==-1);return s+=e.slice(i),s}function Zl(e,t,n,r){let o=0,i="";do{let s=e[r-1]==="\r";i+=e.slice(o,s?r-1:r)+t+(s?`\r
2
+ "use strict";var Ig=Object.create;var Bi=Object.defineProperty;var jg=Object.getOwnPropertyDescriptor;var Bg=Object.getOwnPropertyNames;var Lg=Object.getPrototypeOf,Rg=Object.prototype.hasOwnProperty;var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var Li=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bl=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},Ng=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bg(t))!Rg.call(e,o)&&o!==n&&Bi(e,o,{get:()=>t[o],enumerable:!(r=jg(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?Ig(Lg(e)):{},Ng(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e));function Wg(){let e=new Map;for(let[t,n]of Object.entries(K)){for(let[r,o]of Object.entries(n))K[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=K[r],e.set(o[0],o[1]);Object.defineProperty(K,t,{value:n,enumerable:!1})}return Object.defineProperty(K,"codes",{value:e,enumerable:!1}),K.color.close="\x1B[39m",K.bgColor.close="\x1B[49m",K.color.ansi=Ll(),K.color.ansi256=Rl(),K.color.ansi16m=Nl(),K.bgColor.ansi=Ll(10),K.bgColor.ansi256=Rl(10),K.bgColor.ansi16m=Nl(10),Object.defineProperties(K,{rgbToAnsi256:{value(t,n,r){return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>K.rgbToAnsi256(...K.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,o;if(t>=232)n=((t-232)*10+8)/255,r=n,o=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let i=Math.max(n,r,o)*2;if(i===0)return 30;let s=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,r)=>K.ansi256ToAnsi(K.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>K.ansi256ToAnsi(K.hexToAnsi256(t)),enumerable:!1}}),K}var Ll,Rl,Nl,K,PE,Mg,$g,IE,zg,Ie,Ml=C(()=>{"use strict";Ll=(e=0)=>t=>`\x1B[${t+e}m`,Rl=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Nl=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,K={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},PE=Object.keys(K.modifier),Mg=Object.keys(K.color),$g=Object.keys(K.bgColor),IE=[...Mg,...$g];zg=Wg(),Ie=zg});function ve(e,t=globalThis.Deno?globalThis.Deno.args:ro.default.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}function Ug(){if("FORCE_COLOR"in ee)return ee.FORCE_COLOR==="true"?1:ee.FORCE_COLOR==="false"?0:ee.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ee.FORCE_COLOR,10),3)}function Vg(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Gg(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Ug();r!==void 0&&(no=r);let o=n?no:r;if(o===0)return 0;if(n){if(ve("color=16m")||ve("color=full")||ve("color=truecolor"))return 3;if(ve("color=256"))return 2}if("TF_BUILD"in ee&&"AGENT_NAME"in ee)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(ee.TERM==="dumb")return i;if(ro.default.platform==="win32"){let s=Wl.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ee)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ee)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ee)||ee.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor"||ee.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ee){let s=Number.parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:i}function $l(e,t={}){let n=Gg(e,{streamIsTTY:e&&e.isTTY,...t});return Vg(n)}var ro,Wl,Ri,ee,no,qg,zl,Ul=C(()=>{"use strict";ro=D(require("process"),1),Wl=D(require("os"),1),Ri=D(require("tty"),1);({env:ee}=ro.default);ve("no-color")||ve("no-colors")||ve("color=false")||ve("color=never")?no=0:(ve("color")||ve("colors")||ve("color=true")||ve("color=always"))&&(no=1);qg={stdout:$l({isTTY:Ri.default.isatty(1)}),stderr:$l({isTTY:Ri.default.isatty(2)})},zl=qg});function Vl(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let o=t.length,i=0,s="";do s+=e.slice(i,r)+t+n,i=r+o,r=e.indexOf(t,i);while(r!==-1);return s+=e.slice(i),s}function Gl(e,t,n,r){let o=0,i="";do{let s=e[r-1]==="\r";i+=e.slice(o,s?r-1:r)+t+(s?`\r
3
3
  `:`
4
4
  `)+n,o=r+1,r=e.indexOf(`
5
- `,o)}while(r!==-1);return i+=e.slice(o),i}var Yl=C(()=>{"use strict"});function nr(e){return ey(e)}var Kl,Xl,Wi,pn,tr,Ql,fn,Qg,ey,zi,ty,ny,Ui,io,ry,oy,VE,Q,rr=C(()=>{"use strict";Ul();Hl();Yl();({stdout:Kl,stderr:Xl}=ql),Wi=Symbol("GENERATOR"),pn=Symbol("STYLER"),tr=Symbol("IS_EMPTY"),Ql=["ansi","ansi","ansi256","ansi16m"],fn=Object.create(null),Qg=(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 n=Kl?Kl.level:0;e.level=t.level===void 0?n:t.level},ey=e=>{let t=(...n)=>n.join(" ");return Qg(t,e),Object.setPrototypeOf(t,nr.prototype),t};Object.setPrototypeOf(nr.prototype,Function.prototype);for(let[e,t]of Object.entries(je))fn[e]={get(){let n=io(this,Ui(t.open,t.close,this[pn]),this[tr]);return Object.defineProperty(this,e,{value:n}),n}};fn.visible={get(){let e=io(this,this[pn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};zi=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?je[n].ansi16m(...r):t==="ansi256"?je[n].ansi256(je.rgbToAnsi256(...r)):je[n].ansi(je.rgbToAnsi(...r)):e==="hex"?zi("rgb",t,n,...je.hexToRgb(...r)):je[n][e](...r),ty=["rgb","hex","ansi256"];for(let e of ty){fn[e]={get(){let{level:n}=this;return function(...r){let o=Ui(zi(e,Ql[n],"color",...r),je.color.close,this[pn]);return io(this,o,this[tr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);fn[t]={get(){let{level:n}=this;return function(...r){let o=Ui(zi(e,Ql[n],"bgColor",...r),je.bgColor.close,this[pn]);return io(this,o,this[tr])}}}}ny=Object.defineProperties(()=>{},{...fn,level:{enumerable:!0,get(){return this[Wi].level},set(e){this[Wi].level=e}}}),Ui=(e,t,n)=>{let r,o;return n===void 0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},io=(e,t,n)=>{let r=(...o)=>ry(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,ny),r[Wi]=e,r[pn]=t,r[tr]=n,r},ry=(e,t)=>{if(e.level<=0||!t)return e[tr]?"":t;let n=e[pn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=Jl(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
- `);return i!==-1&&(t=Zl(t,o,r,i)),r+t+o};Object.defineProperties(nr.prototype,fn);oy=nr(),VE=nr({level:Xl?Xl.level:0}),Q=oy});function Vi(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))iy(e,t,o,n);return ay(e,t),dy(e,t,r),e}var iy,sy,ay,ly,uy,cy,dy,eu=C(()=>{"use strict";iy=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!sy(o,i)&&r||Object.defineProperty(e,n,i)},sy=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ay=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},ly=(e,t)=>`/* Wrapped ${e}*/
7
- ${t}`,uy=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),cy=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),dy=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=ly.bind(null,r,t.toString());Object.defineProperty(o,"name",cy);let{writable:i,enumerable:s,configurable:a}=uy;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var so,tu,nu,ru=C(()=>{"use strict";eu();so=new WeakMap,tu=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(so.set(i,++r),r===1)n=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return Vi(i,e),so.set(i,r),i};tu.callCount=e=>{if(!so.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return so.get(e)};nu=tu});var Bt,ou=C(()=>{"use strict";Bt=[];Bt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Bt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Bt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var ao,Gi,qi,py,Hi,lo,fy,Ji,Zi,Yi,iu,KE,XE,su=C(()=>{"use strict";ou();ao=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",Gi=Symbol.for("signal-exit emitter"),qi=globalThis,py=Object.defineProperty.bind(Object),Hi=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(qi[Gi])return qi[Gi];py(qi,Gi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},lo=class{},fy=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Ji=class extends lo{onExit(){return()=>{}}load(){}unload(){}},Zi=class extends lo{#s=Yi.platform==="win32"?"SIGINT":"SIGHUP";#n=new Hi;#e;#o;#p;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of Bt)this.#t[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#n,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#s:n;s||t.kill(t.pid,a)}};this.#p=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!ao(this.#e))return()=>{};this.#i===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#n.on(r,t),()=>{this.#n.removeListener(r,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let t of Bt)try{let n=this.#t[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#f(t,...n),this.#e.reallyExit=t=>this.#r(t)}}unload(){this.#i&&(this.#i=!1,Bt.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#p,this.#n.count-=1)}#r(t){return ao(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#p.call(this.#e,this.#e.exitCode)):0}#f(t,...n){let r=this.#o;if(t==="exit"&&ao(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#n.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},Yi=globalThis.process,{onExit:iu,load:KE,unload:XE}=fy(ao(Yi)?new Zi(Yi):new Ji)});var or,au,my,lu,uu=C(()=>{"use strict";or=D(require("process"),1);ru();su();au=or.default.stderr.isTTY?or.default.stderr:or.default.stdout.isTTY?or.default.stdout:void 0,my=au?nu(()=>{iu(()=>{au.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},lu=my});var Ki,uo,mn,Xi,cu=C(()=>{"use strict";Ki=D(require("process"),1);uu();uo=!1,mn={};mn.show=(e=Ki.default.stderr)=>{e.isTTY&&(uo=!1,e.write("\x1B[?25h"))};mn.hide=(e=Ki.default.stderr)=>{e.isTTY&&(lu(),uo=!0,e.write("\x1B[?25l"))};mn.toggle=(e,t)=>{e!==void 0&&(uo=e),uo?mn.show(t):mn.hide(t)};Xi=mn});var du=Mi((i_,hy)=>{hy.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Qi=Mi((s_,fu)=>{"use strict";var co=Object.assign({},du()),pu=Object.keys(co);Object.defineProperty(co,"random",{get(){let e=Math.floor(Math.random()*pu.length),t=pu[e];return co[t]}});fu.exports=co});function es(){return xe.default.platform!=="win32"?xe.default.env.TERM!=="linux":!!xe.default.env.CI||!!xe.default.env.WT_SESSION||!!xe.default.env.TERMINUS_SUBLIME||xe.default.env.ConEmuTask==="{cmd::Cmder}"||xe.default.env.TERM_PROGRAM==="Terminus-Sublime"||xe.default.env.TERM_PROGRAM==="vscode"||xe.default.env.TERM==="xterm-256color"||xe.default.env.TERM==="alacritty"||xe.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var xe,mu=C(()=>{"use strict";xe=D(require("process"),1)});var gy,yy,by,ir,hu=C(()=>{"use strict";rr();mu();gy={info:Q.blue("\u2139"),success:Q.green("\u2714"),warning:Q.yellow("\u26A0"),error:Q.red("\u2716")},yy={info:Q.blue("i"),success:Q.green("\u221A"),warning:Q.yellow("\u203C"),error:Q.red("\xD7")},by=es()?gy:yy,ir=by});function ts({onlyFirst:e=!1}={}){let n=["[\\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(n,e?void 0:"g")}var gu=C(()=>{"use strict"});function sr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Dy,"")}var Dy,ns=C(()=>{"use strict";gu();Dy=ts()});function yu(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function bu(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Du(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var wu=C(()=>{"use strict"});function wy(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function vu(e,{ambiguousAsWide:t=!1}={}){return wy(e),bu(e)||Du(e)||t&&yu(e)?2:1}var ku=C(()=>{"use strict";wu()});var xu,Fu=C(()=>{"use strict";xu=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function rs(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=sr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of vy.segment(e)){let a=s.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!ky.test(s)){if(xu().test(s)){o+=2;continue}o+=vu(a,i)}}return o}var vy,ky,Eu=C(()=>{"use strict";ns();ku();Fu();vy=new Intl.Segmenter,ky=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function os({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var _u=C(()=>{"use strict"});function ss(){let{env:e}=is.default,{TERM:t,TERM_PROGRAM:n}=e;return is.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var is,Cu=C(()=>{"use strict";is=D(require("process"),1)});var Be,xy,as,Fy,ls,Su=C(()=>{"use strict";Be=D(require("process"),1),xy=3,as=class{#s=0;start(){this.#s++,this.#s===1&&this.#n()}stop(){if(this.#s<=0)throw new Error("`stop` called more times than `start`");this.#s--,this.#s===0&&this.#e()}#n(){Be.default.platform==="win32"||!Be.default.stdin.isTTY||(Be.default.stdin.setRawMode(!0),Be.default.stdin.on("data",this.#o),Be.default.stdin.resume())}#e(){Be.default.stdin.isTTY&&(Be.default.stdin.off("data",this.#o),Be.default.stdin.pause(),Be.default.stdin.setRawMode(!1))}#o(t){t[0]===xy&&Be.default.emit("SIGINT")}},Fy=new as,ls=Fy});function hn(e){return new us(e)}var ar,lr,Ey,us,cs=C(()=>{"use strict";ar=D(require("process"),1);rr();cu();lr=D(Qi(),1);hu();ns();Eu();_u();Cu();Su();Ey=D(Qi(),1),us=class{#s=0;#n=!1;#e=0;#o=-1;#p=0;#t;#i;#r;#f;#h;#u;#c;#d;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:ar.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#r=this.#t.stream,this.#u=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:os({stream:this.#r}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,ar.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#u,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(n){this.#s=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#o}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#d}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#d=t,this.#m()}get interval(){return this.#h??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#o=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#i=t}else if(!ss())this.#i=lr.default.line;else if(t===void 0)this.#i=lr.default.dots;else if(t!=="default"&&lr.default[t])this.#i=lr.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#g}set text(t=""){this.#g=t,this.#m()}get prefixText(){return this.#a}set prefixText(t=""){this.#a=t,this.#m()}get suffixText(){return this.#l}set suffixText(t=""){this.#l=t,this.#m()}get isSpinning(){return this.#f!==void 0}#y(t=this.#a,n=" "){return typeof t=="string"&&t!==""?t+n:typeof t=="function"?t()+n:""}#b(t=this.#l,n=" "){return typeof t=="string"&&t!==""?n+t:typeof t=="function"?n+t():""}#m(){let t=this.#r.columns??80,n=this.#y(this.#a,"-"),r=this.#b(this.#l,"-"),o=" ".repeat(this.#d)+n+"--"+this.#g+"--"+r;this.#e=0;for(let i of sr(o).split(`
8
- `))this.#e+=Math.max(1,Math.ceil(rs(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#u&&!this.#c}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#u=t}get isSilent(){return this.#c}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=t}frame(){let t=Date.now();(this.#o===-1||t-this.#p>=this.interval)&&(this.#o=++this.#o%this.#i.frames.length,this.#p=t);let{frames:n}=this.#i,r=n[this.#o];this.color&&(r=Q[this.color](r));let o=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",i=typeof this.text=="string"?" "+this.text:"",s=typeof this.#l=="string"&&this.#l!==""?" "+this.#l:"";return o+r+i+s}clear(){if(!this.#u||!this.#r.isTTY)return this;this.#r.cursorTo(0);for(let t=0;t<this.#s;t++)t>0&&this.#r.moveCursor(0,-1),this.#r.clearLine(1);return(this.#d||this.lastIndent!==this.#d)&&this.#r.cursorTo(this.#d),this.lastIndent=this.#d,this.#s=0,this}render(){return this.#c?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#c?this:this.#u?this.isSpinning?this:(this.#t.hideCursor&&Xi.hide(this.#r),this.#t.discardStdin&&ar.default.stdin.isTTY&&(this.#n=!0,ls.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#r.write(`- ${this.text}
9
- `),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&Xi.show(this.#r),this.#t.discardStdin&&ar.default.stdin.isTTY&&this.#n&&(ls.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:ir.success,text:t})}fail(t){return this.stopAndPersist({symbol:ir.error,text:t})}warn(t){return this.stopAndPersist({symbol:ir.warning,text:t})}info(t){return this.stopAndPersist({symbol:ir.info,text:t})}stopAndPersist(t={}){if(this.#c)return this;let n=t.prefixText??this.#a,r=this.#y(n," "),o=t.symbol??" ",i=t.text??this.text,a=typeof i=="string"?(o?" ":"")+i:"",u=t.suffixText??this.#l,l=this.#b(u," "),c=r+o+a+l+`
10
- `;return this.stop(),this.#r.write(c),this}}});function fs(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),po.default.platform==="darwin"?_y(e):po.default.platform==="win32"?Cy(e):Sy(e)}var X,ds,po,gt,ps,gn,_y,Cy,Sy,Tu=C(()=>{"use strict";X=D(require("path"),1),ds=D(require("os"),1),po=D(require("process"),1),gt=ds.default.homedir(),ps=ds.default.tmpdir(),{env:gn}=po.default,_y=e=>{let t=X.default.join(gt,"Library");return{data:X.default.join(t,"Application Support",e),config:X.default.join(t,"Preferences",e),cache:X.default.join(t,"Caches",e),log:X.default.join(t,"Logs",e),temp:X.default.join(ps,e)}},Cy=e=>{let t=gn.APPDATA||X.default.join(gt,"AppData","Roaming"),n=gn.LOCALAPPDATA||X.default.join(gt,"AppData","Local");return{data:X.default.join(n,e,"Data"),config:X.default.join(t,e,"Config"),cache:X.default.join(n,e,"Cache"),log:X.default.join(n,e,"Log"),temp:X.default.join(ps,e)}},Sy=e=>{let t=X.default.basename(gt);return{data:X.default.join(gn.XDG_DATA_HOME||X.default.join(gt,".local","share"),e),config:X.default.join(gn.XDG_CONFIG_HOME||X.default.join(gt,".config"),e),cache:X.default.join(gn.XDG_CACHE_HOME||X.default.join(gt,".cache"),e),log:X.default.join(gn.XDG_STATE_HOME||X.default.join(gt,".local","state"),e),temp:X.default.join(ps,t,e)}}});function fo(){return/[<>:"/\\|?*\u0000-\u001F]/g}function Au(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Ou=C(()=>{"use strict"});function ur(e,t={}){let n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");let o=t.replacement===void 0?"!":t.replacement;if(fo().test(o)&&n.test(o))throw new Error("Replacement string cannot contain reserved filename characters");o.length>0&&(e=e.replace(r,"$1")),e=e.normalize("NFD"),e=e.replace(Ay,o),e=e.replace(fo(),o),e=e.replace(n,o),e=e.replace(Oy,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=Au().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:Ty;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),u=e.slice(s);e=a.slice(0,Math.max(1,i-u.length))+u}}return e}var Ty,Ay,Oy,ms=C(()=>{"use strict";Ou();Ty=100,Ay=/^\.+(\\|\/)|^\.+$/,Oy=/\.+$/});var Py,Pu=C(()=>{"use strict";Py=D(require("path"),1);ms()});var Iu=C(()=>{"use strict";ms();Pu()});function Bu(e){hs=e}function re(){return hs}function Ve(){return!hs}function Lu(e){ju=e}function Ru(){return ju}var hs,ju,be=C(()=>{"use strict";hs=!1});async function mo(e){try{return await e()}catch(t){throw t instanceof Error&&Iy.test(t.message)&&(p.debug(t.message),process.exit(130)),t}}async function pe(e){return re()?e.default??!1:mo(()=>yt.confirm(e))}async function Fe(e){return re()?"default"in e?e.default:null:mo(()=>yt.select(e))}async function Le(e){return re()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:mo(()=>yt.input(e))}async function ho(e){if(re()){let t=[];return await e.validate?.(t)!==!0?null:t}return mo(()=>yt.checkbox(e))}var yt,Iy,Re=C(()=>{"use strict";yt=D(require("@inquirer/prompts"));be();U();Iy=/SIGINT/i});var go,gs=C(()=>{"use strict";go="webflow.json"});var tt,Lt,cr=C(()=>{"use strict";tt=class extends Error{constructor(t){super(`Manifest file not found at path: ${t}`),this.name="ManifestFileNotFoundError"}},Lt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function nt(){let e=Ru();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,Nu.statSync)(e)?.isDirectory())return{path:(0,Mu.join)(e,go),isUserDefined:!0}}catch{if(e.endsWith(".json"))return{path:e,isUserDefined:!0}}throw new Error(`Manifest path must be either a directory or a .json file. Got: ${e}`)}return{path:`./${go}`,isUserDefined:!1}}var Nu,Mu,yo=C(()=>{"use strict";Nu=require("fs"),Mu=require("path");gs();be()});var $u,jy,By,ys,Wu=C(()=>{"use strict";$u=D(require("ajv")),jy=new $u.default,By={type:"object",properties:{library:{type:"object",properties:{name:{type:"string",minLength:1},id:{type:"string",minLength:1},components:{type:"array",items:{type:"string"},minItems:1},renderer:{anyOf:[{type:"object",properties:{client:{type:"string",minLength:1},server:{type:"string",minLength:1}}},{type:"string",minLength:1}]},globals:{type:"string",minLength:1}},required:[]},devlink:{type:"object",properties:{rootDir:{type:"string",minLength:1},cssModules:{type:"boolean"},allowTelemetry:{type:"boolean"},overwriteModule:{type:"boolean"},skipTagSelectors:{type:"boolean"},envVariables:{type:"object",additionalProperties:{type:"string"}},components:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},fileExtensions:{type:"object",properties:{js:{type:"string"},css:{type:"string"}}},relativeHrefRoot:{oneOf:[{type:"boolean"},{type:"string"}]}},required:["rootDir"]}}},ys=jy.compile(By)});function zu(e){return e instanceof Error?e:new Error("Unknown error")}function de(){let{path:e}=nt();if(!(0,bo.existsSync)(e))throw new tt(e);let t;try{t=(0,bo.readFileSync)(e,"utf8")}catch(r){throw new Error(`Failed to read manifest file: ${zu(r).message}`)}let n;try{n=JSON.parse(t)}catch(r){throw new Error(`Invalid JSON in manifest file: ${zu(r).message}`)}if(!ys(n)){let r=ys.errors?.map(o=>`${o.instancePath} ${o.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${r}.`)}return{manifest:n,manifestPath:e}}var bo,bs=C(()=>{"use strict";bo=require("fs");cr();yo();Wu()});function dr(e,t){let n=e[t];if(!n)throw new Lt(t);return n}var Uu=C(()=>{"use strict";cr()});function De(e){let t,n;try{let o=de();t=o.manifest,n=o.manifestPath}catch(o){if(o instanceof tt)t={},n=nt().path;else throw o}let r={...t};for(let o in e){let i=o,s=e[i];s&&(r[i]={...r[i],...s})}(0,Vu.writeFileSync)(n,JSON.stringify(r,null,2),"utf-8")}var Vu,Gu=C(()=>{"use strict";Vu=require("fs");cr();bs();yo()});var rt=C(()=>{"use strict";gs();cr();bs();yo();Uu();Gu()});var Ds=Mi((bC,Ly)=>{Ly.exports={name:"@webflow/webflow-cli",version:"1.11.1",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:local":"jest"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@dotenvx/dotenvx":"^1.44.1","@inquirer/prompts":"^7.9.0","@module-federation/enhanced":"0.20.0","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","env-paths":"^3.0.0","fast-glob":"^3.3.3",filenamify:"^6.0.0","fork-ts-checker-webpack-plugin":"9.1.0","form-data":"4.0.4","fs-extra":"^11.3.0","jsonc-parser":"^3.2.0",md5:"^2.2.1",memfs:"4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",ora:"^8.2.0",postcss:"^8.5.6","postcss-loader":"^8.1.1","postcss-selector-parser":"^7.1.0",prettier:"^2.7.1",semver:"^7.7.2","serve-handler":"^6.1.5","source-map-support":"^0.5.21",tar:"^7.4.3","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.0",webpack:"^5.99.7","webpack-merge":"^6.0.1","webpack-node-externals":"^3.0.0",zod:"^3.22.4"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/fs-extra":"^11.0.4","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"2.6.13","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","@types/source-map":"^0.5.2","@types/webpack-node-externals":"^3.0.4",astro:"^5.7.0","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1",tar:"^7.4.3","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}}});function Rt(){try{return Ds().version}catch{return"unknown"}}function Ge(e=""){if(!e)return"";let t=e;t=t.replace(/\/.*?\/webflow-cli/gi,"/REDACTED_PII/webflow-cli"),t=t.replace(/\/.*?\/node_modules/gi,"/REDACTED_PII/node_modules");let n=pr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=pr.default.userInfo().username;if(r){let o=new RegExp(`/Users/${r}`,"gi");t=t.replace(o,"/Users/REDACTED_PII")}return t=t.replace(/\/Users\/[^\/\s]+/gi,"/Users/REDACTED_PII"),t=t.replace(/C:\\Users\\[^\\]+/gi,"C:\\Users\\REDACTED_PII"),t=t.replace(/[a-zA-Z0-9]{32,}/g,"[REDACTED_TOKEN]"),t=t.replace(/Bearer\s+[^\s]+/gi,"Bearer [REDACTED_TOKEN]"),t=t.replace(/token[=:]\s*[^\s]+/gi,"token=[REDACTED_TOKEN]"),t=t.replace(/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,"[REDACTED_EMAIL]"),t=t.replace(/\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,"[REDACTED_IP]"),t}function ws(e){if(e.stack)return Ge(e.stack)}function bt(e){let t=["password","token","secret","key","auth","bearer","authorization","apikey","api_key","access_token","refresh_token","client_secret","private_key"],n={};for(let[r,o]of Object.entries(e)){let i=r.toLowerCase();t.some(s=>i.includes(s))?n[r]="[REDACTED]":typeof o=="string"?n[r]=Ge(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=bt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?bt(s):typeof s=="string"?Ge(s):s):n[r]=o}return n}function qu(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${pr.default.type()} ${pr.default.release()}`}}function vs(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var pr,fr=C(()=>{"use strict";pr=D(require("os"))});var Nt,ks=C(()=>{"use strict";Re();rt();fr();be();Nt=class e{static instance;cache=void 0;static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await de(),n=t?.telemetry?.global?.allowTelemetry;return this.cache=n,n}catch{return}}async setPreference(t){this.cache=t,await this.setGlobalPreference(t)}async promptForConsent(t){if(re())return Promise.resolve(!1);let o=await pe({message:t||"Help us improve Webflow CLI by sharing usage data and error reports?",default:!0});return await pe({message:"Would you like to save this choice for all Webflow CLI commands?",default:!0})&&await this.setPreference(o),o}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let n={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:Rt()}}};await De(n),this.cache=t}async hasGlobalPreference(){return await this.getPreference()!==void 0}async getTelemetryStatus(){let t=await this.getPreference();return t!==void 0?{enabled:t,source:"global",hasPreference:!0}:{enabled:!1,source:"none",hasPreference:!1}}setCacheValue(t,n){this.cache=n}}});var Hu,qe,xs=C(()=>{"use strict";Hu=D(require("node-fetch"));ks();fr();U();qe=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Nt.getInstance(),this.sessionId=vs(),this.platformInfo=qu()}async sendEvent(t){if(await this.isEnabled())try{let n=this.enrichEvent(t),r=this.sanitizeEvent(n);await this.transmitEvent(r)}catch(n){p.debug(`Failed to send telemetry event: ${n}`)}}async sendError(t,n,r){if(!await this.isEnabled())return;let o={eventType:"error",name:t.name,message:t.message,cause:t.cause,stack:ws(t),context:n,metadata:r?bt(r):void 0};await this.sendEvent(o)}async sendUsage(t,n,r,o){if(!await this.isEnabled())return;let i={eventType:"usage",feature:t,success:n,duration:r,data:o?bt(o):void 0};await this.sendEvent(i)}async sendPerformance(t,n,r){if(!await this.isEnabled())return;let o={eventType:"performance",operation:t,duration:n,memoryBefore:void 0,memoryAfter:void 0,metrics:r};await this.sendEvent(o)}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}async promptForConsentIfNeeded(t){let n=await this.consentManager.getPreference();return n!==void 0?n:await this.consentManager.promptForConsent(t??"Help us improve Webflow CLI by sharing usage data and error reports?")}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:Rt(),command:process.argv.slice(2).join(" ")||void 0,metadata:{...t.metadata,commandType:this.config.commandType,siteId:this.config.siteId,projectId:this.config.projectId,os:this.platformInfo.os,arch:this.platformInfo.arch}},...t}}sanitizeEvent(t){let n=JSON.parse(JSON.stringify(t));return n.message&&(n.message=Ge(n.message)),n.stack&&(n.stack=Ge(n.stack)),n.context&&(n.context=Ge(n.context)),n.metadata&&(n.metadata=bt(n.metadata)),n.data&&(n.data=bt(n.data)),n}async transmitEvent(t){let n=this.getEndpoint(),r=process.env.WEBFLOW_TELEMETRY_DEBUG==="true";if(r){console.log(`\u{1F4CA} [Telemetry] Sending to: ${n}`);let i={...t};i.metadata&&(delete i.metadata.authToken,delete i.metadata.apiToken),console.log("\u{1F4CA} [Telemetry] Payload:",JSON.stringify(i,null,2))}let o=await(0,Hu.default)(n,{method:"POST",headers:{Authorization:`Bearer ${this.config.authToken}`,"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3});if(o.ok)r&&console.log(`\u{1F4CA} [Telemetry] Request successful: ${o.status}`);else throw r&&console.error(`\u{1F4CA} [Telemetry] Request failed: ${o.status} ${o.statusText}`),new Error(`Telemetry request failed: ${o.status} ${o.statusText}`)}getEndpoint(){let{host:t,commandType:n}=this.config;return`${t}/webflow-cli/${n}/telemetry`}static fromDevlinkConfig(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"devlink",allowTelemetry:t.allowTelemetry})}static forCloud(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host,authToken:t.authToken,commandType:"library"})}}});var Ju=C(()=>{"use strict"});function Do(e){return async(t,n)=>{try{await e.sendError(t,n)}catch(r){p.debug("Failed to send error telemetry:"+r)}}}function wo(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,u=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:u-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}function Zu(e){return async(t,n,r)=>{let o=Date.now();try{let i=await n(),s=Date.now()-o;return await e.sendUsage(t,!0,s,r),i}catch(i){let s=Date.now()-o;throw await e.sendUsage(t,!1,s,{error:i instanceof Error?i.message:"Unknown error",...r}),i}}}var yn=C(()=>{"use strict";U();xs();ks();Ju();fr();xs();fr()});var Es,Fs,Ry,ot,_s=C(()=>{"use strict";Es=Symbol("webflow-cli-warn"),Fs=class{warnings=[];originalConsoleWarn=null;isActive=!1;parseSource(t){let n=t.split(`
11
- `);for(let r=2;r<n.length;r++){let o=n[r],i=o.match(/at .+? \((.+?):\d+:\d+\)/)||o.match(/at (.+?):\d+:\d+/);if(i){let s=i[1];if(s.includes("node_modules")){let a=s.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)/);return a?`External: ${a[1]}`:"External Dependencies"}else if(s.includes("webflow-cli"))return s.includes("/metadata/")?"Metadata Collection":s.includes("/bundler/")?"Bundling":s.includes("/commands/")?"CLI Commands":"Webflow CLI"}}return"General"}start(){this.isActive||(this.warnings=[],this.originalConsoleWarn=console.warn,this.isActive=!0,console.warn=(...t)=>{if(t.length>1&&t[t.length-1]===Es){let i=t.slice(0,-1);this.originalConsoleWarn&&this.originalConsoleWarn(...i);return}let n=t.map(i=>{if(typeof i=="string")return i;if(i instanceof Error)return i.message;try{return String(i)}catch{return"[Object]"}}).join(" "),r=new Error().stack||"",o=this.parseSource(r);this.warnings.push({message:n,timestamp:Date.now(),source:o,stackTrace:r})})}stop(){this.isActive&&(this.originalConsoleWarn&&(console.warn=this.originalConsoleWarn,this.originalConsoleWarn=null),this.isActive=!1)}displayGrouped(){if(this.warnings.length===0)return;console.log(`
5
+ `,o)}while(r!==-1);return i+=e.slice(o),i}var ql=C(()=>{"use strict"});function tr(e){return Jg(e)}var Hl,Jl,Ni,mn,er,Zl,hn,Hg,Jg,Mi,Zg,Yg,$i,oo,Kg,Xg,$E,Q,nr=C(()=>{"use strict";Ml();Ul();ql();({stdout:Hl,stderr:Jl}=zl),Ni=Symbol("GENERATOR"),mn=Symbol("STYLER"),er=Symbol("IS_EMPTY"),Zl=["ansi","ansi","ansi256","ansi16m"],hn=Object.create(null),Hg=(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 n=Hl?Hl.level:0;e.level=t.level===void 0?n:t.level},Jg=e=>{let t=(...n)=>n.join(" ");return Hg(t,e),Object.setPrototypeOf(t,tr.prototype),t};Object.setPrototypeOf(tr.prototype,Function.prototype);for(let[e,t]of Object.entries(Ie))hn[e]={get(){let n=oo(this,$i(t.open,t.close,this[mn]),this[er]);return Object.defineProperty(this,e,{value:n}),n}};hn.visible={get(){let e=oo(this,this[mn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Mi=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?Ie[n].ansi16m(...r):t==="ansi256"?Ie[n].ansi256(Ie.rgbToAnsi256(...r)):Ie[n].ansi(Ie.rgbToAnsi(...r)):e==="hex"?Mi("rgb",t,n,...Ie.hexToRgb(...r)):Ie[n][e](...r),Zg=["rgb","hex","ansi256"];for(let e of Zg){hn[e]={get(){let{level:n}=this;return function(...r){let o=$i(Mi(e,Zl[n],"color",...r),Ie.color.close,this[mn]);return oo(this,o,this[er])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);hn[t]={get(){let{level:n}=this;return function(...r){let o=$i(Mi(e,Zl[n],"bgColor",...r),Ie.bgColor.close,this[mn]);return oo(this,o,this[er])}}}}Yg=Object.defineProperties(()=>{},{...hn,level:{enumerable:!0,get(){return this[Ni].level},set(e){this[Ni].level=e}}}),$i=(e,t,n)=>{let r,o;return n===void 0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},oo=(e,t,n)=>{let r=(...o)=>Kg(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,Yg),r[Ni]=e,r[mn]=t,r[er]=n,r},Kg=(e,t)=>{if(e.level<=0||!t)return e[er]?"":t;let n=e[mn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=Vl(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
+ `);return i!==-1&&(t=Gl(t,o,r,i)),r+t+o};Object.defineProperties(tr.prototype,hn);Xg=tr(),$E=tr({level:Jl?Jl.level:0}),Q=Xg});function Wi(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Qg(e,t,o,n);return ty(e,t),iy(e,t,r),e}var Qg,ey,ty,ny,ry,oy,iy,Yl=C(()=>{"use strict";Qg=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!ey(o,i)&&r||Object.defineProperty(e,n,i)},ey=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ty=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},ny=(e,t)=>`/* Wrapped ${e}*/
7
+ ${t}`,ry=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oy=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iy=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=ny.bind(null,r,t.toString());Object.defineProperty(o,"name",oy);let{writable:i,enumerable:s,configurable:a}=ry;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var io,Kl,Xl,Ql=C(()=>{"use strict";Yl();io=new WeakMap,Kl=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(io.set(i,++r),r===1)n=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return Wi(i,e),io.set(i,r),i};Kl.callCount=e=>{if(!io.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return io.get(e)};Xl=Kl});var jt,eu=C(()=>{"use strict";jt=[];jt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&jt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&jt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var so,zi,Ui,sy,Vi,ao,ay,Gi,qi,Hi,tu,HE,JE,nu=C(()=>{"use strict";eu();so=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",zi=Symbol.for("signal-exit emitter"),Ui=globalThis,sy=Object.defineProperty.bind(Object),Vi=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Ui[zi])return Ui[zi];sy(Ui,zi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},ao=class{},ay=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Gi=class extends ao{onExit(){return()=>{}}load(){}unload(){}},qi=class extends ao{#s=Hi.platform==="win32"?"SIGINT":"SIGHUP";#n=new Vi;#e;#o;#p;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of jt)this.#t[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#n,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#s:n;s||t.kill(t.pid,a)}};this.#p=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!so(this.#e))return()=>{};this.#i===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#n.on(r,t),()=>{this.#n.removeListener(r,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let t of jt)try{let n=this.#t[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#f(t,...n),this.#e.reallyExit=t=>this.#r(t)}}unload(){this.#i&&(this.#i=!1,jt.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#p,this.#n.count-=1)}#r(t){return so(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#p.call(this.#e,this.#e.exitCode)):0}#f(t,...n){let r=this.#o;if(t==="exit"&&so(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#n.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},Hi=globalThis.process,{onExit:tu,load:HE,unload:JE}=ay(so(Hi)?new qi(Hi):new Gi)});var rr,ru,ly,ou,iu=C(()=>{"use strict";rr=D(require("process"),1);Ql();nu();ru=rr.default.stderr.isTTY?rr.default.stderr:rr.default.stdout.isTTY?rr.default.stdout:void 0,ly=ru?Xl(()=>{tu(()=>{ru.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},ou=ly});var Ji,lo,gn,Zi,su=C(()=>{"use strict";Ji=D(require("process"),1);iu();lo=!1,gn={};gn.show=(e=Ji.default.stderr)=>{e.isTTY&&(lo=!1,e.write("\x1B[?25h"))};gn.hide=(e=Ji.default.stderr)=>{e.isTTY&&(ou(),lo=!0,e.write("\x1B[?25l"))};gn.toggle=(e,t)=>{e!==void 0&&(lo=e),lo?gn.show(t):gn.hide(t)};Zi=gn});var au=Li((t_,uy)=>{uy.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Yi=Li((n_,uu)=>{"use strict";var uo=Object.assign({},au()),lu=Object.keys(uo);Object.defineProperty(uo,"random",{get(){let e=Math.floor(Math.random()*lu.length),t=lu[e];return uo[t]}});uu.exports=uo});function Ki(){return ke.default.platform!=="win32"?ke.default.env.TERM!=="linux":!!ke.default.env.CI||!!ke.default.env.WT_SESSION||!!ke.default.env.TERMINUS_SUBLIME||ke.default.env.ConEmuTask==="{cmd::Cmder}"||ke.default.env.TERM_PROGRAM==="Terminus-Sublime"||ke.default.env.TERM_PROGRAM==="vscode"||ke.default.env.TERM==="xterm-256color"||ke.default.env.TERM==="alacritty"||ke.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ke,cu=C(()=>{"use strict";ke=D(require("process"),1)});var cy,dy,py,or,du=C(()=>{"use strict";nr();cu();cy={info:Q.blue("\u2139"),success:Q.green("\u2714"),warning:Q.yellow("\u26A0"),error:Q.red("\u2716")},dy={info:Q.blue("i"),success:Q.green("\u221A"),warning:Q.yellow("\u203C"),error:Q.red("\xD7")},py=Ki()?cy:dy,or=py});function Xi({onlyFirst:e=!1}={}){let n=["[\\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(n,e?void 0:"g")}var pu=C(()=>{"use strict"});function ir(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(fy,"")}var fy,Qi=C(()=>{"use strict";pu();fy=Xi()});function fu(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function mu(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function hu(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var gu=C(()=>{"use strict"});function my(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function yu(e,{ambiguousAsWide:t=!1}={}){return my(e),mu(e)||hu(e)||t&&fu(e)?2:1}var bu=C(()=>{"use strict";gu()});var Du,wu=C(()=>{"use strict";Du=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function es(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=ir(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of hy.segment(e)){let a=s.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!gy.test(s)){if(Du().test(s)){o+=2;continue}o+=yu(a,i)}}return o}var hy,gy,vu=C(()=>{"use strict";Qi();bu();wu();hy=new Intl.Segmenter,gy=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function ts({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var ku=C(()=>{"use strict"});function rs(){let{env:e}=ns.default,{TERM:t,TERM_PROGRAM:n}=e;return ns.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ns,xu=C(()=>{"use strict";ns=D(require("process"),1)});var je,yy,os,by,is,Fu=C(()=>{"use strict";je=D(require("process"),1),yy=3,os=class{#s=0;start(){this.#s++,this.#s===1&&this.#n()}stop(){if(this.#s<=0)throw new Error("`stop` called more times than `start`");this.#s--,this.#s===0&&this.#e()}#n(){je.default.platform==="win32"||!je.default.stdin.isTTY||(je.default.stdin.setRawMode(!0),je.default.stdin.on("data",this.#o),je.default.stdin.resume())}#e(){je.default.stdin.isTTY&&(je.default.stdin.off("data",this.#o),je.default.stdin.pause(),je.default.stdin.setRawMode(!1))}#o(t){t[0]===yy&&je.default.emit("SIGINT")}},by=new os,is=by});function yn(e){return new ss(e)}var sr,ar,Dy,ss,as=C(()=>{"use strict";sr=D(require("process"),1);nr();su();ar=D(Yi(),1);du();Qi();vu();ku();xu();Fu();Dy=D(Yi(),1),ss=class{#s=0;#n=!1;#e=0;#o=-1;#p=0;#t;#i;#r;#f;#h;#u;#c;#d;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:sr.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#r=this.#t.stream,this.#u=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:ts({stream:this.#r}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,sr.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#u,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(n){this.#s=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#o}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#d}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#d=t,this.#m()}get interval(){return this.#h??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#o=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#i=t}else if(!rs())this.#i=ar.default.line;else if(t===void 0)this.#i=ar.default.dots;else if(t!=="default"&&ar.default[t])this.#i=ar.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#g}set text(t=""){this.#g=t,this.#m()}get prefixText(){return this.#a}set prefixText(t=""){this.#a=t,this.#m()}get suffixText(){return this.#l}set suffixText(t=""){this.#l=t,this.#m()}get isSpinning(){return this.#f!==void 0}#y(t=this.#a,n=" "){return typeof t=="string"&&t!==""?t+n:typeof t=="function"?t()+n:""}#b(t=this.#l,n=" "){return typeof t=="string"&&t!==""?n+t:typeof t=="function"?n+t():""}#m(){let t=this.#r.columns??80,n=this.#y(this.#a,"-"),r=this.#b(this.#l,"-"),o=" ".repeat(this.#d)+n+"--"+this.#g+"--"+r;this.#e=0;for(let i of ir(o).split(`
8
+ `))this.#e+=Math.max(1,Math.ceil(es(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#u&&!this.#c}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#u=t}get isSilent(){return this.#c}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=t}frame(){let t=Date.now();(this.#o===-1||t-this.#p>=this.interval)&&(this.#o=++this.#o%this.#i.frames.length,this.#p=t);let{frames:n}=this.#i,r=n[this.#o];this.color&&(r=Q[this.color](r));let o=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",i=typeof this.text=="string"?" "+this.text:"",s=typeof this.#l=="string"&&this.#l!==""?" "+this.#l:"";return o+r+i+s}clear(){if(!this.#u||!this.#r.isTTY)return this;this.#r.cursorTo(0);for(let t=0;t<this.#s;t++)t>0&&this.#r.moveCursor(0,-1),this.#r.clearLine(1);return(this.#d||this.lastIndent!==this.#d)&&this.#r.cursorTo(this.#d),this.lastIndent=this.#d,this.#s=0,this}render(){return this.#c?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#c?this:this.#u?this.isSpinning?this:(this.#t.hideCursor&&Zi.hide(this.#r),this.#t.discardStdin&&sr.default.stdin.isTTY&&(this.#n=!0,is.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#r.write(`- ${this.text}
9
+ `),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&Zi.show(this.#r),this.#t.discardStdin&&sr.default.stdin.isTTY&&this.#n&&(is.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:or.success,text:t})}fail(t){return this.stopAndPersist({symbol:or.error,text:t})}warn(t){return this.stopAndPersist({symbol:or.warning,text:t})}info(t){return this.stopAndPersist({symbol:or.info,text:t})}stopAndPersist(t={}){if(this.#c)return this;let n=t.prefixText??this.#a,r=this.#y(n," "),o=t.symbol??" ",i=t.text??this.text,a=typeof i=="string"?(o?" ":"")+i:"",u=t.suffixText??this.#l,l=this.#b(u," "),c=r+o+a+l+`
10
+ `;return this.stop(),this.#r.write(c),this}}});function cs(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),co.default.platform==="darwin"?wy(e):co.default.platform==="win32"?vy(e):ky(e)}var X,ls,co,gt,us,bn,wy,vy,ky,Eu=C(()=>{"use strict";X=D(require("path"),1),ls=D(require("os"),1),co=D(require("process"),1),gt=ls.default.homedir(),us=ls.default.tmpdir(),{env:bn}=co.default,wy=e=>{let t=X.default.join(gt,"Library");return{data:X.default.join(t,"Application Support",e),config:X.default.join(t,"Preferences",e),cache:X.default.join(t,"Caches",e),log:X.default.join(t,"Logs",e),temp:X.default.join(us,e)}},vy=e=>{let t=bn.APPDATA||X.default.join(gt,"AppData","Roaming"),n=bn.LOCALAPPDATA||X.default.join(gt,"AppData","Local");return{data:X.default.join(n,e,"Data"),config:X.default.join(t,e,"Config"),cache:X.default.join(n,e,"Cache"),log:X.default.join(n,e,"Log"),temp:X.default.join(us,e)}},ky=e=>{let t=X.default.basename(gt);return{data:X.default.join(bn.XDG_DATA_HOME||X.default.join(gt,".local","share"),e),config:X.default.join(bn.XDG_CONFIG_HOME||X.default.join(gt,".config"),e),cache:X.default.join(bn.XDG_CACHE_HOME||X.default.join(gt,".cache"),e),log:X.default.join(bn.XDG_STATE_HOME||X.default.join(gt,".local","state"),e),temp:X.default.join(us,t,e)}}});function po(){return/[<>:"/\\|?*\u0000-\u001F]/g}function _u(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Cu=C(()=>{"use strict"});function lr(e,t={}){let n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");let o=t.replacement===void 0?"!":t.replacement;if(po().test(o)&&n.test(o))throw new Error("Replacement string cannot contain reserved filename characters");o.length>0&&(e=e.replace(r,"$1")),e=e.normalize("NFD"),e=e.replace(Fy,o),e=e.replace(po(),o),e=e.replace(n,o),e=e.replace(Ey,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=_u().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:xy;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),u=e.slice(s);e=a.slice(0,Math.max(1,i-u.length))+u}}return e}var xy,Fy,Ey,ds=C(()=>{"use strict";Cu();xy=100,Fy=/^\.+(\\|\/)|^\.+$/,Ey=/\.+$/});var _y,Su=C(()=>{"use strict";_y=D(require("path"),1);ds()});var Tu=C(()=>{"use strict";ds();Su()});function Ou(e){ps=e}function ne(){return ps}function Ve(){return!ps}function Pu(e){Au=e}function Iu(){return Au}var ps,Au,de=C(()=>{"use strict";ps=!1});async function fo(e){try{return await e()}catch(t){throw t instanceof Error&&Cy.test(t.message)&&(d.debug(t.message),process.exit(130)),t}}async function pe(e){return ne()?e.default??!1:fo(()=>yt.confirm(e))}async function xe(e){return ne()?"default"in e?e.default:null:fo(()=>yt.select(e))}async function Be(e){return ne()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:fo(()=>yt.input(e))}async function mo(e){if(ne()){let t=[];return await e.validate?.(t)!==!0?null:t}return fo(()=>yt.checkbox(e))}var yt,Cy,Le=C(()=>{"use strict";yt=D(require("@inquirer/prompts"));de();U();Cy=/SIGINT/i});var ho,fs=C(()=>{"use strict";ho="webflow.json"});var et,Bt,ur=C(()=>{"use strict";et=class extends Error{constructor(t){super(`Manifest file not found at path: ${t}`),this.name="ManifestFileNotFoundError"}},Bt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function tt(){let e=Iu();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,ju.statSync)(e)?.isDirectory())return{path:(0,Bu.join)(e,ho),isUserDefined:!0}}catch{if(e.endsWith(".json"))return{path:e,isUserDefined:!0}}throw new Error(`Manifest path must be either a directory or a .json file. Got: ${e}`)}return{path:`./${ho}`,isUserDefined:!1}}var ju,Bu,go=C(()=>{"use strict";ju=require("fs"),Bu=require("path");fs();de()});var Lu,Sy,Ty,ms,Ru=C(()=>{"use strict";Lu=D(require("ajv")),Sy=new Lu.default,Ty={type:"object",properties:{library:{type:"object",properties:{name:{type:"string",minLength:1},id:{type:"string",minLength:1},components:{type:"array",items:{type:"string"},minItems:1},renderer:{anyOf:[{type:"object",properties:{client:{type:"string",minLength:1},server:{type:"string",minLength:1}}},{type:"string",minLength:1}]},globals:{type:"string",minLength:1}},required:[]},devlink:{type:"object",properties:{rootDir:{type:"string",minLength:1},cssModules:{type:"boolean"},allowTelemetry:{type:"boolean"},overwriteModule:{type:"boolean"},skipTagSelectors:{type:"boolean"},envVariables:{type:"object",additionalProperties:{type:"string"}},components:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},fileExtensions:{type:"object",properties:{js:{type:"string"},css:{type:"string"}}},relativeHrefRoot:{oneOf:[{type:"boolean"},{type:"string"}]}},required:["rootDir"]}}},ms=Sy.compile(Ty)});function Nu(e){return e instanceof Error?e:new Error("Unknown error")}function ce(){let{path:e}=tt();if(!(0,yo.existsSync)(e))throw new et(e);let t;try{t=(0,yo.readFileSync)(e,"utf8")}catch(r){throw new Error(`Failed to read manifest file: ${Nu(r).message}`)}let n;try{n=JSON.parse(t)}catch(r){throw new Error(`Invalid JSON in manifest file: ${Nu(r).message}`)}if(!ms(n)){let r=ms.errors?.map(o=>`${o.instancePath} ${o.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${r}.`)}return{manifest:n,manifestPath:e}}var yo,hs=C(()=>{"use strict";yo=require("fs");ur();go();Ru()});function cr(e,t){let n=e[t];if(!n)throw new Bt(t);return n}var Mu=C(()=>{"use strict";ur()});function ae(e){let t,n;try{let o=ce();t=o.manifest,n=o.manifestPath}catch(o){if(o instanceof et)t={},n=tt().path;else throw o}let r={...t};for(let o in e){let i=o,s=e[i];if(s!==void 0)if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"||s===null)r[i]=s;else{let a=r[i];r[i]={...typeof a=="object"&&a!==null?a:{},...s}}}(0,$u.writeFileSync)(n,JSON.stringify(r,null,2),"utf-8")}var $u,Wu=C(()=>{"use strict";$u=require("fs");ur();hs();go()});var Re=C(()=>{"use strict";fs();ur();hs();go();Mu();Wu()});var gs=Li((mC,Ay)=>{Ay.exports={name:"@webflow/webflow-cli",version:"1.12.0",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:local":"jest"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@dotenvx/dotenvx":"^1.44.1","@inquirer/prompts":"^7.9.0","@module-federation/enhanced":"0.20.0","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","env-paths":"^3.0.0","fast-glob":"^3.3.3",filenamify:"^6.0.0","fork-ts-checker-webpack-plugin":"9.1.0","form-data":"4.0.4","fs-extra":"^11.3.0","jsonc-parser":"^3.2.0",md5:"^2.2.1",memfs:"4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",ora:"^8.2.0",postcss:"^8.5.6","postcss-loader":"^8.1.1","postcss-selector-parser":"^7.1.0",prettier:"^2.7.1",semver:"^7.7.2","serve-handler":"^6.1.5","source-map-support":"^0.5.21",tar:"^7.4.3","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.0",webpack:"^5.99.7","webpack-merge":"^6.0.1","webpack-node-externals":"^3.0.0",zod:"^3.22.4"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/fs-extra":"^11.0.4","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"2.6.13","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","@types/source-map":"^0.5.2","@types/webpack-node-externals":"^3.0.4",astro:"^5.7.0","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1",tar:"^7.4.3","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}}});function nt(){try{return gs().version}catch{return"unknown"}}function Ge(e=""){if(!e)return"";let t=e;t=t.replace(/\/.*?\/webflow-cli/gi,"/REDACTED_PII/webflow-cli"),t=t.replace(/\/.*?\/node_modules/gi,"/REDACTED_PII/node_modules");let n=dr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=dr.default.userInfo().username;if(r){let o=new RegExp(`/Users/${r}`,"gi");t=t.replace(o,"/Users/REDACTED_PII")}return t=t.replace(/\/Users\/[^\/\s]+/gi,"/Users/REDACTED_PII"),t=t.replace(/C:\\Users\\[^\\]+/gi,"C:\\Users\\REDACTED_PII"),t=t.replace(/[a-zA-Z0-9]{32,}/g,"[REDACTED_TOKEN]"),t=t.replace(/Bearer\s+[^\s]+/gi,"Bearer [REDACTED_TOKEN]"),t=t.replace(/token[=:]\s*[^\s]+/gi,"token=[REDACTED_TOKEN]"),t=t.replace(/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,"[REDACTED_EMAIL]"),t=t.replace(/\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,"[REDACTED_IP]"),t}function ys(e){if(e.stack)return Ge(e.stack)}function bt(e){let t=["password","token","secret","key","auth","bearer","authorization","apikey","api_key","access_token","refresh_token","client_secret","private_key"],n={};for(let[r,o]of Object.entries(e)){let i=r.toLowerCase();t.some(s=>i.includes(s))?n[r]="[REDACTED]":typeof o=="string"?n[r]=Ge(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=bt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?bt(s):typeof s=="string"?Ge(s):s):n[r]=o}return n}function zu(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${dr.default.type()} ${dr.default.release()}`}}function bs(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var dr,pr=C(()=>{"use strict";dr=D(require("os"))});var Lt,Ds=C(()=>{"use strict";Le();Re();pr();de();Lt=class e{static instance;cache=void 0;static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await ce(),n=t?.telemetry?.global?.allowTelemetry;return this.cache=n,n}catch{return}}async setPreference(t){this.cache=t,await this.setGlobalPreference(t)}async promptForConsent(t){if(ne())return Promise.resolve(!1);let o=await pe({message:t||"Help us improve Webflow CLI by sharing usage data and error reports?",default:!0});return await pe({message:"Would you like to save this choice for all Webflow CLI commands?",default:!0})&&await this.setPreference(o),o}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let n={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:nt()}}};await ae(n),this.cache=t}async hasGlobalPreference(){return await this.getPreference()!==void 0}async getTelemetryStatus(){let t=await this.getPreference();return t!==void 0?{enabled:t,source:"global",hasPreference:!0}:{enabled:!1,source:"none",hasPreference:!1}}setCacheValue(t,n){this.cache=n}}});async function Ne(e,t){let r={"User-Agent":`webflow-cli@${nt()}`};return(0,Uu.default)(e,{...t,headers:{...t?.headers,...r}})}var Uu,Dn=C(()=>{"use strict";Uu=D(require("node-fetch"));Rt()});var qe,ws=C(()=>{"use strict";Ds();pr();U();Dn();qe=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Lt.getInstance(),this.sessionId=bs(),this.platformInfo=zu()}async sendEvent(t){if(await this.isEnabled())try{let n=this.enrichEvent(t),r=this.sanitizeEvent(n);await this.transmitEvent(r)}catch(n){d.debug(`Failed to send telemetry event: ${n}`)}}async sendError(t,n,r){if(!await this.isEnabled())return;let o={eventType:"error",name:t.name,message:t.message,cause:t.cause,stack:ys(t),context:n,metadata:r?bt(r):void 0};await this.sendEvent(o)}async sendUsage(t,n,r,o){if(!await this.isEnabled())return;let i={eventType:"usage",feature:t,success:n,duration:r,data:o?bt(o):void 0};await this.sendEvent(i)}async sendPerformance(t,n,r){if(!await this.isEnabled())return;let o={eventType:"performance",operation:t,duration:n,memoryBefore:void 0,memoryAfter:void 0,metrics:r};await this.sendEvent(o)}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}async promptForConsentIfNeeded(t){let n=await this.consentManager.getPreference();return n!==void 0?n:await this.consentManager.promptForConsent(t??"Help us improve Webflow CLI by sharing usage data and error reports?")}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:nt(),command:process.argv.slice(2).join(" ")||void 0,metadata:{...t.metadata,commandType:this.config.commandType,siteId:this.config.siteId,projectId:this.config.projectId,os:this.platformInfo.os,arch:this.platformInfo.arch}},...t}}sanitizeEvent(t){let n=JSON.parse(JSON.stringify(t));return n.message&&(n.message=Ge(n.message)),n.stack&&(n.stack=Ge(n.stack)),n.context&&(n.context=Ge(n.context)),n.metadata&&(n.metadata=bt(n.metadata)),n.data&&(n.data=bt(n.data)),n}async transmitEvent(t){let n=this.getEndpoint(),r=process.env.WEBFLOW_TELEMETRY_DEBUG==="true";if(r){console.log(`\u{1F4CA} [Telemetry] Sending to: ${n}`);let i={...t};i.metadata&&(delete i.metadata.authToken,delete i.metadata.apiToken),console.log("\u{1F4CA} [Telemetry] Payload:",JSON.stringify(i,null,2))}let o=await Ne(n,{method:"POST",headers:{Authorization:`Bearer ${this.config.authToken}`,"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3});if(o.ok)r&&console.log(`\u{1F4CA} [Telemetry] Request successful: ${o.status}`);else throw r&&console.error(`\u{1F4CA} [Telemetry] Request failed: ${o.status} ${o.statusText}`),new Error(`Telemetry request failed: ${o.status} ${o.statusText}`)}getEndpoint(){let{host:t,commandType:n}=this.config;return`${t}/webflow-cli/${n}/telemetry`}static fromDevlinkConfig(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"devlink",allowTelemetry:t.allowTelemetry})}static forCloud(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host,authToken:t.authToken,commandType:"library"})}}});var Vu=C(()=>{"use strict"});function bo(e){return async(t,n)=>{try{await e.sendError(t,n)}catch(r){d.debug("Failed to send error telemetry:"+r)}}}function Do(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,u=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:u-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}function Gu(e){return async(t,n,r)=>{let o=Date.now();try{let i=await n(),s=Date.now()-o;return await e.sendUsage(t,!0,s,r),i}catch(i){let s=Date.now()-o;throw await e.sendUsage(t,!1,s,{error:i instanceof Error?i.message:"Unknown error",...r}),i}}}var Rt=C(()=>{"use strict";U();ws();Ds();Vu();pr();ws();pr()});var ks,vs,Oy,rt,xs=C(()=>{"use strict";ks=Symbol("webflow-cli-warn"),vs=class{warnings=[];originalConsoleWarn=null;isActive=!1;parseSource(t){let n=t.split(`
11
+ `);for(let r=2;r<n.length;r++){let o=n[r],i=o.match(/at .+? \((.+?):\d+:\d+\)/)||o.match(/at (.+?):\d+:\d+/);if(i){let s=i[1];if(s.includes("node_modules")){let a=s.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)/);return a?`External: ${a[1]}`:"External Dependencies"}else if(s.includes("webflow-cli"))return s.includes("/metadata/")?"Metadata Collection":s.includes("/bundler/")?"Bundling":s.includes("/commands/")?"CLI Commands":"Webflow CLI"}}return"General"}start(){this.isActive||(this.warnings=[],this.originalConsoleWarn=console.warn,this.isActive=!0,console.warn=(...t)=>{if(t.length>1&&t[t.length-1]===ks){let i=t.slice(0,-1);this.originalConsoleWarn&&this.originalConsoleWarn(...i);return}let n=t.map(i=>{if(typeof i=="string")return i;if(i instanceof Error)return i.message;try{return String(i)}catch{return"[Object]"}}).join(" "),r=new Error().stack||"",o=this.parseSource(r);this.warnings.push({message:n,timestamp:Date.now(),source:o,stackTrace:r})})}stop(){this.isActive&&(this.originalConsoleWarn&&(console.warn=this.originalConsoleWarn,this.originalConsoleWarn=null),this.isActive=!1)}displayGrouped(){if(this.warnings.length===0)return;console.log(`
12
12
  \u26A0\uFE0F Warnings:
13
13
  `);let t=this.warnings.reduce((n,r)=>{let o=r.source||"General";return n[o]||(n[o]=[]),n[o].push(r),n},{});Object.entries(t).forEach(([n,r])=>{n!=="General"&&console.log(` ${n}:`),r.forEach((o,i)=>{let s=n!=="General"?" ":" ",a=o.message||"[Empty warning message]";console.log(`${s}${i+1}. ${a}`)}),n!=="General"&&console.log("")}),t.General&&console.log("")}debug(){console.log(`
14
14
  \u{1F41B} Debug: Captured Warnings
15
15
  `),this.warnings.forEach((t,n)=>{console.log(`Warning ${n+1}:`),console.log(` Source: ${t.source}`),console.log(` Message: ${t.message}`),console.log(` Message length: ${t.message.length}`),console.log(` Timestamp: ${new Date(t.timestamp).toISOString()}`),t.stackTrace&&(console.log(" Stack (first 3 lines):"),t.stackTrace.split(`
16
- `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},Ry=new Fs,ot=Ry});function Ku(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function Dt(e){mr.push(Ge(e)),mr.length>$y&&mr.shift()}function Uy(e){return Dt(`DEBUG: ${e}`),`${ne.cyan("DEBUG:")} ${e}`}function He(e){return Dt(`INFO: ${e}`),`${ne.green("INFO:")} ${e}`}function wn(e){return Dt(`WARN: ${e}`),`${ne.yellow("WARN:")} ${e}`}function it(e){let t=e instanceof Error?e.stack:e;return Dt(`ERROR: ${t}`),Cs=!0,`${ne.red("ERROR:")} ${t}`}function Vy(e){return Dt(`SUCCESS: ${e}`),`${ne.green(e)}`}function Gy(e){let t=hn(`${e}...`).start(),n=!1,r=o=>i=>{Dt(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(Cs=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function qy(){let e=bn.default.readdirSync(Ee).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:bn.default.statSync(vo.default.join(Ee,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=My;)try{let t=e.pop();if(!t)break;bn.default.removeSync(vo.default.join(Ee,t.name))}catch{}}function Ss(){try{bn.default.ensureDirSync(Ee),qy(),mr.unshift(`CLI Version: ${Rt()}`,`Command: ${process.argv.slice(2).join(" ")||"N/A"}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}
17
- `),bn.default.writeFileSync(Yu,mr.join(`
18
- `)),(process.env.DEBUG||Cs||process.argv.includes("--verbose"))&&(console.info(`
19
- ${ne.green("INFO:")} Full log of this session: ${Yu}`),console.info(`
20
- ${ne.green("INFO:")} All logs: ${Ee}`))}catch(e){console.error("Failed to write logs:",e)}}var bn,vo,NC,Ny,Ee,My,$y,Wy,Yu,mr,Cs,zy,ne,Dn,p,U=C(()=>{"use strict";bn=D(require("fs-extra")),vo=D(require("path")),NC=require("source-map-support/register");cs();Tu();Iu();yn();_s();Ny=fs("webflow-cli"),Ee=Ny.log;My=Ku(process.env.MAX_PERSISTED_LOGS,50),$y=Ku(process.env.MAX_IN_MEMORY_LOGS,1e3),Wy=`${ur(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Yu=vo.default.join(Ee,Wy);mr=[],Cs=!1,zy={reset:"\x1B[0m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"},ne=Object.entries(zy).reduce((e,[t,n])=>({...e,[t]:r=>`${n}${r}\x1B[0m`}),{});Dn=!1;process.on("uncaughtException",e=>{Dn||(Dn=!0,Dt(`UNCAUGHT EXCEPTION: ${e?.stack}`),Ss()),ot.displayGrouped(),ot.stop(),process.exit(1)});process.on("unhandledRejection",e=>{Dn||(Dn=!0,Dt(`UNHANDLED REJECTION: ${e?.stack}`),Ss()),ot.displayGrouped(),ot.stop(),process.exit(1)});process.on("exit",()=>{Dn||(Dn=!0,Ss())});p={debug:e=>{let t=Uy(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(He(e)),warn:e=>console.warn(wn(e),Es),error:e=>console.error(it(e)),success:e=>console.log(Vy(e)),spinner:Gy}});var ic,sc=C(()=>{"use strict";ic=e=>{try{let t=new URL(e);return!(!["http:","https:"].includes(t.protocol)||e.includes("?")||e.includes("#")||t.search||t.hash)}catch{return!1}}});var Os,Z,st,vn,yr,Ps,br,Dr,xo,fe=C(()=>{"use strict";sc();Os=(e,t)=>(ic(t)||(console.error(`Error: Invalid ${e} environment variable. Only valid plain HTTP/HTTPS URLs without query parameters and anchors is allowed.`),process.exit(1)),t),Z=process.env.WEBFLOW_API_HOST?Os("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):process.env.BUILD_ENV==="development"?"https://api.wfdev.io:8443":process.env.BUILD_ENV==="acceptance"?"https://api.webflowtest.com":"https://api.webflow.com",st=process.env.WEBFLOW_CDN_API_HOST?Os("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):process.env.BUILD_ENV==="development"?"https://api-cdn.wfdev.io:8443":process.env.BUILD_ENV==="acceptance"?"https://api-cdn.webflowtest.com":"https://api-cdn.webflow.com",vn=process.env.WEBFLOW_HOST?Os("WEBFLOW_HOST",process.env.WEBFLOW_HOST):process.env.BUILD_ENV==="development"?"https://wfdev.io:8443":process.env.BUILD_ENV==="acceptance"?"https://webflowtest.com":"https://webflow.com",yr="wf-manifest.json",Ps="mf-manifest.json",br="@webflow_renderer",Dr="ssr-bundle.tar",xo="index.js"});async function tb(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,wc.pathToFileURL)(e).href:e)).default}function Dc(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new $s(n.join(", "))}async function Fn(e=[],t=!1){if(!xc){if(t)return{};throw new Po(at)}if(!lt)throw new Ms;switch(lt){case"js":case"cjs":{await Je.access(at);let n=await tb(at);return Dc(n,e),n}case"json":{let n=JSON.parse(await Je.readFile(at,"utf8"));return Dc(n,e),n}default:throw new Oo}}function nb(e,t){if(lt==="js"||lt==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function rb(e,t,n){let r=nb(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function ob(e){let t=["authToken","host","siteId"],n=await Je.readFile(at,"utf-8");for(let r of t)e=rb(e,n,r);return e}async function ib(){try{let e=Er.join(Ws,"package.json");return await Je.access(e),JSON.parse(await Je.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function Fc(e){if(!xc)throw new Po(at);let t=JSON.stringify(e,null,2);switch(lt){case"js":case"cjs":{let n=await ob(t.replace(/"([^"]+)":/g,"$1:")),r=await ib()&&lt==="js"?"export default ":"module.exports = ";return Je.writeFile(at,r+n)}case"json":return Je.writeFile(at,t);default:throw new Oo}}var Er,Je,Io,wc,P2,vc,Ws,kc,lt,at,xc,Ms,Oo,Po,$s,jo=C(()=>{"use strict";Er=D(require("path")),Je=D(require("fs/promises")),Io=D(require("fs")),wc=require("url"),P2=require("dotenv/config"),vc=["js","cjs","json"],Ws=process.cwd(),kc=".webflowrc",lt=Er.extname(Io.readdirSync(Ws).find(e=>e.includes(kc))??"").replace(/\./g,""),at=Er.join(Ws,`${kc}${lt&&`.${lt}`}`),xc=Io.existsSync(at),Ms=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${vc.join(", ")}`)}},Oo=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${lt}. The supported extensions are: ${vc.join(", ")}`)}},Po=class extends Error{constructor(t){let n=t.includes(".webflowrc"),r=t.includes("webflow.json"),o;n?o=`It seems like you don't have a .webflowrc file in your project (${t}). Make sure there is a .webflowrc file in your project root.`:r?o=`It seems like you don't have a webflow.json file in your project (${t}). Make sure there is a webflow.json file in your project root.`:o=`It seems like you don't have a config file in your project (${t}). Make sure there is a config file in your project root.`,super(o)}},$s=class extends Error{constructor(t){super(`The following required fields are missing or undefined in your .webflowrc file: ${t}. If you're using process.env variables, make sure they're set up correctly.`)}}});function qs(e,t){console.clear(),t?.forEach(n=>console.log(n,`
21
- `)),console.log(e,`
22
- `)}var qc,ub,oe,Cr=C(()=>{"use strict";U();qc=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],ub=function(){let t,n=[];return{render(r){if(clearInterval(t),r.showSpinner){let o=0;t=setInterval(()=>{let i=qc[o=++o%qc.length];qs(`${ne.magenta(i)} ${r.text}`,r.flushLogs?n:[])},80)}else qs(r.text,r.flushLogs?n:[])},log(r){n.push(r),qs(r)}}}();oe=ub});async function Mo(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=nt(),i=Jc.existsSync(r),s=!1;try{let{manifest:a}=de();s=!0,o&&oe.render({text:He(`Using manifest file: ${r}`)});try{let u=dr(a,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_SITE_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
16
+ `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},Oy=new vs,rt=Oy});function Hu(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function Dt(e){fr.push(Ge(e)),fr.length>jy&&fr.shift()}function Ry(e){return Dt(`DEBUG: ${e}`),e}function Ny(e){return Dt(`INFO: ${e}`),e}function My(e){return Dt(`WARN: ${e}`),e}function $y(e){let t=e instanceof Error?e.stack:e;return Dt(`ERROR: ${t}`),Fs=!0,t}function Wy(e){return Dt(`SUCCESS: ${e}`),`${Nt.green(e)}`}function zy(e){let t=yn(`${e}...`).start(),n=!1,r=o=>i=>{Dt(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(Fs=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function Uy(){let e=wn.default.readdirSync(Fe).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:wn.default.statSync(wo.default.join(Fe,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=Iy;)try{let t=e.pop();if(!t)break;wn.default.removeSync(wo.default.join(Fe,t.name))}catch{}}function Es(){try{wn.default.ensureDirSync(Fe),Uy(),fr.unshift(`CLI Version: ${nt()}`,`Command: ${process.argv.slice(2).join(" ")||"N/A"}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}
17
+ `),wn.default.writeFileSync(qu,fr.join(`
18
+ `)),(process.env.DEBUG||Fs||process.argv.includes("--verbose"))&&(console.info(`
19
+ Full log of this session: ${qu}`),console.info(`
20
+ All logs: ${Fe}`))}catch(e){console.error("Failed to write logs:",e)}}var wn,wo,MC,Py,Fe,Iy,jy,By,qu,fr,Fs,Ly,Nt,vn,d,U=C(()=>{"use strict";wn=D(require("fs-extra")),wo=D(require("path")),MC=require("source-map-support/register");as();Eu();Tu();Rt();xs();Py=cs("webflow-cli"),Fe=Py.log;Iy=Hu(process.env.MAX_PERSISTED_LOGS,50),jy=Hu(process.env.MAX_IN_MEMORY_LOGS,1e3),By=`${lr(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,qu=wo.default.join(Fe,By);fr=[],Fs=!1,Ly={reset:"\x1B[0m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"},Nt=Object.entries(Ly).reduce((e,[t,n])=>({...e,[t]:r=>`${n}${r}\x1B[0m`}),{});vn=!1;process.on("uncaughtException",e=>{vn||(vn=!0,Dt(`UNCAUGHT EXCEPTION: ${e?.stack}`),Es()),rt.displayGrouped(),rt.stop(),process.exit(1)});process.on("unhandledRejection",e=>{vn||(vn=!0,Dt(`UNHANDLED REJECTION: ${e?.stack}`),Es()),rt.displayGrouped(),rt.stop(),process.exit(1)});process.on("exit",()=>{vn||(vn=!0,Es())});d={debug:e=>{let t=Ry(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(Ny(e)),warn:e=>console.warn(My(e),ks),error:(e,t)=>{let n=e;t!==void 0&&(n+=`
21
+ ${t instanceof Error?t.stack:t}`),console.error($y(n))},success:e=>console.log(Wy(e)),spinner:zy}});var tc,nc=C(()=>{"use strict";tc=e=>{try{let t=new URL(e);return!(!["http:","https:"].includes(t.protocol)||e.includes("?")||e.includes("#")||t.search||t.hash)}catch{return!1}}});var Ss,Z,ot,kn,gr,Ts,yr,br,ko,fe=C(()=>{"use strict";nc();Ss=(e,t)=>(tc(t)||(console.error(`Error: Invalid ${e} environment variable. Only valid plain HTTP/HTTPS URLs without query parameters and anchors is allowed.`),process.exit(1)),t),Z=process.env.WEBFLOW_API_HOST?Ss("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",ot=process.env.WEBFLOW_CDN_API_HOST?Ss("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",kn=process.env.WEBFLOW_HOST?Ss("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",gr="wf-manifest.json",Ts="mf-manifest.json",yr="@webflow_renderer",br="ssr-bundle.tar",ko="index.js"});async function Xy(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,gc.pathToFileURL)(e).href:e)).default}function hc(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Rs(n.join(", "))}async function xn(e=[],t=!1){if(!Dc){if(t)return{};throw new To(it)}if(!st)throw new Ls;switch(st){case"js":case"cjs":{await He.access(it);let n=await Xy(it);return hc(n,e),n}case"json":{let n=JSON.parse(await He.readFile(it,"utf8"));return hc(n,e),n}default:throw new So}}function Qy(e,t){if(st==="js"||st==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function eb(e,t,n){let r=Qy(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function tb(e){let t=["authToken","host","siteId"],n=await He.readFile(it,"utf-8");for(let r of t)e=eb(e,n,r);return e}async function nb(){try{let e=_r.join(Ns,"package.json");return await He.access(e),JSON.parse(await He.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function wc(e){if(!Dc)throw new To(it);let t=JSON.stringify(e,null,2);switch(st){case"js":case"cjs":{let n=await tb(t.replace(/"([^"]+)":/g,"$1:")),r=await nb()&&st==="js"?"export default ":"module.exports = ";return He.writeFile(it,r+n)}case"json":return He.writeFile(it,t);default:throw new So}}var _r,He,Ao,gc,W2,yc,Ns,bc,st,it,Dc,Ls,So,To,Rs,Oo=C(()=>{"use strict";_r=D(require("path")),He=D(require("fs/promises")),Ao=D(require("fs")),gc=require("url"),W2=require("dotenv/config"),yc=["js","cjs","json"],Ns=process.cwd(),bc=".webflowrc",st=_r.extname(Ao.readdirSync(Ns).find(e=>e.includes(bc))??"").replace(/\./g,""),it=_r.join(Ns,`${bc}${st&&`.${st}`}`),Dc=Ao.existsSync(it),Ls=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${yc.join(", ")}`)}},So=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${st}. The supported extensions are: ${yc.join(", ")}`)}},To=class extends Error{constructor(t){let n=t.includes(".webflowrc"),r=t.includes("webflow.json"),o;n?o=`It seems like you don't have a .webflowrc file in your project (${t}). Make sure there is a .webflowrc file in your project root.`:r?o=`It seems like you don't have a webflow.json file in your project (${t}). Make sure there is a webflow.json file in your project root.`:o=`It seems like you don't have a config file in your project (${t}). Make sure there is a config file in your project root.`,super(o)}},Rs=class extends Error{constructor(t){super(`The following required fields are missing or undefined in your .webflowrc file: ${t}. If you're using process.env variables, make sure they're set up correctly.`)}}});async function Lo(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=tt(),i=Uc.existsSync(r),s=!1;try{let{manifest:a}=ce();s=!0,o&&d.info(`Using manifest file: ${r}`);try{let u=cr(a,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_SITE_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
23
22
 
24
23
  To set up your credentials, run:
25
- webflow auth login`);return Hc(u?.relativeHrefRoot),{...u,host:Z,authToken:t,siteId:n,cssModules:!!u?.cssModules,components:No(u?.components),fileExtensions:{...Ro,...u.fileExtensions},...e}}catch(u){oe.render({text:it(u instanceof Error?u.message:String(u))}),process.exit(1)}}catch(a){o&&(oe.render({text:it(`The manifest file specified via --manifest flag was not found or is invalid: ${r}
26
- ${a instanceof Error?a.message:String(a)}`)}),process.exit(1)),i&&(oe.render({text:it(`Your manifest file exists but is invalid or missing required properties: ${r}
27
- ${a instanceof Error?a.message:String(a)}`)}),process.exit(1)),s&&(a instanceof Error&&oe.render({text:it(a instanceof Error?a.message:String(a))}),process.exit(1))}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let u=await Fn(a);return Hc(u?.relativeHrefRoot),{...u,host:u.host||Z,cssModules:!!u?.cssModules,components:No(u?.components),fileExtensions:{...Ro,...u.fileExtensions},...e}}catch(a){if(a instanceof Error){let u=a.message.includes(".webflowrc")?`No configuration file found. Please create either:
24
+ webflow auth login`);return zc(u?.relativeHrefRoot),{...u,host:Z,authToken:t,siteId:n,cssModules:!!u?.cssModules,components:Bo(u?.components),fileExtensions:{...jo,...u.fileExtensions},...e}}catch(u){d.error(`Failed to read devlink config from manifest file: ${r}
25
+ ${u instanceof Error?u.message:String(u)}`),process.exit(1)}}catch(a){o&&(d.error(`The manifest file specified via --manifest flag was not found or is invalid: ${r}
26
+ ${a instanceof Error?a.message:String(a)}`),process.exit(1)),i&&(d.error(`Your manifest file exists but is invalid or missing required properties: ${r}
27
+ ${a instanceof Error?a.message:String(a)}`),process.exit(1)),s&&(d.error(`Your manifest file exists but is invalid or missing required properties: ${r}
28
+ ${a instanceof Error?a.message:String(a)}`),process.exit(1))}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let u=await xn(a);return zc(u?.relativeHrefRoot),{...u,host:u.host||Z,cssModules:!!u?.cssModules,components:Bo(u?.components),fileExtensions:{...jo,...u.fileExtensions},...e}}catch(a){if(a instanceof Error){let u=a.message.includes(".webflowrc")?`No configuration file found. Please create either:
28
29
  - webflow.json with a "devlink" section, or
29
30
  - .webflowrc file
30
- in your project root.`:a.message;oe.render({text:it(u)}),process.exit(1)}else throw a}}function Hc(e){if(!(e===void 0||e===!1)){if(typeof e=="string"){if(e==="/"||e.startsWith("http://")||e.startsWith("https://"))return;throw new Error(`Invalid relativeHrefRoot value "${e}". Must be false, "/" or an absolute URL starting with http:// or https://`)}throw new Error(`Invalid relativeHrefRoot type. Must be false, "/" or an absolute URL string, got: ${typeof e}`)}}function No(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var Jc,Ro,$o=C(()=>{"use strict";U();fe();jo();rt();Cr();Jc=D(require("fs")),Ro={js:"js",css:"css"}});var Sr,Zc=C(()=>{"use strict";Sr={printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,jsxBracketSameLine:!1,arrowParens:"always",requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf",embeddedLanguageFormatting:"auto",singleAttributePerLine:!1,parser:"babel",pluginSearchDirs:!1}});async function Qc(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=vt.join(process.cwd(),n);(0,Me.existsSync)(i)||await(0,En.mkdir)(i),Kc.forEach(u=>Hs.addEntry(u.name,u.options)),await pb(i,e,t,r);let s=e.reduce((u,l)=>({...u,[l.name]:l}),{}),a=await(0,En.readdir)(i);await Promise.all(a.map(u=>{let l=u.split(".")[0],c=s[l],d=!Xc.has(l);return d&&o&&!c?(0,En.rm)(vt.join(i,u),{recursive:!0,force:!0}):(d&&Hs.addEntry(l,{errorMessage:c?.error}),Promise.resolve())})),mb(Hs.getFile(),i)}function db(e="",t){let n=t?.envVariables??{};return Object.entries(n).forEach(([r,o])=>{e=e.replace(new RegExp(`DEVLINK_ENV_${r}`,"g"),o.trim())}),e}async function pb(e,t,n,r){await Promise.all(t.flatMap(o=>{let i=[];if(/\//.test(o.name)){let s=o.name.replace(/\/[^/]*$/,"");fb(e,s)}if(o.js){let s=db(o.js,n),a=Tr.default.format(s,Sr),l=!Xc.has(o.name)||["interactions","devlinkContext"].includes(o.name)?n.fileExtensions.js.replace(/\W/gi,""):Ro.js,c=vt.join(e,`${o.name}.${l}`);i.push((0,Me.writeFileSync)(c,a,{flag:"w+"}))}if(o.css){let s=n.fileExtensions.css.replace(/\W/gi,"");i.push((0,Me.writeFileSync)(vt.join(e,o.module?r?`${o.name}.module.${s}`:`global.${s}`:`${o.name}.${s}`),Zs(o.css,r),{flag:"w+"}))}return o.types&&i.push((0,Me.writeFileSync)(vt.join(e,`${o.name}.d.ts`),Tr.default.format(o.types,{...Sr,parser:"typescript"}),{flag:"w+"})),i}))}async function fb(e,t){let n=t.split("/"),r=e;for(let o of n)r+="/"+o,(0,Me.existsSync)(r)||(0,Me.mkdirSync)(r)}function mb(e,t){(0,Me.writeFileSync)(vt.join(t,"index.js"),Tr.default.format(e,Sr),{flag:"w+"}),(0,Me.writeFileSync)(vt.join(t,"index.d.ts"),Tr.default.format(e,{...Sr,parser:"typescript"}),{flag:"w+"})}function hb(e){let t=new Set,n=e.modules||{},r=e.useClient||!0;return{addEntry(o,i){t.add(o),n[o]={...n[o],...i}},getFile(){let o=r?`"use client";
31
+ in your project root.`:a.message;d.error(u),process.exit(1)}else throw a}}function zc(e){if(!(e===void 0||e===!1)){if(typeof e=="string"){if(e==="/"||e.startsWith("http://")||e.startsWith("https://"))return;throw new Error(`Invalid relativeHrefRoot value "${e}". Must be false, "/" or an absolute URL starting with http:// or https://`)}throw new Error(`Invalid relativeHrefRoot type. Must be false, "/" or an absolute URL string, got: ${typeof e}`)}}function Bo(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var Uc,jo,Ro=C(()=>{"use strict";U();fe();Oo();Re();Uc=D(require("fs")),jo={js:"js",css:"css"}});var Sr,Vc=C(()=>{"use strict";Sr={printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,jsxBracketSameLine:!1,arrowParens:"always",requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf",embeddedLanguageFormatting:"auto",singleAttributePerLine:!1,parser:"babel",pluginSearchDirs:!1}});async function Jc(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=at.join(process.cwd(),n);(0,be.existsSync)(i)||await(0,Fn.mkdir)(i),qc.forEach(a=>Gs.addEntry(a.name,a.options)),await lb(i,e,t,r);let s=e.reduce((a,u)=>({...a,[u.name]:u}),{});await Zc(i,"",s,o??!1),t.addIndexFile&&cb(Gs.getFile(),i)}function ab(e="",t){let n=t?.envVariables??{};return Object.entries(n).forEach(([r,o])=>{e=e.replace(new RegExp(`DEVLINK_ENV_${r}`,"g"),o.trim())}),e}function Us(e,t){let n=t.split("/");return at.join(e,...n.slice(0,-1),n[n.length-1])}async function lb(e,t,n,r){await Promise.all(t.flatMap(o=>{let i=[];if(o.name.includes("/")){let s=o.name.substring(0,o.name.lastIndexOf("/"));ub(e,s)}if(o.js){let s=ab(o.js,n),a=Tr.default.format(s,Sr),l=!Hc.test(o.name)||["interactions","devlinkContext"].includes(o.name)?n.fileExtensions.js.replace(/\W/gi,""):jo.js,c=Us(e,`${o.name}.${l}`);i.push((0,be.writeFileSync)(c,a,{flag:"w+"}))}if(o.css){let s=n.fileExtensions.css.replace(/^\./,""),a=o.module?r?`${o.name}.module.${s}`:`global.${s}`:`${o.name}.${s}`,u=Us(e,a);i.push((0,be.writeFileSync)(u,qs(o.css,r),{flag:"w+"}))}if(o.types){let s=Us(e,`${o.name}.d.ts`);i.push((0,be.writeFileSync)(s,Tr.default.format(o.types,{...Sr,parser:"typescript"}),{flag:"w+"}))}return i}))}function ub(e,t){let n=t.split("/"),r=e;for(let o of n)r=at.join(r,o),(0,be.existsSync)(r)||(0,be.mkdirSync)(r)}async function Zc(e,t,n,r){let o=at.join(e,t),i=await(0,Fn.readdir)(o);await Promise.all(i.map(async s=>{let a=t?at.join(t,s):s,u=at.join(e,a);if((0,be.statSync)(u).isDirectory()){await Zc(e,a,n,r);return}let l=a.split(".")[0].replace(/\\/g,"/"),c=n[l],p=!Hc.test(l);return p&&r&&!c?(0,Fn.rm)(u,{recursive:!0,force:!0}):(p&&Gs.addEntry(l,{errorMessage:c?.error}),Promise.resolve())}))}function cb(e,t){(0,be.writeFileSync)(at.join(t,"index.js"),Tr.default.format(e,Sr),{flag:"w+"}),(0,be.writeFileSync)(at.join(t,"index.d.ts"),Tr.default.format(e,{...Sr,parser:"typescript"}),{flag:"w+"})}function db(e){let t=new Set,n=e.modules||{},r=e.useClient||!0;return{addEntry(o,i){t.add(o),n[o]={...n[o],...i}},getFile(){let o=r?`"use client";
31
32
 
32
33
  `:"";o+=`console.warn("\u26A0\uFE0F Avoid importing components from 'index.js' for better performance. This practice is deprecated and may be removed in the future.");
33
34
 
34
- `;for(let i of t){let s=n[i]?.as,a=n[i]?.errorMessage,u=a?` // Error: ${a}`:"";o+=`export ${s?`* as ${s}`:"*"} from './${i}';${u}
35
- `}return o.trim()}}}function Zs(e,t){return t?Yc(e):(Js={...Js,...e},Yc(Js))}function Yc(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
35
+ `;let i=Array.from(t).sort((s,a)=>s.localeCompare(a));for(let s of i){let a=n[s]?.as,u=n[s]?.errorMessage,l=u?` // Error: ${u}`:"";o+=`export ${a?`* as ${a}`:"*"} from './${s}';${l}
36
+ `}return o.trim()}}}function qs(e,t){return t?Gc(e):(Vs={...Vs,...e},Gc(Vs))}function Gc(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
36
37
 
37
- `)}var Me,En,vt,Tr,cb,Hs,Kc,Xc,Js,Ys=C(()=>{"use strict";Me=require("fs"),En=require("fs/promises"),vt=D(require("path")),Tr=D(require("prettier"));$o();Zc();cb={modules:{},useClient:!0},Hs=hb(cb),Kc=[{name:"_Builtin",options:{as:"_Builtin"}},{name:"devlinkContext"},{name:"interactions"},{name:"utils"},{name:"devlink"}],Xc=new Set([...Kc.map(e=>e.name),"_Builtin/index","types","index","global"]);Js={}});function _n(e){return async function(n){zt.default.removeListener("uncaughtException",_n),zt.default.removeListener("unhandledRejection",_n);let r=await Mo(e);if(!r)return;await new Ks(r,n).prompt()}}function td(e){zt.default.on("uncaughtException",_n(e)),zt.default.on("unhandledRejection",_n(e))}var ed,zt,Ks,Xs=C(()=>{"use strict";ed=D(require("node-fetch"));Re();zt=D(require("process"));$o();jo();rt();be();Ks=class{config;error;constructor(t,n){this.config=t,this.error=n}stripPII(t=""){return t.replace(/\/(.*)webflow-cli/gi,"/REDACTED_PII/webflow-cli/").replace(/\/(.*)node_modules/gi,"/REDACTED_PII/node_modules")}sendTelemetry(){let t=this.config,n=this.error;(0,ed.default)(`${t.host}/devlink/${t.siteId}/telemetry`,{headers:{Authorization:`Bearer ${t.authToken}`,"Content-Type":"application/json"},method:"post",body:JSON.stringify({cause:n.cause,message:n.message,name:n.name,stack:this.stripPII(n.stack),platform:zt.default.platform,node:zt.default.version})})}async storeChoice(t){try{return De({devlink:{allowTelemetry:t}})}catch{let r=await Fn();await Fc({...r,allowTelemetry:t})}}async prompt(){let t=this.config;if(console.error(this.error),t.allowTelemetry===!0)console.log("Sending crash report telemetry..."),this.sendTelemetry();else if(t.allowTelemetry===!1){console.log("Skipping crash report telemetry...");return}else{if(re())return Promise.resolve(!1);let n=await pe({message:"An unexpected error ocurred while syncing your components. Would like to send a crash report back to the developer team?",default:!0});await pe({message:"Would you like to save this choice for the future?",default:!0})&&(console.log("Storing your choice..."),await this.storeChoice(n)),n?(console.log("Sending crash report telemetry..."),this.sendTelemetry()):console.log("Skipping crash report telemetry...")}}}});function ae(e){return e>=48&&e<=57}function Et(e){return ae(e)||e>=65&&e<=70||e>=97&&e<=102}function La(e){return e>=65&&e<=90}function tD(e){return e>=97&&e<=122}function nD(e){return La(e)||tD(e)}function rD(e){return e>=128}function Qo(e){return nD(e)||rD(e)||e===95}function Ra(e){return Qo(e)||ae(e)||e===45}function oD(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function ei(e){return e===10||e===13||e===12}function Gt(e){return ei(e)||e===32||e===9}function We(e,t){return!(e!==92||ei(t)||t===0)}function Jo(e,t,n){return e===45?Qo(t)||t===45||We(t,n):Qo(e)?!0:e===92?We(e,t):!1}function Qs(e,t,n){return e===43||e===45?ae(t)?2:t===46&&ae(n)?3:0:e===46?ae(t)?2:0:ae(e)?1:0}function Xd(e){return e===65279||e===65534?1:0}function ea(e){return e<128?ba[e]:Na}function Pn(e,t){return t<e.length?e.charCodeAt(t):0}function Da(e,t,n){return n===13&&Pn(e,t+1)===10?2:1}function In(e,t,n){let r=e.charCodeAt(t);return La(r)&&(r=r|32),r===n}function Nr(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let o=t;o<n;o++){let i=r.charCodeAt(o-t),s=e.charCodeAt(o);if(La(s)&&(s=s|32),s!==i)return!1}return!0}function sD(e,t){for(;t>=0&&Gt(e.charCodeAt(t));t--);return t+1}function Wo(e,t){for(;t<e.length&&Gt(e.charCodeAt(t));t++);return t}function ta(e,t){for(;t<e.length&&ae(e.charCodeAt(t));t++);return t}function qt(e,t){if(t+=2,Et(Pn(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Et(Pn(e,t));t++);let n=Pn(e,t);Gt(n)&&(t+=Da(e,t,n))}return t}function zo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Ra(n)){if(We(n,Pn(e,t+1))){t=qt(e,t)-1;continue}break}}return t}function ai(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),ae(n)&&(t=ta(e,t+1),n=e.charCodeAt(t)),n===46&&ae(e.charCodeAt(t+1))&&(t+=2,t=ta(e,t)),In(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),ae(n)&&(t=ta(e,t+1+r+1))}return t}function na(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}We(n,Pn(e,t+1))&&(t=qt(e,t))}return t}function Ma(e){if(e.length===1&&!Et(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}function ti(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function od(e){let t=e.source,n=t.length,r=t.length>0?Xd(t.charCodeAt(0)):0,o=ti(e.lines,n),i=ti(e.columns,n),s=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){let l=t.charCodeAt(u);o[u]=s,i[u]=a++,(l===nd||l===rd||l===aD)&&(l===rd&&u+1<n&&t.charCodeAt(u+1)===nd&&(u++,o[u]=s,i[u]=a),s++,a=1)}o[n]=s,i[n]=a,e.lines=o,e.columns=i,e.computed=!0}function li(e,t){function n(d){return d<a?e.charCodeAt(d):0}function r(){if(l=ai(e,l),Jo(n(l),n(l+1),n(l+2))){c=12,l=zo(e,l);return}if(n(l)===37){c=11,l++;return}c=10}function o(){let d=l;if(l=zo(e,l),Nr(e,d,l,"url")&&n(l)===40){if(l=Wo(e,l+1),n(l)===34||n(l)===39){c=2,l=d+4;return}s();return}if(n(l)===40){c=2,l++;return}c=1}function i(d){for(d||(d=n(l++)),c=5;l<e.length;l++){let f=e.charCodeAt(l);switch(ea(f)){case d:l++;return;case Zo:if(ei(f)){l+=Da(e,l,f),c=6;return}break;case 92:if(l===e.length-1)break;let m=n(l+1);ei(m)?l+=Da(e,l+1,m):We(f,m)&&(l=qt(e,l)-1);break}}}function s(){for(c=7,l=Wo(e,l);l<e.length;l++){let d=e.charCodeAt(l);switch(ea(d)){case 41:l++;return;case Zo:if(l=Wo(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=na(e,l),c=8;return;case 34:case 39:case 40:case ep:l=na(e,l),c=8;return;case 92:if(We(d,n(l+1))){l=qt(e,l)-1;break}l=na(e,l),c=8;return}}}e=String(e||"");let a=e.length,u=Xd(n(0)),l=u,c;for(;l<a;){let d=e.charCodeAt(l);switch(ea(d)){case Zo:c=13,l=Wo(e,l+1);break;case 34:i();break;case 35:Ra(n(l+1))||We(n(l+1),n(l+2))?(c=4,l=zo(e,l+1)):(c=9,l++);break;case 39:i();break;case 40:c=21,l++;break;case 41:c=22,l++;break;case 43:Qs(d,n(l+1),n(l+2))?r():(c=9,l++);break;case 44:c=18,l++;break;case 45:Qs(d,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(c=15,l=l+3):Jo(d,n(l+1),n(l+2))?o():(c=9,l++);break;case 46:Qs(d,n(l+1),n(l+2))?r():(c=9,l++);break;case 47:n(l+1)===42?(c=25,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(c=9,l++);break;case 58:c=16,l++;break;case 59:c=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(c=14,l=l+4):(c=9,l++);break;case 64:Jo(n(l+1),n(l+2),n(l+3))?(c=3,l=zo(e,l+1)):(c=9,l++);break;case 91:c=19,l++;break;case 92:We(d,n(l+1))?o():(c=9,l++);break;case 93:c=20,l++;break;case 123:c=23,l++;break;case 125:c=24,l++;break;case Qd:r();break;case Na:o();break;default:c=9,l++}t(c,u,u=l)}}function ui(e,t){let n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
38
- `)}})}function ad({source:e,line:t,column:n},r){function o(c,d){return i.slice(c,d).map((f,m)=>String(c+m+1).padStart(u)+" |"+f).join(`
39
- `)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-r)-1,a=Math.min(t+r,i.length+1),u=Math.max(4,String(a).length)+1,l=0;n+=(sd.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>ra&&(l=n-id+3,n=id-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,sd),i[c]=(l>0&&i[c].length>l?"\u2026":"")+i[c].substr(l,ra-2)+(i[c].length>l+ra-1?"\u2026":""));return[o(s,t),new Array(n+u+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
40
- `)}function ld(e,t,n,r,o){return Object.assign(ui("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return ad({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
41
- `+ad({source:t,line:r,column:o},2)}})}function dD(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let o=e.getNode.call(this,r);if(o===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,r),n=!1),t.push(o)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}function mD(e){return function(){return this[e]()}}function ia(e){let t=Object.create(null);for(let n in e){let r=e[n],o=r.parse||r;o&&(t[n]=o)}return t}function hD(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:ia(e.atrule),pseudo:ia(e.pseudo),node:ia(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=mD(e.parseContext[n]);break}return{config:t,...t,...t.node}}function gD(e){let t="",n="<unknown>",r=!1,o=ud,i=!1,s=new lD,a=Object.assign(new cD,hD(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:dD,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(u){return u===cd?1:0},consumeUntilLeftCurlyBracketOrSemicolon(u){return u===cd||u===oa?1:0},consumeUntilExclamationMarkOrSemicolon(u){return u===pD||u===oa?1:0},consumeUntilSemicolonIncluded(u){return u===oa?2:0},createList(){return new ie},createSingleNodeList(u){return new ie().appendData(u)},getFirstListNode(u){return u&&u.first},getLastListNode(u){return u&&u.last},parseWithFallback(u,l){let c=this.tokenIndex;try{return u.call(this)}catch(d){if(i)throw d;let f=l.call(this,c);return i=!0,o(d,f),i=!1,f}},lookupNonWSType(u){let l;do if(l=this.lookupType(u++),l!==13)return l;while(l!==dd);return dd},charCodeAt(u){return u>=0&&u<t.length?t.charCodeAt(u):0},substring(u,l){return t.substring(u,l)},substrToCursor(u){return this.source.substring(u,this.tokenStart)},cmpChar(u,l){return In(t,u,l)},cmpStr(u,l,c){return Nr(t,u,l,c)},consume(u){let l=this.tokenStart;return this.eat(u),this.substrToCursor(l)},consumeFunctionName(){let u=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),u},consumeNumber(u){let l=t.substring(this.tokenStart,ai(t,this.tokenStart));return this.eat(u),l},eat(u){if(this.tokenType!==u){let l=tp[u].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase()),c=`${/[[\](){}]/.test(l)?`"${l}"`:l} is expected`,d=this.tokenStart;switch(u){case 1:this.tokenType===2||this.tokenType===7?(d=this.tokenEnd-1,c="Identifier is expected but function found"):c="Identifier is expected";break;case 4:this.isDelim(fD)&&(this.next(),d++,c="Name is expected");break;case 11:this.tokenType===10&&(d=this.tokenEnd,c="Percent sign is expected");break}this.error(c,d)}this.next()},eatIdent(u){(this.tokenType!==1||this.lookupValue(0,u)===!1)&&this.error(`Identifier "${u}" is expected`),this.next()},eatDelim(u){this.isDelim(u)||this.error(`Delim "${String.fromCharCode(u)}" is expected`),this.next()},getLocation(u,l){return r?s.getLocationRange(u,l,n):null},getLocationFromList(u){if(r){let l=this.getFirstListNode(u),c=this.getLastListNode(u);return s.getLocationRange(l!==null?l.loc.start.offset-s.startOffset:this.tokenStart,c!==null?c.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(u,l){let c=typeof l<"u"&&l<t.length?s.getLocation(l):this.eof?s.getLocation(sD(t,t.length-1)):s.getLocation(this.tokenStart);throw new ld(u||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(u,l){t=u,l=l||{},a.setSource(t,li),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=!!l.positions,o=typeof l.onParseError=="function"?l.onParseError:ud,i=!1,a.parseAtrulePrelude="parseAtrulePrelude"in l?!!l.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in l?!!l.parseRulePrelude:!0,a.parseValue="parseValue"in l?!!l.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in l?!!l.parseCustomProperty:!1;let{context:c="default",onComment:d}=l;if(!(c in a.context))throw new Error("Unknown context `"+c+"`");typeof d=="function"&&a.forEachToken((m,y,F)=>{if(m===25){let $=a.getLocation(y,F),A=Nr(t,F-2,F,"*/")?t.slice(y+2,F-2):t.slice(y+2,F);d(A,$)}});let f=a.context[c].call(a,l);return a.eof||a.error(),f},{SyntaxError:ld,config:a.config})}function bD(e){let t=new yD.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,u=!1,l=e.node;e.node=function(f){if(f.loc&&f.loc.start&&pd.has(f.type)){let m=f.loc.start.line,y=f.loc.start.column-1;(r.line!==m||r.column!==y)&&(r.line=m,r.column=y,n.line=s,n.column=a,u&&(u=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),u=!0,t.addMapping({source:f.loc.source,original:r,generated:n}))}l.call(this,f),u&&pd.has(f.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(f,m,y){for(let F=0;F<f.length;F++)f.charCodeAt(F)===10?(s++,a=0):a++;c(f,m,y)};let d=e.result;return e.result=function(){return u&&t.addMapping(i),{css:d(),map:t}},e}function rp(e){let t=new Set(e.map(([n,r])=>sa(n)<<16|sa(r)));return function(n,r,o){let i=sa(r,o),s=o.charCodeAt(0);return(s===wD&&r!==1&&r!==2&&r!==15||s===DD?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function FD(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function ED(e){li(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function _D(e){let t=new Map;for(let n in e.node){let r=e.node[n];typeof(r.generate||r)=="function"&&t.set(n,r.generate||r)}return function(n,r){let o="",i=0,s={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:op,token(u,l){i=this.tokenBefore(i,u,l),this.emit(l,u,!1),u===9&&l.charCodeAt(0)===xD&&this.emit(`
42
- `,13,!0)},emit(u){o+=u},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=bD(s)),r.mode in wa&&(s.tokenBefore=wa[r.mode]));let a={node:u=>s.node(u),children:FD,token:(u,l)=>s.token(u,l),tokenize:ED};return s.node(n),s.result()}}function CD(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof ie)&&(n.children=new ie().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof ie&&(n.children=n.children.toArray())}}),t}}}function fd(e){return typeof e=="function"?e:Or}function md(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function SD(e,t){let n=t.structure,r=[];for(let o in n){if($a.call(n,o)===!1)continue;let i=n[o],s={name:o,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(let a of i)a===null?s.nullable=!0:typeof a=="string"?s.type="node":Array.isArray(a)&&(s.type="list");s.type&&r.push(s)}return r.length?{context:t.walkContext,fields:r}:null}function TD(e){let t={};for(let n in e.node)if($a.call(e.node,n)){let r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=SD(n,r)}return t}function hd(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,u){let l;o&&(l=s[r],s[r]=i);for(let c of n){let d=i[c.name];if(!c.nullable||d){if(c.type==="list"){if(t?d.reduceRight(u,!1):d.reduce(u,!1))return!0}else if(a(d))return!0}}o&&(s[r]=l)}}function gd({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}}}function AD(e){let t=TD(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)$a.call(t,l)&&t[l]!==null&&(n[l]=hd(t[l],!1),r[l]=hd(t[l],!0));let s=gd(n),a=gd(r),u=function(l,c){function d(A,R,x){let T=f.call($,A,R,x);return T===o?!0:T===i?!1:!!(y.hasOwnProperty(A.type)&&y[A.type](A,$,d,F)||m.call($,A,R,x)===o)}let f=Or,m=Or,y=n,F=(A,R,x,T)=>A||d(R,x,T),$={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")f=c;else if(c&&(f=fd(c.enter),m=fd(c.leave),c.reverse&&(y=r),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?a[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=md(f,c.visit),m=md(m,c.visit)}if(f===Or&&m===Or)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");d(l)};return u.break=o,u.skip=i,u.find=function(l,c){let d=null;return u(l,function(f,m,y){if(c.call(this,f,m,y))return d=f,o}),d},u.findLast=function(l,c){let d=null;return u(l,{reverse:!0,enter(f,m,y){if(c.call(this,f,m,y))return d=f,o}}),d},u.findAll=function(l,c){let d=[];return u(l,function(f,m,y){c.call(this,f,m,y)&&d.push(f)}),d},u}function OD(e){return e}function PD(e){let{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function ID(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function jD(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Wa(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Wa(e,t,n,r){let o;switch(e.type){case"Group":o=jD(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Wa(e.term,t,n,r)+t(PD(e),e);case"Type":o="<"+e.name+(e.opts?t(ID(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}function ci(e,t){let n=OD,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Wa(e,n,r,o)}function BD(e,t){let n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null,s=0,a=0,u=0,l="",c,d;for(let f=0;f<n.length;f++){let m=n[f].value;f===r&&(a=m.length,s=l.length),i!==null&&n[f].node===i&&(f<=r?u++:u=0),l+=m}return r===n.length||u>1?(c=Uo(i||t,"end")||Pr(yd,l),d=Pr(c)):(c=Uo(i,"start")||Pr(Uo(t,"start")||yd,l.slice(0,s)),d=Uo(i,"end")||Pr(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:d}}function Uo(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Pr(n):n:null}function Pr({offset:e,line:t,column:n},r){let o={offset:e,line:t,column:n};if(r){let i=r.split(/\n|\r\n?|\f/);o.offset+=r.length,o.line+=i.length-1,o.column=i.length===1?o.column+r.length:i.pop().length+1}return o}function za(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===ni&&e.charCodeAt(t+1)===ni}function ip(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===ni&&e.charCodeAt(t+1)!==ni){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function RD(e){if(Vo.has(e))return Vo.get(e);let t=e.toLowerCase(),n=Vo.get(t);if(n===void 0){let r=za(t,0),o=r?"":ip(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Vo.set(e,n),n}function ND(e){if(Sn.has(e))return Sn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=za(t,n.length);if(!r&&(t=t.toLowerCase(),Sn.has(t))){let a=Sn.get(t);return Sn.set(e,a),a}let o=r?"":ip(t,n.length),i=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:o,prefix:i,custom:r});return Sn.set(e,s),s}function va(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Lr(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function Ft(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Mr||o===Ze){if(n)return 0;t++}for(;t<e.value.length;t++)if(!ae(e.value.charCodeAt(t)))return 0;return r+1}function ua(e,t,n){let r=!1,o=Lr(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(va(e,Mr)||va(e,Ze)){if(r=!0,o=Lr(n(++o),o,n),e=n(o),e===null||e.type!==10)return 0}else return t;if(!r){let i=e.value.charCodeAt(0);if(i!==Mr&&i!==Ze)return 0}return Ft(e,r?0:1,r,o)}function $D(e,t){let n=0;if(!e)return 0;if(e.type===10)return Ft(e,0,MD,n);if(e.type===1&&e.value.charCodeAt(0)===Ze){if(!In(e.value,1,la))return 0;switch(e.value.length){case 2:return ua(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ze?0:(n=Lr(t(++n),n,t),e=t(n),Ft(e,0,Tn,n));default:return e.value.charCodeAt(2)!==Ze?0:Ft(e,3,Tn,n)}}else if(e.type===1||va(e,Mr)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!In(e.value,0,la))return 0;switch(e.value.length){case 1:return ua(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ze?0:(n=Lr(t(++n),n,t),e=t(n),Ft(e,0,Tn,n));default:return e.value.charCodeAt(1)!==Ze?0:Ft(e,2,Tn,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===Mr||r===Ze?1:0,i=o;for(;i<e.value.length&&ae(e.value.charCodeAt(i));i++);return i===o||!In(e.value,i,la)?0:i+1===e.value.length?ua(t(++n),n,t):e.value.charCodeAt(i+1)!==Ze?0:i+2===e.value.length?(n=Lr(t(++n),n,t),e=t(n),Ft(e,0,Tn,n)):Ft(e,i+2,Tn,n)}return 0}function ka(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function UD(e,t){return e.value.charCodeAt(0)===t}function Ir(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===ap&&n&&r!==0)return Ir(e,t+r+1,!1),6;if(!Et(i)||++r>6)return 0}return r}function Go(e,t,n){if(!e)return 0;for(;ka(n(t),lp);){if(++e>6)return 0;t++}return t}function VD(e,t){let n=0;if(e===null||e.type!==1||!In(e.value,0,zD)||(e=t(++n),e===null))return 0;if(ka(e,WD))return e=t(++n),e===null?0:e.type===1?Go(Ir(e,0,!0),++n,t):ka(e,lp)?Go(1,++n,t):0;if(e.type===10){let r=Ir(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!UD(e,ap)||!Ir(e,1,!1)?0:n+1:Go(r,n,t))}return e.type===12?Go(Ir(e,1,!0),++n,t):0}function ze(e,t){return t<e.length?e.charCodeAt(t):0}function up(e,t){return Nr(e,0,e.length,t)}function cp(e,t){for(let n=0;n<t.length;n++)if(up(e,t[n]))return!0;return!1}function dp(e,t){return t!==e.length-2?!1:ze(e,t)===92&&ae(ze(e,t+1))}function di(e,t,n){if(e&&e.type==="Range"){let r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function qD(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break e;if(n=r.pop(),r.length===0){o++;break e}break;case 2:case 21:case 19:case 23:r.push(n),n=Ua.get(e.type);break}o++}while(e=t(o));return o}function Se(e){return function(t,n,r){return t===null?0:t.type===2&&cp(t.value,GD)?qD(t,n):e(t,n,r)}}function J(e){return function(t){return t===null||t.type!==e?0:1}}function HD(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return cp(t,sp)||up(t,"default")?0:1}function JD(e){return e===null||e.type!==1||ze(e.value,0)!==45||ze(e.value,1)!==45?0:1}function ZD(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Et(ze(e.value,n)))return 0;return 1}function YD(e){return e===null||e.type!==4||!Jo(ze(e.value,1),ze(e.value,2),ze(e.value,3))?0:1}function KD(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 17:if(n===0)break e;break;case 9:if(n===0&&e.value==="!")break e;break;case 2:case 21:case 19:case 23:r.push(n),n=Ua.get(e.type);break}o++}while(e=t(o));return o}function XD(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=Ua.get(e.type);break}o++}while(e=t(o));return o}function ut(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==12)return 0;let o=ai(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!dp(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return di(r,t.value,o)?0:1}}function QD(e,t,n){return e===null||e.type!==11||di(n,e.value,e.value.length-1)?0:1}function pp(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,n,r)}}function e0(e,t,n){if(e===null)return 0;let r=ai(e.value,0);return r!==e.value.length&&!dp(e.value,r)||di(n,e.value,r)?0:1}function t0(e,t,n){if(e===null||e.type!==10)return 0;let r=ze(e.value,0)===43||ze(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!ae(ze(e.value,r)))return 0;return di(n,e.value,r)?0:1}function o0(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Se(ut(null)),angle:Se(ut(t)),decibel:Se(ut(n)),frequency:Se(ut(r)),flex:Se(ut(o)),length:Se(pp(ut(i))),resolution:Se(ut(s)),semitones:Se(ut(a)),time:Se(ut(u))}}function i0(e){return{...n0,...r0,...o0(e)}}function fp(e,t,n){return Object.assign(ui("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
38
+ `)}var be,Fn,at,Tr,sb,Gs,qc,Hc,Vs,Hs=C(()=>{"use strict";be=require("fs"),Fn=require("fs/promises"),at=D(require("path")),Tr=D(require("prettier"));Ro();Vc();sb={modules:{},useClient:!0},Gs=db(sb),qc=[{name:"_Builtin",options:{as:"_Builtin"}},{name:"devlinkContext"},{name:"DevLinkProvider"},{name:"interactions"},{name:"utils"},{name:"devlink"}],Hc=new RegExp(`^(${[...qc.map(e=>e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"$"),"_Builtin(/|$)","types$","index$","global$"].join("|")})`);Vs={}});function En(e){return async function(n){Vt.default.removeListener("uncaughtException",En),Vt.default.removeListener("unhandledRejection",En);let r=await Lo(e);if(!r)return;await new Js(r,n).prompt()}}function Yc(e){Vt.default.on("uncaughtException",En(e)),Vt.default.on("unhandledRejection",En(e))}var Vt,Js,Zs=C(()=>{"use strict";Le();Vt=D(require("process"));Ro();Oo();Re();de();Dn();Js=class{config;error;constructor(t,n){this.config=t,this.error=n}stripPII(t=""){return t.replace(/\/(.*)webflow-cli/gi,"/REDACTED_PII/webflow-cli/").replace(/\/(.*)node_modules/gi,"/REDACTED_PII/node_modules")}sendTelemetry(){let t=this.config,n=this.error;Ne(`${t.host}/devlink/${t.siteId}/telemetry`,{headers:{Authorization:`Bearer ${t.authToken}`,"Content-Type":"application/json"},method:"post",body:JSON.stringify({cause:n.cause,message:n.message,name:n.name,stack:this.stripPII(n.stack),platform:Vt.default.platform,node:Vt.default.version})})}async storeChoice(t){try{return ae({devlink:{allowTelemetry:t}})}catch{let r=await xn();await wc({...r,allowTelemetry:t})}}async prompt(){let t=this.config;if(console.error(this.error),t.allowTelemetry===!0)console.log("Sending crash report telemetry..."),this.sendTelemetry();else if(t.allowTelemetry===!1){console.log("Skipping crash report telemetry...");return}else{if(ne())return Promise.resolve(!1);let n=await pe({message:"An unexpected error ocurred while syncing your components. Would like to send a crash report back to the developer team?",default:!0});await pe({message:"Would you like to save this choice for the future?",default:!0})&&(console.log("Storing your choice..."),await this.storeChoice(n)),n?(console.log("Sending crash report telemetry..."),this.sendTelemetry()):console.log("Skipping crash report telemetry...")}}}});function ie(e){return e>=48&&e<=57}function Ft(e){return ie(e)||e>=65&&e<=70||e>=97&&e<=102}function Ia(e){return e>=65&&e<=90}function Kb(e){return e>=97&&e<=122}function Xb(e){return Ia(e)||Kb(e)}function Qb(e){return e>=128}function Yo(e){return Xb(e)||Qb(e)||e===95}function ja(e){return Yo(e)||ie(e)||e===45}function eD(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ko(e){return e===10||e===13||e===12}function Ht(e){return Ko(e)||e===32||e===9}function We(e,t){return!(e!==92||Ko(t)||t===0)}function Go(e,t,n){return e===45?Yo(t)||t===45||We(t,n):Yo(e)?!0:e===92?We(e,t):!1}function Ys(e,t,n){return e===43||e===45?ie(t)?2:t===46&&ie(n)?3:0:e===46?ie(t)?2:0:ie(e)?1:0}function Hd(e){return e===65279||e===65534?1:0}function Ks(e){return e<128?ha[e]:Ba}function On(e,t){return t<e.length?e.charCodeAt(t):0}function ga(e,t,n){return n===13&&On(e,t+1)===10?2:1}function Pn(e,t,n){let r=e.charCodeAt(t);return Ia(r)&&(r=r|32),r===n}function Nr(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let o=t;o<n;o++){let i=r.charCodeAt(o-t),s=e.charCodeAt(o);if(Ia(s)&&(s=s|32),s!==i)return!1}return!0}function nD(e,t){for(;t>=0&&Ht(e.charCodeAt(t));t--);return t+1}function No(e,t){for(;t<e.length&&Ht(e.charCodeAt(t));t++);return t}function Xs(e,t){for(;t<e.length&&ie(e.charCodeAt(t));t++);return t}function Jt(e,t){if(t+=2,Ft(On(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Ft(On(e,t));t++);let n=On(e,t);Ht(n)&&(t+=ga(e,t,n))}return t}function Mo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!ja(n)){if(We(n,On(e,t+1))){t=Jt(e,t)-1;continue}break}}return t}function oi(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),ie(n)&&(t=Xs(e,t+1),n=e.charCodeAt(t)),n===46&&ie(e.charCodeAt(t+1))&&(t+=2,t=Xs(e,t)),Pn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),ie(n)&&(t=Xs(e,t+1+r+1))}return t}function Qs(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}We(n,On(e,t+1))&&(t=Jt(e,t))}return t}function La(e){if(e.length===1&&!Ft(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}function Xo(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function Qc(e){let t=e.source,n=t.length,r=t.length>0?Hd(t.charCodeAt(0)):0,o=Xo(e.lines,n),i=Xo(e.columns,n),s=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){let l=t.charCodeAt(u);o[u]=s,i[u]=a++,(l===Kc||l===Xc||l===rD)&&(l===Xc&&u+1<n&&t.charCodeAt(u+1)===Kc&&(u++,o[u]=s,i[u]=a),s++,a=1)}o[n]=s,i[n]=a,e.lines=o,e.columns=i,e.computed=!0}function ii(e,t){function n(p){return p<a?e.charCodeAt(p):0}function r(){if(l=oi(e,l),Go(n(l),n(l+1),n(l+2))){c=12,l=Mo(e,l);return}if(n(l)===37){c=11,l++;return}c=10}function o(){let p=l;if(l=Mo(e,l),Nr(e,p,l,"url")&&n(l)===40){if(l=No(e,l+1),n(l)===34||n(l)===39){c=2,l=p+4;return}s();return}if(n(l)===40){c=2,l++;return}c=1}function i(p){for(p||(p=n(l++)),c=5;l<e.length;l++){let f=e.charCodeAt(l);switch(Ks(f)){case p:l++;return;case qo:if(Ko(f)){l+=ga(e,l,f),c=6;return}break;case 92:if(l===e.length-1)break;let m=n(l+1);Ko(m)?l+=ga(e,l+1,m):We(f,m)&&(l=Jt(e,l)-1);break}}}function s(){for(c=7,l=No(e,l);l<e.length;l++){let p=e.charCodeAt(l);switch(Ks(p)){case 41:l++;return;case qo:if(l=No(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=Qs(e,l),c=8;return;case 34:case 39:case 40:case Zd:l=Qs(e,l),c=8;return;case 92:if(We(p,n(l+1))){l=Jt(e,l)-1;break}l=Qs(e,l),c=8;return}}}e=String(e||"");let a=e.length,u=Hd(n(0)),l=u,c;for(;l<a;){let p=e.charCodeAt(l);switch(Ks(p)){case qo:c=13,l=No(e,l+1);break;case 34:i();break;case 35:ja(n(l+1))||We(n(l+1),n(l+2))?(c=4,l=Mo(e,l+1)):(c=9,l++);break;case 39:i();break;case 40:c=21,l++;break;case 41:c=22,l++;break;case 43:Ys(p,n(l+1),n(l+2))?r():(c=9,l++);break;case 44:c=18,l++;break;case 45:Ys(p,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(c=15,l=l+3):Go(p,n(l+1),n(l+2))?o():(c=9,l++);break;case 46:Ys(p,n(l+1),n(l+2))?r():(c=9,l++);break;case 47:n(l+1)===42?(c=25,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(c=9,l++);break;case 58:c=16,l++;break;case 59:c=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(c=14,l=l+4):(c=9,l++);break;case 64:Go(n(l+1),n(l+2),n(l+3))?(c=3,l=Mo(e,l+1)):(c=9,l++);break;case 91:c=19,l++;break;case 92:We(p,n(l+1))?o():(c=9,l++);break;case 93:c=20,l++;break;case 123:c=23,l++;break;case 125:c=24,l++;break;case Jd:r();break;case Ba:o();break;default:c=9,l++}t(c,u,u=l)}}function si(e,t){let n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
39
+ `)}})}function nd({source:e,line:t,column:n},r){function o(c,p){return i.slice(c,p).map((f,m)=>String(c+m+1).padStart(u)+" |"+f).join(`
40
+ `)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-r)-1,a=Math.min(t+r,i.length+1),u=Math.max(4,String(a).length)+1,l=0;n+=(td.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>ea&&(l=n-ed+3,n=ed-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,td),i[c]=(l>0&&i[c].length>l?"\u2026":"")+i[c].substr(l,ea-2)+(i[c].length>l+ea-1?"\u2026":""));return[o(s,t),new Array(n+u+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
41
+ `)}function rd(e,t,n,r,o){return Object.assign(si("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return nd({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
42
+ `+nd({source:t,line:r,column:o},2)}})}function aD(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let o=e.getNode.call(this,r);if(o===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,r),n=!1),t.push(o)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}function cD(e){return function(){return this[e]()}}function na(e){let t=Object.create(null);for(let n in e){let r=e[n],o=r.parse||r;o&&(t[n]=o)}return t}function dD(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:na(e.atrule),pseudo:na(e.pseudo),node:na(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=cD(e.parseContext[n]);break}return{config:t,...t,...t.node}}function pD(e){let t="",n="<unknown>",r=!1,o=od,i=!1,s=new oD,a=Object.assign(new sD,dD(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:aD,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(u){return u===id?1:0},consumeUntilLeftCurlyBracketOrSemicolon(u){return u===id||u===ta?1:0},consumeUntilExclamationMarkOrSemicolon(u){return u===lD||u===ta?1:0},consumeUntilSemicolonIncluded(u){return u===ta?2:0},createList(){return new re},createSingleNodeList(u){return new re().appendData(u)},getFirstListNode(u){return u&&u.first},getLastListNode(u){return u&&u.last},parseWithFallback(u,l){let c=this.tokenIndex;try{return u.call(this)}catch(p){if(i)throw p;let f=l.call(this,c);return i=!0,o(p,f),i=!1,f}},lookupNonWSType(u){let l;do if(l=this.lookupType(u++),l!==13)return l;while(l!==sd);return sd},charCodeAt(u){return u>=0&&u<t.length?t.charCodeAt(u):0},substring(u,l){return t.substring(u,l)},substrToCursor(u){return this.source.substring(u,this.tokenStart)},cmpChar(u,l){return Pn(t,u,l)},cmpStr(u,l,c){return Nr(t,u,l,c)},consume(u){let l=this.tokenStart;return this.eat(u),this.substrToCursor(l)},consumeFunctionName(){let u=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),u},consumeNumber(u){let l=t.substring(this.tokenStart,oi(t,this.tokenStart));return this.eat(u),l},eat(u){if(this.tokenType!==u){let l=Yd[u].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase()),c=`${/[[\](){}]/.test(l)?`"${l}"`:l} is expected`,p=this.tokenStart;switch(u){case 1:this.tokenType===2||this.tokenType===7?(p=this.tokenEnd-1,c="Identifier is expected but function found"):c="Identifier is expected";break;case 4:this.isDelim(uD)&&(this.next(),p++,c="Name is expected");break;case 11:this.tokenType===10&&(p=this.tokenEnd,c="Percent sign is expected");break}this.error(c,p)}this.next()},eatIdent(u){(this.tokenType!==1||this.lookupValue(0,u)===!1)&&this.error(`Identifier "${u}" is expected`),this.next()},eatDelim(u){this.isDelim(u)||this.error(`Delim "${String.fromCharCode(u)}" is expected`),this.next()},getLocation(u,l){return r?s.getLocationRange(u,l,n):null},getLocationFromList(u){if(r){let l=this.getFirstListNode(u),c=this.getLastListNode(u);return s.getLocationRange(l!==null?l.loc.start.offset-s.startOffset:this.tokenStart,c!==null?c.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(u,l){let c=typeof l<"u"&&l<t.length?s.getLocation(l):this.eof?s.getLocation(nD(t,t.length-1)):s.getLocation(this.tokenStart);throw new rd(u||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(u,l){t=u,l=l||{},a.setSource(t,ii),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=!!l.positions,o=typeof l.onParseError=="function"?l.onParseError:od,i=!1,a.parseAtrulePrelude="parseAtrulePrelude"in l?!!l.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in l?!!l.parseRulePrelude:!0,a.parseValue="parseValue"in l?!!l.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in l?!!l.parseCustomProperty:!1;let{context:c="default",onComment:p}=l;if(!(c in a.context))throw new Error("Unknown context `"+c+"`");typeof p=="function"&&a.forEachToken((m,y,F)=>{if(m===25){let $=a.getLocation(y,F),A=Nr(t,F-2,F,"*/")?t.slice(y+2,F-2):t.slice(y+2,F);p(A,$)}});let f=a.context[c].call(a,l);return a.eof||a.error(),f},{SyntaxError:rd,config:a.config})}function mD(e){let t=new fD.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,u=!1,l=e.node;e.node=function(f){if(f.loc&&f.loc.start&&ad.has(f.type)){let m=f.loc.start.line,y=f.loc.start.column-1;(r.line!==m||r.column!==y)&&(r.line=m,r.column=y,n.line=s,n.column=a,u&&(u=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),u=!0,t.addMapping({source:f.loc.source,original:r,generated:n}))}l.call(this,f),u&&ad.has(f.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(f,m,y){for(let F=0;F<f.length;F++)f.charCodeAt(F)===10?(s++,a=0):a++;c(f,m,y)};let p=e.result;return e.result=function(){return u&&t.addMapping(i),{css:p(),map:t}},e}function Xd(e){let t=new Set(e.map(([n,r])=>ra(n)<<16|ra(r)));return function(n,r,o){let i=ra(r,o),s=o.charCodeAt(0);return(s===gD&&r!==1&&r!==2&&r!==15||s===hD?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function wD(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function vD(e){ii(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function kD(e){let t=new Map;for(let n in e.node){let r=e.node[n];typeof(r.generate||r)=="function"&&t.set(n,r.generate||r)}return function(n,r){let o="",i=0,s={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:Qd,token(u,l){i=this.tokenBefore(i,u,l),this.emit(l,u,!1),u===9&&l.charCodeAt(0)===DD&&this.emit(`
43
+ `,13,!0)},emit(u){o+=u},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=mD(s)),r.mode in ya&&(s.tokenBefore=ya[r.mode]));let a={node:u=>s.node(u),children:wD,token:(u,l)=>s.token(u,l),tokenize:vD};return s.node(n),s.result()}}function xD(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof re)&&(n.children=new re().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof re&&(n.children=n.children.toArray())}}),t}}}function ld(e){return typeof e=="function"?e:Or}function ud(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function FD(e,t){let n=t.structure,r=[];for(let o in n){if(Ra.call(n,o)===!1)continue;let i=n[o],s={name:o,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(let a of i)a===null?s.nullable=!0:typeof a=="string"?s.type="node":Array.isArray(a)&&(s.type="list");s.type&&r.push(s)}return r.length?{context:t.walkContext,fields:r}:null}function ED(e){let t={};for(let n in e.node)if(Ra.call(e.node,n)){let r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=FD(n,r)}return t}function cd(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,u){let l;o&&(l=s[r],s[r]=i);for(let c of n){let p=i[c.name];if(!c.nullable||p){if(c.type==="list"){if(t?p.reduceRight(u,!1):p.reduce(u,!1))return!0}else if(a(p))return!0}}o&&(s[r]=l)}}function dd({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}}}function _D(e){let t=ED(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)Ra.call(t,l)&&t[l]!==null&&(n[l]=cd(t[l],!1),r[l]=cd(t[l],!0));let s=dd(n),a=dd(r),u=function(l,c){function p(A,R,x){let T=f.call($,A,R,x);return T===o?!0:T===i?!1:!!(y.hasOwnProperty(A.type)&&y[A.type](A,$,p,F)||m.call($,A,R,x)===o)}let f=Or,m=Or,y=n,F=(A,R,x,T)=>A||p(R,x,T),$={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")f=c;else if(c&&(f=ld(c.enter),m=ld(c.leave),c.reverse&&(y=r),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?a[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=ud(f,c.visit),m=ud(m,c.visit)}if(f===Or&&m===Or)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(l)};return u.break=o,u.skip=i,u.find=function(l,c){let p=null;return u(l,function(f,m,y){if(c.call(this,f,m,y))return p=f,o}),p},u.findLast=function(l,c){let p=null;return u(l,{reverse:!0,enter(f,m,y){if(c.call(this,f,m,y))return p=f,o}}),p},u.findAll=function(l,c){let p=[];return u(l,function(f,m,y){c.call(this,f,m,y)&&p.push(f)}),p},u}function CD(e){return e}function SD(e){let{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function TD(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function AD(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Na(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Na(e,t,n,r){let o;switch(e.type){case"Group":o=AD(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Na(e.term,t,n,r)+t(SD(e),e);case"Type":o="<"+e.name+(e.opts?t(TD(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}function ai(e,t){let n=CD,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Na(e,n,r,o)}function OD(e,t){let n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null,s=0,a=0,u=0,l="",c,p;for(let f=0;f<n.length;f++){let m=n[f].value;f===r&&(a=m.length,s=l.length),i!==null&&n[f].node===i&&(f<=r?u++:u=0),l+=m}return r===n.length||u>1?(c=$o(i||t,"end")||Pr(pd,l),p=Pr(c)):(c=$o(i,"start")||Pr($o(t,"start")||pd,l.slice(0,s)),p=$o(i,"end")||Pr(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:p}}function $o(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Pr(n):n:null}function Pr({offset:e,line:t,column:n},r){let o={offset:e,line:t,column:n};if(r){let i=r.split(/\n|\r\n?|\f/);o.offset+=r.length,o.line+=i.length-1,o.column=i.length===1?o.column+r.length:i.pop().length+1}return o}function Ma(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Qo&&e.charCodeAt(t+1)===Qo}function ep(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Qo&&e.charCodeAt(t+1)!==Qo){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function ID(e){if(Wo.has(e))return Wo.get(e);let t=e.toLowerCase(),n=Wo.get(t);if(n===void 0){let r=Ma(t,0),o=r?"":ep(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Wo.set(e,n),n}function jD(e){if(Cn.has(e))return Cn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Ma(t,n.length);if(!r&&(t=t.toLowerCase(),Cn.has(t))){let a=Cn.get(t);return Cn.set(e,a),a}let o=r?"":ep(t,n.length),i=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:o,prefix:i,custom:r});return Cn.set(e,s),s}function ba(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Lr(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function xt(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Mr||o===Je){if(n)return 0;t++}for(;t<e.value.length;t++)if(!ie(e.value.charCodeAt(t)))return 0;return r+1}function sa(e,t,n){let r=!1,o=Lr(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(ba(e,Mr)||ba(e,Je)){if(r=!0,o=Lr(n(++o),o,n),e=n(o),e===null||e.type!==10)return 0}else return t;if(!r){let i=e.value.charCodeAt(0);if(i!==Mr&&i!==Je)return 0}return xt(e,r?0:1,r,o)}function LD(e,t){let n=0;if(!e)return 0;if(e.type===10)return xt(e,0,BD,n);if(e.type===1&&e.value.charCodeAt(0)===Je){if(!Pn(e.value,1,ia))return 0;switch(e.value.length){case 2:return sa(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Je?0:(n=Lr(t(++n),n,t),e=t(n),xt(e,0,Sn,n));default:return e.value.charCodeAt(2)!==Je?0:xt(e,3,Sn,n)}}else if(e.type===1||ba(e,Mr)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!Pn(e.value,0,ia))return 0;switch(e.value.length){case 1:return sa(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Je?0:(n=Lr(t(++n),n,t),e=t(n),xt(e,0,Sn,n));default:return e.value.charCodeAt(1)!==Je?0:xt(e,2,Sn,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===Mr||r===Je?1:0,i=o;for(;i<e.value.length&&ie(e.value.charCodeAt(i));i++);return i===o||!Pn(e.value,i,ia)?0:i+1===e.value.length?sa(t(++n),n,t):e.value.charCodeAt(i+1)!==Je?0:i+2===e.value.length?(n=Lr(t(++n),n,t),e=t(n),xt(e,0,Sn,n)):xt(e,i+2,Sn,n)}return 0}function Da(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function MD(e,t){return e.value.charCodeAt(0)===t}function Ir(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===np&&n&&r!==0)return Ir(e,t+r+1,!1),6;if(!Ft(i)||++r>6)return 0}return r}function zo(e,t,n){if(!e)return 0;for(;Da(n(t),rp);){if(++e>6)return 0;t++}return t}function $D(e,t){let n=0;if(e===null||e.type!==1||!Pn(e.value,0,ND)||(e=t(++n),e===null))return 0;if(Da(e,RD))return e=t(++n),e===null?0:e.type===1?zo(Ir(e,0,!0),++n,t):Da(e,rp)?zo(1,++n,t):0;if(e.type===10){let r=Ir(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!MD(e,np)||!Ir(e,1,!1)?0:n+1:zo(r,n,t))}return e.type===12?zo(Ir(e,1,!0),++n,t):0}function ze(e,t){return t<e.length?e.charCodeAt(t):0}function op(e,t){return Nr(e,0,e.length,t)}function ip(e,t){for(let n=0;n<t.length;n++)if(op(e,t[n]))return!0;return!1}function sp(e,t){return t!==e.length-2?!1:ze(e,t)===92&&ie(ze(e,t+1))}function li(e,t,n){if(e&&e.type==="Range"){let r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function zD(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break e;if(n=r.pop(),r.length===0){o++;break e}break;case 2:case 21:case 19:case 23:r.push(n),n=$a.get(e.type);break}o++}while(e=t(o));return o}function Ce(e){return function(t,n,r){return t===null?0:t.type===2&&ip(t.value,WD)?zD(t,n):e(t,n,r)}}function J(e){return function(t){return t===null||t.type!==e?0:1}}function UD(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return ip(t,tp)||op(t,"default")?0:1}function VD(e){return e===null||e.type!==1||ze(e.value,0)!==45||ze(e.value,1)!==45?0:1}function GD(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Ft(ze(e.value,n)))return 0;return 1}function qD(e){return e===null||e.type!==4||!Go(ze(e.value,1),ze(e.value,2),ze(e.value,3))?0:1}function HD(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 17:if(n===0)break e;break;case 9:if(n===0&&e.value==="!")break e;break;case 2:case 21:case 19:case 23:r.push(n),n=$a.get(e.type);break}o++}while(e=t(o));return o}function JD(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=$a.get(e.type);break}o++}while(e=t(o));return o}function lt(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==12)return 0;let o=oi(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!sp(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return li(r,t.value,o)?0:1}}function ZD(e,t,n){return e===null||e.type!==11||li(n,e.value,e.value.length-1)?0:1}function ap(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,n,r)}}function YD(e,t,n){if(e===null)return 0;let r=oi(e.value,0);return r!==e.value.length&&!sp(e.value,r)||li(n,e.value,r)?0:1}function KD(e,t,n){if(e===null||e.type!==10)return 0;let r=ze(e.value,0)===43||ze(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!ie(ze(e.value,r)))return 0;return li(n,e.value,r)?0:1}function e0(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Ce(lt(null)),angle:Ce(lt(t)),decibel:Ce(lt(n)),frequency:Ce(lt(r)),flex:Ce(lt(o)),length:Ce(ap(lt(i))),resolution:Ce(lt(s)),semitones:Ce(lt(a)),time:Ce(lt(u))}}function t0(e){return{...XD,...QD,...e0(e)}}function lp(e,t,n){return Object.assign(si("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
43
44
  `+t+`
44
- --`+new Array((n||t.length)+1).join("-")+"^"})}function ii(e){return e.substringToPos(e.findWsEnd(e.pos))}function jn(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||$r[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function si(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function S0(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Ed(e){let t=null,n=null;return e.eat(oi),t=si(e),e.charCode()===qa?(e.pos++,e.charCode()!==kd&&(n=si(e))):n=t,e.eat(kd),{min:Number(t),max:n?Number(n):0}}function T0(e){let t=null,n=!1;switch(e.charCode()){case gp:e.pos++,t={min:0,max:0};break;case Ga:e.pos++,t={min:1,max:0};break;case Fa:e.pos++,t={min:0,max:1};break;case Va:e.pos++,n=!0,e.charCode()===oi?t=Ed(e):e.charCode()===Fa?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case oi:t=Ed(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Bn(e,t){let n=T0(e);return n!==null?(n.term=t,e.charCode()===Va&&e.charCodeAt(e.pos-1)===Ga?Bn(e,n):n):t}function ca(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function A0(e){let t;return e.eat(Ha),e.eat(ri),t=jn(e),e.eat(ri),e.eat(yp),Bn(e,{type:"Property",name:t})}function O0(e){let t=null,n=null,r=1;return e.eat(pi),e.charCode()===wd&&(e.peek(),r=-1),r==-1&&e.charCode()===xd?e.peek():(t=r*Number(si(e)),$r[e.charCode()]!==0&&(t+=jn(e))),ii(e),e.eat(qa),ii(e),e.charCode()===xd?e.peek():(r=1,e.charCode()===wd&&(e.peek(),r=-1),n=r*Number(si(e)),$r[e.charCode()]!==0&&(n+=jn(e))),e.eat(Ja),{type:"Range",min:t,max:n}}function P0(e){let t,n=null;return e.eat(Ha),t=jn(e),e.charCode()===hp&&e.nextCharCode()===_0&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===pi&&(ii(e),n=O0(e)),e.eat(yp),Bn(e,{type:"Type",name:t,opts:n})}function I0(e){let t=jn(e);return e.charCode()===hp?(e.pos++,{type:"Function",name:t}):Bn(e,{type:"Keyword",name:t})}function j0(e,t){function n(o,i){return{type:"Group",terms:o,combinator:i,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((o,i)=>Fd[o]-Fd[i]);t.length>0;){r=t.shift();let o=0,i=0;for(;o<e.length;o++){let s=e[o];s.type==="Combinator"&&(s.value===r?(i===-1&&(i=o-1),e.splice(o,1),o--):(i!==-1&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function bp(e){let t=[],n={},r,o=null,i=e.pos;for(;r=L0(e);)r.type!=="Spaces"&&(r.type==="Combinator"?((o===null||o.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),n[r.value]=!0):o!==null&&o.type!=="Combinator"&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),o=r,i=e.pos);return o!==null&&o.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:j0(t,n)||" ",disallowEmpty:!1,explicit:!1}}function B0(e){let t;return e.eat(pi),t=bp(e),e.eat(Ja),t.explicit=!0,e.charCode()===mp&&(e.pos++,t.disallowEmpty=!0),t}function L0(e){let t=e.charCode();if(t<128&&$r[t]===1)return I0(e);switch(t){case Ja:break;case pi:return Bn(e,B0(e));case Ha:return e.nextCharCode()===ri?A0(e):P0(e);case vd:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===vd?2:1))};case Dd:return e.pos++,e.eat(Dd),{type:"Combinator",value:"&&"};case qa:return e.pos++,{type:"Comma"};case ri:return Bn(e,{type:"String",value:S0(e)});case E0:case v0:case k0:case F0:case x0:return{type:"Spaces",value:ii(e)};case C0:return t=e.nextCharCode(),t<128&&$r[t]===1?(e.pos++,{type:"AtKeyword",name:jn(e)}):ca(e);case gp:case Ga:case Fa:case Va:case mp:break;case oi:if(t=e.nextCharCode(),t<48||t>57)return ca(e);break;default:return ca(e)}}function Za(e){let t=new w0(e),n=bp(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function _d(e){return typeof e=="function"?e:jr}function Dp(e,t,n){function r(s){switch(o.call(n,s),s.type){case"Group":s.terms.forEach(r);break;case"Multiplier":r(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}i.call(n,s)}let o=jr,i=jr;if(typeof t=="function"?o=t:t&&(o=_d(t.enter),i=_d(t.leave)),o===jr&&i===jr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function N0(e){let t=[];return li(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function M0(e,t){return typeof e=="string"?N0(e):t.generate(e,R0)}function ue(e,t,n){return t===V&&n===q||e===V&&t===V&&n===V?e:(e.type==="If"&&e.else===q&&t===V&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function wp(e){return e.length>2&&e.charCodeAt(e.length-2)===$0&&e.charCodeAt(e.length-1)===W0}function Cd(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&wp(e.name)}function Ea(e,t,n){switch(e){case" ":{let r=V;for(let o=t.length-1;o>=0;o--){let i=t[o];r=ue(i,r,q)}return r}case"|":{let r=q,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(Cd(s)&&(o===null&&i>0&&Cd(t[i-1])&&(o=Object.create(null),r=ue({type:"Enum",map:o},V,r)),o!==null)){let a=(wp(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=ue(s,V,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Ea(e,t.filter(function(a){return a!==i}),!1):s=V,r=ue(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?V:q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Ea(e,t.filter(function(a){return a!==i}),!0):s=V,r=ue(i,s,r)}return r}}}function z0(e){let t=V,n=Ka(e.term);if(e.max===0)n=ue(n,Ya,q),t=ue(n,null,q),t.then=ue(V,V,t),e.comma&&(t.then.else=ue({type:"Comma",syntax:e},t,q));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==V&&(t=ue({type:"Comma",syntax:e},t,q)),t=ue(n,ue(V,V,t),q);if(e.min===0)t=ue(V,V,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==V&&(t=ue({type:"Comma",syntax:e},t,q)),t=ue(n,t,q);return t}function Ka(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Ea(e.combinator,e.terms.map(Ka),!1);return e.disallowEmpty&&(t=ue(t,Ya,q)),t}case"Multiplier":return z0(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function _a(e,t){return typeof e=="string"&&(e=Za(e)),{type:"MatchGraph",match:Ka(e),syntax:t||null,source:e}}function J0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function da(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),o=e.charCodeAt(n);if(o>=65&&o<=90&&(o=o|32),o!==r)return!1}return!0}function Z0(e){return e.type!==9?!1:e.value!=="?"}function Od(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||Z0(e)}function Pd(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function Y0(e,t,n){function r(){do R++,A=R<e.length?e[R]:null;while(A!==null&&(A.type===13||A.type===25))}function o(G){let M=R+G;return M<e.length?e[M]:null}function i(G,M){return{nextState:G,matchStack:T,syntaxStack:d,thenStack:f,tokenIndex:R,prev:M}}function s(G){f={nextState:G,matchStack:T,syntaxStack:d,prev:f}}function a(G){m=i(G,m)}function u(){T={type:V0,syntax:t.syntax,token:A,prev:T},r(),y=null,R>x&&(x=R)}function l(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},T={type:Ca,syntax:t.syntax,token:T.token,prev:T}}function c(){T.type===Ca?T=T.prev:T={type:vp,syntax:d.syntax,token:T.token,prev:T},d=d.prev}let d=null,f=null,m=null,y=null,F=0,$=null,A=null,R=-1,x=0,T={type:U0,syntax:null,token:null,prev:null};for(r();$===null&&++F<Ad;)switch(t.type){case"Match":if(f===null){if(A!==null&&(R!==e.length-1||A.value!=="\\0"&&A.value!=="\\9")){t=q;break}$=Td;break}if(t=f.nextState,t===Ya)if(f.matchStack===T){t=q;break}else t=V;for(;f.syntaxStack!==d;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||R>m.tokenIndex)&&(m=y,y=!1);else if(m===null){$=G0;break}t=m.nextState,f=m.thenStack,d=m.syntaxStack,T=m.matchStack,R=m.tokenIndex,A=R<e.length?e[R]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==q&&a(t.else),t.then!==V&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{let E=t.syntax.terms;if(t.index===E.length){if(t.mask===0||t.syntax.all){t=q;break}t=V;break}if(t.mask===(1<<E.length)-1){t=V;break}for(;t.index<E.length;t.index++){let h=1<<t.index;if((t.mask&h)===0){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|h}),t=E[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(A!==null){let E=A.value.toLowerCase();if(E.indexOf("\\")!==-1&&(E=E.replace(/\\[09].*$/,"")),Sd.call(t.map,E)){t=t.map[E];break}}t=q;break;case"Generic":{let E=d!==null?d.opts:null,h=R+Math.floor(t.fn(A,o,E));if(!isNaN(h)&&h>R){for(;R<h;)u();t=V}else t=q;break}case"Type":case"Property":{let E=t.type==="Type"?"types":"properties",h=Sd.call(n,E)?n[E][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&A!==null&&t.type==="Type"&&(t.name==="custom-ident"&&A.type===1||t.name==="length"&&A.value==="0")){y===null&&(y=i(t,m)),t=q;break}l(),t=h.match;break}case"Keyword":{let E=t.name;if(A!==null){let h=A.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),da(h,E)){u(),t=V;break}}t=q;break}case"AtKeyword":case"Function":if(A!==null&&da(A.value,t.name)){u(),t=V;break}t=q;break;case"Token":if(A!==null&&A.value===t.value){u(),t=V;break}t=q;break;case"Comma":A!==null&&A.type===18?Od(T.token)?t=q:(u(),t=Pd(A)?q:V):t=Od(T.token)||Pd(A)?V:q;break;case"String":let G="",M=R;for(;M<e.length&&G.length<t.value.length;M++)G+=e[M].value;if(da(G,t.value)){for(;R<M;)u();t=V}else t=q;break;default:throw new Error("Unknown node type: "+t.type)}switch(H0+=F,$){case null:console.warn("[csstree-match] BREAK after "+Ad+" iterations"),$=q0,T=null;break;case Td:for(;d!==null;)c();break;default:T=null}return{tokens:e,reason:$,iterations:F,match:T,longestMatch:x}}function Id(e,t,n){let r=Y0(e,t,n||{});if(r.match===null)return r;let o=r.match,i=r.match={syntax:t.syntax||null,match:[]},s=[i];for(o=J0(o).prev;o!==null;){switch(o.type){case Ca:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case vp:s.pop(),i=s[s.length-1];break;default:i.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r}function xp(e){function t(o){return o===null?!1:o.type==="Type"||o.type==="Property"||o.type==="Keyword"}function n(o){if(Array.isArray(o.match)){for(let i=0;i<o.match.length;i++)if(n(o.match[i]))return t(o.syntax)&&r.unshift(o.syntax),!0}else if(o.node===e)return r=t(o.syntax)?[o.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function K0(e,t){return Xa(this,e,n=>n.type==="Type"&&n.name===t)}function X0(e,t){return Xa(this,e,n=>n.type==="Property"&&n.name===t)}function Q0(e){return Xa(this,e,t=>t.type==="Keyword")}function Xa(e,t,n){let r=xp.call(e,t);return r===null?!1:r.some(n)}function Fp(e){return"node"in e?e.node:Fp(e.match[0])}function Ep(e){return"node"in e?e.node:Ep(e.match[e.match.length-1])}function jd(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let u=Fp(a),l=Ep(a);e.syntax.walk(t,function(c,d,f){if(c===u){let m=new ie;do{if(m.appendData(d.data),d.data===l)break;d=d.next}while(d!==null);s.push({parent:f,nodes:m})}})}Array.isArray(a.match)&&a.match.forEach(i)}let s=[];return n.matched!==null&&i(n.matched),s}function pa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Bd(e){return!!e&&pa(e.offset)&&pa(e.line)&&pa(e.column)}function ew(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let o in n){let i=!0;if(Rr.call(n,o)!==!1){if(o==="type")n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(o==="loc"){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object)if(typeof n.loc.source!="string")o+=".source";else if(!Bd(n.loc.start))o+=".start";else if(!Bd(n.loc.end))o+=".end";else continue;i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let s=0;!i&&s<t[o].length;s++){let a=t[o][s];switch(a){case String:i=typeof n[o]=="string";break;case Boolean:i=typeof n[o]=="boolean";break;case null:i=n[o]===null;break;default:typeof a=="string"?i=n[o]&&n[o].type===a:Array.isArray(a)&&(i=n[o]instanceof ie)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)Rr.call(t,o)&&Rr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function tw(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(Rr.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let u=0;u<a.length;u++){let l=a[u];if(l===String||l===Boolean)s.push(l.name);else if(l===null)s.push("null");else if(typeof l=="string")s.push("<"+l+">");else if(Array.isArray(l))s.push("List");else throw new Error("Wrong value `"+l+"` in `"+e+"."+i+"` structure definition")}o[i]=s.join(" | ")}return{docs:o,check:ew(e,r)}}function nw(e){let t={};if(e.node){for(let n in e.node)if(Rr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=tw(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Sa(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:ci(e[o].syntax,{compact:t}));return r}function ow(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:ci(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Sa(i.descriptors,t,n)};return r}function iw(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function $e(e,t,n){return{matched:e,iterations:n,error:t,...kp}}function An(e,t,n,r){let o=M0(n,e.syntax),i;return iw(o)?$e(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=Id(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=Id(o,t.match,e),!i.match)?$e(null,new LD(i.reason,t.syntax,n,i),i.iterations):$e(i.match,null,i.iterations))}function fa(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Rd(e,t){let n=Object.create(null);for(let[r,o]of Object.entries(e))if(o){n[r]={};for(let i of Object.keys(o))t.includes(i)&&(n[r][i]=o[i])}return n}function Ta(e,t){let n={...e};for(let[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"units":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(let[i,s]of Object.entries(o)){let a=n[r][i]||{},u=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){u.prelude=s.prelude?fa(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?fa(u.descriptors[l],c):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=fa(n[r][i],s);break;case"scope":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]={...n[r][i],...s};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...Rd(o,["parse"])};break;case"node":n[r]={...e[r],...Rd(o,["name","structure","parse","generate","walkContext"])};break}return n}function _p(e){let t=gD(e),n=AD(e),r=_D(e),{fromPlainObject:o,toPlainObject:i}=CD(n),s={lexer:null,createLexer:a=>new Ld(a,s,s.lexer.structure),tokenize:li,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let u=Ta({},e);return _p(typeof a=="function"?a(u,Object.assign):Ta(u,a))}};return s.lexer=new Ld({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function Ko(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===Ye||r===we)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)ae(this.charCodeAt(n))||this.error("Integer is expected",n)}function On(e){return Ko.call(this,0,e)}function xt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Yo:n="N is expected";break;case we:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function ma(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(Ye,e)||this.isDelim(we,e)){t=this.isDelim(Ye,e)?Ye:we;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),On.call(this,Vt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Ye&&n!==we&&this.error("Number sign is expected")),On.call(this,t!==0),t===we?"-"+this.consume(10):this.consume(10)}function Sp(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)On.call(this,lw),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,we))switch(t="-1",xt.call(this,1,Yo),this.tokenEnd-this.tokenStart){case 2:this.next(),n=ma.call(this);break;case 3:xt.call(this,2,we),this.next(),this.skipSC(),On.call(this,Vt),n="-"+this.consume(10);break;default:xt.call(this,2,we),Ko.call(this,3,Vt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(Ye)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(Ye)&&(r=1,this.next()),xt.call(this,0,Yo),this.tokenEnd-this.tokenStart){case 1:this.next(),n=ma.call(this);break;case 2:xt.call(this,1,we),this.next(),this.skipSC(),On.call(this,Vt),n="-"+this.consume(10);break;default:xt.call(this,1,we),Ko.call(this,2,Vt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===Ye||r===we,i=this.tokenStart+o;for(;i<this.tokenEnd&&ae(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),xt.call(this,i-this.tokenStart,Yo),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=ma.call(this)):(xt.call(this,i-this.tokenStart+1,we),i+2===this.tokenEnd?(this.next(),this.skipSC(),On.call(this,Vt),n="-"+this.consume(10)):(Ko.call(this,i-this.tokenStart+2,Vt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Ye&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Ye&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function dw(e){if(e.a){let t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){let n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}function Nd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function pw(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}function Ap(e=!1){let t=this.tokenStart,n,r,o=null,i=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),Nd):o=Nd.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?i=this.atrule[r].block.call(this,e):i=this.Block(pw.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function gw(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function Pp(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function ww(e){this.children(e)}function Fw(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(jp)?(t=!0,this.next()):this.isDelim(Aa)||this.eat(1),this.isDelim(Aa)?this.charCodeAt(this.tokenStart+1)!==Xo?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Ew(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Xo&&t!==xw&&t!==kw&&t!==vw&&t!==jp&&t!==Aa&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Xo&&(this.isDelim(Xo)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function Bp(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=Fw.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=Ew.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}}function Sw(e){this.token(9,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,"]")}function Rp(e){return this.Raw(e,null,!0)}function Md(){return this.parseWithFallback(this.Rule,Rp)}function $d(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Aw(){if(this.tokenType===17)return $d.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,$d);return this.tokenType===17&&this.next(),e}function Np(e){let t=e?Aw:Md,n=this.tokenStart,r=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Rp));break;default:e&&this.isDelim(Tw)?r.push(Md.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function jw(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function $p(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Rw(e){this.token(9,"["),this.children(e),this.token(9,"]")}function zp(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function $w(){this.token(15,"-->")}function Vp(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Uw(){this.token(14,"<!--")}function qp(){return this.eatDelim(Vw),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Hw(e){this.token(9,"."),this.token(1,e.name)}function Jp(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Zw:case Jw:case Yw:this.next();break;case Wd:this.next(),this.eatIdent("deep"),this.eatDelim(Wd);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Qw(e){this.tokenize(e.name)}function Yp(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===ev&&this.charCodeAt(t-1)===tv&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function ov(e){this.token(25,"/*"+e.value+"*/")}function cv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function dv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function pv(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Xp)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function Qp(){let e=this.tokenStart,t=this.tokenIndex,n=yv.call(this),r=za(n),o=r?this.parseCustomProperty:this.parseValue,i=r?dv:cv,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(pv,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Xp)&&(s=bv.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}}function gv(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,e.important===!0?"important":e.important))}function yv(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case lv:case sv:case uv:case iv:case av:this.next();break;case zd:this.next(),this.isDelim(zd)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function bv(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function ha(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function tf(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),ha));break;default:this.isDelim(Dv)?e.push(this.parseWithFallback(this.Rule,ha)):e.push(this.parseWithFallback(this.Declaration,ha))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function kv(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function rf(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function Ev(e){this.token(12,e.value+e.unit)}function sf(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase(),i;return i=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:i}}function Tv(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function lf(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Iv(e){this.token(4,"#"+e.value)}function cf(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Lv(e){this.token(1,e.name)}function pf(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Mv(e){this.token(9,"#"+e.name)}function mf(){let e=this.tokenStart,t,n=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:this.lookupNonWSType(1)===9?n=this.Ratio():n=this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function zv(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function gf(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function Gv(e){this.children(e)}function bf(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function Jv(e){this.children(e,()=>this.token(18,","))}function wf(){let e=this.tokenStart;return this.eatDelim(Zv),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Xv(){this.token(9,"&")}function kf(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function tk(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Ff(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function ok(e){this.token(10,e.value)}function _f(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function ak(e){this.tokenize(e.value)}function Sf(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function ck(e){this.token(21,"("),this.children(e),this.token(22,")")}function Af(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function fk(e){this.token(11,e.value+"%")}function Pf(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function yk(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function jf(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function vk(e){this.token(16,":"),this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Ud(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!ae(n)&&n!==xk&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}function Lf(){let e=this.tokenStart,t=Ud.call(this),n;return this.skipSC(),this.eatDelim(kk),n=Ud.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function _k(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function Ck(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function Nf(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=Ck.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function Ak(e){this.tokenize(e.value)}function Vd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Ok(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function $f(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(Ok,Vd):n=Vd.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Bk(e){this.node(e.prelude),this.node(e.block)}function zf(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function Nk(e){this.children(e)}function Vf(){let e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===18){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function zk(e){this.children(e,()=>this.token(18,","))}function el(e){let t=e.length,n=e.charCodeAt(0),r=n===qf||n===Hf?1:0,o=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,i="";for(let s=r;s<=o;s++){let a=e.charCodeAt(s);if(a===Oa){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),We(Oa,a)){let u=s-1,l=qt(e,u);s=l-1,i+=Ma(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function Jf(e,t){let n=t?"'":'"',r=t?Hf:qf,o="",i=!1;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);if(a===0){o+="\uFFFD";continue}if(a<=31||a===127){o+="\\"+a.toString(16),i=!0;continue}a===r||a===Oa?(o+="\\"+e.charAt(s),i=!1):(i&&(Et(a)||Gt(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function Zf(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:el(this.consume(5))}}function qk(e){this.token(5,Jf(e.value))}function Gd(e){return this.Raw(e,null,!1)}function Kf(){let e=this.tokenStart,t=this.createList(),n;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==Hk){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,Gd);break;default:n=this.parseWithFallback(this.Rule,Gd)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function Kk(e){this.children(e)}function ga(){this.tokenType!==1&&this.isDelim(Xk)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function Qf(){let e=this.tokenStart;return this.isDelim(qd)?(this.next(),ga.call(this)):(ga.call(this),this.isDelim(qd)&&(this.next(),ga.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function tx(e){this.tokenize(e.name)}function Br(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===nm&&t&&n!==0)return Br.call(this,e+n+1,!1),-1;Et(o)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function qo(e){let t=0;for(;this.isDelim(Pa);)++t>e&&this.error("Too many question marks"),this.next()}function nx(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===tm?"Plus sign":"Hyphen minus")+" is expected")}function rx(){let e=0;switch(this.tokenType){case 10:if(e=Br.call(this,1,!0),this.isDelim(Pa)){qo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){nx.call(this,nm),Br.call(this,1,!1);break}break;case 12:e=Br.call(this,1,!0),e>0&&qo.call(this,6-e);break;default:if(this.eatDelim(tm),this.tokenType===1){e=Br.call(this,0,!0),e>0&&qo.call(this,6-e);break}if(this.isDelim(Pa)){this.next(),qo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function rm(){let e=this.tokenStart;return this.eatIdent("u"),rx.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function sx(e){this.tokenize(e.value)}function sm(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===im?t-2:t-1,o="";for(;n<r&&Gt(e.charCodeAt(n));)n++;for(;n<r&&Gt(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===Ia){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),We(Ia,s)){let a=i-1,u=qt(e,a);i=u-1,o+=Ma(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function am(e){let t="",n=!1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===0){t+="\uFFFD";continue}if(o<=31||o===127){t+="\\"+o.toString(16),n=!0;continue}o===lx||o===Ia||o===ux||o===cx||o===dx||o===im?(t+="\\"+e.charAt(r),n=!1):(n&&Et(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function lm(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=sm(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=el(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function mx(e){this.token(7,am(e.value))}function cm(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function yx(e){this.children(e)}function pm(){return this.eat(13),bx}function vx(e){this.token(13,e.value)}function mm(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,Cx)&&this.cmpChar(this.tokenStart+1,Hd)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===_x||t===Fx||t===Hd||t===Ex)return this.Operator();t===xx&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function Rx(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function Nx(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===Jd&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case Px:case jx:case Lx:case Ix:return this.Combinator();case Jd:return this.ClassSelector();case Ox:case Bx:return this.TypeSelector();case Tx:return this.IdSelector();case Ax:return this.NestingSelector()}break}}}function $x(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Wx(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===13){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function Zd(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function Jx(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Zx(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):hm.call(this)}function hm(){let e=this.createList(),t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(Jx,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(Zx,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function r1(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===Kd){if(r===t)break;if(o=e.charCodeAt(++r),We(Kd,o)){let i=r-1,s=qt(e,i);r=s-1,n+=Ma(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function o1(e){let t="";if(e.length===1&&e.charCodeAt(0)===45)return"\\-";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0){t+="\uFFFD";continue}if(r<=31||r===127||r>=48&&r<=57&&(n===0||n===1&&e.charCodeAt(0)===45)){t+="\\"+r.toString(16)+" ";continue}Ra(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var gb,ja,yb,bb,Db,wb,Ln,O,vb,kb,xb,Fb,Ba,Eb,_b,Cb,Sb,Tb,Ab,Ob,Pb,Ib,jb,Bb,Lb,Rb,Nb,Mb,$b,Wb,zb,Ub,Vb,Gb,qb,Hb,Jb,Zb,Yb,Kb,Xb,Qb,eD,ba,iD,Zo,Qd,Na,ep,tp,nd,aD,rd,lD,Ce,kt,uD,cD,Cn,ie,ra,id,sd,ud,pD,fD,oa,cd,dd,yD,pd,wa,DD,wD,sa,np,vD,kD,op,xD,$a,Or,yd,Ar,LD,Vo,Sn,ni,aa,bd,sp,Mr,Ze,la,Tn,MD,WD,ap,lp,zD,GD,Ua,n0,r0,xa,s0,a0,l0,u0,c0,d0,p0,f0,m0,h0,g0,y0,b0,D0,w0,v0,k0,x0,F0,E0,mp,Va,Dd,ri,hp,_0,gp,Ga,qa,wd,Ha,yp,Fa,C0,pi,Ja,oi,vd,kd,xd,$r,Fd,jr,R0,V,q,Ya,$0,W0,Sd,U0,V0,Ca,vp,Td,G0,q0,Ad,H0,kp,Rr,rw,Ld,sw,aw,Qa,Cp,Ye,we,Yo,Vt,lw,uw,cw,Tp,fw,mw,hw,Op,yw,bw,Dw,Ip,vw,jp,Xo,kw,Aa,xw,_w,Cw,Lp,Tw,Ow,Pw,Iw,Mp,Bw,Lw,Wp,Nw,Mw,Up,Ww,zw,Gp,Vw,Gw,qw,Hp,Jw,Wd,Zw,Yw,Kw,Xw,Zp,ev,tv,nv,rv,Kp,Xp,iv,sv,av,lv,uv,zd,fv,mv,hv,ef,Dv,wv,vv,nf,xv,Fv,of,_v,Cv,Sv,af,Av,Ov,Pv,uf,jv,Bv,df,Rv,Nv,ff,$v,Wv,hf,Uv,Vv,yf,qv,Hv,Df,Zv,Yv,Kv,vf,Qv,ek,xf,nk,rk,Ef,ik,sk,Cf,lk,uk,Tf,dk,pk,Of,mk,hk,gk,If,bk,Dk,wk,Bf,kk,xk,Fk,Ek,Rf,Sk,Tk,Mf,Pk,Ik,jk,Wf,Lk,Rk,Uf,Mk,$k,Wk,Gf,Uk,Oa,qf,Hf,Vk,Gk,Yf,Hk,Jk,Zk,Yk,Xf,Xk,qd,Qk,ex,em,tm,nm,Pa,ox,ix,om,ax,lx,Ia,ux,cx,dx,im,px,fx,um,hx,gx,dm,bx,Dx,wx,kx,fm,xx,Fx,Hd,Ex,_x,Cx,Sx,Tx,Ax,Ox,Px,Ix,Jd,jx,Bx,Lx,Mx,zx,Ux,Vx,Gx,qx,Hx,Yx,Kx,Ut,ya,Yd,Ho,Xx,gm,Qx,e1,t1,n1,Kd,cS,ym,bm,dS,pS,Dm,fS,mS,hS,gS,yS,bS,wm=C(()=>{"use strict";gb=Object.create,ja=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,bb=Object.getOwnPropertyNames,Db=Object.getPrototypeOf,wb=Object.prototype.hasOwnProperty,Ln=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),O=(e,t)=>{for(var n in t)ja(e,n,{get:t[n],enumerable:!0})},vb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bb(t))!wb.call(e,o)&&o!==n&&ja(e,o,{get:()=>t[o],enumerable:!(r=yb(t,o))||r.enumerable});return e},kb=(e,t,n)=>(n=e!=null?gb(Db(e)):{},vb(t||!e||!e.__esModule?ja(n,"default",{value:e,enumerable:!0}):n,e)),xb=Ln(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(n){if(0<=n&&n<t.length)return t[n];throw new TypeError("Must be between 0 and 63: "+n)},e.decode=function(n){var r=65,o=90,i=97,s=122,a=48,u=57,l=43,c=47,d=26,f=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+d:a<=n&&n<=u?n-a+f:n==l?62:n==c?63:-1}}),Fb=Ln(e=>{var t=xb(),n=5,r=1<<n,o=r-1,i=r;function s(u){return u<0?(-u<<1)+1:(u<<1)+0}function a(u){var l=(u&1)===1,c=u>>1;return l?-c:c}e.encode=function(u){var l="",c,d=s(u);do c=d&o,d>>>=n,d>0&&(c|=i),l+=t.encode(c);while(d>0);return l},e.decode=function(u,l,c){var d=u.length,f=0,m=0,y,F;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(F=t.decode(u.charCodeAt(l++)),F===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(F&i),F&=o,f=f+(F<<m),m+=n}while(y);c.value=a(f),c.rest=l}}),Ba=Ln(e=>{function t(h,g,I){if(g in h)return h[g];if(arguments.length===3)return I;throw new Error('"'+g+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(h){var g=h.match(n);return g?{scheme:g[1],auth:g[2],host:g[3],port:g[4],path:g[5]}:null}e.urlParse=o;function i(h){var g="";return h.scheme&&(g+=h.scheme+":"),g+="//",h.auth&&(g+=h.auth+"@"),h.host&&(g+=h.host),h.port&&(g+=":"+h.port),h.path&&(g+=h.path),g}e.urlGenerate=i;var s=32;function a(h){var g=[];return function(I){for(var v=0;v<g.length;v++)if(g[v].input===I){var se=g[0];return g[0]=g[v],g[v]=se,g[0].result}var Ie=h(I);return g.unshift({input:I,result:Ie}),g.length>s&&g.pop(),Ie}}var u=a(function(h){var g=h,I=o(h);if(I){if(!I.path)return h;g=I.path}for(var v=e.isAbsolute(g),se=[],Ie=0,L=0;;)if(Ie=L,L=g.indexOf("/",Ie),L===-1){se.push(g.slice(Ie));break}else for(se.push(g.slice(Ie,L));L<g.length&&g[L]==="/";)L++;for(var Y,ht=0,L=se.length-1;L>=0;L--)Y=se[L],Y==="."?se.splice(L,1):Y===".."?ht++:ht>0&&(Y===""?(se.splice(L+1,ht),ht=0):(se.splice(L,2),ht--));return g=se.join("/"),g===""&&(g=v?"/":"."),I?(I.path=g,i(I)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var I=o(g),v=o(h);if(v&&(h=v.path||"/"),I&&!I.scheme)return v&&(I.scheme=v.scheme),i(I);if(I||g.match(r))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var se=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=se,i(v)):se}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function c(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var I=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++I}return Array(I+1).join("../")+g.substr(h.length+1)}e.relative=c;var d=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return F(h)?"$"+h:h}e.toSetString=d?f:m;function y(h){return F(h)?h.slice(1):h}e.fromSetString=d?f:y;function F(h){if(!h)return!1;var g=h.length;if(g<9||h.charCodeAt(g-1)!==95||h.charCodeAt(g-2)!==95||h.charCodeAt(g-3)!==111||h.charCodeAt(g-4)!==116||h.charCodeAt(g-5)!==111||h.charCodeAt(g-6)!==114||h.charCodeAt(g-7)!==112||h.charCodeAt(g-8)!==95||h.charCodeAt(g-9)!==95)return!1;for(var I=g-10;I>=0;I--)if(h.charCodeAt(I)!==36)return!1;return!0}function $(h,g,I){var v=T(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||I)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositions=$;function A(h,g,I){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||I)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositionsNoSource=A;function R(h,g,I){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||I)||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflated=R;function x(h,g,I){var v=h.generatedColumn-g.generatedColumn;return v!==0||I||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function T(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function G(h,g){var I=h.generatedLine-g.generatedLine;return I!==0||(I=h.generatedColumn-g.generatedColumn,I!==0)||(I=T(h.source,g.source),I!==0)||(I=h.originalLine-g.originalLine,I!==0)||(I=h.originalColumn-g.originalColumn,I!==0)?I:T(h.name,g.name)}e.compareByGeneratedPositionsInflated=G;function M(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=M;function E(h,g,I){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),I){var v=o(I);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var se=v.path.lastIndexOf("/");se>=0&&(v.path=v.path.substring(0,se+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=E}),Eb=Ln(e=>{var t=Ba(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function o(){this._array=[],this._set=r?new Map:Object.create(null)}o.fromArray=function(i,s){for(var a=new o,u=0,l=i.length;u<l;u++)a.add(i[u],s);return a},o.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,s){var a=r?i:t.toSetString(i),u=r?this.has(i):n.call(this._set,a),l=this._array.length;(!u||s)&&this._array.push(i),u||(r?this._set.set(i,l):this._set[a]=l)},o.prototype.has=function(i){if(r)return this._set.has(i);var s=t.toSetString(i);return n.call(this._set,s)},o.prototype.indexOf=function(i){if(r){var s=this._set.get(i);if(s>=0)return s}else{var a=t.toSetString(i);if(n.call(this._set,a))return this._set[a]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},e.ArraySet=o}),_b=Ln(e=>{var t=Ba();function n(o,i){var s=o.generatedLine,a=i.generatedLine,u=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=u||t.compareByGeneratedPositionsInflated(o,i)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},r.prototype.add=function(o){n(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r}),Cb=Ln(e=>{var t=Fb(),n=Ba(),r=Eb().ArraySet,o=_b().MappingList;function i(s){s||(s={}),this._file=n.getArg(s,"file",null),this._sourceRoot=n.getArg(s,"sourceRoot",null),this._skipValidation=n.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(s){var a=s.sourceRoot,u=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var c={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(c.source=l.source,a!=null&&(c.source=n.relative(a,c.source)),c.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(c.name=l.name)),u.addMapping(c)}),s.sources.forEach(function(l){var c=l;a!==null&&(c=n.relative(a,l)),u._sources.has(c)||u._sources.add(c);var d=s.sourceContentFor(l);d!=null&&u.setSourceContent(l,d)}),u},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),u=n.getArg(s,"original",null),l=n.getArg(s,"source",null),c=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,u,l,c),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:l,name:c})},i.prototype.setSourceContent=function(s,a){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,u){var l=a;if(a==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=s.file}var c=this._sourceRoot;c!=null&&(l=n.relative(c,l));var d=new r,f=new r;this._mappings.unsortedForEach(function(m){if(m.source===l&&m.originalLine!=null){var y=s.originalPositionFor({line:m.originalLine,column:m.originalColumn});y.source!=null&&(m.source=y.source,u!=null&&(m.source=n.join(u,m.source)),c!=null&&(m.source=n.relative(c,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var F=m.source;F!=null&&!d.has(F)&&d.add(F);var $=m.name;$!=null&&!f.has($)&&f.add($)},this),this._sources=d,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(u!=null&&(m=n.join(u,m)),c!=null&&(m=n.relative(c,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,u,l){if(a&&typeof a.line!="number"&&typeof a.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!a&&!u&&!l)){if(s&&"line"in s&&"column"in s&&a&&"line"in a&&"column"in a&&s.line>0&&s.column>=0&&a.line>0&&a.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:u,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,u=0,l=0,c=0,d=0,f="",m,y,F,$,A=this._mappings.toArray(),R=0,x=A.length;R<x;R++){if(y=A[R],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(R>0){if(!n.compareByGeneratedPositionsInflated(y,A[R-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&($=this._sources.indexOf(y.source),m+=t.encode($-d),d=$,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-u),u=y.originalColumn,y.name!=null&&(F=this._names.indexOf(y.name),m+=t.encode(F-c),c=F)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=n.relative(a,u));var l=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}),Sb={};O(Sb,{AtKeyword:()=>Pb,BadString:()=>Bb,BadUrl:()=>Rb,CDC:()=>Vb,CDO:()=>Ub,Colon:()=>Gb,Comma:()=>Hb,Comment:()=>eD,Delim:()=>Nb,Dimension:()=>Wb,EOF:()=>Tb,Function:()=>Ob,Hash:()=>Ib,Ident:()=>Ab,LeftCurlyBracket:()=>Xb,LeftParenthesis:()=>Yb,LeftSquareBracket:()=>Jb,Number:()=>Mb,Percentage:()=>$b,RightCurlyBracket:()=>Qb,RightParenthesis:()=>Kb,RightSquareBracket:()=>Zb,Semicolon:()=>qb,String:()=>jb,Url:()=>Lb,WhiteSpace:()=>zb});Tb=0,Ab=1,Ob=2,Pb=3,Ib=4,jb=5,Bb=6,Lb=7,Rb=8,Nb=9,Mb=10,$b=11,Wb=12,zb=13,Ub=14,Vb=15,Gb=16,qb=17,Hb=18,Jb=19,Zb=20,Yb=21,Kb=22,Xb=23,Qb=24,eD=25;ba=new Array(128),iD=128,Zo=130,Qd=131,Na=132,ep=133;for(let e=0;e<ba.length;e++)ba[e]=Gt(e)&&Zo||ae(e)&&Qd||Qo(e)&&Na||oD(e)&&ep||e||iD;tp=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];nd=10,aD=12,rd=13;lD=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||od(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||od(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},Ce=16777215,kt=24,uD=new Map([[2,22],[21,22],[19,20],[23,24]]),cD=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=()=>{}){e=String(e||"");let n=e.length,r=ti(this.offsetAndType,e.length+1),o=ti(this.balance,e.length+1),i=0,s=0,a=0,u=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,c,d)=>{switch(l){default:o[i]=n;break;case s:{let f=a&Ce;for(a=o[f],s=a>>kt,o[i]=f,o[f++]=i;f<i;f++)o[f]===n&&(o[f]=i);break}case 21:case 2:case 19:case 23:o[i]=a,s=uD.get(l),a=s<<kt|i;break}r[i++]=l<<kt|d,u===-1&&(u=c)}),r[i]=0<<kt|n,o[i]=n,o[n]=n;a!==0;){let l=a&Ce;a=o[l],o[l]=n}this.source=e,this.firstCharOffset=u===-1?0:u,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>kt:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Ce:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Nr(this.source,this.offsetAndType[e-1]&Ce,this.offsetAndType[e]&Ce,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Ce:this.offsetAndType[this.tokenCount]&Ce:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&Ce,t=this.offsetAndType[t],this.tokenType=t>>kt,this.tokenEnd=t&Ce):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>kt,this.tokenEnd=e&Ce):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,o;e:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break e;switch(o=n>0?this.offsetAndType[n-1]&Ce:this.firstCharOffset,t(this.source.charCodeAt(o))){case 1:break e;case 2:n++;break e;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,o=this.offsetAndType[t],i=o&Ce,s=o>>kt;n=i,e(s,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken((t,n,r,o)=>{e[o]={idx:o,type:tp[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};Cn=null,ie=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return ie.createItem(e)}allocateCursor(e,t){let n;return Cn!==null?(n=Cn,Cn=Cn.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Cn,Cn=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){let r=ie.createItem(n);t!==null?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),o=t,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),o=t,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){let n=new ie;for(let r=this.head;r!==null;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){let n=new ie;for(let r=this.head;r!==null;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let o=r.next;if(r.next=o.next,t.call(n,o.data,o,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let o=r.prev;if(r.prev=o.prev,t.call(n,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new ie;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(ie.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(ie.createItem(e))}insert(e,t=null){if(t!==null)if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(ie.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(ie.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(ie.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null?this:(t!=null?(this.updateCursors(t.prev,e.tail,t,e.head),t.prev!==null?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ra=100,id=60,sd=" ";ud=()=>{},pD=33,fD=35,oa=59,cd=123,dd=0;yD=kb(Cb(),1),pd=new Set(["Atrule","Selector","Declaration"]);wa={};O(wa,{safe:()=>op,spec:()=>kD});DD=43,wD=45,sa=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},np=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],vD=np.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);kD=rp(np),op=rp(vD),xD=92;({hasOwnProperty:$a}=Object.prototype),Or=function(){};yd={offset:0,line:1,column:1};Ar=function(e,t){let n=ui("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},LD=function(e,t,n,r){let o=ui("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=BD(r,n);return o.rawMessage=e,o.syntax=t?ci(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
45
+ --`+new Array((n||t.length)+1).join("-")+"^"})}function ni(e){return e.substringToPos(e.findWsEnd(e.pos))}function In(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||$r[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function ri(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function F0(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function wd(e){let t=null,n=null;return e.eat(ti),t=ri(e),e.charCode()===Ua?(e.pos++,e.charCode()!==yd&&(n=ri(e))):n=t,e.eat(yd),{min:Number(t),max:n?Number(n):0}}function E0(e){let t=null,n=!1;switch(e.charCode()){case dp:e.pos++,t={min:0,max:0};break;case za:e.pos++,t={min:1,max:0};break;case va:e.pos++,t={min:0,max:1};break;case Wa:e.pos++,n=!0,e.charCode()===ti?t=wd(e):e.charCode()===va?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case ti:t=wd(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function jn(e,t){let n=E0(e);return n!==null?(n.term=t,e.charCode()===Wa&&e.charCodeAt(e.pos-1)===za?jn(e,n):n):t}function aa(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function _0(e){let t;return e.eat(Va),e.eat(ei),t=In(e),e.eat(ei),e.eat(pp),jn(e,{type:"Property",name:t})}function C0(e){let t=null,n=null,r=1;return e.eat(ui),e.charCode()===hd&&(e.peek(),r=-1),r==-1&&e.charCode()===bd?e.peek():(t=r*Number(ri(e)),$r[e.charCode()]!==0&&(t+=In(e))),ni(e),e.eat(Ua),ni(e),e.charCode()===bd?e.peek():(r=1,e.charCode()===hd&&(e.peek(),r=-1),n=r*Number(ri(e)),$r[e.charCode()]!==0&&(n+=In(e))),e.eat(Ga),{type:"Range",min:t,max:n}}function S0(e){let t,n=null;return e.eat(Va),t=In(e),e.charCode()===cp&&e.nextCharCode()===k0&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ui&&(ni(e),n=C0(e)),e.eat(pp),jn(e,{type:"Type",name:t,opts:n})}function T0(e){let t=In(e);return e.charCode()===cp?(e.pos++,{type:"Function",name:t}):jn(e,{type:"Keyword",name:t})}function A0(e,t){function n(o,i){return{type:"Group",terms:o,combinator:i,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((o,i)=>Dd[o]-Dd[i]);t.length>0;){r=t.shift();let o=0,i=0;for(;o<e.length;o++){let s=e[o];s.type==="Combinator"&&(s.value===r?(i===-1&&(i=o-1),e.splice(o,1),o--):(i!==-1&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function fp(e){let t=[],n={},r,o=null,i=e.pos;for(;r=P0(e);)r.type!=="Spaces"&&(r.type==="Combinator"?((o===null||o.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),n[r.value]=!0):o!==null&&o.type!=="Combinator"&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),o=r,i=e.pos);return o!==null&&o.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:A0(t,n)||" ",disallowEmpty:!1,explicit:!1}}function O0(e){let t;return e.eat(ui),t=fp(e),e.eat(Ga),t.explicit=!0,e.charCode()===up&&(e.pos++,t.disallowEmpty=!0),t}function P0(e){let t=e.charCode();if(t<128&&$r[t]===1)return T0(e);switch(t){case Ga:break;case ui:return jn(e,O0(e));case Va:return e.nextCharCode()===ei?_0(e):S0(e);case gd:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===gd?2:1))};case md:return e.pos++,e.eat(md),{type:"Combinator",value:"&&"};case Ua:return e.pos++,{type:"Comma"};case ei:return jn(e,{type:"String",value:F0(e)});case v0:case y0:case b0:case w0:case D0:return{type:"Spaces",value:ni(e)};case x0:return t=e.nextCharCode(),t<128&&$r[t]===1?(e.pos++,{type:"AtKeyword",name:In(e)}):aa(e);case dp:case za:case va:case Wa:case up:break;case ti:if(t=e.nextCharCode(),t<48||t>57)return aa(e);break;default:return aa(e)}}function qa(e){let t=new g0(e),n=fp(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function vd(e){return typeof e=="function"?e:jr}function mp(e,t,n){function r(s){switch(o.call(n,s),s.type){case"Group":s.terms.forEach(r);break;case"Multiplier":r(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}i.call(n,s)}let o=jr,i=jr;if(typeof t=="function"?o=t:t&&(o=vd(t.enter),i=vd(t.leave)),o===jr&&i===jr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function j0(e){let t=[];return ii(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function B0(e,t){return typeof e=="string"?j0(e):t.generate(e,I0)}function le(e,t,n){return t===V&&n===q||e===V&&t===V&&n===V?e:(e.type==="If"&&e.else===q&&t===V&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function hp(e){return e.length>2&&e.charCodeAt(e.length-2)===L0&&e.charCodeAt(e.length-1)===R0}function kd(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&hp(e.name)}function ka(e,t,n){switch(e){case" ":{let r=V;for(let o=t.length-1;o>=0;o--){let i=t[o];r=le(i,r,q)}return r}case"|":{let r=q,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(kd(s)&&(o===null&&i>0&&kd(t[i-1])&&(o=Object.create(null),r=le({type:"Enum",map:o},V,r)),o!==null)){let a=(hp(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=le(s,V,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=ka(e,t.filter(function(a){return a!==i}),!1):s=V,r=le(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?V:q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=ka(e,t.filter(function(a){return a!==i}),!0):s=V,r=le(i,s,r)}return r}}}function N0(e){let t=V,n=Ja(e.term);if(e.max===0)n=le(n,Ha,q),t=le(n,null,q),t.then=le(V,V,t),e.comma&&(t.then.else=le({type:"Comma",syntax:e},t,q));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==V&&(t=le({type:"Comma",syntax:e},t,q)),t=le(n,le(V,V,t),q);if(e.min===0)t=le(V,V,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==V&&(t=le({type:"Comma",syntax:e},t,q)),t=le(n,t,q);return t}function Ja(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=ka(e.combinator,e.terms.map(Ja),!1);return e.disallowEmpty&&(t=le(t,Ha,q)),t}case"Multiplier":return N0(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function xa(e,t){return typeof e=="string"&&(e=qa(e)),{type:"MatchGraph",match:Ja(e),syntax:t||null,source:e}}function V0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function la(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),o=e.charCodeAt(n);if(o>=65&&o<=90&&(o=o|32),o!==r)return!1}return!0}function G0(e){return e.type!==9?!1:e.value!=="?"}function _d(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||G0(e)}function Cd(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function q0(e,t,n){function r(){do R++,A=R<e.length?e[R]:null;while(A!==null&&(A.type===13||A.type===25))}function o(G){let M=R+G;return M<e.length?e[M]:null}function i(G,M){return{nextState:G,matchStack:T,syntaxStack:p,thenStack:f,tokenIndex:R,prev:M}}function s(G){f={nextState:G,matchStack:T,syntaxStack:p,prev:f}}function a(G){m=i(G,m)}function u(){T={type:$0,syntax:t.syntax,token:A,prev:T},r(),y=null,R>x&&(x=R)}function l(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},T={type:Fa,syntax:t.syntax,token:T.token,prev:T}}function c(){T.type===Fa?T=T.prev:T={type:gp,syntax:p.syntax,token:T.token,prev:T},p=p.prev}let p=null,f=null,m=null,y=null,F=0,$=null,A=null,R=-1,x=0,T={type:M0,syntax:null,token:null,prev:null};for(r();$===null&&++F<Ed;)switch(t.type){case"Match":if(f===null){if(A!==null&&(R!==e.length-1||A.value!=="\\0"&&A.value!=="\\9")){t=q;break}$=Fd;break}if(t=f.nextState,t===Ha)if(f.matchStack===T){t=q;break}else t=V;for(;f.syntaxStack!==p;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||R>m.tokenIndex)&&(m=y,y=!1);else if(m===null){$=W0;break}t=m.nextState,f=m.thenStack,p=m.syntaxStack,T=m.matchStack,R=m.tokenIndex,A=R<e.length?e[R]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==q&&a(t.else),t.then!==V&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{let E=t.syntax.terms;if(t.index===E.length){if(t.mask===0||t.syntax.all){t=q;break}t=V;break}if(t.mask===(1<<E.length)-1){t=V;break}for(;t.index<E.length;t.index++){let h=1<<t.index;if((t.mask&h)===0){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|h}),t=E[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(A!==null){let E=A.value.toLowerCase();if(E.indexOf("\\")!==-1&&(E=E.replace(/\\[09].*$/,"")),xd.call(t.map,E)){t=t.map[E];break}}t=q;break;case"Generic":{let E=p!==null?p.opts:null,h=R+Math.floor(t.fn(A,o,E));if(!isNaN(h)&&h>R){for(;R<h;)u();t=V}else t=q;break}case"Type":case"Property":{let E=t.type==="Type"?"types":"properties",h=xd.call(n,E)?n[E][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&A!==null&&t.type==="Type"&&(t.name==="custom-ident"&&A.type===1||t.name==="length"&&A.value==="0")){y===null&&(y=i(t,m)),t=q;break}l(),t=h.match;break}case"Keyword":{let E=t.name;if(A!==null){let h=A.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),la(h,E)){u(),t=V;break}}t=q;break}case"AtKeyword":case"Function":if(A!==null&&la(A.value,t.name)){u(),t=V;break}t=q;break;case"Token":if(A!==null&&A.value===t.value){u(),t=V;break}t=q;break;case"Comma":A!==null&&A.type===18?_d(T.token)?t=q:(u(),t=Cd(A)?q:V):t=_d(T.token)||Cd(A)?V:q;break;case"String":let G="",M=R;for(;M<e.length&&G.length<t.value.length;M++)G+=e[M].value;if(la(G,t.value)){for(;R<M;)u();t=V}else t=q;break;default:throw new Error("Unknown node type: "+t.type)}switch(U0+=F,$){case null:console.warn("[csstree-match] BREAK after "+Ed+" iterations"),$=z0,T=null;break;case Fd:for(;p!==null;)c();break;default:T=null}return{tokens:e,reason:$,iterations:F,match:T,longestMatch:x}}function Sd(e,t,n){let r=q0(e,t,n||{});if(r.match===null)return r;let o=r.match,i=r.match={syntax:t.syntax||null,match:[]},s=[i];for(o=V0(o).prev;o!==null;){switch(o.type){case Fa:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case gp:s.pop(),i=s[s.length-1];break;default:i.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r}function bp(e){function t(o){return o===null?!1:o.type==="Type"||o.type==="Property"||o.type==="Keyword"}function n(o){if(Array.isArray(o.match)){for(let i=0;i<o.match.length;i++)if(n(o.match[i]))return t(o.syntax)&&r.unshift(o.syntax),!0}else if(o.node===e)return r=t(o.syntax)?[o.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function H0(e,t){return Za(this,e,n=>n.type==="Type"&&n.name===t)}function J0(e,t){return Za(this,e,n=>n.type==="Property"&&n.name===t)}function Z0(e){return Za(this,e,t=>t.type==="Keyword")}function Za(e,t,n){let r=bp.call(e,t);return r===null?!1:r.some(n)}function Dp(e){return"node"in e?e.node:Dp(e.match[0])}function wp(e){return"node"in e?e.node:wp(e.match[e.match.length-1])}function Td(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let u=Dp(a),l=wp(a);e.syntax.walk(t,function(c,p,f){if(c===u){let m=new re;do{if(m.appendData(p.data),p.data===l)break;p=p.next}while(p!==null);s.push({parent:f,nodes:m})}})}Array.isArray(a.match)&&a.match.forEach(i)}let s=[];return n.matched!==null&&i(n.matched),s}function ua(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ad(e){return!!e&&ua(e.offset)&&ua(e.line)&&ua(e.column)}function Y0(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let o in n){let i=!0;if(Rr.call(n,o)!==!1){if(o==="type")n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(o==="loc"){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object)if(typeof n.loc.source!="string")o+=".source";else if(!Ad(n.loc.start))o+=".start";else if(!Ad(n.loc.end))o+=".end";else continue;i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let s=0;!i&&s<t[o].length;s++){let a=t[o][s];switch(a){case String:i=typeof n[o]=="string";break;case Boolean:i=typeof n[o]=="boolean";break;case null:i=n[o]===null;break;default:typeof a=="string"?i=n[o]&&n[o].type===a:Array.isArray(a)&&(i=n[o]instanceof re)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)Rr.call(t,o)&&Rr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function K0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(Rr.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let u=0;u<a.length;u++){let l=a[u];if(l===String||l===Boolean)s.push(l.name);else if(l===null)s.push("null");else if(typeof l=="string")s.push("<"+l+">");else if(Array.isArray(l))s.push("List");else throw new Error("Wrong value `"+l+"` in `"+e+"."+i+"` structure definition")}o[i]=s.join(" | ")}return{docs:o,check:Y0(e,r)}}function X0(e){let t={};if(e.node){for(let n in e.node)if(Rr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=K0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Ea(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:ai(e[o].syntax,{compact:t}));return r}function ew(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:ai(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Ea(i.descriptors,t,n)};return r}function tw(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function $e(e,t,n){return{matched:e,iterations:n,error:t,...yp}}function Tn(e,t,n,r){let o=B0(n,e.syntax),i;return tw(o)?$e(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=Sd(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=Sd(o,t.match,e),!i.match)?$e(null,new PD(i.reason,t.syntax,n,i),i.iterations):$e(i.match,null,i.iterations))}function ca(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Pd(e,t){let n=Object.create(null);for(let[r,o]of Object.entries(e))if(o){n[r]={};for(let i of Object.keys(o))t.includes(i)&&(n[r][i]=o[i])}return n}function _a(e,t){let n={...e};for(let[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"units":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(let[i,s]of Object.entries(o)){let a=n[r][i]||{},u=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){u.prelude=s.prelude?ca(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?ca(u.descriptors[l],c):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=ca(n[r][i],s);break;case"scope":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]={...n[r][i],...s};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...Pd(o,["parse"])};break;case"node":n[r]={...e[r],...Pd(o,["name","structure","parse","generate","walkContext"])};break}return n}function vp(e){let t=pD(e),n=_D(e),r=kD(e),{fromPlainObject:o,toPlainObject:i}=xD(n),s={lexer:null,createLexer:a=>new Od(a,s,s.lexer.structure),tokenize:ii,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let u=_a({},e);return vp(typeof a=="function"?a(u,Object.assign):_a(u,a))}};return s.lexer=new Od({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function Jo(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===Ze||r===De)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)ie(this.charCodeAt(n))||this.error("Integer is expected",n)}function An(e){return Jo.call(this,0,e)}function kt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Ho:n="N is expected";break;case De:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function da(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(Ze,e)||this.isDelim(De,e)){t=this.isDelim(Ze,e)?Ze:De;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),An.call(this,qt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Ze&&n!==De&&this.error("Number sign is expected")),An.call(this,t!==0),t===De?"-"+this.consume(10):this.consume(10)}function xp(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)An.call(this,ow),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,De))switch(t="-1",kt.call(this,1,Ho),this.tokenEnd-this.tokenStart){case 2:this.next(),n=da.call(this);break;case 3:kt.call(this,2,De),this.next(),this.skipSC(),An.call(this,qt),n="-"+this.consume(10);break;default:kt.call(this,2,De),Jo.call(this,3,qt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(Ze)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(Ze)&&(r=1,this.next()),kt.call(this,0,Ho),this.tokenEnd-this.tokenStart){case 1:this.next(),n=da.call(this);break;case 2:kt.call(this,1,De),this.next(),this.skipSC(),An.call(this,qt),n="-"+this.consume(10);break;default:kt.call(this,1,De),Jo.call(this,2,qt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===Ze||r===De,i=this.tokenStart+o;for(;i<this.tokenEnd&&ie(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),kt.call(this,i-this.tokenStart,Ho),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=da.call(this)):(kt.call(this,i-this.tokenStart+1,De),i+2===this.tokenEnd?(this.next(),this.skipSC(),An.call(this,qt),n="-"+this.consume(10)):(Jo.call(this,i-this.tokenStart+2,qt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Ze&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Ze&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function aw(e){if(e.a){let t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){let n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}function Id(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function lw(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}function Ep(e=!1){let t=this.tokenStart,n,r,o=null,i=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),Id):o=Id.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?i=this.atrule[r].block.call(this,e):i=this.Block(lw.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function pw(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function Cp(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function gw(e){this.children(e)}function ww(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(Tp)?(t=!0,this.next()):this.isDelim(Ca)||this.eat(1),this.isDelim(Ca)?this.charCodeAt(this.tokenStart+1)!==Zo?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function vw(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Zo&&t!==Dw&&t!==bw&&t!==yw&&t!==Tp&&t!==Ca&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Zo&&(this.isDelim(Zo)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function Ap(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=ww.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=vw.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}}function Fw(e){this.token(9,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,"]")}function Pp(e){return this.Raw(e,null,!0)}function jd(){return this.parseWithFallback(this.Rule,Pp)}function Bd(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function _w(){if(this.tokenType===17)return Bd.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Bd);return this.tokenType===17&&this.next(),e}function Ip(e){let t=e?_w:jd,n=this.tokenStart,r=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Pp));break;default:e&&this.isDelim(Ew)?r.push(jd.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Aw(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function Bp(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Iw(e){this.token(9,"["),this.children(e),this.token(9,"]")}function Rp(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Lw(){this.token(15,"-->")}function Mp(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Mw(){this.token(14,"<!--")}function Wp(){return this.eatDelim($w),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Uw(e){this.token(9,"."),this.token(1,e.name)}function Up(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Gw:case Vw:case qw:this.next();break;case Ld:this.next(),this.eatIdent("deep"),this.eatDelim(Ld);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Zw(e){this.tokenize(e.name)}function Gp(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Yw&&this.charCodeAt(t-1)===Kw&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function ev(e){this.token(25,"/*"+e.value+"*/")}function sv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function av(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function lv(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Hp)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function Jp(){let e=this.tokenStart,t=this.tokenIndex,n=fv.call(this),r=Ma(n),o=r?this.parseCustomProperty:this.parseValue,i=r?av:sv,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(lv,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Hp)&&(s=mv.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}}function pv(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,e.important===!0?"important":e.important))}function fv(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case ov:case nv:case iv:case tv:case rv:this.next();break;case Rd:this.next(),this.isDelim(Rd)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function mv(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function pa(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Yp(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),pa));break;default:this.isDelim(hv)?e.push(this.parseWithFallback(this.Rule,pa)):e.push(this.parseWithFallback(this.Declaration,pa))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function bv(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function Xp(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function vv(e){this.token(12,e.value+e.unit)}function ef(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase(),i;return i=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:i}}function Ev(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function nf(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Tv(e){this.token(4,"#"+e.value)}function of(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Pv(e){this.token(1,e.name)}function af(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Bv(e){this.token(9,"#"+e.name)}function uf(){let e=this.tokenStart,t,n=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:this.lookupNonWSType(1)===9?n=this.Ratio():n=this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function Nv(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function df(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function Wv(e){this.children(e)}function ff(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function Vv(e){this.children(e,()=>this.token(18,","))}function hf(){let e=this.tokenStart;return this.eatDelim(Gv),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Jv(){this.token(9,"&")}function yf(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function Kv(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Df(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function ek(e){this.token(10,e.value)}function vf(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function rk(e){this.tokenize(e.value)}function xf(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function sk(e){this.token(21,"("),this.children(e),this.token(22,")")}function Ef(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function uk(e){this.token(11,e.value+"%")}function Cf(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function fk(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Tf(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function yk(e){this.token(16,":"),this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Nd(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!ie(n)&&n!==Dk&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}function Of(){let e=this.tokenStart,t=Nd.call(this),n;return this.skipSC(),this.eatDelim(bk),n=Nd.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function kk(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function xk(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function If(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=xk.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function _k(e){this.tokenize(e.value)}function Md(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Ck(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function Bf(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(Ck,Md):n=Md.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Ok(e){this.node(e.prelude),this.node(e.block)}function Rf(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function jk(e){this.children(e)}function Mf(){let e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===18){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function Nk(e){this.children(e,()=>this.token(18,","))}function Ka(e){let t=e.length,n=e.charCodeAt(0),r=n===Wf||n===zf?1:0,o=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,i="";for(let s=r;s<=o;s++){let a=e.charCodeAt(s);if(a===Sa){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),We(Sa,a)){let u=s-1,l=Jt(e,u);s=l-1,i+=La(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function Uf(e,t){let n=t?"'":'"',r=t?zf:Wf,o="",i=!1;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);if(a===0){o+="\uFFFD";continue}if(a<=31||a===127){o+="\\"+a.toString(16),i=!0;continue}a===r||a===Sa?(o+="\\"+e.charAt(s),i=!1):(i&&(Ft(a)||Ht(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function Vf(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Ka(this.consume(5))}}function zk(e){this.token(5,Uf(e.value))}function $d(e){return this.Raw(e,null,!1)}function qf(){let e=this.tokenStart,t=this.createList(),n;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==Uk){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,$d);break;default:n=this.parseWithFallback(this.Rule,$d)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function Hk(e){this.children(e)}function fa(){this.tokenType!==1&&this.isDelim(Jk)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function Jf(){let e=this.tokenStart;return this.isDelim(Wd)?(this.next(),fa.call(this)):(fa.call(this),this.isDelim(Wd)&&(this.next(),fa.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Kk(e){this.tokenize(e.name)}function Br(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===Kf&&t&&n!==0)return Br.call(this,e+n+1,!1),-1;Ft(o)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Uo(e){let t=0;for(;this.isDelim(Ta);)++t>e&&this.error("Too many question marks"),this.next()}function Xk(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Yf?"Plus sign":"Hyphen minus")+" is expected")}function Qk(){let e=0;switch(this.tokenType){case 10:if(e=Br.call(this,1,!0),this.isDelim(Ta)){Uo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){Xk.call(this,Kf),Br.call(this,1,!1);break}break;case 12:e=Br.call(this,1,!0),e>0&&Uo.call(this,6-e);break;default:if(this.eatDelim(Yf),this.tokenType===1){e=Br.call(this,0,!0),e>0&&Uo.call(this,6-e);break}if(this.isDelim(Ta)){this.next(),Uo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function Xf(){let e=this.tokenStart;return this.eatIdent("u"),Qk.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function nx(e){this.tokenize(e.value)}function tm(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===em?t-2:t-1,o="";for(;n<r&&Ht(e.charCodeAt(n));)n++;for(;n<r&&Ht(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===Aa){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),We(Aa,s)){let a=i-1,u=Jt(e,a);i=u-1,o+=La(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function nm(e){let t="",n=!1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===0){t+="\uFFFD";continue}if(o<=31||o===127){t+="\\"+o.toString(16),n=!0;continue}o===ox||o===Aa||o===ix||o===sx||o===ax||o===em?(t+="\\"+e.charAt(r),n=!1):(n&&Ft(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function rm(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=tm(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=Ka(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function cx(e){this.token(7,nm(e.value))}function im(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function fx(e){this.children(e)}function am(){return this.eat(13),mx}function yx(e){this.token(13,e.value)}function um(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,xx)&&this.cmpChar(this.tokenStart+1,zd)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===kx||t===wx||t===zd||t===vx)return this.Operator();t===Dx&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function Ix(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function jx(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===Ud&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case Sx:case Ax:case Px:case Tx:return this.Combinator();case Ud:return this.ClassSelector();case Cx:case Ox:return this.TypeSelector();case Ex:return this.IdSelector();case _x:return this.NestingSelector()}break}}}function Lx(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Rx(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===13){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function Vd(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function Vx(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Gx(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):cm.call(this)}function cm(){let e=this.createList(),t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(Vx,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(Gx,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function Qx(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===qd){if(r===t)break;if(o=e.charCodeAt(++r),We(qd,o)){let i=r-1,s=Jt(e,i);r=s-1,n+=La(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function e1(e){let t="";if(e.length===1&&e.charCodeAt(0)===45)return"\\-";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0){t+="\uFFFD";continue}if(r<=31||r===127||r>=48&&r<=57&&(n===0||n===1&&e.charCodeAt(0)===45)){t+="\\"+r.toString(16)+" ";continue}ja(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var pb,Oa,fb,mb,hb,gb,Bn,O,yb,bb,Db,wb,Pa,vb,kb,xb,Fb,Eb,_b,Cb,Sb,Tb,Ab,Ob,Pb,Ib,jb,Bb,Lb,Rb,Nb,Mb,$b,Wb,zb,Ub,Vb,Gb,qb,Hb,Jb,Zb,Yb,ha,tD,qo,Jd,Ba,Zd,Yd,Kc,rD,Xc,oD,_e,vt,iD,sD,_n,re,ea,ed,td,od,lD,uD,ta,id,sd,fD,ad,ya,hD,gD,ra,Kd,yD,bD,Qd,DD,Ra,Or,pd,Ar,PD,Wo,Cn,Qo,oa,fd,tp,Mr,Je,ia,Sn,BD,RD,np,rp,ND,WD,$a,XD,QD,wa,n0,r0,o0,i0,s0,a0,l0,u0,c0,d0,p0,f0,m0,h0,g0,y0,b0,D0,w0,v0,up,Wa,md,ei,cp,k0,dp,za,Ua,hd,Va,pp,va,x0,ui,Ga,ti,gd,yd,bd,$r,Dd,jr,I0,V,q,Ha,L0,R0,xd,M0,$0,Fa,gp,Fd,W0,z0,Ed,U0,yp,Rr,Q0,Od,nw,rw,Ya,kp,Ze,De,Ho,qt,ow,iw,sw,Fp,uw,cw,dw,_p,fw,mw,hw,Sp,yw,Tp,Zo,bw,Ca,Dw,kw,xw,Op,Ew,Cw,Sw,Tw,jp,Ow,Pw,Lp,jw,Bw,Np,Rw,Nw,$p,$w,Ww,zw,zp,Vw,Ld,Gw,qw,Hw,Jw,Vp,Yw,Kw,Xw,Qw,qp,Hp,tv,nv,rv,ov,iv,Rd,uv,cv,dv,Zp,hv,gv,yv,Kp,Dv,wv,Qp,kv,xv,Fv,tf,_v,Cv,Sv,rf,Av,Ov,sf,Iv,jv,lf,Lv,Rv,cf,Mv,$v,pf,zv,Uv,mf,Gv,qv,Hv,gf,Zv,Yv,bf,Xv,Qv,wf,tk,nk,kf,ok,ik,Ff,ak,lk,_f,ck,dk,pk,Sf,mk,hk,gk,Af,bk,Dk,wk,vk,Pf,Fk,Ek,jf,Sk,Tk,Ak,Lf,Pk,Ik,Nf,Bk,Lk,Rk,$f,Mk,Sa,Wf,zf,$k,Wk,Gf,Uk,Vk,Gk,qk,Hf,Jk,Wd,Zk,Yk,Zf,Yf,Kf,Ta,ex,tx,Qf,rx,ox,Aa,ix,sx,ax,em,lx,ux,om,dx,px,sm,mx,hx,gx,bx,lm,Dx,wx,zd,vx,kx,xx,Fx,Ex,_x,Cx,Sx,Tx,Ud,Ax,Ox,Px,Bx,Nx,Mx,$x,Wx,zx,Ux,qx,Hx,Gt,ma,Gd,Vo,Jx,dm,Zx,Yx,Kx,Xx,qd,yS,pm,fm,bS,DS,mm,wS,vS,kS,xS,FS,ES,hm=C(()=>{"use strict";pb=Object.create,Oa=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,mb=Object.getOwnPropertyNames,hb=Object.getPrototypeOf,gb=Object.prototype.hasOwnProperty,Bn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),O=(e,t)=>{for(var n in t)Oa(e,n,{get:t[n],enumerable:!0})},yb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mb(t))!gb.call(e,o)&&o!==n&&Oa(e,o,{get:()=>t[o],enumerable:!(r=fb(t,o))||r.enumerable});return e},bb=(e,t,n)=>(n=e!=null?pb(hb(e)):{},yb(t||!e||!e.__esModule?Oa(n,"default",{value:e,enumerable:!0}):n,e)),Db=Bn(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(n){if(0<=n&&n<t.length)return t[n];throw new TypeError("Must be between 0 and 63: "+n)},e.decode=function(n){var r=65,o=90,i=97,s=122,a=48,u=57,l=43,c=47,p=26,f=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+p:a<=n&&n<=u?n-a+f:n==l?62:n==c?63:-1}}),wb=Bn(e=>{var t=Db(),n=5,r=1<<n,o=r-1,i=r;function s(u){return u<0?(-u<<1)+1:(u<<1)+0}function a(u){var l=(u&1)===1,c=u>>1;return l?-c:c}e.encode=function(u){var l="",c,p=s(u);do c=p&o,p>>>=n,p>0&&(c|=i),l+=t.encode(c);while(p>0);return l},e.decode=function(u,l,c){var p=u.length,f=0,m=0,y,F;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(F=t.decode(u.charCodeAt(l++)),F===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(F&i),F&=o,f=f+(F<<m),m+=n}while(y);c.value=a(f),c.rest=l}}),Pa=Bn(e=>{function t(h,g,I){if(g in h)return h[g];if(arguments.length===3)return I;throw new Error('"'+g+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(h){var g=h.match(n);return g?{scheme:g[1],auth:g[2],host:g[3],port:g[4],path:g[5]}:null}e.urlParse=o;function i(h){var g="";return h.scheme&&(g+=h.scheme+":"),g+="//",h.auth&&(g+=h.auth+"@"),h.host&&(g+=h.host),h.port&&(g+=":"+h.port),h.path&&(g+=h.path),g}e.urlGenerate=i;var s=32;function a(h){var g=[];return function(I){for(var v=0;v<g.length;v++)if(g[v].input===I){var oe=g[0];return g[0]=g[v],g[v]=oe,g[0].result}var Pe=h(I);return g.unshift({input:I,result:Pe}),g.length>s&&g.pop(),Pe}}var u=a(function(h){var g=h,I=o(h);if(I){if(!I.path)return h;g=I.path}for(var v=e.isAbsolute(g),oe=[],Pe=0,L=0;;)if(Pe=L,L=g.indexOf("/",Pe),L===-1){oe.push(g.slice(Pe));break}else for(oe.push(g.slice(Pe,L));L<g.length&&g[L]==="/";)L++;for(var Y,ht=0,L=oe.length-1;L>=0;L--)Y=oe[L],Y==="."?oe.splice(L,1):Y===".."?ht++:ht>0&&(Y===""?(oe.splice(L+1,ht),ht=0):(oe.splice(L,2),ht--));return g=oe.join("/"),g===""&&(g=v?"/":"."),I?(I.path=g,i(I)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var I=o(g),v=o(h);if(v&&(h=v.path||"/"),I&&!I.scheme)return v&&(I.scheme=v.scheme),i(I);if(I||g.match(r))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var oe=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=oe,i(v)):oe}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function c(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var I=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++I}return Array(I+1).join("../")+g.substr(h.length+1)}e.relative=c;var p=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return F(h)?"$"+h:h}e.toSetString=p?f:m;function y(h){return F(h)?h.slice(1):h}e.fromSetString=p?f:y;function F(h){if(!h)return!1;var g=h.length;if(g<9||h.charCodeAt(g-1)!==95||h.charCodeAt(g-2)!==95||h.charCodeAt(g-3)!==111||h.charCodeAt(g-4)!==116||h.charCodeAt(g-5)!==111||h.charCodeAt(g-6)!==114||h.charCodeAt(g-7)!==112||h.charCodeAt(g-8)!==95||h.charCodeAt(g-9)!==95)return!1;for(var I=g-10;I>=0;I--)if(h.charCodeAt(I)!==36)return!1;return!0}function $(h,g,I){var v=T(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||I)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositions=$;function A(h,g,I){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||I)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositionsNoSource=A;function R(h,g,I){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||I)||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflated=R;function x(h,g,I){var v=h.generatedColumn-g.generatedColumn;return v!==0||I||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function T(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function G(h,g){var I=h.generatedLine-g.generatedLine;return I!==0||(I=h.generatedColumn-g.generatedColumn,I!==0)||(I=T(h.source,g.source),I!==0)||(I=h.originalLine-g.originalLine,I!==0)||(I=h.originalColumn-g.originalColumn,I!==0)?I:T(h.name,g.name)}e.compareByGeneratedPositionsInflated=G;function M(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=M;function E(h,g,I){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),I){var v=o(I);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var oe=v.path.lastIndexOf("/");oe>=0&&(v.path=v.path.substring(0,oe+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=E}),vb=Bn(e=>{var t=Pa(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function o(){this._array=[],this._set=r?new Map:Object.create(null)}o.fromArray=function(i,s){for(var a=new o,u=0,l=i.length;u<l;u++)a.add(i[u],s);return a},o.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,s){var a=r?i:t.toSetString(i),u=r?this.has(i):n.call(this._set,a),l=this._array.length;(!u||s)&&this._array.push(i),u||(r?this._set.set(i,l):this._set[a]=l)},o.prototype.has=function(i){if(r)return this._set.has(i);var s=t.toSetString(i);return n.call(this._set,s)},o.prototype.indexOf=function(i){if(r){var s=this._set.get(i);if(s>=0)return s}else{var a=t.toSetString(i);if(n.call(this._set,a))return this._set[a]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},e.ArraySet=o}),kb=Bn(e=>{var t=Pa();function n(o,i){var s=o.generatedLine,a=i.generatedLine,u=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=u||t.compareByGeneratedPositionsInflated(o,i)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},r.prototype.add=function(o){n(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r}),xb=Bn(e=>{var t=wb(),n=Pa(),r=vb().ArraySet,o=kb().MappingList;function i(s){s||(s={}),this._file=n.getArg(s,"file",null),this._sourceRoot=n.getArg(s,"sourceRoot",null),this._skipValidation=n.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(s){var a=s.sourceRoot,u=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var c={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(c.source=l.source,a!=null&&(c.source=n.relative(a,c.source)),c.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(c.name=l.name)),u.addMapping(c)}),s.sources.forEach(function(l){var c=l;a!==null&&(c=n.relative(a,l)),u._sources.has(c)||u._sources.add(c);var p=s.sourceContentFor(l);p!=null&&u.setSourceContent(l,p)}),u},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),u=n.getArg(s,"original",null),l=n.getArg(s,"source",null),c=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,u,l,c),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:l,name:c})},i.prototype.setSourceContent=function(s,a){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,u){var l=a;if(a==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=s.file}var c=this._sourceRoot;c!=null&&(l=n.relative(c,l));var p=new r,f=new r;this._mappings.unsortedForEach(function(m){if(m.source===l&&m.originalLine!=null){var y=s.originalPositionFor({line:m.originalLine,column:m.originalColumn});y.source!=null&&(m.source=y.source,u!=null&&(m.source=n.join(u,m.source)),c!=null&&(m.source=n.relative(c,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var F=m.source;F!=null&&!p.has(F)&&p.add(F);var $=m.name;$!=null&&!f.has($)&&f.add($)},this),this._sources=p,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(u!=null&&(m=n.join(u,m)),c!=null&&(m=n.relative(c,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,u,l){if(a&&typeof a.line!="number"&&typeof a.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!a&&!u&&!l)){if(s&&"line"in s&&"column"in s&&a&&"line"in a&&"column"in a&&s.line>0&&s.column>=0&&a.line>0&&a.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:u,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,u=0,l=0,c=0,p=0,f="",m,y,F,$,A=this._mappings.toArray(),R=0,x=A.length;R<x;R++){if(y=A[R],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(R>0){if(!n.compareByGeneratedPositionsInflated(y,A[R-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&($=this._sources.indexOf(y.source),m+=t.encode($-p),p=$,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-u),u=y.originalColumn,y.name!=null&&(F=this._names.indexOf(y.name),m+=t.encode(F-c),c=F)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=n.relative(a,u));var l=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}),Fb={};O(Fb,{AtKeyword:()=>Sb,BadString:()=>Ob,BadUrl:()=>Ib,CDC:()=>$b,CDO:()=>Mb,Colon:()=>Wb,Comma:()=>Ub,Comment:()=>Yb,Delim:()=>jb,Dimension:()=>Rb,EOF:()=>Eb,Function:()=>Cb,Hash:()=>Tb,Ident:()=>_b,LeftCurlyBracket:()=>Jb,LeftParenthesis:()=>qb,LeftSquareBracket:()=>Vb,Number:()=>Bb,Percentage:()=>Lb,RightCurlyBracket:()=>Zb,RightParenthesis:()=>Hb,RightSquareBracket:()=>Gb,Semicolon:()=>zb,String:()=>Ab,Url:()=>Pb,WhiteSpace:()=>Nb});Eb=0,_b=1,Cb=2,Sb=3,Tb=4,Ab=5,Ob=6,Pb=7,Ib=8,jb=9,Bb=10,Lb=11,Rb=12,Nb=13,Mb=14,$b=15,Wb=16,zb=17,Ub=18,Vb=19,Gb=20,qb=21,Hb=22,Jb=23,Zb=24,Yb=25;ha=new Array(128),tD=128,qo=130,Jd=131,Ba=132,Zd=133;for(let e=0;e<ha.length;e++)ha[e]=Ht(e)&&qo||ie(e)&&Jd||Yo(e)&&Ba||eD(e)&&Zd||e||tD;Yd=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];Kc=10,rD=12,Xc=13;oD=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||Qc(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||Qc(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},_e=16777215,vt=24,iD=new Map([[2,22],[21,22],[19,20],[23,24]]),sD=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=()=>{}){e=String(e||"");let n=e.length,r=Xo(this.offsetAndType,e.length+1),o=Xo(this.balance,e.length+1),i=0,s=0,a=0,u=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,c,p)=>{switch(l){default:o[i]=n;break;case s:{let f=a&_e;for(a=o[f],s=a>>vt,o[i]=f,o[f++]=i;f<i;f++)o[f]===n&&(o[f]=i);break}case 21:case 2:case 19:case 23:o[i]=a,s=iD.get(l),a=s<<vt|i;break}r[i++]=l<<vt|p,u===-1&&(u=c)}),r[i]=0<<vt|n,o[i]=n,o[n]=n;a!==0;){let l=a&_e;a=o[l],o[l]=n}this.source=e,this.firstCharOffset=u===-1?0:u,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>vt:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&_e:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Nr(this.source,this.offsetAndType[e-1]&_e,this.offsetAndType[e]&_e,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&_e:this.offsetAndType[this.tokenCount]&_e:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&_e,t=this.offsetAndType[t],this.tokenType=t>>vt,this.tokenEnd=t&_e):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>vt,this.tokenEnd=e&_e):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,o;e:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break e;switch(o=n>0?this.offsetAndType[n-1]&_e:this.firstCharOffset,t(this.source.charCodeAt(o))){case 1:break e;case 2:n++;break e;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,o=this.offsetAndType[t],i=o&_e,s=o>>vt;n=i,e(s,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken((t,n,r,o)=>{e[o]={idx:o,type:Yd[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};_n=null,re=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return re.createItem(e)}allocateCursor(e,t){let n;return _n!==null?(n=_n,_n=_n.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=_n,_n=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){let r=re.createItem(n);t!==null?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),o=t,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),o=t,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){let n=new re;for(let r=this.head;r!==null;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){let n=new re;for(let r=this.head;r!==null;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let o=r.next;if(r.next=o.next,t.call(n,o.data,o,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let o=r.prev;if(r.prev=o.prev,t.call(n,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new re;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(re.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(re.createItem(e))}insert(e,t=null){if(t!==null)if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(re.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(re.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(re.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null?this:(t!=null?(this.updateCursors(t.prev,e.tail,t,e.head),t.prev!==null?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ea=100,ed=60,td=" ";od=()=>{},lD=33,uD=35,ta=59,id=123,sd=0;fD=bb(xb(),1),ad=new Set(["Atrule","Selector","Declaration"]);ya={};O(ya,{safe:()=>Qd,spec:()=>bD});hD=43,gD=45,ra=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Kd=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],yD=Kd.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);bD=Xd(Kd),Qd=Xd(yD),DD=92;({hasOwnProperty:Ra}=Object.prototype),Or=function(){};pd={offset:0,line:1,column:1};Ar=function(e,t){let n=si("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},PD=function(e,t,n,r){let o=si("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=OD(r,n);return o.rawMessage=e,o.syntax=t?ai(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
45
46
  syntax: `+o.syntax+`
46
47
  value: `+(i||"<empty string>")+`
47
- --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,u),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:l},o},Vo=new Map,Sn=new Map,ni=45,aa=RD,bd=ND;sp=["initial","inherit","unset","revert","revert-layer"],Mr=43,Ze=45,la=110,Tn=!0,MD=!1;WD=43,ap=45,lp=63,zD=117;GD=["calc(","-moz-calc(","-webkit-calc("],Ua=new Map([[2,22],[21,22],[19,20],[23,24]]);n0={"ident-token":J(1),"function-token":J(2),"at-keyword-token":J(3),"hash-token":J(4),"string-token":J(5),"bad-string-token":J(6),"url-token":J(7),"bad-url-token":J(8),"delim-token":J(9),"number-token":J(10),"percentage-token":J(11),"dimension-token":J(12),"whitespace-token":J(13),"CDO-token":J(14),"CDC-token":J(15),"colon-token":J(16),"semicolon-token":J(17),"comma-token":J(18),"[-token":J(19),"]-token":J(20),"(-token":J(21),")-token":J(22),"{-token":J(23),"}-token":J(24)},r0={string:J(5),ident:J(1),percentage:Se(QD),zero:pp(),number:Se(e0),integer:Se(t0),"custom-ident":HD,"custom-property-name":JD,"hex-color":ZD,"id-selector":YD,"an-plus-b":$D,urange:VD,"declaration-value":KD,"any-value":XD};xa={};O(xa,{angle:()=>a0,decibel:()=>p0,flex:()=>d0,frequency:()=>u0,length:()=>s0,resolution:()=>c0,semitones:()=>f0,time:()=>l0});s0=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],a0=["deg","grad","rad","turn"],l0=["s","ms"],u0=["hz","khz"],c0=["dpi","dpcm","dppx","x"],d0=["fr"],p0=["db"],f0=["st"],m0={};O(m0,{SyntaxError:()=>fp,generate:()=>ci,parse:()=>Za,walk:()=>Dp});h0=9,g0=10,y0=12,b0=13,D0=32,w0=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(t!==b0&&t!==g0&&t!==y0&&t!==D0&&t!==h0)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new fp(e,this.str,this.pos)}},v0=9,k0=10,x0=12,F0=13,E0=32,mp=33,Va=35,Dd=38,ri=39,hp=40,_0=41,gp=42,Ga=43,qa=44,wd=45,Ha=60,yp=62,Fa=63,C0=64,pi=91,Ja=93,oi=123,vd=124,kd=125,xd=8734,$r=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Fd={" ":1,"&&":2,"||":3,"|":4};jr=function(){};R0={decorator(e){let t=[],n=null;return{...e,node(r){let o=n;n=r,e.node.call(this,r),n=o},emit(r,o,i){t.push({type:o,value:r,node:i?null:n})},result(){return t}}}};V={type:"Match"},q={type:"Mismatch"},Ya={type:"DisallowEmpty"},$0=40,W0=41;({hasOwnProperty:Sd}=Object.prototype),U0=0,V0=1,Ca=2,vp=3,Td="Match",G0="Mismatch",q0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Ad=15e3,H0=0;kp={};O(kp,{getTrace:()=>xp,isKeyword:()=>Q0,isProperty:()=>X0,isType:()=>K0});({hasOwnProperty:Rr}=Object.prototype);rw=_a(sp.join(" | "));Ld=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=rw,this.syntax=t,this.generic=!1,this.units={...xa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||nw(e),e){if(e.units)for(let r of Object.keys(xa))Array.isArray(e.units[r])&&(this.units[r]=e.units[r]);if(e.types)for(let r in e.types)this.addType_(r,e.types[r]);if(e.generic){this.generic=!0;for(let[r,o]of Object.entries(i0(this.units)))this.addType_(r,o)}if(e.atrules)for(let r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(let r in e.properties)this.addProperty_(r,e.properties[r])}}checkStructure(e){function t(o,i){r.push({node:o,message:i})}let n=this.structure,r=[];return this.syntax.walk(e,function(o){n.hasOwnProperty(o.type)?n[o.type].check(o,t):t(o,"Unknown node type `"+o.type+"`")}),r.length?r:!1}createDescriptor(e,t,n,r=null){let o={type:t,name:n},i={type:t,name:n,parent:r,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?i.match=_a(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:Za(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:_a(i.syntax,o)}),i.match}})),i}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n),Object.create(null)):null})}addProperty_(e,t){!t||(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){!t||(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Ar("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);if(!r.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!t&&!An(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),o=aa(t);if(!r.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[o.name]&&!r.descriptors[o.basename])return new Ar("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Ar("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return $e(null,n);let r=this.getAtrule(e);return r.prelude?An(this,r.prelude,t||"",!1):$e(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return $e(null,r);let o=this.getAtrule(e),i=aa(t);return An(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?$e(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(bd(e).custom)return $e(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?$e(null,n):An(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?An(this,n,t,!1):$e(null,new Ar("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?$e(null,new Ar("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),An(this,e,t,!1))}findValueFragments(e,t,n,r){return jd(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return jd(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:"Declaration",enter:o=>{r.push.apply(r,this.findDeclarationValueFragments(o,t,n))}}),r}getAtrule(e,t=!0){let n=aa(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let n=bd(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,o,i,s){if(i.has(o))return i.get(o);i.set(o,!1),s.syntax!==null&&Dp(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let u=a.type==="Type"?r.types:r.properties,l=a.type==="Type"?t:n;(!hasOwnProperty.call(u,a.name)||e(r,a.name,l,u[a.name]))&&i.set(o,!0)},this)}let t=new Map,n=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(r=>t.get(r)),n=[...n.keys()].filter(r=>n.get(r)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:Sa(this.types,!t,e),properties:Sa(this.properties,!t,e),atrules:ow(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};sw=e=>_p(Ta({},e)),aw={generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221E]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221E]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221E]> [/ <number [0,\u221E]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221E]>","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221E]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null}}},Qa={};O(Qa,{AnPlusB:()=>Cp,Atrule:()=>Tp,AtrulePrelude:()=>Op,AttributeSelector:()=>Ip,Block:()=>Lp,Brackets:()=>Mp,CDC:()=>Wp,CDO:()=>Up,ClassSelector:()=>Gp,Combinator:()=>Hp,Comment:()=>Zp,Declaration:()=>Kp,DeclarationList:()=>ef,Dimension:()=>nf,Function:()=>of,Hash:()=>af,IdSelector:()=>df,Identifier:()=>uf,MediaFeature:()=>ff,MediaQuery:()=>hf,MediaQueryList:()=>yf,NestingSelector:()=>Df,Nth:()=>vf,Number:()=>xf,Operator:()=>Ef,Parentheses:()=>Cf,Percentage:()=>Tf,PseudoClassSelector:()=>Of,PseudoElementSelector:()=>If,Ratio:()=>Bf,Raw:()=>Rf,Rule:()=>Mf,Selector:()=>Wf,SelectorList:()=>Uf,String:()=>Gf,StyleSheet:()=>Yf,TypeSelector:()=>Xf,UnicodeRange:()=>em,Url:()=>om,Value:()=>um,WhiteSpace:()=>dm});Cp={};O(Cp,{generate:()=>dw,name:()=>uw,parse:()=>Sp,structure:()=>cw});Ye=43,we=45,Yo=110,Vt=!0,lw=!1;uw="AnPlusB",cw={a:[String,null],b:[String,null]};Tp={};O(Tp,{generate:()=>gw,name:()=>fw,parse:()=>Ap,structure:()=>hw,walkContext:()=>mw});fw="Atrule",mw="atrule",hw={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Op={};O(Op,{generate:()=>ww,name:()=>yw,parse:()=>Pp,structure:()=>Dw,walkContext:()=>bw});yw="AtrulePrelude",bw="atrulePrelude",Dw={children:[[]]};Ip={};O(Ip,{generate:()=>Sw,name:()=>_w,parse:()=>Bp,structure:()=>Cw});vw=36,jp=42,Xo=61,kw=94,Aa=124,xw=126;_w="AttributeSelector",Cw={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Lp={};O(Lp,{generate:()=>jw,name:()=>Ow,parse:()=>Np,structure:()=>Iw,walkContext:()=>Pw});Tw=38;Ow="Block",Pw="block",Iw={children:[["Atrule","Rule","Declaration"]]};Mp={};O(Mp,{generate:()=>Rw,name:()=>Bw,parse:()=>$p,structure:()=>Lw});Bw="Brackets",Lw={children:[[]]};Wp={};O(Wp,{generate:()=>$w,name:()=>Nw,parse:()=>zp,structure:()=>Mw});Nw="CDC",Mw=[];Up={};O(Up,{generate:()=>Uw,name:()=>Ww,parse:()=>Vp,structure:()=>zw});Ww="CDO",zw=[];Gp={};O(Gp,{generate:()=>Hw,name:()=>Gw,parse:()=>qp,structure:()=>qw});Vw=46,Gw="ClassSelector",qw={name:String};Hp={};O(Hp,{generate:()=>Qw,name:()=>Kw,parse:()=>Jp,structure:()=>Xw});Jw=43,Wd=47,Zw=62,Yw=126,Kw="Combinator",Xw={name:String};Zp={};O(Zp,{generate:()=>ov,name:()=>nv,parse:()=>Yp,structure:()=>rv});ev=42,tv=47,nv="Comment",rv={value:String};Kp={};O(Kp,{generate:()=>gv,name:()=>fv,parse:()=>Qp,structure:()=>hv,walkContext:()=>mv});Xp=33,iv=35,sv=36,av=38,lv=42,uv=43,zd=47;fv="Declaration",mv="declaration",hv={important:[Boolean,String],property:String,value:["Value","Raw"]};ef={};O(ef,{generate:()=>kv,name:()=>wv,parse:()=>tf,structure:()=>vv});Dv=38;wv="DeclarationList",vv={children:[["Declaration","Atrule","Rule"]]};nf={};O(nf,{generate:()=>Ev,name:()=>xv,parse:()=>rf,structure:()=>Fv});xv="Dimension",Fv={value:String,unit:String};of={};O(of,{generate:()=>Tv,name:()=>_v,parse:()=>sf,structure:()=>Sv,walkContext:()=>Cv});_v="Function",Cv="function",Sv={name:String,children:[[]]};af={};O(af,{generate:()=>Iv,name:()=>Ov,parse:()=>lf,structure:()=>Pv,xxx:()=>Av});Av="XXX",Ov="Hash",Pv={value:String};uf={};O(uf,{generate:()=>Lv,name:()=>jv,parse:()=>cf,structure:()=>Bv});jv="Identifier",Bv={name:String};df={};O(df,{generate:()=>Mv,name:()=>Rv,parse:()=>pf,structure:()=>Nv});Rv="IdSelector",Nv={name:String};ff={};O(ff,{generate:()=>zv,name:()=>$v,parse:()=>mf,structure:()=>Wv});$v="MediaFeature",Wv={name:String,value:["Identifier","Number","Dimension","Ratio",null]};hf={};O(hf,{generate:()=>Gv,name:()=>Uv,parse:()=>gf,structure:()=>Vv});Uv="MediaQuery",Vv={children:[["Identifier","MediaFeature","WhiteSpace"]]};yf={};O(yf,{generate:()=>Jv,name:()=>qv,parse:()=>bf,structure:()=>Hv});qv="MediaQueryList",Hv={children:[["MediaQuery"]]};Df={};O(Df,{generate:()=>Xv,name:()=>Yv,parse:()=>wf,structure:()=>Kv});Zv=38,Yv="NestingSelector",Kv={};vf={};O(vf,{generate:()=>tk,name:()=>Qv,parse:()=>kf,structure:()=>ek});Qv="Nth",ek={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};xf={};O(xf,{generate:()=>ok,name:()=>nk,parse:()=>Ff,structure:()=>rk});nk="Number",rk={value:String};Ef={};O(Ef,{generate:()=>ak,name:()=>ik,parse:()=>_f,structure:()=>sk});ik="Operator",sk={value:String};Cf={};O(Cf,{generate:()=>ck,name:()=>lk,parse:()=>Sf,structure:()=>uk});lk="Parentheses",uk={children:[[]]};Tf={};O(Tf,{generate:()=>fk,name:()=>dk,parse:()=>Af,structure:()=>pk});dk="Percentage",pk={value:String};Of={};O(Of,{generate:()=>yk,name:()=>mk,parse:()=>Pf,structure:()=>gk,walkContext:()=>hk});mk="PseudoClassSelector",hk="function",gk={name:String,children:[["Raw"],null]};If={};O(If,{generate:()=>vk,name:()=>bk,parse:()=>jf,structure:()=>wk,walkContext:()=>Dk});bk="PseudoElementSelector",Dk="function",wk={name:String,children:[["Raw"],null]};Bf={};O(Bf,{generate:()=>_k,name:()=>Fk,parse:()=>Lf,structure:()=>Ek});kk=47,xk=46;Fk="Ratio",Ek={left:String,right:String};Rf={};O(Rf,{generate:()=>Ak,name:()=>Sk,parse:()=>Nf,structure:()=>Tk});Sk="Raw",Tk={value:String};Mf={};O(Mf,{generate:()=>Bk,name:()=>Pk,parse:()=>$f,structure:()=>jk,walkContext:()=>Ik});Pk="Rule",Ik="rule",jk={prelude:["SelectorList","Raw"],block:["Block"]};Wf={};O(Wf,{generate:()=>Nk,name:()=>Lk,parse:()=>zf,structure:()=>Rk});Lk="Selector",Rk={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};Uf={};O(Uf,{generate:()=>zk,name:()=>Mk,parse:()=>Vf,structure:()=>Wk,walkContext:()=>$k});Mk="SelectorList",$k="selector",Wk={children:[["Selector","Raw"]]};Gf={};O(Gf,{generate:()=>qk,name:()=>Vk,parse:()=>Zf,structure:()=>Gk});Uk={};O(Uk,{decode:()=>el,encode:()=>Jf});Oa=92,qf=34,Hf=39;Vk="String",Gk={value:String};Yf={};O(Yf,{generate:()=>Kk,name:()=>Jk,parse:()=>Kf,structure:()=>Yk,walkContext:()=>Zk});Hk=33;Jk="StyleSheet",Zk="stylesheet",Yk={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};Xf={};O(Xf,{generate:()=>tx,name:()=>Qk,parse:()=>Qf,structure:()=>ex});Xk=42,qd=124;Qk="TypeSelector",ex={name:String};em={};O(em,{generate:()=>sx,name:()=>ox,parse:()=>rm,structure:()=>ix});tm=43,nm=45,Pa=63;ox="UnicodeRange",ix={value:String};om={};O(om,{generate:()=>mx,name:()=>px,parse:()=>lm,structure:()=>fx});ax={};O(ax,{decode:()=>sm,encode:()=>am});lx=32,Ia=92,ux=34,cx=39,dx=40,im=41;px="Url",fx={value:String};um={};O(um,{generate:()=>yx,name:()=>hx,parse:()=>cm,structure:()=>gx});hx="Value",gx={children:[[]]};dm={};O(dm,{generate:()=>vx,name:()=>Dx,parse:()=>pm,structure:()=>wx});bx=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Dx="WhiteSpace",wx={value:String};kx={generic:!0,...aw,node:Qa},fm={};O(fm,{AtrulePrelude:()=>Sx,Selector:()=>Mx,Value:()=>zx});xx=35,Fx=42,Hd=43,Ex=45,_x=47,Cx=117;Sx={getNode:mm},Tx=35,Ax=38,Ox=42,Px=43,Ix=47,Jd=46,jx=62,Bx=124,Lx=126;Mx={onWhiteSpace:Rx,getNode:Nx};zx={getNode:mm,onWhiteSpace(e,t){Zd(e)&&(e.value=" "+e.value),Zd(t.last)&&(t.last.value+=" ")},expression:$x,var:Wx},Ux={parse:{prelude:null,block(){return this.Block(!0)}}},Vx={parse:{prelude(){let e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},Gx={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},qx={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Hx={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};Yx={parse:{prelude(){let e=hm.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},Kx={"font-face":Ux,import:Vx,media:Gx,nest:qx,page:Hx,supports:Yx},Ut={parse(){return this.createSingleNodeList(this.SelectorList())}},ya={parse(){return this.createSingleNodeList(this.Selector())}},Yd={parse(){return this.createSingleNodeList(this.Identifier())}},Ho={parse(){return this.createSingleNodeList(this.Nth())}},Xx={dir:Yd,has:Ut,lang:Yd,matches:Ut,is:Ut,"-moz-any":Ut,"-webkit-any":Ut,where:Ut,not:Ut,"nth-child":Ho,"nth-last-child":Ho,"nth-last-of-type":Ho,"nth-of-type":Ho,slotted:ya,host:ya,"host-context":ya},gm={};O(gm,{AnPlusB:()=>Sp,Atrule:()=>Ap,AtrulePrelude:()=>Pp,AttributeSelector:()=>Bp,Block:()=>Np,Brackets:()=>$p,CDC:()=>zp,CDO:()=>Vp,ClassSelector:()=>qp,Combinator:()=>Jp,Comment:()=>Yp,Declaration:()=>Qp,DeclarationList:()=>tf,Dimension:()=>rf,Function:()=>sf,Hash:()=>lf,IdSelector:()=>pf,Identifier:()=>cf,MediaFeature:()=>mf,MediaQuery:()=>gf,MediaQueryList:()=>bf,NestingSelector:()=>wf,Nth:()=>kf,Number:()=>Ff,Operator:()=>_f,Parentheses:()=>Sf,Percentage:()=>Af,PseudoClassSelector:()=>Pf,PseudoElementSelector:()=>jf,Ratio:()=>Lf,Raw:()=>Nf,Rule:()=>$f,Selector:()=>zf,SelectorList:()=>Vf,String:()=>Zf,StyleSheet:()=>Kf,TypeSelector:()=>Qf,UnicodeRange:()=>rm,Url:()=>lm,Value:()=>cm,WhiteSpace:()=>pm});Qx={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:fm,atrule:Kx,pseudo:Xx,node:gm},e1={node:Qa},t1=sw({...kx,...Qx,...e1}),n1={};O(n1,{decode:()=>r1,encode:()=>o1});Kd=92;({tokenize:cS,parse:ym,generate:bm,lexer:dS,createLexer:pS,walk:Dm,find:fS,findLast:mS,findAll:hS,toPlainObject:gS,fromPlainObject:yS,fork:bS}=t1)});function s1(e,t,n){let r=["ClassSelector","AttributeSelector","IdSelector","PseudoClassSelector"],o=["type"],i=["root"];if(e.type==="Rule"&&(e.prelude.type==="SelectorList"&&(e.prelude.children=new ie().fromArray(e.prelude.children.toArray().filter(s=>{let a="children"in s?s.children?.first:null;return!a||!r.includes(a.type)?!1:a.type==="PseudoClassSelector"?i.includes(a.name):a.type==="AttributeSelector"?!o.includes(a.name.name):!0}))),e.prelude.children.toArray().length===0&&n)){n.remove(t);return}}function xm(e){if(oe.log(He("Detected skipTagSelectors flag is enabled. Skipping global CSS tags.")),!e)return vm("");let t=Zs(e?.css,!0);try{let n=ym(t);Dm(n,{enter:s1});let r=km.default.format([bm(n),i1].join(`
48
+ --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,u),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:l},o},Wo=new Map,Cn=new Map,Qo=45,oa=ID,fd=jD;tp=["initial","inherit","unset","revert","revert-layer"],Mr=43,Je=45,ia=110,Sn=!0,BD=!1;RD=43,np=45,rp=63,ND=117;WD=["calc(","-moz-calc(","-webkit-calc("],$a=new Map([[2,22],[21,22],[19,20],[23,24]]);XD={"ident-token":J(1),"function-token":J(2),"at-keyword-token":J(3),"hash-token":J(4),"string-token":J(5),"bad-string-token":J(6),"url-token":J(7),"bad-url-token":J(8),"delim-token":J(9),"number-token":J(10),"percentage-token":J(11),"dimension-token":J(12),"whitespace-token":J(13),"CDO-token":J(14),"CDC-token":J(15),"colon-token":J(16),"semicolon-token":J(17),"comma-token":J(18),"[-token":J(19),"]-token":J(20),"(-token":J(21),")-token":J(22),"{-token":J(23),"}-token":J(24)},QD={string:J(5),ident:J(1),percentage:Ce(ZD),zero:ap(),number:Ce(YD),integer:Ce(KD),"custom-ident":UD,"custom-property-name":VD,"hex-color":GD,"id-selector":qD,"an-plus-b":LD,urange:$D,"declaration-value":HD,"any-value":JD};wa={};O(wa,{angle:()=>r0,decibel:()=>l0,flex:()=>a0,frequency:()=>i0,length:()=>n0,resolution:()=>s0,semitones:()=>u0,time:()=>o0});n0=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],r0=["deg","grad","rad","turn"],o0=["s","ms"],i0=["hz","khz"],s0=["dpi","dpcm","dppx","x"],a0=["fr"],l0=["db"],u0=["st"],c0={};O(c0,{SyntaxError:()=>lp,generate:()=>ai,parse:()=>qa,walk:()=>mp});d0=9,p0=10,f0=12,m0=13,h0=32,g0=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(t!==m0&&t!==p0&&t!==f0&&t!==h0&&t!==d0)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new lp(e,this.str,this.pos)}},y0=9,b0=10,D0=12,w0=13,v0=32,up=33,Wa=35,md=38,ei=39,cp=40,k0=41,dp=42,za=43,Ua=44,hd=45,Va=60,pp=62,va=63,x0=64,ui=91,Ga=93,ti=123,gd=124,yd=125,bd=8734,$r=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Dd={" ":1,"&&":2,"||":3,"|":4};jr=function(){};I0={decorator(e){let t=[],n=null;return{...e,node(r){let o=n;n=r,e.node.call(this,r),n=o},emit(r,o,i){t.push({type:o,value:r,node:i?null:n})},result(){return t}}}};V={type:"Match"},q={type:"Mismatch"},Ha={type:"DisallowEmpty"},L0=40,R0=41;({hasOwnProperty:xd}=Object.prototype),M0=0,$0=1,Fa=2,gp=3,Fd="Match",W0="Mismatch",z0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Ed=15e3,U0=0;yp={};O(yp,{getTrace:()=>bp,isKeyword:()=>Z0,isProperty:()=>J0,isType:()=>H0});({hasOwnProperty:Rr}=Object.prototype);Q0=xa(tp.join(" | "));Od=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=Q0,this.syntax=t,this.generic=!1,this.units={...wa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||X0(e),e){if(e.units)for(let r of Object.keys(wa))Array.isArray(e.units[r])&&(this.units[r]=e.units[r]);if(e.types)for(let r in e.types)this.addType_(r,e.types[r]);if(e.generic){this.generic=!0;for(let[r,o]of Object.entries(t0(this.units)))this.addType_(r,o)}if(e.atrules)for(let r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(let r in e.properties)this.addProperty_(r,e.properties[r])}}checkStructure(e){function t(o,i){r.push({node:o,message:i})}let n=this.structure,r=[];return this.syntax.walk(e,function(o){n.hasOwnProperty(o.type)?n[o.type].check(o,t):t(o,"Unknown node type `"+o.type+"`")}),r.length?r:!1}createDescriptor(e,t,n,r=null){let o={type:t,name:n},i={type:t,name:n,parent:r,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?i.match=xa(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:qa(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:xa(i.syntax,o)}),i.match}})),i}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n),Object.create(null)):null})}addProperty_(e,t){!t||(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){!t||(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Ar("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);if(!r.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!t&&!Tn(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),o=oa(t);if(!r.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[o.name]&&!r.descriptors[o.basename])return new Ar("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Ar("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return $e(null,n);let r=this.getAtrule(e);return r.prelude?Tn(this,r.prelude,t||"",!1):$e(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return $e(null,r);let o=this.getAtrule(e),i=oa(t);return Tn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?$e(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(fd(e).custom)return $e(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?$e(null,n):Tn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Tn(this,n,t,!1):$e(null,new Ar("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?$e(null,new Ar("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Tn(this,e,t,!1))}findValueFragments(e,t,n,r){return Td(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Td(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:"Declaration",enter:o=>{r.push.apply(r,this.findDeclarationValueFragments(o,t,n))}}),r}getAtrule(e,t=!0){let n=oa(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let n=fd(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,o,i,s){if(i.has(o))return i.get(o);i.set(o,!1),s.syntax!==null&&mp(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let u=a.type==="Type"?r.types:r.properties,l=a.type==="Type"?t:n;(!hasOwnProperty.call(u,a.name)||e(r,a.name,l,u[a.name]))&&i.set(o,!0)},this)}let t=new Map,n=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(r=>t.get(r)),n=[...n.keys()].filter(r=>n.get(r)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:Ea(this.types,!t,e),properties:Ea(this.properties,!t,e),atrules:ew(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};nw=e=>vp(_a({},e)),rw={generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221E]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221E]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221E]> [/ <number [0,\u221E]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221E]>","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221E]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null}}},Ya={};O(Ya,{AnPlusB:()=>kp,Atrule:()=>Fp,AtrulePrelude:()=>_p,AttributeSelector:()=>Sp,Block:()=>Op,Brackets:()=>jp,CDC:()=>Lp,CDO:()=>Np,ClassSelector:()=>$p,Combinator:()=>zp,Comment:()=>Vp,Declaration:()=>qp,DeclarationList:()=>Zp,Dimension:()=>Kp,Function:()=>Qp,Hash:()=>tf,IdSelector:()=>sf,Identifier:()=>rf,MediaFeature:()=>lf,MediaQuery:()=>cf,MediaQueryList:()=>pf,NestingSelector:()=>mf,Nth:()=>gf,Number:()=>bf,Operator:()=>wf,Parentheses:()=>kf,Percentage:()=>Ff,PseudoClassSelector:()=>_f,PseudoElementSelector:()=>Sf,Ratio:()=>Af,Raw:()=>Pf,Rule:()=>jf,Selector:()=>Lf,SelectorList:()=>Nf,String:()=>$f,StyleSheet:()=>Gf,TypeSelector:()=>Hf,UnicodeRange:()=>Zf,Url:()=>Qf,Value:()=>om,WhiteSpace:()=>sm});kp={};O(kp,{generate:()=>aw,name:()=>iw,parse:()=>xp,structure:()=>sw});Ze=43,De=45,Ho=110,qt=!0,ow=!1;iw="AnPlusB",sw={a:[String,null],b:[String,null]};Fp={};O(Fp,{generate:()=>pw,name:()=>uw,parse:()=>Ep,structure:()=>dw,walkContext:()=>cw});uw="Atrule",cw="atrule",dw={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};_p={};O(_p,{generate:()=>gw,name:()=>fw,parse:()=>Cp,structure:()=>hw,walkContext:()=>mw});fw="AtrulePrelude",mw="atrulePrelude",hw={children:[[]]};Sp={};O(Sp,{generate:()=>Fw,name:()=>kw,parse:()=>Ap,structure:()=>xw});yw=36,Tp=42,Zo=61,bw=94,Ca=124,Dw=126;kw="AttributeSelector",xw={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Op={};O(Op,{generate:()=>Aw,name:()=>Cw,parse:()=>Ip,structure:()=>Tw,walkContext:()=>Sw});Ew=38;Cw="Block",Sw="block",Tw={children:[["Atrule","Rule","Declaration"]]};jp={};O(jp,{generate:()=>Iw,name:()=>Ow,parse:()=>Bp,structure:()=>Pw});Ow="Brackets",Pw={children:[[]]};Lp={};O(Lp,{generate:()=>Lw,name:()=>jw,parse:()=>Rp,structure:()=>Bw});jw="CDC",Bw=[];Np={};O(Np,{generate:()=>Mw,name:()=>Rw,parse:()=>Mp,structure:()=>Nw});Rw="CDO",Nw=[];$p={};O($p,{generate:()=>Uw,name:()=>Ww,parse:()=>Wp,structure:()=>zw});$w=46,Ww="ClassSelector",zw={name:String};zp={};O(zp,{generate:()=>Zw,name:()=>Hw,parse:()=>Up,structure:()=>Jw});Vw=43,Ld=47,Gw=62,qw=126,Hw="Combinator",Jw={name:String};Vp={};O(Vp,{generate:()=>ev,name:()=>Xw,parse:()=>Gp,structure:()=>Qw});Yw=42,Kw=47,Xw="Comment",Qw={value:String};qp={};O(qp,{generate:()=>pv,name:()=>uv,parse:()=>Jp,structure:()=>dv,walkContext:()=>cv});Hp=33,tv=35,nv=36,rv=38,ov=42,iv=43,Rd=47;uv="Declaration",cv="declaration",dv={important:[Boolean,String],property:String,value:["Value","Raw"]};Zp={};O(Zp,{generate:()=>bv,name:()=>gv,parse:()=>Yp,structure:()=>yv});hv=38;gv="DeclarationList",yv={children:[["Declaration","Atrule","Rule"]]};Kp={};O(Kp,{generate:()=>vv,name:()=>Dv,parse:()=>Xp,structure:()=>wv});Dv="Dimension",wv={value:String,unit:String};Qp={};O(Qp,{generate:()=>Ev,name:()=>kv,parse:()=>ef,structure:()=>Fv,walkContext:()=>xv});kv="Function",xv="function",Fv={name:String,children:[[]]};tf={};O(tf,{generate:()=>Tv,name:()=>Cv,parse:()=>nf,structure:()=>Sv,xxx:()=>_v});_v="XXX",Cv="Hash",Sv={value:String};rf={};O(rf,{generate:()=>Pv,name:()=>Av,parse:()=>of,structure:()=>Ov});Av="Identifier",Ov={name:String};sf={};O(sf,{generate:()=>Bv,name:()=>Iv,parse:()=>af,structure:()=>jv});Iv="IdSelector",jv={name:String};lf={};O(lf,{generate:()=>Nv,name:()=>Lv,parse:()=>uf,structure:()=>Rv});Lv="MediaFeature",Rv={name:String,value:["Identifier","Number","Dimension","Ratio",null]};cf={};O(cf,{generate:()=>Wv,name:()=>Mv,parse:()=>df,structure:()=>$v});Mv="MediaQuery",$v={children:[["Identifier","MediaFeature","WhiteSpace"]]};pf={};O(pf,{generate:()=>Vv,name:()=>zv,parse:()=>ff,structure:()=>Uv});zv="MediaQueryList",Uv={children:[["MediaQuery"]]};mf={};O(mf,{generate:()=>Jv,name:()=>qv,parse:()=>hf,structure:()=>Hv});Gv=38,qv="NestingSelector",Hv={};gf={};O(gf,{generate:()=>Kv,name:()=>Zv,parse:()=>yf,structure:()=>Yv});Zv="Nth",Yv={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};bf={};O(bf,{generate:()=>ek,name:()=>Xv,parse:()=>Df,structure:()=>Qv});Xv="Number",Qv={value:String};wf={};O(wf,{generate:()=>rk,name:()=>tk,parse:()=>vf,structure:()=>nk});tk="Operator",nk={value:String};kf={};O(kf,{generate:()=>sk,name:()=>ok,parse:()=>xf,structure:()=>ik});ok="Parentheses",ik={children:[[]]};Ff={};O(Ff,{generate:()=>uk,name:()=>ak,parse:()=>Ef,structure:()=>lk});ak="Percentage",lk={value:String};_f={};O(_f,{generate:()=>fk,name:()=>ck,parse:()=>Cf,structure:()=>pk,walkContext:()=>dk});ck="PseudoClassSelector",dk="function",pk={name:String,children:[["Raw"],null]};Sf={};O(Sf,{generate:()=>yk,name:()=>mk,parse:()=>Tf,structure:()=>gk,walkContext:()=>hk});mk="PseudoElementSelector",hk="function",gk={name:String,children:[["Raw"],null]};Af={};O(Af,{generate:()=>kk,name:()=>wk,parse:()=>Of,structure:()=>vk});bk=47,Dk=46;wk="Ratio",vk={left:String,right:String};Pf={};O(Pf,{generate:()=>_k,name:()=>Fk,parse:()=>If,structure:()=>Ek});Fk="Raw",Ek={value:String};jf={};O(jf,{generate:()=>Ok,name:()=>Sk,parse:()=>Bf,structure:()=>Ak,walkContext:()=>Tk});Sk="Rule",Tk="rule",Ak={prelude:["SelectorList","Raw"],block:["Block"]};Lf={};O(Lf,{generate:()=>jk,name:()=>Pk,parse:()=>Rf,structure:()=>Ik});Pk="Selector",Ik={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};Nf={};O(Nf,{generate:()=>Nk,name:()=>Bk,parse:()=>Mf,structure:()=>Rk,walkContext:()=>Lk});Bk="SelectorList",Lk="selector",Rk={children:[["Selector","Raw"]]};$f={};O($f,{generate:()=>zk,name:()=>$k,parse:()=>Vf,structure:()=>Wk});Mk={};O(Mk,{decode:()=>Ka,encode:()=>Uf});Sa=92,Wf=34,zf=39;$k="String",Wk={value:String};Gf={};O(Gf,{generate:()=>Hk,name:()=>Vk,parse:()=>qf,structure:()=>qk,walkContext:()=>Gk});Uk=33;Vk="StyleSheet",Gk="stylesheet",qk={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};Hf={};O(Hf,{generate:()=>Kk,name:()=>Zk,parse:()=>Jf,structure:()=>Yk});Jk=42,Wd=124;Zk="TypeSelector",Yk={name:String};Zf={};O(Zf,{generate:()=>nx,name:()=>ex,parse:()=>Xf,structure:()=>tx});Yf=43,Kf=45,Ta=63;ex="UnicodeRange",tx={value:String};Qf={};O(Qf,{generate:()=>cx,name:()=>lx,parse:()=>rm,structure:()=>ux});rx={};O(rx,{decode:()=>tm,encode:()=>nm});ox=32,Aa=92,ix=34,sx=39,ax=40,em=41;lx="Url",ux={value:String};om={};O(om,{generate:()=>fx,name:()=>dx,parse:()=>im,structure:()=>px});dx="Value",px={children:[[]]};sm={};O(sm,{generate:()=>yx,name:()=>hx,parse:()=>am,structure:()=>gx});mx=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),hx="WhiteSpace",gx={value:String};bx={generic:!0,...rw,node:Ya},lm={};O(lm,{AtrulePrelude:()=>Fx,Selector:()=>Bx,Value:()=>Nx});Dx=35,wx=42,zd=43,vx=45,kx=47,xx=117;Fx={getNode:um},Ex=35,_x=38,Cx=42,Sx=43,Tx=47,Ud=46,Ax=62,Ox=124,Px=126;Bx={onWhiteSpace:Ix,getNode:jx};Nx={getNode:um,onWhiteSpace(e,t){Vd(e)&&(e.value=" "+e.value),Vd(t.last)&&(t.last.value+=" ")},expression:Lx,var:Rx},Mx={parse:{prelude:null,block(){return this.Block(!0)}}},$x={parse:{prelude(){let e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},Wx={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},zx={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Ux={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};qx={parse:{prelude(){let e=cm.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},Hx={"font-face":Mx,import:$x,media:Wx,nest:zx,page:Ux,supports:qx},Gt={parse(){return this.createSingleNodeList(this.SelectorList())}},ma={parse(){return this.createSingleNodeList(this.Selector())}},Gd={parse(){return this.createSingleNodeList(this.Identifier())}},Vo={parse(){return this.createSingleNodeList(this.Nth())}},Jx={dir:Gd,has:Gt,lang:Gd,matches:Gt,is:Gt,"-moz-any":Gt,"-webkit-any":Gt,where:Gt,not:Gt,"nth-child":Vo,"nth-last-child":Vo,"nth-last-of-type":Vo,"nth-of-type":Vo,slotted:ma,host:ma,"host-context":ma},dm={};O(dm,{AnPlusB:()=>xp,Atrule:()=>Ep,AtrulePrelude:()=>Cp,AttributeSelector:()=>Ap,Block:()=>Ip,Brackets:()=>Bp,CDC:()=>Rp,CDO:()=>Mp,ClassSelector:()=>Wp,Combinator:()=>Up,Comment:()=>Gp,Declaration:()=>Jp,DeclarationList:()=>Yp,Dimension:()=>Xp,Function:()=>ef,Hash:()=>nf,IdSelector:()=>af,Identifier:()=>of,MediaFeature:()=>uf,MediaQuery:()=>df,MediaQueryList:()=>ff,NestingSelector:()=>hf,Nth:()=>yf,Number:()=>Df,Operator:()=>vf,Parentheses:()=>xf,Percentage:()=>Ef,PseudoClassSelector:()=>Cf,PseudoElementSelector:()=>Tf,Ratio:()=>Of,Raw:()=>If,Rule:()=>Bf,Selector:()=>Rf,SelectorList:()=>Mf,String:()=>Vf,StyleSheet:()=>qf,TypeSelector:()=>Jf,UnicodeRange:()=>Xf,Url:()=>rm,Value:()=>im,WhiteSpace:()=>am});Zx={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:lm,atrule:Hx,pseudo:Jx,node:dm},Yx={node:Ya},Kx=nw({...bx,...Zx,...Yx}),Xx={};O(Xx,{decode:()=>Qx,encode:()=>e1});qd=92;({tokenize:yS,parse:pm,generate:fm,lexer:bS,createLexer:DS,walk:mm,find:wS,findLast:vS,findAll:kS,toPlainObject:xS,fromPlainObject:FS,fork:ES}=Kx)});function n1(e,t,n){let r=["ClassSelector","AttributeSelector","IdSelector","PseudoClassSelector"],o=["type"],i=["root"];if(e.type==="Rule"&&(e.prelude.type==="SelectorList"&&(e.prelude.children=new re().fromArray(e.prelude.children.toArray().filter(s=>{let a="children"in s?s.children?.first:null;return!a||!r.includes(a.type)?!1:a.type==="PseudoClassSelector"?i.includes(a.name):a.type==="AttributeSelector"?!o.includes(a.name.name):!0}))),e.prelude.children.toArray().length===0&&n)){n.remove(t);return}}function bm(e){if(d.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return gm("");let t=qs(e?.css,!0);try{let n=pm(t);mm(n,{enter:n1});let r=ym.default.format([fm(n),t1].join(`
48
49
 
49
- `).trim(),{parser:"css"});return vm(r)}catch{return oe.log(wn("There was a problem skipping global tags from CSS. Falling back to normal global CSS.")),e}}function Fm(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var km,i1,vm,Em=C(()=>{"use strict";wm();km=D(require("prettier"));Ys();U();Cr();i1=`
50
+ `).trim(),{parser:"css"});return gm(r)}catch{return d.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function Dm(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var ym,t1,gm,wm=C(()=>{"use strict";hm();ym=D(require("prettier"));Hs();U();t1=`
50
51
  .w-icon-slider-right:before {
51
52
  content: "\\e600";
52
53
  }
@@ -65,57 +66,57 @@ in your project root.`:a.message;oe.render({text:it(u)}),process.exit(1)}else th
65
66
  .w-icon-file-upload-icon:before {
66
67
  content: "\\e903";
67
68
  }
68
- `;vm=e=>({name:"global",css:{__bootflow:{rule:e}},module:!1})});function _m(e){if(e.status>=200&&e.status<300){switch(e.status){case 206:oe.log(wn("You exceeded the limit of components and some components were not exported."));break;case 207:oe.log(wn("Certain components couldn't be exported due to an unexpected error."));break}return}switch(e.status){case 400:throw new _t("Something unexpected happened. Report a bug here: https://airtable.com/shr47EWPVsV9xCwOH");case 401:throw new _t("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new _t("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new _t("Something went wrong. Try again later or report a bug here: https://airtable.com/shr47EWPVsV9xCwOH")}}async function a1(e){try{let{siteId:t,host:n,authToken:r,components:o,cssModules:i,relativeHrefRoot:s}=e,a=new URLSearchParams({cssModules:i?"true":"false"});o&&a.append("components",encodeURIComponent(o)),s!==void 0&&a.append("relativeHrefRoot",encodeURIComponent(String(s)));let u=`?${a.toString()}`,l=await(0,tl.default)(`${n}/devlink/${t}${u}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});_m(l);let c=await l.json();return c.components||c}catch(t){if(t instanceof _t)nl(t),process.exit(1);else throw t}}async function l1(e){try{let{siteId:t,host:n,authToken:r}=e,o=await(0,tl.default)(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return _m(o),await o.json()}catch(t){if(t instanceof _t)nl(t),process.exit(1);else throw t}}async function rl(e){let{rootDir:t}=e;oe.render({text:`Exporting components into ${e.rootDir}.`,showSpinner:!0,flushLogs:!0});try{let[n,r]=await Promise.all([a1(e),l1(e)]),o=r;if(e.skipTagSelectors===!0){let{rest:i,globalCss:s}=Fm(n),a=xm(s);o.push(...i,a)}else o.push(...n);await Qc(o,e),oe.render({text:He(`Successfully exported components into ${t} folder.`),flushLogs:!0})}catch(n){n instanceof Error&&(nl(n),await _n(e)(n))}}var tl,_t,nl,Cm=C(()=>{"use strict";tl=D(require("node-fetch"));U();Ys();Xs();Cr();Em();_t=class extends Error{constructor(t){super(t)}},nl=e=>oe.render({text:`${it("Something went wrong while trying to export your components:")} ${ne.red(e.message)}
69
- ${e?.stack}`})});var Sm={};Ml(Sm,{syncComponents:()=>ol});async function ol(e,t){let n=Date.now(),r=null,o=t?.apiToken||Wr.default.env.WEBFLOW_SITE_API_TOKEN,i=t?.site||Wr.default.env.WEBFLOW_SITE_ID,s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:No(e),overwriteModule:!1}:{overwriteModule:!0}};td(s);let a=await Mo(s);if(!a)return Wr.default.exit();let u=!1;try{r=qe.fromDevlinkConfig(a),u=await r.promptForConsentIfNeeded();let l=u?"Telemetry enabled - usage data will be collected":"Telemetry disabled - no usage data will be collected";oe.log(He(l))}catch{oe.log(He("Telemetry unavailable - continuing without usage tracking"))}if(r&&u)try{await r.sendUsage("devlink_sync_start",!0,void 0,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot})}catch(l){console.debug("Failed to send telemetry start event:",l)}try{if(await rl({...a,allowTelemetry:u}),r&&u)try{let l=Date.now()-n;await r.sendUsage("devlink_sync_success",!0,l,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,performanceMetrics:{totalDuration:l,operation:"devlink_sync"}})}catch(l){console.debug("Failed to send telemetry success events:",l)}}catch(l){if(r&&u)try{let c=Date.now()-n;await r.sendUsage("devlink_sync_failure",!1,c,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,errorType:l instanceof Error?l.name:"unknown",performanceMetrics:{totalDuration:c,operation:"devlink_sync"}}),await r.sendError(l instanceof Error?l:new Error(String(l)),"devlink_sync",{specificComponents:e&&e.length>0,componentCount:e?.length||0,configOverrides:Object.keys(s),argv:Wr.default.argv.slice(2)})}catch(c){console.debug("Failed to send telemetry failure events:",c)}throw l}}var Wr,il=C(()=>{"use strict";Wr=D(require("process"));$o();Cm();Xs();yn();Cr();U()});var Rg=require("commander");U();var Xu=require("child_process"),Qu=require("fs"),Ts=D(require("semver"));U();var As="@webflow/webflow-cli",Mt="@webflow/data-types",ko="@webflow/react",Hy=[As,Mt,ko],$t=class{getInstalledDependencies(){try{let t=(0,Xu.execSync)(`npm ls ${Hy.join(" ")} --depth=0 --json --silent`,{encoding:"utf-8"}),n=JSON.parse(t);return n.dependencies?Object.entries(n.dependencies).reduce((r,[o,{version:i}])=>(r[o]=i,r),{}):{}}catch(t){return p.debug(`Failed to get installed dependencies: ${t}`),{}}}getRequiredDependencies(t){let n=JSON.parse((0,Qu.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Mt];if(!n)return;let o=this.getRequiredDependencies(As)[Mt];if(!Ts.default.satisfies(n,o))throw new Error(`Version mismatch: ${As} requires ${Mt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Mt],r=t[ko];if(!(!n||!r)&&!Ts.default.eq(n,r))throw new Error(`Version mismatch: ${ko} and ${Mt} must be on the same version. Found ${ko}@${r} and ${Mt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var rc=require("fs-extra");Re();var oc=require("@dotenvx/dotenvx");U();var ec=require("child_process"),tc=require("util"),Jy=(0,tc.promisify)(ec.exec);async function hr(e,t){try{let{stdout:n,stderr:r}=await Jy(e,t);return{stdout:n.toString().trim(),stderr:r.toString().trim(),code:0}}catch(n){return{stdout:n.stdout??"",stderr:n.stderr??String(n.message??""),code:n.code??1}}}be();(0,oc.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var nc={npm:{updateCommand:"npm install",update:async e=>await hr(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await hr(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await hr(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await hr(`pnpm outdated --json ${e}`);return JSON.parse(t)},lockFile:"pnpm-lock.yaml",globalFlag:"--global",supported:!0},yarn:{lockFile:"yarn.lock",globalFlag:"",updateCommand:"",getOutdated:async()=>({}),update:async()=>({}),supported:!1}},Zy=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],gr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(nc))if((0,rc.existsSync)(t.lockFile))return t;return nc.npm}async listOutdatedPackages(t="local",n=Zy){let{getOutdated:r,globalFlag:o}=this.packageManager,i=await r(`${t==="global"?o:""} ${n?.join(" ")}`);return Object.fromEntries(Object.entries(i).map(([s,a])=>Array.isArray(a)?[s,{current:a[0].current,latest:a[0].latest,installationType:t}]:[s,{current:a.current,latest:a.latest,installationType:t}]))}async getOutdatedPackages(){let t=await this.listOutdatedPackages();if(t["@webflow/webflow-cli"])return t;let n=await this.listOutdatedPackages("global",["@webflow/webflow-cli"]);return{...t,...n}}async showUpdatePrompt(t){if(Object.keys(t).length>1){let r=await ho({message:"New versions of the following @webflow packages are available. Would you like to upgrade?",choices:Object.entries(t).map(([o,{current:i,latest:s}])=>({name:`${o} (${i} \u2192 ${s})`,value:o}))});return r??[]}else{let[[r,{current:o,latest:i}]]=Object.entries(t);return await pe({message:`A new version of ${r} (${o} \u2192 ${i}) is available. Would you like to update?`,default:!1})?[r]:[]}}showUpdateSuggestions(t){let n=Object.keys(t).length>1,{updateCommand:r,globalFlag:o}=this.packageManager;if(n){console.log(`
69
+ `;gm=e=>({name:"global",css:{__bootflow:{rule:e}},module:!1})});function vm(e){if(e.status>=200&&e.status<300){switch(e.status){case 206:d.warn("You exceeded the limit of components and some components were not exported.");break;case 207:d.warn("Certain components couldn't be exported due to an unexpected error.");break}return}switch(e.status){case 400:throw new Et("Something unexpected happened. Report a bug here: https://airtable.com/shr47EWPVsV9xCwOH");case 401:throw new Et("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new Et("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new Et("Something went wrong. Try again later or report a bug here: https://airtable.com/shr47EWPVsV9xCwOH")}}async function r1(e){try{let{siteId:t,host:n,authToken:r,components:o,cssModules:i,relativeHrefRoot:s}=e,a=new URLSearchParams({cssModules:i?"true":"false"});o&&a.append("components",o),s!==void 0&&a.append("relativeHrefRoot",String(s));let u=`?${a.toString()}`,l=await Ne(`${n}/devlink/${t}${u}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});vm(l);let c=await l.json();return c.components||c}catch(t){if(t instanceof Et)Xa(t),process.exit(1);else throw t}}async function o1(e){try{let{siteId:t,host:n,authToken:r}=e,o=await Ne(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return vm(o),await o.json()}catch(t){if(t instanceof Et)Xa(t),process.exit(1);else throw t}}async function Qa(e){try{let[t,n]=await Promise.all([r1(e),o1(e)]),r=n;if(e.skipTagSelectors===!0){let{rest:o,globalCss:i}=Dm(t),s=bm(i);r.push(...o,s)}else r.push(...t);await Jc(r,e)}catch(t){t instanceof Error&&(Xa(t),await En(e)(t))}}var Et,Xa,km=C(()=>{"use strict";U();Hs();Zs();wm();Dn();Et=class extends Error{constructor(t){super(t)}},Xa=e=>{d.error(`Something went wrong while trying to export your components: ${e.message}
70
+ ${e?.stack}`)}});var xm={};Bl(xm,{syncComponents:()=>el});async function el(e,t){let n=Date.now(),r=null,o=t?.apiToken||Wr.default.env.WEBFLOW_SITE_API_TOKEN,i=t?.site||Wr.default.env.WEBFLOW_SITE_ID,s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:Bo(e),overwriteModule:!1}:{overwriteModule:!0},addIndexFile:!0};Yc(s);let a=await Lo(s);if(!a)return Wr.default.exit();let u=!1;try{r=qe.fromDevlinkConfig(a),u=await r.promptForConsentIfNeeded();let l=u?"Telemetry enabled - usage data will be collected":"Telemetry disabled - no usage data will be collected";d.info(l)}catch{d.info("Telemetry unavailable - continuing without usage tracking")}if(r&&u)try{await r.sendUsage("devlink_sync_start",!0,void 0,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot})}catch(l){console.debug("Failed to send telemetry start event:",l)}try{let l=d.spinner(`Exporting components into ${a.rootDir}`);if(await Qa({...a,allowTelemetry:u}),l.succeed(`Successfully exported components into ${a.rootDir} folder`),r&&u)try{let c=Date.now()-n;await r.sendUsage("devlink_sync_success",!0,c,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,performanceMetrics:{totalDuration:c,operation:"devlink_sync"}})}catch(c){console.debug("Failed to send telemetry success events:",c)}}catch(l){if(r&&u)try{let c=Date.now()-n;await r.sendUsage("devlink_sync_failure",!1,c,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,errorType:l instanceof Error?l.name:"unknown",performanceMetrics:{totalDuration:c,operation:"devlink_sync"}}),await r.sendError(l instanceof Error?l:new Error(String(l)),"devlink_sync",{specificComponents:e&&e.length>0,componentCount:e?.length||0,configOverrides:Object.keys(s),argv:Wr.default.argv.slice(2)})}catch(c){console.debug("Failed to send telemetry failure events:",c)}throw l}}var Wr,tl=C(()=>{"use strict";Wr=D(require("process"));Ro();km();Zs();Rt();U()});var Og=require("commander");U();var Ju=require("child_process"),Zu=require("fs"),_s=D(require("semver"));U();var Cs="@webflow/webflow-cli",Mt="@webflow/data-types",vo="@webflow/react",Vy=[Cs,Mt,vo],$t=class{getInstalledDependencies(){try{let t=(0,Ju.execSync)(`npm ls ${Vy.join(" ")} --depth=0 --json --silent`,{encoding:"utf-8"}),n=JSON.parse(t);return n.dependencies?Object.entries(n.dependencies).reduce((r,[o,{version:i}])=>(r[o]=i,r),{}):{}}catch(t){return d.debug(`Failed to get installed dependencies: ${t}`),{}}}getRequiredDependencies(t){let n=JSON.parse((0,Zu.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Mt];if(!n)return;let o=this.getRequiredDependencies(Cs)[Mt];if(!_s.default.satisfies(n,o))throw new Error(`Version mismatch: ${Cs} requires ${Mt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Mt],r=t[vo];if(!(!n||!r)&&!_s.default.eq(n,r))throw new Error(`Version mismatch: ${vo} and ${Mt} must be on the same version. Found ${vo}@${r} and ${Mt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var Qu=require("fs-extra");Le();var ec=require("@dotenvx/dotenvx");U();var Yu=require("child_process"),Ku=require("util"),Gy=(0,Ku.promisify)(Yu.exec);async function mr(e,t){try{let{stdout:n,stderr:r}=await Gy(e,t);return{stdout:n.toString().trim(),stderr:r.toString().trim(),code:0}}catch(n){return{stdout:n.stdout??"",stderr:n.stderr??String(n.message??""),code:n.code??1}}}de();(0,ec.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var Xu={npm:{updateCommand:"npm install",update:async e=>await mr(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await mr(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await mr(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await mr(`pnpm outdated --json ${e}`);return JSON.parse(t)},lockFile:"pnpm-lock.yaml",globalFlag:"--global",supported:!0},yarn:{lockFile:"yarn.lock",globalFlag:"",updateCommand:"",getOutdated:async()=>({}),update:async()=>({}),supported:!1}},qy=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],hr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(Xu))if((0,Qu.existsSync)(t.lockFile))return t;return Xu.npm}async listOutdatedPackages(t="local",n=qy){let{getOutdated:r,globalFlag:o}=this.packageManager,i=await r(`${t==="global"?o:""} ${n?.join(" ")}`);return Object.fromEntries(Object.entries(i).map(([s,a])=>Array.isArray(a)?[s,{current:a[0].current,latest:a[0].latest,installationType:t}]:[s,{current:a.current,latest:a.latest,installationType:t}]))}async getOutdatedPackages(){let t=await this.listOutdatedPackages();if(t["@webflow/webflow-cli"])return t;let n=await this.listOutdatedPackages("global",["@webflow/webflow-cli"]);return{...t,...n}}async showUpdatePrompt(t){if(Object.keys(t).length>1){let r=await mo({message:"New versions of the following @webflow packages are available. Would you like to update?",choices:Object.entries(t).map(([o,{current:i,latest:s}])=>({name:`${o} (${i} \u2192 ${s})`,value:o}))});return r??[]}else{let[[r,{current:o,latest:i}]]=Object.entries(t);return await pe({message:`A new version of ${r} (${o} \u2192 ${i}) is available. Would you like to update?`,default:!1})?[r]:[]}}showUpdateSuggestions(t){let n=Object.keys(t).length>1,{updateCommand:r,globalFlag:o}=this.packageManager;if(n){console.log(`
70
71
  New versions of the following @webflow packages are available:`),Object.entries(t).forEach(([a,{current:u,latest:l}])=>{console.log(` ${a} (${u} \u2192 ${l})`)});let i=Object.entries(t).filter(([,{installationType:a}])=>a==="local").map(([a])=>`${a}@latest`),s=Object.entries(t).filter(([,{installationType:a}])=>a==="global").map(([a])=>`${a}@latest`);console.log(`
71
72
  To update, run:`),i.length>0&&console.log(` ${r} ${i.join(" ")}`),s.length>0&&console.log(` ${r} ${o} ${s.join(" ")}`)}else{let[[i,{current:s,latest:a,installationType:u}]]=Object.entries(t);console.log(`
72
- A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=u==="global"?` ${o}`:"";console.log(`To update, run: ${r}${l} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}async prompt(){if(this.shouldSkipUpdateChecks())return;let t;try{t=p.spinner("Checking for updates. To disable update checks, use WEBFLOW_SKIP_UPDATE_CHECKS=true");let n=await this.getOutdatedPackages();if(!(Object.keys(n).length>0)){t.succeed("All webflow packages are updated. To disable update checks, use WEBFLOW_SKIP_UPDATE_CHECKS=true");return}if(t.succeed(),!process.stdin.isTTY||re()){this.showUpdateSuggestions(n);return}let i=await this.showUpdatePrompt(n);if(i.length>0){t=p.spinner("Updating");let{local:s,global:a}=i.reduce((d,f)=>(d[n[f].installationType==="global"?"global":"local"].push(f),d),{local:[],global:[]}),{update:u,globalFlag:l,updateCommand:c}=this.packageManager;try{s.length>0&&await u(`${s.map(d=>`${d}@latest`).join(" ")}`),a.length>0&&await u(`${l} ${a.map(d=>`${d}@latest`).join(" ")}`),t.succeed("Updated successfully. To disable update checks, use WEBFLOW_SKIP_UPDATE_CHECKS=true")}catch{t.fail(`Update failed. Manually run: ${c} ${i.map(f=>`${f}@latest`).join(" ")}`)}}}catch(n){t?.fail("Failed to check for updates"),p.debug(n)}}};be();_s();Re();Re();var xr=require("webflow-api");fe();var wr={serverUrl:vn,timeoutMs:5*60*1e3};var ac=require("crypto"),lc=D(require("open"));U();var uc=e=>{let t=new Uint8Array(e);return ac.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},cc=({pollId:e,clientId:t,scope:n})=>`${wr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,Yy=e=>`${wr.serverUrl}/oauth/webflow/poll?pollId=${e}`,dc=async e=>{let t=p.spinner("Opening browser for authentication. Please follow the instructions in your browser");try{await new Promise(n=>setTimeout(n,3e3)),await(0,lc.default)(e),t.succeed()}catch{t.fail(),p.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},Ky=async e=>{let t=Yy(e),n=await fetch(t);if(!n.ok){let r=`Failed to poll for authentication status (${n.status})`;try{let o=await n.json();o&&o.error&&(r+=`: ${o.error}`)}catch{}throw new Error(r)}return n.json()},pc=(e,t)=>{let n=p.spinner("Waiting for authentication");return new Promise((r,o)=>{let i=setTimeout(()=>{clearTimeout(i),clearInterval(s),o(new Error("Authentication timed out. Please try again."))},t),s=setInterval(async()=>{try{let a=await Ky(e);a.status==="success"&&a.accessToken?(clearTimeout(i),clearInterval(s),n.succeed("Authentication successful! You can close the browser window."),r(a.accessToken)):a.status==="error"&&(clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(new Error(a.error||"Authentication failed")))}catch(a){clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(a instanceof Error?a:new Error(String(a)))}},2e3)})};U();fe();fe();var Wt=D(require("fs")),kr=D(require("path")),vr=D(require("@dotenvx/dotenvx"));function kn({siteId:e,siteApiToken:t,workspaceApiToken:n,directory:r}){let o=kr.resolve(r?kr.join(r,".env"):kr.join(process.cwd(),".env"));r&&!Wt.existsSync(r)&&Wt.mkdirSync(r,{recursive:!0}),Wt.existsSync(o)||Wt.writeFileSync(o,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),vr.default.config({path:o,quiet:!0}),e&&vr.default.set("WEBFLOW_SITE_ID",e,{path:o,encrypt:!1}),t&&vr.default.set("WEBFLOW_SITE_API_TOKEN",t,{path:o,encrypt:!1}),n&&vr.default.set("WEBFLOW_WORKSPACE_API_TOKEN",n,{path:o,encrypt:!1})}async function xn({clientId:e,scope:t}){let n=uc(16);try{let r=cc({pollId:n,clientId:e,scope:t});return await dc(r),await pc(n,wr.timeoutMs)}catch(r){throw r instanceof Error?r:new Error(String(r))}}async function Fo(e){try{let n=await new xr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${st}/v2`,production:`${Z}/v2`,cdn:`${st}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new Error("Invalid response from Webflow API");return n.sites.map(r=>({id:r.id,displayName:r.displayName,shortName:r.shortName||r.displayName.toLowerCase().replace(/\s+/g,"-")}))}catch(t){throw p.error(`Error fetching Webflow sites: ${t}`),new Error("Failed to fetch Webflow sites. Please check your authorization.")}}async function Fr(e,t){try{let r=await new xr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${st}/v2`,production:`${Z}/v2`,cdn:`${st}/v2`}}).sites.get(t);return{id:r.id||t,displayName:r.displayName||"Unknown Site",shortName:r.shortName||"unknown-site",customDomains:r.customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw p.error(`Error fetching site details: ${n}`),new Error("Failed to fetch site details from Webflow API")}}async function Is(e,t){try{return{customDomains:(await new xr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${st}/v2`,production:`${Z}/v2`,cdn:`${st}/v2`}}).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw p.error(`Error fetching custom domains ${n}`),new Error("Failed to fetch custom domains from Webflow API")}}async function js(e){try{let t=await fetch(`https://${e}/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);return await t.json()}catch(t){throw p.debug(`Failed to fetch manifest ${t}`),new Error(`Failed to fetch manifest from ${e}: ${t}`)}}function Bs(e,t,n){return e.cosmic&&Array.isArray(e.cosmic)?e.cosmic.some(r=>{if(r.mountPath!==t)return!1;if(!n)return!0;if(r.workerUrl)try{return new URL(r.workerUrl).hostname.split(".")[0]===n}catch{return!1}return!1}):!1}async function fc(e,t,n){try{let r=new xr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${st}/v2`,production:`${Z}/v2`,cdn:`${st}/v2`}}),o=await Fr(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(u=>u.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw p.error(`Error publishing site ${r}`),new Error("Failed to publish site to Webflow")}}async function Eo(e){let t=await Fe({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});return t||(console.warn("Auto fallback to first site:",e[0].displayName),e[0])}yn();U();var _o=process.env.BUILD_ENV==="development"?"530671685bda4c7d91b2b585af9aeb3b334eda3671d2ecead5a70a3b40b9dc3b":process.env.BUILD_ENV==="acceptance"?"200cb5422ea55f7dc5e60d138ca781b7e2e2a55966e2955c537fcc4fdadcdb2e":"4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",Co=["sites:read","sites:write","authorized_user:read"];function Ls(){let e=process.env.WEBFLOW_SITE_ID,t=process.env.WEBFLOW_SITE_API_TOKEN;return e&&t?{siteId:e,accessToken:t}:null}function Ne(){let e=Ls();return e||(p.error("Error: Missing required environment variables:"),p.error("- WEBFLOW_SITE_ID"),p.error("- WEBFLOW_SITE_API_TOKEN"),p.error(`
73
- To set up your credentials, run:`),p.error(" webflow auth login"),p.error(`
74
- Alternatively, you can manually set these environment variables.`),process.exit(1)),e}be();var mc=e=>{let t=e.command("auth").description("Authentication and configuration commands");t.command("login").description("Authenticate with Webflow and save credentials to .env file").option("-f, --force","Force reauthentication even if credentials exist").action(async n=>{try{let r=Ls();if(!n.force&&r){console.log("\u2705 Webflow credentials already exist in .env file:"),r.siteId&&console.log(` Site ID: ${r.siteId}`),console.log(" API Token: [hidden]"),console.log(`
75
- Use --force flag to reauthenticate anyway.`);return}if(re()){console.log("\u274C No-input mode enabled. Aborting OAuth authentication.");return}console.log("\u{1F510} Starting Webflow authentication...");let o=await xn({clientId:_o,scope:Co});console.log("\u2705 Authentication successful!"),console.log("\u{1F4E1} Fetching your Webflow sites...");let i=await Fo(o);i.length===0&&(console.error("\u274C No Webflow sites found in your account."),console.error("Please make sure you have at least one site in your Webflow account."),process.exit(1)),console.log(`Found ${i.length} site${i.length>1?"s":""} in your account.`);let s=await Eo(i);console.log("\u{1F4BE} Saving credentials..."),kn({siteId:s.id,siteApiToken:o}),console.log(`
76
- \u{1F389} Authentication complete!`),console.log(`\u2705 Connected to site: ${s.displayName}`),console.log(`\u2705 Site ID: ${s.id}`),console.log("\u2705 Credentials saved to .env file"),console.log(`
77
- You can now use other Webflow CLI commands like 'webflow devlink sync'`)}catch(r){console.error("\u274C Authentication failed:"),console.error(r instanceof Error?r.message:r),process.exit(1)}}),t.command("telemetry").description("Manage telemetry settings for all Webflow CLI commands").option("--enable","Enable telemetry for all commands").option("--disable","Disable telemetry for all commands").option("--status","Show current telemetry status").action(async n=>{let r=Nt.getInstance();if(n.status){let s=await r.getTelemetryStatus();console.log(`
78
- \u{1F4CA} Telemetry Status:`),console.log(` Enabled: ${s.enabled?"\u2705 Yes":"\u274C No"}`),console.log(` Source: ${s.source}`),console.log(` Has Preference: ${s.hasPreference?"\u2705 Yes":"\u274C No"}`);return}if(n.enable){await r.setGlobalPreference(!0),console.log("\u2705 Telemetry enabled for all Webflow CLI commands");return}if(n.disable){await r.setGlobalPreference(!1),console.log("\u274C Telemetry disabled for all Webflow CLI commands");return}let o=await r.getTelemetryStatus();if(console.log(`
79
- \u{1F4CA} Current Telemetry Status:`),console.log(` Enabled: ${o.enabled?"\u2705 Yes":"\u274C No"}`),console.log(` Source: ${o.source}`),re()){console.log("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option.");return}let i=await Fe({message:"What would you like to do?",choices:[{name:"Enable telemetry for all commands",value:"enable"},{name:"Disable telemetry for all commands",value:"disable"},{name:"Cancel",value:"cancel"}]});i==="enable"?(await r.setGlobalPreference(!0),console.log("\u2705 Telemetry enabled for all Webflow CLI commands")):i==="disable"&&(await r.setGlobalPreference(!1),console.log("\u274C Telemetry disabled for all Webflow CLI commands"))})};var Bc=D(require("http")),Lc=D(require("node-fetch")),Rc=D(require("serve-handler")),Nc=require("fs"),Mc=D(require("path")),$c=require("commander");var gc=D(require("archiver")),Ns=require("commander"),Ao=require("fs");var hc=require("cosmiconfig"),Rs=require("commander"),So=async(e,t)=>{let n=await Xy(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Rs.program.error('Error: The apiVersion field in webflow.json must be a string (i.e. "apiVersion": "2").'),{filepath:n.filepath,config:{publicDir:e,...n.config}}},Xy=async e=>{let n=await(0,hc.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Rs.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var yc=D(require("mime-types")),To=D(require("path")),Qy=5*1024*1024,eb=new Set(["application/javascript","application/json","application/xml","image/png","image/jpeg","image/gif","image/svg+xml","image/webp","image/vnd.microsoft.icon","image/x-icon","video/webm","font/ttf","font/otf","font/woff","font/woff2","text/plain","text/markdown","text/html","text/css"]),bc=async(e,t,n)=>{let{config:r,filepath:o}=await So(e,t),i=To.join(o,".."),s=!0,a=!1,u=c=>{let d=c.name,f=yc.default.lookup(d);return d==="index.html"&&(a=!0),d&&d.endsWith(".DS_Store")||!f?!1:eb.has(f)?c:(console.log(`Invalid file type: ${f} for file: ${d}`),s=!1,!1)},l=c=>{(0,Ao.unlink)(n,d=>{d&&console.error(`Failed to delete file: ${d}`),Ns.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let d=(0,gc.default)("zip",{zlib:{level:9}}),f=(0,Ao.createWriteStream)(To.join(i,n));f.on("close",()=>{c(void 0)}),d.directory(To.join(i,r.publicDir),!1,u),d.file(o,{name:t}),d.pipe(f),d.finalize(),d.on("warning",m=>{console.log(m)}),d.on("error",m=>{Ns.program.error(m.message)}),d.on("finish",()=>{if(!a){l("Could not find index.html in your `publicDir`, all Designer Extension code needs to be inside of `publicDir`");return}if(!s){l("Bundling failed due to invalid file types");return}if(!d.pointer()||d.pointer()===0){l("Bundling failed with no output");return}if(d.pointer()>=Qy){l("Bundling failed due to the bundle exceeding 5MB");return}console.log(`${d.pointer()} total bytes written`),console.log(`Done! ${n} is ready for you to upload to your Webflow app.`)})})};jo();var wt=D(require("fs")),_e=D(require("path"));var _r="webflow.json",Ec="index.html",_c="bundle.zip",zs="public",Us="extension-scaffolds",Bo="default",Cc="./";var Sc="package.json",Tc="wf-placeholder-name",Vs=e=>JSON.stringify(e,null,2),Ac=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
73
+ A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=u==="global"?` ${o}`:"";console.log(`To update, run: ${r}${l} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}async prompt(){if(this.shouldSkipUpdateChecks())return;let t;try{t=d.spinner("Checking for updates (to disable, use WEBFLOW_SKIP_UPDATE_CHECKS=true)");let n=await this.getOutdatedPackages();if(!(Object.keys(n).length>0)){t.succeed("All @webflow packages are up to date");return}if(t.succeed(),!process.stdin.isTTY||ne()){this.showUpdateSuggestions(n);return}let i=await this.showUpdatePrompt(n);if(i.length>0){t=d.spinner("Updating");let{local:s,global:a}=i.reduce((p,f)=>(p[n[f].installationType==="global"?"global":"local"].push(f),p),{local:[],global:[]}),{update:u,globalFlag:l,updateCommand:c}=this.packageManager;try{s.length>0&&await u(`${s.map(p=>`${p}@latest`).join(" ")}`),a.length>0&&await u(`${l} ${a.map(p=>`${p}@latest`).join(" ")}`),t.succeed("Updated successfully")}catch{t.fail(`Update failed. Manually run: ${c} ${i.map(f=>`${f}@latest`).join(" ")}`)}}}catch(n){t?.fail("Failed to check for updates"),d.debug(n)}}};de();xs();Le();Le();var kr=require("webflow-api");fe();var Dr={serverUrl:kn,timeoutMs:5*60*1e3};var rc=require("crypto"),oc=D(require("open"));U();Dn();var ic=e=>{let t=new Uint8Array(e);return rc.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},sc=({pollId:e,clientId:t,scope:n})=>`${Dr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,Hy=e=>`${Dr.serverUrl}/oauth/webflow/poll?pollId=${e}`,ac=async e=>{let t=d.spinner("Opening browser for authentication. Please follow the instructions in your browser");try{await new Promise(n=>setTimeout(n,3e3)),await(0,oc.default)(e),t.succeed()}catch{t.fail(),d.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},Jy=async e=>{let t=Hy(e),n=await Ne(t);if(!n.ok){let r=`Failed to poll for authentication status (${n.status})`;try{let o=await n.json();o&&o.error&&(r+=`: ${o.error}`)}catch{}throw new Error(r)}return n.json()},lc=(e,t)=>{let n=d.spinner("Waiting for authentication");return new Promise((r,o)=>{let i=setTimeout(()=>{clearTimeout(i),clearInterval(s),o(new Error("Authentication timed out. Please try again."))},t),s=setInterval(async()=>{try{let a=await Jy(e);a.status==="success"&&a.accessToken?(clearTimeout(i),clearInterval(s),n.succeed("Authentication successful! You can close the browser window."),r(a.accessToken)):a.status==="error"&&(clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(new Error(a.error||"Authentication failed")))}catch(a){clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(a instanceof Error?a:new Error(String(a)))}},2e3)})};U();fe();fe();var Wt=D(require("fs")),vr=D(require("path")),wr=D(require("@dotenvx/dotenvx"));function zt({siteId:e,siteApiToken:t,workspaceApiToken:n,directory:r}){let o=vr.resolve(r?vr.join(r,".env"):vr.join(process.cwd(),".env"));r&&!Wt.existsSync(r)&&Wt.mkdirSync(r,{recursive:!0}),Wt.existsSync(o)||Wt.writeFileSync(o,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),wr.default.config({path:o,quiet:!0}),e&&wr.default.set("WEBFLOW_SITE_ID",e,{path:o,encrypt:!1}),t&&wr.default.set("WEBFLOW_SITE_API_TOKEN",t,{path:o,encrypt:!1}),n&&wr.default.set("WEBFLOW_WORKSPACE_API_TOKEN",n,{path:o,encrypt:!1})}async function Ut({clientId:e,scope:t}){let n=ic(16);try{let r=sc({pollId:n,clientId:e,scope:t});return await ac(r),await lc(n,Dr.timeoutMs)}catch(r){throw r instanceof Error?r:new Error(String(r))}}async function xr(e){try{let n=await new kr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${Z}/v2`,cdn:`${ot}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new Error("Invalid response from Webflow API");return n.sites.map(r=>({id:r.id,displayName:r.displayName,shortName:r.shortName||r.displayName.toLowerCase().replace(/\s+/g,"-")}))}catch{throw new Error("Failed to fetch Webflow sites. Please check your authorization.")}}async function Fr(e,t){try{let r=await new kr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${Z}/v2`,cdn:`${ot}/v2`}}).sites.get(t);return{id:r.id||t,displayName:r.displayName||"Unknown Site",shortName:r.shortName||"unknown-site",customDomains:r.customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw d.error(`Error fetching site details: ${n}`),new Error("Failed to fetch site details from Webflow API")}}async function As(e,t){try{return{customDomains:(await new kr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${Z}/v2`,cdn:`${ot}/v2`}}).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw d.error(`Error fetching custom domains ${n}`),new Error("Failed to fetch custom domains from Webflow API")}}async function Os(e){try{let t=await fetch(`https://${e}/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);return await t.json()}catch(t){throw d.debug(`Failed to fetch manifest ${t}`),new Error(`Failed to fetch manifest from ${e}: ${t}`)}}function Ps(e,t,n){return e.cosmic&&Array.isArray(e.cosmic)?e.cosmic.some(r=>{if(r.mountPath!==t)return!1;if(!n)return!0;if(r.workerUrl)try{return new URL(r.workerUrl).hostname.split(".")[0]===n}catch{return!1}return!1}):!1}async function uc(e,t,n){try{let r=new kr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${Z}/v2`,cdn:`${ot}/v2`}}),o=await Fr(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(u=>u.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw d.error(`Error publishing site ${r}`),new Error("Failed to publish site to Webflow")}}async function Er(e){let t=await xe({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});return t||(console.warn("Auto fallback to first site:",e[0].displayName),e[0])}Rt();U();Re();de();var xo="4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",Fo=["sites:read","sites:write","authorized_user:read"];function Is(){let e=process.env.WEBFLOW_SITE_ID,t=process.env.WEBFLOW_SITE_API_TOKEN;return e&&t?{siteId:e,accessToken:t}:null}function Me(){let e=Is();return e||(d.error("Error: Missing required environment variables:"),d.error("- WEBFLOW_SITE_ID"),d.error("- WEBFLOW_SITE_API_TOKEN"),d.error(`
74
+ To set up your credentials, run:`),d.error(" webflow auth login"),d.error(`
75
+ Alternatively, you can manually set these environment variables.`),process.exit(1)),e}de();Re();U();var cc=e=>{let t=e.command("auth").description("Authentication and configuration commands");t.command("login").description("Authenticate with Webflow and save credentials to .env file").option("-f, --force","Force reauthentication even if credentials exist").action(async n=>{try{let r=Is();if(!n.force&&r){d.info("\u2705 Webflow credentials already exist in .env file:"),r.siteId&&d.info(` Site ID: ${r.siteId}`),d.info(" API Token: [hidden]"),d.info(`
76
+ Use --force flag to reauthenticate anyway`);return}if(ne()){d.info("\u274C No-input mode enabled. Aborting OAuth authentication");return}d.info("\u{1F510} Starting Webflow authentication...");let o=await Ut({clientId:xo,scope:Fo});d.info("\u2705 Authentication successful!"),d.info("\u{1F4E1} Fetching your Webflow sites...");let i=await xr(o);i.length===0&&(d.error("\u274C No Webflow sites found in your account"),d.error("Please make sure you have at least one site in your Webflow account"),process.exit(1)),d.info(`Found ${i.length} site${i.length>1?"s":""} in your account`);let s=await Er(i);d.info("\u{1F4BE} Saving credentials..."),zt({siteId:s.id,siteApiToken:o}),ae({siteId:s.id}),d.info(`
77
+ \u{1F389} Authentication complete!`),d.info(`\u2705 Connected to site: ${s.displayName}`),d.info(`\u2705 Site ID: ${s.id}`),d.info("\u2705 Credentials saved to .env file"),d.info(`
78
+ You can now use other Webflow CLI commands like 'webflow devlink sync'`)}catch(r){d.error("\u274C Authentication failed:",r instanceof Error?r.message:r),process.exit(1)}}),t.command("telemetry").description("Manage telemetry settings for all Webflow CLI commands").option("--enable","Enable telemetry for all commands").option("--disable","Disable telemetry for all commands").option("--status","Show current telemetry status").action(async n=>{let r=Lt.getInstance();if(n.status){let s=await r.getTelemetryStatus();d.info(`
79
+ \u{1F4CA} Telemetry Status:`),d.info(` Enabled: ${s.enabled?"\u2705 Yes":"\u274C No"}`),d.info(` Source: ${s.source}`),d.info(` Has Preference: ${s.hasPreference?"\u2705 Yes":"\u274C No"}`);return}if(n.enable){await r.setGlobalPreference(!0),d.info("\u2705 Telemetry enabled for all Webflow CLI commands");return}if(n.disable){await r.setGlobalPreference(!1),d.info("\u274C Telemetry disabled for all Webflow CLI commands");return}let o=await r.getTelemetryStatus();if(d.info(`
80
+ \u{1F4CA} Current Telemetry Status:`),d.info(` Enabled: ${o.enabled?"\u2705 Yes":"\u274C No"}`),d.info(` Source: ${o.source}`),ne()){d.info("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option");return}let i=await xe({message:"What would you like to do?",choices:[{name:"Enable telemetry for all commands",value:"enable"},{name:"Disable telemetry for all commands",value:"disable"},{name:"Cancel",value:"cancel"}]});i==="enable"?(await r.setGlobalPreference(!0),d.info("\u2705 Telemetry enabled for all Webflow CLI commands")):i==="disable"&&(await r.setGlobalPreference(!1),d.info("\u274C Telemetry disabled for all Webflow CLI commands"))})};var Oc=D(require("http")),Pc=D(require("node-fetch")),Ic=D(require("serve-handler")),jc=require("fs"),Bc=D(require("path")),Lc=require("commander");var pc=D(require("archiver")),Bs=require("commander"),Co=require("fs");var dc=require("cosmiconfig"),js=require("commander"),Eo=async(e,t)=>{let n=await Zy(t),r=n.config.apiVersion;return r&&typeof r!="string"&&js.program.error('Error: The apiVersion field in webflow.json must be a string (i.e. "apiVersion": "2").'),{filepath:n.filepath,config:{publicDir:e,...n.config}}},Zy=async e=>{let n=await(0,dc.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||js.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var fc=D(require("mime-types")),_o=D(require("path")),Yy=5*1024*1024,Ky=new Set(["application/javascript","application/json","application/xml","image/png","image/jpeg","image/gif","image/svg+xml","image/webp","image/vnd.microsoft.icon","image/x-icon","video/webm","font/ttf","font/otf","font/woff","font/woff2","text/plain","text/markdown","text/html","text/css"]),mc=async(e,t,n)=>{let{config:r,filepath:o}=await Eo(e,t),i=_o.join(o,".."),s=!0,a=!1,u=c=>{let p=c.name,f=fc.default.lookup(p);return p==="index.html"&&(a=!0),p&&p.endsWith(".DS_Store")||!f?!1:Ky.has(f)?c:(console.log(`Invalid file type: ${f} for file: ${p}`),s=!1,!1)},l=c=>{(0,Co.unlink)(n,p=>{p&&console.error(`Failed to delete file: ${p}`),Bs.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let p=(0,pc.default)("zip",{zlib:{level:9}}),f=(0,Co.createWriteStream)(_o.join(i,n));f.on("close",()=>{c(void 0)}),p.directory(_o.join(i,r.publicDir),!1,u),p.file(o,{name:t}),p.pipe(f),p.finalize(),p.on("warning",m=>{console.log(m)}),p.on("error",m=>{Bs.program.error(m.message)}),p.on("finish",()=>{if(!a){l("Could not find index.html in your `publicDir`, all Designer Extension code needs to be inside of `publicDir`");return}if(!s){l("Bundling failed due to invalid file types");return}if(!p.pointer()||p.pointer()===0){l("Bundling failed with no output");return}if(p.pointer()>=Yy){l("Bundling failed due to the bundle exceeding 5MB");return}console.log(`${p.pointer()} total bytes written`),console.log(`Done! ${n} is ready for you to upload to your Webflow app.`)})})};Oo();var wt=D(require("fs")),Ee=D(require("path"));var Cr="webflow.json",vc="index.html",kc="bundle.zip",Ms="public",$s="extension-scaffolds",Po="default",xc="./";var Fc="package.json",Ec="wf-placeholder-name",Ws=e=>JSON.stringify(e,null,2),_c=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
80
81
  \u2502 `+e+` \u2502
81
- \u2570`+t+"\u256F"};var Oc=async(e,t=Cc,n=Bo,r)=>{let o=r[n];try{for(let i of o){let s=_e.join(t,i),a=ab(s,n,e);if(i.includes(Sc)||i.includes(_r))await sb(i,a,e);else{let u=await wt.promises.readFile(i);await jc(a,u)}}}catch(i){console.error("Error writing file, ",i)}},Pc=async()=>{let e={},t=_e.resolve(__dirname),n=_e.join(t,Us),r=await wt.promises.readdir(n);for(let o of r){let i=_e.join(n,o),s=await Ic(i);e[o]=s}return e},Ic=async e=>{let t=[];try{let n=await wt.promises.readdir(e);for(let r of n){let o=_e.join(e,r);if((await wt.promises.stat(o)).isDirectory()){let s=await Ic(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${_e}, `,n)}return t},jc=async(e,t)=>{try{await wt.promises.mkdir(_e.dirname(e),{recursive:!0}),await wt.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},sb=async(e,t,n)=>wt.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Tc,n);await jc(t,o)}),ab=(e,t,n)=>{let r=_e.join(Us,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return _e.join(n,i)}return""};var Lo=async()=>await Pc(),Wc=async()=>{let e=await Lo(),t=Object.keys(e).join(", ");console.log(`Your available templates are: ${t}`),console.log('\u{1F4A1} Syntax: "webflow extension init projectName templateName"'),console.log('\u{1F31F} Example: "webflow extension init my-first-extension react"')},zc=async(e,t=Bo)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Lo();await Oc(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},Uc=()=>bc(zs,_r,_c),Vc=async e=>{let{config:t,filepath:n}=await So(zs,_r),r=Mc.join(n,"..",t.publicDir,Ec),i=(await Fn([],!0)).extensionTemplateDomain||"webflow-ext.com",s=t.apiVersion==="2"?"template/v2":"template",a=Object.keys(t.featureFlags||{}).map(m=>t.featureFlags?.[m]===!0?`ff_on=${m}`:`ff_off=${m}`).join("&"),u=a?`&${a}`:"",c=await(await(0,Lc.default)(`https://${i}/${s}?name=${t.name}${u}`)).text(),d=new Bc.Server((m,y)=>{if(m.url==="/"){Nc.promises.readFile(r,{encoding:"utf-8"}).catch(F=>{$c.program.error(F.message)}).then(F=>{let $=c.replace("{{ui}}",F);return y.writeHead(200,{"Content-Length":Buffer.byteLength($),"Content-Type":"text/html"}),y.end($)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(Vs(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(Vs(t));(0,Rc.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=lb(e);d.listen(f),console.log(Ac(`Serving your extension at http://localhost:${f}`)+`
82
- `)},lb=e=>{if(e){let t=parseInt(e,10);return isNaN(t)?(console.log("Invalid port number provided. Using the default port "+1337),1337):t}return 1337};Re();var Gc=e=>{let t=e.command("extension").description("CLI for developing Designer Extensions.");t.command("list").description("Get list of project templates that can be used for `init`").action(Wc),t.command("init").description("Bootstrap a Designer Extension.").argument("[projectName]","What is your Designer Extension's name?").argument("[scaffoldName]","Which project template do you want to use?").action(async(n,r)=>{let o=await Lo(),i=Object.keys(o),s=await Le({message:"What would you like to name your Designer Extension?",default:n,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0});s===null&&(console.error("When --no-input mode is enabled please provide the [projectName] argument."),process.exit(1));let a=await Fe({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:r||"default"});await zc(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(Uc),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(Vc)};il();var Tm=e=>{e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.").command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","Site API token. Default: value set in WEBFLOW_SITE_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").description("Sync your Webflow components to your filesystem.").action(ol)};var ve=D(require("fs")),me=D(require("path"));U();var fi="astro",sl="cloud-scaffolds";var Am="package.json",Om="webflow.json",Pm="wf-placeholder-name",Im="CLOUD_MOUNT_PATH",jm="gitignore";var al=async(e,t,n=fi,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let u=me.join(e,a.split(me.join(sl,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),d=l||c;if(a.includes(Am)||a.includes(Om)){let m=(await ve.promises.readFile(a,"utf8")).replace(Pm,e);await mi(u,m)}else if(d){let f=await ve.promises.readFile(a,"utf8");await mi(u,f.replace(Im,t))}else if(me.basename(u).toLowerCase()===jm){let f=await ve.promises.readFile(a,"utf8"),m=me.join(me.dirname(u),".gitignore");await mi(m,f)}else{let f=await ve.promises.readFile(a);await mi(u,f)}}catch(u){p.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{kn({siteId:o,siteApiToken:i,directory:e})}catch(a){p.error(`Error creating .env file: ${a}`)}}catch(s){throw p.error(`Error applying scaffold: ${s}`),s}},ll=async()=>{try{let e={},t=me.join(me.resolve(__dirname),sl);if(!ve.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await ve.promises.readdir(t);for(let r of n)try{let o=me.join(t,r);e[r]=await Bm(o)}catch(o){p.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw p.error(`Error getting available scaffolds: ${e}`),e}},Bm=async e=>{let t=[];try{if(!ve.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await ve.promises.readdir(e);for(let r of n)try{let o=me.join(e,r);(await ve.promises.stat(o)).isDirectory()?t.push(...await Bm(o)):t.push(o)}catch(o){p.error(`Error processing path ${r}: ${o}`)}}catch(n){throw p.error(`Error reading directory ${e}: ${n}`),n}return t},mi=async(e,t)=>{try{await ve.promises.mkdir(me.dirname(e),{recursive:!0}),await ve.promises.writeFile(e,t)}catch(n){throw p.error(`Error writing file ${e}: ${n}`),n}};yn();fe();function u1(e){return qe.forCloud({host:e.host||Z,authToken:e.authToken,siteId:e.siteId,projectId:e.projectId})}function hi(e){let t=u1(e);return{service:t,handleError:Do(t),trackUsage:Zu(t),trackPerformance:wo(t),async trackProjectInit(n,r,o,i){await t.sendUsage("project_init",r,o,{scaffold:n,scaffoldName:n,mountPath:i?.mountPath,devlinkSyncStatus:i?.devlinkSyncStatus,totalDuration:i?.totalDuration})},async isEnabled(){return await t.isEnabled()},async promptForConsentIfNeeded(){return await t.promptForConsentIfNeeded("Help us improve Webflow Cloud by sharing usage data and error reports?")}}}async function Te(e,t,n,r,o,i){if(e)try{await e.service.sendUsage(t,n,r,o),i&&t.includes("_failure")&&await e.service.sendError(i instanceof Error?i:new Error(String(i)),t.replace(/_success$|_failure$/,""),{...o,argv:process.argv.slice(2)})}catch(s){console.debug(`Failed to send ${t} telemetry:`,s)}}var Ct=D(require("fs")),ul=D(require("path"));U();var gi={angular:{package_identifier:"@angular/ssr",build_command:"ng build",config_template_path:"templates/angular/angular.json.template",wrangler_template_path:"templates/angular/wrangler.angular.json",assets_path:"dist/browser",deployment_type:"ssr",entrypoint_path:"./server.js"},astro:{package_identifier:"@astrojs/cloudflare",build_command:"astro build",config_template_path:"templates/astro/astro.config.mjs.template",additional_config_files:["templates/astro/webflow-loader.ts"],wrangler_template_path:"templates/astro/wrangler.astro.json",assets_path:"dist",deployment_type:"ssr",assets_exclude_path:"_worker.js",entrypoint_path:"./index.js"},docusaurus:{package_identifier:"@docusaurus/core",build_command:"docusaurus build",config_template_path:"templates/docusaurus/docusaurus.config.js.template",wrangler_template_path:"templates/docusaurus/wrangler.docusaurus.json",assets_path:"build",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},gatsby:{package_identifier:"gatsby",build_command:"gatsby build",wrangler_template_path:"templates/gatsby/wrangler.gatsby.json",assets_path:"public",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},nextjs:{package_identifier:"@opennextjs/cloudflare",build_command:"opennextjs-cloudflare build",config_template_path:"templates/nextjs/next.config.ts.template",additional_config_files:["templates/nextjs/webflow-loader.ts"],wrangler_template_path:"templates/nextjs/wrangler.nextjs.json",assets_path:".open-next/assets",entrypoint_path:"./worker.js",deployment_type:"ssr"},nuxt:{package_identifier:"nuxt",build_command:"nuxt build",config_template_path:"templates/nuxt/nuxt.config.ts.template",wrangler_template_path:"templates/nuxt/wrangler.nuxt.json",assets_path:".output/public",entrypoint_path:"./index.js",deployment_type:"ssr"},qwik:{package_identifier:"@builder.io/qwik",build_command:"qwik build",config_template_path:"templates/qwik/vite.config.ts.template",wrangler_template_path:"templates/qwik/wrangler.qwik.json",assets_path:"dist",deployment_type:"ssr",entrypoint_path:"./_worker.js"},react:{package_identifier:"@vitejs/plugin-react",build_command:"tsc -b && vite build",config_template_path:"templates/react/vite.config.ts.template",wrangler_template_path:"templates/react/wrangler.react.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"},remix:{package_identifier:"@remix-run/cloudflare",build_command:"remix vite:build",config_template_path:"templates/remix/vite.config.ts.template",wrangler_template_path:"templates/remix/wrangler.remix.json",assets_path:"build/client",deployment_type:"ssr",entrypoint_path:"./server.js"},solid:{package_identifier:"@solidjs/start",build_command:"vinxi build",config_template_path:"templates/solid/app.config.ts.template",wrangler_template_path:"templates/solid/wrangler.solid.json",assets_path:".output/public",deployment_type:"ssr",entrypoint_path:"./index.js"},svelte:{package_identifier:"@sveltejs/vite-plugin-svelte",build_command:"vite build",config_template_path:"templates/svelte/vite.config.ts.template",wrangler_template_path:"templates/svelte/wrangler.svelte.json",assets_path:".svelte-kit/cloudflare",deployment_type:"ssr",entrypoint_path:"./_worker.js"},vue:{package_identifier:"@vitejs/plugin-vue",build_command:"vue-tsc --build && vite build",config_template_path:"templates/vue/vite.config.ts.template",wrangler_template_path:"templates/vue/wrangler.vue.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"}},yi=["nextjs","astro","remix"];async function Lm(e=process.cwd()){let t=ul.join(e,"package.json"),n=ul.join(e,"webflow.json");if(!Ct.existsSync(t))throw new Error("No package.json file found");let r=null;if(Ct.existsSync(n))try{let i=JSON.parse(Ct.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!gi[i]){let s=Object.keys(gi).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!yi.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${yi.join(", ")}`);r=i,p.info(`Using framework type from webflow.json: ${r}`)}else throw new Error("webflow.json exists but doesn't contain valid framework information under the 'cloud' key")}catch(o){throw o instanceof SyntaxError?new Error("webflow.json contains invalid JSON"):o}if(!r)try{let o=JSON.parse(Ct.readFileSync(t,"utf8"));for(let s of yi){let u=gi[s].package_identifier;if(o.dependencies?.[u]||o.devDependencies?.[u]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${yi.join(", ")} are currently supported.`);p.info(`Detected framework: ${r}`),Ct.writeFileSync(n,JSON.stringify({cloud:{framework:r}},null,2))}catch(o){throw o instanceof SyntaxError?new Error("package.json contains invalid JSON"):o}return{framework:r,config:gi[r]}}var S=D(require("fs")),B=D(require("path")),Hn=require("child_process"),ih=D(require("tar"));var te=D(require("fs")),ye=D(require("path"));var H={};Ml(H,{BRAND:()=>B1,DIRTY:()=>Ht,EMPTY_PATH:()=>f1,INVALID:()=>P,NEVER:()=>DF,OK:()=>ce,ParseStatus:()=>le,Schema:()=>W,ZodAny:()=>At,ZodArray:()=>ft,ZodBigInt:()=>Zt,ZodBoolean:()=>Yt,ZodBranded:()=>Ur,ZodCatch:()=>ln,ZodDate:()=>Kt,ZodDefault:()=>an,ZodDiscriminatedUnion:()=>wi,ZodEffects:()=>Pe,ZodEnum:()=>on,ZodError:()=>he,ZodFirstPartyTypeKind:()=>j,ZodFunction:()=>ki,ZodIntersection:()=>tn,ZodIssueCode:()=>b,ZodLazy:()=>nn,ZodLiteral:()=>rn,ZodMap:()=>zn,ZodNaN:()=>Vn,ZodNativeEnum:()=>sn,ZodNever:()=>Ue,ZodNull:()=>Qt,ZodNullable:()=>Qe,ZodNumber:()=>Jt,ZodObject:()=>ge,ZodOptional:()=>Ae,ZodParsedType:()=>k,ZodPipeline:()=>Vr,ZodPromise:()=>Ot,ZodReadonly:()=>un,ZodRecord:()=>vi,ZodSchema:()=>W,ZodSet:()=>Un,ZodString:()=>Tt,ZodSymbol:()=>$n,ZodTransformer:()=>Pe,ZodTuple:()=>Xe,ZodType:()=>W,ZodUndefined:()=>Xt,ZodUnion:()=>en,ZodUnknown:()=>pt,ZodVoid:()=>Wn,addIssueToContext:()=>w,any:()=>V1,array:()=>J1,bigint:()=>M1,boolean:()=>Hm,coerce:()=>bF,custom:()=>Vm,date:()=>$1,datetimeRegex:()=>zm,defaultErrorMap:()=>ct,discriminatedUnion:()=>X1,effect:()=>cF,enum:()=>aF,function:()=>oF,getErrorMap:()=>Rn,getParsedType:()=>Ke,instanceof:()=>R1,intersection:()=>Q1,isAborted:()=>bi,isAsync:()=>Nn,isDirty:()=>Di,isValid:()=>St,late:()=>L1,lazy:()=>iF,literal:()=>sF,makeIssue:()=>zr,map:()=>nF,nan:()=>N1,nativeEnum:()=>lF,never:()=>q1,null:()=>U1,nullable:()=>pF,number:()=>qm,object:()=>Z1,objectUtil:()=>cl,oboolean:()=>yF,onumber:()=>gF,optional:()=>dF,ostring:()=>hF,pipeline:()=>mF,preprocess:()=>fF,promise:()=>uF,quotelessJson:()=>c1,record:()=>tF,set:()=>rF,setErrorMap:()=>p1,strictObject:()=>Y1,string:()=>Gm,symbol:()=>W1,transformer:()=>cF,tuple:()=>eF,undefined:()=>z1,union:()=>K1,unknown:()=>G1,util:()=>z,void:()=>H1});var z;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(z||(z={}));var cl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cl||(cl={}));var k=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ke=e=>{switch(typeof e){case"undefined":return k.undefined;case"string":return k.string;case"number":return Number.isNaN(e)?k.nan:k.number;case"boolean":return k.boolean;case"function":return k.function;case"bigint":return k.bigint;case"symbol":return k.symbol;case"object":return Array.isArray(e)?k.array:e===null?k.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?k.promise:typeof Map<"u"&&e instanceof Map?k.map:typeof Set<"u"&&e instanceof Set?k.set:typeof Date<"u"&&e instanceof Date?k.date:k.object;default:return k.unknown}};var b=z.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),c1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),he=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,z.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};he.create=e=>new he(e);var d1=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===k.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,z.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${z.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${z.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${z.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:n="Invalid function arguments";break;case b.invalid_return_type:n="Invalid function return type";break;case b.invalid_date:n="Invalid date";break;case b.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:z.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case b.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case b.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case b.custom:n="Invalid input";break;case b.invalid_intersection_types:n="Intersection results could not be merged";break;case b.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:n="Number must be finite";break;default:n=t.defaultError,z.assertNever(e)}return{message:n}},ct=d1;var Rm=ct;function p1(e){Rm=e}function Rn(){return Rm}var zr=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",u=r.filter(l=>!!l).slice().reverse();for(let l of u)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},f1=[];function w(e,t){let n=Rn(),r=zr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ct?void 0:ct].filter(o=>!!o)});e.common.issues.push(r)}var le=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return P;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return P;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},P=Object.freeze({status:"aborted"}),Ht=e=>({status:"dirty",value:e}),ce=e=>({status:"valid",value:e}),bi=e=>e.status==="aborted",Di=e=>e.status==="dirty",St=e=>e.status==="valid",Nn=e=>typeof Promise<"u"&&e instanceof Promise;var _;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(_||(_={}));var Oe=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Nm=(e,t)=>{if(St(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new he(e.common.issues);return this._error=n,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:u??n??a.defaultError}},description:o}}var W=class{get description(){return this._def.description}_getType(t){return Ke(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ke(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new le,ctx:{common:t.parent.common,data:t.data,parsedType:Ke(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Nn(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ke(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Nm(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ke(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return St(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>St(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ke(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(Nn(o)?o:Promise.resolve(o));return Nm(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:b.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>u?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Pe({schema:this,typeName:j.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ae.create(this,this._def)}nullable(){return Qe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ft.create(this)}promise(){return Ot.create(this,this._def)}or(t){return en.create([this,t],this._def)}and(t){return tn.create(this,t,this._def)}transform(t){return new Pe({...N(this._def),schema:this,typeName:j.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new an({...N(this._def),innerType:this,defaultValue:n,typeName:j.ZodDefault})}brand(){return new Ur({typeName:j.ZodBranded,type:this,...N(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new ln({...N(this._def),innerType:this,catchValue:n,typeName:j.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Vr.create(this,t)}readonly(){return un.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},m1=/^c[^\s-]{8,}$/i,h1=/^[0-9a-z]+$/,g1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,y1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b1=/^[a-z0-9_-]{21}$/i,D1=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,w1=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,v1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,k1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",dl,x1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,F1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,E1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,_1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,S1=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$m="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",T1=new RegExp(`^${$m}$`);function Wm(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function A1(e){return new RegExp(`^${Wm(e)}$`)}function zm(e){let t=`${$m}T${Wm(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function O1(e,t){return!!((t==="v4"||!t)&&x1.test(e)||(t==="v6"||!t)&&E1.test(e))}function P1(e,t){if(!D1.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function I1(e,t){return!!((t==="v4"||!t)&&F1.test(e)||(t==="v6"||!t)&&_1.test(e))}var Tt=class e extends W{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==k.string){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:k.string,received:i.parsedType}),P}let r=new le,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")v1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")dl||(dl=new RegExp(k1,"u")),dl.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")y1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")b1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")m1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")h1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")g1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ulid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),w(o,{validation:"url",code:b.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"regex",code:b.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?zm(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?T1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?A1(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?w1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?O1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?P1(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?I1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?C1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?S1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):z.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:b.invalid_string,..._.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",..._.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",..._.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",..._.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,..._.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,..._.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",..._.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,..._.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,..._.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,..._.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,..._.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,..._.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,..._.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,..._.errToObj(n)})}nonempty(t){return this.min(1,_.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Tt.create=e=>new Tt({checks:[],typeName:j.ZodString,coerce:e?.coerce??!1,...N(e)});function j1(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Jt=class e extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==k.number){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:k.number,received:i.parsedType}),P}let r,o=new le;for(let i of this._def.checks)i.kind==="int"?z.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?j1(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_finite,message:i.message}),o.dirty()):z.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,_.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:_.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&z.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Jt.create=e=>new Jt({checks:[],typeName:j.ZodNumber,coerce:e?.coerce||!1,...N(e)});var Zt=class e extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==k.bigint)return this._getInvalidInput(t);let r,o=new le;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):z.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:k.bigint,received:n.parsedType}),P}gte(t,n){return this.setLimit("min",t,!0,_.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Zt.create=e=>new Zt({checks:[],typeName:j.ZodBigInt,coerce:e?.coerce??!1,...N(e)});var Yt=class extends W{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==k.boolean){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.boolean,received:r.parsedType}),P}return ce(t.data)}};Yt.create=e=>new Yt({typeName:j.ZodBoolean,coerce:e?.coerce||!1,...N(e)});var Kt=class e extends W{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==k.date){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:k.date,received:i.parsedType}),P}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),P}let r=new le,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):z.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:_.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:_.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Kt.create=e=>new Kt({checks:[],coerce:e?.coerce||!1,typeName:j.ZodDate,...N(e)});var $n=class extends W{_parse(t){if(this._getType(t)!==k.symbol){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.symbol,received:r.parsedType}),P}return ce(t.data)}};$n.create=e=>new $n({typeName:j.ZodSymbol,...N(e)});var Xt=class extends W{_parse(t){if(this._getType(t)!==k.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.undefined,received:r.parsedType}),P}return ce(t.data)}};Xt.create=e=>new Xt({typeName:j.ZodUndefined,...N(e)});var Qt=class extends W{_parse(t){if(this._getType(t)!==k.null){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.null,received:r.parsedType}),P}return ce(t.data)}};Qt.create=e=>new Qt({typeName:j.ZodNull,...N(e)});var At=class extends W{constructor(){super(...arguments),this._any=!0}_parse(t){return ce(t.data)}};At.create=e=>new At({typeName:j.ZodAny,...N(e)});var pt=class extends W{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ce(t.data)}};pt.create=e=>new pt({typeName:j.ZodUnknown,...N(e)});var Ue=class extends W{_parse(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:k.never,received:n.parsedType}),P}};Ue.create=e=>new Ue({typeName:j.ZodNever,...N(e)});var Wn=class extends W{_parse(t){if(this._getType(t)!==k.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.void,received:r.parsedType}),P}return ce(t.data)}};Wn.create=e=>new Wn({typeName:j.ZodVoid,...N(e)});var ft=class e extends W{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==k.array)return w(n,{code:b.invalid_type,expected:k.array,received:n.parsedType}),P;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(w(n,{code:s?b.too_big:b.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(w(n,{code:b.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(w(n,{code:b.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Oe(n,s,n.path,a)))).then(s=>le.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Oe(n,s,n.path,a)));return le.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:_.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:_.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:_.toString(n)}})}nonempty(t){return this.min(1,t)}};ft.create=(e,t)=>new ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:j.ZodArray,...N(t)});function Mn(e){if(e instanceof ge){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Ae.create(Mn(r))}return new ge({...e._def,shape:()=>t})}else return e instanceof ft?new ft({...e._def,type:Mn(e.element)}):e instanceof Ae?Ae.create(Mn(e.unwrap())):e instanceof Qe?Qe.create(Mn(e.unwrap())):e instanceof Xe?Xe.create(e.items.map(t=>Mn(t))):e}var ge=class e extends W{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=z.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==k.object){let l=this._getOrReturnCtx(t);return w(l,{code:b.invalid_type,expected:k.object,received:l.parsedType}),P}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ue&&this._def.unknownKeys==="strip"))for(let l in o.data)s.includes(l)||a.push(l);let u=[];for(let l of s){let c=i[l],d=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Oe(o,d,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Ue){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(l==="strict")a.length>0&&(w(o,{code:b.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let d=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Oe(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let d=await c.key,f=await c.value;l.push({key:d,value:f,alwaysSet:c.alwaysSet})}return l}).then(l=>le.mergeObjectSync(r,l)):le.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return _.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:_.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:j.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of z.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of z.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Mn(this)}partial(t){let n={};for(let r of z.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of z.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ae;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return Um(z.objectKeys(this.shape))}};ge.create=(e,t)=>new ge({shape:()=>e,unknownKeys:"strip",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});ge.strictCreate=(e,t)=>new ge({shape:()=>e,unknownKeys:"strict",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});ge.lazycreate=(e,t)=>new ge({shape:e,unknownKeys:"strip",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});var en=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new he(a.ctx.common.issues));return w(n,{code:b.invalid_union,unionErrors:s}),P}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let u of r){let l={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(u=>new he(u));return w(n,{code:b.invalid_union,unionErrors:a}),P}}get options(){return this._def.options}};en.create=(e,t)=>new en({options:e,typeName:j.ZodUnion,...N(t)});var dt=e=>e instanceof nn?dt(e.schema):e instanceof Pe?dt(e.innerType()):e instanceof rn?[e.value]:e instanceof on?e.options:e instanceof sn?z.objectValues(e.enum):e instanceof an?dt(e._def.innerType):e instanceof Xt?[void 0]:e instanceof Qt?[null]:e instanceof Ae?[void 0,...dt(e.unwrap())]:e instanceof Qe?[null,...dt(e.unwrap())]:e instanceof Ur||e instanceof un?dt(e.unwrap()):e instanceof ln?dt(e._def.innerType):[],wi=class e extends W{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==k.object)return w(n,{code:b.invalid_type,expected:k.object,received:n.parsedType}),P;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(w(n,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),P)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=dt(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new e({typeName:j.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...N(r)})}};function pl(e,t){let n=Ke(e),r=Ke(t);if(e===t)return{valid:!0,data:e};if(n===k.object&&r===k.object){let o=z.objectKeys(t),i=z.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=pl(e[a],t[a]);if(!u.valid)return{valid:!1};s[a]=u.data}return{valid:!0,data:s}}else if(n===k.array&&r===k.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],u=pl(s,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===k.date&&r===k.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var tn=class extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(bi(i)||bi(s))return P;let a=pl(i.value,s.value);return a.valid?((Di(i)||Di(s))&&n.dirty(),{status:n.value,value:a.data}):(w(r,{code:b.invalid_intersection_types}),P)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};tn.create=(e,t,n)=>new tn({left:e,right:t,typeName:j.ZodIntersection,...N(n)});var Xe=class e extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.array)return w(r,{code:b.invalid_type,expected:k.array,received:r.parsedType}),P;if(r.data.length<this._def.items.length)return w(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),P;!this._def.rest&&r.data.length>this._def.items.length&&(w(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Oe(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>le.mergeArray(n,s)):le.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Xe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xe({items:e,typeName:j.ZodTuple,rest:null,...N(t)})};var vi=class e extends W{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.object)return w(r,{code:b.invalid_type,expected:k.object,received:r.parsedType}),P;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Oe(r,a,r.path,a)),value:s._parse(new Oe(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?le.mergeObjectAsync(n,o):le.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof W?new e({keyType:t,valueType:n,typeName:j.ZodRecord,...N(r)}):new e({keyType:Tt.create(),valueType:t,typeName:j.ZodRecord,...N(n)})}},zn=class extends W{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.map)return w(r,{code:b.invalid_type,expected:k.map,received:r.parsedType}),P;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Oe(r,a,r.path,[l,"key"])),value:i._parse(new Oe(r,u,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of s){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return P;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let u of s){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return P;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}}}};zn.create=(e,t,n)=>new zn({valueType:t,keyType:e,typeName:j.ZodMap,...N(n)});var Un=class e extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.set)return w(r,{code:b.invalid_type,expected:k.set,received:r.parsedType}),P;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(w(r,{code:b.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(w(r,{code:b.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(u){let l=new Set;for(let c of u){if(c.status==="aborted")return P;c.status==="dirty"&&n.dirty(),l.add(c.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((u,l)=>i._parse(new Oe(r,u,r.path,l)));return r.common.async?Promise.all(a).then(u=>s(u)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:_.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:_.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Un.create=(e,t)=>new Un({valueType:e,minSize:null,maxSize:null,typeName:j.ZodSet,...N(t)});var ki=class e extends W{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==k.function)return w(n,{code:b.invalid_type,expected:k.function,received:n.parsedType}),P;function r(a,u){return zr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Rn(),ct].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return zr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Rn(),ct].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:u}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Ot){let a=this;return ce(async function(...u){let l=new he([]),c=await a._def.args.parseAsync(u,i).catch(m=>{throw l.addIssue(r(u,m)),l}),d=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(d,i).catch(m=>{throw l.addIssue(o(d,m)),l})})}else{let a=this;return ce(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new he([r(u,l.error)]);let c=Reflect.apply(s,this,l.data),d=a._def.returns.safeParse(c,i);if(!d.success)throw new he([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Xe.create(t).rest(pt.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||Xe.create([]).rest(pt.create()),returns:n||pt.create(),typeName:j.ZodFunction,...N(r)})}},nn=class extends W{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};nn.create=(e,t)=>new nn({getter:e,typeName:j.ZodLazy,...N(t)});var rn=class extends W{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return w(n,{received:n.data,code:b.invalid_literal,expected:this._def.value}),P}return{status:"valid",value:t.data}}get value(){return this._def.value}};rn.create=(e,t)=>new rn({value:e,typeName:j.ZodLiteral,...N(t)});function Um(e,t){return new on({values:e,typeName:j.ZodEnum,...N(t)})}var on=class e extends W{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{expected:z.joinValues(r),received:n.parsedType,code:b.invalid_type}),P}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{received:n.data,code:b.invalid_enum_value,options:r}),P}return ce(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};on.create=Um;var sn=class extends W{_parse(t){let n=z.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==k.string&&r.parsedType!==k.number){let o=z.objectValues(n);return w(r,{expected:z.joinValues(o),received:r.parsedType,code:b.invalid_type}),P}if(this._cache||(this._cache=new Set(z.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=z.objectValues(n);return w(r,{received:r.data,code:b.invalid_enum_value,options:o}),P}return ce(t.data)}get enum(){return this._def.values}};sn.create=(e,t)=>new sn({values:e,typeName:j.ZodNativeEnum,...N(t)});var Ot=class extends W{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==k.promise&&n.common.async===!1)return w(n,{code:b.invalid_type,expected:k.promise,received:n.parsedType}),P;let r=n.parsedType===k.promise?n.data:Promise.resolve(n.data);return ce(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Ot.create=(e,t)=>new Ot({type:e,typeName:j.ZodPromise,...N(t)});var Pe=class extends W{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{w(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return P;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?P:u.status==="dirty"?Ht(u.value):n.value==="dirty"?Ht(u.value):u});{if(n.value==="aborted")return P;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?P:a.status==="dirty"?Ht(a.value):n.value==="dirty"?Ht(a.value):a}}if(o.type==="refinement"){let s=a=>{let u=o.refinement(a,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?P:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?P:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!St(s))return P;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>St(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):P);z.assertNever(o)}};Pe.create=(e,t,n)=>new Pe({schema:e,typeName:j.ZodEffects,effect:t,...N(n)});Pe.createWithPreprocess=(e,t,n)=>new Pe({schema:t,effect:{type:"preprocess",transform:e},typeName:j.ZodEffects,...N(n)});var Ae=class extends W{_parse(t){return this._getType(t)===k.undefined?ce(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ae.create=(e,t)=>new Ae({innerType:e,typeName:j.ZodOptional,...N(t)});var Qe=class extends W{_parse(t){return this._getType(t)===k.null?ce(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Qe.create=(e,t)=>new Qe({innerType:e,typeName:j.ZodNullable,...N(t)});var an=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===k.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};an.create=(e,t)=>new an({innerType:e,typeName:j.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...N(t)});var ln=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Nn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new he(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new he(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};ln.create=(e,t)=>new ln({innerType:e,typeName:j.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...N(t)});var Vn=class extends W{_parse(t){if(this._getType(t)!==k.nan){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.nan,received:r.parsedType}),P}return{status:"valid",value:t.data}}};Vn.create=e=>new Vn({typeName:j.ZodNaN,...N(e)});var B1=Symbol("zod_brand"),Ur=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},Vr=class e extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?P:i.status==="dirty"?(n.dirty(),Ht(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?P:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:j.ZodPipeline})}},un=class extends W{_parse(t){let n=this._def.innerType._parse(t),r=o=>(St(o)&&(o.value=Object.freeze(o.value)),o);return Nn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};un.create=(e,t)=>new un({innerType:e,typeName:j.ZodReadonly,...N(t)});function Mm(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Vm(e,t={},n){return e?At.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=Mm(t,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=Mm(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):At.create()}var L1={object:ge.lazycreate},j;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(j||(j={}));var R1=(e,t={message:`Input not instance of ${e.name}`})=>Vm(n=>n instanceof e,t),Gm=Tt.create,qm=Jt.create,N1=Vn.create,M1=Zt.create,Hm=Yt.create,$1=Kt.create,W1=$n.create,z1=Xt.create,U1=Qt.create,V1=At.create,G1=pt.create,q1=Ue.create,H1=Wn.create,J1=ft.create,Z1=ge.create,Y1=ge.strictCreate,K1=en.create,X1=wi.create,Q1=tn.create,eF=Xe.create,tF=vi.create,nF=zn.create,rF=Un.create,oF=ki.create,iF=nn.create,sF=rn.create,aF=on.create,lF=sn.create,uF=Ot.create,cF=Pe.create,dF=Ae.create,pF=Qe.create,fF=Pe.createWithPreprocess,mF=Vr.create,hF=()=>Gm().optional(),gF=()=>qm().optional(),yF=()=>Hm().optional(),bF={string:e=>Tt.create({...e,coerce:!0}),number:e=>Jt.create({...e,coerce:!0}),boolean:e=>Yt.create({...e,coerce:!0}),bigint:e=>Zt.create({...e,coerce:!0}),date:e=>Kt.create({...e,coerce:!0})};var DF=P;function xi(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,u=0,l=0,c=0,d=0;function f(x,T){let G=0,M=0;for(;G<x||!T;){let E=e.charCodeAt(r);if(E>=48&&E<=57)M=M*16+E-48;else if(E>=65&&E<=70)M=M*16+E-65+10;else if(E>=97&&E<=102)M=M*16+E-97+10;else break;r++,G++}return G<x&&(M=-1),M}function m(x){r=x,o="",i=0,s=16,d=0}function y(){let x=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Gn(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Gn(e.charCodeAt(r)))for(r++;r<e.length&&Gn(e.charCodeAt(r));)r++;else return d=3,e.substring(x,r);let T=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Gn(e.charCodeAt(r))){for(r++;r<e.length&&Gn(e.charCodeAt(r));)r++;T=r}else d=3;return e.substring(x,T)}function F(){let x="",T=r;for(;;){if(r>=n){x+=e.substring(T,r),d=2;break}let G=e.charCodeAt(r);if(G===34){x+=e.substring(T,r),r++;break}if(G===92){if(x+=e.substring(T,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:x+='"';break;case 92:x+="\\";break;case 47:x+="/";break;case 98:x+="\b";break;case 102:x+="\f";break;case 110:x+=`
83
- `;break;case 114:x+="\r";break;case 116:x+=" ";break;case 117:let E=f(4,!0);E>=0?x+=String.fromCharCode(E):d=4;break;default:d=5}T=r;continue}if(G>=0&&G<=31)if(Gr(G)){x+=e.substring(T,r),d=2;break}else d=6;r++}return x}function $(){if(o="",d=0,i=r,u=a,c=l,r>=n)return i=n,s=17;let x=e.charCodeAt(r);if(fl(x)){do r++,o+=String.fromCharCode(x),x=e.charCodeAt(r);while(fl(x));return s=15}if(Gr(x))return r++,o+=String.fromCharCode(x),x===13&&e.charCodeAt(r)===10&&(r++,o+=`
84
- `),a++,l=r,s=14;switch(x){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=F(),s=10;case 47:let T=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Gr(e.charCodeAt(r));)r++;return o=e.substring(T,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let G=n-1,M=!1;for(;r<G;){let E=e.charCodeAt(r);if(E===42&&e.charCodeAt(r+1)===47){r+=2,M=!0;break}r++,Gr(E)&&(E===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return M||(r++,d=1),o=e.substring(T,r),s=13}return o+=String.fromCharCode(x),r++,s=16;case 45:if(o+=String.fromCharCode(x),r++,r===n||!Gn(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=y(),s=11;default:for(;r<n&&A(x);)r++,x=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(x),r++,s=16}}function A(x){if(fl(x)||Gr(x))return!1;switch(x){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function R(){let x;do x=$();while(x>=12&&x<=15);return x}return{setPosition:m,getPosition:()=>r,scan:t?R:$,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>d}}function fl(e){return e===32||e===9}function Gr(e){return e===10||e===13}function Gn(e){return e>=48&&e<=57}var Jm;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Jm||(Jm={}));var vF=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),qn=200,kF={" ":{"\n":new Array(qn).fill(0).map((e,t)=>`
85
- `+" ".repeat(t)),"\r":new Array(qn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(qn).fill(0).map((e,t)=>`\r
86
- `+" ".repeat(t))}," ":{"\n":new Array(qn).fill(0).map((e,t)=>`
87
- `+" ".repeat(t)),"\r":new Array(qn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(qn).fill(0).map((e,t)=>`\r
88
- `+" ".repeat(t))}};var Fi;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Fi||(Fi={}));function Zm(e,t=[],n=Fi.DEFAULT){let r=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):r!==null&&(o[r]=u)}return Ym(e,{onObjectBegin:()=>{let u={};s(u),i.push(o),o=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let u=[];s(u),i.push(o),o=u,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},n),o[0]}function Ym(e,t,n=Fi.DEFAULT){let r=xi(e,!1),o=[],i=0;function s(L){return L?()=>i===0&&L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(L){return L?Y=>i===0&&L(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(L){return L?Y=>i===0&&L(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(L){return L?()=>{i>0?i++:L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(L){return L?()=>{i>0&&i--,i===0&&L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let d=l(t.onObjectBegin),f=u(t.onObjectProperty),m=c(t.onObjectEnd),y=l(t.onArrayBegin),F=c(t.onArrayEnd),$=u(t.onLiteralValue),A=a(t.onSeparator),R=s(t.onComment),x=a(t.onError),T=n&&n.disallowComments,G=n&&n.allowTrailingComma;function M(){for(;;){let L=r.scan();switch(r.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:T||E(11);break;case 2:E(12);break;case 6:E(16);break}switch(L){case 12:case 13:T?E(10):R();break;case 16:E(1);break;case 15:case 14:break;default:return L}}}function E(L,Y=[],ht=[]){if(x(L),Y.length+ht.length>0){let no=r.getToken();for(;no!==17;){if(Y.indexOf(no)!==-1){M();break}else if(ht.indexOf(no)!==-1)break;no=M()}}}function h(L){let Y=r.getTokenValue();return L?$(Y):(f(Y),o.push(Y)),M(),!0}function g(){switch(r.getToken()){case 11:let L=r.getTokenValue(),Y=Number(L);isNaN(Y)&&(E(2),Y=0),$(Y);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return M(),!0}function I(){return r.getToken()!==10?(E(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(A(":"),M(),Ie()||E(4,[],[2,5])):E(5,[],[2,5]),o.pop(),!0)}function v(){d(),M();let L=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(L||E(4,[],[]),A(","),M(),r.getToken()===2&&G)break}else L&&E(6,[],[]);I()||E(4,[],[2,5]),L=!0}return m(),r.getToken()!==2?E(7,[2],[]):M(),!0}function se(){y(),M();let L=!0,Y=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(Y||E(4,[],[]),A(","),M(),r.getToken()===4&&G)break}else Y&&E(6,[],[]);L?(o.push(0),L=!1):o[o.length-1]++,Ie()||E(4,[],[4,5]),Y=!0}return F(),L||o.pop(),r.getToken()!==4?E(8,[4],[]):M(),!0}function Ie(){switch(r.getToken()){case 3:return se();case 1:return v();case 10:return h(!0);default:return g()}}return M(),r.getToken()===17?n.allowEmptyContent?!0:(E(4,[],[]),!1):Ie()?(r.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}var Km;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Km||(Km={}));var Xm;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Xm||(Xm={}));var ml=Zm;var Qm;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Qm||(Qm={}));U();var eh=H.object({name:H.string(),main:H.string(),compatibility_date:H.string(),compatibility_flags:H.array(H.string()).optional(),placement:H.object({mode:H.string()}).passthrough().optional(),assets:H.object({directory:H.string(),binding:H.string().optional()}).passthrough().optional(),d1_databases:H.array(H.object({database_name:H.string(),database_id:H.string(),binding:H.string(),migrations_dir:H.string().optional()}).passthrough()).default([]),kv_namespaces:H.array(H.object({binding:H.string(),id:H.string()}).passthrough()).default([]),r2_buckets:H.array(H.object({binding:H.string(),bucket_name:H.string()}).passthrough()).default([])}).passthrough();function th(e,t="wrangler.json"){let n=ye.join(e,t);if(!te.existsSync(n)){if(t.endsWith(".json"))return p.warn(`/${t} not found, checking for /${t}c`),th(e,t+"c");p.warn(`/${t} not found`);return}let r=te.readFileSync(n,"utf8");p.info(`reading /${t}...`);let o;try{o=ml(r)}catch(i){p.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=eh.parse(o);return p.info(`successfully loaded /${t}`),i}catch(i){p.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function nh(e,t,n={}){if(!te.existsSync(e))return 0;te.mkdirSync(t,{recursive:!0});let r=te.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=ye.join(e,i.name),a=ye.join(t,i.name);i.isDirectory()?o+=nh(s,a,n):(te.copyFileSync(s,a),o++)}return o}async function rh(e,t){let n=null,r=null,o=ye.join(t,"wrangler.json"),i=ye.join(t,"wrangler.jsonc");te.existsSync(o)?(n=o,r=".json"):te.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(p.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),te.copyFileSync(n,ye.join(t,`clouduser.wrangler${r}`)));let s=n?th(t,ye.basename(n)):null,a=ye.join(__dirname,e.config.wrangler_template_path),u=ye.join(t,"wrangler.json");if(!te.existsSync(a))throw new Error(`Wrangler template not found at ${a}. Make sure the template is properly copied during build.`);if(p.info(`copying template /templates/${e.framework}/wrangler.${e.framework}.json to /wrangler.json`),te.copyFileSync(a,u),!s)return;let l=JSON.parse(te.readFileSync(u,"utf8"));if(s.kv_namespaces&&s.kv_namespaces.length>0&&(l.kv_namespaces=s.kv_namespaces,p.info(`merged ${s.kv_namespaces.length} KV namespace(s) into template`)),s.r2_buckets&&s.r2_buckets.length>0&&(l.r2_buckets=s.r2_buckets,p.info(`merged ${s.r2_buckets.length} R2 bucket(s) into template`)),s.d1_databases&&s.d1_databases.length>0&&(l.d1_databases=s.d1_databases,p.info(`merged ${s.d1_databases.length} D1 database(s) into template`)),te.writeFileSync(u,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let c in s.d1_databases){let d=s.d1_databases[c];if(!d.migrations_dir){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir is not defined`);continue}let f=d.migrations_dir,m=ye.join(t,f);if(!te.existsSync(m)){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=ye.join(t,"clouduser","migrations",f),F=nh(m,y);F>0?p.info(`copied ${F} migrations to /clouduser/migrations/${f}`):p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function AF(e){if(!/^[a-z0-9-]+$/.test(e))throw new Error(`Invalid object storage bucket name ${JSON.stringify(e)}: Only lowercase letters, numbers, and hyphens are allowed.`);if(e.startsWith("-")||e.endsWith("-"))throw new Error(`Invalid object storage bucket name "${e}": Cannot begin or end with a hyphen.`);if(e.length>27)throw new Error(`Invalid object storage bucket name "${e}": Must be 27 characters or fewer (currently ${e.length} characters).`)}function oh(e){let t=null;for(let i of[".json",".jsonc"]){let s=ye.join(e,`clouduser.wrangler${i}`);if(te.existsSync(s)){t=s;break}}if(!t)return;let n=te.readFileSync(t,"utf8"),r;try{r=ml(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=eh.parse(r);if(o.d1_databases&&o.d1_databases.length>0&&o.d1_databases.length>5)throw new Error(`Too many D1 databases configured: ${o.d1_databases.length}. Maximum allowed is 5.`);if(o.kv_namespaces&&o.kv_namespaces.length>0&&o.kv_namespaces.length>5)throw new Error(`Too many KV namespaces configured: ${o.kv_namespaces.length}. Maximum allowed is 5.`);if(o.r2_buckets&&o.r2_buckets.length>0){if(o.r2_buckets.length>5)throw new Error(`Too many R2 buckets configured: ${o.r2_buckets.length}. Maximum allowed is 5.`);p.info(`validating ${o.r2_buckets.length} object storage bucket name(s)...`);for(let i of o.r2_buckets)AF(i.bucket_name)}}U();rr();async function sh(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=B.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||B.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=gl(n);await Te(t.telemetry,"cloud_build_start",!0,0,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),S.mkdirSync(o,{recursive:!0});try{p.info(Q.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
89
- `)),await OF(n,e.framework,t.telemetry),p.info(Q.green(`--- \u{1F527} Setting up framework configuration ----------------------
90
- `)),await PF(n,e,s,t.deployUrl,t.environmentId),p.info(Q.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
91
- `)),await rh(e,n),oh(n),p.info(Q.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
92
- `)),p.info(`running ${e.config.build_command}...`),await IF(n,e.config.build_command,t.telemetry),p.info(Q.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
93
- `)),await jF(n,i),p.info(Q.green(`--- \u{1F4C1} Copying assets ------------------------------------------
94
- `)),await BF(n,i,e,s),p.info(Q.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
95
- `));let l=await LF(i),c=Date.now()-a;return p.info(`\u2705 Build completed in ${(c/1e3).toFixed(1)}s`),await Te(t.telemetry,"cloud_build_success",!0,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),l}catch(l){let c=Date.now()-a;throw await Te(t.telemetry,"cloud_build_failure",!1,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l))),l}}function gl(e){let t=B.join(e,"wrangler.json");if(!S.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(S.readFileSync(t,"utf8")),r=n.kv_namespaces||[],o=n.d1_databases||[],i=n.r2_buckets||[],s=n.vars||{};return{hasKV:r.length>0,hasD1:o.length>0,hasR2:i.length>0,hasVars:Object.keys(s).length>0,kvCount:r.length,d1Count:o.length,r2Count:i.length,varCount:Object.keys(s).length}}catch(n){return console.debug("Failed to parse wrangler.json for bindings detection:",n),{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0}}}function ah(e){try{let t=B.dirname(e);t.includes(".tmp/webflow-build-")&&(p.info(Q.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
96
- `)),S.rmSync(t,{recursive:!0,force:!0}))}catch(t){p.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function lh(e,t){try{if(!t.config.config_template_path)return;let n=B.join(__dirname,t.config.config_template_path),r=B.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));p.info(Q.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
97
- `));for(let s of["mjs","cjs","js","ts"]){let a=B.join(e,`clouduser.${o}.${s}`),u=B.join(e,`${o}.${s}`);if(S.existsSync(a)){p.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),S.existsSync(u)&&S.unlinkSync(u),S.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=B.join(e,`clouduser.wrangler${s}`);if(S.existsSync(a)){p.info(`restoring user wrangler${s} from backup...`);let u=B.join(e,"wrangler.json");S.existsSync(u)&&S.unlinkSync(u);let l=B.join(e,`wrangler${s}`);S.renameSync(a,l);break}}let i=B.join(e,"clouduser");S.existsSync(i)&&(p.info("cleaning up clouduser directory..."),S.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=B.join(e,B.basename(s));S.existsSync(a)&&(p.info(`cleaning up additional config file ${a}...`),S.unlinkSync(a))}}catch(n){p.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function OF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=B.join(e,"package.json"),u=JSON.parse(S.readFileSync(a,"utf8"));u.dependencies?.["@astrojs/react"]||u.devDependencies?.["@astrojs/react"]||(p.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,Hn.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=B.join(e,"package-lock.json");S.existsSync(i)?(p.info("Running npm ci..."),(0,Hn.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(p.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,Hn.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await Te(n,"cloud_install_dependencies_success",!0,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await Te(n,"cloud_install_dependencies_failure",!1,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json")),errorType:i instanceof Error?i.name:"unknown",errorMessage:i instanceof Error?i.message:String(i)},i instanceof Error?i:new Error(String(i))),i}}async function PF(e,t,n,r,o){if(p.info(`Framework: ${t.framework}`),p.info(`Mount path: ${n}`),p.info(`Deployment type: ${t.config.deployment_type}`),!t.config.config_template_path)return;let i=B.join(__dirname,t.config.config_template_path),s=B.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let d of["mjs","cjs","js","ts"]){let f=B.join(e,`${a}.${d}`);if(S.existsSync(f)){let m=B.join(e,`clouduser.${a}.${d}`);p.info(`renaming user base config /${a}.${d} to /clouduser.${a}.${d}...`),S.renameSync(f,m);break}}let u=B.join(e,s);p.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=S.readFileSync(i,"utf8").replace(/\$\{([^}]+)\}/g,(d,f)=>({COSMIC_MOUNT_PATH:n,COSMIC_DEPLOY_URL:r||(o?`https://${o}.wf-app-prod.cosmic.webflow.services`:"")})[f]||d);S.writeFileSync(u,c);for(let d of t.config.additional_config_files||[]){let f=B.join(__dirname,d);S.statSync(f,{throwIfNoEntry:!1})?(p.info(`copying additional config file /${d} to ${B.join(e,B.basename(d))}`),S.copyFileSync(f,B.join(e,B.basename(d)))):p.warn(`additional config file /${d} does not exist; skipping`)}}async function IF(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,Hn.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await Te(n,"cloud_build_command_success",!0,a,{buildCommand:t})}catch(o){let i=Date.now()-r;throw await Te(n,"cloud_build_command_failure",!1,i,{buildCommand:t,errorType:o instanceof Error?o.name:"unknown",errorMessage:o instanceof Error?o.message:String(o)},o instanceof Error?o:new Error(String(o))),new Error(`Build command failed: ${t}`)}}async function jF(e,t){S.mkdirSync(t,{recursive:!0});let n=B.join(e,"wrangler.json"),r=B.join(e,"wrangler.jsonc");if(!S.existsSync(n)&&!S.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,Hn.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function BF(e,t,n,r){let o=n.config.assets_path,i=n.config.assets_exclude_path,s=r.replace(/\/+$/,"").replace(/^\/+/,"");if(n.framework==="nextjs"||n.framework==="astro"){let d=B.join(e,o);if(S.existsSync(d)&&S.statSync(d).isDirectory()){let m=S.readdirSync(d,{withFileTypes:!0}).find(y=>!(!y.isDirectory()||i&&y.name===i||n.framework==="astro"&&(y.name==="_routes.json"||y.name==="_worker.js")));m&&(o=`${o}/${m.name}`)}}let a=B.join(t,"assets",s||"");S.mkdirSync(a,{recursive:!0});let u=B.join(e,o);if(S.existsSync(u)&&S.statSync(u).isDirectory()){p.info(`copying assets from /${o} to output/assets...`);try{i?(p.info(`excluding ${i}`),uh(u,a,i)):hl(u,a)}catch(d){p.error(`Failed to copy assets: ${d}`)}}else p.info("No assets to copy or assets directory not found");let l=B.join(e,"webflow.json");S.existsSync(l)&&S.copyFileSync(l,B.join(t,"webflow.json"));let c=null;for(let d of[".json",".jsonc"]){let f=B.join(e,`clouduser.wrangler${d}`);if(S.existsSync(f)){c=f;break}}if(c){p.info("including user wrangler config in output..."),S.copyFileSync(c,B.join(t,"clouduser.wrangler.json"));let d=B.join(e,"clouduser","migrations");if(S.existsSync(d)){p.info("copying migrations from clouduser/migrations to output/migrations...");let f=B.join(t,"migrations");hl(d,f)}}}async function LF(e){let t=`${e}.tar.gz`;try{return await ih.create({gzip:!0,file:t,cwd:B.dirname(e)},[B.basename(e)]),p.info(`Tarball created: ${t}`),t}catch(n){throw p.error(`Failed to create tarball: ${n}`),new Error("Failed to create tarball")}}function hl(e,t){S.mkdirSync(t,{recursive:!0});let n=S.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=B.join(e,r.name),i=B.join(t,r.name);r.isDirectory()?hl(o,i):S.copyFileSync(o,i)}}function uh(e,t,n){S.mkdirSync(t,{recursive:!0});let r=S.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=B.join(e,o.name),s=B.join(t,o.name);o.isDirectory()?uh(i,s,n):S.copyFileSync(i,s)}}rt();fe();U();var RF="DUPLICATE_ENVIRONMENT_MOUNT",NF="ENVIRONMENT_MOUNT_MISMATCH",MF="DUPLICATE_ENVIRONMENT_BRANCH",$F="INVALID_MOUNT_PATH_FORMAT",WF="INVALID_PROJECT_ID",ch={[RF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[NF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[MF]:"An environment with this branch already exists for this project.",[$F]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[WF]:"Invalid project ID. This project may have been deleted or belongs to a different site. Please remove the 'project_id' from your webflow.json file and redeploy to create a new project."};function dh(e){let t={timestamp:new Date().toISOString()};e instanceof Error?(t.code=e.name,t.msg=e.message,t.stack=e.stack):typeof e=="object"&&e!==null&&(t.code=e.code,t.msg=e.msg,t.status=e.status);let n=t.msg||"";p.error(`Error Details: ${JSON.stringify({timestamp:t.timestamp,code:t.code,message:t.msg,status:t.status,stack:t.stack},null,2)}`);for(let r in ch)if(n.includes(r))return ch[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var Jn=D(require("fs")),yl=require("child_process");U();var ph=104857600;function fh(e){if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`}function zF(){try{let e=(0,yl.execSync)("git rev-parse HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();if(!/^[0-9a-f]{40}$/.test(e))throw new Error("Invalid commit hash format");try{return(0,yl.execSync)("git status --porcelain --untracked-files=no",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().length>0?`git@${e}+dirty`:`git@${e}`}catch{return`git@${e}`}}catch{return`noversion@${new Date().toISOString()}`}}async function bl(e,t){let{accessToken:n}=Ne(),r=await fetch(`${Z}${e}`,{method:t.method,headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:t.body?JSON.stringify(t.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=dh(i);throw new Error(s)}return r.json()}async function mh(e,t,n){let{manifest:r}=de(),o=r.cloud||{},i=o.project_id,s=o.framework;s||(p.error("Error: No framework specified in webflow.json"),p.error("Please ensure your webflow.json has a cloud.framework property"),process.exit(1));let{siteId:a,accessToken:u}=Ne(),l=await UF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:n?.projectName,description:n?.description,directory:n?.directory,version:zF()});return!i&&l.project_id&&(p.info("\u{1F4DD} Updating webflow.json with project ID..."),De({cloud:{...o,project_id:l.project_id}})),l}async function UF(e){let{siteId:t,framework:n,mountPath:r,environment:o,version:i,projectId:s,projectName:a,description:u,directory:l}=e,c={framework:n,mount_path:r,environment:o,version:i};return s&&(c.project_id=s),a&&(c.project_name=a),u&&(c.description=u),l&&(c.app_path=l),bl(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function hh(e){let{siteId:t}=Ne();return bl(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function gh(){let{siteId:e}=Ne();return bl(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function yh(e,t){if(!Jn.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=Jn.statSync(e);if(n.size>ph)throw new Error(`Build output is too large (${fh(n.size)}). Maximum allowed size is ${fh(ph)}.`);let r=Jn.readFileSync(e),o=JSON.parse(t);if(!o.fields)throw new Error("Upload URL is missing fields property");let i=new FormData;Object.entries(o.fields).forEach(([u,l])=>{i.append(u,l)});let s=new Blob([r],{type:"application/gzip"});i.append("file",s,"output.tar.gz");let a=await fetch(o.url,{method:"POST",body:i});if(!a.ok){let u=await a.text();throw p.error(`\u274C Upload failed with response: ${u}`),new Error(`Failed to upload tarball: ${a.status} ${a.statusText}`)}}async function bh(e,t){if(!e||e==="undefined")throw new Error("Completion URL is undefined or invalid");let n=new URL(e);t&&n.searchParams.set("failed","true");let r=await fetch(n.toString(),{method:"GET"});if(!r.ok)throw new Error(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}Re();cs();U();async function Dh(e,t){let{siteId:n,accessToken:r}=Ne(),o=hn("Validating mount path configuration...").start();try{let i=await Fr(r,n),s=await Is(r,n),a=[`${i.shortName}.webflow.io`,...s.customDomains?.map(m=>m.url)||[]],u=0;o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (0/${a.length})`;let l=a.map(async m=>{try{let y=await js(m),F=Array.isArray(y.cosmic)?y.cosmic.map(A=>A.mountPath).filter(A=>typeof A=="string"):[],$=Bs(y,e,t);return{domain:m,mountPaths:F,isValid:$===!0}}catch(y){return{domain:m,mountPaths:[],isValid:!1,error:y instanceof Error?y.message:String(y)}}finally{u++,o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (${u}/${a.length})`}}),c=await Promise.all(l),d=c.some(m=>!m.isValid),f=c.every(m=>m.isValid);return o.succeed("Mount path validation completed"),{isValid:f,domains:c,needsPublishing:d}}catch(i){throw o.fail("Mount path validation failed"),i}}async function wh(e,t){let{siteId:n,accessToken:r}=Ne();try{let o=await Fr(r,n),i=await Is(r,n),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await js(l),d=Array.isArray(c.cosmic)?c.cosmic.map(m=>m.mountPath).filter(m=>typeof m=="string"):[],f=Bs(c,e,t);return{domain:l,isValid:f}}catch(c){return p.debug(`Could not verify mount path for ${l}: ${c}`),{domain:l,isValid:!1}}});return(await Promise.all(a)).filter(l=>l.isValid).map(l=>l.domain)}catch(o){return p.debug(`Error getting valid domains: ${o}`),[]}}function vh(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function kh(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await ho({message:"Select which domains you want to publish to update the mount path configuration:",choices:t,validate:r=>r.length===0?"Please select at least one domain to publish to.":!0});return n??[]}async function xh(){return await pe({message:"The mount path doesn't match on some domains. Would you like to publish the site to update the configuration?",default:!0})}async function Dl(e){let{siteId:t,accessToken:n}=Ne(),r=hn(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await Fr(n,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await fc(n,t,{domains:a,publishToWebflowSubdomain:s}),r.succeed(`Site published successfully to selected domains: ${e.join(", ")}`)}catch{throw r.fail("Failed to publish site"),new Error("Failed to publish site")}}rt();U();rr();fe();be();var Ei=async()=>{try{let e=await ll();return Object.keys(e)}catch(e){return p.error(`Failed to get available scaffolds: ${e}`),[]}},wl=async(e,t,n=fi,r)=>{let o=`./${e}`,i=await ll(),s=null,a=!1;try{let u=Date.now(),l=await xn({clientId:_o,scope:Co}),c=await Fo(l);c.length===0&&(p.error("Error: No Webflow sites found in your account."),p.error("Please make sure you have at least one site in your Webflow account."),process.exit(1));let d;r?(d=c.find(m=>m.id===r),d||(p.error(`Error: Site with ID "${r}" not found in your account.`),p.info("Available sites:"),c.forEach(m=>{p.info(`- ${m.displayName} (ID: ${m.id})`)}),process.exit(1)),p.info(`Using site: ${d.displayName} (${d.id})`)):d=await Eo(c),s=hi({authToken:l,siteId:d.id}),await al(e,t,n,i,d.id,l),process.chdir(o),await s.promptForConsentIfNeeded(),p.info("Running devlink sync to fetch your Webflow components...");try{await VF({site:d.id,apiToken:l}),a=!0}catch(m){p.error(`Failed to run devlink sync: ${m}`),p.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}let f=Date.now()-u;await s.trackProjectInit(n,!0,void 0,{devlinkSyncStatus:a,totalDuration:f,mountPath:t}),Fh(e)}catch(u){p.error("Error during Webflow authentication:"),p.error(String(u)),await al(e,t,n,i),process.chdir(o),p.error("Project scaffold was created, but authentication failed."),p.error("To set up Webflow credentials later, run:"),p.error(" webflow auth login"),Fh(e),process.exit(1)}},VF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(il(),Sm));await t(void 0,{site:e.site,apiToken:e.apiToken})},GF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=de();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},qF=async(e,t,n)=>{p.info("\u{1F50D} Validating mount path configuration...");let r=await Dh(e,t);if(r.isValid)p.info("\u2705 Mount path validation passed");else if(p.info(`
98
- \u{1F4CB} Mount path validation results:`),r.domains.forEach(o=>{let i=o.isValid?"\u2705":"\u274C",s=o.isValid?`(mountPath: ${o.mountPaths[0]})`:"(no matching mountPath)";p.info(`${i} ${o.domain} ${s}`),o.error&&p.debug(` Error: ${o.error}`)}),r.needsPublishing)if(n){p.info("\u{1F680} Auto-publishing site to update mount path configuration...");let o=r.domains.filter(i=>!i.isValid).map(i=>i.domain);await Dl(o)}else if(await xh()&&Ve()){let i=r.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await kh(i);await Dl(s)}else p.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},HF=async(e,t,n,r)=>{p.info(`
99
- \u{1F3D7}\uFE0F Building project...`);let o=await sh(e,{mountPath:n,telemetry:r?.telemetry,deployUrl:t.deploy_url,environmentId:t.environment_id});p.info("\u{1F4E4} Uploading build artifacts...");let i=Date.now();await yh(o,t.upload_url);let s=Date.now()-i;return p.info(`\u2705 Upload completed in ${(s/1e3).toFixed(1)}s`),o},JF=async(e,t)=>{p.success(`
100
- \u{1F310} Your cloud app will soon be available at:`);try{let n=await wh(e,t),r=vh(n,e);r.length>0?r.forEach(o=>{p.info(` ${o}`)}):p.warn(" No domains found with the correct mount path configuration yet.")}catch(n){p.warn(` Could not determine deployment links: ${n instanceof Error?n.message:n}`)}},ZF=e=>{e.site_slug?p.success(`Visit your deployment:
101
-
102
- ${vn}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):p.info(`
103
- Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},YF=async(e,t,n)=>{try{await bh(e.completion_url,!!n),n?p.error(`
104
- \u274C Deployment failed due to build error.`):(p.success(`
105
- \u2705 Deployment triggered successfully!`),await JF(t,e.environment_id),ZF(e))}catch(r){p.error(`Failed to trigger deployment: ${r}`),process.exit(1)}},KF=(e,t)=>{e&&lh(process.cwd(),e),t&&ah(t)},Eh=async(e,t,n)=>{let r=null,o=null,i=Date.now(),s=null,a=null,u=gl(process.cwd());await Te(n?.telemetry,"cloud_deploy_start",!0,void 0,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u});try{p.info("\u{1F527} Detecting framework..."),s=await Lm(),p.info(`Framework: ${s.framework}`),p.info(`Build command: ${s.config.build_command}`),p.info("\u{1F3D7}\uFE0F Building project..."),r=await mh(e,t,n),GF(n)?p.info("\u23ED\uFE0F Skipping mount path validation..."):await qF(t,r.environment_id,n?.autoPublish),o=await HF(s,r,t,n),p.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let l=Date.now()-i;await Te(n?.telemetry,"cloud_deploy_success",!0,l,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,framework:s.framework,buildCommand:s.config.build_command,cloudflareBindings:u})}catch(l){a=l instanceof Error?l:new Error(String(l)),p.error("Error during deployment initialization:"),p.error(a.message);let c=Date.now()-i;await Te(n?.telemetry,"cloud_deploy_failure",!1,c,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l)))}finally{KF(s,o),r&&await YF(r,t,a),a&&process.exit(1)}},Fh=e=>{p.info("--- "),p.info(Q.bold.green("Get started with the following commands:")),p.info(` cd ${e}`),p.info(" npm install"),p.info(" npm run dev"),p.info(` webflow cloud deploy
106
-
107
- `),p.info("Run the following command to sync Webflow components when they update:"),p.info(` webflow devlink sync
108
- `),p.info("--- ")};rt();Re();U();be();var _h=D(require("path"));function cn(e){if(!e||e.trim()==="")return"/";let t=_h.posix.normalize(e);return t.startsWith("/")||(t="/"+t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t=t.split("/").map((r,o)=>o===0?r:encodeURIComponent(r)).join("/"),t}function _i(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}var Ch=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","nextjs").action(async(n,r)=>{let{framework:o}=r;if(!(await Ei()).find(a=>a===o)){p.error(`Framework ${o} not found`);return}await wl(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await Ei();p.info("Available project templates:"),n.length>0?n.forEach(r=>p.info(`- ${r}`)):p.info("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").option("-n, --project-name <name>","Project name").option("-f, --framework <framework>","Framework to use (e.g., astro, nextjs)").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-s, --site-id <siteId>","Webflow site ID to connect to").action(async n=>{let r=process.stdin.isTTY,o=await Ei(),i={};if(r&&Ve()){if(!n.projectName){let f=await Le({message:"What would you like to name your project?",validate:m=>m.trim()===""?"Project name cannot be empty":!0});f==null&&(console.error("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field."),process.exit(1)),i.projectName=f}if(n.framework||(i.scaffoldName=await Fe({message:"Which framework would you like to use?",choices:o.map(f=>({name:f,value:f})),default:"astro"})),!n.mount){let f=await Le({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=cn(f)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,u=n.mount||i.mountPath||"/app",l=n.siteId,c=cn(u),d=!0;(!s||s.trim()==="")&&(p.error("--project-name cannot be empty"),d=!1),(!a||!o.includes(a))&&(p.error(`--framework "${a||"undefined"}" not found`),p.error("Available frameworks:"),o.forEach(f=>p.error(`- ${f}`)),d=!1),_i(c)||(p.error("Invalid mount path: "+c),d=!1),!l&&(!r||re())&&(p.error("--site-id is required"),d=!1),(!d||typeof s!="string"||typeof c!="string"||typeof a!="string")&&process.exit(1),await wl(s,c,a,l)}),t.command("deploy").description("Deploy your Webflow Cloud project").option("-e, --environment <environment>","Environment name").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-n, --project-name <name>","Project name (for new projects)").option("-d, --directory <path>","Project directory path (for new projects)").option("--description <description>","Project description (for new projects)").option("--skip-mount-path-check","Skip mount path checking").option("--auto-publish","Automatically publish site for mount path updates").action(async n=>{let r;try{let{siteId:o,accessToken:i}=Ne();r=hi({authToken:i,siteId:o}),await r.promptForConsentIfNeeded()}catch(o){p.debug(`Failed to initialize telemetry: ${o}`)}try{if(n.directory)try{process.chdir(n.directory),p.info(`Changed directory to: ${n.directory}`)}catch(d){p.error(`Error: Could not change to directory ${n.directory}`),p.error(d instanceof Error?d.message:String(d)),process.exit(1)}let{manifest:o}=de(),s=(o.cloud||{}).project_id,a,u,l=n.projectName,c=n.description;if(n.environment&&n.mount)a=n.environment,u=cn(n.mount),_i(u)||(p.error("Invalid mount path: "+u),process.exit(1));else{let d=[];if(!s){!l&&re()&&(p.error("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field."),process.exit(1));try{let m=await gh();if(m.projects.length>0){let y=await Fe({message:"Select a project to deploy to:",choices:[...m.projects.map(F=>({name:`${F.name} (${F.description||"No description"})`,value:F.id})),{name:"Create new project",value:null}]});y?(s=y,p.info("\u{1F4DD} Updating webflow.json with project ID..."),De({cloud:{project_id:y}})):p.info("Creating a new project will be handled during deployment.")}else p.info("No existing projects found. A new project will be created during deployment.")}catch(m){p.warn("Could not fetch existing projects. A new project will be created during deployment."),p.warn(m instanceof Error?m.message:String(m))}}if(!s&&!l&&(l=await Le({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:m=>m.trim()===""?"Project name cannot be empty":!0})),s)try{let y=(await hh(s)).environments.map(F=>({name:`${F.branch} (${F.mount})`,value:{branch:F.branch,mount:F.mount}}));d.push(...y)}catch(m){p.error("Error fetching project environments:"),p.error(m instanceof Error?m.message:String(m)),process.exit(1)}d.push({name:"Create new environment",value:null});let f=await Fe({message:"Select an environment to deploy to:",choices:d});if(f)a=f.branch,u=cn(f.mount);else if(n.environment?a=n.environment:a=await Le({message:"What environment would you like to deploy to?",default:"main",validate:m=>m.trim()===""?"Environment cannot be empty":!0}),n.mount)u=cn(n.mount);else{let m=await Le({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=cn(m)}}_i(u)||(p.error("Invalid mount path: "+u),process.exit(1)),await Eh(a,u,{projectName:l,description:c,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:r})}catch(o){p.error("Error during deployment setup:"),p.error(o instanceof Error?o.message:String(o)),process.exit(1)}})};var Li=require("path"),eo=require("@webflow/data-types");fe();var Sh=D(require("md5"));function qr(e,t,n){try{let r=new Blob([e]).size,o=Buffer.from(e,"utf-8");return{value:o,meta:{title:t.replace(/^.*[\\\/]/,""),fileHash:(0,Sh.default)(o),size:r,...n||{}}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Th=D(require("node-fetch")),Ah=D(require("form-data"));async function vl(e,t){let n={...t.fields,file:e.value},r=new Ah.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,Th.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});XF(o)}function XF(e){switch(e.status){case 200:case 201:return;case 403:throw new Error("Unauthorized. Please check your AWS access key");default:throw new Error(`Something went wrong when uploading the file: ${e.statusText}`)}}U();rt();yn();var Oh=D(require("node-fetch"));fe();function QF({workspaceApiToken:e=process.env.WEBFLOW_WORKSPACE_API_TOKEN,siteApiToken:t=process.env.WEBFLOW_SITE_API_TOKEN,siteId:n=process.env.WEBFLOW_SITE_ID,libraryTarget:r=process.env.WEBFLOW_LIBRARY_TARGET}){if(r==="site"){if(!t)throw new Error("No API token provided");if(!n)throw new Error("No site provided");return{baseUrl:`${Z}/v2/sites/${n}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${Z}/v2/workspaces`,authToken:e}}function eE(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function tE(e){if(e.ok)return;if(e.status===401||e.status===403)throw new Error("Your API token is invalid or not authorized to perform this action. Remove the token from .env and run the command again to generate a new token.");if(e.status===404)throw new Error("Code components are rolling out in phases. Check back soon for access.");let t=await e.json();throw new Error(t.message||e.statusText)}async function Pt({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=QF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await(0,Oh.default)(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:eE(n)});return await tE(a),a.json()}async function kl({options:e}){return(await Pt({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function xl({name:e,description:t,slug:n,options:r}){return(await Pt({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function Fl({resourceId:e,files:t,options:n}){return(await Pt({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function El({resourceId:e,codeModule:t,components:n,options:r}){return(await Pt({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var rg=require("path"),og=D(require("webpack-merge")),mt=require("@webflow/data-types");function dn(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,use:[{ident:"babel-loader",loader:require.resolve("babel-loader"),options:{presets:[require.resolve("@babel/preset-env"),[require.resolve("@babel/preset-react"),{runtime:"automatic"}],require.resolve("@babel/preset-typescript")]}}]}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var jh=require("webpack"),Cl=D(require("mini-css-extract-plugin")),Bh=D(require("tsconfig-paths-webpack-plugin")),Lh=require("tsconfig-paths"),Sl=require("@webflow/data-types"),Rh=require("path");fe();var Ph=D(require("postcss-selector-parser")),_l=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,Ph.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});_l.postcss=!0;_l.postcssPlugin="CSSinShadowDOM";var Ih=_l;function nE(){return(0,Lh.loadConfig)(process.cwd()).resultType==="success"}function Hr({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:Cl.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[Ih]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new Cl.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],mode:n,resolve:{plugins:[nE()?new Bh.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Sl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,Rh.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Sl.Environment.Server)return{...s,plugins:[...s.plugins,new jh.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:xo,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Nh=require("@module-federation/enhanced"),Tl=require("@webflow/data-types");function Mh({libraryName:e,env:t,exposes:n}){if(t===Tl.Environment.Client)return{plugins:[new Nh.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Tl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}fe();U();var zh=require("memfs/lib/volume"),Jr=require("@webflow/data-types");var et="./tmp_entry",$h="components";function Wh(e,t){let n=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
82
+ \u2570`+t+"\u256F"};var Cc=async(e,t=xc,n=Po,r)=>{let o=r[n];try{for(let i of o){let s=Ee.join(t,i),a=ob(s,n,e);if(i.includes(Fc)||i.includes(Cr))await rb(i,a,e);else{let u=await wt.promises.readFile(i);await Ac(a,u)}}}catch(i){console.error("Error writing file, ",i)}},Sc=async()=>{let e={},t=Ee.resolve(__dirname),n=Ee.join(t,$s),r=await wt.promises.readdir(n);for(let o of r){let i=Ee.join(n,o),s=await Tc(i);e[o]=s}return e},Tc=async e=>{let t=[];try{let n=await wt.promises.readdir(e);for(let r of n){let o=Ee.join(e,r);if((await wt.promises.stat(o)).isDirectory()){let s=await Tc(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Ee}, `,n)}return t},Ac=async(e,t)=>{try{await wt.promises.mkdir(Ee.dirname(e),{recursive:!0}),await wt.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},rb=async(e,t,n)=>wt.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Ec,n);await Ac(t,o)}),ob=(e,t,n)=>{let r=Ee.join($s,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Ee.join(n,i)}return""};var Io=async()=>await Sc(),Rc=async()=>{let e=await Io(),t=Object.keys(e).join(", ");console.log(`Your available templates are: ${t}`),console.log('\u{1F4A1} Syntax: "webflow extension init projectName templateName"'),console.log('\u{1F31F} Example: "webflow extension init my-first-extension react"')},Nc=async(e,t=Po)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Io();await Cc(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},Mc=()=>mc(Ms,Cr,kc),$c=async e=>{let{config:t,filepath:n}=await Eo(Ms,Cr),r=Bc.join(n,"..",t.publicDir,vc),i=(await xn([],!0)).extensionTemplateDomain||"webflow-ext.com",s=t.apiVersion==="2"?"template/v2":"template",a=Object.keys(t.featureFlags||{}).map(m=>t.featureFlags?.[m]===!0?`ff_on=${m}`:`ff_off=${m}`).join("&"),u=a?`&${a}`:"",c=await(await(0,Pc.default)(`https://${i}/${s}?name=${t.name}${u}`)).text(),p=new Oc.Server((m,y)=>{if(m.url==="/"){jc.promises.readFile(r,{encoding:"utf-8"}).catch(F=>{Lc.program.error(F.message)}).then(F=>{let $=c.replace("{{ui}}",F);return y.writeHead(200,{"Content-Length":Buffer.byteLength($),"Content-Type":"text/html"}),y.end($)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(Ws(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(Ws(t));(0,Ic.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=ib(e);p.listen(f),console.log(_c(`Serving your extension at http://localhost:${f}`)+`
83
+ `)},ib=e=>{if(e){let t=parseInt(e,10);return isNaN(t)?(console.log("Invalid port number provided. Using the default port "+1337),1337):t}return 1337};Le();var Wc=e=>{let t=e.command("extension").description("CLI for developing Designer Extensions.");t.command("list").description("Get list of project templates that can be used for `init`").action(Rc),t.command("init").description("Bootstrap a Designer Extension.").argument("[projectName]","What is your Designer Extension's name?").argument("[scaffoldName]","Which project template do you want to use?").action(async(n,r)=>{let o=await Io(),i=Object.keys(o),s=await Be({message:"What would you like to name your Designer Extension?",default:n,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0});s===null&&(console.error("When --no-input mode is enabled please provide the [projectName] argument."),process.exit(1));let a=await xe({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:r||"default"});await Nc(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(Mc),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action($c)};tl();var Fm=e=>{e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.").command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","Site API token. Default: value set in WEBFLOW_SITE_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").description("Sync your Webflow components to your filesystem.").action(el)};var we=D(require("fs")),me=D(require("path"));U();var ci="astro",nl="cloud-scaffolds";var Em="package.json",_m="webflow.json",Cm="wf-placeholder-name",Sm="CLOUD_MOUNT_PATH",Tm="gitignore";var rl=async(e,t,n=ci,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let u=me.join(e,a.split(me.join(nl,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),p=l||c;if(a.includes(Em)||a.includes(_m)){let m=(await we.promises.readFile(a,"utf8")).replace(Cm,e);await di(u,m)}else if(p){let f=await we.promises.readFile(a,"utf8");await di(u,f.replace(Sm,t))}else if(me.basename(u).toLowerCase()===Tm){let f=await we.promises.readFile(a,"utf8"),m=me.join(me.dirname(u),".gitignore");await di(m,f)}else{let f=await we.promises.readFile(a);await di(u,f)}}catch(u){d.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{zt({siteId:o,siteApiToken:i,directory:e})}catch(a){d.error(`Error creating .env file: ${a}`)}}catch(s){throw d.error(`Error applying scaffold: ${s}`),s}},ol=async()=>{try{let e={},t=me.join(me.resolve(__dirname),nl);if(!we.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await we.promises.readdir(t);for(let r of n)try{let o=me.join(t,r);e[r]=await Am(o)}catch(o){d.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw d.error(`Error getting available scaffolds: ${e}`),e}},Am=async e=>{let t=[];try{if(!we.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await we.promises.readdir(e);for(let r of n)try{let o=me.join(e,r);(await we.promises.stat(o)).isDirectory()?t.push(...await Am(o)):t.push(o)}catch(o){d.error(`Error processing path ${r}: ${o}`)}}catch(n){throw d.error(`Error reading directory ${e}: ${n}`),n}return t},di=async(e,t)=>{try{await we.promises.mkdir(me.dirname(e),{recursive:!0}),await we.promises.writeFile(e,t)}catch(n){throw d.error(`Error writing file ${e}: ${n}`),n}};Rt();fe();function i1(e){return qe.forCloud({host:e.host||Z,authToken:e.authToken,siteId:e.siteId,projectId:e.projectId})}function pi(e){let t=i1(e);return{service:t,handleError:bo(t),trackUsage:Gu(t),trackPerformance:Do(t),async trackProjectInit(n,r,o,i){await t.sendUsage("project_init",r,o,{scaffold:n,scaffoldName:n,mountPath:i?.mountPath,devlinkSyncStatus:i?.devlinkSyncStatus,totalDuration:i?.totalDuration})},async isEnabled(){return await t.isEnabled()},async promptForConsentIfNeeded(){return await t.promptForConsentIfNeeded("Help us improve Webflow Cloud by sharing usage data and error reports?")}}}async function Se(e,t,n,r,o,i){if(e)try{await e.service.sendUsage(t,n,r,o),i&&t.includes("_failure")&&await e.service.sendError(i instanceof Error?i:new Error(String(i)),t.replace(/_success$|_failure$/,""),{...o,argv:process.argv.slice(2)})}catch(s){console.debug(`Failed to send ${t} telemetry:`,s)}}var _t=D(require("fs")),il=D(require("path"));U();var fi={angular:{package_identifier:"@angular/ssr",build_command:"ng build",config_template_path:"templates/angular/angular.json.template",wrangler_template_path:"templates/angular/wrangler.angular.json",assets_path:"dist/browser",deployment_type:"ssr",entrypoint_path:"./server.js"},astro:{package_identifier:"@astrojs/cloudflare",build_command:"astro build",config_template_path:"templates/astro/astro.config.mjs.template",additional_config_files:["templates/astro/webflow-loader.ts"],wrangler_template_path:"templates/astro/wrangler.astro.json",assets_path:"dist",deployment_type:"ssr",assets_exclude_path:"_worker.js",entrypoint_path:"./index.js"},docusaurus:{package_identifier:"@docusaurus/core",build_command:"docusaurus build",config_template_path:"templates/docusaurus/docusaurus.config.js.template",wrangler_template_path:"templates/docusaurus/wrangler.docusaurus.json",assets_path:"build",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},gatsby:{package_identifier:"gatsby",build_command:"gatsby build",wrangler_template_path:"templates/gatsby/wrangler.gatsby.json",assets_path:"public",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},nextjs:{package_identifier:"@opennextjs/cloudflare",build_command:"opennextjs-cloudflare build",config_template_path:"templates/nextjs/next.config.ts.template",additional_config_files:["templates/nextjs/webflow-loader.ts"],wrangler_template_path:"templates/nextjs/wrangler.nextjs.json",assets_path:".open-next/assets",entrypoint_path:"./worker.js",deployment_type:"ssr"},nuxt:{package_identifier:"nuxt",build_command:"nuxt build",config_template_path:"templates/nuxt/nuxt.config.ts.template",wrangler_template_path:"templates/nuxt/wrangler.nuxt.json",assets_path:".output/public",entrypoint_path:"./index.js",deployment_type:"ssr"},qwik:{package_identifier:"@builder.io/qwik",build_command:"qwik build",config_template_path:"templates/qwik/vite.config.ts.template",wrangler_template_path:"templates/qwik/wrangler.qwik.json",assets_path:"dist",deployment_type:"ssr",entrypoint_path:"./_worker.js"},react:{package_identifier:"@vitejs/plugin-react",build_command:"tsc -b && vite build",config_template_path:"templates/react/vite.config.ts.template",wrangler_template_path:"templates/react/wrangler.react.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"},remix:{package_identifier:"@remix-run/cloudflare",build_command:"remix vite:build",config_template_path:"templates/remix/vite.config.ts.template",wrangler_template_path:"templates/remix/wrangler.remix.json",assets_path:"build/client",deployment_type:"ssr",entrypoint_path:"./server.js"},solid:{package_identifier:"@solidjs/start",build_command:"vinxi build",config_template_path:"templates/solid/app.config.ts.template",wrangler_template_path:"templates/solid/wrangler.solid.json",assets_path:".output/public",deployment_type:"ssr",entrypoint_path:"./index.js"},svelte:{package_identifier:"@sveltejs/vite-plugin-svelte",build_command:"vite build",config_template_path:"templates/svelte/vite.config.ts.template",wrangler_template_path:"templates/svelte/wrangler.svelte.json",assets_path:".svelte-kit/cloudflare",deployment_type:"ssr",entrypoint_path:"./_worker.js"},vue:{package_identifier:"@vitejs/plugin-vue",build_command:"vue-tsc --build && vite build",config_template_path:"templates/vue/vite.config.ts.template",wrangler_template_path:"templates/vue/wrangler.vue.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"}},mi=["nextjs","astro","remix"];async function Om(e=process.cwd()){let t=il.join(e,"package.json"),n=il.join(e,"webflow.json");if(!_t.existsSync(t))throw new Error("No package.json file found");let r=null;if(_t.existsSync(n))try{let i=JSON.parse(_t.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!fi[i]){let s=Object.keys(fi).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!mi.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${mi.join(", ")}`);r=i,d.info(`Using framework type from webflow.json: ${r}`)}else throw new Error("webflow.json exists but doesn't contain valid framework information under the 'cloud' key")}catch(o){throw o instanceof SyntaxError?new Error("webflow.json contains invalid JSON"):o}if(!r)try{let o=JSON.parse(_t.readFileSync(t,"utf8"));for(let s of mi){let u=fi[s].package_identifier;if(o.dependencies?.[u]||o.devDependencies?.[u]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${mi.join(", ")} are currently supported.`);d.info(`Detected framework: ${r}`),_t.writeFileSync(n,JSON.stringify({cloud:{framework:r}},null,2))}catch(o){throw o instanceof SyntaxError?new Error("package.json contains invalid JSON"):o}return{framework:r,config:fi[r]}}var S=D(require("fs")),B=D(require("path")),qn=require("child_process"),eh=D(require("tar"));var te=D(require("fs")),ye=D(require("path"));var H={};Bl(H,{BRAND:()=>O1,DIRTY:()=>Zt,EMPTY_PATH:()=>u1,INVALID:()=>P,NEVER:()=>hF,OK:()=>ue,ParseStatus:()=>se,Schema:()=>W,ZodAny:()=>Tt,ZodArray:()=>pt,ZodBigInt:()=>Kt,ZodBoolean:()=>Xt,ZodBranded:()=>Ur,ZodCatch:()=>cn,ZodDate:()=>Qt,ZodDefault:()=>un,ZodDiscriminatedUnion:()=>yi,ZodEffects:()=>Oe,ZodEnum:()=>an,ZodError:()=>he,ZodFirstPartyTypeKind:()=>j,ZodFunction:()=>Di,ZodIntersection:()=>rn,ZodIssueCode:()=>b,ZodLazy:()=>on,ZodLiteral:()=>sn,ZodMap:()=>Wn,ZodNaN:()=>Un,ZodNativeEnum:()=>ln,ZodNever:()=>Ue,ZodNull:()=>tn,ZodNullable:()=>Xe,ZodNumber:()=>Yt,ZodObject:()=>ge,ZodOptional:()=>Te,ZodParsedType:()=>k,ZodPipeline:()=>Vr,ZodPromise:()=>At,ZodReadonly:()=>dn,ZodRecord:()=>bi,ZodSchema:()=>W,ZodSet:()=>zn,ZodString:()=>St,ZodSymbol:()=>Mn,ZodTransformer:()=>Oe,ZodTuple:()=>Ke,ZodType:()=>W,ZodUndefined:()=>en,ZodUnion:()=>nn,ZodUnknown:()=>dt,ZodVoid:()=>$n,addIssueToContext:()=>w,any:()=>$1,array:()=>V1,bigint:()=>B1,boolean:()=>zm,coerce:()=>mF,custom:()=>Mm,date:()=>L1,datetimeRegex:()=>Rm,defaultErrorMap:()=>ut,discriminatedUnion:()=>J1,effect:()=>sF,enum:()=>rF,function:()=>eF,getErrorMap:()=>Ln,getParsedType:()=>Ye,instanceof:()=>I1,intersection:()=>Z1,isAborted:()=>hi,isAsync:()=>Rn,isDirty:()=>gi,isValid:()=>Ct,late:()=>P1,lazy:()=>tF,literal:()=>nF,makeIssue:()=>zr,map:()=>X1,nan:()=>j1,nativeEnum:()=>oF,never:()=>z1,null:()=>M1,nullable:()=>lF,number:()=>Wm,object:()=>G1,objectUtil:()=>sl,oboolean:()=>fF,onumber:()=>pF,optional:()=>aF,ostring:()=>dF,pipeline:()=>cF,preprocess:()=>uF,promise:()=>iF,quotelessJson:()=>s1,record:()=>K1,set:()=>Q1,setErrorMap:()=>l1,strictObject:()=>q1,string:()=>$m,symbol:()=>R1,transformer:()=>sF,tuple:()=>Y1,undefined:()=>N1,union:()=>H1,unknown:()=>W1,util:()=>z,void:()=>U1});var z;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(z||(z={}));var sl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(sl||(sl={}));var k=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ye=e=>{switch(typeof e){case"undefined":return k.undefined;case"string":return k.string;case"number":return Number.isNaN(e)?k.nan:k.number;case"boolean":return k.boolean;case"function":return k.function;case"bigint":return k.bigint;case"symbol":return k.symbol;case"object":return Array.isArray(e)?k.array:e===null?k.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?k.promise:typeof Map<"u"&&e instanceof Map?k.map:typeof Set<"u"&&e instanceof Set?k.set:typeof Date<"u"&&e instanceof Date?k.date:k.object;default:return k.unknown}};var b=z.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),s1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),he=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,z.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};he.create=e=>new he(e);var a1=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===k.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,z.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${z.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${z.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${z.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:n="Invalid function arguments";break;case b.invalid_return_type:n="Invalid function return type";break;case b.invalid_date:n="Invalid date";break;case b.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:z.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case b.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case b.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case b.custom:n="Invalid input";break;case b.invalid_intersection_types:n="Intersection results could not be merged";break;case b.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:n="Number must be finite";break;default:n=t.defaultError,z.assertNever(e)}return{message:n}},ut=a1;var Pm=ut;function l1(e){Pm=e}function Ln(){return Pm}var zr=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",u=r.filter(l=>!!l).slice().reverse();for(let l of u)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},u1=[];function w(e,t){let n=Ln(),r=zr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ut?void 0:ut].filter(o=>!!o)});e.common.issues.push(r)}var se=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return P;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return P;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},P=Object.freeze({status:"aborted"}),Zt=e=>({status:"dirty",value:e}),ue=e=>({status:"valid",value:e}),hi=e=>e.status==="aborted",gi=e=>e.status==="dirty",Ct=e=>e.status==="valid",Rn=e=>typeof Promise<"u"&&e instanceof Promise;var _;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(_||(_={}));var Ae=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Im=(e,t)=>{if(Ct(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new he(e.common.issues);return this._error=n,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:u??n??a.defaultError}},description:o}}var W=class{get description(){return this._def.description}_getType(t){return Ye(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ye(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new se,ctx:{common:t.parent.common,data:t.data,parsedType:Ye(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Rn(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ye(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Im(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ye(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Ct(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Ct(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ye(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(Rn(o)?o:Promise.resolve(o));return Im(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:b.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>u?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Oe({schema:this,typeName:j.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Te.create(this,this._def)}nullable(){return Xe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return pt.create(this)}promise(){return At.create(this,this._def)}or(t){return nn.create([this,t],this._def)}and(t){return rn.create(this,t,this._def)}transform(t){return new Oe({...N(this._def),schema:this,typeName:j.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new un({...N(this._def),innerType:this,defaultValue:n,typeName:j.ZodDefault})}brand(){return new Ur({typeName:j.ZodBranded,type:this,...N(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new cn({...N(this._def),innerType:this,catchValue:n,typeName:j.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Vr.create(this,t)}readonly(){return dn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},c1=/^c[^\s-]{8,}$/i,d1=/^[0-9a-z]+$/,p1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,f1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,m1=/^[a-z0-9_-]{21}$/i,h1=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,g1=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,y1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,b1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",al,D1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,v1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,k1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F1=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Bm="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E1=new RegExp(`^${Bm}$`);function Lm(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function _1(e){return new RegExp(`^${Lm(e)}$`)}function Rm(e){let t=`${Bm}T${Lm(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function C1(e,t){return!!((t==="v4"||!t)&&D1.test(e)||(t==="v6"||!t)&&v1.test(e))}function S1(e,t){if(!h1.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function T1(e,t){return!!((t==="v4"||!t)&&w1.test(e)||(t==="v6"||!t)&&k1.test(e))}var St=class e extends W{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==k.string){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:k.string,received:i.parsedType}),P}let r=new se,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")y1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")al||(al=new RegExp(b1,"u")),al.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")f1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")m1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")c1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")d1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")p1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ulid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),w(o,{validation:"url",code:b.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"regex",code:b.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Rm(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?E1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?_1(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?g1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?C1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?S1(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?T1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?x1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?F1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):z.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:b.invalid_string,..._.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",..._.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",..._.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",..._.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,..._.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,..._.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",..._.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,..._.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,..._.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,..._.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,..._.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,..._.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,..._.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,..._.errToObj(n)})}nonempty(t){return this.min(1,_.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};St.create=e=>new St({checks:[],typeName:j.ZodString,coerce:e?.coerce??!1,...N(e)});function A1(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Yt=class e extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==k.number){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:k.number,received:i.parsedType}),P}let r,o=new se;for(let i of this._def.checks)i.kind==="int"?z.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?A1(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_finite,message:i.message}),o.dirty()):z.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,_.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:_.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&z.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Yt.create=e=>new Yt({checks:[],typeName:j.ZodNumber,coerce:e?.coerce||!1,...N(e)});var Kt=class e extends W{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==k.bigint)return this._getInvalidInput(t);let r,o=new se;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):z.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:k.bigint,received:n.parsedType}),P}gte(t,n){return this.setLimit("min",t,!0,_.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Kt.create=e=>new Kt({checks:[],typeName:j.ZodBigInt,coerce:e?.coerce??!1,...N(e)});var Xt=class extends W{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==k.boolean){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.boolean,received:r.parsedType}),P}return ue(t.data)}};Xt.create=e=>new Xt({typeName:j.ZodBoolean,coerce:e?.coerce||!1,...N(e)});var Qt=class e extends W{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==k.date){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:k.date,received:i.parsedType}),P}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),P}let r=new se,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):z.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:_.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:_.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Qt.create=e=>new Qt({checks:[],coerce:e?.coerce||!1,typeName:j.ZodDate,...N(e)});var Mn=class extends W{_parse(t){if(this._getType(t)!==k.symbol){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.symbol,received:r.parsedType}),P}return ue(t.data)}};Mn.create=e=>new Mn({typeName:j.ZodSymbol,...N(e)});var en=class extends W{_parse(t){if(this._getType(t)!==k.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.undefined,received:r.parsedType}),P}return ue(t.data)}};en.create=e=>new en({typeName:j.ZodUndefined,...N(e)});var tn=class extends W{_parse(t){if(this._getType(t)!==k.null){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.null,received:r.parsedType}),P}return ue(t.data)}};tn.create=e=>new tn({typeName:j.ZodNull,...N(e)});var Tt=class extends W{constructor(){super(...arguments),this._any=!0}_parse(t){return ue(t.data)}};Tt.create=e=>new Tt({typeName:j.ZodAny,...N(e)});var dt=class extends W{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ue(t.data)}};dt.create=e=>new dt({typeName:j.ZodUnknown,...N(e)});var Ue=class extends W{_parse(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:k.never,received:n.parsedType}),P}};Ue.create=e=>new Ue({typeName:j.ZodNever,...N(e)});var $n=class extends W{_parse(t){if(this._getType(t)!==k.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.void,received:r.parsedType}),P}return ue(t.data)}};$n.create=e=>new $n({typeName:j.ZodVoid,...N(e)});var pt=class e extends W{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==k.array)return w(n,{code:b.invalid_type,expected:k.array,received:n.parsedType}),P;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(w(n,{code:s?b.too_big:b.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(w(n,{code:b.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(w(n,{code:b.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Ae(n,s,n.path,a)))).then(s=>se.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Ae(n,s,n.path,a)));return se.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:_.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:_.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:_.toString(n)}})}nonempty(t){return this.min(1,t)}};pt.create=(e,t)=>new pt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:j.ZodArray,...N(t)});function Nn(e){if(e instanceof ge){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Te.create(Nn(r))}return new ge({...e._def,shape:()=>t})}else return e instanceof pt?new pt({...e._def,type:Nn(e.element)}):e instanceof Te?Te.create(Nn(e.unwrap())):e instanceof Xe?Xe.create(Nn(e.unwrap())):e instanceof Ke?Ke.create(e.items.map(t=>Nn(t))):e}var ge=class e extends W{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=z.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==k.object){let l=this._getOrReturnCtx(t);return w(l,{code:b.invalid_type,expected:k.object,received:l.parsedType}),P}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ue&&this._def.unknownKeys==="strip"))for(let l in o.data)s.includes(l)||a.push(l);let u=[];for(let l of s){let c=i[l],p=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Ae(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Ue){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(l==="strict")a.length>0&&(w(o,{code:b.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let p=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Ae(o,p,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let p=await c.key,f=await c.value;l.push({key:p,value:f,alwaysSet:c.alwaysSet})}return l}).then(l=>se.mergeObjectSync(r,l)):se.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return _.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:_.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:j.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of z.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of z.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Nn(this)}partial(t){let n={};for(let r of z.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of z.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Te;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return Nm(z.objectKeys(this.shape))}};ge.create=(e,t)=>new ge({shape:()=>e,unknownKeys:"strip",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});ge.strictCreate=(e,t)=>new ge({shape:()=>e,unknownKeys:"strict",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});ge.lazycreate=(e,t)=>new ge({shape:e,unknownKeys:"strip",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});var nn=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new he(a.ctx.common.issues));return w(n,{code:b.invalid_union,unionErrors:s}),P}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let u of r){let l={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(u=>new he(u));return w(n,{code:b.invalid_union,unionErrors:a}),P}}get options(){return this._def.options}};nn.create=(e,t)=>new nn({options:e,typeName:j.ZodUnion,...N(t)});var ct=e=>e instanceof on?ct(e.schema):e instanceof Oe?ct(e.innerType()):e instanceof sn?[e.value]:e instanceof an?e.options:e instanceof ln?z.objectValues(e.enum):e instanceof un?ct(e._def.innerType):e instanceof en?[void 0]:e instanceof tn?[null]:e instanceof Te?[void 0,...ct(e.unwrap())]:e instanceof Xe?[null,...ct(e.unwrap())]:e instanceof Ur||e instanceof dn?ct(e.unwrap()):e instanceof cn?ct(e._def.innerType):[],yi=class e extends W{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==k.object)return w(n,{code:b.invalid_type,expected:k.object,received:n.parsedType}),P;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(w(n,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),P)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=ct(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new e({typeName:j.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...N(r)})}};function ll(e,t){let n=Ye(e),r=Ye(t);if(e===t)return{valid:!0,data:e};if(n===k.object&&r===k.object){let o=z.objectKeys(t),i=z.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=ll(e[a],t[a]);if(!u.valid)return{valid:!1};s[a]=u.data}return{valid:!0,data:s}}else if(n===k.array&&r===k.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],u=ll(s,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===k.date&&r===k.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var rn=class extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(hi(i)||hi(s))return P;let a=ll(i.value,s.value);return a.valid?((gi(i)||gi(s))&&n.dirty(),{status:n.value,value:a.data}):(w(r,{code:b.invalid_intersection_types}),P)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};rn.create=(e,t,n)=>new rn({left:e,right:t,typeName:j.ZodIntersection,...N(n)});var Ke=class e extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.array)return w(r,{code:b.invalid_type,expected:k.array,received:r.parsedType}),P;if(r.data.length<this._def.items.length)return w(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),P;!this._def.rest&&r.data.length>this._def.items.length&&(w(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Ae(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>se.mergeArray(n,s)):se.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ke.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ke({items:e,typeName:j.ZodTuple,rest:null,...N(t)})};var bi=class e extends W{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.object)return w(r,{code:b.invalid_type,expected:k.object,received:r.parsedType}),P;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Ae(r,a,r.path,a)),value:s._parse(new Ae(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?se.mergeObjectAsync(n,o):se.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof W?new e({keyType:t,valueType:n,typeName:j.ZodRecord,...N(r)}):new e({keyType:St.create(),valueType:t,typeName:j.ZodRecord,...N(n)})}},Wn=class extends W{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.map)return w(r,{code:b.invalid_type,expected:k.map,received:r.parsedType}),P;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Ae(r,a,r.path,[l,"key"])),value:i._parse(new Ae(r,u,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of s){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return P;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let u of s){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return P;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}}}};Wn.create=(e,t,n)=>new Wn({valueType:t,keyType:e,typeName:j.ZodMap,...N(n)});var zn=class e extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==k.set)return w(r,{code:b.invalid_type,expected:k.set,received:r.parsedType}),P;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(w(r,{code:b.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(w(r,{code:b.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(u){let l=new Set;for(let c of u){if(c.status==="aborted")return P;c.status==="dirty"&&n.dirty(),l.add(c.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((u,l)=>i._parse(new Ae(r,u,r.path,l)));return r.common.async?Promise.all(a).then(u=>s(u)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:_.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:_.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};zn.create=(e,t)=>new zn({valueType:e,minSize:null,maxSize:null,typeName:j.ZodSet,...N(t)});var Di=class e extends W{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==k.function)return w(n,{code:b.invalid_type,expected:k.function,received:n.parsedType}),P;function r(a,u){return zr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ln(),ut].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return zr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ln(),ut].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:u}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof At){let a=this;return ue(async function(...u){let l=new he([]),c=await a._def.args.parseAsync(u,i).catch(m=>{throw l.addIssue(r(u,m)),l}),p=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(p,i).catch(m=>{throw l.addIssue(o(p,m)),l})})}else{let a=this;return ue(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new he([r(u,l.error)]);let c=Reflect.apply(s,this,l.data),p=a._def.returns.safeParse(c,i);if(!p.success)throw new he([o(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ke.create(t).rest(dt.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||Ke.create([]).rest(dt.create()),returns:n||dt.create(),typeName:j.ZodFunction,...N(r)})}},on=class extends W{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};on.create=(e,t)=>new on({getter:e,typeName:j.ZodLazy,...N(t)});var sn=class extends W{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return w(n,{received:n.data,code:b.invalid_literal,expected:this._def.value}),P}return{status:"valid",value:t.data}}get value(){return this._def.value}};sn.create=(e,t)=>new sn({value:e,typeName:j.ZodLiteral,...N(t)});function Nm(e,t){return new an({values:e,typeName:j.ZodEnum,...N(t)})}var an=class e extends W{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{expected:z.joinValues(r),received:n.parsedType,code:b.invalid_type}),P}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{received:n.data,code:b.invalid_enum_value,options:r}),P}return ue(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};an.create=Nm;var ln=class extends W{_parse(t){let n=z.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==k.string&&r.parsedType!==k.number){let o=z.objectValues(n);return w(r,{expected:z.joinValues(o),received:r.parsedType,code:b.invalid_type}),P}if(this._cache||(this._cache=new Set(z.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=z.objectValues(n);return w(r,{received:r.data,code:b.invalid_enum_value,options:o}),P}return ue(t.data)}get enum(){return this._def.values}};ln.create=(e,t)=>new ln({values:e,typeName:j.ZodNativeEnum,...N(t)});var At=class extends W{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==k.promise&&n.common.async===!1)return w(n,{code:b.invalid_type,expected:k.promise,received:n.parsedType}),P;let r=n.parsedType===k.promise?n.data:Promise.resolve(n.data);return ue(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};At.create=(e,t)=>new At({type:e,typeName:j.ZodPromise,...N(t)});var Oe=class extends W{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{w(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return P;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?P:u.status==="dirty"?Zt(u.value):n.value==="dirty"?Zt(u.value):u});{if(n.value==="aborted")return P;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?P:a.status==="dirty"?Zt(a.value):n.value==="dirty"?Zt(a.value):a}}if(o.type==="refinement"){let s=a=>{let u=o.refinement(a,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?P:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?P:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ct(s))return P;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Ct(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):P);z.assertNever(o)}};Oe.create=(e,t,n)=>new Oe({schema:e,typeName:j.ZodEffects,effect:t,...N(n)});Oe.createWithPreprocess=(e,t,n)=>new Oe({schema:t,effect:{type:"preprocess",transform:e},typeName:j.ZodEffects,...N(n)});var Te=class extends W{_parse(t){return this._getType(t)===k.undefined?ue(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Te.create=(e,t)=>new Te({innerType:e,typeName:j.ZodOptional,...N(t)});var Xe=class extends W{_parse(t){return this._getType(t)===k.null?ue(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Xe.create=(e,t)=>new Xe({innerType:e,typeName:j.ZodNullable,...N(t)});var un=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===k.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};un.create=(e,t)=>new un({innerType:e,typeName:j.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...N(t)});var cn=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Rn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new he(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new he(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};cn.create=(e,t)=>new cn({innerType:e,typeName:j.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...N(t)});var Un=class extends W{_parse(t){if(this._getType(t)!==k.nan){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:k.nan,received:r.parsedType}),P}return{status:"valid",value:t.data}}};Un.create=e=>new Un({typeName:j.ZodNaN,...N(e)});var O1=Symbol("zod_brand"),Ur=class extends W{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},Vr=class e extends W{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?P:i.status==="dirty"?(n.dirty(),Zt(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?P:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:j.ZodPipeline})}},dn=class extends W{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Ct(o)&&(o.value=Object.freeze(o.value)),o);return Rn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};dn.create=(e,t)=>new dn({innerType:e,typeName:j.ZodReadonly,...N(t)});function jm(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Mm(e,t={},n){return e?Tt.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=jm(t,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=jm(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Tt.create()}var P1={object:ge.lazycreate},j;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(j||(j={}));var I1=(e,t={message:`Input not instance of ${e.name}`})=>Mm(n=>n instanceof e,t),$m=St.create,Wm=Yt.create,j1=Un.create,B1=Kt.create,zm=Xt.create,L1=Qt.create,R1=Mn.create,N1=en.create,M1=tn.create,$1=Tt.create,W1=dt.create,z1=Ue.create,U1=$n.create,V1=pt.create,G1=ge.create,q1=ge.strictCreate,H1=nn.create,J1=yi.create,Z1=rn.create,Y1=Ke.create,K1=bi.create,X1=Wn.create,Q1=zn.create,eF=Di.create,tF=on.create,nF=sn.create,rF=an.create,oF=ln.create,iF=At.create,sF=Oe.create,aF=Te.create,lF=Xe.create,uF=Oe.createWithPreprocess,cF=Vr.create,dF=()=>$m().optional(),pF=()=>Wm().optional(),fF=()=>zm().optional(),mF={string:e=>St.create({...e,coerce:!0}),number:e=>Yt.create({...e,coerce:!0}),boolean:e=>Xt.create({...e,coerce:!0}),bigint:e=>Kt.create({...e,coerce:!0}),date:e=>Qt.create({...e,coerce:!0})};var hF=P;function wi(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,u=0,l=0,c=0,p=0;function f(x,T){let G=0,M=0;for(;G<x||!T;){let E=e.charCodeAt(r);if(E>=48&&E<=57)M=M*16+E-48;else if(E>=65&&E<=70)M=M*16+E-65+10;else if(E>=97&&E<=102)M=M*16+E-97+10;else break;r++,G++}return G<x&&(M=-1),M}function m(x){r=x,o="",i=0,s=16,p=0}function y(){let x=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Vn(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Vn(e.charCodeAt(r)))for(r++;r<e.length&&Vn(e.charCodeAt(r));)r++;else return p=3,e.substring(x,r);let T=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Vn(e.charCodeAt(r))){for(r++;r<e.length&&Vn(e.charCodeAt(r));)r++;T=r}else p=3;return e.substring(x,T)}function F(){let x="",T=r;for(;;){if(r>=n){x+=e.substring(T,r),p=2;break}let G=e.charCodeAt(r);if(G===34){x+=e.substring(T,r),r++;break}if(G===92){if(x+=e.substring(T,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:x+='"';break;case 92:x+="\\";break;case 47:x+="/";break;case 98:x+="\b";break;case 102:x+="\f";break;case 110:x+=`
84
+ `;break;case 114:x+="\r";break;case 116:x+=" ";break;case 117:let E=f(4,!0);E>=0?x+=String.fromCharCode(E):p=4;break;default:p=5}T=r;continue}if(G>=0&&G<=31)if(Gr(G)){x+=e.substring(T,r),p=2;break}else p=6;r++}return x}function $(){if(o="",p=0,i=r,u=a,c=l,r>=n)return i=n,s=17;let x=e.charCodeAt(r);if(ul(x)){do r++,o+=String.fromCharCode(x),x=e.charCodeAt(r);while(ul(x));return s=15}if(Gr(x))return r++,o+=String.fromCharCode(x),x===13&&e.charCodeAt(r)===10&&(r++,o+=`
85
+ `),a++,l=r,s=14;switch(x){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=F(),s=10;case 47:let T=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Gr(e.charCodeAt(r));)r++;return o=e.substring(T,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let G=n-1,M=!1;for(;r<G;){let E=e.charCodeAt(r);if(E===42&&e.charCodeAt(r+1)===47){r+=2,M=!0;break}r++,Gr(E)&&(E===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return M||(r++,p=1),o=e.substring(T,r),s=13}return o+=String.fromCharCode(x),r++,s=16;case 45:if(o+=String.fromCharCode(x),r++,r===n||!Vn(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=y(),s=11;default:for(;r<n&&A(x);)r++,x=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(x),r++,s=16}}function A(x){if(ul(x)||Gr(x))return!1;switch(x){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function R(){let x;do x=$();while(x>=12&&x<=15);return x}return{setPosition:m,getPosition:()=>r,scan:t?R:$,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>p}}function ul(e){return e===32||e===9}function Gr(e){return e===10||e===13}function Vn(e){return e>=48&&e<=57}var Um;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Um||(Um={}));var yF=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Gn=200,bF={" ":{"\n":new Array(Gn).fill(0).map((e,t)=>`
86
+ `+" ".repeat(t)),"\r":new Array(Gn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Gn).fill(0).map((e,t)=>`\r
87
+ `+" ".repeat(t))}," ":{"\n":new Array(Gn).fill(0).map((e,t)=>`
88
+ `+" ".repeat(t)),"\r":new Array(Gn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Gn).fill(0).map((e,t)=>`\r
89
+ `+" ".repeat(t))}};var vi;(function(e){e.DEFAULT={allowTrailingComma:!1}})(vi||(vi={}));function Vm(e,t=[],n=vi.DEFAULT){let r=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):r!==null&&(o[r]=u)}return Gm(e,{onObjectBegin:()=>{let u={};s(u),i.push(o),o=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let u=[];s(u),i.push(o),o=u,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},n),o[0]}function Gm(e,t,n=vi.DEFAULT){let r=wi(e,!1),o=[],i=0;function s(L){return L?()=>i===0&&L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(L){return L?Y=>i===0&&L(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(L){return L?Y=>i===0&&L(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(L){return L?()=>{i>0?i++:L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(L){return L?()=>{i>0&&i--,i===0&&L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let p=l(t.onObjectBegin),f=u(t.onObjectProperty),m=c(t.onObjectEnd),y=l(t.onArrayBegin),F=c(t.onArrayEnd),$=u(t.onLiteralValue),A=a(t.onSeparator),R=s(t.onComment),x=a(t.onError),T=n&&n.disallowComments,G=n&&n.allowTrailingComma;function M(){for(;;){let L=r.scan();switch(r.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:T||E(11);break;case 2:E(12);break;case 6:E(16);break}switch(L){case 12:case 13:T?E(10):R();break;case 16:E(1);break;case 15:case 14:break;default:return L}}}function E(L,Y=[],ht=[]){if(x(L),Y.length+ht.length>0){let to=r.getToken();for(;to!==17;){if(Y.indexOf(to)!==-1){M();break}else if(ht.indexOf(to)!==-1)break;to=M()}}}function h(L){let Y=r.getTokenValue();return L?$(Y):(f(Y),o.push(Y)),M(),!0}function g(){switch(r.getToken()){case 11:let L=r.getTokenValue(),Y=Number(L);isNaN(Y)&&(E(2),Y=0),$(Y);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return M(),!0}function I(){return r.getToken()!==10?(E(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(A(":"),M(),Pe()||E(4,[],[2,5])):E(5,[],[2,5]),o.pop(),!0)}function v(){p(),M();let L=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(L||E(4,[],[]),A(","),M(),r.getToken()===2&&G)break}else L&&E(6,[],[]);I()||E(4,[],[2,5]),L=!0}return m(),r.getToken()!==2?E(7,[2],[]):M(),!0}function oe(){y(),M();let L=!0,Y=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(Y||E(4,[],[]),A(","),M(),r.getToken()===4&&G)break}else Y&&E(6,[],[]);L?(o.push(0),L=!1):o[o.length-1]++,Pe()||E(4,[],[4,5]),Y=!0}return F(),L||o.pop(),r.getToken()!==4?E(8,[4],[]):M(),!0}function Pe(){switch(r.getToken()){case 3:return oe();case 1:return v();case 10:return h(!0);default:return g()}}return M(),r.getToken()===17?n.allowEmptyContent?!0:(E(4,[],[]),!1):Pe()?(r.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}var qm;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(qm||(qm={}));var Hm;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Hm||(Hm={}));var cl=Vm;var Jm;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Jm||(Jm={}));U();var Zm=H.object({name:H.string(),main:H.string(),compatibility_date:H.string(),compatibility_flags:H.array(H.string()).optional(),placement:H.object({mode:H.string()}).passthrough().optional(),assets:H.object({directory:H.string(),binding:H.string().optional()}).passthrough().optional(),d1_databases:H.array(H.object({database_name:H.string(),database_id:H.string(),binding:H.string(),migrations_dir:H.string().optional()}).passthrough()).default([]),kv_namespaces:H.array(H.object({binding:H.string(),id:H.string()}).passthrough()).default([]),r2_buckets:H.array(H.object({binding:H.string(),bucket_name:H.string()}).passthrough()).default([])}).passthrough();function Ym(e,t="wrangler.json"){let n=ye.join(e,t);if(!te.existsSync(n)){if(t.endsWith(".json"))return d.warn(`/${t} not found, checking for /${t}c`),Ym(e,t+"c");d.warn(`/${t} not found`);return}let r=te.readFileSync(n,"utf8");d.info(`reading /${t}...`);let o;try{o=cl(r)}catch(i){d.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Zm.parse(o);return d.info(`successfully loaded /${t}`),i}catch(i){d.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function Km(e,t,n={}){if(!te.existsSync(e))return 0;te.mkdirSync(t,{recursive:!0});let r=te.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=ye.join(e,i.name),a=ye.join(t,i.name);i.isDirectory()?o+=Km(s,a,n):(te.copyFileSync(s,a),o++)}return o}async function Xm(e,t){let n=null,r=null,o=ye.join(t,"wrangler.json"),i=ye.join(t,"wrangler.jsonc");te.existsSync(o)?(n=o,r=".json"):te.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(d.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),te.copyFileSync(n,ye.join(t,`clouduser.wrangler${r}`)));let s=n?Ym(t,ye.basename(n)):null,a=ye.join(__dirname,e.config.wrangler_template_path),u=ye.join(t,"wrangler.json");if(!te.existsSync(a))throw new Error(`Wrangler template not found at ${a}. Make sure the template is properly copied during build.`);if(d.info(`copying template /templates/${e.framework}/wrangler.${e.framework}.json to /wrangler.json`),te.copyFileSync(a,u),!s)return;let l=JSON.parse(te.readFileSync(u,"utf8"));if(s.kv_namespaces&&s.kv_namespaces.length>0&&(l.kv_namespaces=s.kv_namespaces,d.info(`merged ${s.kv_namespaces.length} KV namespace(s) into template`)),s.r2_buckets&&s.r2_buckets.length>0&&(l.r2_buckets=s.r2_buckets,d.info(`merged ${s.r2_buckets.length} R2 bucket(s) into template`)),s.d1_databases&&s.d1_databases.length>0&&(l.d1_databases=s.d1_databases,d.info(`merged ${s.d1_databases.length} D1 database(s) into template`)),te.writeFileSync(u,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let c in s.d1_databases){let p=s.d1_databases[c];if(!p.migrations_dir){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir is not defined`);continue}let f=p.migrations_dir,m=ye.join(t,f);if(!te.existsSync(m)){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=ye.join(t,"clouduser","migrations",f),F=Km(m,y);F>0?d.info(`copied ${F} migrations to /clouduser/migrations/${f}`):d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function _F(e){if(!/^[a-z0-9-]+$/.test(e))throw new Error(`Invalid object storage bucket name ${JSON.stringify(e)}: Only lowercase letters, numbers, and hyphens are allowed.`);if(e.startsWith("-")||e.endsWith("-"))throw new Error(`Invalid object storage bucket name "${e}": Cannot begin or end with a hyphen.`);if(e.length>27)throw new Error(`Invalid object storage bucket name "${e}": Must be 27 characters or fewer (currently ${e.length} characters).`)}function Qm(e){let t=null;for(let i of[".json",".jsonc"]){let s=ye.join(e,`clouduser.wrangler${i}`);if(te.existsSync(s)){t=s;break}}if(!t)return;let n=te.readFileSync(t,"utf8"),r;try{r=cl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Zm.parse(r);if(o.d1_databases&&o.d1_databases.length>0&&o.d1_databases.length>5)throw new Error(`Too many D1 databases configured: ${o.d1_databases.length}. Maximum allowed is 5.`);if(o.kv_namespaces&&o.kv_namespaces.length>0&&o.kv_namespaces.length>5)throw new Error(`Too many KV namespaces configured: ${o.kv_namespaces.length}. Maximum allowed is 5.`);if(o.r2_buckets&&o.r2_buckets.length>0){if(o.r2_buckets.length>5)throw new Error(`Too many R2 buckets configured: ${o.r2_buckets.length}. Maximum allowed is 5.`);d.info(`validating ${o.r2_buckets.length} object storage bucket name(s)...`);for(let i of o.r2_buckets)_F(i.bucket_name)}}U();nr();async function th(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=B.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||B.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=pl(n);await Se(t.telemetry,"cloud_build_start",!0,0,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),S.mkdirSync(o,{recursive:!0});try{d.info(Q.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
90
+ `)),await CF(n,e.framework,t.telemetry),d.info(Q.green(`--- \u{1F527} Setting up framework configuration ----------------------
91
+ `)),await SF(n,e,s,t.deployUrl,t.environmentId),d.info(Q.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
92
+ `)),await Xm(e,n),Qm(n),d.info(Q.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
93
+ `)),d.info(`running ${e.config.build_command}...`),await TF(n,e.config.build_command,t.telemetry),d.info(Q.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
94
+ `)),await AF(n,i),d.info(Q.green(`--- \u{1F4C1} Copying assets ------------------------------------------
95
+ `)),await OF(n,i,e,s),d.info(Q.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
96
+ `));let l=await PF(i),c=Date.now()-a;return d.info(`\u2705 Build completed in ${(c/1e3).toFixed(1)}s`),await Se(t.telemetry,"cloud_build_success",!0,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),l}catch(l){let c=Date.now()-a;throw await Se(t.telemetry,"cloud_build_failure",!1,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l))),l}}function pl(e){let t=B.join(e,"wrangler.json");if(!S.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(S.readFileSync(t,"utf8")),r=n.kv_namespaces||[],o=n.d1_databases||[],i=n.r2_buckets||[],s=n.vars||{};return{hasKV:r.length>0,hasD1:o.length>0,hasR2:i.length>0,hasVars:Object.keys(s).length>0,kvCount:r.length,d1Count:o.length,r2Count:i.length,varCount:Object.keys(s).length}}catch(n){return console.debug("Failed to parse wrangler.json for bindings detection:",n),{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0}}}function nh(e){try{let t=B.dirname(e);t.includes(".tmp/webflow-build-")&&(d.info(Q.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
97
+ `)),S.rmSync(t,{recursive:!0,force:!0}))}catch(t){d.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function rh(e,t){try{if(!t.config.config_template_path)return;let n=B.join(__dirname,t.config.config_template_path),r=B.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));d.info(Q.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
98
+ `));for(let s of["mjs","cjs","js","ts"]){let a=B.join(e,`clouduser.${o}.${s}`),u=B.join(e,`${o}.${s}`);if(S.existsSync(a)){d.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),S.existsSync(u)&&S.unlinkSync(u),S.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=B.join(e,`clouduser.wrangler${s}`);if(S.existsSync(a)){d.info(`restoring user wrangler${s} from backup...`);let u=B.join(e,"wrangler.json");S.existsSync(u)&&S.unlinkSync(u);let l=B.join(e,`wrangler${s}`);S.renameSync(a,l);break}}let i=B.join(e,"clouduser");S.existsSync(i)&&(d.info("cleaning up clouduser directory..."),S.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=B.join(e,B.basename(s));S.existsSync(a)&&(d.info(`cleaning up additional config file ${a}...`),S.unlinkSync(a))}}catch(n){d.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function CF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=B.join(e,"package.json"),u=JSON.parse(S.readFileSync(a,"utf8"));u.dependencies?.["@astrojs/react"]||u.devDependencies?.["@astrojs/react"]||(d.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,qn.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=B.join(e,"package-lock.json");S.existsSync(i)?(d.info("Running npm ci..."),(0,qn.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(d.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,qn.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await Se(n,"cloud_install_dependencies_success",!0,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await Se(n,"cloud_install_dependencies_failure",!1,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json")),errorType:i instanceof Error?i.name:"unknown",errorMessage:i instanceof Error?i.message:String(i)},i instanceof Error?i:new Error(String(i))),i}}async function SF(e,t,n,r,o){if(d.info(`Framework: ${t.framework}`),d.info(`Mount path: ${n}`),d.info(`Deployment type: ${t.config.deployment_type}`),!t.config.config_template_path)return;let i=B.join(__dirname,t.config.config_template_path),s=B.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let p of["mjs","cjs","js","ts"]){let f=B.join(e,`${a}.${p}`);if(S.existsSync(f)){let m=B.join(e,`clouduser.${a}.${p}`);d.info(`renaming user base config /${a}.${p} to /clouduser.${a}.${p}...`),S.renameSync(f,m);break}}let u=B.join(e,s);d.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=S.readFileSync(i,"utf8").replace(/\$\{([^}]+)\}/g,(p,f)=>({COSMIC_MOUNT_PATH:n,COSMIC_DEPLOY_URL:r||(o?`https://${o}.wf-app-prod.cosmic.webflow.services`:"")})[f]||p);S.writeFileSync(u,c);for(let p of t.config.additional_config_files||[]){let f=B.join(__dirname,p);S.statSync(f,{throwIfNoEntry:!1})?(d.info(`copying additional config file /${p} to ${B.join(e,B.basename(p))}`),S.copyFileSync(f,B.join(e,B.basename(p)))):d.warn(`additional config file /${p} does not exist; skipping`)}}async function TF(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,qn.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await Se(n,"cloud_build_command_success",!0,a,{buildCommand:t})}catch(o){let i=Date.now()-r;throw await Se(n,"cloud_build_command_failure",!1,i,{buildCommand:t,errorType:o instanceof Error?o.name:"unknown",errorMessage:o instanceof Error?o.message:String(o)},o instanceof Error?o:new Error(String(o))),new Error(`Build command failed: ${t}`)}}async function AF(e,t){S.mkdirSync(t,{recursive:!0});let n=B.join(e,"wrangler.json"),r=B.join(e,"wrangler.jsonc");if(!S.existsSync(n)&&!S.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,qn.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function OF(e,t,n,r){let o=n.config.assets_path,i=n.config.assets_exclude_path,s=r.replace(/\/+$/,"").replace(/^\/+/,"");if(n.framework==="nextjs"||n.framework==="astro"){let p=B.join(e,o);if(S.existsSync(p)&&S.statSync(p).isDirectory()){let m=S.readdirSync(p,{withFileTypes:!0}).find(y=>!(!y.isDirectory()||i&&y.name===i||n.framework==="astro"&&(y.name==="_routes.json"||y.name==="_worker.js")));m&&(o=`${o}/${m.name}`)}}let a=B.join(t,"assets",s||"");S.mkdirSync(a,{recursive:!0});let u=B.join(e,o);if(S.existsSync(u)&&S.statSync(u).isDirectory()){d.info(`copying assets from /${o} to output/assets...`);try{i?(d.info(`excluding ${i}`),oh(u,a,i)):dl(u,a)}catch(p){d.error(`Failed to copy assets: ${p}`)}}else d.info("No assets to copy or assets directory not found");let l=B.join(e,"webflow.json");S.existsSync(l)&&S.copyFileSync(l,B.join(t,"webflow.json"));let c=null;for(let p of[".json",".jsonc"]){let f=B.join(e,`clouduser.wrangler${p}`);if(S.existsSync(f)){c=f;break}}if(c){d.info("including user wrangler config in output..."),S.copyFileSync(c,B.join(t,"clouduser.wrangler.json"));let p=B.join(e,"clouduser","migrations");if(S.existsSync(p)){d.info("copying migrations from clouduser/migrations to output/migrations...");let f=B.join(t,"migrations");dl(p,f)}}}async function PF(e){let t=`${e}.tar.gz`;try{return await eh.create({gzip:!0,file:t,cwd:B.dirname(e)},[B.basename(e)]),d.info(`Tarball created: ${t}`),t}catch(n){throw d.error(`Failed to create tarball: ${n}`),new Error("Failed to create tarball")}}function dl(e,t){S.mkdirSync(t,{recursive:!0});let n=S.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=B.join(e,r.name),i=B.join(t,r.name);r.isDirectory()?dl(o,i):S.copyFileSync(o,i)}}function oh(e,t,n){S.mkdirSync(t,{recursive:!0});let r=S.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=B.join(e,o.name),s=B.join(t,o.name);o.isDirectory()?oh(i,s,n):S.copyFileSync(i,s)}}Re();fe();U();var IF="DUPLICATE_ENVIRONMENT_MOUNT",jF="ENVIRONMENT_MOUNT_MISMATCH",BF="DUPLICATE_ENVIRONMENT_BRANCH",LF="INVALID_MOUNT_PATH_FORMAT",RF="INVALID_PROJECT_ID",ih={[IF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[jF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[BF]:"An environment with this branch already exists for this project.",[LF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[RF]:"Invalid project ID. This project may have been deleted or belongs to a different site. Please remove the 'project_id' from your webflow.json file and redeploy to create a new project."};function sh(e){let t={timestamp:new Date().toISOString()};e instanceof Error?(t.code=e.name,t.msg=e.message,t.stack=e.stack):typeof e=="object"&&e!==null&&(t.code=e.code,t.msg=e.msg,t.status=e.status);let n=t.msg||"";d.error(`Error Details: ${JSON.stringify({timestamp:t.timestamp,code:t.code,message:t.msg,status:t.status,stack:t.stack},null,2)}`);for(let r in ih)if(n.includes(r))return ih[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var Hn=D(require("fs")),fl=require("child_process");U();var ah=104857600;function lh(e){if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`}function NF(){try{let e=(0,fl.execSync)("git rev-parse HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();if(!/^[0-9a-f]{40}$/.test(e))throw new Error("Invalid commit hash format");try{return(0,fl.execSync)("git status --porcelain --untracked-files=no",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().length>0?`git@${e}+dirty`:`git@${e}`}catch{return`git@${e}`}}catch{return`noversion@${new Date().toISOString()}`}}async function ml(e,t){let{accessToken:n}=Me(),r=await fetch(`${Z}${e}`,{method:t.method,headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:t.body?JSON.stringify(t.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=sh(i);throw new Error(s)}return r.json()}async function uh(e,t,n){let{manifest:r}=ce(),o=r.cloud||{},i=o.project_id,s=o.framework;s||(d.error("Error: No framework specified in webflow.json"),d.error("Please ensure your webflow.json has a cloud.framework property"),process.exit(1));let{siteId:a,accessToken:u}=Me(),l=await MF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:n?.projectName,description:n?.description,directory:n?.directory,version:NF()});return!i&&l.project_id&&(d.info("\u{1F4DD} Updating webflow.json with project ID..."),ae({cloud:{...o,project_id:l.project_id}})),l}async function MF(e){let{siteId:t,framework:n,mountPath:r,environment:o,version:i,projectId:s,projectName:a,description:u,directory:l}=e,c={framework:n,mount_path:r,environment:o,version:i};return s&&(c.project_id=s),a&&(c.project_name=a),u&&(c.description=u),l&&(c.app_path=l),ml(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function ch(e){let{siteId:t}=Me();return ml(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function dh(){let{siteId:e}=Me();return ml(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function ph(e,t){if(!Hn.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=Hn.statSync(e);if(n.size>ah)throw new Error(`Build output is too large (${lh(n.size)}). Maximum allowed size is ${lh(ah)}.`);let r=Hn.readFileSync(e),o=JSON.parse(t);if(!o.fields)throw new Error("Upload URL is missing fields property");let i=new FormData;Object.entries(o.fields).forEach(([u,l])=>{i.append(u,l)});let s=new Blob([r],{type:"application/gzip"});i.append("file",s,"output.tar.gz");let a=await fetch(o.url,{method:"POST",body:i});if(!a.ok){let u=await a.text();throw d.error(`\u274C Upload failed with response: ${u}`),new Error(`Failed to upload tarball: ${a.status} ${a.statusText}`)}}async function fh(e,t){if(!e||e==="undefined")throw new Error("Completion URL is undefined or invalid");let n=new URL(e);t&&n.searchParams.set("failed","true");let r=await fetch(n.toString(),{method:"GET"});if(!r.ok)throw new Error(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}Le();as();U();async function mh(e,t){let{siteId:n,accessToken:r}=Me(),o=yn("Validating mount path configuration...").start();try{let i=await Fr(r,n),s=await As(r,n),a=[`${i.shortName}.webflow.io`,...s.customDomains?.map(m=>m.url)||[]],u=0;o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (0/${a.length})`;let l=a.map(async m=>{try{let y=await Os(m),F=Array.isArray(y.cosmic)?y.cosmic.map(A=>A.mountPath).filter(A=>typeof A=="string"):[],$=Ps(y,e,t);return{domain:m,mountPaths:F,isValid:$===!0}}catch(y){return{domain:m,mountPaths:[],isValid:!1,error:y instanceof Error?y.message:String(y)}}finally{u++,o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (${u}/${a.length})`}}),c=await Promise.all(l),p=c.some(m=>!m.isValid),f=c.every(m=>m.isValid);return o.succeed("Mount path validation completed"),{isValid:f,domains:c,needsPublishing:p}}catch(i){throw o.fail("Mount path validation failed"),i}}async function hh(e,t){let{siteId:n,accessToken:r}=Me();try{let o=await Fr(r,n),i=await As(r,n),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await Os(l),p=Array.isArray(c.cosmic)?c.cosmic.map(m=>m.mountPath).filter(m=>typeof m=="string"):[],f=Ps(c,e,t);return{domain:l,isValid:f}}catch(c){return d.debug(`Could not verify mount path for ${l}: ${c}`),{domain:l,isValid:!1}}});return(await Promise.all(a)).filter(l=>l.isValid).map(l=>l.domain)}catch(o){return d.debug(`Error getting valid domains: ${o}`),[]}}function gh(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function yh(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await mo({message:"Select which domains you want to publish to update the mount path configuration:",choices:t,validate:r=>r.length===0?"Please select at least one domain to publish to.":!0});return n??[]}async function bh(){return await pe({message:"The mount path doesn't match on some domains. Would you like to publish the site to update the configuration?",default:!0})}async function hl(e){let{siteId:t,accessToken:n}=Me(),r=yn(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await Fr(n,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await uc(n,t,{domains:a,publishToWebflowSubdomain:s}),r.succeed(`Site published successfully to selected domains: ${e.join(", ")}`)}catch{throw r.fail("Failed to publish site"),new Error("Failed to publish site")}}Re();U();nr();fe();de();var ki=async()=>{try{let e=await ol();return Object.keys(e)}catch(e){return d.error(`Failed to get available scaffolds: ${e}`),[]}},gl=async(e,t,n=ci,r)=>{let o=`./${e}`,i=await ol(),s=null,a=!1;try{let u=Date.now(),l=await Ut({clientId:xo,scope:Fo}),c=await xr(l);c.length===0&&(d.error("Error: No Webflow sites found in your account."),d.error("Please make sure you have at least one site in your Webflow account."),process.exit(1));let p;r?(p=c.find(m=>m.id===r),p||(d.error(`Error: Site with ID "${r}" not found in your account.`),d.info("Available sites:"),c.forEach(m=>{d.info(`- ${m.displayName} (ID: ${m.id})`)}),process.exit(1)),d.info(`Using site: ${p.displayName} (${p.id})`)):p=await Er(c),s=pi({authToken:l,siteId:p.id}),await rl(e,t,n,i,p.id,l),process.chdir(o),await s.promptForConsentIfNeeded(),d.info("Running devlink sync to fetch your Webflow components...");try{await $F({site:p.id,apiToken:l}),a=!0}catch(m){d.error(`Failed to run devlink sync: ${m}`),d.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}let f=Date.now()-u;await s.trackProjectInit(n,!0,void 0,{devlinkSyncStatus:a,totalDuration:f,mountPath:t}),Dh(e)}catch(u){d.error("Error during Webflow authentication:"),d.error(String(u)),await rl(e,t,n,i),process.chdir(o),d.error("Project scaffold was created, but authentication failed."),d.error("To set up Webflow credentials later, run:"),d.error(" webflow auth login"),Dh(e),process.exit(1)}},$F=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(tl(),xm));await t(void 0,{site:e.site,apiToken:e.apiToken})},WF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=ce();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},zF=async(e,t,n)=>{d.info("\u{1F50D} Validating mount path configuration...");let r=await mh(e,t);if(r.isValid)d.info("\u2705 Mount path validation passed");else if(d.info(`
99
+ \u{1F4CB} Mount path validation results:`),r.domains.forEach(o=>{let i=o.isValid?"\u2705":"\u274C",s=o.isValid?`(mountPath: ${o.mountPaths[0]})`:"(no matching mountPath)";d.info(`${i} ${o.domain} ${s}`),o.error&&d.debug(` Error: ${o.error}`)}),r.needsPublishing)if(n){d.info("\u{1F680} Auto-publishing site to update mount path configuration...");let o=r.domains.filter(i=>!i.isValid).map(i=>i.domain);await hl(o)}else if(await bh()&&Ve()){let i=r.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await yh(i);await hl(s)}else d.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},UF=async(e,t,n,r)=>{d.info(`
100
+ \u{1F3D7}\uFE0F Building project...`);let o=await th(e,{mountPath:n,telemetry:r?.telemetry,deployUrl:t.deploy_url,environmentId:t.environment_id});d.info("\u{1F4E4} Uploading build artifacts...");let i=Date.now();await ph(o,t.upload_url);let s=Date.now()-i;return d.info(`\u2705 Upload completed in ${(s/1e3).toFixed(1)}s`),o},VF=async(e,t)=>{d.success(`
101
+ \u{1F310} Your cloud app will soon be available at:`);try{let n=await hh(e,t),r=gh(n,e);r.length>0?r.forEach(o=>{d.info(` ${o}`)}):d.warn(" No domains found with the correct mount path configuration yet.")}catch(n){d.warn(` Could not determine deployment links: ${n instanceof Error?n.message:n}`)}},GF=e=>{e.site_slug?d.success(`Visit your deployment:
102
+
103
+ ${kn}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):d.info(`
104
+ Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},qF=async(e,t,n)=>{try{await fh(e.completion_url,!!n),n?d.error(`
105
+ \u274C Deployment failed due to build error.`):(d.success(`
106
+ \u2705 Deployment triggered successfully!`),await VF(t,e.environment_id),GF(e))}catch(r){d.error(`Failed to trigger deployment: ${r}`),process.exit(1)}},HF=(e,t)=>{e&&rh(process.cwd(),e),t&&nh(t)},wh=async(e,t,n)=>{let r=null,o=null,i=Date.now(),s=null,a=null,u=pl(process.cwd());await Se(n?.telemetry,"cloud_deploy_start",!0,void 0,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u});try{d.info("\u{1F527} Detecting framework..."),s=await Om(),d.info(`Framework: ${s.framework}`),d.info(`Build command: ${s.config.build_command}`),d.info("\u{1F3D7}\uFE0F Building project..."),r=await uh(e,t,n),WF(n)?d.info("\u23ED\uFE0F Skipping mount path validation..."):await zF(t,r.environment_id,n?.autoPublish),o=await UF(s,r,t,n),d.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let l=Date.now()-i;await Se(n?.telemetry,"cloud_deploy_success",!0,l,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,framework:s.framework,buildCommand:s.config.build_command,cloudflareBindings:u})}catch(l){a=l instanceof Error?l:new Error(String(l)),d.error("Error during deployment initialization:"),d.error(a.message);let c=Date.now()-i;await Se(n?.telemetry,"cloud_deploy_failure",!1,c,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l)))}finally{HF(s,o),r&&await qF(r,t,a),a&&process.exit(1)}},Dh=e=>{d.info("--- "),d.info(Q.bold.green("Get started with the following commands:")),d.info(` cd ${e}`),d.info(" npm install"),d.info(" npm run dev"),d.info(` webflow cloud deploy
107
+
108
+ `),d.info("Run the following command to sync Webflow components when they update:"),d.info(` webflow devlink sync
109
+ `),d.info("--- ")};Re();Le();U();de();var vh=D(require("path"));function pn(e){if(!e||e.trim()==="")return"/";let t=vh.posix.normalize(e);return t.startsWith("/")||(t="/"+t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t=t.split("/").map((r,o)=>o===0?r:encodeURIComponent(r)).join("/"),t}function xi(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}var kh=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","nextjs").action(async(n,r)=>{let{framework:o}=r;if(!(await ki()).find(a=>a===o)){d.error(`Framework ${o} not found`);return}await gl(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await ki();d.info("Available project templates:"),n.length>0?n.forEach(r=>d.info(`- ${r}`)):d.info("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").option("-n, --project-name <name>","Project name").option("-f, --framework <framework>","Framework to use (e.g., astro, nextjs)").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-s, --site-id <siteId>","Webflow site ID to connect to").action(async n=>{let r=process.stdin.isTTY,o=await ki(),i={};if(r&&Ve()){if(!n.projectName){let f=await Be({message:"What would you like to name your project?",validate:m=>m.trim()===""?"Project name cannot be empty":!0});f==null&&(console.error("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field."),process.exit(1)),i.projectName=f}if(n.framework||(i.scaffoldName=await xe({message:"Which framework would you like to use?",choices:o.map(f=>({name:f,value:f})),default:"astro"})),!n.mount){let f=await Be({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=pn(f)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,u=n.mount||i.mountPath||"/app",l=n.siteId,c=pn(u),p=!0;(!s||s.trim()==="")&&(d.error("--project-name cannot be empty"),p=!1),(!a||!o.includes(a))&&(d.error(`--framework "${a||"undefined"}" not found`),d.error("Available frameworks:"),o.forEach(f=>d.error(`- ${f}`)),p=!1),xi(c)||(d.error("Invalid mount path: "+c),p=!1),!l&&(!r||ne())&&(d.error("--site-id is required"),p=!1),(!p||typeof s!="string"||typeof c!="string"||typeof a!="string")&&process.exit(1),await gl(s,c,a,l)}),t.command("deploy").description("Deploy your Webflow Cloud project").option("-e, --environment <environment>","Environment name").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-n, --project-name <name>","Project name (for new projects)").option("-d, --directory <path>","Project directory path (for new projects)").option("--description <description>","Project description (for new projects)").option("--skip-mount-path-check","Skip mount path checking").option("--auto-publish","Automatically publish site for mount path updates").action(async n=>{let r;try{let{siteId:o,accessToken:i}=Me();r=pi({authToken:i,siteId:o}),await r.promptForConsentIfNeeded()}catch(o){d.debug(`Failed to initialize telemetry: ${o}`)}try{if(n.directory)try{process.chdir(n.directory),d.info(`Changed directory to: ${n.directory}`)}catch(p){d.error(`Error: Could not change to directory ${n.directory}`),d.error(p instanceof Error?p.message:String(p)),process.exit(1)}let{manifest:o}=ce(),s=(o.cloud||{}).project_id,a,u,l=n.projectName,c=n.description;if(n.environment&&n.mount)a=n.environment,u=pn(n.mount),xi(u)||(d.error("Invalid mount path: "+u),process.exit(1));else{let p=[];if(!s){!l&&ne()&&(d.error("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field."),process.exit(1));try{let m=await dh();if(m.projects.length>0){let y=await xe({message:"Select a project to deploy to:",choices:[...m.projects.map(F=>({name:`${F.name} (${F.description||"No description"})`,value:F.id})),{name:"Create new project",value:null}]});y?(s=y,d.info("\u{1F4DD} Updating webflow.json with project ID..."),ae({cloud:{project_id:y}})):d.info("Creating a new project will be handled during deployment.")}else d.info("No existing projects found. A new project will be created during deployment.")}catch(m){d.warn("Could not fetch existing projects. A new project will be created during deployment."),d.warn(m instanceof Error?m.message:String(m))}}if(!s&&!l&&(l=await Be({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:m=>m.trim()===""?"Project name cannot be empty":!0})),s)try{let y=(await ch(s)).environments.map(F=>({name:`${F.branch} (${F.mount})`,value:{branch:F.branch,mount:F.mount}}));p.push(...y)}catch(m){d.error("Error fetching project environments:"),d.error(m instanceof Error?m.message:String(m)),process.exit(1)}p.push({name:"Create new environment",value:null});let f=await xe({message:"Select an environment to deploy to:",choices:p});if(f)a=f.branch,u=pn(f.mount);else if(n.environment?a=n.environment:a=await Be({message:"What environment would you like to deploy to?",default:"main",validate:m=>m.trim()===""?"Environment cannot be empty":!0}),n.mount)u=pn(n.mount);else{let m=await Be({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=pn(m)}}xi(u)||(d.error("Invalid mount path: "+u),process.exit(1)),await wh(a,u,{projectName:l,description:c,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:r})}catch(o){d.error("Error during deployment setup:"),d.error(o instanceof Error?o.message:String(o)),process.exit(1)}})};var Ii=require("path"),Qr=require("@webflow/data-types");fe();var xh=D(require("md5"));function qr(e,t,n){try{let r=new Blob([e]).size,o=Buffer.from(e,"utf-8");return{value:o,meta:{title:t.replace(/^.*[\\\/]/,""),fileHash:(0,xh.default)(o),size:r,...n||{}}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Fh=D(require("node-fetch")),Eh=D(require("form-data"));async function yl(e,t){let n={...t.fields,file:e.value},r=new Eh.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,Fh.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});JF(o)}function JF(e){switch(e.status){case 200:case 201:return;case 403:throw new Error("Unauthorized. Please check your AWS access key");default:throw new Error(`Something went wrong when uploading the file: ${e.statusText}`)}}U();Re();Rt();fe();Dn();function ZF({workspaceApiToken:e=process.env.WEBFLOW_WORKSPACE_API_TOKEN,siteApiToken:t=process.env.WEBFLOW_SITE_API_TOKEN,siteId:n=process.env.WEBFLOW_SITE_ID,libraryTarget:r=process.env.WEBFLOW_LIBRARY_TARGET}){if(r==="site"){if(!t)throw new Error("No API token provided");if(!n)throw new Error("No site provided");return{baseUrl:`${Z}/v2/sites/${n}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${Z}/v2/workspaces`,authToken:e}}function YF(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function KF(e){if(e.ok)return;if(e.status===401||e.status===403)throw new Error("Your API token is invalid or not authorized to perform this action. Remove the token from .env and run the command again to generate a new token.");if(e.status===404)throw new Error("Code components are rolling out in phases. Check back soon for access.");let t=await e.json();throw new Error(t.message||e.statusText)}async function Ot({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=ZF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await Ne(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:YF(n)});return await KF(a),a.json()}async function bl({options:e}){return(await Ot({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function Dl({name:e,description:t,slug:n,options:r}){return(await Ot({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function wl({resourceId:e,files:t,options:n}){return(await Ot({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function vl({resourceId:e,codeModule:t,components:n,options:r}){return(await Ot({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var Kh=require("path"),Xh=D(require("webpack-merge")),ft=require("@webflow/data-types");function fn(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,use:[{ident:"babel-loader",loader:require.resolve("babel-loader"),options:{presets:[require.resolve("@babel/preset-env"),[require.resolve("@babel/preset-react"),{runtime:"automatic"}],require.resolve("@babel/preset-typescript")]}}]}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var Sh=require("webpack"),xl=D(require("mini-css-extract-plugin")),Th=D(require("tsconfig-paths-webpack-plugin")),Ah=require("tsconfig-paths"),Fl=require("@webflow/data-types"),Oh=require("path");fe();var _h=D(require("postcss-selector-parser")),kl=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,_h.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});kl.postcss=!0;kl.postcssPlugin="CSSinShadowDOM";var Ch=kl;function XF(){return(0,Ah.loadConfig)(process.cwd()).resultType==="success"}function Hr({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:xl.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[Ch]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new xl.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],mode:n,resolve:{plugins:[XF()?new Th.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Fl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,Oh.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Fl.Environment.Server)return{...s,plugins:[...s.plugins,new Sh.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:ko,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Ph=require("@module-federation/enhanced"),El=require("@webflow/data-types");function Ih({libraryName:e,env:t,exposes:n}){if(t===El.Environment.Client)return{plugins:[new Ph.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===El.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}fe();U();var Lh=require("memfs/lib/volume"),Jr=require("@webflow/data-types");var Qe="./tmp_entry",jh="components";function Bh(e,t){let n=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
109
110
  `),r=e.filter(u=>u.type==="internal").map(({name:u,exportKey:l})=>`${l}: ${u}`).join(", "),o=e.filter(u=>u.type==="component").map(({name:u,exportKey:l})=>`"${l}": ${u}`).join(", "),i=`env: "${t}"`,s=r,a=o?`components: { ${o} }`:void 0;return`${n}
110
111
 
111
- export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function Uh(e,t,n){let r={},o=`${et}/Client.js`,i=`${et}/Server.js`;r[o]=Wh([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],Jr.Environment.Client);let s={},a=l=>{let c=rE(l);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=Wh([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.options?.ssr??!0).map(([l,c])=>{let d=a(l),f=c.startsWith(et)?c.replace(`${et}/`,"./"):c;return{name:d,path:f,exportKey:l,isDefaultExport:!0,type:"component"}})],Jr.Environment.Server);let u={[Jr.Environment.Client]:o,[Jr.Environment.Server]:i};return{entryPointsVolume:zh.Volume.fromJSON(r),paths:u}}var rE=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[-_]+|[^\p{L}\p{N}]/gu," ").toLowerCase().replace(new RegExp("(?:^|\\s)(\\p{L})","gu"),(t,n)=>n.toUpperCase()).replace(/\s+/g,"");var ig=require("memfs/lib/volume");var oE=D(require("fs")),Vh=require("unionfs"),Gh=require("webpack");async function It({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new Vh.Union().use(oE));return new Promise((s,a)=>{let u=(0,Gh.webpack)(e);u.inputFileSystem=i,n&&(u.outputFileSystem=n),r&&(u.outputPath=r),u.run((l,c)=>{u.close(d=>{l||d?a(l||d):c?c.hasErrors()||o&&c.hasWarnings()?a(new Error(c.toString("errors-warnings"))):s(c):a(new Error("Webpack stats are undefined"))})})})}var Zn=D(require("webpack-merge"));U();var Hh=require("@module-federation/enhanced");function qh(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function Zr(e,t){let n=["entry","output","target"];Object.keys(t).some(l=>n.includes(l))&&p.warn(`Cannot override blocked properties: ${n.join(", ")}`);let r=qh(t,[...n,"ModuleFederationPlugin","module","plugins"]),o=(0,Zn.default)(e,{...r,module:qh(t.module??{},["rules"])}),{plugins:i}=(0,Zn.mergeWithCustomize)({customizeArray:(0,Zn.unique)("plugins",["ModuleFederationPlugin","MiniCssExtractPlugin"],l=>l?.constructor?.name)})({plugins:t.plugins},{plugins:e.plugins}),s=t?.ModuleFederationPlugin?.shared,a=i?.map(l=>{if(l?.constructor?.name==="ModuleFederationPlugin"){let c=l._options;return new Hh.ModuleFederationPlugin({...c,...s?{shared:s}:{}})}return l});o.plugins=a;let u=t.module?.rules;return u&&typeof u=="function"&&(o.module={...o.module,rules:u(e.module?.rules??[])}),o}var Xh=D(require("archiver")),Yn=require("path");fe();var Yr=require("@webflow/data-types");fe();U();var Jh=2;function Zh(e){let t={type:Yr.ModuleLoader.FEDERATION,version:Jh,entry:Ps,renderer:br,components:e};return{title:yr,content:JSON.stringify(t)}}function Yh(e){let t={type:Yr.ModuleLoader.SSR,version:Jh,entry:xo,components:e};return{title:yr,content:JSON.stringify(t)}}function Kh(e){let t=`/${Yr.Environment.Client}/${Ps}`;try{if(e.existsSync(t)){let n=e.readFileSync(t,"utf8"),r=JSON.parse(n.toString()),o="publicPath"in r.metaData?r.metaData.publicPath:null;if(!o)throw new Error("Public path not found in module federation manifest");return r.exposes.reduce((i,s)=>{let a=s.name;return a===br||(i[a]={css:[]},s.assets.css.sync.forEach(u=>{i[a].css.push(`${o}${u}`)})),i},{})}}catch(n){p.error(`Failed to extract components metadata from MF manifest: ${n}`)}return{}}var Ci=require("@webflow/data-types");async function Qh(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${Ci.Environment.Server}/${Dr}`,a=(0,Xh.default)("tar",{gzip:!1}),u=t.createWriteStream(s);a.on("error",d=>(r=!0,i(d))),u.on("close",()=>{if(!r)try{let d={type:"asset",name:Dr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Yn.resolve)((0,Yn.join)(`/${Ci.Environment.Server}`,f.name));t.existsSync(m)&&t.rmSync(m)}),o([d])}catch(d){return i(d)}finally{r=!0}}),a.pipe(u);let{title:l,content:c}=Yh(n);a.append(c,{name:l}),e.forEach(d=>{try{let f=(0,Yn.resolve)((0,Yn.join)(`/${Ci.Environment.Server}`,d.name)),m=t.readFileSync(f,"utf8");a.append(m,{name:d.name})}catch(f){return r=!0,i(f)}}),await a.finalize()})}var eg=require("@webflow/data-types");async function tg(e,t,n){let{title:r,content:o}=Zh(n);await t.promises.writeFile(`/${eg.Environment.Client}/${r}`,o);let i={type:"asset",name:r,info:{},size:o.length,emitted:!0,comparedForEmit:!1,cached:!1};return e.filter(s=>s.name!=="mf-stats.json").concat([i])}var ng={[mt.Framework.React]:{generateBundlerConfig:dn}};async function Si(e,t){p.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=Uh(e.renderer,t.components,t.metadata);p.debug("Generating bundles...");let o=ig.Volume.fromJSON({"/Server":null,"/Client":null});p.debug("Generating bundling config...");let i=t.overrideConfig??{};Object.keys(i).length&&p.debug("Found config overrides. Merging...");let s=y=>{let F=Zr(iE({env:y,mode:t.dev?"development":"production",framework:e.framework,publicPath:t.publicPaths[y],components:t.components,entryPaths:r,libraryName:t.libraryIdentifier}),i);return t?.debugBundler&&(p.info(`Webpack config for env ${y}:`),p.dir(F)),F},[a,u]=await Promise.all([It({config:s(mt.Environment.Server),sourceVolumes:[t.componentsVolume,n],outputVolume:o,outputPath:`/${mt.Environment.Server}`,failOnWarnings:t.failOnWarnings}),It({config:s(mt.Environment.Client),sourceVolumes:[t.componentsVolume,n],outputVolume:o,outputPath:`/${mt.Environment.Client}`,failOnWarnings:t.failOnWarnings})]);p.debug(o.toTree()),p.debug(`Server Bundler Stats:
112
- ${a.toString("errors-warnings")}`),p.debug(`Client Bundler Stats:
113
- ${u.toString({colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0})}`);let l=Kh(o);p.debug("Packaging server bundle...");let c=await Qh(a.toJson().assets||[],o,l);p.debug("Packaging client bundle...");let d=await tg(u.toJson().assets||[],o,l),f=y=>F=>[F,y];return{outputFiles:[...c.map(f(mt.Environment.Server)),...d.map(f(mt.Environment.Client))],outputVolume:o}}function iE({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a}){if(ng[n]){let u=Object.entries({[br]:i[e],...o}).reduce((f,[m,y])=>({...f,[`./${m}`]:`./${(0,rg.relative)(process.cwd(),y)}`}),{}),l=Hr({entry:i[e],env:e,mode:t,publicPath:r,libraryName:s,outputPath:a}),c=ng[n].generateBundlerConfig(e),d=Mh({exposes:u,env:e,libraryName:s});return(0,og.default)(l,c,d)}else throw new Error(`Unknown framework: ${n}`)}var ag=D(require("path")),Al=require("memfs/lib/volume"),Ol=D(require("webpack-merge")),lg=D(require("webpack-node-externals")),ug=D(require("mini-css-extract-plugin")),cg=D(require("fork-ts-checker-webpack-plugin")),Xr=require("@webflow/data-types");var sE=D(require("fs")),Kn=require("path"),Xn=require("webpack");function aE(e,t=sE){let n=(0,Kn.join)(process.cwd(),"node_modules",e);for(;n!==(0,Kn.dirname)(n)&&n!=="node_modules";){let r=(0,Kn.join)(n,"package.json");if(t.existsSync(r))try{let{name:o,version:i}=JSON.parse(t.readFileSync(r,"utf8"));return`${o}@${i}`}catch{return null}n=(0,Kn.dirname)(n)}return null}var Ti=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:Xn.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE},function(){try{let r=n.getAssets(),o={};Object.values(r).forEach(({name:i,source:s})=>{if(!i.endsWith(".map"))return;let[a,u,l]=i.split("."),c=o[a]?.sources??{},d=o[a]?.dependencies??new Set;JSON.parse(s.source().toString()).sources.forEach(m=>{if(m.startsWith("external")){let y=m.match(/^external \S+ "(.+)"$/)?.[1];if(!y)throw new Error(`Could not extract package name from ${m}`);let F=aE(y,n.inputFileSystem);if(!F)throw new Error(`Could not find package information for ${y}`);F&&d.add(F)}}),o[a]={sources:{...c,[`./${a}.${l}`]:u},dependencies:d},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new Xn.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new Xn.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var sg=D(require("module"));function Kr(e,t){let n=e.readFileSync(t,"utf-8"),r=new sg.default(t,module);return r._compile(n,t),r}function lE(e,t){let n=`/${t}.js`,r=Kr(e,n),o=r.exports.default||r.exports;if(o&&typeof o=="object")try{let{name:i,description:s,group:a,props:u,options:l}=(0,Xr.parseComponentData)(o);return{displayName:i,description:s,group:a,props:Object.entries(u||{}).map(([c,d])=>({...d,name:c,defaultValue:typeof d.defaultValue!="string"?JSON.stringify(d.defaultValue):d.defaultValue,settings:d.settings!==void 0?JSON.stringify(d.settings):d.settings})),options:l}}catch(i){throw new Error(`Error parsing component data for '${t}': ${i?.stack}`)}throw new Error(`Could not get declaration for '${t}'`)}async function uE({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r}){let o=new Al.Volume;return await It({config:Zr((0,Ol.default)(Hr({entry:e,env:Xr.Environment.Client,publicPath:"/",libraryName:"metadata"}),dn(),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new cg.default]:[]}),n),sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}async function cE({declarations:e,sources:t,overrideConfig:n={}}){let r=new Al.Volume,o=Zr((0,Ol.default)(Hr({entry:e,env:Xr.Environment.Client,publicPath:"/",libraryName:"source-maps"}),dn(),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{hashFunction:"md5",filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]"},externalsPresets:{node:!0},externals:[(0,lg.default)()],devtool:"source-map",plugins:[new Ti]}),n);return o.plugins=o.plugins?.map(i=>i?.constructor?.name==="MiniCssExtractPlugin"?new ug.default({filename:"[name].[contenthash].css"}):i),await It({config:o,sourceVolumes:t?[t]:[],outputVolume:r,failOnWarnings:!1}),r}function dE(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=ag.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function Ai({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1}){let[o,i]=await Promise.all([uE({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r}),cE({declarations:e,sources:t,overrideConfig:n})]),s=Object.keys(e).reduce((u,l)=>(u[l]=lE(o,l),u),{});return{sourceMaps:dE(i),metadata:s}}function dg(e,{framework:t,sourceMaps:n}){return Object.fromEntries(Object.keys(e).map(r=>[r,{...e[r],id:r,framework:t,exportPath:"default",hash:n[r]}]))}Re();var fg=D(require("md5"));U();be();var mg=" - ";function pE(e){return e==="added"?` ${ne.green("(Added)")}`:e==="removed"?` ${ne.yellow("(Removed)")}`:e==="changed"?` ${ne.blue("(Changed)")}`:""}function pg(e){if(!e)return"";let t=JSON.parse(e);return(0,fg.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function fE({metadata:e,latestVersion:t,sourceMaps:n}){let r=t.resource.codeLibraryResource.manifest.components.reduce((s,a)=>(s[a.id]=a,s),{}),o={};return Object.entries(r).forEach(([s,a])=>{if(!e[s])o[s]={component:a,status:"removed"};else{let u=e[s],l=pg(n[s]),c=a.displayName&&u.displayName!==a.displayName,d=l&&a.hash&&l!==pg(a.hash),f=c||d;o[s]={component:u,status:f?"changed":"unchanged",previousName:c?a.displayName:void 0}}}),Object.entries(e).forEach(([s,a])=>{r[s]||(o[s]={component:a,status:"added"})}),Object.values(o).map(({component:s,status:a,previousName:u})=>{let l=s.displayName,c=u?`${u} \u2192 ${l}`:l;return`${mg}${c}${pE(a)}`}).sort().join(`
114
- `)}function mE({metadata:e}){return Object.values(e).map(n=>`${mg}${n.displayName}`).sort().join(`
115
- `)}async function hg({libraryConfig:e,metadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(re())return Promise.resolve(!0);let i=e.id?n.find(({profile:d})=>d.slug===e.id):null,s=i&&i.profile.status==="ACTIVE",a="Code components:",u=s?fE({metadata:t,latestVersion:i,sourceMaps:r}):mE({metadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await pe({message:`${a}
112
+ export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function Rh(e,t,n){let r={},o=`${Qe}/Client.js`,i=`${Qe}/Server.js`;r[o]=Bh([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],Jr.Environment.Client);let s={},a=l=>{let c=QF(l);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=Bh([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.options?.ssr??!0).map(([l,c])=>{let p=a(l),f=c.startsWith(Qe)?c.replace(`${Qe}/`,"./"):c;return{name:p,path:f,exportKey:l,isDefaultExport:!0,type:"component"}})],Jr.Environment.Server);let u={[Jr.Environment.Client]:o,[Jr.Environment.Server]:i};return{entryPointsVolume:Lh.Volume.fromJSON(r),paths:u}}var QF=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[-_]+|[^\p{L}\p{N}]/gu," ").toLowerCase().replace(new RegExp("(?:^|\\s)(\\p{L})","gu"),(t,n)=>n.toUpperCase()).replace(/\s+/g,"");var Qh=require("memfs/lib/volume");var eE=D(require("fs")),Nh=require("unionfs"),Mh=require("webpack");async function Pt({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new Nh.Union().use(eE));return new Promise((s,a)=>{let u=(0,Mh.webpack)(e);u.inputFileSystem=i,n&&(u.outputFileSystem=n),r&&(u.outputPath=r),u.run((l,c)=>{u.close(p=>{l||p?a(l||p):c?c.hasErrors()||o&&c.hasWarnings()?a(new Error(c.toString("errors-warnings"))):s(c):a(new Error("Webpack stats are undefined"))})})})}var Jn=D(require("webpack-merge"));U();var Wh=require("@module-federation/enhanced");function $h(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function Zr(e,t){let n=["entry","output","target"];Object.keys(t).some(l=>n.includes(l))&&d.warn(`Cannot override blocked properties: ${n.join(", ")}`);let r=$h(t,[...n,"ModuleFederationPlugin","module","plugins"]),o=(0,Jn.default)(e,{...r,module:$h(t.module??{},["rules"])}),{plugins:i}=(0,Jn.mergeWithCustomize)({customizeArray:(0,Jn.unique)("plugins",["ModuleFederationPlugin","MiniCssExtractPlugin"],l=>l?.constructor?.name)})({plugins:t.plugins},{plugins:e.plugins}),s=t?.ModuleFederationPlugin?.shared,a=i?.map(l=>{if(l?.constructor?.name==="ModuleFederationPlugin"){let c=l._options;return new Wh.ModuleFederationPlugin({...c,...s?{shared:s}:{}})}return l});o.plugins=a;let u=t.module?.rules;return u&&typeof u=="function"&&(o.module={...o.module,rules:u(e.module?.rules??[])}),o}var qh=D(require("archiver")),Zn=require("path");fe();var Yr=require("@webflow/data-types");fe();U();var zh=2;function Uh(e){let t={type:Yr.ModuleLoader.FEDERATION,version:zh,entry:Ts,renderer:yr,components:e};return{title:gr,content:JSON.stringify(t)}}function Vh(e){let t={type:Yr.ModuleLoader.SSR,version:zh,entry:ko,components:e};return{title:gr,content:JSON.stringify(t)}}function Gh(e){let t=`/${Yr.Environment.Client}/${Ts}`;try{if(e.existsSync(t)){let n=e.readFileSync(t,"utf8"),r=JSON.parse(n.toString()),o="publicPath"in r.metaData?r.metaData.publicPath:null;if(!o)throw new Error("Public path not found in module federation manifest");return r.exposes.reduce((i,s)=>{let a=s.name;return a===yr||(i[a]={css:[]},s.assets.css.sync.forEach(u=>{i[a].css.push(`${o}${u}`)})),i},{})}}catch(n){d.error(`Failed to extract components metadata from MF manifest: ${n}`)}return{}}var Fi=require("@webflow/data-types");async function Hh(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${Fi.Environment.Server}/${br}`,a=(0,qh.default)("tar",{gzip:!1}),u=t.createWriteStream(s);a.on("error",p=>(r=!0,i(p))),u.on("close",()=>{if(!r)try{let p={type:"asset",name:br,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Zn.resolve)((0,Zn.join)(`/${Fi.Environment.Server}`,f.name));t.existsSync(m)&&t.rmSync(m)}),o([p])}catch(p){return i(p)}finally{r=!0}}),a.pipe(u);let{title:l,content:c}=Vh(n);a.append(c,{name:l}),e.forEach(p=>{try{let f=(0,Zn.resolve)((0,Zn.join)(`/${Fi.Environment.Server}`,p.name)),m=t.readFileSync(f,"utf8");a.append(m,{name:p.name})}catch(f){return r=!0,i(f)}}),await a.finalize()})}var Jh=require("@webflow/data-types");async function Zh(e,t,n){let{title:r,content:o}=Uh(n);await t.promises.writeFile(`/${Jh.Environment.Client}/${r}`,o);let i={type:"asset",name:r,info:{},size:o.length,emitted:!0,comparedForEmit:!1,cached:!1};return e.filter(s=>s.name!=="mf-stats.json").concat([i])}var Yh={[ft.Framework.React]:{generateBundlerConfig:fn}};async function Ei(e,t){d.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=Rh(e.renderer,t.components,t.metadata);d.debug("Generating bundles...");let o=Qh.Volume.fromJSON({"/Server":null,"/Client":null});d.debug("Generating bundling config...");let i=t.overrideConfig??{};Object.keys(i).length&&d.debug("Found config overrides. Merging...");let s=y=>{let F=Zr(tE({env:y,mode:t.dev?"development":"production",framework:e.framework,publicPath:t.publicPaths[y],components:t.components,entryPaths:r,libraryName:t.libraryIdentifier}),i);return t?.debugBundler&&(d.info(`Webpack config for env ${y}:`),d.dir(F)),F},[a,u]=await Promise.all([Pt({config:s(ft.Environment.Server),sourceVolumes:[t.componentsVolume,n],outputVolume:o,outputPath:`/${ft.Environment.Server}`,failOnWarnings:t.failOnWarnings}),Pt({config:s(ft.Environment.Client),sourceVolumes:[t.componentsVolume,n],outputVolume:o,outputPath:`/${ft.Environment.Client}`,failOnWarnings:t.failOnWarnings})]);d.debug(o.toTree()),d.debug(`Server Bundler Stats:
113
+ ${a.toString("errors-warnings")}`),d.debug(`Client Bundler Stats:
114
+ ${u.toString({colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0})}`);let l=Gh(o);d.debug("Packaging server bundle...");let c=await Hh(a.toJson().assets||[],o,l);d.debug("Packaging client bundle...");let p=await Zh(u.toJson().assets||[],o,l),f=y=>F=>[F,y];return{outputFiles:[...c.map(f(ft.Environment.Server)),...p.map(f(ft.Environment.Client))],outputVolume:o}}function tE({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a}){if(Yh[n]){let u=Object.entries({[yr]:i[e],...o}).reduce((f,[m,y])=>({...f,[`./${m}`]:`./${(0,Kh.relative)(process.cwd(),y)}`}),{}),l=Hr({entry:i[e],env:e,mode:t,publicPath:r,libraryName:s,outputPath:a}),c=Yh[n].generateBundlerConfig(e),p=Ih({exposes:u,env:e,libraryName:s});return(0,Xh.default)(l,c,p)}else throw new Error(`Unknown framework: ${n}`)}var tg=D(require("path")),_l=require("memfs/lib/volume"),Cl=D(require("webpack-merge")),ng=D(require("webpack-node-externals")),rg=D(require("mini-css-extract-plugin")),og=D(require("fork-ts-checker-webpack-plugin")),Xr=require("@webflow/data-types");var nE=D(require("fs")),Yn=require("path"),Kn=require("webpack");function rE(e,t=nE){let n=(0,Yn.join)(process.cwd(),"node_modules",e);for(;n!==(0,Yn.dirname)(n)&&n!=="node_modules";){let r=(0,Yn.join)(n,"package.json");if(t.existsSync(r))try{let{name:o,version:i}=JSON.parse(t.readFileSync(r,"utf8"));return`${o}@${i}`}catch{return null}n=(0,Yn.dirname)(n)}return null}var _i=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:Kn.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE},function(){try{let r=n.getAssets(),o={};Object.values(r).forEach(({name:i,source:s})=>{if(!i.endsWith(".map"))return;let[a,u,l]=i.split("."),c=o[a]?.sources??{},p=o[a]?.dependencies??new Set;JSON.parse(s.source().toString()).sources.forEach(m=>{if(m.startsWith("external")){let y=m.match(/^external \S+ "(.+)"$/)?.[1];if(!y)throw new Error(`Could not extract package name from ${m}`);let F=rE(y,n.inputFileSystem);if(!F)throw new Error(`Could not find package information for ${y}`);F&&p.add(F)}}),o[a]={sources:{...c,[`./${a}.${l}`]:u},dependencies:p},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new Kn.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new Kn.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var eg=D(require("module"));function Kr(e,t){let n=e.readFileSync(t,"utf-8"),r=new eg.default(t,module);return r._compile(n,t),r}function oE(e,t){let n=`/${t}.js`,r=Kr(e,n),o=r.exports.default||r.exports;if(o&&typeof o=="object")try{let{name:i,description:s,group:a,props:u,options:l}=(0,Xr.parseComponentData)(o);return{displayName:i,description:s,group:a,props:Object.entries(u||{}).map(([c,p])=>({...p,name:c,defaultValue:typeof p.defaultValue!="string"?JSON.stringify(p.defaultValue):p.defaultValue,settings:p.settings!==void 0?JSON.stringify(p.settings):p.settings})),options:l}}catch(i){throw new Error(`Error parsing component data for '${t}': ${i?.stack}`)}throw new Error(`Could not get declaration for '${t}'`)}async function iE({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r}){let o=new _l.Volume;return await Pt({config:Zr((0,Cl.default)(Hr({entry:e,env:Xr.Environment.Client,publicPath:"/",libraryName:"metadata"}),fn(),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new og.default]:[]}),n),sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}async function sE({declarations:e,sources:t,overrideConfig:n={}}){let r=new _l.Volume,o=Zr((0,Cl.default)(Hr({entry:e,env:Xr.Environment.Client,publicPath:"/",libraryName:"source-maps"}),fn(),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{hashFunction:"md5",filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]"},externalsPresets:{node:!0},externals:[(0,ng.default)()],devtool:"source-map",plugins:[new _i]}),n);return o.plugins=o.plugins?.map(i=>i?.constructor?.name==="MiniCssExtractPlugin"?new rg.default({filename:"[name].[contenthash].css"}):i),await Pt({config:o,sourceVolumes:t?[t]:[],outputVolume:r,failOnWarnings:!1}),r}function aE(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=tg.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function Ci({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1}){let[o,i]=await Promise.all([iE({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r}),sE({declarations:e,sources:t,overrideConfig:n})]),s=Object.keys(e).reduce((u,l)=>(u[l]=oE(o,l),u),{});return{sourceMaps:aE(i),metadata:s}}function ig(e,{framework:t,sourceMaps:n}){return Object.fromEntries(Object.keys(e).map(r=>[r,{...e[r],id:r,framework:t,exportPath:"default",hash:n[r]}]))}Le();var ag=D(require("md5"));U();de();var lg=" - ";function lE(e){return e==="added"?` ${Nt.green("(Added)")}`:e==="removed"?` ${Nt.yellow("(Removed)")}`:e==="changed"?` ${Nt.blue("(Changed)")}`:""}function sg(e){if(!e)return"";let t=JSON.parse(e);return(0,ag.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function uE({metadata:e,latestVersion:t,sourceMaps:n}){let r=t.resource.codeLibraryResource.manifest.components.reduce((s,a)=>(s[a.id]=a,s),{}),o={};return Object.entries(r).forEach(([s,a])=>{if(!e[s])o[s]={component:a,status:"removed"};else{let u=e[s],l=sg(n[s]),c=a.displayName&&u.displayName!==a.displayName,p=l&&a.hash&&l!==sg(a.hash),f=c||p;o[s]={component:u,status:f?"changed":"unchanged",previousName:c?a.displayName:void 0}}}),Object.entries(e).forEach(([s,a])=>{r[s]||(o[s]={component:a,status:"added"})}),Object.values(o).map(({component:s,status:a,previousName:u})=>{let l=s.displayName,c=u?`${u} \u2192 ${l}`:l;return`${lg}${c}${lE(a)}`}).sort().join(`
115
+ `)}function cE({metadata:e}){return Object.values(e).map(n=>`${lg}${n.displayName}`).sort().join(`
116
+ `)}async function ug({libraryConfig:e,metadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(ne())return Promise.resolve(!0);let i=e.id?n.find(({profile:p})=>p.slug===e.id):null,s=i&&i.profile.status==="ACTIVE",a="Code components:",u=s?uE({metadata:t,latestVersion:i,sourceMaps:r}):cE({metadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await pe({message:`${a}
116
117
  ${u}
117
118
 
118
- ${l}`})}var Oi=require("path"),bg=require("memfs/lib/volume");var gg=D(require("fast-glob")),hE=e=>{let t=e.split("/");return t[t.length-1]},gE=e=>hE(e).split(".")[0];async function yg(e,t){return(await gg.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=gE(o);if(r[i])throw new Error(`Duplicate component '${i}' found. Already declared at ${r[i]}, but also found at ${o}.`);return{...r,[i]:o}},{})}async function Pi(e){let t=await yg(e.components,{cwd:(0,Oi.dirname)(e.manifestPath),ignore:[e.globals,e.bundleConfig].filter(o=>o!=null)});if(!Object.keys(t).length)throw new Error("No declaration files found");let{componentsFiles:n,componentsVolume:r}=yE(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function yE(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,Oi.extname)(s),u=`${et}/${$h}/${i}${a}`;r[i]=u,o[u]=bE(t,s,n)}),{componentsFiles:r,componentsVolume:bg.Volume.fromJSON(o)}}function bE(e,t,n){return n?`
119
+ ${l}`})}var Si=require("path"),pg=require("memfs/lib/volume");var cg=D(require("fast-glob")),dE=e=>{let t=e.split("/");return t[t.length-1]},pE=e=>dE(e).split(".")[0];async function dg(e,t){return(await cg.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=pE(o);if(r[i])throw new Error(`Duplicate component '${i}' found. Already declared at ${r[i]}, but also found at ${o}.`);return{...r,[i]:o}},{})}async function Ti(e){let t=await dg(e.components,{cwd:(0,Si.dirname)(e.manifestPath),ignore:[e.globals,e.bundleConfig].filter(o=>o!=null)});if(!Object.keys(t).length)throw new Error("No declaration files found");let{componentsFiles:n,componentsVolume:r}=fE(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function fE(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,Si.extname)(s),u=`${Qe}/${jh}/${i}${a}`;r[i]=u,o[u]=mE(t,s,n)}),{componentsFiles:r,componentsVolume:pg.Volume.fromJSON(o)}}function mE(e,t,n){return n?`
119
120
  import { applyDecorators } from "${e}";
120
121
  import componentDefinition from "${t}";
121
122
  const globals = require("${n}") || {};
@@ -137,26 +138,26 @@ export default decoratedDefinition;
137
138
  `.trim():`
138
139
  import componentDefinition from "${t}";
139
140
  export default {...componentDefinition};
140
- `.trim()}U();be();var DE="db64c798d0a5adb3c9c43b10c80f93fece223acd072246f957d9700b1bf3cab0",wE="32a6440eefa0b608b39c36164a9cf274c9c096cfe6541e9dab08ff4f372fe245",vE="fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074",kE=["code_components:read","code_components:write"];function xE(){return process.env.BUILD_ENV==="development"?DE:process.env.BUILD_ENV==="acceptance"?wE:vE}async function Dg(e){let t=e?.apiToken||process.env.WEBFLOW_WORKSPACE_API_TOKEN;if(!t&&Ve()&&(p.debug("No workspace API token found. Performing OAuth..."),t=await xn({clientId:xE(),scope:kE}),t&&kn({workspaceApiToken:t})),!t)throw new Error("Workspace API token is required.");return t}var wg=require("path"),vg=require("fs-extra");function Ii(e,t){try{let n=(0,vg.existsSync)((0,wg.join)(process.cwd(),"./tsconfig.json")),r=Object.values(e).some(i=>i.endsWith(".ts")||i.endsWith(".tsx")),o=t?.force;return r&&n&&!o}catch{return!1}}var kg=require("@webflow/data-types"),ji={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:kg.Framework.React};var Qn=require("path"),er=require("fs");Re();U();rt();be();function Qr(e){return e.replace(/\\/g,"/")}function xg(e){let t={...e};if(e.globals){let n=(0,Qn.resolve)(process.cwd(),e.globals);if(!(0,er.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
141
+ `.trim()}U();de();var hE="fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074",gE=["code_components:read","code_components:write"];function yE(){return hE}async function fg(e){let t=e?.apiToken||process.env.WEBFLOW_WORKSPACE_API_TOKEN;if(!t&&Ve()&&(d.debug("No workspace API token found. Performing OAuth..."),t=await Ut({clientId:yE(),scope:gE}),t&&zt({workspaceApiToken:t})),!t)throw new Error("Workspace API token is required.");return t}var mg=require("path"),hg=require("fs-extra");function Ai(e,t){try{let n=bE(),r=DE(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var bE=()=>{try{return(0,hg.existsSync)((0,mg.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},DE=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"));var gg=require("@webflow/data-types"),Oi={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:gg.Framework.React};var Xn=require("path"),Qn=require("fs");Le();U();Re();function mt(e){return e.replace(/\\/g,"/")}de();function yg(e){let t={...e};if(e.globals){let n=(0,Xn.resolve)(process.cwd(),e.globals);if(!(0,Qn.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
141
142
  Resolved path: ${n}
142
- Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=Qr(n)}if(e.bundleConfig){let n=(0,Qn.resolve)(process.cwd(),e.bundleConfig);if(!(0,er.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
143
+ Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=mt(n)}if(e.bundleConfig){let n=(0,Xn.resolve)(process.cwd(),e.bundleConfig);if(!(0,Qn.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
143
144
  Resolved path: ${n}
144
- Please ensure the file exists or remove the 'bundleConfig' field from your manifest.`);t.bundleConfig=Qr(n)}if(typeof e.renderer=="string"){let n=(0,Qn.resolve)(process.cwd(),e.renderer);(0,er.existsSync)(n)&&(t.renderer=Qr(n))}else if(typeof e.renderer=="object"&&typeof t.renderer=="object"){if(typeof e.renderer.client=="string"){let n=(0,Qn.resolve)(process.cwd(),e.renderer.client);(0,er.existsSync)(n)&&(t.renderer={...t.renderer,client:Qr(n)})}if(typeof e.renderer.server=="string"){let n=(0,Qn.resolve)(process.cwd(),e.renderer.server);(0,er.existsSync)(n)&&(t.renderer={...t.renderer,server:Qr(n)})}}return t}async function FE({initialData:e}){let t=await Le({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});t==null&&(console.error("When --no-input mode is enabled please provide a name in your library manifest"),process.exit(1));let n=await Le({message:"Enter a description for your code library",default:e?.description??""});if(!await pe({message:"Is the code (including 3rd party packages) you are uploading to Webflow trusted and secure?"}))throw new Error("Code library is not trusted and secure");return{name:t,description:n}}async function EE({existingCodeLibraries:e}){return await Fe({message:"Select existing code library (or create new)",choices:[{name:"[Create new code library]",value:null},...e.map(({resource:n,profile:r})=>{let o=`${n.codeLibraryResource.manifest.name} (${r.slug})`;r.status==="ARCHIVED"&&(o+=` ${ne.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function Pl({initialData:e,existingCodeLibraries:t}){let n,r={components:ji.components},o=t.length>0?await EE({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await FE({initialData:e});n={...r,...e,...a}}let i=xg(n);De({library:i});let{path:s}=nt();return{libraryManifest:i,manifestPath:s}}async function Fg({existingCodeLibraries:e}){let t=p.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=de(),o=dr(n,"library");if(!o.id){if(Ve())return t.succeed(),Pl({initialData:o,existingCodeLibraries:e});throw new Error("Library manifest does not have an id")}let i=o.name??e.find(({profile:a})=>a.slug===o.id)?.resource.codeLibraryResource.manifest.name;if(!i&&Ve())return t.succeed(),Pl({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=xg({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if((n instanceof tt||n instanceof Lt)&&Ve())return t.info(n.message),Pl({existingCodeLibraries:e});throw t.fail(),n}}var Il=require("memfs/lib/volume"),Cg=D(require("webpack-merge"));var Sg="/client-renderer.js",Tg="/server-renderer.js",Eg=`${et}/test-renderers${Sg}`,_g=`${et}/test-renderers${Tg}`;async function Ag(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");let t=await SE(e);_E(e.client,t),CE(e.server,t)}function _E(e,t){let n=Kr(t,Sg);if(typeof n.exports.ClientRenderer!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'ClientRenderer' export.`);if(typeof n.exports.applyDecorators!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'applyDecorators' export.`);let r=()=>null,o=n.exports.ClientRenderer(r),i=["mount","hydrate","render","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid client renderer: ${e} ClientRenderer must return an object with a '${s}' function.`)}function CE(e,t){let n=Kr(t,Tg);if(typeof n.exports.ServerRenderer!="function")throw new Error(`Invalid server renderer: ${e} does not have a valid 'ServerRenderer' export.`);let r=()=>null,o=n.exports.ServerRenderer(r),i=["renderToStream","renderToString","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid server renderer: ${e} ServerRenderer must return an object with a '${s}' function.`)}async function SE(e){let t=new Il.Volume,n={[Eg]:`
145
- export * from "${e.client}";
146
- `,[_g]:`
147
- export * from "${e.server}";
148
- `},r=(0,Cg.default)(dn(),{entry:{"client-renderer":Eg,"server-renderer":_g},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await It({config:r,sourceVolumes:[Il.Volume.fromJSON(n)],outputVolume:t,failOnWarnings:!1}),t}async function Bi({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await Fg({existingCodeLibraries:e}),{renderer:r,...o}=ji,i=typeof t.renderer=="string"?{client:t.renderer,server:t.renderer}:{client:t.renderer?.client??r.client,server:t.renderer?.server??r.server};return await Ag(i),{...o,...t,renderer:i,manifestPath:n}}async function TE(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await Pi(r);p.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=r.bundleConfig?require(r.bundleConfig):{},{sourceMaps:a,metadata:u}=await Ai({declarations:o,sources:i,overrideConfig:s,performTypeCheck:Ii(o,t)});return p.debug(`Metadata: ${JSON.stringify(u,null,2)}`),p.debug(`Source Maps:
145
+ Please ensure the file exists or remove the 'bundleConfig' field from your manifest.`);t.bundleConfig=mt(n)}if(typeof e.renderer=="string"){let n=(0,Xn.resolve)(process.cwd(),e.renderer);(0,Qn.existsSync)(n)&&(t.renderer=mt(n))}else if(typeof e.renderer=="object"&&typeof t.renderer=="object"){if(typeof e.renderer.client=="string"){let n=(0,Xn.resolve)(process.cwd(),e.renderer.client);(0,Qn.existsSync)(n)&&(t.renderer={...t.renderer,client:mt(n)})}if(typeof e.renderer.server=="string"){let n=(0,Xn.resolve)(process.cwd(),e.renderer.server);(0,Qn.existsSync)(n)&&(t.renderer={...t.renderer,server:mt(n)})}}return t}async function wE({initialData:e}){let t=await Be({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});t==null&&(console.error("When --no-input mode is enabled please provide a name in your library manifest"),process.exit(1));let n=await Be({message:"Enter a description for your code library",default:e?.description??""});if(!await pe({message:"Is the code (including 3rd party packages) you are uploading to Webflow trusted and secure?"}))throw new Error("Code library is not trusted and secure");return{name:t,description:n}}async function vE({existingCodeLibraries:e}){return await xe({message:"Select existing code library (or create new)",choices:[{name:"[Create new code library]",value:null},...e.map(({resource:n,profile:r})=>{let o=`${n.codeLibraryResource.manifest.name} (${r.slug})`;r.status==="ARCHIVED"&&(o+=` ${Nt.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function Sl({initialData:e,existingCodeLibraries:t}){let n,r={components:Oi.components},o=t.length>0?await vE({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await wE({initialData:e});n={...r,...e,...a}}let i=yg(n);ae({library:i});let{path:s}=tt();return{libraryManifest:i,manifestPath:s}}async function bg({existingCodeLibraries:e}){let t=d.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=ce(),o=cr(n,"library");if(!o.id){if(Ve())return t.succeed(),Sl({initialData:o,existingCodeLibraries:e});throw new Error("Library manifest does not have an id")}let i=o.name??e.find(({profile:a})=>a.slug===o.id)?.resource.codeLibraryResource.manifest.name;if(!i&&Ve())return t.succeed(),Sl({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=yg({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if((n instanceof et||n instanceof Bt)&&Ve())return t.info(n.message),Sl({existingCodeLibraries:e});throw t.fail(),n}}var Tl=require("memfs/lib/volume"),vg=D(require("webpack-merge"));var kg="/client-renderer.js",xg="/server-renderer.js",Dg=`${Qe}/test-renderers${kg}`,wg=`${Qe}/test-renderers${xg}`;async function Fg(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");let t=await FE(e);kE(e.client,t),xE(e.server,t)}function kE(e,t){let n=Kr(t,kg);if(typeof n.exports.ClientRenderer!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'ClientRenderer' export.`);if(typeof n.exports.applyDecorators!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'applyDecorators' export.`);let r=()=>null,o=n.exports.ClientRenderer(r),i=["mount","hydrate","render","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid client renderer: ${e} ClientRenderer must return an object with a '${s}' function.`)}function xE(e,t){let n=Kr(t,xg);if(typeof n.exports.ServerRenderer!="function")throw new Error(`Invalid server renderer: ${e} does not have a valid 'ServerRenderer' export.`);let r=()=>null,o=n.exports.ServerRenderer(r),i=["renderToStream","renderToString","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid server renderer: ${e} ServerRenderer must return an object with a '${s}' function.`)}async function FE(e){let t=new Tl.Volume,n=mt(e.client),r=mt(e.server),o={[Dg]:`
146
+ export * from "${n}";
147
+ `,[wg]:`
148
+ export * from "${r}";
149
+ `},i=(0,vg.default)(fn(),{entry:{"client-renderer":Dg,"server-renderer":wg},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await Pt({config:i,sourceVolumes:[Tl.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function Pi({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await bg({existingCodeLibraries:e}),{renderer:r,...o}=Oi,i=typeof t.renderer=="string"?{client:t.renderer,server:t.renderer}:{client:t.renderer?.client??r.client,server:t.renderer?.server??r.server};return await Fg(i),{...o,...t,renderer:i,manifestPath:n}}async function EE(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await Ti(r);d.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=r.bundleConfig?require(r.bundleConfig):{},{sourceMaps:a,metadata:u}=await Ci({declarations:o,sources:i,overrideConfig:s,performTypeCheck:Ai(o,t)});return d.debug(`Metadata: ${JSON.stringify(u,null,2)}`),d.debug(`Source Maps:
149
150
 
150
- ${Object.entries(a).reduce((l,[c,d])=>(l+=`${c}: ${JSON.stringify(JSON.parse(d),null,2)}
151
+ ${Object.entries(a).reduce((l,[c,p])=>(l+=`${c}: ${JSON.stringify(JSON.parse(p),null,2)}
151
152
 
152
- `,l),"")}`),{componentsFiles:o,componentsVolume:i,sourceMaps:a,metadata:u}})}async function AE(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:u}=e;return await a("generate_library_bundle",async()=>{let l=u.bundleConfig?require(u.bundleConfig):{};return await Si(u,{libraryIdentifier:`_${o}`,publicPaths:i,components:t,componentsVolume:n,metadata:r,debugBundler:s?.debugBundler,dev:s?.dev,overrideConfig:l,failOnWarnings:!s?.force})})}async function OE(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([u,l])=>{let c=(0,Li.resolve)((0,Li.join)(`/${l}`,`${u.name}`));return qr(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:l})}),{signatures:a}=await Fl({resourceId:r,files:s.map(({meta:u})=>u),options:i});await Promise.all(a.map(async u=>{let l=s.find(c=>c.meta.fileHash===u.hash);if(!l)throw new Error(`File not found: ${u.hash}`);await vl(l,u.value)}))})}async function PE(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let u={clientModule:{bundleUrl:o[eo.Environment.Client]+yr,loaderType:eo.ModuleLoader.FEDERATION},serverModule:{bundleUrl:o[eo.Environment.Server]+Dr}},l=dg(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await El({resourceId:r,codeModule:u,components:Object.values(l),options:a});p.debug(JSON.stringify({taskId:c},null,2))})}async function jl(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;p.debug("Initializing workspace API token...");try{r=await Dg(e)}catch(a){p.error(a instanceof Error?a.message:String(a)),process.exit(1)}p.debug("Initializing telemetry service...");let o=qe.forCodeLibraries({host:Z,authToken:r}),i=Do(o),s=wo(o);try{await o.promptForConsentIfNeeded(),p.debug("Checking dependencies versions..."),new $t().run();let a={workspaceApiToken:r};t=p.spinner("Initializing");let u=await s("get_code_libraries",async()=>await kl({options:a})),{workspace:l,libraries:c}=u;t.succeed(),p.debug("Parsing library config...");let d=await Bi({existingCodeLibraries:c}),f={trackPerformance:s,apiOptions:a,libraryConfig:d};t=p.spinner("Collecting metadata");let{componentsFiles:m,componentsVolume:y,sourceMaps:F,metadata:$}=await TE(f,e);if(t.succeed(),!await hg({libraryConfig:d,metadata:$,existingCodeLibraries:c,sourceMaps:F,workspaceInfo:l}))return;t=p.spinner("Creating code library");let{resourceId:R,profileSlug:x,workspace:T,s3Urls:G,cdnUrls:M}=await s("init_code_library",async()=>await xl({name:d.name,slug:d.id,description:d.description,options:a}));t.succeed(),p.debug(JSON.stringify({resourceId:R,profileSlug:x,s3Urls:G,cdnUrls:M},null,2)),await o.sendUsage("library_initialized",!0,void 0,{libraryName:d.name,framework:d.framework,resourceId:R,profileSlug:x}),d.id||De({library:{id:x}}),t=p.spinner("Compiling code components");let{outputFiles:E,outputVolume:h}=await AE(f,m,y,$,R,M,e);t.succeed(),await o.sendUsage("bundle_generated",!0,void 0,{libraryName:d.name,componentCount:Object.keys(m).length,resourceId:R,profileSlug:x}),t=p.spinner("Uploading files"),await OE(f,E,h,R),t.succeed(),await o.sendUsage("files_uploaded",!0,void 0,{libraryName:d.name,fileCount:E.length,resourceId:R,profileSlug:x}),t=p.spinner("Sharing library"),await PE(f,$,F,R,M),t.succeed(),p.success(`Code library shared successfully${T?.slug?`: ${vn}/dashboard/workspace/${T?.slug}/shared-libraries-and-templates`:"!"}`);let g=Date.now()-n;await o.sendUsage("share_library",!0,g,{componentCount:Object.keys(m).length,libraryName:d.name,framework:d.framework,resourceId:R,profileSlug:x})}catch(a){t?.fail();let u=a instanceof Error?a.message:String(a);await i(a instanceof Error?a:new Error(String(a)),"share_library");let l=Date.now()-n;await o.sendUsage("share_library",!1,l,{error:u}),p.error(a)}}var Ri=D(require("fs")),jt=require("path"),Og=require("@webflow/data-types");U();function IE(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}async function Bl(e){e.verbose&&(process.env.DEBUG="true");let t;try{p.debug("Checking dependencies versions..."),new $t().run(),p.debug("Looking for manifest...");let n=await Bi({existingCodeLibraries:[]});p.debug(JSON.stringify(n,null,2)),t=p.spinner("Collecting metadata");let{componentsFiles:r,componentsVolume:o}=await Pi(n);p.debug(`Components: ${JSON.stringify(r,null,2)}`);let i=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:s,metadata:a}=await Ai({declarations:r,sources:o,overrideConfig:i,performTypeCheck:Ii(r,e)});p.debug(`Metadata: ${JSON.stringify(a,null,2)}`),p.debug(`Source Maps:
153
+ `,l),"")}`),{componentsFiles:o,componentsVolume:i,sourceMaps:a,metadata:u}})}async function _E(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:u}=e;return await a("generate_library_bundle",async()=>{let l=u.bundleConfig?require(u.bundleConfig):{};return await Ei(u,{libraryIdentifier:`_${o}`,publicPaths:i,components:t,componentsVolume:n,metadata:r,debugBundler:s?.debugBundler,dev:s?.dev,overrideConfig:l,failOnWarnings:!s?.force})})}async function CE(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([u,l])=>{let c=(0,Ii.resolve)((0,Ii.join)(`/${l}`,`${u.name}`));return qr(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:l})}),{signatures:a}=await wl({resourceId:r,files:s.map(({meta:u})=>u),options:i});await Promise.all(a.map(async u=>{let l=s.find(c=>c.meta.fileHash===u.hash);if(!l)throw new Error(`File not found: ${u.hash}`);await yl(l,u.value)}))})}async function SE(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let u={clientModule:{bundleUrl:o[Qr.Environment.Client]+gr,loaderType:Qr.ModuleLoader.FEDERATION},serverModule:{bundleUrl:o[Qr.Environment.Server]+br}},l=ig(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await vl({resourceId:r,codeModule:u,components:Object.values(l),options:a});d.debug(JSON.stringify({taskId:c},null,2))})}async function Al(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;d.debug("Initializing workspace API token...");try{r=await fg(e)}catch(a){d.error(a instanceof Error?a.message:String(a)),process.exit(1)}d.debug("Initializing telemetry service...");let o=qe.forCodeLibraries({host:Z,authToken:r}),i=bo(o),s=Do(o);try{await o.promptForConsentIfNeeded(),d.debug("Checking dependencies versions..."),new $t().run();let a={workspaceApiToken:r};t=d.spinner("Initializing");let u=await s("get_code_libraries",async()=>await bl({options:a})),{workspace:l,libraries:c}=u;t.succeed(),d.debug("Parsing library config...");let p=await Pi({existingCodeLibraries:c}),f={trackPerformance:s,apiOptions:a,libraryConfig:p};t=d.spinner("Collecting metadata");let{componentsFiles:m,componentsVolume:y,sourceMaps:F,metadata:$}=await EE(f,e);if(t.succeed(),!await ug({libraryConfig:p,metadata:$,existingCodeLibraries:c,sourceMaps:F,workspaceInfo:l}))return;t=d.spinner("Creating code library");let{resourceId:R,profileSlug:x,workspace:T,s3Urls:G,cdnUrls:M}=await s("init_code_library",async()=>await Dl({name:p.name,slug:p.id,description:p.description,options:a}));t.succeed(),d.debug(JSON.stringify({resourceId:R,profileSlug:x,s3Urls:G,cdnUrls:M},null,2)),await o.sendUsage("library_initialized",!0,void 0,{libraryName:p.name,framework:p.framework,resourceId:R,profileSlug:x}),p.id||ae({library:{id:x}}),t=d.spinner("Compiling code components");let{outputFiles:E,outputVolume:h}=await _E(f,m,y,$,R,M,e);t.succeed(),await o.sendUsage("bundle_generated",!0,void 0,{libraryName:p.name,componentCount:Object.keys(m).length,resourceId:R,profileSlug:x}),t=d.spinner("Uploading files"),await CE(f,E,h,R),t.succeed(),await o.sendUsage("files_uploaded",!0,void 0,{libraryName:p.name,fileCount:E.length,resourceId:R,profileSlug:x}),t=d.spinner("Sharing library"),await SE(f,$,F,R,M),t.succeed(),d.success(`Code library shared successfully${T?.slug?`: ${kn}/dashboard/workspace/${T?.slug}/shared-libraries-and-templates`:"!"}`);let g=Date.now()-n;await o.sendUsage("share_library",!0,g,{componentCount:Object.keys(m).length,libraryName:p.name,framework:p.framework,resourceId:R,profileSlug:x})}catch(a){t?.fail();let u=a instanceof Error?a.message:String(a);await i(a instanceof Error?a:new Error(String(a)),"share_library");let l=Date.now()-n;await o.sendUsage("share_library",!1,l,{error:u}),d.error(a)}}var ji=D(require("fs")),It=require("path"),Eg=require("@webflow/data-types");U();function TE(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}async function Ol(e){e.verbose&&(process.env.DEBUG="true");let t;try{d.debug("Checking dependencies versions..."),new $t().run(),d.debug("Looking for manifest...");let n=await Pi({existingCodeLibraries:[]});d.debug(JSON.stringify(n,null,2)),t=d.spinner("Collecting metadata");let{componentsFiles:r,componentsVolume:o}=await Ti(n);d.debug(`Components: ${JSON.stringify(r,null,2)}`);let i=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:s,metadata:a}=await Ci({declarations:r,sources:o,overrideConfig:i,performTypeCheck:Ai(r,e)});d.debug(`Metadata: ${JSON.stringify(a,null,2)}`),d.debug(`Source Maps:
153
154
 
154
- ${Object.entries(s).reduce((c,[d,f])=>(c+=`${d}: ${JSON.stringify(JSON.parse(f),null,2)}
155
+ ${Object.entries(s).reduce((c,[p,f])=>(c+=`${p}: ${JSON.stringify(JSON.parse(f),null,2)}
155
156
 
156
- `,c),"")}`),t.succeed(),t=p.spinner("Generating library bundle");let{outputFiles:u,outputVolume:l}=await Si(n,{libraryIdentifier:`_${IE(n.name)}`,publicPaths:Object.values(Og.Environment).reduce((c,d)=>(c[d]=e.publicPath,c),{}),components:r,componentsVolume:o,metadata:a,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:i,failOnWarnings:!e.force});t.succeed(),t=p.spinner("Writing to the disk"),u.forEach(([c,d])=>{let f=(0,jt.resolve)((0,jt.join)(`/${d}`,`${c.name}`)),m=qr(l.readFileSync(f,"utf8").toString(),f,{bundleEnvironment:d}),y=(0,jt.join)(process.cwd(),e.outputPath);Ri.default.existsSync((0,jt.join)(y,`${d}`))||Ri.default.mkdirSync((0,jt.join)(y,`${d}`),{recursive:!0}),Ri.default.writeFileSync((0,jt.join)(y,d,c.name),m.value.toString())}),t.succeed(),p.success("Code Library bundled successfully!")}catch(n){t?.fail(),p.error(n instanceof Error?n:String(n))}}var to=D(require("fs-extra")),Ll=D(require("path"));U();function jE(){try{if(!to.default.existsSync(Ee))return null;let e=to.default.readdirSync(Ee).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Ll.default.join(Ee,t),time:to.default.statSync(Ll.default.join(Ee,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=to.default.readFileSync(t.path,"utf8").match(/Command: (.+)/);if(r&&!r[1].includes("library log"))return t.path}catch{continue}return null}catch{return null}}async function Rl(){let e=jE();console.info(e?`
157
- ${ne.green("INFO:")} Latest log: ${e}
157
+ `,c),"")}`),t.succeed(),t=d.spinner("Generating library bundle");let{outputFiles:u,outputVolume:l}=await Ei(n,{libraryIdentifier:`_${TE(n.name)}`,publicPaths:Object.values(Eg.Environment).reduce((c,p)=>(c[p]=e.publicPath,c),{}),components:r,componentsVolume:o,metadata:a,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:i,failOnWarnings:!e.force});t.succeed(),t=d.spinner("Writing to the disk"),u.forEach(([c,p])=>{let f=(0,It.resolve)((0,It.join)(`/${p}`,`${c.name}`)),m=qr(l.readFileSync(f,"utf8").toString(),f,{bundleEnvironment:p}),y=(0,It.join)(process.cwd(),e.outputPath);ji.default.existsSync((0,It.join)(y,`${p}`))||ji.default.mkdirSync((0,It.join)(y,`${p}`),{recursive:!0}),ji.default.writeFileSync((0,It.join)(y,p,c.name),m.value.toString())}),t.succeed(),d.success("Code Library bundled successfully!")}catch(n){t?.fail(),d.error(n instanceof Error?n:String(n))}}var eo=D(require("fs-extra")),Pl=D(require("path"));U();function AE(){try{if(!eo.default.existsSync(Fe))return null;let e=eo.default.readdirSync(Fe).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Pl.default.join(Fe,t),time:eo.default.statSync(Pl.default.join(Fe,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=eo.default.readFileSync(t.path,"utf8").match(/Command: (.+)/);if(r&&!r[1].includes("library log"))return t.path}catch{continue}return null}catch{return null}}async function Il(){let e=AE();console.info(e?`
158
+ Latest log: ${e}
158
159
  `:`
159
- ${ne.green("INFO:")} No log files found.
160
+ No log files found.
160
161
  `),console.info(`
161
- ${ne.green("INFO:")} All logs: ${Ee}`)}var Pg=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors.").option("--debug-bundler","Display final bundler configurations for debugging purposes.").option("--dev","Bundle in development mode for debugging purposes.").option("--verbose","Display more information for debugging purposes.");t.command("share").description("Share a library of Code Components to your Webflow Workspace.").option("--api-token <token>","Workspace API token. Default: value set in WEBFLOW_WORKSPACE_API_TOKEN env variable.").action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await jl(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").requiredOption("--public-path <path>","Override the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'","dist").action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Bl(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(async()=>{await Rl()})};var Bg=D(Ds());function Nl(e,t){t(e),e.commands.forEach(n=>Nl(n,t))}function Ig(e){e.option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines.")}function jg(e){e.option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json")}function Lg(e){let t=Bg.default.version;e.name("webflow").description("Webflow CLI").version(t),Ig(e),jg(e),e.hook("preAction",async n=>{let r=n.opts();r.input||Bu(!0),ot.start(),r.manifest&&Lu(r.manifest);try{await new gr().prompt()}catch(o){p.debug(o)}}),e.hook("postAction",async()=>{ot.displayGrouped(),ot.stop()}),mc(e),Gc(e),Tm(e),Ch(e),Pg(e),e.commands.forEach(n=>{Nl(n,Ig),Nl(n,jg)})}var Ng=new Rg.Command;Lg(Ng);Ng.parse();
162
+ All logs: ${Fe}`)}var _g=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors.").option("--debug-bundler","Display final bundler configurations for debugging purposes.").option("--dev","Bundle in development mode for debugging purposes.").option("--verbose","Display more information for debugging purposes.");t.command("share").description("Share a library of Code Components to your Webflow Workspace.").option("--api-token <token>","Workspace API token. Default: value set in WEBFLOW_WORKSPACE_API_TOKEN env variable.").action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Al(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").requiredOption("--public-path <path>","Override the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'","dist").action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Ol(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(async()=>{await Il()})};var Tg=D(gs());function jl(e,t){t(e),e.commands.forEach(n=>jl(n,t))}function Cg(e){e.option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines.")}function Sg(e){e.option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json")}function Ag(e){let t=Tg.default.version;e.name("webflow").description("Webflow CLI").version(t),Cg(e),Sg(e),e.hook("preAction",async n=>{let r=n.opts();r.input||Ou(!0),rt.start(),r.manifest&&Pu(r.manifest);try{await new hr().prompt()}catch(o){d.debug(o)}}),e.hook("postAction",async()=>{rt.displayGrouped(),rt.stop()}),cc(e),Wc(e),Fm(e),kh(e),_g(e),e.commands.forEach(n=>{jl(n,Cg),jl(n,Sg)})}var Pg=new Og.Command;Ag(Pg);Pg.parse();
162
163
  //# sourceMappingURL=index.js.map