@webflow/webflow-cli 1.13.0 → 1.13.1

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,55 +1,50 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var uD=Object.create;var Ds=Object.defineProperty;var cD=Object.getOwnPropertyDescriptor;var dD=Object.getOwnPropertyNames;var pD=Object.getPrototypeOf,fD=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(e&&(t=e(e=0)),t);var ke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Uu=(e,t)=>{for(var n in t)Ds(e,n,{get:t[n],enumerable:!0})},mD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dD(t))!fD.call(e,o)&&o!==n&&Ds(e,o,{get:()=>t[o],enumerable:!(r=cD(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?uD(pD(e)):{},mD(t||!e||!e.__esModule?Ds(n,"default",{value:e,enumerable:!0}):n,e));function yD(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[r,o]of Object.entries(n))Q[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=Q[r],e.set(o[0],o[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,"codes",{value:e,enumerable:!1}),Q.color.close="\x1B[39m",Q.bgColor.close="\x1B[49m",Q.color.ansi=Vu(),Q.color.ansi256=Gu(),Q.color.ansi16m=qu(),Q.bgColor.ansi=Vu(10),Q.bgColor.ansi256=Gu(10),Q.bgColor.ansi16m=qu(10),Object.defineProperties(Q,{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=>Q.rgbToAnsi256(...Q.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)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>Q.ansi256ToAnsi(Q.hexToAnsi256(t)),enumerable:!1}}),Q}var Vu,Gu,qu,Q,vS,hD,gD,kS,bD,ze,Hu=_(()=>{"use strict";Vu=(e=0)=>t=>`\x1B[${t+e}m`,Gu=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,qu=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},vS=Object.keys(Q.modifier),hD=Object.keys(Q.color),gD=Object.keys(Q.bgColor),kS=[...hD,...gD];bD=yD(),ze=bD});function Fe(e,t=globalThis.Deno?globalThis.Deno.args:Eo.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 DD(){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 wD(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function vD(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=DD();r!==void 0&&(Co=r);let o=n?Co:r;if(o===0)return 0;if(n){if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("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(Eo.default.platform==="win32"){let s=Zu.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"||ee.TERM==="xterm-ghostty"||ee.TERM==="wezterm")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 Ju(e,t={}){let n=vD(e,{streamIsTTY:e&&e.isTTY,...t});return wD(n)}var Eo,Zu,ws,ee,Co,kD,Yu,Ku=_(()=>{"use strict";Eo=D(require("process"),1),Zu=D(require("os"),1),ws=D(require("tty"),1);({env:ee}=Eo.default);Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?Co=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(Co=1);kD={stdout:Ju({isTTY:ws.default.isatty(1)}),stderr:Ju({isTTY:ws.default.isatty(2)})},Yu=kD});function Xu(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 Qu(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 by=Object.create;var Ni=Object.defineProperty;var Dy=Object.getOwnPropertyDescriptor;var wy=Object.getOwnPropertyNames;var vy=Object.getPrototypeOf,ky=Object.prototype.hasOwnProperty;var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var Mi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hl=(e,t)=>{for(var n in t)Ni(e,n,{get:t[n],enumerable:!0})},xy=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wy(t))!ky.call(e,o)&&o!==n&&Ni(e,o,{get:()=>t[o],enumerable:!(r=Dy(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?by(vy(e)):{},xy(t||!e||!e.__esModule?Ni(n,"default",{value:e,enumerable:!0}):n,e));function _y(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[r,o]of Object.entries(n))Q[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=Q[r],e.set(o[0],o[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,"codes",{value:e,enumerable:!1}),Q.color.close="\x1B[39m",Q.bgColor.close="\x1B[49m",Q.color.ansi=Jl(),Q.color.ansi256=Zl(),Q.color.ansi16m=Kl(),Q.bgColor.ansi=Jl(10),Q.bgColor.ansi256=Zl(10),Q.bgColor.ansi16m=Kl(10),Object.defineProperties(Q,{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=>Q.rgbToAnsi256(...Q.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)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>Q.ansi256ToAnsi(Q.hexToAnsi256(t)),enumerable:!1}}),Q}var Jl,Zl,Kl,Q,I_,Cy,Fy,B_,Ey,Re,Yl=T(()=>{"use strict";Jl=(e=0)=>t=>`\x1B[${t+e}m`,Zl=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Kl=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},I_=Object.keys(Q.modifier),Cy=Object.keys(Q.color),Fy=Object.keys(Q.bgColor),B_=[...Cy,...Fy];Ey=_y(),Re=Ey});function Ce(e,t=globalThis.Deno?globalThis.Deno.args:io.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 Sy(){if("FORCE_COLOR"in te)return te.FORCE_COLOR==="true"?1:te.FORCE_COLOR==="false"?0:te.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(te.FORCE_COLOR,10),3)}function Ay(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ty(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Sy();r!==void 0&&(oo=r);let o=n?oo:r;if(o===0)return 0;if(n){if(Ce("color=16m")||Ce("color=full")||Ce("color=truecolor"))return 3;if(Ce("color=256"))return 2}if("TF_BUILD"in te&&"AGENT_NAME"in te)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(te.TERM==="dumb")return i;if(io.default.platform==="win32"){let s=Ql.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in te)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in te)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in te)||te.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(te.TEAMCITY_VERSION)?1:0;if(te.COLORTERM==="truecolor"||te.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in te){let s=Number.parseInt((te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(te.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(te.TERM)||"COLORTERM"in te?1:i}function Xl(e,t={}){let n=Ty(e,{streamIsTTY:e&&e.isTTY,...t});return Ay(n)}var io,Ql,$i,te,oo,Oy,eu,tu=T(()=>{"use strict";io=D(require("process"),1),Ql=D(require("os"),1),$i=D(require("tty"),1);({env:te}=io.default);Ce("no-color")||Ce("no-colors")||Ce("color=false")||Ce("color=never")?oo=0:(Ce("color")||Ce("colors")||Ce("color=true")||Ce("color=always"))&&(oo=1);Oy={stdout:Xl({isTTY:$i.default.isatty(1)}),stderr:Xl({isTTY:$i.default.isatty(2)})},eu=Oy});function nu(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 ru(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 ec=_(()=>{"use strict"});function xr(e){return CD(e)}var tc,nc,vs,En,kr,rc,_n,xD,CD,ks,ED,_D,xs,_o,FD,SD,TS,oc,ic=_(()=>{"use strict";Hu();Ku();ec();({stdout:tc,stderr:nc}=Yu),vs=Symbol("GENERATOR"),En=Symbol("STYLER"),kr=Symbol("IS_EMPTY"),rc=["ansi","ansi","ansi256","ansi16m"],_n=Object.create(null),xD=(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=tc?tc.level:0;e.level=t.level===void 0?n:t.level},CD=e=>{let t=(...n)=>n.join(" ");return xD(t,e),Object.setPrototypeOf(t,xr.prototype),t};Object.setPrototypeOf(xr.prototype,Function.prototype);for(let[e,t]of Object.entries(ze))_n[e]={get(){let n=_o(this,xs(t.open,t.close,this[En]),this[kr]);return Object.defineProperty(this,e,{value:n}),n}};_n.visible={get(){let e=_o(this,this[En],!0);return Object.defineProperty(this,"visible",{value:e}),e}};ks=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?ze[n].ansi16m(...r):t==="ansi256"?ze[n].ansi256(ze.rgbToAnsi256(...r)):ze[n].ansi(ze.rgbToAnsi(...r)):e==="hex"?ks("rgb",t,n,...ze.hexToRgb(...r)):ze[n][e](...r),ED=["rgb","hex","ansi256"];for(let e of ED){_n[e]={get(){let{level:n}=this;return function(...r){let o=xs(ks(e,rc[n],"color",...r),ze.color.close,this[En]);return _o(this,o,this[kr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);_n[t]={get(){let{level:n}=this;return function(...r){let o=xs(ks(e,rc[n],"bgColor",...r),ze.bgColor.close,this[En]);return _o(this,o,this[kr])}}}}_D=Object.defineProperties(()=>{},{..._n,level:{enumerable:!0,get(){return this[vs].level},set(e){this[vs].level=e}}}),xs=(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}},_o=(e,t,n)=>{let r=(...o)=>FD(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,_D),r[vs]=e,r[En]=t,r[kr]=n,r},FD=(e,t)=>{if(e.level<=0||!t)return e[kr]?"":t;let n=e[En];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=Xu(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
- `);return i!==-1&&(t=Qu(t,o,r,i)),r+t+o};Object.defineProperties(xr.prototype,_n);SD=xr(),TS=xr({level:nc?nc.level:0}),oc=SD});function Cs(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))TD(e,t,o,n);return OD(e,t),RD(e,t,r),e}var TD,AD,OD,PD,ID,BD,RD,sc=_(()=>{"use strict";TD=(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);!AD(o,i)&&r||Object.defineProperty(e,n,i)},AD=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)},OD=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},PD=(e,t)=>`/* Wrapped ${e}*/
7
- ${t}`,ID=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),BD=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),RD=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=PD.bind(null,r,t.toString());Object.defineProperty(o,"name",BD);let{writable:i,enumerable:s,configurable:a}=ID;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var Fo,ac,lc,uc=_(()=>{"use strict";sc();Fo=new WeakMap,ac=(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(Fo.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 Cs(i,e),Fo.set(i,r),i};ac.callCount=e=>{if(!Fo.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Fo.get(e)};lc=ac});var qt,cc=_(()=>{"use strict";qt=[];qt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&qt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var So,Es,_s,jD,Fs,To,LD,Ss,Ts,As,dc,jS,LS,pc=_(()=>{"use strict";cc();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",Es=Symbol.for("signal-exit emitter"),_s=globalThis,jD=Object.defineProperty.bind(Object),Fs=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(_s[Es])return _s[Es];jD(_s,Es,{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}},To=class{},LD=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Ss=class extends To{onExit(){return()=>{}}load(){}unload(){}},Ts=class extends To{#s=As.platform==="win32"?"SIGINT":"SIGHUP";#n=new Fs;#e;#o;#p;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of qt)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 qt)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,qt.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)}},As=globalThis.process,{onExit:dc,load:jS,unload:LS}=LD(So(As)?new Ts(As):new Ss)});var Cr,fc,MD,mc,hc=_(()=>{"use strict";Cr=D(require("process"),1);uc();pc();fc=Cr.default.stderr.isTTY?Cr.default.stderr:Cr.default.stdout.isTTY?Cr.default.stdout:void 0,MD=fc?lc(()=>{dc(()=>{fc.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},mc=MD});var Os,Ao,Fn,Ps,gc=_(()=>{"use strict";Os=D(require("process"),1);hc();Ao=!1,Fn={};Fn.show=(e=Os.default.stderr)=>{e.isTTY&&(Ao=!1,e.write("\x1B[?25h"))};Fn.hide=(e=Os.default.stderr)=>{e.isTTY&&(mc(),Ao=!0,e.write("\x1B[?25l"))};Fn.toggle=(e,t)=>{e!==void 0&&(Ao=e),Ao?Fn.show(t):Fn.hide(t)};Ps=Fn});var yc=ke((VS,ND)=>{ND.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 Is=ke((GS,Dc)=>{"use strict";var Oo=Object.assign({},yc()),bc=Object.keys(Oo);Object.defineProperty(Oo,"random",{get(){let e=Math.floor(Math.random()*bc.length),t=bc[e];return Oo[t]}});Dc.exports=Oo});function zD(){let e=new Map;for(let[t,n]of Object.entries(te)){for(let[r,o]of Object.entries(n))te[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=te[r],e.set(o[0],o[1]);Object.defineProperty(te,t,{value:n,enumerable:!1})}return Object.defineProperty(te,"codes",{value:e,enumerable:!1}),te.color.close="\x1B[39m",te.bgColor.close="\x1B[49m",te.color.ansi=wc(),te.color.ansi256=vc(),te.color.ansi16m=kc(),te.bgColor.ansi=wc(10),te.bgColor.ansi256=vc(10),te.bgColor.ansi16m=kc(10),Object.defineProperties(te,{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=>te.rgbToAnsi256(...te.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)=>te.ansi256ToAnsi(te.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>te.ansi256ToAnsi(te.hexToAnsi256(t)),enumerable:!1}}),te}var wc,vc,kc,te,qS,$D,WD,HS,UD,Ue,xc=_(()=>{"use strict";wc=(e=0)=>t=>`\x1B[${t+e}m`,vc=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,kc=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,te={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]}},qS=Object.keys(te.modifier),$D=Object.keys(te.color),WD=Object.keys(te.bgColor),HS=[...$D,...WD];UD=zD(),Ue=UD});function Se(e,t=globalThis.Deno?globalThis.Deno.args:Io.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 VD(){if("FORCE_COLOR"in ne)return ne.FORCE_COLOR==="true"?1:ne.FORCE_COLOR==="false"?0:ne.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ne.FORCE_COLOR,10),3)}function GD(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function qD(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=VD();r!==void 0&&(Po=r);let o=n?Po:r;if(o===0)return 0;if(n){if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2}if("TF_BUILD"in ne&&"AGENT_NAME"in ne)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(ne.TERM==="dumb")return i;if(Io.default.platform==="win32"){let s=Ec.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ne)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ne)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ne)||ne.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor"||ne.TERM==="xterm-kitty"||ne.TERM==="xterm-ghostty"||ne.TERM==="wezterm")return 3;if("TERM_PROGRAM"in ne){let s=Number.parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:i}function Cc(e,t={}){let n=qD(e,{streamIsTTY:e&&e.isTTY,...t});return GD(n)}var Io,Ec,Bs,ne,Po,HD,_c,Fc=_(()=>{"use strict";Io=D(require("process"),1),Ec=D(require("os"),1),Bs=D(require("tty"),1);({env:ne}=Io.default);Se("no-color")||Se("no-colors")||Se("color=false")||Se("color=never")?Po=0:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Po=1);HD={stdout:Cc({isTTY:Bs.default.isatty(1)}),stderr:Cc({isTTY:Bs.default.isatty(2)})},_c=HD});function Sc(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 Tc(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
8
- `:`
9
- `)+n,o=r+1,r=e.indexOf(`
10
- `,o)}while(r!==-1);return i+=e.slice(o),i}var Ac=_(()=>{"use strict"});function _r(e){return ZD(e)}var Oc,Pc,Rs,Sn,Er,Ic,Tn,JD,ZD,js,YD,KD,Ls,Bo,XD,QD,eT,ct,Bc=_(()=>{"use strict";xc();Fc();Ac();({stdout:Oc,stderr:Pc}=_c),Rs=Symbol("GENERATOR"),Sn=Symbol("STYLER"),Er=Symbol("IS_EMPTY"),Ic=["ansi","ansi","ansi256","ansi16m"],Tn=Object.create(null),JD=(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=Oc?Oc.level:0;e.level=t.level===void 0?n:t.level},ZD=e=>{let t=(...n)=>n.join(" ");return JD(t,e),Object.setPrototypeOf(t,_r.prototype),t};Object.setPrototypeOf(_r.prototype,Function.prototype);for(let[e,t]of Object.entries(Ue))Tn[e]={get(){let n=Bo(this,Ls(t.open,t.close,this[Sn]),this[Er]);return Object.defineProperty(this,e,{value:n}),n}};Tn.visible={get(){let e=Bo(this,this[Sn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};js=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?Ue[n].ansi16m(...r):t==="ansi256"?Ue[n].ansi256(Ue.rgbToAnsi256(...r)):Ue[n].ansi(Ue.rgbToAnsi(...r)):e==="hex"?js("rgb",t,n,...Ue.hexToRgb(...r)):Ue[n][e](...r),YD=["rgb","hex","ansi256"];for(let e of YD){Tn[e]={get(){let{level:n}=this;return function(...r){let o=Ls(js(e,Ic[n],"color",...r),Ue.color.close,this[Sn]);return Bo(this,o,this[Er])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Tn[t]={get(){let{level:n}=this;return function(...r){let o=Ls(js(e,Ic[n],"bgColor",...r),Ue.bgColor.close,this[Sn]);return Bo(this,o,this[Er])}}}}KD=Object.defineProperties(()=>{},{...Tn,level:{enumerable:!0,get(){return this[Rs].level},set(e){this[Rs].level=e}}}),Ls=(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}},Bo=(e,t,n)=>{let r=(...o)=>XD(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,KD),r[Rs]=e,r[Sn]=t,r[Er]=n,r},XD=(e,t)=>{if(e.level<=0||!t)return e[Er]?"":t;let n=e[Sn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=Sc(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
11
- `);return i!==-1&&(t=Tc(t,o,r,i)),r+t+o};Object.defineProperties(_r.prototype,Tn);QD=_r(),eT=_r({level:Pc?Pc.level:0}),ct=QD});function Ms(){return Te.default.platform!=="win32"?Te.default.env.TERM!=="linux":!!Te.default.env.CI||!!Te.default.env.WT_SESSION||!!Te.default.env.TERMINUS_SUBLIME||Te.default.env.ConEmuTask==="{cmd::Cmder}"||Te.default.env.TERM_PROGRAM==="Terminus-Sublime"||Te.default.env.TERM_PROGRAM==="vscode"||Te.default.env.TERM==="xterm-256color"||Te.default.env.TERM==="alacritty"||Te.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Te,Rc=_(()=>{"use strict";Te=D(require("process"),1)});var e0,t0,n0,Fr,jc=_(()=>{"use strict";Bc();Rc();e0={info:ct.blue("\u2139"),success:ct.green("\u2714"),warning:ct.yellow("\u26A0"),error:ct.red("\u2716")},t0={info:ct.blue("i"),success:ct.green("\u221A"),warning:ct.yellow("\u203C"),error:ct.red("\xD7")},n0=Ms()?e0:t0,Fr=n0});function Ns({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var Lc=_(()=>{"use strict"});function $s(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(r0,"")}var r0,Mc=_(()=>{"use strict";Lc();r0=Ns()});function Ws({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var Nc=_(()=>{"use strict"});function zs(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(o0,"")}var o0,$c=_(()=>{"use strict";Nc();o0=Ws()});var Ro,jo,Us,Vs,Sr,Wc=_(()=>{"use strict";Ro=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],jo=[12288,12288,65281,65376,65504,65510],Us=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Vs=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Sr=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var Lo,zc=_(()=>{"use strict";Lo=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let o=Math.floor((n+r)/2),i=o*2;if(t<e[i])r=o-1;else if(t>e[i+1])n=o+1;else return!0}return!1}});function f0(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let o=e[r],i=e[r+1];if(Uc>=o&&Uc<=i)return[o,i];i-o>n-t&&(t=o,n=i)}return[t,n]}var i0,s0,a0,l0,gT,yT,bT,DT,u0,c0,Uc,d0,p0,Vc,Gc,qc,Hc=_(()=>{"use strict";Wc();zc();i0=Ro[0],s0=Ro.at(-1),a0=jo[0],l0=jo.at(-1),gT=Us[0],yT=Us.at(-1),bT=Vs[0],DT=Vs.at(-1),u0=Sr[0],c0=Sr.at(-1),Uc=19968,[d0,p0]=f0(Sr);Vc=e=>e<i0||e>s0?!1:Lo(Ro,e),Gc=e=>e<a0||e>l0?!1:Lo(jo,e),qc=e=>e>=d0&&e<=p0?!0:e<u0||e>c0?!1:Lo(Sr,e)});function m0(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Jc(e,{ambiguousAsWide:t=!1}={}){return m0(e),Gc(e)||qc(e)||t&&Vc(e)?2:1}var Zc=_(()=>{"use strict";Hc()});var Yc,Kc=_(()=>{"use strict";Yc=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function Gs(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=zs(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of h0.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)&&!g0.test(s)){if(Yc().test(s)){o+=2;continue}o+=Jc(a,i)}}return o}var h0,g0,Xc=_(()=>{"use strict";$c();Zc();Kc();h0=new Intl.Segmenter,g0=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function qs({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Qc=_(()=>{"use strict"});function Js(){let{env:e}=Hs.default,{TERM:t,TERM_PROGRAM:n}=e;return Hs.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 Hs,ed=_(()=>{"use strict";Hs=D(require("process"),1)});var Ve,y0,Zs,b0,Ys,td=_(()=>{"use strict";Ve=D(require("process"),1),y0=3,Zs=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(){Ve.default.platform==="win32"||!Ve.default.stdin.isTTY||(Ve.default.stdin.setRawMode(!0),Ve.default.stdin.on("data",this.#o),Ve.default.stdin.resume())}#e(){Ve.default.stdin.isTTY&&(Ve.default.stdin.off("data",this.#o),Ve.default.stdin.pause(),Ve.default.stdin.setRawMode(!1))}#o(t){t[0]===y0&&Ve.default.emit("SIGINT")}},b0=new Zs,Ys=b0});function An(e){return new Ks(e)}var Tr,Ar,D0,Ks,Xs=_(()=>{"use strict";Tr=D(require("process"),1);ic();gc();Ar=D(Is(),1);jc();Mc();Xc();Qc();ed();td();D0=D(Is(),1),Ks=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:Tr.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:qs({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,Tr.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(!Js())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 $s(o).split(`
12
- `))this.#e+=Math.max(1,Math.ceil(Gs(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=oc[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&&Ps.hide(this.#r),this.#t.discardStdin&&Tr.default.stdin.isTTY&&(this.#n=!0,Ys.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#r.write(`- ${this.text}
13
- `),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&Ps.show(this.#r),this.#t.discardStdin&&Tr.default.stdin.isTTY&&this.#n&&(Ys.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Fr.success,text:t})}fail(t){return this.stopAndPersist({symbol:Fr.error,text:t})}warn(t){return this.stopAndPersist({symbol:Fr.warning,text:t})}info(t){return this.stopAndPersist({symbol:Fr.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+`
14
- `;return this.stop(),this.#r.write(c),this}}});function ta(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),Mo.default.platform==="darwin"?w0(e):Mo.default.platform==="win32"?v0(e):k0(e)}var re,Qs,Mo,_t,ea,On,w0,v0,k0,nd=_(()=>{"use strict";re=D(require("path"),1),Qs=D(require("os"),1),Mo=D(require("process"),1),_t=Qs.default.homedir(),ea=Qs.default.tmpdir(),{env:On}=Mo.default,w0=e=>{let t=re.default.join(_t,"Library");return{data:re.default.join(t,"Application Support",e),config:re.default.join(t,"Preferences",e),cache:re.default.join(t,"Caches",e),log:re.default.join(t,"Logs",e),temp:re.default.join(ea,e)}},v0=e=>{let t=On.APPDATA||re.default.join(_t,"AppData","Roaming"),n=On.LOCALAPPDATA||re.default.join(_t,"AppData","Local");return{data:re.default.join(n,e,"Data"),config:re.default.join(t,e,"Config"),cache:re.default.join(n,e,"Cache"),log:re.default.join(n,e,"Log"),temp:re.default.join(ea,e)}},k0=e=>{let t=re.default.basename(_t);return{data:re.default.join(On.XDG_DATA_HOME||re.default.join(_t,".local","share"),e),config:re.default.join(On.XDG_CONFIG_HOME||re.default.join(_t,".config"),e),cache:re.default.join(On.XDG_CACHE_HOME||re.default.join(_t,".cache"),e),log:re.default.join(On.XDG_STATE_HOME||re.default.join(_t,".local","state"),e),temp:re.default.join(ea,t,e)}}});function No(){return/[<>:"/\\|?*\u0000-\u001F]/g}function rd(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var od=_(()=>{"use strict"});function Or(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(No().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(C0,o),e=e.replace(No(),o),e=e.replace(n,o),e=e.replace(E0,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=rd().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:x0;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 x0,C0,E0,na=_(()=>{"use strict";od();x0=100,C0=/^\.+(\\|\/)|^\.+$/,E0=/\.+$/});var _0,id=_(()=>{"use strict";_0=D(require("path"),1);na()});var sd=_(()=>{"use strict";na();id()});var $o,ra=_(()=>{"use strict";$o="webflow.json"});var dt,Ht,Pr=_(()=>{"use strict";dt=class extends Error{constructor(t){super(`Manifest file not found at path: ${t}`),this.name="ManifestFileNotFoundError"}},Ht=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function ld(e){oa=e}function ce(){return oa}function Qe(){return!oa}function ud(e){ad=e}function cd(){return ad}var oa,ad,Ae=_(()=>{"use strict";oa=!1});function pt(){let e=cd();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,dd.statSync)(e)?.isDirectory())return{path:(0,pd.join)(e,$o),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:`./${$o}`,isUserDefined:!1}}var dd,pd,Wo=_(()=>{"use strict";dd=require("fs"),pd=require("path");ra();Ae()});var fd,F0,S0,ia,md=_(()=>{"use strict";fd=D(require("ajv")),F0=new fd.default,S0={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"]},export:{type:"object",properties:{rootDir:{type:"string",minLength:1},components:{type:"string"},componentGroups:{type:"string"},ts:{type:"boolean"},cssModules:{type:"boolean"},camelCaseVariantNames:{type:"boolean"},relativeHrefRoot:{oneOf:[{type:"boolean",const:!1},{type:"string"}]}},required:[]}}},ia=F0.compile(S0)});function hd(e){return e instanceof Error?e:new Error("Unknown error")}function ie(){let{path:e}=pt();if(!(0,zo.existsSync)(e))throw new dt(e);let t;try{t=(0,zo.readFileSync)(e,"utf8")}catch(r){throw new Error(`Failed to read manifest file: ${hd(r).message}`)}let n;try{n=JSON.parse(t)}catch(r){throw new Error(`Invalid JSON in manifest file: ${hd(r).message}`)}if(!ia(n)){let r=ia.errors?.map(o=>`${o.instancePath} ${o.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${r}.`)}return{manifest:n,manifestPath:e}}var zo,sa=_(()=>{"use strict";zo=require("fs");Pr();Wo();md()});function Ir(e,t){let n=e[t];if(!n)throw new Ht(t);return n}var gd=_(()=>{"use strict";Pr()});function pe(e){let t,n;try{let o=ie();t=o.manifest,n=o.manifestPath}catch(o){if(o instanceof dt)t={},n=pt().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,yd.writeFileSync)(n,JSON.stringify(r,null,2),"utf-8")}var yd,bd=_(()=>{"use strict";yd=require("fs");Pr();sa();Wo()});var Ge=_(()=>{"use strict";ra();Pr();sa();Wo();gd();bd()});var aa=ke((v3,T0)=>{T0.exports={name:"@webflow/webflow-cli",version:"1.13.0",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:unit":"jest --ci --ignoreProjects e2e","test:local":"jest","test:e2e-cache-clear":"bash scripts/clear-e2e-cache.sh"},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","@rspack/core":"^1.7.8","@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","ts-checker-rspack-plugin":"^1.0.0","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.2",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.17.2","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 ft(){try{return aa().version}catch{return"unknown"}}function et(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=Br.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=Br.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 la(e){if(e.stack)return et(e.stack)}function Ft(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]=et(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=Ft(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?Ft(s):typeof s=="string"?et(s):s):n[r]=o}return n}function Dd(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${Br.default.type()} ${Br.default.release()}`}}function ua(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var Br,Rr=_(()=>{"use strict";Br=D(require("os"))});var Jt,ca=_(()=>{"use strict";Ge();Rr();q();Jt=class e{static instance;cache=void 0;static isDoNotTrackEnabled(){let t=process.env.DO_NOT_TRACK;return t==="1"||t?.toLowerCase()==="true"}static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(e.isDoNotTrackEnabled())return!1;if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await ie(),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){return e.isDoNotTrackEnabled()?(p.info("Telemetry is disabled because the DO_NOT_TRACK environment variable is set."),!1):(p.info("Telemetry is enabled. Usage data and error reports help us improve Webflow CLI."),p.info("To opt out, run: webflow auth telemetry --disable"),await this.setPreference(!0),!0)}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let n={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:ft()}}};await pe(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 qe(e,t){let r={"User-Agent":`webflow-cli@${ft()}`};return(0,wd.default)(e,{...t,headers:{...t?.headers,...r}})}var wd,Pn=_(()=>{"use strict";wd=D(require("node-fetch"));Zt()});var vd,kd=_(()=>{"use strict";vd=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 da,Y,mt,In,jr,pa,Lr,Mr,Bn,fe=_(()=>{"use strict";kd();da=(e,t)=>(vd(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),Y=process.env.WEBFLOW_API_HOST?da("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",mt=process.env.WEBFLOW_CDN_API_HOST?da("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",In=process.env.WEBFLOW_HOST?da("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",jr="wf-manifest.json",pa="mf-manifest.json",Lr="@webflow_renderer",Mr="ssr-bundle.tar",Bn="index.js"});var tt,fa=_(()=>{"use strict";ca();Rr();q();Pn();fe();tt=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Jt.getInstance(),this.sessionId=ua(),this.platformInfo=Dd()}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:la(t),context:n,metadata:r?Ft(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?Ft(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)}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:ft(),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=et(n.message)),n.stack&&(n.stack=et(n.stack)),n.context&&(n.context=et(n.context)),n.metadata&&(n.metadata=Ft(n.metadata)),n.data&&(n.data=Ft(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 qe(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 fromExportConfig(t){return new e({host:Y,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 xd=_(()=>{"use strict"});function Uo(e){return async(t,n)=>{try{await e.sendError(t,n)}catch(r){p.debug("Failed to send error telemetry:"+r)}}}function Vo(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 Cd(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 Zt=_(()=>{"use strict";q();fa();ca();xd();Rr();fa();Rr()});var ha,ma,A0,ht,ga=_(()=>{"use strict";ha=Symbol("webflow-cli-warn"),ma=class{warnings=[];originalConsoleWarn=null;isActive=!1;parseSource(t){let n=t.split(`
15
- `);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]===ha){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 ou=T(()=>{"use strict"});function ur(e){return Iy(e)}var iu,su,zi,hn,lr,au,gn,Py,Iy,Wi,By,jy,Ui,so,Ry,Ly,z_,W,He=T(()=>{"use strict";Yl();tu();ou();({stdout:iu,stderr:su}=eu),zi=Symbol("GENERATOR"),hn=Symbol("STYLER"),lr=Symbol("IS_EMPTY"),au=["ansi","ansi","ansi256","ansi16m"],gn=Object.create(null),Py=(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=iu?iu.level:0;e.level=t.level===void 0?n:t.level},Iy=e=>{let t=(...n)=>n.join(" ");return Py(t,e),Object.setPrototypeOf(t,ur.prototype),t};Object.setPrototypeOf(ur.prototype,Function.prototype);for(let[e,t]of Object.entries(Re))gn[e]={get(){let n=so(this,Ui(t.open,t.close,this[hn]),this[lr]);return Object.defineProperty(this,e,{value:n}),n}};gn.visible={get(){let e=so(this,this[hn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Wi=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?Re[n].ansi16m(...r):t==="ansi256"?Re[n].ansi256(Re.rgbToAnsi256(...r)):Re[n].ansi(Re.rgbToAnsi(...r)):e==="hex"?Wi("rgb",t,n,...Re.hexToRgb(...r)):Re[n][e](...r),By=["rgb","hex","ansi256"];for(let e of By){gn[e]={get(){let{level:n}=this;return function(...r){let o=Ui(Wi(e,au[n],"color",...r),Re.color.close,this[hn]);return so(this,o,this[lr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);gn[t]={get(){let{level:n}=this;return function(...r){let o=Ui(Wi(e,au[n],"bgColor",...r),Re.bgColor.close,this[hn]);return so(this,o,this[lr])}}}}jy=Object.defineProperties(()=>{},{...gn,level:{enumerable:!0,get(){return this[zi].level},set(e){this[zi].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}},so=(e,t,n)=>{let r=(...o)=>Ry(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,jy),r[zi]=e,r[hn]=t,r[lr]=n,r},Ry=(e,t)=>{if(e.level<=0||!t)return e[lr]?"":t;let n=e[hn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=nu(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
+ `);return i!==-1&&(t=ru(t,o,r,i)),r+t+o};Object.defineProperties(ur.prototype,gn);Ly=ur(),z_=ur({level:su?su.level:0}),W=Ly});function Vi(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Ny(e,t,o,n);return $y(e,t),Vy(e,t,r),e}var Ny,My,$y,zy,Wy,Uy,Vy,lu=T(()=>{"use strict";Ny=(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);!My(o,i)&&r||Object.defineProperty(e,n,i)},My=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)},$y=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},zy=(e,t)=>`/* Wrapped ${e}*/
7
+ ${t}`,Wy=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Uy=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Vy=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=zy.bind(null,r,t.toString());Object.defineProperty(o,"name",Uy);let{writable:i,enumerable:s,configurable:a}=Wy;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var ao,uu,cu,pu=T(()=>{"use strict";lu();ao=new WeakMap,uu=(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(ao.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),ao.set(i,r),i};uu.callCount=e=>{if(!ao.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ao.get(e)};cu=uu});var Lt,du=T(()=>{"use strict";Lt=[];Lt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Lt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Lt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var lo,Gi,qi,Gy,Hi,uo,qy,Ji,Zi,Ki,fu,J_,Z_,mu=T(()=>{"use strict";du();lo=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,Gy=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];Gy(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}},uo=class{},qy=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Ji=class extends uo{onExit(){return()=>{}}load(){}unload(){}},Zi=class extends uo{#s=Ki.platform==="win32"?"SIGINT":"SIGHUP";#n=new Hi;#e;#o;#d;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of Lt)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.#d=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!lo(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 Lt)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,Lt.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.#d,this.#n.count-=1)}#r(t){return lo(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#d.call(this.#e,this.#e.exitCode)):0}#f(t,...n){let r=this.#o;if(t==="exit"&&lo(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)}},Ki=globalThis.process,{onExit:fu,load:J_,unload:Z_}=qy(lo(Ki)?new Zi(Ki):new Ji)});var cr,hu,Hy,gu,yu=T(()=>{"use strict";cr=D(require("process"),1);pu();mu();hu=cr.default.stderr.isTTY?cr.default.stderr:cr.default.stdout.isTTY?cr.default.stdout:void 0,Hy=hu?cu(()=>{fu(()=>{hu.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},gu=Hy});var Yi,co,yn,Xi,bu=T(()=>{"use strict";Yi=D(require("process"),1);yu();co=!1,yn={};yn.show=(e=Yi.default.stderr)=>{e.isTTY&&(co=!1,e.write("\x1B[?25h"))};yn.hide=(e=Yi.default.stderr)=>{e.isTTY&&(gu(),co=!0,e.write("\x1B[?25l"))};yn.toggle=(e,t)=>{e!==void 0&&(co=e),co?yn.show(t):yn.hide(t)};Xi=yn});var Du=Mi((nE,Jy)=>{Jy.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((rE,vu)=>{"use strict";var po=Object.assign({},Du()),wu=Object.keys(po);Object.defineProperty(po,"random",{get(){let e=Math.floor(Math.random()*wu.length),t=wu[e];return po[t]}});vu.exports=po});function es(){return Fe.default.platform!=="win32"?Fe.default.env.TERM!=="linux":!!Fe.default.env.CI||!!Fe.default.env.WT_SESSION||!!Fe.default.env.TERMINUS_SUBLIME||Fe.default.env.ConEmuTask==="{cmd::Cmder}"||Fe.default.env.TERM_PROGRAM==="Terminus-Sublime"||Fe.default.env.TERM_PROGRAM==="vscode"||Fe.default.env.TERM==="xterm-256color"||Fe.default.env.TERM==="alacritty"||Fe.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Fe,ku=T(()=>{"use strict";Fe=D(require("process"),1)});var Zy,Ky,Yy,pr,xu=T(()=>{"use strict";He();ku();Zy={info:W.blue("\u2139"),success:W.green("\u2714"),warning:W.yellow("\u26A0"),error:W.red("\u2716")},Ky={info:W.blue("i"),success:W.green("\u221A"),warning:W.yellow("\u203C"),error:W.red("\xD7")},Yy=es()?Zy:Ky,pr=Yy});function ts({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var Cu=T(()=>{"use strict"});function dr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Xy,"")}var Xy,ns=T(()=>{"use strict";Cu();Xy=ts()});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 _u(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Eu(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 Su=T(()=>{"use strict"});function Qy(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Au(e,{ambiguousAsWide:t=!1}={}){return Qy(e),_u(e)||Eu(e)||t&&Fu(e)?2:1}var Tu=T(()=>{"use strict";Su()});var Ou,Pu=T(()=>{"use strict";Ou=()=>/[#*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=dr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of eb.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)&&!tb.test(s)){if(Ou().test(s)){o+=2;continue}o+=Au(a,i)}}return o}var eb,tb,Iu=T(()=>{"use strict";ns();Tu();Pu();eb=new Intl.Segmenter,tb=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 Bu=T(()=>{"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,ju=T(()=>{"use strict";is=D(require("process"),1)});var Le,nb,as,rb,ls,Ru=T(()=>{"use strict";Le=D(require("process"),1),nb=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(){Le.default.platform==="win32"||!Le.default.stdin.isTTY||(Le.default.stdin.setRawMode(!0),Le.default.stdin.on("data",this.#o),Le.default.stdin.resume())}#e(){Le.default.stdin.isTTY&&(Le.default.stdin.off("data",this.#o),Le.default.stdin.pause(),Le.default.stdin.setRawMode(!1))}#o(t){t[0]===nb&&Le.default.emit("SIGINT")}},rb=new as,ls=rb});function bn(e){return new us(e)}var fr,mr,ob,us,cs=T(()=>{"use strict";fr=D(require("process"),1);He();bu();mr=D(Qi(),1);xu();ns();Iu();Bu();ju();Ru();ob=D(Qi(),1),us=class{#s=0;#n=!1;#e=0;#o=-1;#d=0;#t;#i;#r;#f;#h;#u;#c;#p;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:fr.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,fr.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.#p}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.#p=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=mr.default.line;else if(t===void 0)this.#i=mr.default.dots;else if(t!=="default"&&mr.default[t])this.#i=mr.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.#p)+n+"--"+this.#g+"--"+r;this.#e=0;for(let i of dr(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.#d>=this.interval)&&(this.#o=++this.#o%this.#i.frames.length,this.#d=t);let{frames:n}=this.#i,r=n[this.#o];this.color&&(r=W[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.#p||this.lastIndent!==this.#p)&&this.#r.cursorTo(this.#p),this.lastIndent=this.#p,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&&fr.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&&fr.default.stdin.isTTY&&this.#n&&(ls.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:pr.success,text:t})}fail(t){return this.stopAndPersist({symbol:pr.error,text:t})}warn(t){return this.stopAndPersist({symbol:pr.warning,text:t})}info(t){return this.stopAndPersist({symbol:pr.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}`),fo.default.platform==="darwin"?ib(e):fo.default.platform==="win32"?sb(e):ab(e)}var ee,ps,fo,gt,ds,Dn,ib,sb,ab,Lu=T(()=>{"use strict";ee=D(require("path"),1),ps=D(require("os"),1),fo=D(require("process"),1),gt=ps.default.homedir(),ds=ps.default.tmpdir(),{env:Dn}=fo.default,ib=e=>{let t=ee.default.join(gt,"Library");return{data:ee.default.join(t,"Application Support",e),config:ee.default.join(t,"Preferences",e),cache:ee.default.join(t,"Caches",e),log:ee.default.join(t,"Logs",e),temp:ee.default.join(ds,e)}},sb=e=>{let t=Dn.APPDATA||ee.default.join(gt,"AppData","Roaming"),n=Dn.LOCALAPPDATA||ee.default.join(gt,"AppData","Local");return{data:ee.default.join(n,e,"Data"),config:ee.default.join(t,e,"Config"),cache:ee.default.join(n,e,"Cache"),log:ee.default.join(n,e,"Log"),temp:ee.default.join(ds,e)}},ab=e=>{let t=ee.default.basename(gt);return{data:ee.default.join(Dn.XDG_DATA_HOME||ee.default.join(gt,".local","share"),e),config:ee.default.join(Dn.XDG_CONFIG_HOME||ee.default.join(gt,".config"),e),cache:ee.default.join(Dn.XDG_CACHE_HOME||ee.default.join(gt,".cache"),e),log:ee.default.join(Dn.XDG_STATE_HOME||ee.default.join(gt,".local","state"),e),temp:ee.default.join(ds,t,e)}}});function mo(){return/[<>:"/\\|?*\u0000-\u001F]/g}function Nu(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Mu=T(()=>{"use strict"});function hr(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(mo().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(ub,o),e=e.replace(mo(),o),e=e.replace(n,o),e=e.replace(cb,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=Nu().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:lb;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 lb,ub,cb,ms=T(()=>{"use strict";Mu();lb=100,ub=/^\.+(\\|\/)|^\.+$/,cb=/\.+$/});var pb,$u=T(()=>{"use strict";pb=D(require("path"),1);ms()});var zu=T(()=>{"use strict";ms();$u()});var ho,hs=T(()=>{"use strict";ho="webflow.json"});var Nt,gs=T(()=>{"use strict";Nt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function Uu(e){ys=e}function ae(){return ys}function Je(){return!ys}function Vu(e){Wu=e}function Gu(){return Wu}var ys,Wu,_e=T(()=>{"use strict";ys=!1});function Mt(){let e=Gu();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,qu.statSync)(e)?.isDirectory())return{path:(0,Hu.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 qu,Hu,bs=T(()=>{"use strict";qu=require("fs"),Hu=require("path");hs();_e()});var Ju,db,fb,Ds,Zu=T(()=>{"use strict";Ju=D(require("ajv")),db=new Ju.default,fb={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"]},export:{type:"object",properties:{rootDir:{type:"string",minLength:1},components:{type:"string"},componentGroups:{type:"string"},ts:{type:"boolean"},cssModules:{type:"boolean"},camelCaseVariantNames:{type:"boolean"},relativeHrefRoot:{oneOf:[{type:"boolean",const:!1},{type:"string"}]},treeShake:{type:"boolean"}},required:[]}}},Ds=db.compile(fb)});function Ku(e){return e instanceof Error?e:new Error("Unknown error")}function re(){let{path:e}=Mt();if(!(0,go.existsSync)(e))return{manifest:{},manifestPath:e};let t;try{t=(0,go.readFileSync)(e,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${Ku(o).message}`)}if(t.trim()==="")return{manifest:{},manifestPath:e};let r;try{r=JSON.parse(t)}catch(o){throw new Error(`Invalid JSON in manifest file: ${Ku(o).message}`)}if(!Ds(r)){let o=Ds.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:r,manifestPath:e}}var go,ws=T(()=>{"use strict";go=require("fs");bs();Zu()});function gr(e,t){let n=e[t];if(!n)throw new Nt(t);return n}var Yu=T(()=>{"use strict";gs()});function ue(e){let t=re(),n=t.manifest,r=t.manifestPath,o={...n};for(let i in e){let s=i,a=e[s];if(a!==void 0)if(typeof a=="string"||typeof a=="number"||typeof a=="boolean"||a===null)o[s]=a;else{let u=o[s];o[s]={...typeof u=="object"&&u!==null?u:{},...a}}}(0,Xu.writeFileSync)(r,JSON.stringify(o,null,2),"utf-8")}var Xu,Qu=T(()=>{"use strict";Xu=require("fs");ws()});var Ne=T(()=>{"use strict";hs();gs();ws();bs();Yu();Qu()});var vs=Mi((u2,mb)=>{mb.exports={name:"@webflow/webflow-cli",version:"1.13.1",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:unit":"jest --ci --ignoreProjects e2e","test:local":"jest","test:e2e-cache-clear":"bash scripts/clear-e2e-cache.sh"},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","@rspack/core":"^1.7.8","@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","ts-checker-rspack-plugin":"^1.0.0","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.2",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.17.2","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 vs().version}catch{return"unknown"}}function Ze(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=yr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=yr.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 ks(e){if(e.stack)return Ze(e.stack)}function yt(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]=Ze(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=yt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?yt(s):typeof s=="string"?Ze(s):s):n[r]=o}return n}function ec(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${yr.default.type()} ${yr.default.release()}`}}function xs(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var yr,br=T(()=>{"use strict";yr=D(require("os"))});var ce,Me,$t,wn,Cs,d2,bt=T(()=>{"use strict";He();ce=W.green("\u2714"),Me=W.red("\u2716"),$t=W.cyan("\u2139"),wn=W.green("\u279C"),Cs=W.red("\u279C"),d2=W.yellow("\u26A0")});var Dt,Fs=T(()=>{"use strict";He();Ne();br();q();bt();Dt=class e{static instance;cache=void 0;static isDoNotTrackEnabled(){let t=process.env.DO_NOT_TRACK;return t==="1"||t?.toLowerCase()==="true"}static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(e.isDoNotTrackEnabled())return!1;if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await re(),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){return e.isDoNotTrackEnabled()?(d.info(`${$t} Telemetry is disabled because the DO_NOT_TRACK environment variable is set.`),!1):(d.info(`${$t} Telemetry is enabled. Usage data and error reports help us improve Webflow CLI.`),d.info(`${$t} To opt out, run: ${W.blue("webflow auth telemetry --disable")}`),await this.setPreference(!0),!0)}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 ue(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 $e(e,t){let r={"User-Agent":`webflow-cli@${rt()}`};return(0,tc.default)(e,{...t,headers:{...t?.headers,...r}})}var tc,vn=T(()=>{"use strict";tc=D(require("node-fetch"));wt()});var nc,rc=T(()=>{"use strict";nc=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 _s,K,ot,kn,Dr,Es,wr,vr,xn,fe=T(()=>{"use strict";rc();_s=(e,t)=>(nc(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),K=process.env.WEBFLOW_API_HOST?_s("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",ot=process.env.WEBFLOW_CDN_API_HOST?_s("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",kn=process.env.WEBFLOW_HOST?_s("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",Dr="wf-manifest.json",Es="mf-manifest.json",wr="@webflow_renderer",vr="ssr-bundle.tar",xn="index.js"});var De,Ss=T(()=>{"use strict";Fs();br();q();vn();fe();De=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Dt.getInstance(),this.sessionId=xs(),this.platformInfo=ec()}async sendEvent(t){try{if(!await this.isEnabled())return;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){await this.sendEvent({eventType:"error",success:!1,name:t.name,message:t.message,cause:t.cause,stack:ks(t),context:n,metadata:r?yt(r):void 0})}async sendUsage(t,n){let{duration:r,...o}=n??{};await this.sendEvent({eventType:"usage",success:!0,feature:t,duration:typeof r=="number"?r:void 0,data:Object.keys(o).length>0?yt(o):void 0})}async sendPerformance(t,n,r){await this.sendEvent({eventType:"performance",operation:t,duration:n,metrics:r})}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}static async promptForConsentIfNeeded(t){let n=Dt.getInstance(),r=await n.getPreference();return r!==void 0?r:await n.promptForConsent(t)}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=Ze(n.message)),n.stack&&(n.stack=Ze(n.stack)),n.context&&(n.context=Ze(n.context)),n.metadata&&(n.metadata=yt(n.metadata)),n.data&&(n.data=yt(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 $e(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 forDevlinkSync(t){return new e({host:t.host||K,authToken:t.authToken,siteId:t.siteId,commandType:"devlink"})}static forExport(t){return new e({host:t.host||K,authToken:t.authToken,siteId:t.siteId,commandType:"export"})}static forCloud(t){return new e({host:t.host||K,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host||K,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host||K,authToken:t.authToken,commandType:"library"})}}});var oc=T(()=>{"use strict"});function ic(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}}}var wt=T(()=>{"use strict";Ss();Fs();oc();br();br()});var Ts,As,hb,it,Os=T(()=>{"use strict";Ts=Symbol("webflow-cli-warn"),As=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]===Ts){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(`
16
12
  \u26A0\uFE0F Warnings:
17
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(`
18
14
  \u{1F41B} Debug: Captured Warnings
19
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(`
20
- `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},A0=new ma,ht=A0});function O0(e){return e.replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"")}function Ed(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function St(e){Nr.push(et(e)),Nr.length>B0&&Nr.shift()}function L0(e){return St(`DEBUG: ${e}`),e}function M0(e){return St(`INFO: ${e}`),e}function N0(e){return St(`WARN: ${e}`),e}function $0(e,t){let n=e instanceof Error?e.stack||e.message:e,r=t?.prefix?`${t.prefix} `:"";St(`ERROR: ${r}${n}`),ba=!0;let o=e instanceof Error?e.message:e;return`${r}${o}`}function W0(e){return St(`SUCCESS: ${e}`),`${me.green(e)}`}function z0(e){let t=An(`${e}...`).start(),n=!1,r=o=>i=>{St(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(ba=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function U0(){let e=Rn.default.readdirSync(xe).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:Rn.default.statSync(Go.default.join(xe,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=I0;)try{let t=e.pop();if(!t)break;Rn.default.removeSync(Go.default.join(xe,t.name))}catch{}}function Da(e){try{let t=process.argv.slice(2).join(" ");if(/^(log|library\s+log)(\s|$)/.test(t))return;Rn.default.ensureDirSync(xe),U0(),Nr.unshift(`CLI Version: ${ft()}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Command: ${t||"N/A"}`,`Exit Code: ${e??0}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}
21
- `);let n=Nr.map(O0);Rn.default.writeFileSync(ya,n.join(`
22
- `)),ba&&(console.info(`
23
- ${me.red("\u2716")} An error occurred. See logs for more information:`),console.info(`${me.red("\u279C")} Latest log: ${ya}`),console.info(`${me.red("\u279C")} All logs: ${xe}`)),(process.env.DEBUG||process.argv.includes("--verbose"))&&(console.info(`
24
- ${me.green("\u2713")} Command completed successfully. Logs written to:`),console.info(`${me.green("\u279C")} Latest log: ${ya}`),console.info(`${me.green("\u279C")} All logs: ${xe}`))}catch(t){console.error("Failed to write logs:",t)}}var Rn,Go,Z3,P0,xe,I0,B0,R0,ya,Nr,ba,j0,me,jn,p,q=_(()=>{"use strict";Rn=D(require("fs-extra")),Go=D(require("path")),Z3=require("source-map-support/register");Xs();nd();sd();Zt();ga();P0=ta("webflow-cli"),xe=P0.log;I0=Ed(process.env.MAX_PERSISTED_LOGS,50),B0=Ed(process.env.MAX_IN_MEMORY_LOGS,1e3),R0=`${Or(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,ya=Go.default.join(xe,R0);Nr=[],ba=!1,j0={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"},me=Object.entries(j0).reduce((e,[t,n])=>({...e,[t]:r=>`${n}${r}\x1B[0m`}),{});jn=!1;process.on("uncaughtException",e=>{jn||(jn=!0,St(`UNCAUGHT EXCEPTION: ${e?.stack}`),Da(1)),ht.displayGrouped(),ht.stop(),process.exit(1)});process.on("unhandledRejection",e=>{jn||(jn=!0,St(`UNHANDLED REJECTION: ${e?.stack}`),Da(1)),ht.displayGrouped(),ht.stop(),process.exit(1)});process.on("exit",e=>{jn||(jn=!0,Da(e))});p={debug:e=>{let t=L0(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(M0(e)),warn:e=>console.warn(N0(e),ha),error:(e,t)=>{console.error($0(e,t))},success:e=>console.log(W0(e)),spinner:z0}});var A,ye=_(()=>{"use strict";A=class e extends Error{prefix;skipLogging;constructor(t,n){let r=t instanceof Error?t.message:String(t);super(r),this.name="CLIError",this.prefix=n?.prefix,this.skipLogging=n?.skipLogging??!1,t instanceof Error?(this.cause=t,this.stack=t.stack):Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});async function tw(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,Hd.pathToFileURL)(e).href:e)).default}function qd(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Oa(n.join(", "))}async function Mn(e=[],t=!1){if(!Yd){if(t)return{};throw new ti(gt)}if(!yt)throw new Aa;switch(yt){case"js":case"cjs":{await nt.access(gt);let n=await tw(gt);return qd(n,e),n}case"json":{let n=JSON.parse(await nt.readFile(gt,"utf8"));return qd(n,e),n}default:throw new ei}}function nw(e,t){if(yt==="js"||yt==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function rw(e,t,n){let r=nw(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function ow(e){let t=["authToken","host","siteId"],n=await nt.readFile(gt,"utf-8");for(let r of t)e=rw(e,n,r);return e}async function iw(){try{let e=Hr.join(Pa,"package.json");return await nt.access(e),JSON.parse(await nt.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function Kd(e){if(!Yd)throw new ti(gt);let t=JSON.stringify(e,null,2);switch(yt){case"js":case"cjs":{let n=await ow(t.replace(/"([^"]+)":/g,"$1:")),r=await iw()&&yt==="js"?"export default ":"module.exports = ";return nt.writeFile(gt,r+n)}case"json":return nt.writeFile(gt,t);default:throw new ei}}var Hr,nt,ni,Hd,XA,Jd,Pa,Zd,yt,gt,Yd,Aa,ei,ti,Oa,ri=_(()=>{"use strict";Hr=D(require("path")),nt=D(require("fs/promises")),ni=D(require("fs")),Hd=require("url"),XA=require("dotenv/config"),Jd=["js","cjs","json"],Pa=process.cwd(),Zd=".webflowrc",yt=Hr.extname(ni.readdirSync(Pa).find(e=>e.includes(Zd))??"").replace(/\./g,""),gt=Hr.join(Pa,`${Zd}${yt&&`.${yt}`}`),Yd=ni.existsSync(gt),Aa=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${Jd.join(", ")}`)}},ei=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${yt}. The supported extensions are: ${Jd.join(", ")}`)}},ti=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)}},Oa=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 li(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=pt(),i=Dp.existsSync(r),s=!1;try{let{manifest:a}=ie();s=!0,o&&p.info(`Using manifest file: ${r}`);try{let u=Ir(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("")})}},hb=new As,it=hb});function gb(e){return e.replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"")}function ac(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function vt(e){kr.push(Ze(e)),kr.length>Db&&kr.shift()}function vb(e){return vt(`DEBUG: ${e}`),e}function kb(e){return vt(`INFO: ${e}`),e}function xb(e){return vt(`WARN: ${e}`),e}function Cb(e,t){let n=e instanceof Error?e.stack||e.message:e,r=t?.prefix?`${t.prefix} `:"";vt(`ERROR: ${r}${n}`),Is=!0;let o=e instanceof Error?e.message:e;return`${r}${o}`}function Fb(e){return vt(`SUCCESS: ${e}`),`${W.green(e)}`}function _b(e){let t=bn(`${e}...`).start(),n=!1,r=o=>i=>{vt(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(Is=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function Eb(){let e=Cn.default.readdirSync(we).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:Cn.default.statSync(yo.default.join(we,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=bb;)try{let t=e.pop();if(!t)break;Cn.default.removeSync(yo.default.join(we,t.name))}catch{}}function Bs(e){try{let t=process.argv.slice(2).join(" ");if(/^(log|library\s+log)(\s|$)/.test(t))return;Cn.default.ensureDirSync(we),Eb(),kr.unshift(`CLI Version: ${rt()}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Command: ${t||"N/A"}`,`Exit Code: ${e??0}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}`,...sc?[`Sync ID: ${sc}`]:[],"");let n=kr.map(gb);Cn.default.writeFileSync(Ps,n.join(`
17
+ `)),Is&&(console.info(`
18
+ ${Me} An error occurred. See logs for more information:`),console.info(`${Cs} Latest log: ${Ps}`),console.info(`${Cs} All logs: ${we}`)),(process.env.DEBUG||process.argv.includes("--verbose"))&&(console.info(`
19
+ ${ce} Command completed successfully. Logs written to:`),console.info(`${wn} Latest log: ${Ps}`),console.info(`${wn} All logs: ${we}`))}catch(t){console.error("Failed to write logs:",t)}}var Cn,yo,z2,yb,we,bb,Db,wb,Ps,kr,Is,sc,Fn,d,q=T(()=>{"use strict";Cn=D(require("fs-extra")),yo=D(require("path"));He();z2=require("source-map-support/register");cs();Lu();zu();wt();Os();bt();yb=fs("webflow-cli"),we=yb.log;bb=ac(process.env.MAX_PERSISTED_LOGS,50),Db=ac(process.env.MAX_IN_MEMORY_LOGS,1e3),wb=`${hr(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Ps=yo.default.join(we,wb);kr=[],Is=!1;Fn=!1;process.on("uncaughtException",e=>{Fn||(Fn=!0,vt(`UNCAUGHT EXCEPTION: ${e?.stack}`),Bs(1)),it.displayGrouped(),it.stop(),process.exit(1)});process.on("unhandledRejection",e=>{Fn||(Fn=!0,vt(`UNHANDLED REJECTION: ${e?.stack}`),Bs(1)),it.displayGrouped(),it.stop(),process.exit(1)});process.on("exit",e=>{Fn||(Fn=!0,Bs(e))});d={debug:e=>{let t=vb(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(kb(e)),warn:e=>console.warn(xb(e),Ts),error:(e,t)=>{console.error(Cb(e,t))},success:e=>console.log(Fb(e)),spinner:_b}});var E,me=T(()=>{"use strict";E=class e extends Error{prefix;skipLogging;constructor(t,n){let r=t instanceof Error?t.message:String(t);super(r),this.name="CLIError",this.prefix=n?.prefix,this.skipLogging=n?.skipLogging??!1,t instanceof Error?(this.cause=t,this.stack=t.stack):Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});async function Mb(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,Tc.pathToFileURL)(e).href:e)).default}function Ac(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Hs(n.join(", "))}async function En(e=[],t=!1){if(!Ic){if(t)return{};throw new Eo(st)}if(!at)throw new qs;switch(at){case"js":case"cjs":{await Ke.access(st);let n=await Mb(st);return Ac(n,e),n}case"json":{let n=JSON.parse(await Ke.readFile(st,"utf8"));return Ac(n,e),n}default:throw new _o}}function $b(e,t){if(at==="js"||at==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function zb(e,t,n){let r=$b(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function Wb(e){let t=["authToken","host","siteId"],n=await Ke.readFile(st,"utf-8");for(let r of t)e=zb(e,n,r);return e}async function Ub(){try{let e=Tr.join(Js,"package.json");return await Ke.access(e),JSON.parse(await Ke.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function Bc(e){if(!Ic)throw new Eo(st);let t=JSON.stringify(e,null,2);switch(at){case"js":case"cjs":{let n=await Wb(t.replace(/"([^"]+)":/g,"$1:")),r=await Ub()&&at==="js"?"export default ":"module.exports = ";return Ke.writeFile(st,r+n)}case"json":return Ke.writeFile(st,t);default:throw new _o}}var Tr,Ke,So,Tc,qS,Oc,Js,Pc,at,st,Ic,qs,_o,Eo,Hs,Ao=T(()=>{"use strict";Tr=D(require("path")),Ke=D(require("fs/promises")),So=D(require("fs")),Tc=require("url"),qS=require("dotenv/config"),Oc=["js","cjs","json"],Js=process.cwd(),Pc=".webflowrc",at=Tr.extname(So.readdirSync(Js).find(e=>e.includes(Pc))??"").replace(/\./g,""),st=Tr.join(Js,`${Pc}${at&&`.${at}`}`),Ic=So.existsSync(st),qs=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${Oc.join(", ")}`)}},_o=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${at}. The supported extensions are: ${Oc.join(", ")}`)}},Eo=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)}},Hs=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 Io(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=Mt(),i=op.existsSync(r),s=!1;try{let{manifest:a}=re();s=!0,o&&d.info(`Using manifest file: ${r}`);try{let u=gr(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.
25
20
 
26
21
  To set up your credentials, run:
27
- webflow auth login`);return bp(u?.relativeHrefRoot),{...u,host:Y,authToken:t,siteId:n,cssModules:!!u?.cssModules,components:ai(u?.components),fileExtensions:{...si,...u.fileExtensions},...e}}catch(u){throw new A(u,{prefix:`Failed to read devlink config from manifest file: ${r}
22
+ webflow auth login`);return rp(u?.relativeHrefRoot),{...u,host:K,authToken:t,siteId:n,cssModules:!!u?.cssModules,components:Po(u?.components),fileExtensions:{...np,...u.fileExtensions},...e}}catch(u){throw new E(u,{prefix:`Failed to read devlink config from manifest file: ${r}
28
23
  `})}}catch(a){if(o||i||s){let u=o?`The manifest file specified via --manifest flag was not found or is invalid: ${r}
29
24
  `:`Your manifest file exists but is invalid or missing required properties: ${r}
30
- `;throw new A(a,{prefix:u})}}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let u=await Mn(a);return bp(u?.relativeHrefRoot),{...u,host:u.host||Y,cssModules:!!u?.cssModules,components:ai(u?.components),fileExtensions:{...si,...u.fileExtensions},...e}}catch(a){throw a instanceof Error&&a.message.includes(".webflowrc")&&(a.message=`No configuration file found. Please create either:
25
+ `;throw new E(a,{prefix:u})}}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let u=await En(a);return rp(u?.relativeHrefRoot),{...u,host:u.host||K,cssModules:!!u?.cssModules,components:Po(u?.components),fileExtensions:{...np,...u.fileExtensions},...e}}catch(a){throw a instanceof Error&&a.message.includes(".webflowrc")&&(a.message=`No configuration file found. Please create either:
31
26
  - webflow.json with a "devlink" section, or
32
27
  - .webflowrc file
33
- in your project root.`),new A(a)}}function bp(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 ai(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var Dp,si,ui=_(()=>{"use strict";q();fe();ri();Ge();Dp=D(require("fs"));ye();si={js:"js",css:"css"}});var Zr,wp=_(()=>{"use strict";Zr={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 Cp(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=bt.join(process.cwd(),n);(0,Ce.existsSync)(i)||await(0,Nn.mkdir)(i),kp.forEach(a=>Na.addEntry(a.name,a.options)),await pw(i,e,t,r);let s=e.reduce((a,u)=>({...a,[u.name]:u}),{});await Ep(i,"",s,o??!1),t.addIndexFile&&mw(Na.getFile(),i)}function dw(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 La(e,t){let n=t.split("/");return bt.join(e,...n.slice(0,-1),n[n.length-1])}async function pw(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("/"));fw(e,s)}if(o.js){let s=dw(o.js,n),a=Yr.default.format(s,Zr),l=!xp.test(o.name)||["interactions","devlinkContext"].includes(o.name)?n.fileExtensions.js.replace(/\W/gi,""):si.js,c=La(e,`${o.name}.${l}`);i.push((0,Ce.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=La(e,a);i.push((0,Ce.writeFileSync)(u,$a(o.css,r),{flag:"w+"}))}if(o.types){let s=La(e,`${o.name}.d.ts`);i.push((0,Ce.writeFileSync)(s,Yr.default.format(o.types,{...Zr,parser:"typescript"}),{flag:"w+"}))}return i}))}function fw(e,t){let n=t.split("/"),r=e;for(let o of n)r=bt.join(r,o),(0,Ce.existsSync)(r)||(0,Ce.mkdirSync)(r)}async function Ep(e,t,n,r){let o=bt.join(e,t),i=await(0,Nn.readdir)(o);await Promise.all(i.map(async s=>{let a=t?bt.join(t,s):s,u=bt.join(e,a);if((0,Ce.statSync)(u).isDirectory()){await Ep(e,a,n,r);return}let l=a.split(".")[0].replace(/\\/g,"/"),c=n[l],d=!xp.test(l);return d&&r&&!c?(0,Nn.rm)(u,{recursive:!0,force:!0}):(d&&Na.addEntry(l,{errorMessage:c?.error}),Promise.resolve())}))}function mw(e,t){(0,Ce.writeFileSync)(bt.join(t,"index.js"),Yr.default.format(e,Zr),{flag:"w+"}),(0,Ce.writeFileSync)(bt.join(t,"index.d.ts"),Yr.default.format(e,{...Zr,parser:"typescript"}),{flag:"w+"})}function hw(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";
28
+ in your project root.`),new E(a)}}function rp(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 Po(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var op,np,Qs=T(()=>{"use strict";q();fe();Ao();Ne();op=D(require("fs"));me();np={js:"js",css:"css"}});var Pr,ip=T(()=>{"use strict";Pr={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 lp(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=lt.join(process.cwd(),n);(0,ve.existsSync)(i)||await(0,Sn.mkdir)(i),ap.forEach(a=>na.addEntry(a.name,a.options)),await Kb(i,e,t,r);let s=e.reduce((a,u)=>({...a,[u.name]:u}),{});await up(i,"",s,o??!1),t.addIndexFile&&Xb(na.getFile(),i)}function Zb(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 ea(e,t){let n=t.split("/");return lt.join(e,...n.slice(0,-1),n[n.length-1])}async function Kb(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("/"));Yb(e,s)}if(o.js){let s=Zb(o.js,n),a=Ir.default.format(s,Pr),u=n.fileExtensions.js.replace(/\W/gi,""),l=ea(e,`${o.name}.${u}`);i.push((0,ve.writeFileSync)(l,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=ea(e,a);i.push((0,ve.writeFileSync)(u,ra(o.css,r),{flag:"w+"}))}if(o.types){let s=ea(e,`${o.name}.d.ts`);i.push((0,ve.writeFileSync)(s,Ir.default.format(o.types,{...Pr,parser:"typescript"}),{flag:"w+"}))}return i}))}function Yb(e,t){let n=t.split("/"),r=e;for(let o of n)r=lt.join(r,o),(0,ve.existsSync)(r)||(0,ve.mkdirSync)(r)}async function up(e,t,n,r){let o=lt.join(e,t),i=await(0,Sn.readdir)(o);await Promise.all(i.map(async s=>{let a=t?lt.join(t,s):s,u=lt.join(e,a);if((0,ve.statSync)(u).isDirectory()){await up(e,a,n,r);return}let l=a.split(".")[0].replace(/\\/g,"/"),c=n[l],p=!Jb.test(l);return p&&r&&!c?(0,Sn.rm)(u,{recursive:!0,force:!0}):(p&&na.addEntry(l,{errorMessage:c?.error}),Promise.resolve())}))}function Xb(e,t){(0,ve.writeFileSync)(lt.join(t,"index.js"),Ir.default.format(e,Pr),{flag:"w+"}),(0,ve.writeFileSync)(lt.join(t,"index.d.ts"),Ir.default.format(e,{...Pr,parser:"typescript"}),{flag:"w+"})}function Qb(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";
34
29
 
35
30
  `:"";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.");
36
31
 
37
32
  `;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}
38
- `}return o.trim()}}}function $a(e,t){return t?vp(e):(Ma={...Ma,...e},vp(Ma))}function vp(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
39
-
40
- `)}var Ce,Nn,bt,Yr,cw,Na,kp,xp,Ma,Wa=_(()=>{"use strict";Ce=require("fs"),Nn=require("fs/promises"),bt=D(require("path")),Yr=D(require("prettier"));ui();wp();cw={modules:{},useClient:!0},Na=hw(cw),kp=[{name:"_Builtin",options:{as:"_Builtin"}},{name:"devlinkContext"},{name:"DevLinkProvider"},{name:"interactions"},{name:"utils"},{name:"devlink"}],xp=new RegExp(`^(${[...kp.map(e=>e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"$"),"_Builtin(/|$)","types$","index$","global$"].join("|")})`);Ma={}});function $n(e){return async function(n){en.default.removeListener("uncaughtException",$n),en.default.removeListener("unhandledRejection",$n);let r=await li(e);if(!r)return;await new za(r,n).prompt()}}function _p(e){en.default.on("uncaughtException",$n(e)),en.default.on("unhandledRejection",$n(e))}var en,za,Ua=_(()=>{"use strict";en=D(require("process"));ui();ri();Ge();Pn();za=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;qe(`${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:en.default.platform,node:en.default.version})})}async storeChoice(t){try{return pe({devlink:{allowTelemetry:t}})}catch{let r=await Mn();await Kd({...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 console.log("Telemetry is enabled. Crash reports help us improve Webflow CLI."),console.log("To opt out, run: webflow auth telemetry --disable"),await this.storeChoice(!0),console.log("Sending crash report telemetry..."),this.sendTelemetry()}}});function le(e){return e>=48&&e<=57}function Rt(e){return le(e)||e>=65&&e<=70||e>=97&&e<=102}function Fl(e){return e>=65&&e<=90}function tv(e){return e>=97&&e<=122}function nv(e){return Fl(e)||tv(e)}function rv(e){return e>=128}function ki(e){return nv(e)||rv(e)||e===95}function Sl(e){return ki(e)||le(e)||e===45}function ov(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function xi(e){return e===10||e===13||e===12}function rn(e){return xi(e)||e===32||e===9}function Ye(e,t){return!(e!==92||xi(t)||t===0)}function yi(e,t,n){return e===45?ki(t)||t===45||Ye(t,n):ki(e)?!0:e===92?Ye(e,t):!1}function Va(e,t,n){return e===43||e===45?le(t)?2:t===46&&le(n)?3:0:e===46?le(t)?2:0:le(e)?1:0}function Cf(e){return e===65279||e===65534?1:0}function Ga(e){return e<128?ul[e]:Tl}function qn(e,t){return t<e.length?e.charCodeAt(t):0}function cl(e,t,n){return n===13&&qn(e,t+1)===10?2:1}function Hn(e,t,n){let r=e.charCodeAt(t);return Fl(r)&&(r=r|32),r===n}function io(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(Fl(s)&&(s=s|32),s!==i)return!1}return!0}function sv(e,t){for(;t>=0&&rn(e.charCodeAt(t));t--);return t+1}function ci(e,t){for(;t<e.length&&rn(e.charCodeAt(t));t++);return t}function qa(e,t){for(;t<e.length&&le(e.charCodeAt(t));t++);return t}function on(e,t){if(t+=2,Rt(qn(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Rt(qn(e,t));t++);let n=qn(e,t);rn(n)&&(t+=cl(e,t,n))}return t}function di(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Sl(n)){if(Ye(n,qn(e,t+1))){t=on(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)),le(n)&&(t=qa(e,t+1),n=e.charCodeAt(t)),n===46&&le(e.charCodeAt(t+1))&&(t+=2,t=qa(e,t)),Hn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),le(n)&&(t=qa(e,t+1+r+1))}return t}function Ha(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}Ye(n,qn(e,t+1))&&(t=on(e,t))}return t}function Al(e){if(e.length===1&&!Rt(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 Ci(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function Tp(e){let t=e.source,n=t.length,r=t.length>0?Cf(t.charCodeAt(0)):0,o=Ci(e.lines,n),i=Ci(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===Fp||l===Sp||l===av)&&(l===Sp&&u+1<n&&t.charCodeAt(u+1)===Fp&&(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 Oi(e,t){function n(d){return d<a?e.charCodeAt(d):0}function r(){if(l=Ai(e,l),yi(n(l),n(l+1),n(l+2))){c=12,l=di(e,l);return}if(n(l)===37){c=11,l++;return}c=10}function o(){let d=l;if(l=di(e,l),io(e,d,l,"url")&&n(l)===40){if(l=ci(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(Ga(f)){case d:l++;return;case bi:if(xi(f)){l+=cl(e,l,f),c=6;return}break;case 92:if(l===e.length-1)break;let m=n(l+1);xi(m)?l+=cl(e,l+1,m):Ye(f,m)&&(l=on(e,l)-1);break}}}function s(){for(c=7,l=ci(e,l);l<e.length;l++){let d=e.charCodeAt(l);switch(Ga(d)){case 41:l++;return;case bi:if(l=ci(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=Ha(e,l),c=8;return;case 34:case 39:case 40:case _f:l=Ha(e,l),c=8;return;case 92:if(Ye(d,n(l+1))){l=on(e,l)-1;break}l=Ha(e,l),c=8;return}}}e=String(e||"");let a=e.length,u=Cf(n(0)),l=u,c;for(;l<a;){let d=e.charCodeAt(l);switch(Ga(d)){case bi:c=13,l=ci(e,l+1);break;case 34:i();break;case 35:Sl(n(l+1))||Ye(n(l+1),n(l+2))?(c=4,l=di(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:Va(d,n(l+1),n(l+2))?r():(c=9,l++);break;case 44:c=18,l++;break;case 45:Va(d,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(c=15,l=l+3):yi(d,n(l+1),n(l+2))?o():(c=9,l++);break;case 46:Va(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:yi(n(l+1),n(l+2),n(l+3))?(c=3,l=di(e,l+1)):(c=9,l++);break;case 91:c=19,l++;break;case 92:Ye(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 Ef:r();break;case Tl:o();break;default:c=9,l++}t(c,u,u=l)}}function Pi(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}
41
- `)}})}function Pp({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(`
42
- `)}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+=(Op.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Ja&&(l=n-Ap+3,n=Ap-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,Op),i[c]=(l>0&&i[c].length>l?"\u2026":"")+i[c].substr(l,Ja-2)+(i[c].length>l+Ja-1?"\u2026":""));return[o(s,t),new Array(n+u+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
43
- `)}function Ip(e,t,n,r,o){return Object.assign(Pi("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return Pp({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
44
- `+Pp({source:t,line:r,column:o},2)}})}function dv(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 mv(e){return function(){return this[e]()}}function Ya(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 hv(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Ya(e.atrule),pseudo:Ya(e.pseudo),node:Ya(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]=mv(e.parseContext[n]);break}return{config:t,...t,...t.node}}function gv(e){let t="",n="<unknown>",r=!1,o=Bp,i=!1,s=new lv,a=Object.assign(new cv,hv(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:dv,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(u){return u===Rp?1:0},consumeUntilLeftCurlyBracketOrSemicolon(u){return u===Rp||u===Za?1:0},consumeUntilExclamationMarkOrSemicolon(u){return u===pv||u===Za?1:0},consumeUntilSemicolonIncluded(u){return u===Za?2:0},createList(){return new se},createSingleNodeList(u){return new se().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!==jp);return jp},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 Hn(t,u,l)},cmpStr(u,l,c){return io(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=Ff[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(fv)&&(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(sv(t,t.length-1)):s.getLocation(this.tokenStart);throw new Ip(u||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(u,l){t=u,l=l||{},a.setSource(t,Oi),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=!!l.positions,o=typeof l.onParseError=="function"?l.onParseError:Bp,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,x)=>{if(m===25){let I=a.getLocation(y,x),O=io(t,x-2,x,"*/")?t.slice(y+2,x-2):t.slice(y+2,x);d(O,I)}});let f=a.context[c].call(a,l);return a.eof||a.error(),f},{SyntaxError:Ip,config:a.config})}function bv(e){let t=new yv.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&&Lp.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&&Lp.has(f.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(f,m,y){for(let x=0;x<f.length;x++)f.charCodeAt(x)===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 Tf(e){let t=new Set(e.map(([n,r])=>Ka(n)<<16|Ka(r)));return function(n,r,o){let i=Ka(r,o),s=o.charCodeAt(0);return(s===wv&&r!==1&&r!==2&&r!==15||s===Dv?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function Cv(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 Ev(e){Oi(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function _v(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:Af,token(u,l){i=this.tokenBefore(i,u,l),this.emit(l,u,!1),u===9&&l.charCodeAt(0)===xv&&this.emit(`
45
- `,13,!0)},emit(u){o+=u},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=bv(s)),r.mode in dl&&(s.tokenBefore=dl[r.mode]));let a={node:u=>s.node(u),children:Cv,token:(u,l)=>s.token(u,l),tokenize:Ev};return s.node(n),s.result()}}function Fv(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof se)&&(n.children=new se().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof se&&(n.children=n.children.toArray())}}),t}}}function Mp(e){return typeof e=="function"?e:Xr}function Np(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function Sv(e,t){let n=t.structure,r=[];for(let o in n){if(Ol.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 Tv(e){let t={};for(let n in e.node)if(Ol.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]=Sv(n,r)}return t}function $p(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 Wp({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 Av(e){let t=Tv(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)Ol.call(t,l)&&t[l]!==null&&(n[l]=$p(t[l],!1),r[l]=$p(t[l],!0));let s=Wp(n),a=Wp(r),u=function(l,c){function d(O,W,C){let F=f.call(I,O,W,C);return F===o?!0:F===i?!1:!!(y.hasOwnProperty(O.type)&&y[O.type](O,I,d,x)||m.call(I,O,W,C)===o)}let f=Xr,m=Xr,y=n,x=(O,W,C,F)=>O||d(W,C,F),I={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=Mp(c.enter),m=Mp(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=Np(f,c.visit),m=Np(m,c.visit)}if(f===Xr&&m===Xr)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 Ov(e){return e}function Pv(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 Iv(e){if(e.type==="Range")return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}function Bv(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Pl(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Pl(e,t,n,r){let o;switch(e.type){case"Group":o=Bv(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Pl(e.term,t,n,r)+t(Pv(e),e);case"Type":o="<"+e.name+(e.opts?t(Iv(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 Ii(e,t){let n=Ov,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Pl(e,n,r,o)}function Rv(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=pi(i||t,"end")||Qr(zp,l),d=Qr(c)):(c=pi(i,"start")||Qr(pi(t,"start")||zp,l.slice(0,s)),d=pi(i,"end")||Qr(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:d}}function pi(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Qr(n):n:null}function Qr({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 Il(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Ei&&e.charCodeAt(t+1)===Ei}function Of(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Ei&&e.charCodeAt(t+1)!==Ei){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Lv(e){if(fi.has(e))return fi.get(e);let t=e.toLowerCase(),n=fi.get(t);if(n===void 0){let r=Il(t,0),o=r?"":Of(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return fi.set(e,n),n}function Mv(e){if(zn.has(e))return zn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Il(t,n.length);if(!r&&(t=t.toLowerCase(),zn.has(t))){let a=zn.get(t);return zn.set(e,a),a}let o=r?"":Of(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 zn.set(e,s),s}function pl(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function ro(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function Bt(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===so||o===rt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!le(e.value.charCodeAt(t)))return 0;return r+1}function el(e,t,n){let r=!1,o=ro(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(pl(e,so)||pl(e,rt)){if(r=!0,o=ro(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!==so&&i!==rt)return 0}return Bt(e,r?0:1,r,o)}function $v(e,t){let n=0;if(!e)return 0;if(e.type===10)return Bt(e,0,Nv,n);if(e.type===1&&e.value.charCodeAt(0)===rt){if(!Hn(e.value,1,Qa))return 0;switch(e.value.length){case 2:return el(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==rt?0:(n=ro(t(++n),n,t),e=t(n),Bt(e,0,Un,n));default:return e.value.charCodeAt(2)!==rt?0:Bt(e,3,Un,n)}}else if(e.type===1||pl(e,so)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!Hn(e.value,0,Qa))return 0;switch(e.value.length){case 1:return el(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==rt?0:(n=ro(t(++n),n,t),e=t(n),Bt(e,0,Un,n));default:return e.value.charCodeAt(1)!==rt?0:Bt(e,2,Un,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===so||r===rt?1:0,i=o;for(;i<e.value.length&&le(e.value.charCodeAt(i));i++);return i===o||!Hn(e.value,i,Qa)?0:i+1===e.value.length?el(t(++n),n,t):e.value.charCodeAt(i+1)!==rt?0:i+2===e.value.length?(n=ro(t(++n),n,t),e=t(n),Bt(e,0,Un,n)):Bt(e,i+2,Un,n)}return 0}function fl(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Uv(e,t){return e.value.charCodeAt(0)===t}function eo(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===If&&n&&r!==0)return eo(e,t+r+1,!1),6;if(!Rt(i)||++r>6)return 0}return r}function mi(e,t,n){if(!e)return 0;for(;fl(n(t),Bf);){if(++e>6)return 0;t++}return t}function Vv(e,t){let n=0;if(e===null||e.type!==1||!Hn(e.value,0,zv)||(e=t(++n),e===null))return 0;if(fl(e,Wv))return e=t(++n),e===null?0:e.type===1?mi(eo(e,0,!0),++n,t):fl(e,Bf)?mi(1,++n,t):0;if(e.type===10){let r=eo(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!Uv(e,If)||!eo(e,1,!1)?0:n+1:mi(r,n,t))}return e.type===12?mi(eo(e,1,!0),++n,t):0}function Ke(e,t){return t<e.length?e.charCodeAt(t):0}function Rf(e,t){return io(e,0,e.length,t)}function jf(e,t){for(let n=0;n<t.length;n++)if(Rf(e,t[n]))return!0;return!1}function Lf(e,t){return t!==e.length-2?!1:Ke(e,t)===92&&le(Ke(e,t+1))}function Bi(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 qv(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=Bl.get(e.type);break}o++}while(e=t(o));return o}function Be(e){return function(t,n,r){return t===null?0:t.type===2&&jf(t.value,Gv)?qv(t,n):e(t,n,r)}}function K(e){return function(t){return t===null||t.type!==e?0:1}}function Hv(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return jf(t,Pf)||Rf(t,"default")?0:1}function Jv(e){return e===null||e.type!==1||Ke(e.value,0)!==45||Ke(e.value,1)!==45?0:1}function Zv(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(!Rt(Ke(e.value,n)))return 0;return 1}function Yv(e){return e===null||e.type!==4||!yi(Ke(e.value,1),Ke(e.value,2),Ke(e.value,3))?0:1}function Kv(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=Bl.get(e.type);break}o++}while(e=t(o));return o}function Xv(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=Bl.get(e.type);break}o++}while(e=t(o));return o}function Dt(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||!Lf(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return Bi(r,t.value,o)?0:1}}function Qv(e,t,n){return e===null||e.type!==11||Bi(n,e.value,e.value.length-1)?0:1}function Mf(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 e1(e,t,n){if(e===null)return 0;let r=Ai(e.value,0);return r!==e.value.length&&!Lf(e.value,r)||Bi(n,e.value,r)?0:1}function t1(e,t,n){if(e===null||e.type!==10)return 0;let r=Ke(e.value,0)===43||Ke(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!le(Ke(e.value,r)))return 0;return Bi(n,e.value,r)?0:1}function o1(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Be(Dt(null)),angle:Be(Dt(t)),decibel:Be(Dt(n)),frequency:Be(Dt(r)),flex:Be(Dt(o)),length:Be(Mf(Dt(i))),resolution:Be(Dt(s)),semitones:Be(Dt(a)),time:Be(Dt(u))}}function i1(e){return{...n1,...r1,...o1(e)}}function Nf(e,t,n){return Object.assign(Pi("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
33
+ `}return o.trim()}}}function ra(e,t){return t?sp(e):(ta={...ta,...e},sp(ta))}function sp(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
34
+
35
+ `)}var ve,Sn,lt,Ir,Hb,na,ap,Jb,ta,oa=T(()=>{"use strict";ve=require("fs"),Sn=require("fs/promises"),lt=D(require("path")),Ir=D(require("prettier"));ip();Hb={modules:{},useClient:!0},na=Qb(Hb),ap=[{name:"devlinkContext"},{name:"DevLinkProvider"},{name:"interactions"},{name:"utils"},{name:"devlink"}],Jb=new RegExp(`^(${[...ap.map(e=>e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"$"),"_Builtin(/|$)","types$","index$","global$","css/*$"].join("|")})`);ta={}});function se(e){return e>=48&&e<=57}function St(e){return se(e)||e>=65&&e<=70||e>=97&&e<=102}function Wa(e){return e>=65&&e<=90}function MD(e){return e>=97&&e<=122}function $D(e){return Wa(e)||MD(e)}function zD(e){return e>=128}function qo(e){return $D(e)||zD(e)||e===95}function Ua(e){return qo(e)||se(e)||e===45}function WD(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ho(e){return e===10||e===13||e===12}function Ht(e){return Ho(e)||e===32||e===9}function Ve(e,t){return!(e!==92||Ho(t)||t===0)}function zo(e,t,n){return e===45?qo(t)||t===45||Ve(t,n):qo(e)?!0:e===92?Ve(e,t):!1}function ia(e,t,n){return e===43||e===45?se(t)?2:t===46&&se(n)?3:0:e===46?se(t)?2:0:se(e)?1:0}function sd(e){return e===65279||e===65534?1:0}function sa(e){return e<128?Ca[e]:Va}function Bn(e,t){return t<e.length?e.charCodeAt(t):0}function Fa(e,t,n){return n===13&&Bn(e,t+1)===10?2:1}function jn(e,t,n){let r=e.charCodeAt(t);return Wa(r)&&(r=r|32),r===n}function Wr(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(Wa(s)&&(s=s|32),s!==i)return!1}return!0}function VD(e,t){for(;t>=0&&Ht(e.charCodeAt(t));t--);return t+1}function Bo(e,t){for(;t<e.length&&Ht(e.charCodeAt(t));t++);return t}function aa(e,t){for(;t<e.length&&se(e.charCodeAt(t));t++);return t}function Jt(e,t){if(t+=2,St(Bn(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&St(Bn(e,t));t++);let n=Bn(e,t);Ht(n)&&(t+=Fa(e,t,n))}return t}function jo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Ua(n)){if(Ve(n,Bn(e,t+1))){t=Jt(e,t)-1;continue}break}}return t}function ei(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),se(n)&&(t=aa(e,t+1),n=e.charCodeAt(t)),n===46&&se(e.charCodeAt(t+1))&&(t+=2,t=aa(e,t)),jn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),se(n)&&(t=aa(e,t+1+r+1))}return t}function la(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}Ve(n,Bn(e,t+1))&&(t=Jt(e,t))}return t}function Ga(e){if(e.length===1&&!St(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 Jo(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function dp(e){let t=e.source,n=t.length,r=t.length>0?sd(t.charCodeAt(0)):0,o=Jo(e.lines,n),i=Jo(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===cp||l===pp||l===GD)&&(l===pp&&u+1<n&&t.charCodeAt(u+1)===cp&&(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 ti(e,t){function n(p){return p<a?e.charCodeAt(p):0}function r(){if(l=ei(e,l),zo(n(l),n(l+1),n(l+2))){c=12,l=jo(e,l);return}if(n(l)===37){c=11,l++;return}c=10}function o(){let p=l;if(l=jo(e,l),Wr(e,p,l,"url")&&n(l)===40){if(l=Bo(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(sa(f)){case p:l++;return;case Wo:if(Ho(f)){l+=Fa(e,l,f),c=6;return}break;case 92:if(l===e.length-1)break;let m=n(l+1);Ho(m)?l+=Fa(e,l+1,m):Ve(f,m)&&(l=Jt(e,l)-1);break}}}function s(){for(c=7,l=Bo(e,l);l<e.length;l++){let p=e.charCodeAt(l);switch(sa(p)){case 41:l++;return;case Wo:if(l=Bo(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=la(e,l),c=8;return;case 34:case 39:case 40:case ld:l=la(e,l),c=8;return;case 92:if(Ve(p,n(l+1))){l=Jt(e,l)-1;break}l=la(e,l),c=8;return}}}e=String(e||"");let a=e.length,u=sd(n(0)),l=u,c;for(;l<a;){let p=e.charCodeAt(l);switch(sa(p)){case Wo:c=13,l=Bo(e,l+1);break;case 34:i();break;case 35:Ua(n(l+1))||Ve(n(l+1),n(l+2))?(c=4,l=jo(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:ia(p,n(l+1),n(l+2))?r():(c=9,l++);break;case 44:c=18,l++;break;case 45:ia(p,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(c=15,l=l+3):zo(p,n(l+1),n(l+2))?o():(c=9,l++);break;case 46:ia(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:zo(n(l+1),n(l+2),n(l+3))?(c=3,l=jo(e,l+1)):(c=9,l++);break;case 91:c=19,l++;break;case 92:Ve(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 ad:r();break;case Va:o();break;default:c=9,l++}t(c,u,u=l)}}function ni(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}
36
+ `)}})}function hp({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(`
37
+ `)}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+=(mp.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>ua&&(l=n-fp+3,n=fp-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,mp),i[c]=(l>0&&i[c].length>l?"\u2026":"")+i[c].substr(l,ua-2)+(i[c].length>l+ua-1?"\u2026":""));return[o(s,t),new Array(n+u+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
38
+ `)}function gp(e,t,n,r,o){return Object.assign(ni("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return hp({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
39
+ `+hp({source:t,line:r,column:o},2)}})}function ZD(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 XD(e){return function(){return this[e]()}}function pa(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 QD(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:pa(e.atrule),pseudo:pa(e.pseudo),node:pa(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]=XD(e.parseContext[n]);break}return{config:t,...t,...t.node}}function ew(e){let t="",n="<unknown>",r=!1,o=yp,i=!1,s=new qD,a=Object.assign(new JD,QD(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:ZD,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(u){return u===bp?1:0},consumeUntilLeftCurlyBracketOrSemicolon(u){return u===bp||u===ca?1:0},consumeUntilExclamationMarkOrSemicolon(u){return u===KD||u===ca?1:0},consumeUntilSemicolonIncluded(u){return u===ca?2:0},createList(){return new oe},createSingleNodeList(u){return new oe().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!==Dp);return Dp},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 jn(t,u,l)},cmpStr(u,l,c){return Wr(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,ei(t,this.tokenStart));return this.eat(u),l},eat(u){if(this.tokenType!==u){let l=ud[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(YD)&&(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(VD(t,t.length-1)):s.getLocation(this.tokenStart);throw new gp(u||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(u,l){t=u,l=l||{},a.setSource(t,ti),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=!!l.positions,o=typeof l.onParseError=="function"?l.onParseError:yp,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,C)=>{if(m===25){let P=a.getLocation(y,C),A=Wr(t,C-2,C,"*/")?t.slice(y+2,C-2):t.slice(y+2,C);p(A,P)}});let f=a.context[c].call(a,l);return a.eof||a.error(),f},{SyntaxError:gp,config:a.config})}function nw(e){let t=new tw.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&&wp.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&&wp.has(f.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(f,m,y){for(let C=0;C<f.length;C++)f.charCodeAt(C)===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 pd(e){let t=new Set(e.map(([n,r])=>da(n)<<16|da(r)));return function(n,r,o){let i=da(r,o),s=o.charCodeAt(0);return(s===ow&&r!==1&&r!==2&&r!==15||s===rw?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function lw(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 uw(e){ti(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function cw(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:dd,token(u,l){i=this.tokenBefore(i,u,l),this.emit(l,u,!1),u===9&&l.charCodeAt(0)===aw&&this.emit(`
40
+ `,13,!0)},emit(u){o+=u},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=nw(s)),r.mode in _a&&(s.tokenBefore=_a[r.mode]));let a={node:u=>s.node(u),children:lw,token:(u,l)=>s.token(u,l),tokenize:uw};return s.node(n),s.result()}}function pw(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof oe)&&(n.children=new oe().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof oe&&(n.children=n.children.toArray())}}),t}}}function vp(e){return typeof e=="function"?e:jr}function kp(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function dw(e,t){let n=t.structure,r=[];for(let o in n){if(qa.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 fw(e){let t={};for(let n in e.node)if(qa.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]=dw(n,r)}return t}function xp(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 Cp({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 mw(e){let t=fw(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)qa.call(t,l)&&t[l]!==null&&(n[l]=xp(t[l],!1),r[l]=xp(t[l],!0));let s=Cp(n),a=Cp(r),u=function(l,c){function p(A,z,k){let _=f.call(P,A,z,k);return _===o?!0:_===i?!1:!!(y.hasOwnProperty(A.type)&&y[A.type](A,P,p,C)||m.call(P,A,z,k)===o)}let f=jr,m=jr,y=n,C=(A,z,k,_)=>A||p(z,k,_),P={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=vp(c.enter),m=vp(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=kp(f,c.visit),m=kp(m,c.visit)}if(f===jr&&m===jr)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 hw(e){return e}function gw(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 yw(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 bw(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Ha(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Ha(e,t,n,r){let o;switch(e.type){case"Group":o=bw(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Ha(e.term,t,n,r)+t(gw(e),e);case"Type":o="<"+e.name+(e.opts?t(yw(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 ri(e,t){let n=hw,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Ha(e,n,r,o)}function Dw(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=Ro(i||t,"end")||Rr(Fp,l),p=Rr(c)):(c=Ro(i,"start")||Rr(Ro(t,"start")||Fp,l.slice(0,s)),p=Ro(i,"end")||Rr(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:p}}function Ro(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Rr(n):n:null}function Rr({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 Ja(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Zo&&e.charCodeAt(t+1)===Zo}function fd(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Zo&&e.charCodeAt(t+1)!==Zo){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function vw(e){if(Lo.has(e))return Lo.get(e);let t=e.toLowerCase(),n=Lo.get(t);if(n===void 0){let r=Ja(t,0),o=r?"":fd(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Lo.set(e,n),n}function kw(e){if(Tn.has(e))return Tn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Ja(t,n.length);if(!r&&(t=t.toLowerCase(),Tn.has(t))){let a=Tn.get(t);return Tn.set(e,a),a}let o=r?"":fd(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 Tn.set(e,s),s}function Ea(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function $r(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function Et(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Ur||o===Ye){if(n)return 0;t++}for(;t<e.value.length;t++)if(!se(e.value.charCodeAt(t)))return 0;return r+1}function ha(e,t,n){let r=!1,o=$r(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(Ea(e,Ur)||Ea(e,Ye)){if(r=!0,o=$r(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!==Ur&&i!==Ye)return 0}return Et(e,r?0:1,r,o)}function Cw(e,t){let n=0;if(!e)return 0;if(e.type===10)return Et(e,0,xw,n);if(e.type===1&&e.value.charCodeAt(0)===Ye){if(!jn(e.value,1,ma))return 0;switch(e.value.length){case 2:return ha(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ye?0:(n=$r(t(++n),n,t),e=t(n),Et(e,0,On,n));default:return e.value.charCodeAt(2)!==Ye?0:Et(e,3,On,n)}}else if(e.type===1||Ea(e,Ur)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!jn(e.value,0,ma))return 0;switch(e.value.length){case 1:return ha(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ye?0:(n=$r(t(++n),n,t),e=t(n),Et(e,0,On,n));default:return e.value.charCodeAt(1)!==Ye?0:Et(e,2,On,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===Ur||r===Ye?1:0,i=o;for(;i<e.value.length&&se(e.value.charCodeAt(i));i++);return i===o||!jn(e.value,i,ma)?0:i+1===e.value.length?ha(t(++n),n,t):e.value.charCodeAt(i+1)!==Ye?0:i+2===e.value.length?(n=$r(t(++n),n,t),e=t(n),Et(e,0,On,n)):Et(e,i+2,On,n)}return 0}function Sa(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Ew(e,t){return e.value.charCodeAt(0)===t}function Lr(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===hd&&n&&r!==0)return Lr(e,t+r+1,!1),6;if(!St(i)||++r>6)return 0}return r}function No(e,t,n){if(!e)return 0;for(;Sa(n(t),gd);){if(++e>6)return 0;t++}return t}function Sw(e,t){let n=0;if(e===null||e.type!==1||!jn(e.value,0,_w)||(e=t(++n),e===null))return 0;if(Sa(e,Fw))return e=t(++n),e===null?0:e.type===1?No(Lr(e,0,!0),++n,t):Sa(e,gd)?No(1,++n,t):0;if(e.type===10){let r=Lr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!Ew(e,hd)||!Lr(e,1,!1)?0:n+1:No(r,n,t))}return e.type===12?No(Lr(e,1,!0),++n,t):0}function Ge(e,t){return t<e.length?e.charCodeAt(t):0}function yd(e,t){return Wr(e,0,e.length,t)}function bd(e,t){for(let n=0;n<t.length;n++)if(yd(e,t[n]))return!0;return!1}function Dd(e,t){return t!==e.length-2?!1:Ge(e,t)===92&&se(Ge(e,t+1))}function oi(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 Tw(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=Za.get(e.type);break}o++}while(e=t(o));return o}function Te(e){return function(t,n,r){return t===null?0:t.type===2&&bd(t.value,Aw)?Tw(t,n):e(t,n,r)}}function Y(e){return function(t){return t===null||t.type!==e?0:1}}function Ow(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return bd(t,md)||yd(t,"default")?0:1}function Pw(e){return e===null||e.type!==1||Ge(e.value,0)!==45||Ge(e.value,1)!==45?0:1}function Iw(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(!St(Ge(e.value,n)))return 0;return 1}function Bw(e){return e===null||e.type!==4||!zo(Ge(e.value,1),Ge(e.value,2),Ge(e.value,3))?0:1}function jw(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=Za.get(e.type);break}o++}while(e=t(o));return o}function Rw(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=Za.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=ei(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!Dd(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return oi(r,t.value,o)?0:1}}function Lw(e,t,n){return e===null||e.type!==11||oi(n,e.value,e.value.length-1)?0:1}function wd(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 Nw(e,t,n){if(e===null)return 0;let r=ei(e.value,0);return r!==e.value.length&&!Dd(e.value,r)||oi(n,e.value,r)?0:1}function Mw(e,t,n){if(e===null||e.type!==10)return 0;let r=Ge(e.value,0)===43||Ge(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!se(Ge(e.value,r)))return 0;return oi(n,e.value,r)?0:1}function Ww(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Te(ut(null)),angle:Te(ut(t)),decibel:Te(ut(n)),frequency:Te(ut(r)),flex:Te(ut(o)),length:Te(wd(ut(i))),resolution:Te(ut(s)),semitones:Te(ut(a)),time:Te(ut(u))}}function Uw(e){return{...$w,...zw,...Ww(e)}}function vd(e,t,n){return Object.assign(ni("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
46
41
  `+t+`
47
- --`+new Array((n||t.length)+1).join("-")+"^"})}function Si(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||ao[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Ti(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 S1(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 Yp(e){let t=null,n=null;return e.eat(Fi),t=Ti(e),e.charCode()===Ll?(e.pos++,e.charCode()!==Hp&&(n=Ti(e))):n=t,e.eat(Hp),{min:Number(t),max:n?Number(n):0}}function T1(e){let t=null,n=!1;switch(e.charCode()){case zf:e.pos++,t={min:0,max:0};break;case jl:e.pos++,t={min:1,max:0};break;case hl:e.pos++,t={min:0,max:1};break;case Rl:e.pos++,n=!0,e.charCode()===Fi?t=Yp(e):e.charCode()===hl?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Fi:t=Yp(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Zn(e,t){let n=T1(e);return n!==null?(n.term=t,e.charCode()===Rl&&e.charCodeAt(e.pos-1)===jl?Zn(e,n):n):t}function tl(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function A1(e){let t;return e.eat(Ml),e.eat(_i),t=Jn(e),e.eat(_i),e.eat(Uf),Zn(e,{type:"Property",name:t})}function O1(e){let t=null,n=null,r=1;return e.eat(Ri),e.charCode()===Gp&&(e.peek(),r=-1),r==-1&&e.charCode()===Jp?e.peek():(t=r*Number(Ti(e)),ao[e.charCode()]!==0&&(t+=Jn(e))),Si(e),e.eat(Ll),Si(e),e.charCode()===Jp?e.peek():(r=1,e.charCode()===Gp&&(e.peek(),r=-1),n=r*Number(Ti(e)),ao[e.charCode()]!==0&&(n+=Jn(e))),e.eat(Nl),{type:"Range",min:t,max:n}}function P1(e){let t,n=null;return e.eat(Ml),t=Jn(e),e.charCode()===Wf&&e.nextCharCode()===_1&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Ri&&(Si(e),n=O1(e)),e.eat(Uf),Zn(e,{type:"Type",name:t,opts:n})}function I1(e){let t=Jn(e);return e.charCode()===Wf?(e.pos++,{type:"Function",name:t}):Zn(e,{type:"Keyword",name:t})}function B1(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)=>Zp[o]-Zp[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 Vf(e){let t=[],n={},r,o=null,i=e.pos;for(;r=j1(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:B1(t,n)||" ",disallowEmpty:!1,explicit:!1}}function R1(e){let t;return e.eat(Ri),t=Vf(e),e.eat(Nl),t.explicit=!0,e.charCode()===$f&&(e.pos++,t.disallowEmpty=!0),t}function j1(e){let t=e.charCode();if(t<128&&ao[t]===1)return I1(e);switch(t){case Nl:break;case Ri:return Zn(e,R1(e));case Ml:return e.nextCharCode()===_i?A1(e):P1(e);case qp:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===qp?2:1))};case Vp:return e.pos++,e.eat(Vp),{type:"Combinator",value:"&&"};case Ll:return e.pos++,{type:"Comma"};case _i:return Zn(e,{type:"String",value:S1(e)});case E1:case v1:case k1:case C1:case x1:return{type:"Spaces",value:Si(e)};case F1:return t=e.nextCharCode(),t<128&&ao[t]===1?(e.pos++,{type:"AtKeyword",name:Jn(e)}):tl(e);case zf:case jl:case hl:case Rl:case $f:break;case Fi:if(t=e.nextCharCode(),t<48||t>57)return tl(e);break;default:return tl(e)}}function $l(e){let t=new w1(e),n=Vf(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function Kp(e){return typeof e=="function"?e:to}function Gf(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=to,i=to;if(typeof t=="function"?o=t:t&&(o=Kp(t.enter),i=Kp(t.leave)),o===to&&i===to)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function M1(e){let t=[];return Oi(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function N1(e,t){return typeof e=="string"?M1(e):t.generate(e,L1)}function he(e,t,n){return t===H&&n===J||e===H&&t===H&&n===H?e:(e.type==="If"&&e.else===J&&t===H&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function qf(e){return e.length>2&&e.charCodeAt(e.length-2)===$1&&e.charCodeAt(e.length-1)===W1}function Xp(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&qf(e.name)}function gl(e,t,n){switch(e){case" ":{let r=H;for(let o=t.length-1;o>=0;o--){let i=t[o];r=he(i,r,J)}return r}case"|":{let r=J,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(Xp(s)&&(o===null&&i>0&&Xp(t[i-1])&&(o=Object.create(null),r=he({type:"Enum",map:o},H,r)),o!==null)){let a=(qf(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=he(s,H,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=J;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=gl(e,t.filter(function(a){return a!==i}),!1):s=H,r=he(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?H:J;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=gl(e,t.filter(function(a){return a!==i}),!0):s=H,r=he(i,s,r)}return r}}}function z1(e){let t=H,n=zl(e.term);if(e.max===0)n=he(n,Wl,J),t=he(n,null,J),t.then=he(H,H,t),e.comma&&(t.then.else=he({type:"Comma",syntax:e},t,J));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==H&&(t=he({type:"Comma",syntax:e},t,J)),t=he(n,he(H,H,t),J);if(e.min===0)t=he(H,H,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==H&&(t=he({type:"Comma",syntax:e},t,J)),t=he(n,t,J);return t}function zl(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=gl(e.combinator,e.terms.map(zl),!1);return e.disallowEmpty&&(t=he(t,Wl,J)),t}case"Multiplier":return z1(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 yl(e,t){return typeof e=="string"&&(e=$l(e)),{type:"MatchGraph",match:zl(e),syntax:t||null,source:e}}function J1(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function nl(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 Z1(e){return e.type!==9?!1:e.value!=="?"}function nf(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||Z1(e)}function rf(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function Y1(e,t,n){function r(){do W++,O=W<e.length?e[W]:null;while(O!==null&&(O.type===13||O.type===25))}function o(V){let L=W+V;return L<e.length?e[L]:null}function i(V,L){return{nextState:V,matchStack:F,syntaxStack:d,thenStack:f,tokenIndex:W,prev:L}}function s(V){f={nextState:V,matchStack:F,syntaxStack:d,prev:f}}function a(V){m=i(V,m)}function u(){F={type:V1,syntax:t.syntax,token:O,prev:F},r(),y=null,W>C&&(C=W)}function l(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},F={type:bl,syntax:t.syntax,token:F.token,prev:F}}function c(){F.type===bl?F=F.prev:F={type:Hf,syntax:d.syntax,token:F.token,prev:F},d=d.prev}let d=null,f=null,m=null,y=null,x=0,I=null,O=null,W=-1,C=0,F={type:U1,syntax:null,token:null,prev:null};for(r();I===null&&++x<tf;)switch(t.type){case"Match":if(f===null){if(O!==null&&(W!==e.length-1||O.value!=="\\0"&&O.value!=="\\9")){t=J;break}I=ef;break}if(t=f.nextState,t===Wl)if(f.matchStack===F){t=J;break}else t=H;for(;f.syntaxStack!==d;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||W>m.tokenIndex)&&(m=y,y=!1);else if(m===null){I=G1;break}t=m.nextState,f=m.thenStack,d=m.syntaxStack,F=m.matchStack,W=m.tokenIndex,O=W<e.length?e[W]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==J&&a(t.else),t.then!==H&&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=J;break}t=H;break}if(t.mask===(1<<E.length)-1){t=H;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(O!==null){let E=O.value.toLowerCase();if(E.indexOf("\\")!==-1&&(E=E.replace(/\\[09].*$/,"")),Qp.call(t.map,E)){t=t.map[E];break}}t=J;break;case"Generic":{let E=d!==null?d.opts:null,h=W+Math.floor(t.fn(O,o,E));if(!isNaN(h)&&h>W){for(;W<h;)u();t=H}else t=J;break}case"Type":case"Property":{let E=t.type==="Type"?"types":"properties",h=Qp.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&&O!==null&&t.type==="Type"&&(t.name==="custom-ident"&&O.type===1||t.name==="length"&&O.value==="0")){y===null&&(y=i(t,m)),t=J;break}l(),t=h.match;break}case"Keyword":{let E=t.name;if(O!==null){let h=O.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),nl(h,E)){u(),t=H;break}}t=J;break}case"AtKeyword":case"Function":if(O!==null&&nl(O.value,t.name)){u(),t=H;break}t=J;break;case"Token":if(O!==null&&O.value===t.value){u(),t=H;break}t=J;break;case"Comma":O!==null&&O.type===18?nf(F.token)?t=J:(u(),t=rf(O)?J:H):t=nf(F.token)||rf(O)?H:J;break;case"String":let V="",L=W;for(;L<e.length&&V.length<t.value.length;L++)V+=e[L].value;if(nl(V,t.value)){for(;W<L;)u();t=H}else t=J;break;default:throw new Error("Unknown node type: "+t.type)}switch(H1+=x,I){case null:console.warn("[csstree-match] BREAK after "+tf+" iterations"),I=q1,F=null;break;case ef:for(;d!==null;)c();break;default:F=null}return{tokens:e,reason:I,iterations:x,match:F,longestMatch:C}}function of(e,t,n){let r=Y1(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=J1(o).prev;o!==null;){switch(o.type){case bl:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case Hf: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 Zf(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 K1(e,t){return Ul(this,e,n=>n.type==="Type"&&n.name===t)}function X1(e,t){return Ul(this,e,n=>n.type==="Property"&&n.name===t)}function Q1(e){return Ul(this,e,t=>t.type==="Keyword")}function Ul(e,t,n){let r=Zf.call(e,t);return r===null?!1:r.some(n)}function Yf(e){return"node"in e?e.node:Yf(e.match[0])}function Kf(e){return"node"in e?e.node:Kf(e.match[e.match.length-1])}function sf(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let u=Yf(a),l=Kf(a);e.syntax.walk(t,function(c,d,f){if(c===u){let m=new se;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 rl(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function af(e){return!!e&&rl(e.offset)&&rl(e.line)&&rl(e.column)}function ek(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(oo.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(!af(n.loc.start))o+=".start";else if(!af(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 se)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)oo.call(t,o)&&oo.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function tk(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(oo.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:ek(e,r)}}function nk(e){let t={};if(e.node){for(let n in e.node)if(oo.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=tk(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Dl(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:Ii(e[o].syntax,{compact:t}));return r}function ok(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:Ii(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Dl(i.descriptors,t,n)};return r}function ik(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function Ze(e,t,n){return{matched:e,iterations:n,error:t,...Jf}}function Vn(e,t,n,r){let o=N1(n,e.syntax),i;return ik(o)?Ze(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=of(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=of(o,t.match,e),!i.match)?Ze(null,new jv(i.reason,t.syntax,n,i),i.iterations):Ze(i.match,null,i.iterations))}function ol(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function uf(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 wl(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?ol(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?ol(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]=ol(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],...uf(o,["parse"])};break;case"node":n[r]={...e[r],...uf(o,["name","structure","parse","generate","walkContext"])};break}return n}function Xf(e){let t=gv(e),n=Av(e),r=_v(e),{fromPlainObject:o,toPlainObject:i}=Fv(n),s={lexer:null,createLexer:a=>new lf(a,s,s.lexer.structure),tokenize:Oi,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let u=wl({},e);return Xf(typeof a=="function"?a(u,Object.assign):wl(u,a))}};return s.lexer=new lf({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function wi(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===ot||r===Ee)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)le(this.charCodeAt(n))||this.error("Integer is expected",n)}function Gn(e){return wi.call(this,0,e)}function It(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Di:n="N is expected";break;case Ee:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function il(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(ot,e)||this.isDelim(Ee,e)){t=this.isDelim(ot,e)?ot:Ee;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),Gn.call(this,nn))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==ot&&n!==Ee&&this.error("Number sign is expected")),Gn.call(this,t!==0),t===Ee?"-"+this.consume(10):this.consume(10)}function em(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)Gn.call(this,lk),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,Ee))switch(t="-1",It.call(this,1,Di),this.tokenEnd-this.tokenStart){case 2:this.next(),n=il.call(this);break;case 3:It.call(this,2,Ee),this.next(),this.skipSC(),Gn.call(this,nn),n="-"+this.consume(10);break;default:It.call(this,2,Ee),wi.call(this,3,nn),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(ot)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(ot)&&(r=1,this.next()),It.call(this,0,Di),this.tokenEnd-this.tokenStart){case 1:this.next(),n=il.call(this);break;case 2:It.call(this,1,Ee),this.next(),this.skipSC(),Gn.call(this,nn),n="-"+this.consume(10);break;default:It.call(this,1,Ee),wi.call(this,2,nn),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===ot||r===Ee,i=this.tokenStart+o;for(;i<this.tokenEnd&&le(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),It.call(this,i-this.tokenStart,Di),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=il.call(this)):(It.call(this,i-this.tokenStart+1,Ee),i+2===this.tokenEnd?(this.next(),this.skipSC(),Gn.call(this,nn),n="-"+this.consume(10)):(wi.call(this,i-this.tokenStart+2,nn),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===ot&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===ot&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function dk(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 cf(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function pk(){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 nm(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),cf):o=cf.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(pk.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function gk(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function om(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 wk(e){this.children(e)}function Ck(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(sm)?(t=!0,this.next()):this.isDelim(vl)||this.eat(1),this.isDelim(vl)?this.charCodeAt(this.tokenStart+1)!==vi?(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 Ek(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==vi&&t!==xk&&t!==kk&&t!==vk&&t!==sm&&t!==vl&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==vi&&(this.isDelim(vi)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function am(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=Ck.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=Ek.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 Sk(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 um(e){return this.Raw(e,null,!0)}function df(){return this.parseWithFallback(this.Rule,um)}function pf(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Ak(){if(this.tokenType===17)return pf.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,pf);return this.tokenType===17&&this.next(),e}function cm(e){let t=e?Ak:df,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),um));break;default:e&&this.isDelim(Tk)?r.push(df.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Bk(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function pm(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 Lk(e){this.token(9,"["),this.children(e),this.token(9,"]")}function mm(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function $k(){this.token(15,"-->")}function gm(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Uk(){this.token(14,"<!--")}function bm(){return this.eatDelim(Vk),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Hk(e){this.token(9,"."),this.token(1,e.name)}function wm(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Zk:case Jk:case Yk:this.next();break;case ff:this.next(),this.eatIdent("deep"),this.eatDelim(ff);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Qk(e){this.tokenize(e.name)}function km(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===ex&&this.charCodeAt(t-1)===tx&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function ox(e){this.token(25,"/*"+e.value+"*/")}function cx(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function dx(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function px(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Cm)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function Em(){let e=this.tokenStart,t=this.tokenIndex,n=yx.call(this),r=Il(n),o=r?this.parseCustomProperty:this.parseValue,i=r?dx:cx,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(px,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(Cm)&&(s=bx.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 gx(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 yx(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case lx:case sx:case ux:case ix:case ax:this.next();break;case mf:this.next(),this.isDelim(mf)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function bx(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function sl(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Fm(){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),sl));break;default:this.isDelim(Dx)?e.push(this.parseWithFallback(this.Rule,sl)):e.push(this.parseWithFallback(this.Declaration,sl))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function kx(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function Tm(){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 Ex(e){this.token(12,e.value+e.unit)}function Om(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 Tx(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function Im(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Ix(e){this.token(4,"#"+e.value)}function Rm(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function jx(e){this.token(1,e.name)}function Lm(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Nx(e){this.token(9,"#"+e.name)}function Nm(){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 zx(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function Wm(){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 Gx(e){this.children(e)}function Um(){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 Jx(e){this.children(e,()=>this.token(18,","))}function Gm(){let e=this.tokenStart;return this.eatDelim(Zx),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Xx(){this.token(9,"&")}function Hm(){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 t2(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Zm(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function o2(e){this.token(10,e.value)}function Km(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function a2(e){this.tokenize(e.value)}function Qm(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 c2(e){this.token(21,"("),this.children(e),this.token(22,")")}function th(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function f2(e){this.token(11,e.value+"%")}function rh(){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 y2(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function ih(){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 v2(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 hf(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!le(n)&&n!==x2&&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 ah(){let e=this.tokenStart,t=hf.call(this),n;return this.skipSC(),this.eatDelim(k2),n=hf.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function _2(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function F2(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function uh(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=F2.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function A2(e){this.tokenize(e.value)}function gf(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function O2(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function dh(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(O2,gf):n=gf.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function R2(e){this.node(e.prelude),this.node(e.block)}function fh(){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 M2(e){this.children(e)}function hh(){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 z2(e){this.children(e,()=>this.token(18,","))}function Gl(e){let t=e.length,n=e.charCodeAt(0),r=n===yh||n===bh?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===kl){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),Ye(kl,a)){let u=s-1,l=on(e,u);s=l-1,i+=Al(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function Dh(e,t){let n=t?"'":'"',r=t?bh:yh,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===kl?(o+="\\"+e.charAt(s),i=!1):(i&&(Rt(a)||rn(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function wh(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Gl(this.consume(5))}}function q2(e){this.token(5,Dh(e.value))}function yf(e){return this.Raw(e,null,!1)}function kh(){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)!==H2){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,yf);break;default:n=this.parseWithFallback(this.Rule,yf)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function K2(e){this.children(e)}function al(){this.tokenType!==1&&this.isDelim(X2)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function Ch(){let e=this.tokenStart;return this.isDelim(bf)?(this.next(),al.call(this)):(al.call(this),this.isDelim(bf)&&(this.next(),al.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function tC(e){this.tokenize(e.name)}function no(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===Fh&&t&&n!==0)return no.call(this,e+n+1,!1),-1;Rt(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 hi(e){let t=0;for(;this.isDelim(xl);)++t>e&&this.error("Too many question marks"),this.next()}function nC(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===_h?"Plus sign":"Hyphen minus")+" is expected")}function rC(){let e=0;switch(this.tokenType){case 10:if(e=no.call(this,1,!0),this.isDelim(xl)){hi.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){nC.call(this,Fh),no.call(this,1,!1);break}break;case 12:e=no.call(this,1,!0),e>0&&hi.call(this,6-e);break;default:if(this.eatDelim(_h),this.tokenType===1){e=no.call(this,0,!0),e>0&&hi.call(this,6-e);break}if(this.isDelim(xl)){this.next(),hi.call(this,5);break}this.error("Hex digit or question mark is expected")}}function Sh(){let e=this.tokenStart;return this.eatIdent("u"),rC.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function sC(e){this.tokenize(e.value)}function Oh(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===Ah?t-2:t-1,o="";for(;n<r&&rn(e.charCodeAt(n));)n++;for(;n<r&&rn(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===Cl){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),Ye(Cl,s)){let a=i-1,u=on(e,a);i=u-1,o+=Al(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function Ph(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===lC||o===Cl||o===uC||o===cC||o===dC||o===Ah?(t+="\\"+e.charAt(r),n=!1):(n&&Rt(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function Ih(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=Oh(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=Gl(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 mC(e){this.token(7,Ph(e.value))}function Rh(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function yC(e){this.children(e)}function Lh(){return this.eat(13),bC}function vC(e){this.token(13,e.value)}function Nh(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,FC)&&this.cmpChar(this.tokenStart+1,Df)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===_C||t===CC||t===Df||t===EC)return this.Operator();t===xC&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function LC(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function MC(){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)===wf&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case PC:case BC:case jC:case IC:return this.Combinator();case wf:return this.ClassSelector();case OC:case RC:return this.TypeSelector();case TC:return this.IdSelector();case AC:return this.NestingSelector()}break}}}function $C(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function WC(){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 vf(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function JC(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function ZC(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):$h.call(this)}function $h(){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(JC,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(ZC,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function rE(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===xf){if(r===t)break;if(o=e.charCodeAt(++r),Ye(xf,o)){let i=r-1,s=on(e,i);r=s-1,n+=Al(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function oE(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}Sl(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var gw,El,yw,bw,Dw,ww,Yn,B,vw,kw,xw,Cw,_l,Ew,_w,Fw,Sw,Tw,Aw,Ow,Pw,Iw,Bw,Rw,jw,Lw,Mw,Nw,$w,Ww,zw,Uw,Vw,Gw,qw,Hw,Jw,Zw,Yw,Kw,Xw,Qw,ev,ul,iv,bi,Ef,Tl,_f,Ff,Fp,av,Sp,lv,Ie,Pt,uv,cv,Wn,se,Ja,Ap,Op,Bp,pv,fv,Za,Rp,jp,yv,Lp,dl,Dv,wv,Ka,Sf,vv,kv,Af,xv,Ol,Xr,zp,Kr,jv,fi,zn,Ei,Xa,Up,Pf,so,rt,Qa,Un,Nv,Wv,If,Bf,zv,Gv,Bl,n1,r1,ml,s1,a1,l1,u1,c1,d1,p1,f1,m1,h1,g1,y1,b1,D1,w1,v1,k1,x1,C1,E1,$f,Rl,Vp,_i,Wf,_1,zf,jl,Ll,Gp,Ml,Uf,hl,F1,Ri,Nl,Fi,qp,Hp,Jp,ao,Zp,to,L1,H,J,Wl,$1,W1,Qp,U1,V1,bl,Hf,ef,G1,q1,tf,H1,Jf,oo,rk,lf,sk,ak,Vl,Qf,ot,Ee,Di,nn,lk,uk,ck,tm,fk,mk,hk,rm,yk,bk,Dk,im,vk,sm,vi,kk,vl,xk,_k,Fk,lm,Tk,Ok,Pk,Ik,dm,Rk,jk,fm,Mk,Nk,hm,Wk,zk,ym,Vk,Gk,qk,Dm,Jk,ff,Zk,Yk,Kk,Xk,vm,ex,tx,nx,rx,xm,Cm,ix,sx,ax,lx,ux,mf,fx,mx,hx,_m,Dx,wx,vx,Sm,xx,Cx,Am,_x,Fx,Sx,Pm,Ax,Ox,Px,Bm,Bx,Rx,jm,Lx,Mx,Mm,$x,Wx,$m,Ux,Vx,zm,qx,Hx,Vm,Zx,Yx,Kx,qm,Qx,e2,Jm,n2,r2,Ym,i2,s2,Xm,l2,u2,eh,d2,p2,nh,m2,h2,g2,oh,b2,D2,w2,sh,k2,x2,C2,E2,lh,S2,T2,ch,P2,I2,B2,ph,j2,L2,mh,N2,$2,W2,gh,U2,kl,yh,bh,V2,G2,vh,H2,J2,Z2,Y2,xh,X2,bf,Q2,eC,Eh,_h,Fh,xl,oC,iC,Th,aC,lC,Cl,uC,cC,dC,Ah,pC,fC,Bh,hC,gC,jh,bC,DC,wC,kC,Mh,xC,CC,Df,EC,_C,FC,SC,TC,AC,OC,PC,IC,wf,BC,RC,jC,NC,zC,UC,VC,GC,qC,HC,YC,KC,tn,ll,kf,gi,XC,Wh,QC,eE,tE,nE,xf,SO,zh,Uh,TO,AO,Vh,OO,PO,IO,BO,RO,jO,Gh=_(()=>{"use strict";gw=Object.create,El=Object.defineProperty,yw=Object.getOwnPropertyDescriptor,bw=Object.getOwnPropertyNames,Dw=Object.getPrototypeOf,ww=Object.prototype.hasOwnProperty,Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),B=(e,t)=>{for(var n in t)El(e,n,{get:t[n],enumerable:!0})},vw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bw(t))!ww.call(e,o)&&o!==n&&El(e,o,{get:()=>t[o],enumerable:!(r=yw(t,o))||r.enumerable});return e},kw=(e,t,n)=>(n=e!=null?gw(Dw(e)):{},vw(t||!e||!e.__esModule?El(n,"default",{value:e,enumerable:!0}):n,e)),xw=Yn(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}}),Cw=Yn(e=>{var t=xw(),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,x;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(x=t.decode(u.charCodeAt(l++)),x===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(x&i),x&=o,f=f+(x<<m),m+=n}while(y);c.value=a(f),c.rest=l}}),_l=Yn(e=>{function t(h,g,R){if(g in h)return h[g];if(arguments.length===3)return R;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(R){for(var v=0;v<g.length;v++)if(g[v].input===R){var ae=g[0];return g[0]=g[v],g[v]=ae,g[0].result}var We=h(R);return g.unshift({input:R,result:We}),g.length>s&&g.pop(),We}}var u=a(function(h){var g=h,R=o(h);if(R){if(!R.path)return h;g=R.path}for(var v=e.isAbsolute(g),ae=[],We=0,$=0;;)if(We=$,$=g.indexOf("/",We),$===-1){ae.push(g.slice(We));break}else for(ae.push(g.slice(We,$));$<g.length&&g[$]==="/";)$++;for(var X,Et=0,$=ae.length-1;$>=0;$--)X=ae[$],X==="."?ae.splice($,1):X===".."?Et++:Et>0&&(X===""?(ae.splice($+1,Et),Et=0):(ae.splice($,2),Et--));return g=ae.join("/"),g===""&&(g=v?"/":"."),R?(R.path=g,i(R)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var R=o(g),v=o(h);if(v&&(h=v.path||"/"),R&&!R.scheme)return v&&(R.scheme=v.scheme),i(R);if(R||g.match(r))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var ae=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=ae,i(v)):ae}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 R=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++R}return Array(R+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 x(h)?"$"+h:h}e.toSetString=d?f:m;function y(h){return x(h)?h.slice(1):h}e.fromSetString=d?f:y;function x(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 R=g-10;R>=0;R--)if(h.charCodeAt(R)!==36)return!1;return!0}function I(h,g,R){var v=F(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||R)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:F(h.name,g.name)}e.compareByOriginalPositions=I;function O(h,g,R){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||R)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:F(h.name,g.name)}e.compareByOriginalPositionsNoSource=O;function W(h,g,R){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||R)||(v=F(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:F(h.name,g.name)}e.compareByGeneratedPositionsDeflated=W;function C(h,g,R){var v=h.generatedColumn-g.generatedColumn;return v!==0||R||(v=F(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:F(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=C;function F(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function V(h,g){var R=h.generatedLine-g.generatedLine;return R!==0||(R=h.generatedColumn-g.generatedColumn,R!==0)||(R=F(h.source,g.source),R!==0)||(R=h.originalLine-g.originalLine,R!==0)||(R=h.originalColumn-g.originalColumn,R!==0)?R:F(h.name,g.name)}e.compareByGeneratedPositionsInflated=V;function L(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function E(h,g,R){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),R){var v=o(R);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var ae=v.path.lastIndexOf("/");ae>=0&&(v.path=v.path.substring(0,ae+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=E}),Ew=Yn(e=>{var t=_l(),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}),_w=Yn(e=>{var t=_l();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}),Fw=Yn(e=>{var t=Cw(),n=_l(),r=Ew().ArraySet,o=_w().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 x=m.source;x!=null&&!d.has(x)&&d.add(x);var I=m.name;I!=null&&!f.has(I)&&f.add(I)},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,x,I,O=this._mappings.toArray(),W=0,C=O.length;W<C;W++){if(y=O[W],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(W>0){if(!n.compareByGeneratedPositionsInflated(y,O[W-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(I=this._sources.indexOf(y.source),m+=t.encode(I-d),d=I,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-u),u=y.originalColumn,y.name!=null&&(x=this._names.indexOf(y.name),m+=t.encode(x-c),c=x)),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}),Sw={};B(Sw,{AtKeyword:()=>Pw,BadString:()=>Rw,BadUrl:()=>Lw,CDC:()=>Vw,CDO:()=>Uw,Colon:()=>Gw,Comma:()=>Hw,Comment:()=>ev,Delim:()=>Mw,Dimension:()=>Ww,EOF:()=>Tw,Function:()=>Ow,Hash:()=>Iw,Ident:()=>Aw,LeftCurlyBracket:()=>Xw,LeftParenthesis:()=>Yw,LeftSquareBracket:()=>Jw,Number:()=>Nw,Percentage:()=>$w,RightCurlyBracket:()=>Qw,RightParenthesis:()=>Kw,RightSquareBracket:()=>Zw,Semicolon:()=>qw,String:()=>Bw,Url:()=>jw,WhiteSpace:()=>zw});Tw=0,Aw=1,Ow=2,Pw=3,Iw=4,Bw=5,Rw=6,jw=7,Lw=8,Mw=9,Nw=10,$w=11,Ww=12,zw=13,Uw=14,Vw=15,Gw=16,qw=17,Hw=18,Jw=19,Zw=20,Yw=21,Kw=22,Xw=23,Qw=24,ev=25;ul=new Array(128),iv=128,bi=130,Ef=131,Tl=132,_f=133;for(let e=0;e<ul.length;e++)ul[e]=rn(e)&&bi||le(e)&&Ef||ki(e)&&Tl||ov(e)&&_f||e||iv;Ff=["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"];Fp=10,av=12,Sp=13;lv=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||Tp(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||Tp(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]}}}},Ie=16777215,Pt=24,uv=new Map([[2,22],[21,22],[19,20],[23,24]]),cv=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=Ci(this.offsetAndType,e.length+1),o=Ci(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&Ie;for(a=o[f],s=a>>Pt,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=uv.get(l),a=s<<Pt|i;break}r[i++]=l<<Pt|d,u===-1&&(u=c)}),r[i]=0<<Pt|n,o[i]=n,o[n]=n;a!==0;){let l=a&Ie;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]>>Pt:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Ie:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?io(this.source,this.offsetAndType[e-1]&Ie,this.offsetAndType[e]&Ie,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Ie:this.offsetAndType[this.tokenCount]&Ie: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]&Ie,t=this.offsetAndType[t],this.tokenType=t>>Pt,this.tokenEnd=t&Ie):(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>>Pt,this.tokenEnd=e&Ie):(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]&Ie: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&Ie,s=o>>Pt;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:Ff[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};Wn=null,se=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return se.createItem(e)}allocateCursor(e,t){let n;return Wn!==null?(n=Wn,Wn=Wn.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=Wn,Wn=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=se.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 se;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 se;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 se;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(se.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(se.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(se.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(se.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(se.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)}};Ja=100,Ap=60,Op=" ";Bp=()=>{},pv=33,fv=35,Za=59,Rp=123,jp=0;yv=kw(Fw(),1),Lp=new Set(["Atrule","Selector","Declaration"]);dl={};B(dl,{safe:()=>Af,spec:()=>kv});Dv=43,wv=45,Ka=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Sf=[[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],["/","*"]],vv=Sf.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,"-"]]);kv=Tf(Sf),Af=Tf(vv),xv=92;({hasOwnProperty:Ol}=Object.prototype),Xr=function(){};zp={offset:0,line:1,column:1};Kr=function(e,t){let n=Pi("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},jv=function(e,t,n,r){let o=Pi("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=Rv(r,n);return o.rawMessage=e,o.syntax=t?Ii(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
42
+ --`+new Array((n||t.length)+1).join("-")+"^"})}function Xo(e){return e.substringToPos(e.findWsEnd(e.pos))}function Rn(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Vr[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Qo(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 d0(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 Ip(e){let t=null,n=null;return e.eat(Yo),t=Qo(e),e.charCode()===Xa?(e.pos++,e.charCode()!==Tp&&(n=Qo(e))):n=t,e.eat(Tp),{min:Number(t),max:n?Number(n):0}}function f0(e){let t=null,n=!1;switch(e.charCode()){case Cd:e.pos++,t={min:0,max:0};break;case Ya:e.pos++,t={min:1,max:0};break;case Ta:e.pos++,t={min:0,max:1};break;case Ka:e.pos++,n=!0,e.charCode()===Yo?t=Ip(e):e.charCode()===Ta?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Yo:t=Ip(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Ln(e,t){let n=f0(e);return n!==null?(n.term=t,e.charCode()===Ka&&e.charCodeAt(e.pos-1)===Ya?Ln(e,n):n):t}function ga(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function m0(e){let t;return e.eat(Qa),e.eat(Ko),t=Rn(e),e.eat(Ko),e.eat(Fd),Ln(e,{type:"Property",name:t})}function h0(e){let t=null,n=null,r=1;return e.eat(ii),e.charCode()===Sp&&(e.peek(),r=-1),r==-1&&e.charCode()===Op?e.peek():(t=r*Number(Qo(e)),Vr[e.charCode()]!==0&&(t+=Rn(e))),Xo(e),e.eat(Xa),Xo(e),e.charCode()===Op?e.peek():(r=1,e.charCode()===Sp&&(e.peek(),r=-1),n=r*Number(Qo(e)),Vr[e.charCode()]!==0&&(n+=Rn(e))),e.eat(el),{type:"Range",min:t,max:n}}function g0(e){let t,n=null;return e.eat(Qa),t=Rn(e),e.charCode()===xd&&e.nextCharCode()===c0&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ii&&(Xo(e),n=h0(e)),e.eat(Fd),Ln(e,{type:"Type",name:t,opts:n})}function y0(e){let t=Rn(e);return e.charCode()===xd?(e.pos++,{type:"Function",name:t}):Ln(e,{type:"Keyword",name:t})}function b0(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)=>Pp[o]-Pp[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 _d(e){let t=[],n={},r,o=null,i=e.pos;for(;r=w0(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:b0(t,n)||" ",disallowEmpty:!1,explicit:!1}}function D0(e){let t;return e.eat(ii),t=_d(e),e.eat(el),t.explicit=!0,e.charCode()===kd&&(e.pos++,t.disallowEmpty=!0),t}function w0(e){let t=e.charCode();if(t<128&&Vr[t]===1)return y0(e);switch(t){case el:break;case ii:return Ln(e,D0(e));case Qa:return e.nextCharCode()===Ko?m0(e):g0(e);case Ap:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Ap?2:1))};case Ep:return e.pos++,e.eat(Ep),{type:"Combinator",value:"&&"};case Xa:return e.pos++,{type:"Comma"};case Ko:return Ln(e,{type:"String",value:d0(e)});case u0:case i0:case s0:case l0:case a0:return{type:"Spaces",value:Xo(e)};case p0:return t=e.nextCharCode(),t<128&&Vr[t]===1?(e.pos++,{type:"AtKeyword",name:Rn(e)}):ga(e);case Cd:case Ya:case Ta:case Ka:case kd:break;case Yo:if(t=e.nextCharCode(),t<48||t>57)return ga(e);break;default:return ga(e)}}function tl(e){let t=new o0(e),n=_d(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function Bp(e){return typeof e=="function"?e:Nr}function Ed(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=Nr,i=Nr;if(typeof t=="function"?o=t:t&&(o=Bp(t.enter),i=Bp(t.leave)),o===Nr&&i===Nr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function k0(e){let t=[];return ti(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function x0(e,t){return typeof e=="string"?k0(e):t.generate(e,v0)}function pe(e,t,n){return t===H&&n===J||e===H&&t===H&&n===H?e:(e.type==="If"&&e.else===J&&t===H&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Sd(e){return e.length>2&&e.charCodeAt(e.length-2)===C0&&e.charCodeAt(e.length-1)===F0}function jp(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&Sd(e.name)}function Oa(e,t,n){switch(e){case" ":{let r=H;for(let o=t.length-1;o>=0;o--){let i=t[o];r=pe(i,r,J)}return r}case"|":{let r=J,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(jp(s)&&(o===null&&i>0&&jp(t[i-1])&&(o=Object.create(null),r=pe({type:"Enum",map:o},H,r)),o!==null)){let a=(Sd(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=pe(s,H,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=J;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Oa(e,t.filter(function(a){return a!==i}),!1):s=H,r=pe(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?H:J;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Oa(e,t.filter(function(a){return a!==i}),!0):s=H,r=pe(i,s,r)}return r}}}function _0(e){let t=H,n=rl(e.term);if(e.max===0)n=pe(n,nl,J),t=pe(n,null,J),t.then=pe(H,H,t),e.comma&&(t.then.else=pe({type:"Comma",syntax:e},t,J));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==H&&(t=pe({type:"Comma",syntax:e},t,J)),t=pe(n,pe(H,H,t),J);if(e.min===0)t=pe(H,H,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==H&&(t=pe({type:"Comma",syntax:e},t,J)),t=pe(n,t,J);return t}function rl(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Oa(e.combinator,e.terms.map(rl),!1);return e.disallowEmpty&&(t=pe(t,nl,J)),t}case"Multiplier":return _0(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 Pa(e,t){return typeof e=="string"&&(e=tl(e)),{type:"MatchGraph",match:rl(e),syntax:t||null,source:e}}function P0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function ya(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 I0(e){return e.type!==9?!1:e.value!=="?"}function Mp(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||I0(e)}function $p(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function B0(e,t,n){function r(){do z++,A=z<e.length?e[z]:null;while(A!==null&&(A.type===13||A.type===25))}function o(G){let R=z+G;return R<e.length?e[R]:null}function i(G,R){return{nextState:G,matchStack:_,syntaxStack:p,thenStack:f,tokenIndex:z,prev:R}}function s(G){f={nextState:G,matchStack:_,syntaxStack:p,prev:f}}function a(G){m=i(G,m)}function u(){_={type:S0,syntax:t.syntax,token:A,prev:_},r(),y=null,z>k&&(k=z)}function l(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},_={type:Ia,syntax:t.syntax,token:_.token,prev:_}}function c(){_.type===Ia?_=_.prev:_={type:Ad,syntax:p.syntax,token:_.token,prev:_},p=p.prev}let p=null,f=null,m=null,y=null,C=0,P=null,A=null,z=-1,k=0,_={type:E0,syntax:null,token:null,prev:null};for(r();P===null&&++C<Np;)switch(t.type){case"Match":if(f===null){if(A!==null&&(z!==e.length-1||A.value!=="\\0"&&A.value!=="\\9")){t=J;break}P=Lp;break}if(t=f.nextState,t===nl)if(f.matchStack===_){t=J;break}else t=H;for(;f.syntaxStack!==p;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||z>m.tokenIndex)&&(m=y,y=!1);else if(m===null){P=A0;break}t=m.nextState,f=m.thenStack,p=m.syntaxStack,_=m.matchStack,z=m.tokenIndex,A=z<e.length?e[z]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==J&&a(t.else),t.then!==H&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{let F=t.syntax.terms;if(t.index===F.length){if(t.mask===0||t.syntax.all){t=J;break}t=H;break}if(t.mask===(1<<F.length)-1){t=H;break}for(;t.index<F.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=F[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(A!==null){let F=A.value.toLowerCase();if(F.indexOf("\\")!==-1&&(F=F.replace(/\\[09].*$/,"")),Rp.call(t.map,F)){t=t.map[F];break}}t=J;break;case"Generic":{let F=p!==null?p.opts:null,h=z+Math.floor(t.fn(A,o,F));if(!isNaN(h)&&h>z){for(;z<h;)u();t=H}else t=J;break}case"Type":case"Property":{let F=t.type==="Type"?"types":"properties",h=Rp.call(n,F)?n[F][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=J;break}l(),t=h.match;break}case"Keyword":{let F=t.name;if(A!==null){let h=A.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),ya(h,F)){u(),t=H;break}}t=J;break}case"AtKeyword":case"Function":if(A!==null&&ya(A.value,t.name)){u(),t=H;break}t=J;break;case"Token":if(A!==null&&A.value===t.value){u(),t=H;break}t=J;break;case"Comma":A!==null&&A.type===18?Mp(_.token)?t=J:(u(),t=$p(A)?J:H):t=Mp(_.token)||$p(A)?H:J;break;case"String":let G="",R=z;for(;R<e.length&&G.length<t.value.length;R++)G+=e[R].value;if(ya(G,t.value)){for(;z<R;)u();t=H}else t=J;break;default:throw new Error("Unknown node type: "+t.type)}switch(O0+=C,P){case null:console.warn("[csstree-match] BREAK after "+Np+" iterations"),P=T0,_=null;break;case Lp:for(;p!==null;)c();break;default:_=null}return{tokens:e,reason:P,iterations:C,match:_,longestMatch:k}}function zp(e,t,n){let r=B0(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=P0(o).prev;o!==null;){switch(o.type){case Ia:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case Ad: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 Od(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 j0(e,t){return ol(this,e,n=>n.type==="Type"&&n.name===t)}function R0(e,t){return ol(this,e,n=>n.type==="Property"&&n.name===t)}function L0(e){return ol(this,e,t=>t.type==="Keyword")}function ol(e,t,n){let r=Od.call(e,t);return r===null?!1:r.some(n)}function Pd(e){return"node"in e?e.node:Pd(e.match[0])}function Id(e){return"node"in e?e.node:Id(e.match[e.match.length-1])}function Wp(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let u=Pd(a),l=Id(a);e.syntax.walk(t,function(c,p,f){if(c===u){let m=new oe;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 ba(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Up(e){return!!e&&ba(e.offset)&&ba(e.line)&&ba(e.column)}function N0(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(zr.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(!Up(n.loc.start))o+=".start";else if(!Up(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 oe)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)zr.call(t,o)&&zr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function M0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(zr.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:N0(e,r)}}function $0(e){let t={};if(e.node){for(let n in e.node)if(zr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=M0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Ba(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:ri(e[o].syntax,{compact:t}));return r}function W0(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:ri(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Ba(i.descriptors,t,n)};return r}function U0(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function Ue(e,t,n){return{matched:e,iterations:n,error:t,...Td}}function Pn(e,t,n,r){let o=x0(n,e.syntax),i;return U0(o)?Ue(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=zp(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=zp(o,t.match,e),!i.match)?Ue(null,new ww(i.reason,t.syntax,n,i),i.iterations):Ue(i.match,null,i.iterations))}function Da(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Gp(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 ja(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?Da(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?Da(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]=Da(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],...Gp(o,["parse"])};break;case"node":n[r]={...e[r],...Gp(o,["name","structure","parse","generate","walkContext"])};break}return n}function Bd(e){let t=ew(e),n=mw(e),r=cw(e),{fromPlainObject:o,toPlainObject:i}=pw(n),s={lexer:null,createLexer:a=>new Vp(a,s,s.lexer.structure),tokenize:ti,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let u=ja({},e);return Bd(typeof a=="function"?a(u,Object.assign):ja(u,a))}};return s.lexer=new Vp({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function Vo(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===Xe||r===ke)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)se(this.charCodeAt(n))||this.error("Integer is expected",n)}function In(e){return Vo.call(this,0,e)}function _t(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Uo:n="N is expected";break;case ke:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function wa(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(Xe,e)||this.isDelim(ke,e)){t=this.isDelim(Xe,e)?Xe:ke;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),In.call(this,qt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Xe&&n!==ke&&this.error("Number sign is expected")),In.call(this,t!==0),t===ke?"-"+this.consume(10):this.consume(10)}function Rd(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)In.call(this,q0),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,ke))switch(t="-1",_t.call(this,1,Uo),this.tokenEnd-this.tokenStart){case 2:this.next(),n=wa.call(this);break;case 3:_t.call(this,2,ke),this.next(),this.skipSC(),In.call(this,qt),n="-"+this.consume(10);break;default:_t.call(this,2,ke),Vo.call(this,3,qt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(Xe)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(Xe)&&(r=1,this.next()),_t.call(this,0,Uo),this.tokenEnd-this.tokenStart){case 1:this.next(),n=wa.call(this);break;case 2:_t.call(this,1,ke),this.next(),this.skipSC(),In.call(this,qt),n="-"+this.consume(10);break;default:_t.call(this,1,ke),Vo.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===Xe||r===ke,i=this.tokenStart+o;for(;i<this.tokenEnd&&se(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),_t.call(this,i-this.tokenStart,Uo),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=wa.call(this)):(_t.call(this,i-this.tokenStart+1,ke),i+2===this.tokenEnd?(this.next(),this.skipSC(),In.call(this,qt),n="-"+this.consume(10)):(Vo.call(this,i-this.tokenStart+2,qt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Xe&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Xe&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function Z0(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 qp(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function K0(){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 Nd(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),qp):o=qp.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(K0.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function ev(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function $d(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 ov(e){this.children(e)}function lv(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(Wd)?(t=!0,this.next()):this.isDelim(Ra)||this.eat(1),this.isDelim(Ra)?this.charCodeAt(this.tokenStart+1)!==Go?(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 uv(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Go&&t!==av&&t!==sv&&t!==iv&&t!==Wd&&t!==Ra&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Go&&(this.isDelim(Go)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function Ud(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=lv.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=uv.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 dv(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 Gd(e){return this.Raw(e,null,!0)}function Hp(){return this.parseWithFallback(this.Rule,Gd)}function Jp(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function mv(){if(this.tokenType===17)return Jp.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Jp);return this.tokenType===17&&this.next(),e}function qd(e){let t=e?mv:Hp,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),Gd));break;default:e&&this.isDelim(fv)?r.push(Hp.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function bv(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function Jd(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 vv(e){this.token(9,"["),this.children(e),this.token(9,"]")}function Kd(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Cv(){this.token(15,"-->")}function Xd(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Ev(){this.token(14,"<!--")}function ef(){return this.eatDelim(Sv),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Ov(e){this.token(9,"."),this.token(1,e.name)}function nf(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Iv:case Pv:case Bv:this.next();break;case Zp:this.next(),this.eatIdent("deep"),this.eatDelim(Zp);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Lv(e){this.tokenize(e.name)}function of(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Nv&&this.charCodeAt(t-1)===Mv&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Wv(e){this.token(25,"/*"+e.value+"*/")}function Jv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Zv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Kv(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(af)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function lf(){let e=this.tokenStart,t=this.tokenIndex,n=tk.call(this),r=Ja(n),o=r?this.parseCustomProperty:this.parseValue,i=r?Zv:Jv,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(Kv,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(af)&&(s=nk.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 ek(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 tk(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case qv:case Vv:case Hv:case Uv:case Gv:this.next();break;case Kp:this.next(),this.isDelim(Kp)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function nk(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function va(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function cf(){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),va));break;default:this.isDelim(rk)?e.push(this.parseWithFallback(this.Rule,va)):e.push(this.parseWithFallback(this.Declaration,va))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function sk(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function df(){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 uk(e){this.token(12,e.value+e.unit)}function mf(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 fk(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function gf(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function yk(e){this.token(4,"#"+e.value)}function bf(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function wk(e){this.token(1,e.name)}function wf(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function xk(e){this.token(9,"#"+e.name)}function kf(){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 _k(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function Cf(){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 Ak(e){this.children(e)}function _f(){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 Pk(e){this.children(e,()=>this.token(18,","))}function Sf(){let e=this.tokenStart;return this.eatDelim(Ik),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Rk(){this.token(9,"&")}function Tf(){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 Mk(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Pf(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Wk(e){this.token(10,e.value)}function Bf(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Gk(e){this.tokenize(e.value)}function Rf(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 Jk(e){this.token(21,"("),this.children(e),this.token(22,")")}function Nf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Yk(e){this.token(11,e.value+"%")}function $f(){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 tx(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Wf(){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 ix(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 Yp(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!se(n)&&n!==ax&&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 Vf(){let e=this.tokenStart,t=Yp.call(this),n;return this.skipSC(),this.eatDelim(sx),n=Yp.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function cx(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function px(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function qf(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=px.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function mx(e){this.tokenize(e.value)}function Xp(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function hx(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function Jf(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(hx,Xp):n=Xp.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Dx(e){this.node(e.prelude),this.node(e.block)}function Kf(){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 kx(e){this.children(e)}function Xf(){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 _x(e){this.children(e,()=>this.token(18,","))}function sl(e){let t=e.length,n=e.charCodeAt(0),r=n===em||n===tm?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===La){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),Ve(La,a)){let u=s-1,l=Jt(e,u);s=l-1,i+=Ga(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function nm(e,t){let n=t?"'":'"',r=t?tm:em,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===La?(o+="\\"+e.charAt(s),i=!1):(i&&(St(a)||Ht(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function rm(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:sl(this.consume(5))}}function Tx(e){this.token(5,nm(e.value))}function Qp(e){return this.Raw(e,null,!1)}function im(){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)!==Ox){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,Qp);break;default:n=this.parseWithFallback(this.Rule,Qp)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function jx(e){this.children(e)}function ka(){this.tokenType!==1&&this.isDelim(Rx)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function am(){let e=this.tokenStart;return this.isDelim(ed)?(this.next(),ka.call(this)):(ka.call(this),this.isDelim(ed)&&(this.next(),ka.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Mx(e){this.tokenize(e.name)}function Mr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===cm&&t&&n!==0)return Mr.call(this,e+n+1,!1),-1;St(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 Mo(e){let t=0;for(;this.isDelim(Na);)++t>e&&this.error("Too many question marks"),this.next()}function $x(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===um?"Plus sign":"Hyphen minus")+" is expected")}function zx(){let e=0;switch(this.tokenType){case 10:if(e=Mr.call(this,1,!0),this.isDelim(Na)){Mo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){$x.call(this,cm),Mr.call(this,1,!1);break}break;case 12:e=Mr.call(this,1,!0),e>0&&Mo.call(this,6-e);break;default:if(this.eatDelim(um),this.tokenType===1){e=Mr.call(this,0,!0),e>0&&Mo.call(this,6-e);break}if(this.isDelim(Na)){this.next(),Mo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function pm(){let e=this.tokenStart;return this.eatIdent("u"),zx.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Vx(e){this.tokenize(e.value)}function mm(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===fm?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===Ma){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),Ve(Ma,s)){let a=i-1,u=Jt(e,a);i=u-1,o+=Ga(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function hm(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===qx||o===Ma||o===Hx||o===Jx||o===Zx||o===fm?(t+="\\"+e.charAt(r),n=!1):(n&&St(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function gm(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=mm(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=sl(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 Xx(e){this.token(7,hm(e.value))}function bm(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function t1(e){this.children(e)}function wm(){return this.eat(13),n1}function i1(e){this.token(13,e.value)}function km(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,p1)&&this.cmpChar(this.tokenStart+1,td)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===c1||t===l1||t===td||t===u1)return this.Operator();t===a1&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function v1(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function k1(){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)===nd&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case g1:case b1:case w1:case y1:return this.Combinator();case nd:return this.ClassSelector();case h1:case D1:return this.TypeSelector();case f1:return this.IdSelector();case m1:return this.NestingSelector()}break}}}function C1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function F1(){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 rd(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function P1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function I1(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):xm.call(this)}function xm(){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(P1,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(I1,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function z1(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===id){if(r===t)break;if(o=e.charCodeAt(++r),Ve(id,o)){let i=r-1,s=Jt(e,i);r=s-1,n+=Ga(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function W1(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}Ua(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var eD,$a,tD,nD,rD,oD,Nn,I,iD,sD,aD,lD,za,uD,cD,pD,dD,fD,mD,hD,gD,yD,bD,DD,wD,vD,kD,xD,CD,FD,_D,ED,SD,AD,TD,OD,PD,ID,BD,jD,RD,LD,ND,Ca,UD,Wo,ad,Va,ld,ud,cp,GD,pp,qD,Ae,Ft,HD,JD,An,oe,ua,fp,mp,yp,KD,YD,ca,bp,Dp,tw,wp,_a,rw,ow,da,cd,iw,sw,dd,aw,qa,jr,Fp,Br,ww,Lo,Tn,Zo,fa,_p,md,Ur,Ye,ma,On,xw,Fw,hd,gd,_w,Aw,Za,$w,zw,Aa,Vw,Gw,qw,Hw,Jw,Zw,Kw,Yw,Xw,Qw,e0,t0,n0,r0,o0,i0,s0,a0,l0,u0,kd,Ka,Ep,Ko,xd,c0,Cd,Ya,Xa,Sp,Qa,Fd,Ta,p0,ii,el,Yo,Ap,Tp,Op,Vr,Pp,Nr,v0,H,J,nl,C0,F0,Rp,E0,S0,Ia,Ad,Lp,A0,T0,Np,O0,Td,zr,z0,Vp,V0,G0,il,jd,Xe,ke,Uo,qt,q0,H0,J0,Ld,Y0,X0,Q0,Md,tv,nv,rv,zd,iv,Wd,Go,sv,Ra,av,cv,pv,Vd,fv,hv,gv,yv,Hd,Dv,wv,Zd,kv,xv,Yd,Fv,_v,Qd,Sv,Av,Tv,tf,Pv,Zp,Iv,Bv,jv,Rv,rf,Nv,Mv,$v,zv,sf,af,Uv,Vv,Gv,qv,Hv,Kp,Yv,Xv,Qv,uf,rk,ok,ik,pf,ak,lk,ff,ck,pk,dk,hf,mk,hk,gk,yf,bk,Dk,Df,vk,kk,vf,Ck,Fk,xf,Ek,Sk,Ff,Tk,Ok,Ef,Ik,Bk,jk,Af,Lk,Nk,Of,$k,zk,If,Uk,Vk,jf,qk,Hk,Lf,Zk,Kk,Mf,Xk,Qk,ex,zf,nx,rx,ox,Uf,sx,ax,lx,ux,Gf,dx,fx,Hf,gx,yx,bx,Zf,wx,vx,Yf,xx,Cx,Fx,Qf,Ex,La,em,tm,Sx,Ax,om,Ox,Px,Ix,Bx,sm,Rx,ed,Lx,Nx,lm,um,cm,Na,Wx,Ux,dm,Gx,qx,Ma,Hx,Jx,Zx,fm,Kx,Yx,ym,Qx,e1,Dm,n1,r1,o1,s1,vm,a1,l1,td,u1,c1,p1,d1,f1,m1,h1,g1,y1,nd,b1,D1,w1,x1,_1,E1,S1,A1,T1,O1,B1,j1,Gt,xa,od,$o,R1,Cm,L1,N1,M1,$1,id,gA,Fm,_m,yA,bA,Em,DA,wA,vA,kA,xA,CA,Sm=T(()=>{"use strict";eD=Object.create,$a=Object.defineProperty,tD=Object.getOwnPropertyDescriptor,nD=Object.getOwnPropertyNames,rD=Object.getPrototypeOf,oD=Object.prototype.hasOwnProperty,Nn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),I=(e,t)=>{for(var n in t)$a(e,n,{get:t[n],enumerable:!0})},iD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nD(t))!oD.call(e,o)&&o!==n&&$a(e,o,{get:()=>t[o],enumerable:!(r=tD(t,o))||r.enumerable});return e},sD=(e,t,n)=>(n=e!=null?eD(rD(e)):{},iD(t||!e||!e.__esModule?$a(n,"default",{value:e,enumerable:!0}):n,e)),aD=Nn(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}}),lD=Nn(e=>{var t=aD(),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,C;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(C=t.decode(u.charCodeAt(l++)),C===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(C&i),C&=o,f=f+(C<<m),m+=n}while(y);c.value=a(f),c.rest=l}}),za=Nn(e=>{function t(h,g,B){if(g in h)return h[g];if(arguments.length===3)return B;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(B){for(var v=0;v<g.length;v++)if(g[v].input===B){var ie=g[0];return g[0]=g[v],g[v]=ie,g[0].result}var je=h(B);return g.unshift({input:B,result:je}),g.length>s&&g.pop(),je}}var u=a(function(h){var g=h,B=o(h);if(B){if(!B.path)return h;g=B.path}for(var v=e.isAbsolute(g),ie=[],je=0,M=0;;)if(je=M,M=g.indexOf("/",je),M===-1){ie.push(g.slice(je));break}else for(ie.push(g.slice(je,M));M<g.length&&g[M]==="/";)M++;for(var X,ht=0,M=ie.length-1;M>=0;M--)X=ie[M],X==="."?ie.splice(M,1):X===".."?ht++:ht>0&&(X===""?(ie.splice(M+1,ht),ht=0):(ie.splice(M,2),ht--));return g=ie.join("/"),g===""&&(g=v?"/":"."),B?(B.path=g,i(B)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var B=o(g),v=o(h);if(v&&(h=v.path||"/"),B&&!B.scheme)return v&&(B.scheme=v.scheme),i(B);if(B||g.match(r))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var ie=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=ie,i(v)):ie}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 B=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++B}return Array(B+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 C(h)?"$"+h:h}e.toSetString=p?f:m;function y(h){return C(h)?h.slice(1):h}e.fromSetString=p?f:y;function C(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 B=g-10;B>=0;B--)if(h.charCodeAt(B)!==36)return!1;return!0}function P(h,g,B){var v=_(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||B)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:_(h.name,g.name)}e.compareByOriginalPositions=P;function A(h,g,B){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||B)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:_(h.name,g.name)}e.compareByOriginalPositionsNoSource=A;function z(h,g,B){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||B)||(v=_(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:_(h.name,g.name)}e.compareByGeneratedPositionsDeflated=z;function k(h,g,B){var v=h.generatedColumn-g.generatedColumn;return v!==0||B||(v=_(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:_(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=k;function _(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function G(h,g){var B=h.generatedLine-g.generatedLine;return B!==0||(B=h.generatedColumn-g.generatedColumn,B!==0)||(B=_(h.source,g.source),B!==0)||(B=h.originalLine-g.originalLine,B!==0)||(B=h.originalColumn-g.originalColumn,B!==0)?B:_(h.name,g.name)}e.compareByGeneratedPositionsInflated=G;function R(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=R;function F(h,g,B){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),B){var v=o(B);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var ie=v.path.lastIndexOf("/");ie>=0&&(v.path=v.path.substring(0,ie+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=F}),uD=Nn(e=>{var t=za(),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}),cD=Nn(e=>{var t=za();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}),pD=Nn(e=>{var t=lD(),n=za(),r=uD().ArraySet,o=cD().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 C=m.source;C!=null&&!p.has(C)&&p.add(C);var P=m.name;P!=null&&!f.has(P)&&f.add(P)},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,C,P,A=this._mappings.toArray(),z=0,k=A.length;z<k;z++){if(y=A[z],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(z>0){if(!n.compareByGeneratedPositionsInflated(y,A[z-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(P=this._sources.indexOf(y.source),m+=t.encode(P-p),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&&(C=this._names.indexOf(y.name),m+=t.encode(C-c),c=C)),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}),dD={};I(dD,{AtKeyword:()=>gD,BadString:()=>DD,BadUrl:()=>vD,CDC:()=>SD,CDO:()=>ED,Colon:()=>AD,Comma:()=>OD,Comment:()=>ND,Delim:()=>kD,Dimension:()=>FD,EOF:()=>fD,Function:()=>hD,Hash:()=>yD,Ident:()=>mD,LeftCurlyBracket:()=>RD,LeftParenthesis:()=>BD,LeftSquareBracket:()=>PD,Number:()=>xD,Percentage:()=>CD,RightCurlyBracket:()=>LD,RightParenthesis:()=>jD,RightSquareBracket:()=>ID,Semicolon:()=>TD,String:()=>bD,Url:()=>wD,WhiteSpace:()=>_D});fD=0,mD=1,hD=2,gD=3,yD=4,bD=5,DD=6,wD=7,vD=8,kD=9,xD=10,CD=11,FD=12,_D=13,ED=14,SD=15,AD=16,TD=17,OD=18,PD=19,ID=20,BD=21,jD=22,RD=23,LD=24,ND=25;Ca=new Array(128),UD=128,Wo=130,ad=131,Va=132,ld=133;for(let e=0;e<Ca.length;e++)Ca[e]=Ht(e)&&Wo||se(e)&&ad||qo(e)&&Va||WD(e)&&ld||e||UD;ud=["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"];cp=10,GD=12,pp=13;qD=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||dp(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||dp(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]}}}},Ae=16777215,Ft=24,HD=new Map([[2,22],[21,22],[19,20],[23,24]]),JD=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=Jo(this.offsetAndType,e.length+1),o=Jo(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&Ae;for(a=o[f],s=a>>Ft,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=HD.get(l),a=s<<Ft|i;break}r[i++]=l<<Ft|p,u===-1&&(u=c)}),r[i]=0<<Ft|n,o[i]=n,o[n]=n;a!==0;){let l=a&Ae;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]>>Ft:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Ae:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Wr(this.source,this.offsetAndType[e-1]&Ae,this.offsetAndType[e]&Ae,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Ae:this.offsetAndType[this.tokenCount]&Ae: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]&Ae,t=this.offsetAndType[t],this.tokenType=t>>Ft,this.tokenEnd=t&Ae):(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>>Ft,this.tokenEnd=e&Ae):(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]&Ae: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&Ae,s=o>>Ft;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:ud[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};An=null,oe=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return oe.createItem(e)}allocateCursor(e,t){let n;return An!==null?(n=An,An=An.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=An,An=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=oe.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 oe;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 oe;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 oe;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(oe.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(oe.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(oe.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(oe.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(oe.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)}};ua=100,fp=60,mp=" ";yp=()=>{},KD=33,YD=35,ca=59,bp=123,Dp=0;tw=sD(pD(),1),wp=new Set(["Atrule","Selector","Declaration"]);_a={};I(_a,{safe:()=>dd,spec:()=>sw});rw=43,ow=45,da=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},cd=[[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],["/","*"]],iw=cd.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,"-"]]);sw=pd(cd),dd=pd(iw),aw=92;({hasOwnProperty:qa}=Object.prototype),jr=function(){};Fp={offset:0,line:1,column:1};Br=function(e,t){let n=ni("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},ww=function(e,t,n,r){let o=ni("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=Dw(r,n);return o.rawMessage=e,o.syntax=t?ri(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
48
43
  syntax: `+o.syntax+`
49
44
  value: `+(i||"<empty string>")+`
50
- --------`+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},fi=new Map,zn=new Map,Ei=45,Xa=Lv,Up=Mv;Pf=["initial","inherit","unset","revert","revert-layer"],so=43,rt=45,Qa=110,Un=!0,Nv=!1;Wv=43,If=45,Bf=63,zv=117;Gv=["calc(","-moz-calc(","-webkit-calc("],Bl=new Map([[2,22],[21,22],[19,20],[23,24]]);n1={"ident-token":K(1),"function-token":K(2),"at-keyword-token":K(3),"hash-token":K(4),"string-token":K(5),"bad-string-token":K(6),"url-token":K(7),"bad-url-token":K(8),"delim-token":K(9),"number-token":K(10),"percentage-token":K(11),"dimension-token":K(12),"whitespace-token":K(13),"CDO-token":K(14),"CDC-token":K(15),"colon-token":K(16),"semicolon-token":K(17),"comma-token":K(18),"[-token":K(19),"]-token":K(20),"(-token":K(21),")-token":K(22),"{-token":K(23),"}-token":K(24)},r1={string:K(5),ident:K(1),percentage:Be(Qv),zero:Mf(),number:Be(e1),integer:Be(t1),"custom-ident":Hv,"custom-property-name":Jv,"hex-color":Zv,"id-selector":Yv,"an-plus-b":$v,urange:Vv,"declaration-value":Kv,"any-value":Xv};ml={};B(ml,{angle:()=>a1,decibel:()=>p1,flex:()=>d1,frequency:()=>u1,length:()=>s1,resolution:()=>c1,semitones:()=>f1,time:()=>l1});s1=["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"],a1=["deg","grad","rad","turn"],l1=["s","ms"],u1=["hz","khz"],c1=["dpi","dpcm","dppx","x"],d1=["fr"],p1=["db"],f1=["st"],m1={};B(m1,{SyntaxError:()=>Nf,generate:()=>Ii,parse:()=>$l,walk:()=>Gf});h1=9,g1=10,y1=12,b1=13,D1=32,w1=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!==b1&&t!==g1&&t!==y1&&t!==D1&&t!==h1)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 Nf(e,this.str,this.pos)}},v1=9,k1=10,x1=12,C1=13,E1=32,$f=33,Rl=35,Vp=38,_i=39,Wf=40,_1=41,zf=42,jl=43,Ll=44,Gp=45,Ml=60,Uf=62,hl=63,F1=64,Ri=91,Nl=93,Fi=123,qp=124,Hp=125,Jp=8734,ao=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Zp={" ":1,"&&":2,"||":3,"|":4};to=function(){};L1={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}}}};H={type:"Match"},J={type:"Mismatch"},Wl={type:"DisallowEmpty"},$1=40,W1=41;({hasOwnProperty:Qp}=Object.prototype),U1=0,V1=1,bl=2,Hf=3,ef="Match",G1="Mismatch",q1="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",tf=15e3,H1=0;Jf={};B(Jf,{getTrace:()=>Zf,isKeyword:()=>Q1,isProperty:()=>X1,isType:()=>K1});({hasOwnProperty:oo}=Object.prototype);rk=yl(Pf.join(" | "));lf=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=rk,this.syntax=t,this.generic=!1,this.units={...ml},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||nk(e),e){if(e.units)for(let r of Object.keys(ml))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(i1(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=yl(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:$l(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:yl(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 Kr("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&&!Vn(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=Xa(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 Kr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Kr("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Ze(null,n);let r=this.getAtrule(e);return r.prelude?Vn(this,r.prelude,t||"",!1):Ze(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Ze(null,r);let o=this.getAtrule(e),i=Xa(t);return Vn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?Ze(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Up(e).custom)return Ze(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?Ze(null,n):Vn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Vn(this,n,t,!1):Ze(null,new Kr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?Ze(null,new Kr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Vn(this,e,t,!1))}findValueFragments(e,t,n,r){return sf(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return sf(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=Xa(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=Up(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&&Gf(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:Dl(this.types,!t,e),properties:Dl(this.properties,!t,e),atrules:ok(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};sk=e=>Xf(wl({},e)),ak={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}}},Vl={};B(Vl,{AnPlusB:()=>Qf,Atrule:()=>tm,AtrulePrelude:()=>rm,AttributeSelector:()=>im,Block:()=>lm,Brackets:()=>dm,CDC:()=>fm,CDO:()=>hm,ClassSelector:()=>ym,Combinator:()=>Dm,Comment:()=>vm,Declaration:()=>xm,DeclarationList:()=>_m,Dimension:()=>Sm,Function:()=>Am,Hash:()=>Pm,IdSelector:()=>jm,Identifier:()=>Bm,MediaFeature:()=>Mm,MediaQuery:()=>$m,MediaQueryList:()=>zm,NestingSelector:()=>Vm,Nth:()=>qm,Number:()=>Jm,Operator:()=>Ym,Parentheses:()=>Xm,Percentage:()=>eh,PseudoClassSelector:()=>nh,PseudoElementSelector:()=>oh,Ratio:()=>sh,Raw:()=>lh,Rule:()=>ch,Selector:()=>ph,SelectorList:()=>mh,String:()=>gh,StyleSheet:()=>vh,TypeSelector:()=>xh,UnicodeRange:()=>Eh,Url:()=>Th,Value:()=>Bh,WhiteSpace:()=>jh});Qf={};B(Qf,{generate:()=>dk,name:()=>uk,parse:()=>em,structure:()=>ck});ot=43,Ee=45,Di=110,nn=!0,lk=!1;uk="AnPlusB",ck={a:[String,null],b:[String,null]};tm={};B(tm,{generate:()=>gk,name:()=>fk,parse:()=>nm,structure:()=>hk,walkContext:()=>mk});fk="Atrule",mk="atrule",hk={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};rm={};B(rm,{generate:()=>wk,name:()=>yk,parse:()=>om,structure:()=>Dk,walkContext:()=>bk});yk="AtrulePrelude",bk="atrulePrelude",Dk={children:[[]]};im={};B(im,{generate:()=>Sk,name:()=>_k,parse:()=>am,structure:()=>Fk});vk=36,sm=42,vi=61,kk=94,vl=124,xk=126;_k="AttributeSelector",Fk={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};lm={};B(lm,{generate:()=>Bk,name:()=>Ok,parse:()=>cm,structure:()=>Ik,walkContext:()=>Pk});Tk=38;Ok="Block",Pk="block",Ik={children:[["Atrule","Rule","Declaration"]]};dm={};B(dm,{generate:()=>Lk,name:()=>Rk,parse:()=>pm,structure:()=>jk});Rk="Brackets",jk={children:[[]]};fm={};B(fm,{generate:()=>$k,name:()=>Mk,parse:()=>mm,structure:()=>Nk});Mk="CDC",Nk=[];hm={};B(hm,{generate:()=>Uk,name:()=>Wk,parse:()=>gm,structure:()=>zk});Wk="CDO",zk=[];ym={};B(ym,{generate:()=>Hk,name:()=>Gk,parse:()=>bm,structure:()=>qk});Vk=46,Gk="ClassSelector",qk={name:String};Dm={};B(Dm,{generate:()=>Qk,name:()=>Kk,parse:()=>wm,structure:()=>Xk});Jk=43,ff=47,Zk=62,Yk=126,Kk="Combinator",Xk={name:String};vm={};B(vm,{generate:()=>ox,name:()=>nx,parse:()=>km,structure:()=>rx});ex=42,tx=47,nx="Comment",rx={value:String};xm={};B(xm,{generate:()=>gx,name:()=>fx,parse:()=>Em,structure:()=>hx,walkContext:()=>mx});Cm=33,ix=35,sx=36,ax=38,lx=42,ux=43,mf=47;fx="Declaration",mx="declaration",hx={important:[Boolean,String],property:String,value:["Value","Raw"]};_m={};B(_m,{generate:()=>kx,name:()=>wx,parse:()=>Fm,structure:()=>vx});Dx=38;wx="DeclarationList",vx={children:[["Declaration","Atrule","Rule"]]};Sm={};B(Sm,{generate:()=>Ex,name:()=>xx,parse:()=>Tm,structure:()=>Cx});xx="Dimension",Cx={value:String,unit:String};Am={};B(Am,{generate:()=>Tx,name:()=>_x,parse:()=>Om,structure:()=>Sx,walkContext:()=>Fx});_x="Function",Fx="function",Sx={name:String,children:[[]]};Pm={};B(Pm,{generate:()=>Ix,name:()=>Ox,parse:()=>Im,structure:()=>Px,xxx:()=>Ax});Ax="XXX",Ox="Hash",Px={value:String};Bm={};B(Bm,{generate:()=>jx,name:()=>Bx,parse:()=>Rm,structure:()=>Rx});Bx="Identifier",Rx={name:String};jm={};B(jm,{generate:()=>Nx,name:()=>Lx,parse:()=>Lm,structure:()=>Mx});Lx="IdSelector",Mx={name:String};Mm={};B(Mm,{generate:()=>zx,name:()=>$x,parse:()=>Nm,structure:()=>Wx});$x="MediaFeature",Wx={name:String,value:["Identifier","Number","Dimension","Ratio",null]};$m={};B($m,{generate:()=>Gx,name:()=>Ux,parse:()=>Wm,structure:()=>Vx});Ux="MediaQuery",Vx={children:[["Identifier","MediaFeature","WhiteSpace"]]};zm={};B(zm,{generate:()=>Jx,name:()=>qx,parse:()=>Um,structure:()=>Hx});qx="MediaQueryList",Hx={children:[["MediaQuery"]]};Vm={};B(Vm,{generate:()=>Xx,name:()=>Yx,parse:()=>Gm,structure:()=>Kx});Zx=38,Yx="NestingSelector",Kx={};qm={};B(qm,{generate:()=>t2,name:()=>Qx,parse:()=>Hm,structure:()=>e2});Qx="Nth",e2={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};Jm={};B(Jm,{generate:()=>o2,name:()=>n2,parse:()=>Zm,structure:()=>r2});n2="Number",r2={value:String};Ym={};B(Ym,{generate:()=>a2,name:()=>i2,parse:()=>Km,structure:()=>s2});i2="Operator",s2={value:String};Xm={};B(Xm,{generate:()=>c2,name:()=>l2,parse:()=>Qm,structure:()=>u2});l2="Parentheses",u2={children:[[]]};eh={};B(eh,{generate:()=>f2,name:()=>d2,parse:()=>th,structure:()=>p2});d2="Percentage",p2={value:String};nh={};B(nh,{generate:()=>y2,name:()=>m2,parse:()=>rh,structure:()=>g2,walkContext:()=>h2});m2="PseudoClassSelector",h2="function",g2={name:String,children:[["Raw"],null]};oh={};B(oh,{generate:()=>v2,name:()=>b2,parse:()=>ih,structure:()=>w2,walkContext:()=>D2});b2="PseudoElementSelector",D2="function",w2={name:String,children:[["Raw"],null]};sh={};B(sh,{generate:()=>_2,name:()=>C2,parse:()=>ah,structure:()=>E2});k2=47,x2=46;C2="Ratio",E2={left:String,right:String};lh={};B(lh,{generate:()=>A2,name:()=>S2,parse:()=>uh,structure:()=>T2});S2="Raw",T2={value:String};ch={};B(ch,{generate:()=>R2,name:()=>P2,parse:()=>dh,structure:()=>B2,walkContext:()=>I2});P2="Rule",I2="rule",B2={prelude:["SelectorList","Raw"],block:["Block"]};ph={};B(ph,{generate:()=>M2,name:()=>j2,parse:()=>fh,structure:()=>L2});j2="Selector",L2={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};mh={};B(mh,{generate:()=>z2,name:()=>N2,parse:()=>hh,structure:()=>W2,walkContext:()=>$2});N2="SelectorList",$2="selector",W2={children:[["Selector","Raw"]]};gh={};B(gh,{generate:()=>q2,name:()=>V2,parse:()=>wh,structure:()=>G2});U2={};B(U2,{decode:()=>Gl,encode:()=>Dh});kl=92,yh=34,bh=39;V2="String",G2={value:String};vh={};B(vh,{generate:()=>K2,name:()=>J2,parse:()=>kh,structure:()=>Y2,walkContext:()=>Z2});H2=33;J2="StyleSheet",Z2="stylesheet",Y2={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};xh={};B(xh,{generate:()=>tC,name:()=>Q2,parse:()=>Ch,structure:()=>eC});X2=42,bf=124;Q2="TypeSelector",eC={name:String};Eh={};B(Eh,{generate:()=>sC,name:()=>oC,parse:()=>Sh,structure:()=>iC});_h=43,Fh=45,xl=63;oC="UnicodeRange",iC={value:String};Th={};B(Th,{generate:()=>mC,name:()=>pC,parse:()=>Ih,structure:()=>fC});aC={};B(aC,{decode:()=>Oh,encode:()=>Ph});lC=32,Cl=92,uC=34,cC=39,dC=40,Ah=41;pC="Url",fC={value:String};Bh={};B(Bh,{generate:()=>yC,name:()=>hC,parse:()=>Rh,structure:()=>gC});hC="Value",gC={children:[[]]};jh={};B(jh,{generate:()=>vC,name:()=>DC,parse:()=>Lh,structure:()=>wC});bC=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),DC="WhiteSpace",wC={value:String};kC={generic:!0,...ak,node:Vl},Mh={};B(Mh,{AtrulePrelude:()=>SC,Selector:()=>NC,Value:()=>zC});xC=35,CC=42,Df=43,EC=45,_C=47,FC=117;SC={getNode:Nh},TC=35,AC=38,OC=42,PC=43,IC=47,wf=46,BC=62,RC=124,jC=126;NC={onWhiteSpace:LC,getNode:MC};zC={getNode:Nh,onWhiteSpace(e,t){vf(e)&&(e.value=" "+e.value),vf(t.last)&&(t.last.value+=" ")},expression:$C,var:WC},UC={parse:{prelude:null,block(){return this.Block(!0)}}},VC={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}},GC={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},qC={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},HC={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};YC={parse:{prelude(){let e=$h.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},KC={"font-face":UC,import:VC,media:GC,nest:qC,page:HC,supports:YC},tn={parse(){return this.createSingleNodeList(this.SelectorList())}},ll={parse(){return this.createSingleNodeList(this.Selector())}},kf={parse(){return this.createSingleNodeList(this.Identifier())}},gi={parse(){return this.createSingleNodeList(this.Nth())}},XC={dir:kf,has:tn,lang:kf,matches:tn,is:tn,"-moz-any":tn,"-webkit-any":tn,where:tn,not:tn,"nth-child":gi,"nth-last-child":gi,"nth-last-of-type":gi,"nth-of-type":gi,slotted:ll,host:ll,"host-context":ll},Wh={};B(Wh,{AnPlusB:()=>em,Atrule:()=>nm,AtrulePrelude:()=>om,AttributeSelector:()=>am,Block:()=>cm,Brackets:()=>pm,CDC:()=>mm,CDO:()=>gm,ClassSelector:()=>bm,Combinator:()=>wm,Comment:()=>km,Declaration:()=>Em,DeclarationList:()=>Fm,Dimension:()=>Tm,Function:()=>Om,Hash:()=>Im,IdSelector:()=>Lm,Identifier:()=>Rm,MediaFeature:()=>Nm,MediaQuery:()=>Wm,MediaQueryList:()=>Um,NestingSelector:()=>Gm,Nth:()=>Hm,Number:()=>Zm,Operator:()=>Km,Parentheses:()=>Qm,Percentage:()=>th,PseudoClassSelector:()=>rh,PseudoElementSelector:()=>ih,Ratio:()=>ah,Raw:()=>uh,Rule:()=>dh,Selector:()=>fh,SelectorList:()=>hh,String:()=>wh,StyleSheet:()=>kh,TypeSelector:()=>Ch,UnicodeRange:()=>Sh,Url:()=>Ih,Value:()=>Rh,WhiteSpace:()=>Lh});QC={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:Mh,atrule:KC,pseudo:XC,node:Wh},eE={node:Vl},tE=sk({...kC,...QC,...eE}),nE={};B(nE,{decode:()=>rE,encode:()=>oE});xf=92;({tokenize:SO,parse:zh,generate:Uh,lexer:TO,createLexer:AO,walk:Vh,find:OO,findLast:PO,findAll:IO,toPlainObject:BO,fromPlainObject:RO,fork:jO}=tE)});function sE(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 se().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 Jh(e){if(p.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return qh("");let t=$a(e?.css,!0);try{let n=zh(t);Vh(n,{enter:sE});let r=Hh.default.format([Uh(n),iE].join(`
45
+ --------`+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},Lo=new Map,Tn=new Map,Zo=45,fa=vw,_p=kw;md=["initial","inherit","unset","revert","revert-layer"],Ur=43,Ye=45,ma=110,On=!0,xw=!1;Fw=43,hd=45,gd=63,_w=117;Aw=["calc(","-moz-calc(","-webkit-calc("],Za=new Map([[2,22],[21,22],[19,20],[23,24]]);$w={"ident-token":Y(1),"function-token":Y(2),"at-keyword-token":Y(3),"hash-token":Y(4),"string-token":Y(5),"bad-string-token":Y(6),"url-token":Y(7),"bad-url-token":Y(8),"delim-token":Y(9),"number-token":Y(10),"percentage-token":Y(11),"dimension-token":Y(12),"whitespace-token":Y(13),"CDO-token":Y(14),"CDC-token":Y(15),"colon-token":Y(16),"semicolon-token":Y(17),"comma-token":Y(18),"[-token":Y(19),"]-token":Y(20),"(-token":Y(21),")-token":Y(22),"{-token":Y(23),"}-token":Y(24)},zw={string:Y(5),ident:Y(1),percentage:Te(Lw),zero:wd(),number:Te(Nw),integer:Te(Mw),"custom-ident":Ow,"custom-property-name":Pw,"hex-color":Iw,"id-selector":Bw,"an-plus-b":Cw,urange:Sw,"declaration-value":jw,"any-value":Rw};Aa={};I(Aa,{angle:()=>Gw,decibel:()=>Kw,flex:()=>Zw,frequency:()=>Hw,length:()=>Vw,resolution:()=>Jw,semitones:()=>Yw,time:()=>qw});Vw=["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"],Gw=["deg","grad","rad","turn"],qw=["s","ms"],Hw=["hz","khz"],Jw=["dpi","dpcm","dppx","x"],Zw=["fr"],Kw=["db"],Yw=["st"],Xw={};I(Xw,{SyntaxError:()=>vd,generate:()=>ri,parse:()=>tl,walk:()=>Ed});Qw=9,e0=10,t0=12,n0=13,r0=32,o0=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!==n0&&t!==e0&&t!==t0&&t!==r0&&t!==Qw)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 vd(e,this.str,this.pos)}},i0=9,s0=10,a0=12,l0=13,u0=32,kd=33,Ka=35,Ep=38,Ko=39,xd=40,c0=41,Cd=42,Ya=43,Xa=44,Sp=45,Qa=60,Fd=62,Ta=63,p0=64,ii=91,el=93,Yo=123,Ap=124,Tp=125,Op=8734,Vr=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Pp={" ":1,"&&":2,"||":3,"|":4};Nr=function(){};v0={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}}}};H={type:"Match"},J={type:"Mismatch"},nl={type:"DisallowEmpty"},C0=40,F0=41;({hasOwnProperty:Rp}=Object.prototype),E0=0,S0=1,Ia=2,Ad=3,Lp="Match",A0="Mismatch",T0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Np=15e3,O0=0;Td={};I(Td,{getTrace:()=>Od,isKeyword:()=>L0,isProperty:()=>R0,isType:()=>j0});({hasOwnProperty:zr}=Object.prototype);z0=Pa(md.join(" | "));Vp=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=z0,this.syntax=t,this.generic=!1,this.units={...Aa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||$0(e),e){if(e.units)for(let r of Object.keys(Aa))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(Uw(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=Pa(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:tl(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:Pa(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 Br("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&&!Pn(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=fa(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 Br("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Br("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Ue(null,n);let r=this.getAtrule(e);return r.prelude?Pn(this,r.prelude,t||"",!1):Ue(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Ue(null,r);let o=this.getAtrule(e),i=fa(t);return Pn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?Ue(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(_p(e).custom)return Ue(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?Ue(null,n):Pn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Pn(this,n,t,!1):Ue(null,new Br("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?Ue(null,new Br("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Pn(this,e,t,!1))}findValueFragments(e,t,n,r){return Wp(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Wp(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=fa(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=_p(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&&Ed(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:Ba(this.types,!t,e),properties:Ba(this.properties,!t,e),atrules:W0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};V0=e=>Bd(ja({},e)),G0={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}}},il={};I(il,{AnPlusB:()=>jd,Atrule:()=>Ld,AtrulePrelude:()=>Md,AttributeSelector:()=>zd,Block:()=>Vd,Brackets:()=>Hd,CDC:()=>Zd,CDO:()=>Yd,ClassSelector:()=>Qd,Combinator:()=>tf,Comment:()=>rf,Declaration:()=>sf,DeclarationList:()=>uf,Dimension:()=>pf,Function:()=>ff,Hash:()=>hf,IdSelector:()=>Df,Identifier:()=>yf,MediaFeature:()=>vf,MediaQuery:()=>xf,MediaQueryList:()=>Ff,NestingSelector:()=>Ef,Nth:()=>Af,Number:()=>Of,Operator:()=>If,Parentheses:()=>jf,Percentage:()=>Lf,PseudoClassSelector:()=>Mf,PseudoElementSelector:()=>zf,Ratio:()=>Uf,Raw:()=>Gf,Rule:()=>Hf,Selector:()=>Zf,SelectorList:()=>Yf,String:()=>Qf,StyleSheet:()=>om,TypeSelector:()=>sm,UnicodeRange:()=>lm,Url:()=>dm,Value:()=>ym,WhiteSpace:()=>Dm});jd={};I(jd,{generate:()=>Z0,name:()=>H0,parse:()=>Rd,structure:()=>J0});Xe=43,ke=45,Uo=110,qt=!0,q0=!1;H0="AnPlusB",J0={a:[String,null],b:[String,null]};Ld={};I(Ld,{generate:()=>ev,name:()=>Y0,parse:()=>Nd,structure:()=>Q0,walkContext:()=>X0});Y0="Atrule",X0="atrule",Q0={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Md={};I(Md,{generate:()=>ov,name:()=>tv,parse:()=>$d,structure:()=>rv,walkContext:()=>nv});tv="AtrulePrelude",nv="atrulePrelude",rv={children:[[]]};zd={};I(zd,{generate:()=>dv,name:()=>cv,parse:()=>Ud,structure:()=>pv});iv=36,Wd=42,Go=61,sv=94,Ra=124,av=126;cv="AttributeSelector",pv={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Vd={};I(Vd,{generate:()=>bv,name:()=>hv,parse:()=>qd,structure:()=>yv,walkContext:()=>gv});fv=38;hv="Block",gv="block",yv={children:[["Atrule","Rule","Declaration"]]};Hd={};I(Hd,{generate:()=>vv,name:()=>Dv,parse:()=>Jd,structure:()=>wv});Dv="Brackets",wv={children:[[]]};Zd={};I(Zd,{generate:()=>Cv,name:()=>kv,parse:()=>Kd,structure:()=>xv});kv="CDC",xv=[];Yd={};I(Yd,{generate:()=>Ev,name:()=>Fv,parse:()=>Xd,structure:()=>_v});Fv="CDO",_v=[];Qd={};I(Qd,{generate:()=>Ov,name:()=>Av,parse:()=>ef,structure:()=>Tv});Sv=46,Av="ClassSelector",Tv={name:String};tf={};I(tf,{generate:()=>Lv,name:()=>jv,parse:()=>nf,structure:()=>Rv});Pv=43,Zp=47,Iv=62,Bv=126,jv="Combinator",Rv={name:String};rf={};I(rf,{generate:()=>Wv,name:()=>$v,parse:()=>of,structure:()=>zv});Nv=42,Mv=47,$v="Comment",zv={value:String};sf={};I(sf,{generate:()=>ek,name:()=>Yv,parse:()=>lf,structure:()=>Qv,walkContext:()=>Xv});af=33,Uv=35,Vv=36,Gv=38,qv=42,Hv=43,Kp=47;Yv="Declaration",Xv="declaration",Qv={important:[Boolean,String],property:String,value:["Value","Raw"]};uf={};I(uf,{generate:()=>sk,name:()=>ok,parse:()=>cf,structure:()=>ik});rk=38;ok="DeclarationList",ik={children:[["Declaration","Atrule","Rule"]]};pf={};I(pf,{generate:()=>uk,name:()=>ak,parse:()=>df,structure:()=>lk});ak="Dimension",lk={value:String,unit:String};ff={};I(ff,{generate:()=>fk,name:()=>ck,parse:()=>mf,structure:()=>dk,walkContext:()=>pk});ck="Function",pk="function",dk={name:String,children:[[]]};hf={};I(hf,{generate:()=>yk,name:()=>hk,parse:()=>gf,structure:()=>gk,xxx:()=>mk});mk="XXX",hk="Hash",gk={value:String};yf={};I(yf,{generate:()=>wk,name:()=>bk,parse:()=>bf,structure:()=>Dk});bk="Identifier",Dk={name:String};Df={};I(Df,{generate:()=>xk,name:()=>vk,parse:()=>wf,structure:()=>kk});vk="IdSelector",kk={name:String};vf={};I(vf,{generate:()=>_k,name:()=>Ck,parse:()=>kf,structure:()=>Fk});Ck="MediaFeature",Fk={name:String,value:["Identifier","Number","Dimension","Ratio",null]};xf={};I(xf,{generate:()=>Ak,name:()=>Ek,parse:()=>Cf,structure:()=>Sk});Ek="MediaQuery",Sk={children:[["Identifier","MediaFeature","WhiteSpace"]]};Ff={};I(Ff,{generate:()=>Pk,name:()=>Tk,parse:()=>_f,structure:()=>Ok});Tk="MediaQueryList",Ok={children:[["MediaQuery"]]};Ef={};I(Ef,{generate:()=>Rk,name:()=>Bk,parse:()=>Sf,structure:()=>jk});Ik=38,Bk="NestingSelector",jk={};Af={};I(Af,{generate:()=>Mk,name:()=>Lk,parse:()=>Tf,structure:()=>Nk});Lk="Nth",Nk={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};Of={};I(Of,{generate:()=>Wk,name:()=>$k,parse:()=>Pf,structure:()=>zk});$k="Number",zk={value:String};If={};I(If,{generate:()=>Gk,name:()=>Uk,parse:()=>Bf,structure:()=>Vk});Uk="Operator",Vk={value:String};jf={};I(jf,{generate:()=>Jk,name:()=>qk,parse:()=>Rf,structure:()=>Hk});qk="Parentheses",Hk={children:[[]]};Lf={};I(Lf,{generate:()=>Yk,name:()=>Zk,parse:()=>Nf,structure:()=>Kk});Zk="Percentage",Kk={value:String};Mf={};I(Mf,{generate:()=>tx,name:()=>Xk,parse:()=>$f,structure:()=>ex,walkContext:()=>Qk});Xk="PseudoClassSelector",Qk="function",ex={name:String,children:[["Raw"],null]};zf={};I(zf,{generate:()=>ix,name:()=>nx,parse:()=>Wf,structure:()=>ox,walkContext:()=>rx});nx="PseudoElementSelector",rx="function",ox={name:String,children:[["Raw"],null]};Uf={};I(Uf,{generate:()=>cx,name:()=>lx,parse:()=>Vf,structure:()=>ux});sx=47,ax=46;lx="Ratio",ux={left:String,right:String};Gf={};I(Gf,{generate:()=>mx,name:()=>dx,parse:()=>qf,structure:()=>fx});dx="Raw",fx={value:String};Hf={};I(Hf,{generate:()=>Dx,name:()=>gx,parse:()=>Jf,structure:()=>bx,walkContext:()=>yx});gx="Rule",yx="rule",bx={prelude:["SelectorList","Raw"],block:["Block"]};Zf={};I(Zf,{generate:()=>kx,name:()=>wx,parse:()=>Kf,structure:()=>vx});wx="Selector",vx={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};Yf={};I(Yf,{generate:()=>_x,name:()=>xx,parse:()=>Xf,structure:()=>Fx,walkContext:()=>Cx});xx="SelectorList",Cx="selector",Fx={children:[["Selector","Raw"]]};Qf={};I(Qf,{generate:()=>Tx,name:()=>Sx,parse:()=>rm,structure:()=>Ax});Ex={};I(Ex,{decode:()=>sl,encode:()=>nm});La=92,em=34,tm=39;Sx="String",Ax={value:String};om={};I(om,{generate:()=>jx,name:()=>Px,parse:()=>im,structure:()=>Bx,walkContext:()=>Ix});Ox=33;Px="StyleSheet",Ix="stylesheet",Bx={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};sm={};I(sm,{generate:()=>Mx,name:()=>Lx,parse:()=>am,structure:()=>Nx});Rx=42,ed=124;Lx="TypeSelector",Nx={name:String};lm={};I(lm,{generate:()=>Vx,name:()=>Wx,parse:()=>pm,structure:()=>Ux});um=43,cm=45,Na=63;Wx="UnicodeRange",Ux={value:String};dm={};I(dm,{generate:()=>Xx,name:()=>Kx,parse:()=>gm,structure:()=>Yx});Gx={};I(Gx,{decode:()=>mm,encode:()=>hm});qx=32,Ma=92,Hx=34,Jx=39,Zx=40,fm=41;Kx="Url",Yx={value:String};ym={};I(ym,{generate:()=>t1,name:()=>Qx,parse:()=>bm,structure:()=>e1});Qx="Value",e1={children:[[]]};Dm={};I(Dm,{generate:()=>i1,name:()=>r1,parse:()=>wm,structure:()=>o1});n1=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),r1="WhiteSpace",o1={value:String};s1={generic:!0,...G0,node:il},vm={};I(vm,{AtrulePrelude:()=>d1,Selector:()=>x1,Value:()=>_1});a1=35,l1=42,td=43,u1=45,c1=47,p1=117;d1={getNode:km},f1=35,m1=38,h1=42,g1=43,y1=47,nd=46,b1=62,D1=124,w1=126;x1={onWhiteSpace:v1,getNode:k1};_1={getNode:km,onWhiteSpace(e,t){rd(e)&&(e.value=" "+e.value),rd(t.last)&&(t.last.value+=" ")},expression:C1,var:F1},E1={parse:{prelude:null,block(){return this.Block(!0)}}},S1={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}},A1={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},T1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},O1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};B1={parse:{prelude(){let e=xm.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},j1={"font-face":E1,import:S1,media:A1,nest:T1,page:O1,supports:B1},Gt={parse(){return this.createSingleNodeList(this.SelectorList())}},xa={parse(){return this.createSingleNodeList(this.Selector())}},od={parse(){return this.createSingleNodeList(this.Identifier())}},$o={parse(){return this.createSingleNodeList(this.Nth())}},R1={dir:od,has:Gt,lang:od,matches:Gt,is:Gt,"-moz-any":Gt,"-webkit-any":Gt,where:Gt,not:Gt,"nth-child":$o,"nth-last-child":$o,"nth-last-of-type":$o,"nth-of-type":$o,slotted:xa,host:xa,"host-context":xa},Cm={};I(Cm,{AnPlusB:()=>Rd,Atrule:()=>Nd,AtrulePrelude:()=>$d,AttributeSelector:()=>Ud,Block:()=>qd,Brackets:()=>Jd,CDC:()=>Kd,CDO:()=>Xd,ClassSelector:()=>ef,Combinator:()=>nf,Comment:()=>of,Declaration:()=>lf,DeclarationList:()=>cf,Dimension:()=>df,Function:()=>mf,Hash:()=>gf,IdSelector:()=>wf,Identifier:()=>bf,MediaFeature:()=>kf,MediaQuery:()=>Cf,MediaQueryList:()=>_f,NestingSelector:()=>Sf,Nth:()=>Tf,Number:()=>Pf,Operator:()=>Bf,Parentheses:()=>Rf,Percentage:()=>Nf,PseudoClassSelector:()=>$f,PseudoElementSelector:()=>Wf,Ratio:()=>Vf,Raw:()=>qf,Rule:()=>Jf,Selector:()=>Kf,SelectorList:()=>Xf,String:()=>rm,StyleSheet:()=>im,TypeSelector:()=>am,UnicodeRange:()=>pm,Url:()=>gm,Value:()=>bm,WhiteSpace:()=>wm});L1={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:vm,atrule:j1,pseudo:R1,node:Cm},N1={node:il},M1=V0({...s1,...L1,...N1}),$1={};I($1,{decode:()=>z1,encode:()=>W1});id=92;({tokenize:gA,parse:Fm,generate:_m,lexer:yA,createLexer:bA,walk:Em,find:DA,findLast:wA,findAll:vA,toPlainObject:kA,fromPlainObject:xA,fork:CA}=M1)});function V1(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 oe().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 Om(e){if(d.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return Am("");let t=ra(e?.css,!0);try{let n=Fm(t);Em(n,{enter:V1});let r=Tm.default.format([_m(n),U1].join(`
51
46
 
52
- `).trim(),{parser:"css"});return qh(r)}catch{return p.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function Zh(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var Hh,iE,qh,Yh=_(()=>{"use strict";Gh();Hh=D(require("prettier"));Wa();q();iE=`
47
+ `).trim(),{parser:"css"});return Am(r)}catch{return d.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function Pm(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var Tm,U1,Am,Im=T(()=>{"use strict";Sm();Tm=D(require("prettier"));oa();q();U1=`
53
48
  .w-icon-slider-right:before {
54
49
  content: "\\e600";
55
50
  }
@@ -68,73 +63,66 @@ in your project root.`),new A(a)}}function bp(e){if(!(e===void 0||e===!1)){if(ty
68
63
  .w-icon-file-upload-icon:before {
69
64
  content: "\\e903";
70
65
  }
71
- `;qh=e=>({name:"global",css:{__bootflow:{rule:e}},module:!1})});function Kh(e){if(e.status>=200&&e.status<300){switch(e.status){case 206:p.warn("You exceeded the limit of components and some components were not exported.");break;case 207:p.warn("Certain components couldn't be exported due to an unexpected error.");break}return}switch(e.status){case 400:throw new jt("Something unexpected happened. Report a bug here: https://airtable.com/shr47EWPVsV9xCwOH");case 401:throw new jt("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new jt("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new jt("Something went wrong. Try again later or report a bug here: https://airtable.com/shr47EWPVsV9xCwOH")}}async function aE(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 qe(`${n}/devlink/${t}${u}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});Kh(l);let c=await l.json();return c.components||c}catch(t){throw t instanceof jt&&ql(t),new A(t,{skipLogging:!0})}}async function lE(e){try{let{siteId:t,host:n,authToken:r}=e,o=await qe(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return Kh(o),await o.json()}catch(t){throw t instanceof jt&&ql(t),new A(t,{skipLogging:!0})}}async function Hl(e){try{let[t,n]=await Promise.all([aE(e),lE(e)]),r=n;if(e.skipTagSelectors===!0){let{rest:o,globalCss:i}=Zh(t),s=Jh(i);r.push(...o,s)}else r.push(...t);await Cp(r,e)}catch(t){t instanceof Error&&(ql(t),await $n(e)(t))}}var jt,ql,Xh=_(()=>{"use strict";q();Wa();Ua();Yh();Pn();ye();jt=class extends Error{constructor(t){super(t)}},ql=e=>{p.error(e,{prefix:"Something went wrong while trying to export your components:"})}});var Qh={};Uu(Qh,{syncComponents:()=>Jl});async function Jl(e,t){let n=Date.now(),r=null,o=t?.apiToken||lo.default.env.WEBFLOW_SITE_API_TOKEN,i=t?.site||lo.default.env.WEBFLOW_SITE_ID,s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:ai(e),overwriteModule:!1}:{overwriteModule:!0},addIndexFile:!0};_p(s);let a=await li(s);if(!a)return lo.default.exit();let u=!1;try{r=tt.fromDevlinkConfig(a),u=await r.promptForConsentIfNeeded();let l=u?"Telemetry enabled - usage data will be collected":"Telemetry disabled - no usage data will be collected";p.info(l)}catch{p.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=p.spinner(`Exporting components into ${a.rootDir}`);if(await Hl({...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:lo.default.argv.slice(2)})}catch(c){console.debug("Failed to send telemetry failure events:",c)}throw l}}var lo,Zl=_(()=>{"use strict";lo=D(require("process"));ui();Xh();Ua();Zt();q()});var Og=ke((aP,Ag)=>{"use strict";Ag.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var iu=ke((lP,Ig)=>{"use strict";var mo=Og(),Pg={};for(let e of Object.keys(mo))Pg[mo[e]]=e;var T={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Ig.exports=T;for(let e of Object.keys(T)){if(!("channels"in T[e]))throw new Error("missing channels property: "+e);if(!("labels"in T[e]))throw new Error("missing channel labels property: "+e);if(T[e].labels.length!==T[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:n}=T[e];delete T[e].channels,delete T[e].labels,Object.defineProperty(T[e],"channels",{value:t}),Object.defineProperty(T[e],"labels",{value:n})}T.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a,u;i===o?a=0:t===i?a=(n-r)/s:n===i?a=2+(r-t)/s:r===i&&(a=4+(t-n)/s),a=Math.min(a*60,360),a<0&&(a+=360);let l=(o+i)/2;return i===o?u=0:l<=.5?u=s/(i+o):u=s/(2-i-o),[a,u*100,l*100]};T.rgb.hsv=function(e){let t,n,r,o,i,s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),d=function(f){return(l-f)/6/c+1/2};return c===0?(o=0,i=0):(i=c/l,t=d(s),n=d(a),r=d(u),s===l?o=r-n:a===l?o=1/3+t-r:u===l&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,l*100]};T.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],o=T.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};T.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[i*100,s*100,a*100,o*100]};function O_(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}T.rgb.keyword=function(e){let t=Pg[e];if(t)return t;let n=1/0,r;for(let o of Object.keys(mo)){let i=mo[o],s=O_(e,i);s<n&&(n=s,r=o)}return r};T.keyword.rgb=function(e){return mo[e]};T.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let o=t*.4124+n*.3576+r*.1805,i=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,i*100,s*100]};T.rgb.lab=function(e){let t=T.rgb.xyz(e),n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*r-16,s=500*(n-r),a=200*(r-o);return[i,s,a]};T.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,o,i,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;let a=2*r-o,u=[0,0,0];for(let l=0;l<3;l++)i=t+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?s=a+(o-a)*6*i:2*i<1?s=o:3*i<2?s=a+(o-a)*(2/3-i)*6:s=a,u[l]=s*255;return u};T.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;let s=(r+n)/2,a=r===0?2*o/(i+o):2*n/(r+n);return[t,a*100,s*100]};T.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}};T.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01),i,s;s=(2-n)*r;let a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,i*100,s*100]};T.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,o=n+r,i;o>1&&(n/=o,r/=o);let s=Math.floor(6*t),a=1-r;i=6*t-s,(s&1)!==0&&(i=1-i);let u=n+i*(a-n),l,c,d;switch(s){default:case 6:case 0:l=a,c=u,d=n;break;case 1:l=u,c=a,d=n;break;case 2:l=n,c=a,d=u;break;case 3:l=n,c=u,d=a;break;case 4:l=u,c=n,d=a;break;case 5:l=a,c=n,d=u;break}return[l*255,c*255,d*255]};T.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[i*255,s*255,a*255]};T.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o,i,s;return o=t*3.2406+n*-1.5372+r*-.4986,i=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]};T.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let o=116*n-16,i=500*(t-n),s=200*(n-r);return[o,i,s]};T.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],o,i,s;i=(t+16)/116,o=n/500+i,s=i-r/200;let a=i**3,u=o**3,l=s**3;return i=a>.008856?a:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]};T.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);let s=Math.sqrt(n*n+r*r);return[t,s,o]};T.lch.lab=function(e){let t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),s=n*Math.sin(o);return[t,i,s]};T.rgb.ansi16=function(e,t=null){let[n,r,o]=e,i=t===null?T.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(s+=60),s};T.hsv.ansi16=function(e){return T.rgb.ansi16(T.hsv.rgb(e),e[2])};T.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];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)};T.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};T.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};T.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};T.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let r=parseInt(n,16),o=r>>16&255,i=r>>8&255,s=r&255;return[o,i,s]};T.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i,a,u;return s<1?a=i/(1-s):a=0,s<=0?u=0:o===t?u=(n-r)/s%6:o===n?u=2+(r-t)/s:u=4+(t-n)/s,u/=6,u%=1,[u*360,s*100,a*100]};T.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};T.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};T.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let o=[0,0,0],i=t%1*6,s=i%1,a=1-s,u=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return u=(1-n)*r,[(n*o[0]+u)*255,(n*o[1]+u)*255,(n*o[2]+u)*255]};T.hcg.hsv=function(e){let t=e[1]/100,n=e[2]/100,r=t+n*(1-t),o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};T.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};T.hcg.hwb=function(e){let t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};T.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,o=r-t,i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};T.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};T.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};T.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};T.gray.hsl=function(e){return[0,0,e[0]]};T.gray.hsv=T.gray.hsl;T.gray.hwb=function(e){return[0,100,e[0]]};T.gray.cmyk=function(e){return[0,0,0,e[0]]};T.gray.lab=function(e){return[e[0],0,0]};T.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};T.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Rg=ke((uP,Bg)=>{"use strict";var Ji=iu();function P_(){let e={},t=Object.keys(Ji);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function I_(e){let t=P_(),n=[e];for(t[e].distance=0;n.length;){let r=n.pop(),o=Object.keys(Ji[r]);for(let i=o.length,s=0;s<i;s++){let a=o[s],u=t[a];u.distance===-1&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(a))}}return t}function B_(e,t){return function(n){return t(e(n))}}function R_(e,t){let n=[t[e].parent,e],r=Ji[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=B_(Ji[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}Bg.exports=function(e){let t=I_(e),n={},r=Object.keys(t);for(let o=r.length,i=0;i<o;i++){let s=r[i];t[s].parent!==null&&(n[s]=R_(s,t))}return n}});var Lg=ke((cP,jg)=>{"use strict";var su=iu(),j_=Rg(),ar={},L_=Object.keys(su);function M_(e){let t=function(...n){let r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function N_(e){let t=function(...n){let r=n[0];if(r==null)return r;r.length>1&&(n=r);let o=e(n);if(typeof o=="object")for(let i=o.length,s=0;s<i;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}L_.forEach(e=>{ar[e]={},Object.defineProperty(ar[e],"channels",{value:su[e].channels}),Object.defineProperty(ar[e],"labels",{value:su[e].labels});let t=j_(e);Object.keys(t).forEach(r=>{let o=t[r];ar[e][r]=N_(o),ar[e][r].raw=M_(o)})});jg.exports=ar});var Ug=ke((dP,zg)=>{"use strict";var Mg=(e,t)=>(...n)=>`\x1B[${e(...n)+t}m`,Ng=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};5;${r}m`},$g=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`},Zi=e=>e,Wg=(e,t,n)=>[e,t,n],lr=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},au,ur=(e,t,n,r)=>{au===void 0&&(au=Lg());let o=r?10:0,i={};for(let[s,a]of Object.entries(au)){let u=s==="ansi16"?"ansi":s;s===t?i[u]=e(n,o):typeof a=="object"&&(i[u]=e(a[t],o))}return i};function $_(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[o,i]of Object.entries(r))t[o]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[o]=t[o],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",lr(t.color,"ansi",()=>ur(Mg,"ansi16",Zi,!1)),lr(t.color,"ansi256",()=>ur(Ng,"ansi256",Zi,!1)),lr(t.color,"ansi16m",()=>ur($g,"rgb",Wg,!1)),lr(t.bgColor,"ansi",()=>ur(Mg,"ansi16",Zi,!0)),lr(t.bgColor,"ansi256",()=>ur(Ng,"ansi256",Zi,!0)),lr(t.bgColor,"ansi16m",()=>ur($g,"rgb",Wg,!0)),t}Object.defineProperty(zg,"exports",{enumerable:!0,get:$_})});var Gg=ke((pP,Vg)=>{"use strict";Vg.exports=(e,t=process.argv)=>{let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}});var Jg=ke((fP,Hg)=>{"use strict";var W_=require("os"),qg=require("tty"),Ne=Gg(),{env:ue}=process,zt;Ne("no-color")||Ne("no-colors")||Ne("color=false")||Ne("color=never")?zt=0:(Ne("color")||Ne("colors")||Ne("color=true")||Ne("color=always"))&&(zt=1);"FORCE_COLOR"in ue&&(ue.FORCE_COLOR==="true"?zt=1:ue.FORCE_COLOR==="false"?zt=0:zt=ue.FORCE_COLOR.length===0?1:Math.min(parseInt(ue.FORCE_COLOR,10),3));function lu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function uu(e,t){if(zt===0)return 0;if(Ne("color=16m")||Ne("color=full")||Ne("color=truecolor"))return 3;if(Ne("color=256"))return 2;if(e&&!t&&zt===void 0)return 0;let n=zt||0;if(ue.TERM==="dumb")return n;if(process.platform==="win32"){let r=W_.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ue)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in ue)||ue.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in ue)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ue.TEAMCITY_VERSION)?1:0;if(ue.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ue){let r=parseInt((ue.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ue.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ue.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ue.TERM)||"COLORTERM"in ue?1:n}function z_(e){let t=uu(e,e&&e.isTTY);return lu(t)}Hg.exports={supportsColor:z_,stdout:lu(uu(!0,qg.isatty(1))),stderr:lu(uu(!0,qg.isatty(2)))}});var Yg=ke((mP,Zg)=>{"use strict";var U_=(e,t,n)=>{let r=e.indexOf(t);if(r===-1)return e;let o=t.length,i=0,s="";do s+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i);while(r!==-1);return s+=e.substr(i),s},V_=(e,t,n,r)=>{let o=0,i="";do{let s=e[r-1]==="\r";i+=e.substr(o,(s?r-1:r)-o)+t+(s?`\r
72
- `:`
73
- `)+n,o=r+1,r=e.indexOf(`
74
- `,o)}while(r!==-1);return i+=e.substr(o),i};Zg.exports={stringReplaceAll:U_,stringEncaseCRLFWithFirstIndex:V_}});var ty=ke((hP,ey)=>{"use strict";var G_=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Kg=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,q_=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,H_=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,J_=new Map([["n",`
75
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Qg(e){let t=e[0]==="u",n=e[1]==="{";return t&&!n&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):J_.get(e)||e}function Z_(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let i of r){let s=Number(i);if(!Number.isNaN(s))n.push(s);else if(o=i.match(q_))n.push(o[2].replace(H_,(a,u,l)=>u?Qg(u):l));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return n}function Y_(e){Kg.lastIndex=0;let t=[],n;for(;(n=Kg.exec(e))!==null;){let r=n[1];if(n[2]){let o=Z_(r,n[2]);t.push([r].concat(o))}else t.push([r])}return t}function Xg(e,t){let n={};for(let o of t)for(let i of o.styles)n[i[0]]=o.inverse?null:i.slice(1);let r=e;for(let[o,i]of Object.entries(n))if(Array.isArray(i)){if(!(o in r))throw new Error(`Unknown Chalk style: ${o}`);r=i.length>0?r[o](...i):r[o]}return r}ey.exports=(e,t)=>{let n=[],r=[],o=[];if(t.replace(G_,(i,s,a,u,l,c)=>{if(s)o.push(Qg(s));else if(u){let d=o.join("");o=[],r.push(n.length===0?d:Xg(e,n)(d)),n.push({inverse:a,styles:Y_(u)})}else if(l){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");r.push(Xg(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)}),r.push(o.join("")),n.length>0){let i=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return r.join("")}});var hu=ke((gP,iy)=>{"use strict";var ho=Ug(),{stdout:du,stderr:pu}=Jg(),{stringReplaceAll:K_,stringEncaseCRLFWithFirstIndex:X_}=Yg(),ny=["ansi","ansi","ansi256","ansi16m"],cr=Object.create(null),Q_=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let n=du?du.level:0;e.level=t.level===void 0?n:t.level},fu=class{constructor(t){return ry(t)}},ry=e=>{let t={};return Q_(t,e),t.template=(...n)=>nF(t.template,...n),Object.setPrototypeOf(t,Yi.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=fu,t.template};function Yi(e){return ry(e)}for(let[e,t]of Object.entries(ho))cr[e]={get(){let n=Ki(this,mu(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};cr.visible={get(){let e=Ki(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var oy=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of oy)cr[e]={get(){let{level:t}=this;return function(...n){let r=mu(ho.color[ny[t]][e](...n),ho.color.close,this._styler);return Ki(this,r,this._isEmpty)}}};for(let e of oy){let t="bg"+e[0].toUpperCase()+e.slice(1);cr[t]={get(){let{level:n}=this;return function(...r){let o=mu(ho.bgColor[ny[n]][e](...r),ho.bgColor.close,this._styler);return Ki(this,o,this._isEmpty)}}}}var eF=Object.defineProperties(()=>{},{...cr,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),mu=(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}},Ki=(e,t,n)=>{let r=(...o)=>tF(r,o.length===1?""+o[0]:o.join(" "));return r.__proto__=eF,r._generator=e,r._styler=t,r._isEmpty=n,r},tF=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.indexOf("\x1B")!==-1)for(;n!==void 0;)t=K_(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
76
- `);return i!==-1&&(t=X_(t,o,r,i)),r+t+o},cu,nF=(e,...t)=>{let[n]=t;if(!Array.isArray(n))return t.join(" ");let r=t.slice(1),o=[n.raw[0]];for(let i=1;i<n.length;i++)o.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[i]));return cu===void 0&&(cu=ty()),cu(e,o.join(""))};Object.defineProperties(Yi.prototype,cr);var go=Yi();go.supportsColor=du;go.stderr=Yi({level:pu?pu.level:0});go.stderr.supportsColor=pu;go.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};iy.exports=go});var aD=require("commander");var bs=require("commander");q();var _d=require("child_process"),Fd=require("fs"),wa=D(require("semver"));q();var va="@webflow/webflow-cli",Yt="@webflow/data-types",qo="@webflow/react",V0=[va,Yt,qo],Kt=class{getInstalledDependencies(){try{let t=(0,_d.execSync)(`npm ls ${V0.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,Fd.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Yt];if(!n)return;let o=this.getRequiredDependencies(va)[Yt];if(!wa.default.satisfies(n,o))throw new Error(`Version mismatch: ${va} requires ${Yt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Yt],r=t[qo];if(!(!n||!r)&&!wa.default.eq(n,r))throw new Error(`Version mismatch: ${qo} and ${Yt} must be on the same version. Found ${qo}@${r} and ${Yt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var Od=require("fs-extra");var Tt=D(require("@inquirer/prompts"));Ae();q();var G0=/SIGINT/i;async function Ho(e){try{return await e()}catch(t){throw t instanceof Error&&G0.test(t.message)&&(p.debug(t.message),process.exit(130)),t}}async function At(e){return ce()?e.default??!1:Ho(()=>Tt.confirm(e))}async function Oe(e){return ce()?"default"in e?e.default:null:Ho(()=>Tt.select(e))}async function He(e){return ce()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:Ho(()=>Tt.input(e))}async function Jo(e){if(ce()){let t=[];return await e.validate?.(t)!==!0?null:t}return Ho(()=>Tt.checkbox(e))}var Pd=require("@dotenvx/dotenvx");q();var Sd=require("child_process"),Td=require("util"),q0=(0,Td.promisify)(Sd.exec);async function $r(e,t){try{let{stdout:n,stderr:r}=await q0(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}}}Ae();(0,Pd.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var Ad={npm:{updateCommand:"npm install",update:async e=>await $r(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await $r(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await $r(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await $r(`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}},H0=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],Wr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(Ad))if((0,Od.existsSync)(t.lockFile))return t;return Ad.npm}async listOutdatedPackages(t="local",n=H0){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 Jo({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 At({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(`
66
+ `;Am=e=>({name:"global",ext:"css",css:{__bootflow:{rule:e}},module:!1})});function G1(e){try{let t=JSON.parse(e);if(t.msg&&typeof t.msg=="string")return t.msg}catch{}return null}function Bm(e){if(e.ok){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}}async function jm(e){switch(e.status){case 400:{let t=await e.text(),n=G1(t);throw new Mn(n||"Bad request: The server rejected the request due to invalid input. Please check your configuration and try again.")}case 401:throw new Mn("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new Mn("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new Mn(`Something went wrong (HTTP ${e.status}).`)}}async function q1(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 $e(`${n}/devlink/${t}${u}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});if(Bm(l),!l.ok)return jm(l);let c=await l.json();return c.components||c}catch(t){throw new E(t,{skipLogging:!0})}}async function H1(e){try{let{siteId:t,host:n,authToken:r}=e,o=await $e(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return Bm(o),o.ok?await o.json():jm(o)}catch(t){throw new E(t,{skipLogging:!0})}}async function al(e){try{let[t,n]=await Promise.all([q1(e),H1(e)]),r=n;if(e.skipTagSelectors===!0){let{rest:o,globalCss:i}=Pm(t),s=Om(i);r.push(...o,s)}else r.push(...t);await lp(r,e)}catch(t){throw t instanceof E?t:new E(t,{skipLogging:!0})}}var Mn,Rm=T(()=>{"use strict";q();oa();Im();vn();me();Mn=class extends Error{constructor(t){super(t)}}});function si(e){return async function(n){Zt.default.removeListener("uncaughtException",si),Zt.default.removeListener("unhandledRejection",si);let r=await Io(e);if(!r)return;await new ll(r,n).prompt()}}function Lm(e){Zt.default.on("uncaughtException",si(e)),Zt.default.on("unhandledRejection",si(e))}var Zt,ll,Nm=T(()=>{"use strict";Zt=D(require("process"));q();Qs();Ao();Ne();vn();ll=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;$e(`${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 ue({devlink:{allowTelemetry:t}})}catch{let r=await En();await Bc({...r,allowTelemetry:t})}}async prompt(){let t=this.config;if(d.error(this.error),t.allowTelemetry===!0)d.info("Sending crash report telemetry..."),this.sendTelemetry();else if(t.allowTelemetry===!1){d.info("Skipping crash report telemetry...");return}else d.info("Telemetry is enabled. Crash reports help us improve Webflow CLI."),d.info("To opt out, run: webflow auth telemetry --disable"),await this.storeChoice(!0),d.info("Sending crash report telemetry..."),this.sendTelemetry()}}});var Mm={};Hl(Mm,{syncComponents:()=>ul});async function ul(e,t){let n=Date.now(),r=t?.apiToken||Gr.default.env.WEBFLOW_SITE_API_TOKEN,o=t?.site||Gr.default.env.WEBFLOW_SITE_ID,i={...r?{authToken:r}:{},...o?{siteId:o}:{},...e&&e.length>0?{components:Po(e),overwriteModule:!1}:{overwriteModule:!0},addIndexFile:!0};Lm(i);let s=await Io(i);if(!s)return Gr.default.exit();let a;try{a=De.forDevlinkSync(s)}catch(l){d.debug(`Failed to initialize telemetry: ${l}`)}await a?.sendUsage("devlink_sync_start",{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:s.cssModules,overwriteModule:s.overwriteModule,relativeHrefRoot:s.relativeHrefRoot});let u=d.spinner(`Exporting components into ${s.rootDir}`);try{await al(s),u.succeed(`Successfully exported components into ${s.rootDir} folder`);let l=Date.now()-n;await a?.sendUsage("devlink_sync_success",{duration:l,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:s.cssModules,overwriteModule:s.overwriteModule,relativeHrefRoot:s.relativeHrefRoot})}catch(l){let c=l instanceof Error?l.message:String(l);u.fail(`Failed to export components: ${c}`);let p=Date.now()-n;throw await a?.sendError(l instanceof Error?l:new Error(String(l)),"devlink_sync_failure",{duration:p,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:s.cssModules,overwriteModule:s.overwriteModule,relativeHrefRoot:s.relativeHrefRoot,configOverrides:Object.keys(i),argv:Gr.default.argv.slice(2)}),l}}var Gr,cl=T(()=>{"use strict";Gr=D(require("process"));Qs();Rm();Nm();wt();q()});var gy=require("commander");var no=require("commander");q();var lc=require("child_process"),uc=require("fs"),js=D(require("semver"));q();var Rs="@webflow/webflow-cli",zt="@webflow/data-types",bo="@webflow/react",Sb=[Rs,zt,bo],Wt=class{getInstalledDependencies(){try{let t=(0,lc.execSync)(`npm ls ${Sb.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,uc.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[zt];if(!n)return;let o=this.getRequiredDependencies(Rs)[zt];if(!js.default.satisfies(n,o))throw new Error(`Version mismatch: ${Rs} requires ${zt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[zt],r=t[bo];if(!(!n||!r)&&!js.default.eq(n,r))throw new Error(`Version mismatch: ${bo} and ${zt} must be on the same version. Found ${bo}@${r} and ${zt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var fc=require("fs-extra");var kt=D(require("@inquirer/prompts"));_e();q();var Ab=/SIGINT/i;async function Do(e){try{return await e()}catch(t){throw t instanceof Error&&Ab.test(t.message)&&(d.debug(t.message),process.exit(130)),t}}async function xt(e){return ae()?e.default??!1:Do(()=>kt.confirm(e))}async function Ee(e){return ae()?"default"in e?e.default:null:Do(()=>kt.select(e))}async function ze(e){return ae()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:Do(()=>kt.input(e))}async function wo(e){if(ae()){let t=[];return await e.validate?.(t)!==!0?null:t}return Do(()=>kt.checkbox(e))}var mc=require("@dotenvx/dotenvx");q();var cc=require("child_process"),pc=require("util"),Tb=(0,pc.promisify)(cc.exec);async function xr(e,t){try{let{stdout:n,stderr:r}=await Tb(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}}}_e();(0,mc.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var dc={npm:{updateCommand:"npm install",update:async e=>await xr(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await xr(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await xr(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await xr(`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}},Ob=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],Cr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(dc))if((0,fc.existsSync)(t.lockFile))return t;return dc.npm}async listOutdatedPackages(t="local",n=Ob){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 wo({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 xt({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(`
77
67
  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(`
78
68
  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(`
79
- 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, use --skip-update-check)");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||ce()){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")}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)}}};Ae();ga();Zt();q();Ge();var Xt=D(require("fs")),Ur=D(require("path")),zr=D(require("@dotenvx/dotenvx"));function Qt({siteId:e,siteApiToken:t,workspaceApiToken:n,directory:r}){let o=Ur.resolve(r?Ur.join(r,".env"):Ur.join(process.cwd(),".env"));r&&!Xt.existsSync(r)&&Xt.mkdirSync(r,{recursive:!0}),Xt.existsSync(o)||Xt.writeFileSync(o,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),zr.default.config({path:o,quiet:!0}),e&&zr.default.set("WEBFLOW_SITE_ID",e,{path:o,encrypt:!1}),t&&zr.default.set("WEBFLOW_SITE_API_TOKEN",t,{path:o,encrypt:!1}),n&&zr.default.set("WEBFLOW_WORKSPACE_API_TOKEN",n,{path:o,encrypt:!1})}Ae();var Gr=require("webflow-api");fe();var Vr={serverUrl:In,timeoutMs:300*1e3};var Id=require("crypto"),Bd=D(require("open"));q();Pn();var Rd=e=>{let t=new Uint8Array(e);return Id.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},jd=({pollId:e,clientId:t,scope:n})=>`${Vr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,J0=e=>`${Vr.serverUrl}/oauth/webflow/poll?pollId=${e}`,Ld=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,Bd.default)(e),t.succeed()}catch{t.fail(),p.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},Z0=async e=>{let t=J0(e),n=await qe(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()},Md=(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 Z0(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)})};fe();fe();ye();async function Ln({clientId:e,scope:t}){let n=Rd(16);try{let r=jd({pollId:n,clientId:e,scope:t});return await Ld(r),await Md(n,Vr.timeoutMs)}catch(r){throw new A(r)}}async function Zo(e){try{let n=await new Gr.WebflowClient({accessToken:e,environment:{base:`${Y}/v2`,dataApi:`${Y}/v2`,contentDeliveryApi:`${mt}/v2`,production:`${Y}/v2`,cdn:`${mt}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new A("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 new A(t,{prefix:`Failed to fetch Webflow sites. Please check your authorization.
80
- `})}}async function qr(e,t){try{let r=await new Gr.WebflowClient({accessToken:e,environment:{base:`${Y}/v2`,dataApi:`${Y}/v2`,contentDeliveryApi:`${mt}/v2`,production:`${Y}/v2`,cdn:`${mt}/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 new A(n,{prefix:"Error fetching site details:"})}}async function ka(e,t){try{return{customDomains:(await new Gr.WebflowClient({accessToken:e,environment:{base:`${Y}/v2`,dataApi:`${Y}/v2`,contentDeliveryApi:`${mt}/v2`,production:`${Y}/v2`,cdn:`${mt}/v2`}}).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new A(n,{prefix:"Error fetching custom domains:"})}}async function xa(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 new A(t,{prefix:`Failed to fetch manifest from ${e}:`})}}function Ca(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 Nd(e,t,n){try{let r=new Gr.WebflowClient({accessToken:e,environment:{base:`${Y}/v2`,dataApi:`${Y}/v2`,contentDeliveryApi:`${mt}/v2`,production:`${Y}/v2`,cdn:`${mt}/v2`}}),o=await qr(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 new A(r,{prefix:"Error publishing site:"})}}async function Yo(e){let t=await Oe({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])}ye();var Ea="4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",_a=["sites:read","sites:write","authorized_user:read","devlink_export:read"];function Fa(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID,n=process.env.WEBFLOW_SITE_API_TOKEN;return t&&n?{siteId:t,accessToken:n}:null}function Y0(){return process.env.WEBFLOW_SITE_API_TOKEN??null}function K0(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID??null;return t&&!e.siteId&&pe({siteId:t}),t}async function $d(e,t){let n=p.spinner("Loading Webflow credentials"),r=t?.site??K0(e),o,i=t?.apiToken??Y0();if(ce()&&(!r||!i||t?.force))throw r?(n.fail("No API token found for site exports"),new A(`To authenticate in CI/CD environments:
69
+ 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 --skip-update-check)");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||ae()){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)}}};_e();Os();Ss();wt();q();Ne();var Ut=D(require("fs")),_r=D(require("path")),Fr=D(require("@dotenvx/dotenvx"));function Vt({siteId:e,siteApiToken:t,workspaceApiToken:n,directory:r}){let o=_r.resolve(r?_r.join(r,".env"):_r.join(process.cwd(),".env"));r&&!Ut.existsSync(r)&&Ut.mkdirSync(r,{recursive:!0}),Ut.existsSync(o)||Ut.writeFileSync(o,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),Fr.default.config({path:o,quiet:!0}),e&&Fr.default.set("WEBFLOW_SITE_ID",e,{path:o,encrypt:!1}),t&&Fr.default.set("WEBFLOW_SITE_API_TOKEN",t,{path:o,encrypt:!1}),n&&Fr.default.set("WEBFLOW_WORKSPACE_API_TOKEN",n,{path:o,encrypt:!1})}_e();var Sr=require("webflow-api");fe();var Er={serverUrl:kn,timeoutMs:5*60*1e3};var hc=require("crypto"),gc=D(require("open"));q();vn();var yc=e=>{let t=new Uint8Array(e);return hc.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},bc=({pollId:e,clientId:t,scope:n})=>`${Er.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,Pb=e=>`${Er.serverUrl}/oauth/webflow/poll?pollId=${e}`,Dc=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,gc.default)(e),t.succeed()}catch{t.fail(),d.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},Ib=async e=>{let t=Pb(e),n=await $e(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()},wc=(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 Ib(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)})};fe();fe();me();async function _n({clientId:e,scope:t}){let n=yc(16);try{let r=bc({pollId:n,clientId:e,scope:t});return await Dc(r),await wc(n,Er.timeoutMs)}catch(r){throw new E(r)}}async function vo(e){try{let n=await new Sr.WebflowClient({accessToken:e,environment:{base:`${K}/v2`,dataApi:`${K}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${K}/v2`,cdn:`${ot}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new E("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 new E(t,{prefix:`Failed to fetch Webflow sites. Please check your authorization.
70
+ `})}}async function Ar(e,t){try{let r=await new Sr.WebflowClient({accessToken:e,environment:{base:`${K}/v2`,dataApi:`${K}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${K}/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 new E(n,{prefix:"Error fetching site details:"})}}async function Ls(e,t){try{return{customDomains:(await new Sr.WebflowClient({accessToken:e,environment:{base:`${K}/v2`,dataApi:`${K}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${K}/v2`,cdn:`${ot}/v2`}}).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new E(n,{prefix:"Error fetching custom domains:"})}}async function Ns(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 new E(t,{prefix:`Failed to fetch manifest from ${e}:`})}}function Ms(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 vc(e,t,n){try{let r=new Sr.WebflowClient({accessToken:e,environment:{base:`${K}/v2`,dataApi:`${K}/v2`,contentDeliveryApi:`${ot}/v2`,production:`${K}/v2`,cdn:`${ot}/v2`}}),o=await Ar(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 new E(r,{prefix:"Error publishing site:"})}}async function ko(e){let t=await Ee({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])}me();var $s="4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",zs=["sites:read","sites:write","authorized_user:read","devlink_export:read"];function Ws(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID,n=process.env.WEBFLOW_SITE_API_TOKEN;return t&&n?{siteId:t,accessToken:n}:null}function Bb(){return process.env.WEBFLOW_SITE_API_TOKEN??null}function jb(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID??null;return t&&!e.siteId&&ue({siteId:t}),t}async function kc(e,t){let n=d.spinner("Loading Webflow credentials"),r=t?.site??jb(e),o,i=t?.apiToken??Bb();if(ae()&&(!r||!i||t?.force))throw r?(n.fail("No API token found for site exports"),new E(`To authenticate in CI/CD environments:
81
71
  1. Run 'webflow auth login' locally to authenticate
82
72
  2. Copy the WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN from your .env file
83
- 3. Set these as environment variables in your CI/CD pipeline`)):(n.fail("No site ID configured for this project"),new A(`Run 'webflow auth login' locally to authenticate and associate this project with a Webflow site,
73
+ 3. Set these as environment variables in your CI/CD pipeline`)):(n.fail("No site ID configured for this project"),new E(`Run 'webflow auth login' locally to authenticate and associate this project with a Webflow site,
84
74
  or provide --site and --api-token when running a CLI command`));if((!i||t?.force)&&(n.info(`\u{1F510} Starting Webflow authentication...
85
- `),i=await Ln({clientId:Ea,scope:_a}),Qt({siteApiToken:i}),n.succeed("Webflow authentication succeeded")),n.succeed("Webflow credentials loaded"),!r||t?.force){n=p.spinner("Fetching your Webflow sites");let s=await Zo(i);if(s.length===0)throw n.fail("No Webflow sites found in your account"),new A("Please make sure you have at least one authorized site in your Webflow account");n.succeed(`Found ${s.length} site${s.length>1?"s":""} in your account`);let a=s.length>1?await Yo(s):s[0];r=a.id,o=a.displayName,Qt({siteId:r}),pe({siteId:r})}return{siteId:r,siteName:o,accessToken:i}}function Je(){let{manifest:e}=ie(),t=Fa(e);if(!t)throw new A(`Error: Missing required environment variables:
75
+ `),i=await _n({clientId:$s,scope:zs}),Vt({siteApiToken:i}),n.succeed("Webflow authentication succeeded")),n.succeed("Webflow credentials loaded"),!r||t?.force){n=d.spinner("Fetching your Webflow sites");let s=await vo(i);if(s.length===0)throw n.fail("No Webflow sites found in your account"),new E("Please make sure you have at least one authorized site in your Webflow account");n.succeed(`Found ${s.length} site${s.length>1?"s":""} in your account`);let a=s.length>1?await ko(s):s[0];r=a.id,o=a.displayName,Vt({siteId:r}),ue({siteId:r})}return{siteId:r,siteName:o,accessToken:i}}function We(){let{manifest:e}=re(),t=Ws(e);if(!t)throw new E(`Error: Missing required environment variables:
86
76
  - WEBFLOW_SITE_ID
87
77
  - WEBFLOW_SITE_API_TOKEN
88
78
 
89
79
  To set up your credentials, run:
90
80
  webflow auth login
91
- Alternatively, you can manually set these environment variables.`);return t}Ae();Ge();q();ye();var Wd=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=>{if(ce()){p.info("\u274C No-input mode enabled. Aborting OAuth authentication");return}let{manifest:r}=ie(),o=Fa(r);if(!n.force&&o){p.info("\u2705 Webflow credentials already exist:"),o.siteId&&p.info(` Site ID: ${o.siteId}`),p.info(" API Token: [hidden]"),p.info(`
92
- Use --force flag to reauthenticate anyway`);return}try{let{siteId:i,siteName:s}=await $d(r,n);p.info(`
93
- \u{1F389} Authentication complete!`),p.info(`\u2705 Connected to site: ${s}`),p.info(`\u2705 Site ID: ${i}`),p.info("\u2705 Credentials saved to .env file"),p.info(`
94
- You can now use other Webflow CLI commands that require authentication`)}catch(i){throw new A(i,{prefix:"\u274C Authentication failed:"})}}),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=Jt.getInstance();if(n.status){let s=await r.getTelemetryStatus();p.info(`
95
- \u{1F4CA} Telemetry Status:`),p.info(` Enabled: ${s.enabled?"\u2705 Yes":"\u274C No"}`),p.info(` Source: ${s.source}`),p.info(` Has Preference: ${s.hasPreference?"\u2705 Yes":"\u274C No"}`);return}if(n.enable){await r.setGlobalPreference(!0),p.info("\u2705 Telemetry enabled for all Webflow CLI commands");return}if(n.disable){await r.setGlobalPreference(!1),p.info("\u274C Telemetry disabled for all Webflow CLI commands");return}let o=await r.getTelemetryStatus();if(p.info(`
96
- \u{1F4CA} Current Telemetry Status:`),p.info(` Enabled: ${o.enabled?"\u2705 Yes":"\u274C No"}`),p.info(` Source: ${o.source}`),ce()){p.info("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option");return}let i=await Oe({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),p.info("\u2705 Telemetry enabled for all Webflow CLI commands")):i==="disable"&&(await r.setGlobalPreference(!1),p.info("\u274C Telemetry disabled for all Webflow CLI commands"))})};var ap=D(require("http")),lp=D(require("node-fetch")),up=D(require("serve-handler")),cp=require("fs"),dp=D(require("path")),pp=require("commander");var Ud=D(require("archiver")),Ta=require("commander"),Qo=require("fs");var zd=require("cosmiconfig"),Sa=require("commander"),Ko=async(e,t)=>{let n=await X0(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Sa.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}}},X0=async e=>{let n=await(0,zd.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Sa.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var Vd=D(require("mime-types")),Xo=D(require("path")),Q0=5*1024*1024,ew=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"]),Gd=async(e,t,n)=>{let{config:r,filepath:o}=await Ko(e,t),i=Xo.join(o,".."),s=!0,a=!1,u=c=>{let d=c.name,f=Vd.default.lookup(d);return d==="index.html"&&(a=!0),d&&d.endsWith(".DS_Store")||!f?!1:ew.has(f)?c:(console.log(`Invalid file type: ${f} for file: ${d}`),s=!1,!1)},l=c=>{(0,Qo.unlink)(n,d=>{d&&console.error(`Failed to delete file: ${d}`),Ta.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let d=(0,Ud.default)("zip",{zlib:{level:9}}),f=(0,Qo.createWriteStream)(Xo.join(i,n));f.on("close",()=>{c(void 0)}),d.directory(Xo.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=>{Ta.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()>=Q0){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.`)})})};ri();var Ot=D(require("fs")),Pe=D(require("path"));var Jr="webflow.json",Xd="index.html",Qd="bundle.zip",Ia="public",Ba="extension-scaffolds",oi="default";var ep="package.json",tp="wf-placeholder-name",Ra=e=>JSON.stringify(e,null,2),np=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
81
+ Alternatively, you can manually set these environment variables.`);return t}_e();Ne();q();me();bt();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=>{if(ae()){d.info(`${Me} No-input mode enabled. Aborting OAuth authentication`);return}let{manifest:r}=re(),o=Ws(r);if(!n.force&&o){d.info(`${ce} Webflow credentials already exist:`),o.siteId&&d.info(` Site ID: ${o.siteId}`),d.info(" API Token: [hidden]"),d.info(`
82
+ Use --force flag to reauthenticate anyway`);return}try{let{siteId:i,siteName:s}=await kc(r,n);d.info(`
83
+ ${$t} Authentication complete:`),d.info(`${ce} Connected to site: ${s}`),d.info(`${ce} Site ID: ${i}`),d.info(`${ce} Credentials saved to .env file`),d.info(`
84
+ You can now use other Webflow CLI commands that require authentication`)}catch(i){throw new E(i,{prefix:`${Me} Authentication failed:`})}}),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=Dt.getInstance();if(n.status){let s=await r.getTelemetryStatus();d.info(xc(s.enabled));return}if(n.enable){await r.setGlobalPreference(!0),d.info(Us(!0));return}if(n.disable){await r.setGlobalPreference(!1),d.info(Us(!1));return}let o=await r.getTelemetryStatus();if(d.info(xc(o.enabled)),ae()){d.info("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option");return}let i=await Ee({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"}]});if(i==="enable"||i==="disable"){let s=i==="enable";await r.setGlobalPreference(s),d.info(Us(s))}})},Us=e=>`${ce} Telemetry ${e?"enabled":"disabled"} for all Webflow CLI commands`,xc=e=>`${$t} Telemetry status: ${e?`enabled ${ce}`:`disabled ${Me}`}`;var Gc=D(require("http")),qc=D(require("node-fetch")),Hc=D(require("serve-handler")),Jc=require("fs"),Zc=D(require("path")),Kc=require("commander");var _c=D(require("archiver")),Gs=require("commander"),Fo=require("fs");var Fc=require("cosmiconfig"),Vs=require("commander"),xo=async(e,t)=>{let n=await Rb(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Vs.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}}},Rb=async e=>{let n=await(0,Fc.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Vs.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var Ec=D(require("mime-types")),Co=D(require("path")),Lb=5*1024*1024,Nb=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"]),Sc=async(e,t,n)=>{let{config:r,filepath:o}=await xo(e,t),i=Co.join(o,".."),s=!0,a=!1,u=c=>{let p=c.name,f=Ec.default.lookup(p);return p==="index.html"&&(a=!0),p&&p.endsWith(".DS_Store")||!f?!1:Nb.has(f)?c:(console.log(`Invalid file type: ${f} for file: ${p}`),s=!1,!1)},l=c=>{(0,Fo.unlink)(n,p=>{p&&console.error(`Failed to delete file: ${p}`),Gs.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let p=(0,_c.default)("zip",{zlib:{level:9}}),f=(0,Fo.createWriteStream)(Co.join(i,n));f.on("close",()=>{c(void 0)}),p.directory(Co.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=>{Gs.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()>=Lb){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.`)})})};Ao();var Ct=D(require("fs")),Se=D(require("path"));var Or="webflow.json",jc="index.html",Rc="bundle.zip",Zs="public",Ks="extension-scaffolds",To="default",Lc="./";var Nc="package.json",Mc="wf-placeholder-name",Ys=e=>JSON.stringify(e,null,2),$c=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
97
85
  \u2502 `+e+` \u2502
98
- \u2570`+t+"\u256F"};var rp=async(e,t="./",n=oi,r)=>{let o=r[n];try{for(let i of o){let s=Pe.join(t,i),a=lw(s,n,e);if(i.includes(ep)||i.includes(Jr))await aw(i,a,e);else{let u=await Ot.promises.readFile(i);await sp(a,u)}}}catch(i){console.error("Error writing file, ",i)}},op=async()=>{let e={},t=Pe.resolve(__dirname),n=Pe.join(t,Ba),r=await Ot.promises.readdir(n);for(let o of r){let i=Pe.join(n,o),s=await ip(i);e[o]=s}return e},ip=async e=>{let t=[];try{let n=await Ot.promises.readdir(e);for(let r of n){let o=Pe.join(e,r);if((await Ot.promises.stat(o)).isDirectory()){let s=await ip(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Pe}, `,n)}return t},sp=async(e,t)=>{try{await Ot.promises.mkdir(Pe.dirname(e),{recursive:!0}),await Ot.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},aw=async(e,t,n)=>Ot.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(tp,n);await sp(t,o)}),lw=(e,t,n)=>{let r=Pe.join(Ba,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Pe.join(n,i)}return""};var ii=async()=>await op(),fp=async()=>{let e=await ii(),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"')},mp=async(e,t=oi)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await ii();await rp(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},hp=()=>Gd(Ia,Jr,Qd),gp=async e=>{let{config:t,filepath:n}=await Ko(Ia,Jr),r=dp.join(n,"..",t.publicDir,Xd),i=(await Mn([],!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,lp.default)(`https://${i}/${s}?name=${t.name}${u}`)).text(),d=new ap.Server((m,y)=>{if(m.url==="/"){cp.promises.readFile(r,{encoding:"utf-8"}).catch(x=>{pp.program.error(x.message)}).then(x=>{let I=c.replace("{{ui}}",x);return y.writeHead(200,{"Content-Length":Buffer.byteLength(I),"Content-Type":"text/html"}),y.end(I)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(Ra(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(Ra(t));(0,up.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=uw(e);d.listen(f),console.log(np(`Serving your extension at http://localhost:${f}`)+`
99
- `)},uw=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};ye();var yp=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(fp),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 ii(),i=Object.keys(o),s=await He({message:"What would you like to name your Designer Extension?",default:n,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0});if(s===null)throw new A("When --no-input mode is enabled please provide the [projectName] argument.");let a=await Oe({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:r||"default"});await mp(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(hp),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(gp)};Zl();var eg=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(Jl)};var _e=D(require("fs")),be=D(require("path"));q();var ji="astro",Yl="cloud-scaffolds";var tg="package.json",ng="webflow.json",rg="wf-placeholder-name",og="CLOUD_MOUNT_PATH",ig="gitignore";var Kl=async(e,t,n=ji,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=be.join(e,a.split(be.join(Yl,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),d=l||c;if(a.includes(tg)||a.includes(ng)){let m=(await _e.promises.readFile(a,"utf8")).replace(rg,e);await Li(u,m)}else if(d){let f=await _e.promises.readFile(a,"utf8");await Li(u,f.replace(og,t))}else if(be.basename(u).toLowerCase()===ig){let f=await _e.promises.readFile(a,"utf8"),m=be.join(be.dirname(u),".gitignore");await Li(m,f)}else{let f=await _e.promises.readFile(a);await Li(u,f)}}catch(u){p.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{Qt({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}},Xl=async()=>{try{let e={},t=be.join(be.resolve(__dirname),Yl);if(!_e.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await _e.promises.readdir(t);for(let r of n)try{let o=be.join(t,r);e[r]=await sg(o)}catch(o){p.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw p.error(`Error getting available scaffolds: ${e}`),e}},sg=async e=>{let t=[];try{if(!_e.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await _e.promises.readdir(e);for(let r of n)try{let o=be.join(e,r);(await _e.promises.stat(o)).isDirectory()?t.push(...await sg(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},Li=async(e,t)=>{try{await _e.promises.mkdir(be.dirname(e),{recursive:!0}),await _e.promises.writeFile(e,t)}catch(n){throw p.error(`Error writing file ${e}: ${n}`),n}};Zt();fe();function uE(e){return tt.forCloud({host:e.host||Y,authToken:e.authToken,siteId:e.siteId,projectId:e.projectId})}function Mi(e){let t=uE(e);return{service:t,handleError:Uo(t),trackUsage:Cd(t),trackPerformance:Vo(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 Re(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 Lt=D(require("fs")),Ql=D(require("path"));q();var Ni={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"}},$i=["nextjs","astro","remix"];async function ag(e=process.cwd()){let t=Ql.join(e,"package.json"),n=Ql.join(e,"webflow.json");if(!Lt.existsSync(t))throw new Error("No package.json file found");let r=null;if(Lt.existsSync(n))try{let i=JSON.parse(Lt.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!Ni[i]){let s=Object.keys(Ni).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!$i.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${$i.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(Lt.readFileSync(t,"utf8"));for(let s of $i){let u=Ni[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 ${$i.join(", ")} are currently supported.`);p.info(`Detected framework: ${r}`),Lt.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:Ni[r]}}var P=D(require("fs")),N=D(require("path")),dr=require("child_process"),sy=D(require("tar"));var oe=D(require("fs")),ve=D(require("path"));var Z={};Uu(Z,{BRAND:()=>RE,DIRTY:()=>sn,EMPTY_PATH:()=>fE,INVALID:()=>j,NEVER:()=>D_,OK:()=>ge,ParseStatus:()=>de,Schema:()=>U,ZodAny:()=>$t,ZodArray:()=>xt,ZodBigInt:()=>ln,ZodBoolean:()=>un,ZodBranded:()=>co,ZodCatch:()=>wn,ZodDate:()=>cn,ZodDefault:()=>Dn,ZodDiscriminatedUnion:()=>Ui,ZodEffects:()=>Me,ZodEnum:()=>yn,ZodError:()=>De,ZodFirstPartyTypeKind:()=>M,ZodFunction:()=>Gi,ZodIntersection:()=>mn,ZodIssueCode:()=>b,ZodLazy:()=>hn,ZodLiteral:()=>gn,ZodMap:()=>nr,ZodNaN:()=>or,ZodNativeEnum:()=>bn,ZodNever:()=>Xe,ZodNull:()=>pn,ZodNullable:()=>at,ZodNumber:()=>an,ZodObject:()=>we,ZodOptional:()=>je,ZodParsedType:()=>k,ZodPipeline:()=>po,ZodPromise:()=>Wt,ZodReadonly:()=>vn,ZodRecord:()=>Vi,ZodSchema:()=>U,ZodSet:()=>rr,ZodString:()=>Nt,ZodSymbol:()=>er,ZodTransformer:()=>Me,ZodTuple:()=>st,ZodType:()=>U,ZodUndefined:()=>dn,ZodUnion:()=>fn,ZodUnknown:()=>kt,ZodVoid:()=>tr,addIssueToContext:()=>w,any:()=>VE,array:()=>JE,bigint:()=>NE,boolean:()=>bg,coerce:()=>b_,custom:()=>hg,date:()=>$E,datetimeRegex:()=>fg,defaultErrorMap:()=>wt,discriminatedUnion:()=>XE,effect:()=>c_,enum:()=>a_,function:()=>o_,getErrorMap:()=>Kn,getParsedType:()=>it,instanceof:()=>LE,intersection:()=>QE,isAborted:()=>Wi,isAsync:()=>Xn,isDirty:()=>zi,isValid:()=>Mt,late:()=>jE,lazy:()=>i_,literal:()=>s_,makeIssue:()=>uo,map:()=>n_,nan:()=>ME,nativeEnum:()=>l_,never:()=>qE,null:()=>UE,nullable:()=>p_,number:()=>yg,object:()=>ZE,objectUtil:()=>eu,oboolean:()=>y_,onumber:()=>g_,optional:()=>d_,ostring:()=>h_,pipeline:()=>m_,preprocess:()=>f_,promise:()=>u_,quotelessJson:()=>cE,record:()=>t_,set:()=>r_,setErrorMap:()=>pE,strictObject:()=>YE,string:()=>gg,symbol:()=>WE,transformer:()=>c_,tuple:()=>e_,undefined:()=>zE,union:()=>KE,unknown:()=>GE,util:()=>G,void:()=>HE});var G;(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})(G||(G={}));var eu;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(eu||(eu={}));var k=G.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),it=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=G.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"]),cE=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),De=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,G.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()}};De.create=e=>new De(e);var dE=(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,G.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${G.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${G.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${G.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}"`:G.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,G.assertNever(e)}return{message:n}},wt=dE;var lg=wt;function pE(e){lg=e}function Kn(){return lg}var uo=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}},fE=[];function w(e,t){let n=Kn(),r=uo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===wt?void 0:wt].filter(o=>!!o)});e.common.issues.push(r)}var de=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 j;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 j;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}}},j=Object.freeze({status:"aborted"}),sn=e=>({status:"dirty",value:e}),ge=e=>({status:"valid",value:e}),Wi=e=>e.status==="aborted",zi=e=>e.status==="dirty",Mt=e=>e.status==="valid",Xn=e=>typeof Promise<"u"&&e instanceof Promise;var S;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(S||(S={}));var Le=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}},ug=(e,t)=>{if(Mt(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 De(e.common.issues);return this._error=n,this._error}}};function z(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 U=class{get description(){return this._def.description}_getType(t){return it(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:it(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new de,ctx:{common:t.parent.common,data:t.data,parsedType:it(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Xn(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:it(t)},o=this._parseSync({data:t,path:r.path,parent:r});return ug(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:it(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Mt(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=>Mt(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:it(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(Xn(o)?o:Promise.resolve(o));return ug(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 Me({schema:this,typeName:M.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 je.create(this,this._def)}nullable(){return at.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xt.create(this)}promise(){return Wt.create(this,this._def)}or(t){return fn.create([this,t],this._def)}and(t){return mn.create(this,t,this._def)}transform(t){return new Me({...z(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Dn({...z(this._def),innerType:this,defaultValue:n,typeName:M.ZodDefault})}brand(){return new co({typeName:M.ZodBranded,type:this,...z(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new wn({...z(this._def),innerType:this,catchValue:n,typeName:M.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return po.create(this,t)}readonly(){return vn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},mE=/^c[^\s-]{8,}$/i,hE=/^[0-9a-z]+$/,gE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,yE=/^[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,bE=/^[a-z0-9_-]{21}$/i,DE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wE=/^[-+]?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)?)??$/,vE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",tu,xE=/^(?:(?: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])$/,CE=/^(?:(?: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])$/,EE=/^(([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]))$/,_E=/^(([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])$/,FE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,SE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dg="((\\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])))",TE=new RegExp(`^${dg}$`);function pg(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 AE(e){return new RegExp(`^${pg(e)}$`)}function fg(e){let t=`${dg}T${pg(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 OE(e,t){return!!((t==="v4"||!t)&&xE.test(e)||(t==="v6"||!t)&&EE.test(e))}function PE(e,t){if(!DE.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 IE(e,t){return!!((t==="v4"||!t)&&CE.test(e)||(t==="v6"||!t)&&_E.test(e))}var Nt=class e extends U{_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}),j}let r=new de,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")vE.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")tu||(tu=new RegExp(kE,"u")),tu.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")yE.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")bE.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")mE.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")hE.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")gE.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"?fg(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"?TE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?AE(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"?wE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?OE(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"?PE(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"?IE(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"?FE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?SE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):G.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,...S.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...S.errToObj(t)})}url(t){return this._addCheck({kind:"url",...S.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...S.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...S.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...S.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...S.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...S.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...S.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...S.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...S.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...S.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...S.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...S.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,...S.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,...S.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...S.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...S.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...S.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...S.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...S.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...S.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...S.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...S.errToObj(n)})}nonempty(t){return this.min(1,S.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}};Nt.create=e=>new Nt({checks:[],typeName:M.ZodString,coerce:e?.coerce??!1,...z(e)});function BE(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 an=class e extends U{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}),j}let r,o=new de;for(let i of this._def.checks)i.kind==="int"?G.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"?BE(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()):G.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,S.toString(n))}gt(t,n){return this.setLimit("min",t,!1,S.toString(n))}lte(t,n){return this.setLimit("max",t,!0,S.toString(n))}lt(t,n){return this.setLimit("max",t,!1,S.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:S.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:S.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:S.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:S.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.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"&&G.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)}};an.create=e=>new an({checks:[],typeName:M.ZodNumber,coerce:e?.coerce||!1,...z(e)});var ln=class e extends U{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 de;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()):G.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}),j}gte(t,n){return this.setLimit("min",t,!0,S.toString(n))}gt(t,n){return this.setLimit("min",t,!1,S.toString(n))}lte(t,n){return this.setLimit("max",t,!0,S.toString(n))}lt(t,n){return this.setLimit("max",t,!1,S.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:S.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:S.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:S.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}};ln.create=e=>new ln({checks:[],typeName:M.ZodBigInt,coerce:e?.coerce??!1,...z(e)});var un=class extends U{_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}),j}return ge(t.data)}};un.create=e=>new un({typeName:M.ZodBoolean,coerce:e?.coerce||!1,...z(e)});var cn=class e extends U{_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}),j}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),j}let r=new de,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()):G.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:S.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:S.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}};cn.create=e=>new cn({checks:[],coerce:e?.coerce||!1,typeName:M.ZodDate,...z(e)});var er=class extends U{_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}),j}return ge(t.data)}};er.create=e=>new er({typeName:M.ZodSymbol,...z(e)});var dn=class extends U{_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}),j}return ge(t.data)}};dn.create=e=>new dn({typeName:M.ZodUndefined,...z(e)});var pn=class extends U{_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}),j}return ge(t.data)}};pn.create=e=>new pn({typeName:M.ZodNull,...z(e)});var $t=class extends U{constructor(){super(...arguments),this._any=!0}_parse(t){return ge(t.data)}};$t.create=e=>new $t({typeName:M.ZodAny,...z(e)});var kt=class extends U{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ge(t.data)}};kt.create=e=>new kt({typeName:M.ZodUnknown,...z(e)});var Xe=class extends U{_parse(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:k.never,received:n.parsedType}),j}};Xe.create=e=>new Xe({typeName:M.ZodNever,...z(e)});var tr=class extends U{_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}),j}return ge(t.data)}};tr.create=e=>new tr({typeName:M.ZodVoid,...z(e)});var xt=class e extends U{_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}),j;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 Le(n,s,n.path,a)))).then(s=>de.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Le(n,s,n.path,a)));return de.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:S.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:S.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:S.toString(n)}})}nonempty(t){return this.min(1,t)}};xt.create=(e,t)=>new xt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...z(t)});function Qn(e){if(e instanceof we){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=je.create(Qn(r))}return new we({...e._def,shape:()=>t})}else return e instanceof xt?new xt({...e._def,type:Qn(e.element)}):e instanceof je?je.create(Qn(e.unwrap())):e instanceof at?at.create(Qn(e.unwrap())):e instanceof st?st.create(e.items.map(t=>Qn(t))):e}var we=class e extends U{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=G.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}),j}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Xe&&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 Le(o,d,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Xe){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 Le(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=>de.mergeObjectSync(r,l)):de.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return S.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:S.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:M.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 G.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 G.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Qn(this)}partial(t){let n={};for(let r of G.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 G.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof je;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return mg(G.objectKeys(this.shape))}};we.create=(e,t)=>new we({shape:()=>e,unknownKeys:"strip",catchall:Xe.create(),typeName:M.ZodObject,...z(t)});we.strictCreate=(e,t)=>new we({shape:()=>e,unknownKeys:"strict",catchall:Xe.create(),typeName:M.ZodObject,...z(t)});we.lazycreate=(e,t)=>new we({shape:e,unknownKeys:"strip",catchall:Xe.create(),typeName:M.ZodObject,...z(t)});var fn=class extends U{_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 De(a.ctx.common.issues));return w(n,{code:b.invalid_union,unionErrors:s}),j}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 De(u));return w(n,{code:b.invalid_union,unionErrors:a}),j}}get options(){return this._def.options}};fn.create=(e,t)=>new fn({options:e,typeName:M.ZodUnion,...z(t)});var vt=e=>e instanceof hn?vt(e.schema):e instanceof Me?vt(e.innerType()):e instanceof gn?[e.value]:e instanceof yn?e.options:e instanceof bn?G.objectValues(e.enum):e instanceof Dn?vt(e._def.innerType):e instanceof dn?[void 0]:e instanceof pn?[null]:e instanceof je?[void 0,...vt(e.unwrap())]:e instanceof at?[null,...vt(e.unwrap())]:e instanceof co||e instanceof vn?vt(e.unwrap()):e instanceof wn?vt(e._def.innerType):[],Ui=class e extends U{_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}),j;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]}),j)}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=vt(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:M.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...z(r)})}};function nu(e,t){let n=it(e),r=it(t);if(e===t)return{valid:!0,data:e};if(n===k.object&&r===k.object){let o=G.objectKeys(t),i=G.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=nu(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=nu(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 mn=class extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(Wi(i)||Wi(s))return j;let a=nu(i.value,s.value);return a.valid?((zi(i)||zi(s))&&n.dirty(),{status:n.value,value:a.data}):(w(r,{code:b.invalid_intersection_types}),j)};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}))}};mn.create=(e,t,n)=>new mn({left:e,right:t,typeName:M.ZodIntersection,...z(n)});var st=class e extends U{_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}),j;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"}),j;!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 Le(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>de.mergeArray(n,s)):de.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};st.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new st({items:e,typeName:M.ZodTuple,rest:null,...z(t)})};var Vi=class e extends U{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}),j;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Le(r,a,r.path,a)),value:s._parse(new Le(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?de.mergeObjectAsync(n,o):de.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof U?new e({keyType:t,valueType:n,typeName:M.ZodRecord,...z(r)}):new e({keyType:Nt.create(),valueType:t,typeName:M.ZodRecord,...z(n)})}},nr=class extends U{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}),j;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Le(r,a,r.path,[l,"key"])),value:i._parse(new Le(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 j;(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 j;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}}}};nr.create=(e,t,n)=>new nr({valueType:t,keyType:e,typeName:M.ZodMap,...z(n)});var rr=class e extends U{_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}),j;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 j;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 Le(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:S.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:S.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};rr.create=(e,t)=>new rr({valueType:e,minSize:null,maxSize:null,typeName:M.ZodSet,...z(t)});var Gi=class e extends U{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}),j;function r(a,u){return uo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kn(),wt].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return uo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Kn(),wt].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 Wt){let a=this;return ge(async function(...u){let l=new De([]),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 ge(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new De([r(u,l.error)]);let c=Reflect.apply(s,this,l.data),d=a._def.returns.safeParse(c,i);if(!d.success)throw new De([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:st.create(t).rest(kt.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||st.create([]).rest(kt.create()),returns:n||kt.create(),typeName:M.ZodFunction,...z(r)})}},hn=class extends U{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})}};hn.create=(e,t)=>new hn({getter:e,typeName:M.ZodLazy,...z(t)});var gn=class extends U{_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}),j}return{status:"valid",value:t.data}}get value(){return this._def.value}};gn.create=(e,t)=>new gn({value:e,typeName:M.ZodLiteral,...z(t)});function mg(e,t){return new yn({values:e,typeName:M.ZodEnum,...z(t)})}var yn=class e extends U{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{expected:G.joinValues(r),received:n.parsedType,code:b.invalid_type}),j}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}),j}return ge(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})}};yn.create=mg;var bn=class extends U{_parse(t){let n=G.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==k.string&&r.parsedType!==k.number){let o=G.objectValues(n);return w(r,{expected:G.joinValues(o),received:r.parsedType,code:b.invalid_type}),j}if(this._cache||(this._cache=new Set(G.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=G.objectValues(n);return w(r,{received:r.data,code:b.invalid_enum_value,options:o}),j}return ge(t.data)}get enum(){return this._def.values}};bn.create=(e,t)=>new bn({values:e,typeName:M.ZodNativeEnum,...z(t)});var Wt=class extends U{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}),j;let r=n.parsedType===k.promise?n.data:Promise.resolve(n.data);return ge(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Wt.create=(e,t)=>new Wt({type:e,typeName:M.ZodPromise,...z(t)});var Me=class extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.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 j;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?j:u.status==="dirty"?sn(u.value):n.value==="dirty"?sn(u.value):u});{if(n.value==="aborted")return j;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?j:a.status==="dirty"?sn(a.value):n.value==="dirty"?sn(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"?j:(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"?j:(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(!Mt(s))return j;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=>Mt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):j);G.assertNever(o)}};Me.create=(e,t,n)=>new Me({schema:e,typeName:M.ZodEffects,effect:t,...z(n)});Me.createWithPreprocess=(e,t,n)=>new Me({schema:t,effect:{type:"preprocess",transform:e},typeName:M.ZodEffects,...z(n)});var je=class extends U{_parse(t){return this._getType(t)===k.undefined?ge(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};je.create=(e,t)=>new je({innerType:e,typeName:M.ZodOptional,...z(t)});var at=class extends U{_parse(t){return this._getType(t)===k.null?ge(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};at.create=(e,t)=>new at({innerType:e,typeName:M.ZodNullable,...z(t)});var Dn=class extends U{_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}};Dn.create=(e,t)=>new Dn({innerType:e,typeName:M.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...z(t)});var wn=class extends U{_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 Xn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new De(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new De(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};wn.create=(e,t)=>new wn({innerType:e,typeName:M.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...z(t)});var or=class extends U{_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}),j}return{status:"valid",value:t.data}}};or.create=e=>new or({typeName:M.ZodNaN,...z(e)});var RE=Symbol("zod_brand"),co=class extends U{_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}},po=class e extends U{_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"?j:i.status==="dirty"?(n.dirty(),sn(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"?j: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:M.ZodPipeline})}},vn=class extends U{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Mt(o)&&(o.value=Object.freeze(o.value)),o);return Xn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};vn.create=(e,t)=>new vn({innerType:e,typeName:M.ZodReadonly,...z(t)});function cg(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function hg(e,t={},n){return e?$t.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=cg(t,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=cg(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):$t.create()}var jE={object:we.lazycreate},M;(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"})(M||(M={}));var LE=(e,t={message:`Input not instance of ${e.name}`})=>hg(n=>n instanceof e,t),gg=Nt.create,yg=an.create,ME=or.create,NE=ln.create,bg=un.create,$E=cn.create,WE=er.create,zE=dn.create,UE=pn.create,VE=$t.create,GE=kt.create,qE=Xe.create,HE=tr.create,JE=xt.create,ZE=we.create,YE=we.strictCreate,KE=fn.create,XE=Ui.create,QE=mn.create,e_=st.create,t_=Vi.create,n_=nr.create,r_=rr.create,o_=Gi.create,i_=hn.create,s_=gn.create,a_=yn.create,l_=bn.create,u_=Wt.create,c_=Me.create,d_=je.create,p_=at.create,f_=Me.createWithPreprocess,m_=po.create,h_=()=>gg().optional(),g_=()=>yg().optional(),y_=()=>bg().optional(),b_={string:(e=>Nt.create({...e,coerce:!0})),number:(e=>an.create({...e,coerce:!0})),boolean:(e=>un.create({...e,coerce:!0})),bigint:(e=>ln.create({...e,coerce:!0})),date:(e=>cn.create({...e,coerce:!0}))};var D_=j;function qi(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(C,F){let V=0,L=0;for(;V<C||!F;){let E=e.charCodeAt(r);if(E>=48&&E<=57)L=L*16+E-48;else if(E>=65&&E<=70)L=L*16+E-65+10;else if(E>=97&&E<=102)L=L*16+E-97+10;else break;r++,V++}return V<C&&(L=-1),L}function m(C){r=C,o="",i=0,s=16,d=0}function y(){let C=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ir(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ir(e.charCodeAt(r)))for(r++;r<e.length&&ir(e.charCodeAt(r));)r++;else return d=3,e.substring(C,r);let F=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&&ir(e.charCodeAt(r))){for(r++;r<e.length&&ir(e.charCodeAt(r));)r++;F=r}else d=3;return e.substring(C,F)}function x(){let C="",F=r;for(;;){if(r>=n){C+=e.substring(F,r),d=2;break}let V=e.charCodeAt(r);if(V===34){C+=e.substring(F,r),r++;break}if(V===92){if(C+=e.substring(F,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:C+='"';break;case 92:C+="\\";break;case 47:C+="/";break;case 98:C+="\b";break;case 102:C+="\f";break;case 110:C+=`
100
- `;break;case 114:C+="\r";break;case 116:C+=" ";break;case 117:let E=f(4,!0);E>=0?C+=String.fromCharCode(E):d=4;break;default:d=5}F=r;continue}if(V>=0&&V<=31)if(fo(V)){C+=e.substring(F,r),d=2;break}else d=6;r++}return C}function I(){if(o="",d=0,i=r,u=a,c=l,r>=n)return i=n,s=17;let C=e.charCodeAt(r);if(ru(C)){do r++,o+=String.fromCharCode(C),C=e.charCodeAt(r);while(ru(C));return s=15}if(fo(C))return r++,o+=String.fromCharCode(C),C===13&&e.charCodeAt(r)===10&&(r++,o+=`
101
- `),a++,l=r,s=14;switch(C){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=x(),s=10;case 47:let F=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!fo(e.charCodeAt(r));)r++;return o=e.substring(F,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let V=n-1,L=!1;for(;r<V;){let E=e.charCodeAt(r);if(E===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,fo(E)&&(E===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return L||(r++,d=1),o=e.substring(F,r),s=13}return o+=String.fromCharCode(C),r++,s=16;case 45:if(o+=String.fromCharCode(C),r++,r===n||!ir(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&&O(C);)r++,C=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(C),r++,s=16}}function O(C){if(ru(C)||fo(C))return!1;switch(C){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function W(){let C;do C=I();while(C>=12&&C<=15);return C}return{setPosition:m,getPosition:()=>r,scan:t?W:I,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>d}}function ru(e){return e===32||e===9}function fo(e){return e===10||e===13}function ir(e){return e>=48&&e<=57}var Dg;(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"})(Dg||(Dg={}));var v_=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),sr=200,k_={" ":{"\n":new Array(sr).fill(0).map((e,t)=>`
102
- `+" ".repeat(t)),"\r":new Array(sr).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(sr).fill(0).map((e,t)=>`\r
103
- `+" ".repeat(t))}," ":{"\n":new Array(sr).fill(0).map((e,t)=>`
104
- `+" ".repeat(t)),"\r":new Array(sr).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(sr).fill(0).map((e,t)=>`\r
105
- `+" ".repeat(t))}};var Hi;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Hi||(Hi={}));function wg(e,t=[],n=Hi.DEFAULT){let r=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):r!==null&&(o[r]=u)}return vg(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 vg(e,t,n=Hi.DEFAULT){let r=qi(e,!1),o=[],i=0;function s($){return $?()=>i===0&&$(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a($){return $?X=>i===0&&$(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u($){return $?X=>i===0&&$(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l($){return $?()=>{i>0?i++:$(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c($){return $?()=>{i>0&&i--,i===0&&$(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),x=c(t.onArrayEnd),I=u(t.onLiteralValue),O=a(t.onSeparator),W=s(t.onComment),C=a(t.onError),F=n&&n.disallowComments,V=n&&n.allowTrailingComma;function L(){for(;;){let $=r.scan();switch(r.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:F||E(11);break;case 2:E(12);break;case 6:E(16);break}switch($){case 12:case 13:F?E(10):W();break;case 16:E(1);break;case 15:case 14:break;default:return $}}}function E($,X=[],Et=[]){if(C($),X.length+Et.length>0){let xo=r.getToken();for(;xo!==17;){if(X.indexOf(xo)!==-1){L();break}else if(Et.indexOf(xo)!==-1)break;xo=L()}}}function h($){let X=r.getTokenValue();return $?I(X):(f(X),o.push(X)),L(),!0}function g(){switch(r.getToken()){case 11:let $=r.getTokenValue(),X=Number($);isNaN(X)&&(E(2),X=0),I(X);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return L(),!0}function R(){return r.getToken()!==10?(E(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(O(":"),L(),We()||E(4,[],[2,5])):E(5,[],[2,5]),o.pop(),!0)}function v(){d(),L();let $=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if($||E(4,[],[]),O(","),L(),r.getToken()===2&&V)break}else $&&E(6,[],[]);R()||E(4,[],[2,5]),$=!0}return m(),r.getToken()!==2?E(7,[2],[]):L(),!0}function ae(){y(),L();let $=!0,X=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(X||E(4,[],[]),O(","),L(),r.getToken()===4&&V)break}else X&&E(6,[],[]);$?(o.push(0),$=!1):o[o.length-1]++,We()||E(4,[],[4,5]),X=!0}return x(),$||o.pop(),r.getToken()!==4?E(8,[4],[]):L(),!0}function We(){switch(r.getToken()){case 3:return ae();case 1:return v();case 10:return h(!0);default:return g()}}return L(),r.getToken()===17?n.allowEmptyContent?!0:(E(4,[],[]),!1):We()?(r.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}var kg;(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"})(kg||(kg={}));var xg;(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"})(xg||(xg={}));var ou=wg;var Cg;(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"})(Cg||(Cg={}));q();var Eg=Z.object({name:Z.string(),main:Z.string(),compatibility_date:Z.string(),compatibility_flags:Z.array(Z.string()).optional(),placement:Z.object({mode:Z.string()}).passthrough().optional(),assets:Z.object({directory:Z.string(),binding:Z.string().optional()}).passthrough().optional(),d1_databases:Z.array(Z.object({database_name:Z.string(),database_id:Z.string(),binding:Z.string(),migrations_dir:Z.string().optional()}).passthrough()).default([]),kv_namespaces:Z.array(Z.object({binding:Z.string(),id:Z.string()}).passthrough()).default([]),r2_buckets:Z.array(Z.object({binding:Z.string(),bucket_name:Z.string()}).passthrough()).default([])}).passthrough();function _g(e,t="wrangler.json"){let n=ve.join(e,t);if(!oe.existsSync(n)){if(t.endsWith(".json"))return p.warn(`/${t} not found, checking for /${t}c`),_g(e,t+"c");p.warn(`/${t} not found`);return}let r=oe.readFileSync(n,"utf8");p.info(`reading /${t}...`);let o;try{o=ou(r)}catch(i){p.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Eg.parse(o);return p.info(`successfully loaded /${t}`),i}catch(i){p.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function Fg(e,t,n={}){if(!oe.existsSync(e))return 0;oe.mkdirSync(t,{recursive:!0});let r=oe.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=ve.join(e,i.name),a=ve.join(t,i.name);i.isDirectory()?o+=Fg(s,a,n):(oe.copyFileSync(s,a),o++)}return o}async function Sg(e,t){let n=null,r=null,o=ve.join(t,"wrangler.json"),i=ve.join(t,"wrangler.jsonc");oe.existsSync(o)?(n=o,r=".json"):oe.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(p.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),oe.copyFileSync(n,ve.join(t,`clouduser.wrangler${r}`)));let s=n?_g(t,ve.basename(n)):null,a=ve.join(__dirname,e.config.wrangler_template_path),u=ve.join(t,"wrangler.json");if(!oe.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`),oe.copyFileSync(a,u),!s)return;let l=JSON.parse(oe.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`)),oe.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=ve.join(t,f);if(!oe.existsSync(m)){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=ve.join(t,"clouduser","migrations",f),x=Fg(m,y);x>0?p.info(`copied ${x} migrations to /clouduser/migrations/${f}`):p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function A_(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 Tg(e){let t=null;for(let i of[".json",".jsonc"]){let s=ve.join(e,`clouduser.wrangler${i}`);if(oe.existsSync(s)){t=s;break}}if(!t)return;let n=oe.readFileSync(t,"utf8"),r;try{r=ou(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Eg.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)A_(i.bucket_name)}}q();var lt=D(hu());ye();async function ay(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=N.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||N.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=yu(n);await Re(t.telemetry,"cloud_build_start",!0,0,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),P.mkdirSync(o,{recursive:!0});try{p.info(lt.default.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
106
- `)),await rF(n,e.framework,t.telemetry),p.info(lt.default.green(`--- \u{1F527} Setting up framework configuration ----------------------
107
- `)),await oF(n,e,s,t.deployUrl,t.environmentId),p.info(lt.default.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
108
- `)),await Sg(e,n),Tg(n),p.info(lt.default.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
109
- `)),p.info(`running ${e.config.build_command}...`),await iF(n,e.config.build_command,t.telemetry),p.info(lt.default.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
110
- `)),await sF(n,i),p.info(lt.default.green(`--- \u{1F4C1} Copying assets ------------------------------------------
111
- `)),await aF(n,i,e,s),p.info(lt.default.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
112
- `));let l=await lF(i),c=Date.now()-a;return p.info(`\u2705 Build completed in ${(c/1e3).toFixed(1)}s`),await Re(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 Re(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 yu(e){let t=N.join(e,"wrangler.json");if(!P.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(P.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 ly(e){try{let t=N.dirname(e);t.includes(".tmp/webflow-build-")&&(p.info(lt.default.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
113
- `)),P.rmSync(t,{recursive:!0,force:!0}))}catch(t){p.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function uy(e,t){try{if(!t.config.config_template_path)return;let n=N.join(__dirname,t.config.config_template_path),r=N.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));p.info(lt.default.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
114
- `));for(let s of["mjs","cjs","js","ts"]){let a=N.join(e,`clouduser.${o}.${s}`),u=N.join(e,`${o}.${s}`);if(P.existsSync(a)){p.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),P.existsSync(u)&&P.unlinkSync(u),P.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=N.join(e,`clouduser.wrangler${s}`);if(P.existsSync(a)){p.info(`restoring user wrangler${s} from backup...`);let u=N.join(e,"wrangler.json");P.existsSync(u)&&P.unlinkSync(u);let l=N.join(e,`wrangler${s}`);P.renameSync(a,l);break}}let i=N.join(e,"clouduser");P.existsSync(i)&&(p.info("cleaning up clouduser directory..."),P.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=N.join(e,N.basename(s));P.existsSync(a)&&(p.info(`cleaning up additional config file ${a}...`),P.unlinkSync(a))}}catch(n){p.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function rF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=N.join(e,"package.json"),u=JSON.parse(P.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,dr.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=N.join(e,"package-lock.json");P.existsSync(i)?(p.info("Running npm ci..."),(0,dr.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(p.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,dr.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await Re(n,"cloud_install_dependencies_success",!0,s,{framework:t,hasPackageLock:P.existsSync(N.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await Re(n,"cloud_install_dependencies_failure",!1,s,{framework:t,hasPackageLock:P.existsSync(N.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 oF(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=N.join(__dirname,t.config.config_template_path),s=N.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let d of["mjs","cjs","js","ts"]){let f=N.join(e,`${a}.${d}`);if(P.existsSync(f)){let m=N.join(e,`clouduser.${a}.${d}`);p.info(`renaming user base config /${a}.${d} to /clouduser.${a}.${d}...`),P.renameSync(f,m);break}}let u=N.join(e,s);p.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=P.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);P.writeFileSync(u,c);for(let d of t.config.additional_config_files||[]){let f=N.join(__dirname,d);P.statSync(f,{throwIfNoEntry:!1})?(p.info(`copying additional config file /${d} to ${N.join(e,N.basename(d))}`),P.copyFileSync(f,N.join(e,N.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,dr.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await Re(n,"cloud_build_command_success",!0,a,{buildCommand:t})}catch(o){let i=Date.now()-r;throw await Re(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 sF(e,t){P.mkdirSync(t,{recursive:!0});let n=N.join(e,"wrangler.json"),r=N.join(e,"wrangler.jsonc");if(!P.existsSync(n)&&!P.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,dr.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function aF(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=N.join(e,o);if(P.existsSync(d)&&P.statSync(d).isDirectory()){let m=P.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=N.join(t,"assets",s||"");P.mkdirSync(a,{recursive:!0});let u=N.join(e,o);if(P.existsSync(u)&&P.statSync(u).isDirectory()){p.info(`copying assets from /${o} to output/assets...`);try{i?(p.info(`excluding ${i}`),cy(u,a,i)):gu(u,a)}catch(d){p.error(d,{prefix:"Failed to copy assets:"})}}else p.info("No assets to copy or assets directory not found");let l=N.join(e,"webflow.json");P.existsSync(l)&&P.copyFileSync(l,N.join(t,"webflow.json"));let c=null;for(let d of[".json",".jsonc"]){let f=N.join(e,`clouduser.wrangler${d}`);if(P.existsSync(f)){c=f;break}}if(c){p.info("including user wrangler config in output..."),P.copyFileSync(c,N.join(t,"clouduser.wrangler.json"));let d=N.join(e,"clouduser","migrations");if(P.existsSync(d)){p.info("copying migrations from clouduser/migrations to output/migrations...");let f=N.join(t,"migrations");gu(d,f)}}}async function lF(e){let t=`${e}.tar.gz`;try{return await sy.create({gzip:!0,file:t,cwd:N.dirname(e)},[N.basename(e)]),p.info(`Tarball created: ${t}`),t}catch(n){throw new A(n,{prefix:"Failed to create tarball:"})}}function gu(e,t){P.mkdirSync(t,{recursive:!0});let n=P.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=N.join(e,r.name),i=N.join(t,r.name);r.isDirectory()?gu(o,i):P.copyFileSync(o,i)}}function cy(e,t,n){P.mkdirSync(t,{recursive:!0});let r=P.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=N.join(e,o.name),s=N.join(t,o.name);o.isDirectory()?cy(i,s,n):P.copyFileSync(i,s)}}Ge();fe();q();var uF="DUPLICATE_ENVIRONMENT_MOUNT",cF="ENVIRONMENT_MOUNT_MISMATCH",dF="DUPLICATE_ENVIRONMENT_BRANCH",pF="INVALID_MOUNT_PATH_FORMAT",fF="INVALID_PROJECT_ID",dy={[uF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[cF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[dF]:"An environment with this branch already exists for this project.",[pF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[fF]:"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 py(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 dy)if(n.includes(r))return dy[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var pr=D(require("fs")),bu=require("child_process");q();ye();var fy=104857600;function my(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 mF(){try{let e=(0,bu.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,bu.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 Du(e,t){let{accessToken:n}=Je(),r=await fetch(`${Y}${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=py(i);throw new Error(s)}return r.json()}async function hy(e,t,n){let{manifest:r}=ie(),o=r.cloud||{},i=o.project_id,s=o.framework;if(!s)throw new A("No framework specified in webflow.json. Please ensure your webflow.json has a cloud.framework property");let{siteId:a,accessToken:u}=Je(),l=await hF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:n?.projectName,description:n?.description,directory:n?.directory,version:mF()});return!i&&l.project_id&&(p.info("\u{1F4DD} Updating webflow.json with project ID..."),pe({cloud:{...o,project_id:l.project_id}})),l}async function hF(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),Du(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function gy(e){let{siteId:t}=Je();return Du(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function yy(){let{siteId:e}=Je();return Du(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function by(e,t){if(!pr.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=pr.statSync(e);if(n.size>fy)throw new Error(`Build output is too large (${my(n.size)}). Maximum allowed size is ${my(fy)}.`);let r=pr.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 new A(u,{prefix:"\u274C Upload failed with response:"})}}async function Dy(e,t){if(!e||e==="undefined")throw new A("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 A(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}Xs();q();async function wy(e,t){let{siteId:n,accessToken:r}=Je(),o=An("Validating mount path configuration...").start();try{let i=await qr(r,n),s=await ka(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 xa(m),x=Array.isArray(y.cosmic)?y.cosmic.map(O=>O.mountPath).filter(O=>typeof O=="string"):[],I=Ca(y,e,t);return{domain:m,mountPaths:x,isValid:I===!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 vy(e,t){let{siteId:n,accessToken:r}=Je();try{let o=await qr(r,n),i=await ka(r,n),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await xa(l),d=Array.isArray(c.cosmic)?c.cosmic.map(m=>m.mountPath).filter(m=>typeof m=="string"):[],f=Ca(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 ky(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function xy(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await Jo({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 Cy(){return await At({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 wu(e){let{siteId:t,accessToken:n}=Je(),r=An(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await qr(n,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await Nd(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")}}Ge();q();var _y=D(hu());fe();Ae();ye();var Xi=async()=>{try{let e=await Xl();return Object.keys(e)}catch(e){return p.error(e,{prefix:"Failed to get available scaffolds:"}),[]}},vu=async(e,t,n=ji,r)=>{let o=`./${e}`,i=await Xl(),s=null,a=!1;try{let u=Date.now(),l=await Ln({clientId:Ea,scope:_a}),c=await Zo(l);if(c.length===0)throw new A("No Webflow sites found in your account. Please make sure you have at least one site in your Webflow account.");let d;if(r){if(d=c.find(m=>m.id===r),!d)throw p.info("Available sites:"),c.forEach(m=>{p.info(`- ${m.displayName} (ID: ${m.id})`)}),new A(`Site with ID "${r}" not found in your account.`);p.info(`Using site: ${d.displayName} (${d.id})`)}else d=await Yo(c);s=Mi({authToken:l,siteId:d.id}),await Kl(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 gF({site:d.id,apiToken:l}),a=!0}catch(m){p.error(m,{prefix:"Failed to run devlink sync:"}),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}),Ey(e)}catch(u){throw p.error(u,{prefix:"Error during Webflow authentication:"}),await Kl(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"),Ey(e),new A(u,{skipLogging:!0})}},gF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(Zl(),Qh));await t(void 0,{site:e.site,apiToken:e.apiToken})},yF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=ie();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},bF=async(e,t,n)=>{p.info("\u{1F50D} Validating mount path configuration...");let r=await wy(e,t);if(r.isValid)p.info("\u2705 Mount path validation passed");else if(p.info(`
115
- \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 wu(o)}else if(await Cy()&&Qe()){let i=r.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await xy(i);await wu(s)}else p.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},DF=async(e,t,n,r)=>{p.info(`
116
- \u{1F3D7}\uFE0F Building project...`);let o=await ay(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 by(o,t.upload_url);let s=Date.now()-i;return p.info(`\u2705 Upload completed in ${(s/1e3).toFixed(1)}s`),o},wF=async(e,t)=>{p.success(`
117
- \u{1F310} Your cloud app will soon be available at:`);try{let n=await vy(e,t),r=ky(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}`)}},vF=e=>{e.site_slug?p.success(`Visit your deployment:
118
-
119
- ${In}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):p.info(`
120
- Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},kF=async(e,t,n)=>{try{await Dy(e.completion_url,!!n),n?p.error(`
121
- \u274C Deployment failed due to build error.`):(p.success(`
122
- \u2705 Deployment triggered successfully!`),await wF(t,e.environment_id),vF(e))}catch(r){throw new A(r,{prefix:"Failed to trigger deployment:"})}},xF=(e,t)=>{e&&uy(process.cwd(),e),t&&ly(t)},Fy=async(e,t,n)=>{let r=null,o=null,i=Date.now(),s=null,a=null,u=yu(process.cwd());await Re(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 ag(),p.info(`Framework: ${s.framework}`),p.info(`Build command: ${s.config.build_command}`),p.info("\u{1F3D7}\uFE0F Building project..."),r=await hy(e,t,n),yF(n)?p.info("\u23ED\uFE0F Skipping mount path validation..."):await bF(t,r.environment_id,n?.autoPublish),o=await DF(s,r,t,n),p.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let l=Date.now()-i;await Re(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(a,{prefix:"Error during deployment initialization:"});let c=Date.now()-i;await Re(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{if(xF(s,o),r&&await kF(r,t,a),a)throw new A(a,{skipLogging:!0})}},Ey=e=>{p.info("--- "),p.info(_y.default.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
123
-
124
- `),p.info("Run the following command to sync Webflow components when they update:"),p.info(` webflow devlink sync
125
- `),p.info("--- ")};Ge();q();Ae();var Sy=D(require("path"));function kn(e){if(!e||e.trim()==="")return"/";let t=Sy.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 Qi(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}ye();var Ty=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 Xi()).find(a=>a===o)){p.error(`Framework ${o} not found`);return}await vu(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await Xi();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 Xi(),i={};if(r&&Qe()){if(!n.projectName){let d=await He({message:"What would you like to name your project?",validate:f=>f.trim()===""?"Project name cannot be empty":!0});if(d==null)throw new A("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");i.projectName=d}if(n.framework||(i.scaffoldName=await Oe({message:"Which framework would you like to use?",choices:o.map(d=>({name:d,value:d})),default:"astro"})),!n.mount){let d=await He({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=kn(d)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,u=n.mount||i.mountPath||"/app",l=n.siteId,c=kn(u);if(!s||typeof s!="string"||s.trim()==="")throw new A("--project-name cannot be empty");if(!a||typeof a!="string"||!o.includes(a)){let d=o.map(f=>`- ${f}`).join(`
126
- `);throw new A(`--framework "${a||"undefined"}" not found
86
+ \u2570`+t+"\u256F"};var zc=async(e,t=Lc,n=To,r)=>{let o=r[n];try{for(let i of o){let s=Se.join(t,i),a=Gb(s,n,e);if(i.includes(Nc)||i.includes(Or))await Vb(i,a,e);else{let u=await Ct.promises.readFile(i);await Vc(a,u)}}}catch(i){console.error("Error writing file, ",i)}},Wc=async()=>{let e={},t=Se.resolve(__dirname),n=Se.join(t,Ks),r=await Ct.promises.readdir(n);for(let o of r){let i=Se.join(n,o),s=await Uc(i);e[o]=s}return e},Uc=async e=>{let t=[];try{let n=await Ct.promises.readdir(e);for(let r of n){let o=Se.join(e,r);if((await Ct.promises.stat(o)).isDirectory()){let s=await Uc(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Se}, `,n)}return t},Vc=async(e,t)=>{try{await Ct.promises.mkdir(Se.dirname(e),{recursive:!0}),await Ct.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},Vb=async(e,t,n)=>Ct.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Mc,n);await Vc(t,o)}),Gb=(e,t,n)=>{let r=Se.join(Ks,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Se.join(n,i)}return""};var Oo=async()=>await Wc(),Yc=async()=>{let e=await Oo(),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"')},Xc=async(e,t=To)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Oo();await zc(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},Qc=()=>Sc(Zs,Or,Rc),ep=async e=>{let{config:t,filepath:n}=await xo(Zs,Or),r=Zc.join(n,"..",t.publicDir,jc),i=(await En([],!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,qc.default)(`https://${i}/${s}?name=${t.name}${u}`)).text(),p=new Gc.Server((m,y)=>{if(m.url==="/"){Jc.promises.readFile(r,{encoding:"utf-8"}).catch(C=>{Kc.program.error(C.message)}).then(C=>{let P=c.replace("{{ui}}",C);return y.writeHead(200,{"Content-Length":Buffer.byteLength(P),"Content-Type":"text/html"}),y.end(P)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(Ys(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(Ys(t));(0,Hc.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=qb(e);p.listen(f),console.log($c(`Serving your extension at http://localhost:${f}`)+`
87
+ `)},qb=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};me();var tp=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(Yc),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 Oo(),i=Object.keys(o),s=await ze({message:"What would you like to name your Designer Extension?",default:n,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0});if(s===null)throw new E("When --no-input mode is enabled please provide the [projectName] argument.");let a=await Ee({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:r||"default"});await Xc(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(Qc),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(ep)};cl();var $m=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(ul)};var xe=D(require("fs")),he=D(require("path"));q();var ai="astro",pl="cloud-scaffolds";var zm="package.json",Wm="webflow.json",Um="wf-placeholder-name",Vm="CLOUD_MOUNT_PATH",Gm="gitignore";var dl=async(e,t,n=ai,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=he.join(e,a.split(he.join(pl,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),p=l||c;if(a.includes(zm)||a.includes(Wm)){let m=(await xe.promises.readFile(a,"utf8")).replace(Um,e);await li(u,m)}else if(p){let f=await xe.promises.readFile(a,"utf8");await li(u,f.replace(Vm,t))}else if(he.basename(u).toLowerCase()===Gm){let f=await xe.promises.readFile(a,"utf8"),m=he.join(he.dirname(u),".gitignore");await li(m,f)}else{let f=await xe.promises.readFile(a);await li(u,f)}}catch(u){d.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{Vt({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}},fl=async()=>{try{let e={},t=he.join(he.resolve(__dirname),pl);if(!xe.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await xe.promises.readdir(t);for(let r of n)try{let o=he.join(t,r);e[r]=await qm(o)}catch(o){d.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw d.error(`Error getting available scaffolds: ${e}`),e}},qm=async e=>{let t=[];try{if(!xe.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await xe.promises.readdir(e);for(let r of n)try{let o=he.join(e,r);(await xe.promises.stat(o)).isDirectory()?t.push(...await qm(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},li=async(e,t)=>{try{await xe.promises.mkdir(he.dirname(e),{recursive:!0}),await xe.promises.writeFile(e,t)}catch(n){throw d.error(`Error writing file ${e}: ${n}`),n}};wt();var At=D(require("fs")),ml=D(require("path"));q();var ui={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"}},ci=["nextjs","astro","remix"];async function Hm(e=process.cwd()){let t=ml.join(e,"package.json"),n=ml.join(e,"webflow.json");if(!At.existsSync(t))throw new Error("No package.json file found");let r=null;if(At.existsSync(n))try{let i=JSON.parse(At.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!ui[i]){let s=Object.keys(ui).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!ci.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${ci.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(At.readFileSync(t,"utf8"));for(let s of ci){let u=ui[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 ${ci.join(", ")} are currently supported.`);d.info(`Detected framework: ${r}`),At.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:ui[r]}}var O=D(require("fs")),N=D(require("path")),Kn=require("child_process"),gh=D(require("tar"));var ne=D(require("fs")),be=D(require("path"));var Z={};Hl(Z,{BRAND:()=>DC,DIRTY:()=>Kt,EMPTY_PATH:()=>Y1,INVALID:()=>j,NEVER:()=>rF,OK:()=>de,ParseStatus:()=>le,Schema:()=>U,ZodAny:()=>Pt,ZodArray:()=>ft,ZodBigInt:()=>Xt,ZodBoolean:()=>Qt,ZodBranded:()=>Hr,ZodCatch:()=>pn,ZodDate:()=>en,ZodDefault:()=>cn,ZodDiscriminatedUnion:()=>fi,ZodEffects:()=>Ie,ZodEnum:()=>ln,ZodError:()=>ge,ZodFirstPartyTypeKind:()=>L,ZodFunction:()=>hi,ZodIntersection:()=>on,ZodIssueCode:()=>b,ZodLazy:()=>sn,ZodLiteral:()=>an,ZodMap:()=>Gn,ZodNaN:()=>Hn,ZodNativeEnum:()=>un,ZodNever:()=>qe,ZodNull:()=>nn,ZodNullable:()=>tt,ZodNumber:()=>Yt,ZodObject:()=>ye,ZodOptional:()=>Oe,ZodParsedType:()=>x,ZodPipeline:()=>Jr,ZodPromise:()=>It,ZodReadonly:()=>dn,ZodRecord:()=>mi,ZodSchema:()=>U,ZodSet:()=>qn,ZodString:()=>Ot,ZodSymbol:()=>Un,ZodTransformer:()=>Ie,ZodTuple:()=>et,ZodType:()=>U,ZodUndefined:()=>tn,ZodUnion:()=>rn,ZodUnknown:()=>dt,ZodVoid:()=>Vn,addIssueToContext:()=>w,any:()=>SC,array:()=>PC,bigint:()=>xC,boolean:()=>oh,coerce:()=>nF,custom:()=>th,date:()=>CC,datetimeRegex:()=>Qm,defaultErrorMap:()=>ct,discriminatedUnion:()=>RC,effect:()=>JC,enum:()=>GC,function:()=>WC,getErrorMap:()=>$n,getParsedType:()=>Qe,instanceof:()=>vC,intersection:()=>LC,isAborted:()=>pi,isAsync:()=>zn,isDirty:()=>di,isValid:()=>Tt,late:()=>wC,lazy:()=>UC,literal:()=>VC,makeIssue:()=>qr,map:()=>$C,nan:()=>kC,nativeEnum:()=>qC,never:()=>TC,null:()=>EC,nullable:()=>KC,number:()=>rh,object:()=>IC,objectUtil:()=>hl,oboolean:()=>tF,onumber:()=>eF,optional:()=>ZC,ostring:()=>QC,pipeline:()=>XC,preprocess:()=>YC,promise:()=>HC,quotelessJson:()=>J1,record:()=>MC,set:()=>zC,setErrorMap:()=>K1,strictObject:()=>BC,string:()=>nh,symbol:()=>FC,transformer:()=>JC,tuple:()=>NC,undefined:()=>_C,union:()=>jC,unknown:()=>AC,util:()=>V,void:()=>OC});var V;(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})(V||(V={}));var hl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hl||(hl={}));var x=V.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Qe=e=>{switch(typeof e){case"undefined":return x.undefined;case"string":return x.string;case"number":return Number.isNaN(e)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":return Array.isArray(e)?x.array:e===null?x.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?x.promise:typeof Map<"u"&&e instanceof Map?x.map:typeof Set<"u"&&e instanceof Set?x.set:typeof Date<"u"&&e instanceof Date?x.date:x.object;default:return x.unknown}};var b=V.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"]),J1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ge=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,V.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()}};ge.create=e=>new ge(e);var Z1=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===x.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,V.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${V.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${V.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${V.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}"`:V.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,V.assertNever(e)}return{message:n}},ct=Z1;var Jm=ct;function K1(e){Jm=e}function $n(){return Jm}var qr=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}},Y1=[];function w(e,t){let n=$n(),r=qr({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 j;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 j;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}}},j=Object.freeze({status:"aborted"}),Kt=e=>({status:"dirty",value:e}),de=e=>({status:"valid",value:e}),pi=e=>e.status==="aborted",di=e=>e.status==="dirty",Tt=e=>e.status==="valid",zn=e=>typeof Promise<"u"&&e instanceof Promise;var S;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(S||(S={}));var Pe=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}},Zm=(e,t)=>{if(Tt(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 ge(e.common.issues);return this._error=n,this._error}}};function $(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 U=class{get description(){return this._def.description}_getType(t){return Qe(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Qe(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:Qe(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(zn(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:Qe(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Zm(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Qe(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Tt(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=>Tt(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:Qe(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(zn(o)?o:Promise.resolve(o));return Zm(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 Ie({schema:this,typeName:L.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 Oe.create(this,this._def)}nullable(){return tt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ft.create(this)}promise(){return It.create(this,this._def)}or(t){return rn.create([this,t],this._def)}and(t){return on.create(this,t,this._def)}transform(t){return new Ie({...$(this._def),schema:this,typeName:L.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new cn({...$(this._def),innerType:this,defaultValue:n,typeName:L.ZodDefault})}brand(){return new Hr({typeName:L.ZodBranded,type:this,...$(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new pn({...$(this._def),innerType:this,catchValue:n,typeName:L.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Jr.create(this,t)}readonly(){return dn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},X1=/^c[^\s-]{8,}$/i,Q1=/^[0-9a-z]+$/,eC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tC=/^[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,nC=/^[a-z0-9_-]{21}$/i,rC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,oC=/^[-+]?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)?)??$/,iC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",gl,aC=/^(?:(?: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])$/,lC=/^(?:(?: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])$/,uC=/^(([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]))$/,cC=/^(([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])$/,pC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,dC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ym="((\\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])))",fC=new RegExp(`^${Ym}$`);function Xm(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 mC(e){return new RegExp(`^${Xm(e)}$`)}function Qm(e){let t=`${Ym}T${Xm(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 hC(e,t){return!!((t==="v4"||!t)&&aC.test(e)||(t==="v6"||!t)&&uC.test(e))}function gC(e,t){if(!rC.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 yC(e,t){return!!((t==="v4"||!t)&&lC.test(e)||(t==="v6"||!t)&&cC.test(e))}var Ot=class e extends U{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==x.string){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.string,received:i.parsedType}),j}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")iC.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")gl||(gl=new RegExp(sC,"u")),gl.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")tC.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")nC.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")X1.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")Q1.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")eC.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"?Qm(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"?fC.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?mC(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"?oC.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?hC(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"?gC(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"?yC(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"?pC.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?dC.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):V.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,...S.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...S.errToObj(t)})}url(t){return this._addCheck({kind:"url",...S.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...S.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...S.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...S.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...S.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...S.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...S.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...S.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...S.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...S.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...S.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...S.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,...S.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,...S.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...S.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...S.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...S.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...S.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...S.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...S.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...S.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...S.errToObj(n)})}nonempty(t){return this.min(1,S.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}};Ot.create=e=>new Ot({checks:[],typeName:L.ZodString,coerce:e?.coerce??!1,...$(e)});function bC(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 U{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)!==x.number){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.number,received:i.parsedType}),j}let r,o=new le;for(let i of this._def.checks)i.kind==="int"?V.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"?bC(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()):V.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,S.toString(n))}gt(t,n){return this.setLimit("min",t,!1,S.toString(n))}lte(t,n){return this.setLimit("max",t,!0,S.toString(n))}lt(t,n){return this.setLimit("max",t,!1,S.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:S.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:S.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:S.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:S.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.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"&&V.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:L.ZodNumber,coerce:e?.coerce||!1,...$(e)});var Xt=class e extends U{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)!==x.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()):V.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.bigint,received:n.parsedType}),j}gte(t,n){return this.setLimit("min",t,!0,S.toString(n))}gt(t,n){return this.setLimit("min",t,!1,S.toString(n))}lte(t,n){return this.setLimit("max",t,!0,S.toString(n))}lt(t,n){return this.setLimit("max",t,!1,S.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:S.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:S.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:S.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}};Xt.create=e=>new Xt({checks:[],typeName:L.ZodBigInt,coerce:e?.coerce??!1,...$(e)});var Qt=class extends U{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==x.boolean){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.boolean,received:r.parsedType}),j}return de(t.data)}};Qt.create=e=>new Qt({typeName:L.ZodBoolean,coerce:e?.coerce||!1,...$(e)});var en=class e extends U{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==x.date){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.date,received:i.parsedType}),j}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),j}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()):V.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:S.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:S.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}};en.create=e=>new en({checks:[],coerce:e?.coerce||!1,typeName:L.ZodDate,...$(e)});var Un=class extends U{_parse(t){if(this._getType(t)!==x.symbol){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.symbol,received:r.parsedType}),j}return de(t.data)}};Un.create=e=>new Un({typeName:L.ZodSymbol,...$(e)});var tn=class extends U{_parse(t){if(this._getType(t)!==x.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.undefined,received:r.parsedType}),j}return de(t.data)}};tn.create=e=>new tn({typeName:L.ZodUndefined,...$(e)});var nn=class extends U{_parse(t){if(this._getType(t)!==x.null){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.null,received:r.parsedType}),j}return de(t.data)}};nn.create=e=>new nn({typeName:L.ZodNull,...$(e)});var Pt=class extends U{constructor(){super(...arguments),this._any=!0}_parse(t){return de(t.data)}};Pt.create=e=>new Pt({typeName:L.ZodAny,...$(e)});var dt=class extends U{constructor(){super(...arguments),this._unknown=!0}_parse(t){return de(t.data)}};dt.create=e=>new dt({typeName:L.ZodUnknown,...$(e)});var qe=class extends U{_parse(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.never,received:n.parsedType}),j}};qe.create=e=>new qe({typeName:L.ZodNever,...$(e)});var Vn=class extends U{_parse(t){if(this._getType(t)!==x.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.void,received:r.parsedType}),j}return de(t.data)}};Vn.create=e=>new Vn({typeName:L.ZodVoid,...$(e)});var ft=class e extends U{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==x.array)return w(n,{code:b.invalid_type,expected:x.array,received:n.parsedType}),j;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 Pe(n,s,n.path,a)))).then(s=>le.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Pe(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:S.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:S.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:S.toString(n)}})}nonempty(t){return this.min(1,t)}};ft.create=(e,t)=>new ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:L.ZodArray,...$(t)});function Wn(e){if(e instanceof ye){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Oe.create(Wn(r))}return new ye({...e._def,shape:()=>t})}else return e instanceof ft?new ft({...e._def,type:Wn(e.element)}):e instanceof Oe?Oe.create(Wn(e.unwrap())):e instanceof tt?tt.create(Wn(e.unwrap())):e instanceof et?et.create(e.items.map(t=>Wn(t))):e}var ye=class e extends U{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=V.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==x.object){let l=this._getOrReturnCtx(t);return w(l,{code:b.invalid_type,expected:x.object,received:l.parsedType}),j}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof qe&&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 Pe(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof qe){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 Pe(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=>le.mergeObjectSync(r,l)):le.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return S.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:S.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:L.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 V.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 V.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Wn(this)}partial(t){let n={};for(let r of V.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 V.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Oe;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return eh(V.objectKeys(this.shape))}};ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:qe.create(),typeName:L.ZodObject,...$(t)});ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:qe.create(),typeName:L.ZodObject,...$(t)});ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:qe.create(),typeName:L.ZodObject,...$(t)});var rn=class extends U{_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 ge(a.ctx.common.issues));return w(n,{code:b.invalid_union,unionErrors:s}),j}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 ge(u));return w(n,{code:b.invalid_union,unionErrors:a}),j}}get options(){return this._def.options}};rn.create=(e,t)=>new rn({options:e,typeName:L.ZodUnion,...$(t)});var pt=e=>e instanceof sn?pt(e.schema):e instanceof Ie?pt(e.innerType()):e instanceof an?[e.value]:e instanceof ln?e.options:e instanceof un?V.objectValues(e.enum):e instanceof cn?pt(e._def.innerType):e instanceof tn?[void 0]:e instanceof nn?[null]:e instanceof Oe?[void 0,...pt(e.unwrap())]:e instanceof tt?[null,...pt(e.unwrap())]:e instanceof Hr||e instanceof dn?pt(e.unwrap()):e instanceof pn?pt(e._def.innerType):[],fi=class e extends U{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==x.object)return w(n,{code:b.invalid_type,expected:x.object,received:n.parsedType}),j;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]}),j)}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=pt(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:L.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...$(r)})}};function yl(e,t){let n=Qe(e),r=Qe(t);if(e===t)return{valid:!0,data:e};if(n===x.object&&r===x.object){let o=V.objectKeys(t),i=V.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=yl(e[a],t[a]);if(!u.valid)return{valid:!1};s[a]=u.data}return{valid:!0,data:s}}else if(n===x.array&&r===x.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=yl(s,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===x.date&&r===x.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var on=class extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(pi(i)||pi(s))return j;let a=yl(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}),j)};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}))}};on.create=(e,t,n)=>new on({left:e,right:t,typeName:L.ZodIntersection,...$(n)});var et=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==x.array)return w(r,{code:b.invalid_type,expected:x.array,received:r.parsedType}),j;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"}),j;!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 Pe(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})}};et.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new et({items:e,typeName:L.ZodTuple,rest:null,...$(t)})};var mi=class e extends U{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!==x.object)return w(r,{code:b.invalid_type,expected:x.object,received:r.parsedType}),j;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Pe(r,a,r.path,a)),value:s._parse(new Pe(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 U?new e({keyType:t,valueType:n,typeName:L.ZodRecord,...$(r)}):new e({keyType:Ot.create(),valueType:t,typeName:L.ZodRecord,...$(n)})}},Gn=class extends U{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!==x.map)return w(r,{code:b.invalid_type,expected:x.map,received:r.parsedType}),j;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Pe(r,a,r.path,[l,"key"])),value:i._parse(new Pe(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 j;(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 j;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}}}};Gn.create=(e,t,n)=>new Gn({valueType:t,keyType:e,typeName:L.ZodMap,...$(n)});var qn=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==x.set)return w(r,{code:b.invalid_type,expected:x.set,received:r.parsedType}),j;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 j;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 Pe(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:S.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:S.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};qn.create=(e,t)=>new qn({valueType:e,minSize:null,maxSize:null,typeName:L.ZodSet,...$(t)});var hi=class e extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==x.function)return w(n,{code:b.invalid_type,expected:x.function,received:n.parsedType}),j;function r(a,u){return qr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$n(),ct].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return qr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$n(),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 It){let a=this;return de(async function(...u){let l=new ge([]),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 de(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new ge([r(u,l.error)]);let c=Reflect.apply(s,this,l.data),p=a._def.returns.safeParse(c,i);if(!p.success)throw new ge([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:et.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||et.create([]).rest(dt.create()),returns:n||dt.create(),typeName:L.ZodFunction,...$(r)})}},sn=class extends U{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})}};sn.create=(e,t)=>new sn({getter:e,typeName:L.ZodLazy,...$(t)});var an=class extends U{_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}),j}return{status:"valid",value:t.data}}get value(){return this._def.value}};an.create=(e,t)=>new an({value:e,typeName:L.ZodLiteral,...$(t)});function eh(e,t){return new ln({values:e,typeName:L.ZodEnum,...$(t)})}var ln=class e extends U{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{expected:V.joinValues(r),received:n.parsedType,code:b.invalid_type}),j}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}),j}return de(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})}};ln.create=eh;var un=class extends U{_parse(t){let n=V.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==x.string&&r.parsedType!==x.number){let o=V.objectValues(n);return w(r,{expected:V.joinValues(o),received:r.parsedType,code:b.invalid_type}),j}if(this._cache||(this._cache=new Set(V.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=V.objectValues(n);return w(r,{received:r.data,code:b.invalid_enum_value,options:o}),j}return de(t.data)}get enum(){return this._def.values}};un.create=(e,t)=>new un({values:e,typeName:L.ZodNativeEnum,...$(t)});var It=class extends U{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==x.promise&&n.common.async===!1)return w(n,{code:b.invalid_type,expected:x.promise,received:n.parsedType}),j;let r=n.parsedType===x.promise?n.data:Promise.resolve(n.data);return de(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};It.create=(e,t)=>new It({type:e,typeName:L.ZodPromise,...$(t)});var Ie=class extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===L.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 j;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?j:u.status==="dirty"?Kt(u.value):n.value==="dirty"?Kt(u.value):u});{if(n.value==="aborted")return j;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?j:a.status==="dirty"?Kt(a.value):n.value==="dirty"?Kt(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"?j:(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"?j:(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(!Tt(s))return j;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=>Tt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):j);V.assertNever(o)}};Ie.create=(e,t,n)=>new Ie({schema:e,typeName:L.ZodEffects,effect:t,...$(n)});Ie.createWithPreprocess=(e,t,n)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:L.ZodEffects,...$(n)});var Oe=class extends U{_parse(t){return this._getType(t)===x.undefined?de(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Oe.create=(e,t)=>new Oe({innerType:e,typeName:L.ZodOptional,...$(t)});var tt=class extends U{_parse(t){return this._getType(t)===x.null?de(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};tt.create=(e,t)=>new tt({innerType:e,typeName:L.ZodNullable,...$(t)});var cn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===x.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};cn.create=(e,t)=>new cn({innerType:e,typeName:L.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...$(t)});var pn=class extends U{_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 zn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ge(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ge(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};pn.create=(e,t)=>new pn({innerType:e,typeName:L.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...$(t)});var Hn=class extends U{_parse(t){if(this._getType(t)!==x.nan){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.nan,received:r.parsedType}),j}return{status:"valid",value:t.data}}};Hn.create=e=>new Hn({typeName:L.ZodNaN,...$(e)});var DC=Symbol("zod_brand"),Hr=class extends U{_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}},Jr=class e extends U{_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"?j:i.status==="dirty"?(n.dirty(),Kt(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"?j: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:L.ZodPipeline})}},dn=class extends U{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Tt(o)&&(o.value=Object.freeze(o.value)),o);return zn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};dn.create=(e,t)=>new dn({innerType:e,typeName:L.ZodReadonly,...$(t)});function Km(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function th(e,t={},n){return e?Pt.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=Km(t,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=Km(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Pt.create()}var wC={object:ye.lazycreate},L;(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"})(L||(L={}));var vC=(e,t={message:`Input not instance of ${e.name}`})=>th(n=>n instanceof e,t),nh=Ot.create,rh=Yt.create,kC=Hn.create,xC=Xt.create,oh=Qt.create,CC=en.create,FC=Un.create,_C=tn.create,EC=nn.create,SC=Pt.create,AC=dt.create,TC=qe.create,OC=Vn.create,PC=ft.create,IC=ye.create,BC=ye.strictCreate,jC=rn.create,RC=fi.create,LC=on.create,NC=et.create,MC=mi.create,$C=Gn.create,zC=qn.create,WC=hi.create,UC=sn.create,VC=an.create,GC=ln.create,qC=un.create,HC=It.create,JC=Ie.create,ZC=Oe.create,KC=tt.create,YC=Ie.createWithPreprocess,XC=Jr.create,QC=()=>nh().optional(),eF=()=>rh().optional(),tF=()=>oh().optional(),nF={string:e=>Ot.create({...e,coerce:!0}),number:e=>Yt.create({...e,coerce:!0}),boolean:e=>Qt.create({...e,coerce:!0}),bigint:e=>Xt.create({...e,coerce:!0}),date:e=>en.create({...e,coerce:!0})};var rF=j;function gi(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(k,_){let G=0,R=0;for(;G<k||!_;){let F=e.charCodeAt(r);if(F>=48&&F<=57)R=R*16+F-48;else if(F>=65&&F<=70)R=R*16+F-65+10;else if(F>=97&&F<=102)R=R*16+F-97+10;else break;r++,G++}return G<k&&(R=-1),R}function m(k){r=k,o="",i=0,s=16,p=0}function y(){let k=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Jn(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Jn(e.charCodeAt(r)))for(r++;r<e.length&&Jn(e.charCodeAt(r));)r++;else return p=3,e.substring(k,r);let _=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&&Jn(e.charCodeAt(r))){for(r++;r<e.length&&Jn(e.charCodeAt(r));)r++;_=r}else p=3;return e.substring(k,_)}function C(){let k="",_=r;for(;;){if(r>=n){k+=e.substring(_,r),p=2;break}let G=e.charCodeAt(r);if(G===34){k+=e.substring(_,r),r++;break}if(G===92){if(k+=e.substring(_,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:k+='"';break;case 92:k+="\\";break;case 47:k+="/";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+=`
88
+ `;break;case 114:k+="\r";break;case 116:k+=" ";break;case 117:let F=f(4,!0);F>=0?k+=String.fromCharCode(F):p=4;break;default:p=5}_=r;continue}if(G>=0&&G<=31)if(Zr(G)){k+=e.substring(_,r),p=2;break}else p=6;r++}return k}function P(){if(o="",p=0,i=r,u=a,c=l,r>=n)return i=n,s=17;let k=e.charCodeAt(r);if(bl(k)){do r++,o+=String.fromCharCode(k),k=e.charCodeAt(r);while(bl(k));return s=15}if(Zr(k))return r++,o+=String.fromCharCode(k),k===13&&e.charCodeAt(r)===10&&(r++,o+=`
89
+ `),a++,l=r,s=14;switch(k){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=C(),s=10;case 47:let _=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Zr(e.charCodeAt(r));)r++;return o=e.substring(_,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let G=n-1,R=!1;for(;r<G;){let F=e.charCodeAt(r);if(F===42&&e.charCodeAt(r+1)===47){r+=2,R=!0;break}r++,Zr(F)&&(F===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return R||(r++,p=1),o=e.substring(_,r),s=13}return o+=String.fromCharCode(k),r++,s=16;case 45:if(o+=String.fromCharCode(k),r++,r===n||!Jn(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(k);)r++,k=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(k),r++,s=16}}function A(k){if(bl(k)||Zr(k))return!1;switch(k){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function z(){let k;do k=P();while(k>=12&&k<=15);return k}return{setPosition:m,getPosition:()=>r,scan:t?z:P,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>p}}function bl(e){return e===32||e===9}function Zr(e){return e===10||e===13}function Jn(e){return e>=48&&e<=57}var ih;(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"})(ih||(ih={}));var iF=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Zn=200,sF={" ":{"\n":new Array(Zn).fill(0).map((e,t)=>`
90
+ `+" ".repeat(t)),"\r":new Array(Zn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Zn).fill(0).map((e,t)=>`\r
91
+ `+" ".repeat(t))}," ":{"\n":new Array(Zn).fill(0).map((e,t)=>`
92
+ `+" ".repeat(t)),"\r":new Array(Zn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Zn).fill(0).map((e,t)=>`\r
93
+ `+" ".repeat(t))}};var yi;(function(e){e.DEFAULT={allowTrailingComma:!1}})(yi||(yi={}));function sh(e,t=[],n=yi.DEFAULT){let r=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):r!==null&&(o[r]=u)}return ah(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 ah(e,t,n=yi.DEFAULT){let r=gi(e,!1),o=[],i=0;function s(M){return M?()=>i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(M){return M?X=>i===0&&M(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(M){return M?X=>i===0&&M(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(M){return M?()=>{i>0?i++:M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(M){return M?()=>{i>0&&i--,i===0&&M(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),C=c(t.onArrayEnd),P=u(t.onLiteralValue),A=a(t.onSeparator),z=s(t.onComment),k=a(t.onError),_=n&&n.disallowComments,G=n&&n.allowTrailingComma;function R(){for(;;){let M=r.scan();switch(r.getTokenError()){case 4:F(14);break;case 5:F(15);break;case 3:F(13);break;case 1:_||F(11);break;case 2:F(12);break;case 6:F(16);break}switch(M){case 12:case 13:_?F(10):z();break;case 16:F(1);break;case 15:case 14:break;default:return M}}}function F(M,X=[],ht=[]){if(k(M),X.length+ht.length>0){let ro=r.getToken();for(;ro!==17;){if(X.indexOf(ro)!==-1){R();break}else if(ht.indexOf(ro)!==-1)break;ro=R()}}}function h(M){let X=r.getTokenValue();return M?P(X):(f(X),o.push(X)),R(),!0}function g(){switch(r.getToken()){case 11:let M=r.getTokenValue(),X=Number(M);isNaN(X)&&(F(2),X=0),P(X);break;case 7:P(null);break;case 8:P(!0);break;case 9:P(!1);break;default:return!1}return R(),!0}function B(){return r.getToken()!==10?(F(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(A(":"),R(),je()||F(4,[],[2,5])):F(5,[],[2,5]),o.pop(),!0)}function v(){p(),R();let M=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||F(4,[],[]),A(","),R(),r.getToken()===2&&G)break}else M&&F(6,[],[]);B()||F(4,[],[2,5]),M=!0}return m(),r.getToken()!==2?F(7,[2],[]):R(),!0}function ie(){y(),R();let M=!0,X=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(X||F(4,[],[]),A(","),R(),r.getToken()===4&&G)break}else X&&F(6,[],[]);M?(o.push(0),M=!1):o[o.length-1]++,je()||F(4,[],[4,5]),X=!0}return C(),M||o.pop(),r.getToken()!==4?F(8,[4],[]):R(),!0}function je(){switch(r.getToken()){case 3:return ie();case 1:return v();case 10:return h(!0);default:return g()}}return R(),r.getToken()===17?n.allowEmptyContent?!0:(F(4,[],[]),!1):je()?(r.getToken()!==17&&F(9,[],[]),!0):(F(4,[],[]),!1)}var lh;(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"})(lh||(lh={}));var uh;(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"})(uh||(uh={}));var Dl=sh;var ch;(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"})(ch||(ch={}));q();var ph=Z.object({name:Z.string(),main:Z.string(),compatibility_date:Z.string(),compatibility_flags:Z.array(Z.string()).optional(),placement:Z.object({mode:Z.string()}).passthrough().optional(),assets:Z.object({directory:Z.string(),binding:Z.string().optional()}).passthrough().optional(),d1_databases:Z.array(Z.object({database_name:Z.string(),database_id:Z.string(),binding:Z.string(),migrations_dir:Z.string().optional()}).passthrough()).default([]),kv_namespaces:Z.array(Z.object({binding:Z.string(),id:Z.string()}).passthrough()).default([]),r2_buckets:Z.array(Z.object({binding:Z.string(),bucket_name:Z.string()}).passthrough()).default([])}).passthrough();function dh(e,t="wrangler.json"){let n=be.join(e,t);if(!ne.existsSync(n)){if(t.endsWith(".json"))return d.warn(`/${t} not found, checking for /${t}c`),dh(e,t+"c");d.warn(`/${t} not found`);return}let r=ne.readFileSync(n,"utf8");d.info(`reading /${t}...`);let o;try{o=Dl(r)}catch(i){d.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=ph.parse(o);return d.info(`successfully loaded /${t}`),i}catch(i){d.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function fh(e,t,n={}){if(!ne.existsSync(e))return 0;ne.mkdirSync(t,{recursive:!0});let r=ne.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=be.join(e,i.name),a=be.join(t,i.name);i.isDirectory()?o+=fh(s,a,n):(ne.copyFileSync(s,a),o++)}return o}async function mh(e,t){let n=null,r=null,o=be.join(t,"wrangler.json"),i=be.join(t,"wrangler.jsonc");ne.existsSync(o)?(n=o,r=".json"):ne.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(d.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),ne.copyFileSync(n,be.join(t,`clouduser.wrangler${r}`)));let s=n?dh(t,be.basename(n)):null,a=be.join(__dirname,e.config.wrangler_template_path),u=be.join(t,"wrangler.json");if(!ne.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`),ne.copyFileSync(a,u),!s)return;let l=JSON.parse(ne.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`)),ne.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=be.join(t,f);if(!ne.existsSync(m)){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=be.join(t,"clouduser","migrations",f),C=fh(m,y);C>0?d.info(`copied ${C} migrations to /clouduser/migrations/${f}`):d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function mF(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 hh(e){let t=null;for(let i of[".json",".jsonc"]){let s=be.join(e,`clouduser.wrangler${i}`);if(ne.existsSync(s)){t=s;break}}if(!t)return;let n=ne.readFileSync(t,"utf8"),r;try{r=Dl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=ph.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)mF(i.bucket_name)}}q();He();me();bt();async function yh(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=N.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||N.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=vl(n),l=t.telemetry;await l?.sendUsage("cloud_build_start",{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),O.mkdirSync(o,{recursive:!0});try{d.info(W.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
94
+ `)),await hF(n,e.framework,t.telemetry),d.info(W.green(`--- \u{1F527} Setting up framework configuration ----------------------
95
+ `)),await gF(n,e,s,t.deployUrl,t.environmentId),d.info(W.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
96
+ `)),await mh(e,n),hh(n),d.info(W.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
97
+ `)),d.info(`running ${e.config.build_command}...`),await yF(n,e.config.build_command,t.telemetry),d.info(W.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
98
+ `)),await bF(n,i),d.info(W.green(`--- \u{1F4C1} Copying assets ------------------------------------------
99
+ `)),await DF(n,i,e,s),d.info(W.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
100
+ `));let c=await wF(i),p=Date.now()-a;return d.info(`${ce} Build completed in ${(p/1e3).toFixed(1)}s`),await l?.sendUsage("cloud_build_success",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),c}catch(c){let p=Date.now()-a;throw await l?.sendError(c instanceof Error?c:new Error(String(c)),"cloud_build_failure",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),c}}function vl(e){let t=N.join(e,"wrangler.json");if(!O.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(O.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 bh(e){try{let t=N.dirname(e);t.includes(".tmp/webflow-build-")&&(d.info(W.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
101
+ `)),O.rmSync(t,{recursive:!0,force:!0}))}catch(t){d.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function Dh(e,t){try{if(!t.config.config_template_path)return;let n=N.join(__dirname,t.config.config_template_path),r=N.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));d.info(W.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
102
+ `));for(let s of["mjs","cjs","js","ts"]){let a=N.join(e,`clouduser.${o}.${s}`),u=N.join(e,`${o}.${s}`);if(O.existsSync(a)){d.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),O.existsSync(u)&&O.unlinkSync(u),O.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=N.join(e,`clouduser.wrangler${s}`);if(O.existsSync(a)){d.info(`restoring user wrangler${s} from backup...`);let u=N.join(e,"wrangler.json");O.existsSync(u)&&O.unlinkSync(u);let l=N.join(e,`wrangler${s}`);O.renameSync(a,l);break}}let i=N.join(e,"clouduser");O.existsSync(i)&&(d.info("cleaning up clouduser directory..."),O.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=N.join(e,N.basename(s));O.existsSync(a)&&(d.info(`cleaning up additional config file ${a}...`),O.unlinkSync(a))}}catch(n){d.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function hF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=N.join(e,"package.json"),u=JSON.parse(O.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,Kn.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=N.join(e,"package-lock.json");O.existsSync(i)?(d.info("Running npm ci..."),(0,Kn.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(d.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,Kn.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await n?.sendUsage("cloud_install_dependencies_success",{duration:s,framework:t,hasPackageLock:O.existsSync(N.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await n?.sendError(i instanceof Error?i:new Error(String(i)),"cloud_install_dependencies_failure",{duration:s,framework:t,hasPackageLock:O.existsSync(N.join(e,"package-lock.json"))}),i}}async function gF(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=N.join(__dirname,t.config.config_template_path),s=N.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let p of["mjs","cjs","js","ts"]){let f=N.join(e,`${a}.${p}`);if(O.existsSync(f)){let m=N.join(e,`clouduser.${a}.${p}`);d.info(`renaming user base config /${a}.${p} to /clouduser.${a}.${p}...`),O.renameSync(f,m);break}}let u=N.join(e,s);d.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=O.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);O.writeFileSync(u,c);for(let p of t.config.additional_config_files||[]){let f=N.join(__dirname,p);O.statSync(f,{throwIfNoEntry:!1})?(d.info(`copying additional config file /${p} to ${N.join(e,N.basename(p))}`),O.copyFileSync(f,N.join(e,N.basename(p)))):d.warn(`additional config file /${p} does not exist; skipping`)}}async function yF(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,Kn.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await n?.sendUsage("cloud_build_command_success",{duration:a,buildCommand:t})}catch(o){let i=Date.now()-r;throw await n?.sendError(o instanceof Error?o:new Error(String(o)),"cloud_build_command_failure",{duration:i,buildCommand:t}),new Error(`Build command failed: ${t}`)}}async function bF(e,t){O.mkdirSync(t,{recursive:!0});let n=N.join(e,"wrangler.json"),r=N.join(e,"wrangler.jsonc");if(!O.existsSync(n)&&!O.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,Kn.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function DF(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=N.join(e,o);if(O.existsSync(p)&&O.statSync(p).isDirectory()){let m=O.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=N.join(t,"assets",s||"");O.mkdirSync(a,{recursive:!0});let u=N.join(e,o);if(O.existsSync(u)&&O.statSync(u).isDirectory()){d.info(`copying assets from /${o} to output/assets...`);try{i?(d.info(`excluding ${i}`),wh(u,a,i)):wl(u,a)}catch(p){d.error(p,{prefix:"Failed to copy assets:"})}}else d.info("No assets to copy or assets directory not found");let l=N.join(e,"webflow.json");O.existsSync(l)&&O.copyFileSync(l,N.join(t,"webflow.json"));let c=null;for(let p of[".json",".jsonc"]){let f=N.join(e,`clouduser.wrangler${p}`);if(O.existsSync(f)){c=f;break}}if(c){d.info("including user wrangler config in output..."),O.copyFileSync(c,N.join(t,"clouduser.wrangler.json"));let p=N.join(e,"clouduser","migrations");if(O.existsSync(p)){d.info("copying migrations from clouduser/migrations to output/migrations...");let f=N.join(t,"migrations");wl(p,f)}}}async function wF(e){let t=`${e}.tar.gz`;try{return await gh.create({gzip:!0,file:t,cwd:N.dirname(e)},[N.basename(e)]),d.info(`Tarball created: ${t}`),t}catch(n){throw new E(n,{prefix:"Failed to create tarball:"})}}function wl(e,t){O.mkdirSync(t,{recursive:!0});let n=O.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=N.join(e,r.name),i=N.join(t,r.name);r.isDirectory()?wl(o,i):O.copyFileSync(o,i)}}function wh(e,t,n){O.mkdirSync(t,{recursive:!0});let r=O.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=N.join(e,o.name),s=N.join(t,o.name);o.isDirectory()?wh(i,s,n):O.copyFileSync(i,s)}}Ne();fe();q();var vF="DUPLICATE_ENVIRONMENT_MOUNT",kF="ENVIRONMENT_MOUNT_MISMATCH",xF="DUPLICATE_ENVIRONMENT_BRANCH",CF="INVALID_MOUNT_PATH_FORMAT",FF="INVALID_PROJECT_ID",vh={[vF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[kF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[xF]:"An environment with this branch already exists for this project.",[CF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[FF]:"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 kh(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 vh)if(n.includes(r))return vh[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var Yn=D(require("fs")),kl=require("child_process");q();me();bt();var xh=104857600;function Ch(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 _F(){try{let e=(0,kl.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,kl.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 xl(e,t){let{accessToken:n}=We(),r=await fetch(`${K}${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=kh(i);throw new Error(s)}return r.json()}async function Fh(e,t,n){let{manifest:r}=re(),o=r.cloud||{},i=o.project_id,s=o.framework;if(!s)throw new E("No framework specified in webflow.json. Please ensure your webflow.json has a cloud.framework property");let{siteId:a,accessToken:u}=We(),l=await EF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:n?.projectName,description:n?.description,directory:n?.directory,version:_F()});return!i&&l.project_id&&(d.info("\u{1F4DD} Updating webflow.json with project ID..."),ue({cloud:{...o,project_id:l.project_id}})),l}async function EF(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),xl(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function _h(e){let{siteId:t}=We();return xl(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function Eh(){let{siteId:e}=We();return xl(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function Sh(e,t){if(!Yn.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=Yn.statSync(e);if(n.size>xh)throw new Error(`Build output is too large (${Ch(n.size)}). Maximum allowed size is ${Ch(xh)}.`);let r=Yn.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 new E(u,{prefix:`${Me} Upload failed with response:`})}}async function Ah(e,t){if(!e||e==="undefined")throw new E("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 E(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}cs();q();async function Th(e,t){let{siteId:n,accessToken:r}=We(),o=bn("Validating mount path configuration...").start();try{let i=await Ar(r,n),s=await Ls(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 Ns(m),C=Array.isArray(y.cosmic)?y.cosmic.map(A=>A.mountPath).filter(A=>typeof A=="string"):[],P=Ms(y,e,t);return{domain:m,mountPaths:C,isValid:P===!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 Oh(e,t){let{siteId:n,accessToken:r}=We();try{let o=await Ar(r,n),i=await Ls(r,n),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await Ns(l),p=Array.isArray(c.cosmic)?c.cosmic.map(m=>m.mountPath).filter(m=>typeof m=="string"):[],f=Ms(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 Ph(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function Ih(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await wo({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 xt({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 Cl(e){let{siteId:t,accessToken:n}=We(),r=bn(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await Ar(n,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await vc(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")}}Ne();q();He();fe();_e();me();bt();var bi=async()=>{try{let e=await fl();return Object.keys(e)}catch(e){return d.error(e,{prefix:"Failed to get available scaffolds:"}),[]}},Fl=async(e,t,n=ai,r)=>{let o=`./${e}`,i=await fl(),s=null,a=!1;try{let u=Date.now(),l=await _n({clientId:$s,scope:zs}),c=await vo(l);if(c.length===0)throw new E("No Webflow sites found in your account. Please make sure you have at least one site in your Webflow account.");let p;if(r){if(p=c.find(m=>m.id===r),!p)throw d.info("Available sites:"),c.forEach(m=>{d.info(`- ${m.displayName} (ID: ${m.id})`)}),new E(`Site with ID "${r}" not found in your account.`);d.info(`Using site: ${p.displayName} (${p.id})`)}else p=await ko(c);s=De.forCloud({authToken:l,siteId:p.id}),await dl(e,t,n,i,p.id,l),process.chdir(o),d.info("Running devlink sync to fetch your Webflow components...");try{await SF({site:p.id,apiToken:l}),a=!0}catch(m){d.error(m,{prefix:"Failed to run devlink sync:"}),d.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}let f=Date.now()-u;await s?.sendUsage("project_init",{scaffold:n,scaffoldName:n,devlinkSyncStatus:a,totalDuration:f,mountPath:t}),jh(e)}catch(u){throw d.error(u,{prefix:"Error during Webflow authentication:"}),await dl(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"),jh(e),new E(u,{skipLogging:!0})}},SF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(cl(),Mm));await t(void 0,{site:e.site,apiToken:e.apiToken})},AF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=re();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},TF=async(e,t,n)=>{d.info("\u{1F50D} Validating mount path configuration...");let r=await Th(e,t);if(r.isValid)d.info(`${ce} Mount path validation passed`);else if(d.info(`
103
+ \u{1F4CB} Mount path validation results:`),r.domains.forEach(o=>{let i=o.isValid?ce:Me,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 Cl(o)}else if(await Bh()&&Je()){let i=r.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await Ih(i);await Cl(s)}else d.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},OF=async(e,t,n,r)=>{d.info(`
104
+ \u{1F3D7}\uFE0F Building project...`);let o=await yh(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 Sh(o,t.upload_url);let s=Date.now()-i;return d.info(`${ce} Upload completed in ${(s/1e3).toFixed(1)}s`),o},PF=async(e,t)=>{d.success(`
105
+ \u{1F310} Your cloud app will soon be available at:`);try{let n=await Oh(e,t),r=Ph(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}`)}},IF=e=>{e.site_slug?d.success(`Visit your deployment:
106
+
107
+ ${kn}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):d.info(`
108
+ Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},BF=async(e,t,n)=>{try{await Ah(e.completion_url,!!n),n?d.error(`
109
+ ${Me} Deployment failed due to build error.`):(d.success(`
110
+ ${ce} Deployment triggered successfully!`),await PF(t,e.environment_id),IF(e))}catch(r){throw new E(r,{prefix:"Failed to trigger deployment:"})}},jF=(e,t)=>{e&&Dh(process.cwd(),e),t&&bh(t)},Rh=async(e,t,n)=>{let r=null,o=null,i=Date.now(),s=null,a=null,u=vl(process.cwd()),l=n?.telemetry;await l?.sendUsage("cloud_deploy_start",{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u});try{d.info("\u{1F527} Detecting framework..."),s=await Hm(),d.info(`Framework: ${s.framework}`),d.info(`Build command: ${s.config.build_command}`),d.info("\u{1F3D7}\uFE0F Building project..."),r=await Fh(e,t,n),AF(n)?d.info("\u23ED\uFE0F Skipping mount path validation..."):await TF(t,r.environment_id,n?.autoPublish),o=await OF(s,r,t,n),d.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let c=Date.now()-i;await l?.sendUsage("cloud_deploy_success",{duration:c,environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,framework:s.framework,buildCommand:s.config.build_command,cloudflareBindings:u})}catch(c){a=c instanceof Error?c:new Error(String(c)),d.error(a,{prefix:"Error during deployment initialization:"});let p=Date.now()-i;await l?.sendError(a,"cloud_deploy_failure",{duration:p,environment:e,mountPath:t,projectName:n?.projectName,cloudflareBindings:u,argv:process.argv.slice(2)})}finally{if(jF(s,o),r&&await BF(r,t,a),a)throw new E(a,{skipLogging:!0})}},jh=e=>{d.info("--- "),d.info(W.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
111
+
112
+ `),d.info("Run the following command to sync Webflow components when they update:"),d.info(` webflow devlink sync
113
+ `),d.info("--- ")};Ne();wt();q();_e();var Lh=D(require("path"));function fn(e){if(!e||e.trim()==="")return"/";let t=Lh.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 Di(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}me();var Nh=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 bi()).find(a=>a===o)){d.error(`Framework ${o} not found`);return}await Fl(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await bi();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 bi(),i={};if(r&&Je()){if(!n.projectName){let p=await ze({message:"What would you like to name your project?",validate:f=>f.trim()===""?"Project name cannot be empty":!0});if(p==null)throw new E("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");i.projectName=p}if(n.framework||(i.scaffoldName=await Ee({message:"Which framework would you like to use?",choices:o.map(p=>({name:p,value:p})),default:"astro"})),!n.mount){let p=await ze({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=fn(p)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,u=n.mount||i.mountPath||"/app",l=n.siteId,c=fn(u);if(!s||typeof s!="string"||s.trim()==="")throw new E("--project-name cannot be empty");if(!a||typeof a!="string"||!o.includes(a)){let p=o.map(f=>`- ${f}`).join(`
114
+ `);throw new E(`--framework "${a||"undefined"}" not found
127
115
 
128
116
  Available frameworks:
129
- ${d}`)}if(typeof c!="string"||!Qi(c))throw new A("Invalid mount path: "+c);if(!l&&(!r||ce()))throw new A("--site-id is required");await vu(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}=Je();r=Mi({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){throw p.error(`Error: Could not change to directory ${n.directory}`),new A(d)}let{manifest:o}=ie(),s=(o.cloud||{}).project_id,a,u,l=n.projectName,c=n.description;if(n.environment&&n.mount){if(a=n.environment,u=kn(n.mount),!Qi(u))throw new A("Invalid mount path: "+u)}else{let d=[];if(!s){if(!l&&ce())throw new A("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");try{let m=await yy();if(m.projects.length>0){let y=await Oe({message:"Select a project to deploy to:",choices:[...m.projects.map(x=>({name:`${x.name} (${x.description||"No description"})`,value:x.id})),{name:"Create new project",value:null}]});y?(s=y,p.info("\u{1F4DD} Updating webflow.json with project ID..."),pe({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 He({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 gy(s)).environments.map(x=>({name:`${x.branch} (${x.mount})`,value:{branch:x.branch,mount:x.mount}}));d.push(...y)}catch(m){throw new A(m,{prefix:"Error fetching project environments:"})}d.push({name:"Create new environment",value:null});let f=await Oe({message:"Select an environment to deploy to:",choices:d});if(f)a=f.branch,u=kn(f.mount);else if(n.environment?a=n.environment:a=await He({message:"What environment would you like to deploy to?",default:"main",validate:m=>m.trim()===""?"Environment cannot be empty":!0}),n.mount)u=kn(n.mount);else{let m=await He({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=kn(m)}}if(!Qi(u))throw new A("Invalid mount path: "+u);await Fy(a,u,{projectName:l,description:c,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:r})}catch(o){throw new A(o,{prefix:"Error during deployment setup:"})}})};var Cn=require("commander");var gs=require("path"),wr=require("@webflow/data-types");fe();var Ay=D(require("md5"));function yo(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,Ay.default)(o),size:r,...n}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Oy=D(require("node-fetch")),Py=D(require("form-data"));async function ku(e,t){let n={...t.fields,file:e.value},r=new Py.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,Oy.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});CF(o)}function CF(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}`)}}q();Ge();Zt();fe();Pn();function EF({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:`${Y}/v2/sites/${n}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${Y}/v2/workspaces`,authToken:e}}function _F(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function FF(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 Ut({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=EF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await qe(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:_F(n)});return await FF(a),a.json()}async function xu({options:e}){return(await Ut({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function Cu({name:e,description:t,slug:n,options:r}){return(await Ut({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function Eu({resourceId:e,files:t,options:n}){return(await Ut({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function _u({resourceId:e,codeModule:t,components:n,options:r}){return(await Ut({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var xb=require("path"),Cb=D(require("webpack-merge")),xn=require("@webflow/data-types");fe();q();var Ry=require("memfs/lib/volume"),bo=require("@webflow/data-types");var ut="./tmp_entry",Iy="components";function SF(e){let t=TF(e);return/^[a-zA-Z]/.test(t.charAt(0))?t:"_"+t}function By(e,t){let n=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
117
+ ${p}`)}if(typeof c!="string"||!Di(c))throw new E("Invalid mount path: "+c);if(!l&&(!r||ae()))throw new E("--site-id is required");await Fl(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}=We();r=De.forCloud({authToken:i,siteId:o})}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){throw d.error(`Error: Could not change to directory ${n.directory}`),new E(p)}let{manifest:o}=re(),s=(o.cloud||{}).project_id,a,u,l=n.projectName,c=n.description;if(n.environment&&n.mount){if(a=n.environment,u=fn(n.mount),!Di(u))throw new E("Invalid mount path: "+u)}else{let p=[];if(!s){if(!l&&ae())throw new E("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");try{let m=await Eh();if(m.projects.length>0){let y=await Ee({message:"Select a project to deploy to:",choices:[...m.projects.map(C=>({name:`${C.name} (${C.description||"No description"})`,value:C.id})),{name:"Create new project",value:null}]});y?(s=y,d.info("\u{1F4DD} Updating webflow.json with project ID..."),ue({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 ze({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 _h(s)).environments.map(C=>({name:`${C.branch} (${C.mount})`,value:{branch:C.branch,mount:C.mount}}));p.push(...y)}catch(m){throw new E(m,{prefix:"Error fetching project environments:"})}p.push({name:"Create new environment",value:null});let f=await Ee({message:"Select an environment to deploy to:",choices:p});if(f)a=f.branch,u=fn(f.mount);else if(n.environment?a=n.environment:a=await ze({message:"What environment would you like to deploy to?",default:"main",validate:m=>m.trim()===""?"Environment cannot be empty":!0}),n.mount)u=fn(n.mount);else{let m=await ze({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=fn(m)}}if(!Di(u))throw new E("Invalid mount path: "+u);await Rh(a,u,{projectName:l,description:c,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:r})}catch(o){throw new E(o,{prefix:"Error during deployment setup:"})}})};var ar=require("commander");var Ri=require("path"),ir=require("@webflow/data-types");fe();var Mh=D(require("md5"));function Kr(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,Mh.default)(o),size:r,...n}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var $h=D(require("node-fetch")),zh=D(require("form-data"));async function _l(e,t){let n={...t.fields,file:e.value},r=new zh.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,$h.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});RF(o)}function RF(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}`)}}q();Ne();wt();fe();vn();function LF({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:`${K}/v2/sites/${n}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${K}/v2/workspaces`,authToken:e}}function NF(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function MF(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 Bt({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=LF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await $e(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:NF(n)});return await MF(a),a.json()}async function El({options:e}){return(await Bt({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function Sl({name:e,description:t,slug:n,options:r}){return(await Bt({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function Al({resourceId:e,files:t,options:n}){return(await Bt({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function Tl({resourceId:e,codeModule:t,components:n,options:r}){return(await Bt({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var Pg=require("path"),Ig=D(require("webpack-merge")),mn=require("@webflow/data-types");fe();q();var Vh=require("memfs/lib/volume"),Yr=require("@webflow/data-types");var nt="./tmp_entry",Wh="components";function $F(e){let t=zF(e);return/^[a-zA-Z]/.test(t.charAt(0))?t:"_"+t}function Uh(e,t){let n=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
130
118
  `),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}
131
119
 
132
- export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function jy(e,t,n){let r={},o=`${ut}/Client.js`,i=`${ut}/Server.js`;r[o]=By([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],bo.Environment.Client);let s={},a=l=>{let c=SF(l);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=By([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.ssr??!0).map(([l,c])=>{let d=a(l),f=c.startsWith(ut)?c.replace(`${ut}/`,"./"):c;return{name:d,path:f,exportKey:l,isDefaultExport:!0,type:"component"}})],bo.Environment.Server);let u={[bo.Environment.Client]:o,[bo.Environment.Server]:i};return{entryPointsVolume:Ry.Volume.fromJSON(r),paths:u}}var TF=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 Eb=require("memfs/lib/volume");var Wy=D(require("archiver")),fr=require("path");fe();var Do=require("@webflow/data-types");fe();q();var Vt=e=>e.endsWith("/")||/%2F$/i.test(e)?e:`${e}/`;var Ly=2;function My(e){let t={type:Do.ModuleLoader.FEDERATION,version:Ly,entry:pa,renderer:Lr,components:e};return{title:jr,content:JSON.stringify(t)}}function Ny(e){let t={type:Do.ModuleLoader.SSR,version:Ly,entry:Bn,components:e};return{title:jr,content:JSON.stringify(t)}}function $y(e){let t=`/${Do.Environment.Client}/${pa}`;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===Lr||(i[a]={css:[]},s.assets.css.sync.forEach(u=>{i[a].css.push(`${Vt(o)}${u}`)})),i},{})}}catch(n){p.error(n,{prefix:"Failed to extract components metadata from MF manifest:"})}return{}}var es=require("@webflow/data-types"),AF=/\.css$/i;async function zy(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${es.Environment.Server}/${Mr}`,a=(0,Wy.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:Mr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,fr.resolve)((0,fr.join)(`/${es.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}=Ny(n);a.append(c,{name:l}),e.forEach(d=>{if(!AF.test(d.name))try{let f=(0,fr.resolve)((0,fr.join)(`/${es.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 Uy=require("@webflow/data-types");async function Vy(e,t,n){let{title:r,content:o}=My(n);await t.promises.writeFile(`/${Uy.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 gb=require("@rspack/core"),yb=D(require("fork-ts-checker-webpack-plugin")),bb=require("ts-checker-rspack-plugin"),Db=D(require("mini-css-extract-plugin")),wb=require("@webflow/data-types");var qy=require("webpack"),Su=D(require("mini-css-extract-plugin")),Hy=D(require("tsconfig-paths-webpack-plugin")),Jy=require("tsconfig-paths"),Tu=require("@webflow/data-types"),Zy=require("path");fe();var Gy=D(require("postcss-selector-parser")),Fu=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,Gy.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});Fu.postcss=!0;Fu.postcssPlugin="CSSinShadowDOM";var ts=Fu;function OF(){return(0,Jy.loadConfig)(process.cwd()).resultType==="success"}function Yy({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:Su.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[ts]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new Su.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:{plugins:[OF()?new Hy.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Tu.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,Zy.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Tu.Environment.Server)return{...s,plugins:[...s.plugins||[],new qy.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:Bn,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Ky=require("@module-federation/enhanced"),Au=require("@webflow/data-types");function Xy({libraryName:e,env:t,exposes:n}){if(t===Au.Environment.Client)return{plugins:[new Ky.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Au.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}function Qy(){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"]}}}function ns(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,loader:"builtin:swc-loader",options:{jsc:{parser:{syntax:"typescript",tsx:!0},transform:{react:{runtime:"automatic",development:!1,refresh:!1}}}}}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var rs=require("@rspack/core"),eb=require("tsconfig-paths"),Ou=require("@webflow/data-types"),tb=require("path");fe();function PF(){let e=(0,eb.loadConfig)(process.cwd());if(e.resultType==="success")return e.configFileAbsolutePath}function nb({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:rs.rspack.CssExtractRspackPlugin.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[ts]}}}],type:"javascript/auto"},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new rs.rspack.CssExtractRspackPlugin({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:(()=>{let a=PF();return a?{tsConfig:{configFile:a}}:{}})(),performance:{hints:!1}};if(t===Ou.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,tb.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Ou.Environment.Server)return{...s,plugins:[...Array.isArray(s.plugins)?s.plugins:[],new rs.rspack.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:Bn,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var rb=require("@module-federation/enhanced/rspack"),Pu=require("@webflow/data-types");function ob({libraryName:e,env:t,exposes:n}){if(t===Pu.Environment.Client)return{plugins:[new rb.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Pu.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}var BF=D(require("fs")),ib=require("unionfs"),sb=require("webpack");function IF(e){return{name:e.name,size:e.size,emitted:e.emitted,info:e.info}}function os(e){let t=e.toJson();return{hasErrors:()=>e.hasErrors(),hasWarnings:()=>e.hasWarnings(),toString:n=>e.toString(n),toJson:()=>({...t,assets:(t.assets??[]).map(IF)})}}async function ab({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new ib.Union().use(BF));return new Promise((s,a)=>{let u=(0,sb.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(os(c)):a(new Error("Webpack stats are undefined"))})})})}var RF=D(require("fs")),Iu=D(require("webpack-merge")),lb=require("memfs"),ub=require("unionfs"),cb=require("@rspack/core");async function is({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((a,u)=>(a.use(u),a),new ub.Union().use(RF)),s=e;return t.length>0&&(s=(0,Iu.default)(s,{experiments:{...e.experiments,useInputFileSystem:[/./]}})),n&&(s=(0,Iu.default)(s,{output:{clean:!1,...r&&{path:r}}})),new Promise((a,u)=>{let l=(0,cb.rspack)(s);l.inputFileSystem=i,n&&(l.outputFileSystem=(0,lb.createFsFromVolume)(n)),r&&(l.outputPath=r),l.run((c,d)=>{l.close(f=>{c||f?u(c||f):d?d.hasErrors()||o&&d.hasWarnings()?u(new Error(d.toString("errors-warnings"))):a(os(d)):u(new Error("Rspack stats are undefined"))})})})}var pb=require("@module-federation/enhanced");var mr=D(require("webpack-merge"));q();function Gt(e){return e!==null&&typeof e=="object"&&"constructor"in e?e.constructor.name??"":""}function db(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function as(e){let{deduplicatePluginNames:t,ModuleFederationPluginClass:n,getPluginOptions:r,filterOverridePlugins:o}=e;return function(s,a,u){let l=["entry","output","target"],c=jF(s),d=Array.isArray(u)?ss(...u.map(c)):ss(c(u));Object.keys(d).some(L=>l.includes(L))&&p.warn(`Cannot override blocked properties: ${l.join(", ")}`);let m={...db(d,[...l,"ModuleFederationPlugin","module","plugins"]),module:db(d.module??{},["rules"])},y=(0,mr.default)(a,m),x=d.plugins??[];o&&(x=x.filter(o));let I=a.plugins??[],W=(0,mr.mergeWithCustomize)({customizeArray:(0,mr.unique)("plugins",t,L=>Gt(L))})({plugins:x},{plugins:I}).plugins,C=d?.ModuleFederationPlugin?.shared,F=W?.map(L=>{if(Gt(L)==="ModuleFederationPlugin"){let E=r(L);return new n({...E,...C?{shared:C}:{}})}return L});y.plugins=F;let V=d.module?.rules;if(V&&typeof V=="function"){let L=a.module?.rules??[];y.module={...y.module??{},rules:V(L)}}return y}}function ss(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={};for(let n of e){let{module:r,ModuleFederationPlugin:o,plugins:i,...s}=n;if(t={...t,...s},r){let{rules:a,...u}=r;if(t.module={...t.module,...u},a){let l=t.module?.rules;l?t.module.rules=c=>{let d=l(c);return a(d)}:t.module.rules=a}}o?.shared&&(t.ModuleFederationPlugin={shared:{...t.ModuleFederationPlugin?.shared,...o.shared}}),i&&(t.plugins=[...t.plugins??[],...i])}return t}function jF(e){return t=>typeof t=="function"?t(e):t}var LF=as({deduplicatePluginNames:["ModuleFederationPlugin","MiniCssExtractPlugin"],ModuleFederationPluginClass:pb.ModuleFederationPlugin,getPluginOptions:e=>e._options??{}});function fb(e,t,n){return LF(e,t,n)}var mb=require("@module-federation/enhanced/rspack");var MF=as({deduplicatePluginNames:["ModuleFederationPlugin","CssExtractRspackPlugin"],ModuleFederationPluginClass:mb.ModuleFederationPlugin,getPluginOptions:e=>e._options??{},filterOverridePlugins:e=>Gt(e)!=="MiniCssExtractPlugin"});function hb(e,t,n){return MF(e,t,n)}var Bu={[wb.Framework.React]:{generateWebpackBundlerConfig:Qy,generateRspackBundlerConfig:ns}},NF={webpack:{generateBaseConfig:Yy,getFrameworkConfig:(e,t)=>Bu[e].generateWebpackBundlerConfig(t),generateFederationConfig:Xy,mergeConfigs:(e,t,n)=>fb(e,t,n),bundle:e=>ab({...e,config:e.config}),typeCheckerPlugin:yb.default,hashFunction:"md5",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Gt(t)==="MiniCssExtractPlugin"?new Db.default({filename:"[name].[contenthash].css"}):t)})},rspack:{generateBaseConfig:nb,getFrameworkConfig:(e,t)=>Bu[e].generateRspackBundlerConfig(t),generateFederationConfig:ob,mergeConfigs:(e,t,n)=>hb(e,t,n),bundle:e=>is({...e,config:e.config}),typeCheckerPlugin:bb.TsCheckerRspackPlugin,hashFunction:"md4",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Gt(t)==="CssExtractRspackPlugin"?new gb.CssExtractRspackPlugin({filename:"[name].[contenthash].css"}):t)})}},hr=e=>NF[e],vb=e=>!!Bu[e];var kb={colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0};async function ls(e){let t=e.bundler??"webpack";p.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=jy(e.renderer,e.componentsFiles,e.componentsOptions),o=Eb.Volume.fromJSON({"/Server":null,"/Client":null});p.debug("Generating bundling config...");let i=e.overrideConfig??{};Object.keys(i).length&&p.debug("Found bundle config overrides. Merging...");let s=hr(t),a=I=>{let O=$F({env:I,mode:e.dev?"development":"production",framework:e.framework,publicPath:e.publicPath,components:e.componentsFiles,entryPaths:r,libraryName:e.libraryIdentifier,bundler:t}),W=s.mergeConfigs(I,O,i);return e?.debugBundler&&(p.info(`${t} config for env ${I}:`),p.dir(W)),W},u={sourceVolumes:[...e.sourceVolumes,n],outputVolume:o,failOnWarnings:e.failOnWarnings},[l,c]=await Promise.all([s.bundle({...u,config:a(xn.Environment.Server),outputPath:`/${xn.Environment.Server}`}),s.bundle({...u,config:a(xn.Environment.Client),outputPath:`/${xn.Environment.Client}`})]);e?.debugBundler&&(p.debug(o.toTree()),p.debug(`Server Bundler Stats: ${l.toString(kb)}`),p.debug(`Client Bundler Stats: ${c.toString(kb)}`));let d=$y(o);p.debug("Packaging server bundle...");let f=await zy(l.toJson().assets||[],o,d);p.debug("Packaging client bundle...");let m=await Vy(c.toJson().assets||[],o,d),y=I=>O=>[O,I];return{outputFiles:[...f.map(y(xn.Environment.Server)),...m.map(y(xn.Environment.Client))],outputVolume:o}}function $F({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a,bundler:u="webpack"}){if(!vb(n))throw new Error(`Unknown framework: ${n}`);let l=Object.entries({[Lr]:i[e],...o}).reduce((y,[x,I])=>({...y,[`./${x}`]:`./${(0,xb.relative)(process.cwd(),I)}`}),{}),c=hr(u),d=c.generateBaseConfig({entry:i[e],env:e,mode:t,libraryName:s,publicPath:r,outputPath:a}),f=c.getFrameworkConfig(n,e),m=c.generateFederationConfig({exposes:l,env:e,libraryName:s});return(0,Cb.default)(d,f,m)}var Fb=D(require("path")),Ru=require("memfs/lib/volume"),ju=D(require("webpack-merge")),Sb=D(require("webpack-node-externals")),$e=require("@webflow/data-types");var WF=D(require("fs")),gr=require("path"),yr=require("webpack");function zF(e,t=WF){let n=(0,gr.join)(process.cwd(),"node_modules",e);for(;n!==(0,gr.dirname)(n)&&n!=="node_modules";){let r=(0,gr.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,gr.dirname)(n)}return null}var us=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:yr.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 x=zF(y,n.inputFileSystem);if(!x)throw new Error(`Could not find package information for ${y}`);x&&d.add(x)}}),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 yr.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new yr.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var _b=D(require("module"));function wo(e,t){let n=e.readFileSync(t,"utf-8"),r=new _b.default(t,module);return r._compile(n,t),r}function UF(e,t){let n=`/${t}.js`,r=wo(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,$e.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){let s=i instanceof Error?i.stack:String(i);throw new Error(`Error parsing component data for '${t}': ${s}`)}throw new Error(`Could not get declaration for '${t}'`)}async function VF({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r,bundler:o="webpack"}){let i=new Ru.Volume,s=hr(o),a=(0,ju.default)(s.generateBaseConfig({entry:e,env:$e.Environment.Client,publicPath:"/",libraryName:"metadata"}),s.getFrameworkConfig($e.Framework.React,$e.Environment.Client),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new s.typeCheckerPlugin]:[]}),u=s.mergeConfigs($e.Environment.Client,a,n);return await s.bundle({outputPath:"/",config:u,sourceVolumes:t?[t]:[],outputVolume:i,failOnWarnings:!1}),i}async function GF({declarations:e,sources:t,overrideConfig:n={},bundler:r}){let o=new Ru.Volume,i=hr(r),s=(0,ju.default)(i.generateBaseConfig({entry:e,env:$e.Environment.Client,publicPath:"/",libraryName:"source-maps"}),i.getFrameworkConfig($e.Framework.React,$e.Environment.Client),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]",hashFunction:i.hashFunction},externalsPresets:{node:!0},devtool:"source-map",plugins:[new us],externals:[(0,Sb.default)()]}),a=i.mergeConfigs($e.Environment.Client,s,n);return a=i.replaceCssPlugin(a),await i.bundle({outputPath:"/",config:a,sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}function qF(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=Fb.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function cs({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1,skipSourceMaps:o=!1,bundler:i="webpack"}){let[s,a]=await Promise.all([VF({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r,bundler:i}),o||i==="rspack"?Promise.resolve(null):GF({declarations:e,sources:t,overrideConfig:n,bundler:i})]),{metadata:u,options:l}=Object.keys(e).reduce((d,f)=>{let m=UF(s,f);return d.metadata[f]=m,d.options[f]=m.options||{},d},{metadata:{},options:{}});return{sourceMaps:a?qF(a):{},metadata:u,options:l}}function Tb(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]}]))}var Ob=D(require("md5"));q();Ae();var Pb=" - ";function HF(e){return e==="added"?` ${me.green("(Added)")}`:e==="removed"?` ${me.yellow("(Removed)")}`:e==="changed"?` ${me.blue("(Changed)")}`:""}function Ab(e){if(!e)return"";let t=JSON.parse(e);return(0,Ob.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function JF({componentsMetadata: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=Ab(n[s]),c=a.displayName&&u.displayName!==a.displayName,d=l&&a.hash&&l!==Ab(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`${Pb}${c}${HF(a)}`}).sort().join(`
133
- `)}function ZF({componentsMetadata:e}){return Object.values(e).map(n=>`${Pb}${n.displayName}`).sort().join(`
134
- `)}async function Ib({libraryConfig:e,componentsMetadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(ce())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?JF({componentsMetadata:t,latestVersion:i,sourceMaps:r}):ZF({componentsMetadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await At({message:`${a}
120
+ export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function Gh(e,t,n){let r={},o=`${nt}/Client.js`,i=`${nt}/Server.js`;r[o]=Uh([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],Yr.Environment.Client);let s={},a=l=>{let c=$F(l);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=Uh([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.ssr??!0).map(([l,c])=>{let p=a(l),f=c.startsWith(nt)?c.replace(`${nt}/`,"./"):c;return{name:p,path:f,exportKey:l,isDefaultExport:!0,type:"component"}})],Yr.Environment.Server);let u={[Yr.Environment.Client]:o,[Yr.Environment.Server]:i};return{entryPointsVolume:Vh.Volume.fromJSON(r),paths:u}}var zF=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 Bg=require("memfs/lib/volume");var Kh=D(require("archiver")),Xn=require("path");fe();var Xr=require("@webflow/data-types");fe();q();var jt=e=>e.endsWith("/")||/%2F$/i.test(e)?e:`${e}/`;var qh=2;function Hh(e){let t={type:Xr.ModuleLoader.FEDERATION,version:qh,entry:Es,renderer:wr,components:e};return{title:Dr,content:JSON.stringify(t)}}function Jh(e){let t={type:Xr.ModuleLoader.SSR,version:qh,entry:xn,components:e};return{title:Dr,content:JSON.stringify(t)}}function Zh(e){let t=`/${Xr.Environment.Client}/${Es}`;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===wr||(i[a]={css:[]},s.assets.css.sync.forEach(u=>{i[a].css.push(`${jt(o)}${u}`)})),i},{})}}catch(n){d.error(n,{prefix:"Failed to extract components metadata from MF manifest:"})}return{}}var wi=require("@webflow/data-types"),WF=/\.css$/i;async function Yh(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${wi.Environment.Server}/${vr}`,a=(0,Kh.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:vr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Xn.resolve)((0,Xn.join)(`/${wi.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}=Jh(n);a.append(c,{name:l}),e.forEach(p=>{if(!WF.test(p.name))try{let f=(0,Xn.resolve)((0,Xn.join)(`/${wi.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 Xh=require("@webflow/data-types");async function Qh(e,t,n){let{title:r,content:o}=Hh(n);await t.promises.writeFile(`/${Xh.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 Fg=require("@rspack/core"),_g=D(require("fork-ts-checker-webpack-plugin")),Eg=require("ts-checker-rspack-plugin"),Sg=D(require("mini-css-extract-plugin")),Ag=require("@webflow/data-types");var tg=require("webpack"),Pl=D(require("mini-css-extract-plugin")),ng=D(require("tsconfig-paths-webpack-plugin")),rg=require("tsconfig-paths"),Il=require("@webflow/data-types"),og=require("path");fe();var eg=D(require("postcss-selector-parser")),Ol=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,eg.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});Ol.postcss=!0;Ol.postcssPlugin="CSSinShadowDOM";var vi=Ol;function UF(){return(0,rg.loadConfig)(process.cwd()).resultType==="success"}function ig({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:Pl.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[vi]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new Pl.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:{plugins:[UF()?new ng.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Il.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,og.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Il.Environment.Server)return{...s,plugins:[...s.plugins||[],new tg.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:xn,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var sg=require("@module-federation/enhanced"),Bl=require("@webflow/data-types");function ag({libraryName:e,env:t,exposes:n}){if(t===Bl.Environment.Client)return{plugins:[new sg.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Bl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}function lg(){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"]}}}function ki(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,loader:"builtin:swc-loader",options:{jsc:{parser:{syntax:"typescript",tsx:!0},transform:{react:{runtime:"automatic",development:!1,refresh:!1}}}}}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var xi=require("@rspack/core"),ug=require("tsconfig-paths"),jl=require("@webflow/data-types"),cg=require("path");fe();function VF(){let e=(0,ug.loadConfig)(process.cwd());if(e.resultType==="success")return e.configFileAbsolutePath}function pg({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:xi.rspack.CssExtractRspackPlugin.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[vi]}}}],type:"javascript/auto"},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new xi.rspack.CssExtractRspackPlugin({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:(()=>{let a=VF();return a?{tsConfig:{configFile:a}}:{}})(),performance:{hints:!1}};if(t===jl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,cg.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===jl.Environment.Server)return{...s,plugins:[...Array.isArray(s.plugins)?s.plugins:[],new xi.rspack.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:xn,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var dg=require("@module-federation/enhanced/rspack"),Rl=require("@webflow/data-types");function fg({libraryName:e,env:t,exposes:n}){if(t===Rl.Environment.Client)return{plugins:[new dg.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Rl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}var qF=D(require("fs")),mg=require("unionfs"),hg=require("webpack");function GF(e){return{name:e.name,size:e.size,emitted:e.emitted,info:e.info}}function Ci(e){let t=e.toJson();return{hasErrors:()=>e.hasErrors(),hasWarnings:()=>e.hasWarnings(),toString:n=>e.toString(n),toJson:()=>({...t,assets:(t.assets??[]).map(GF)})}}async function gg({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new mg.Union().use(qF));return new Promise((s,a)=>{let u=(0,hg.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(Ci(c)):a(new Error("Webpack stats are undefined"))})})})}var HF=D(require("fs")),Ll=D(require("webpack-merge")),yg=require("memfs"),bg=require("unionfs"),Dg=require("@rspack/core");async function Fi({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((a,u)=>(a.use(u),a),new bg.Union().use(HF)),s=e;return t.length>0&&(s=(0,Ll.default)(s,{experiments:{...e.experiments,useInputFileSystem:[/./]}})),n&&(s=(0,Ll.default)(s,{output:{clean:!1,...r&&{path:r}}})),new Promise((a,u)=>{let l=(0,Dg.rspack)(s);l.inputFileSystem=i,n&&(l.outputFileSystem=(0,yg.createFsFromVolume)(n)),r&&(l.outputPath=r),l.run((c,p)=>{l.close(f=>{c||f?u(c||f):p?p.hasErrors()||o&&p.hasWarnings()?u(new Error(p.toString("errors-warnings"))):a(Ci(p)):u(new Error("Rspack stats are undefined"))})})})}var vg=require("@module-federation/enhanced");var Qn=D(require("webpack-merge"));q();function Rt(e){return e!==null&&typeof e=="object"&&"constructor"in e?e.constructor.name??"":""}function wg(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function Ei(e){let{deduplicatePluginNames:t,ModuleFederationPluginClass:n,getPluginOptions:r,filterOverridePlugins:o}=e;return function(s,a,u){let l=["entry","output","target"],c=JF(s),p=Array.isArray(u)?_i(...u.map(c)):_i(c(u));Object.keys(p).some(R=>l.includes(R))&&d.warn(`Cannot override blocked properties: ${l.join(", ")}`);let m={...wg(p,[...l,"ModuleFederationPlugin","module","plugins"]),module:wg(p.module??{},["rules"])},y=(0,Qn.default)(a,m),C=p.plugins??[];o&&(C=C.filter(o));let P=a.plugins??[],z=(0,Qn.mergeWithCustomize)({customizeArray:(0,Qn.unique)("plugins",t,R=>Rt(R))})({plugins:C},{plugins:P}).plugins,k=p?.ModuleFederationPlugin?.shared,_=z?.map(R=>{if(Rt(R)==="ModuleFederationPlugin"){let F=r(R);return new n({...F,...k?{shared:k}:{}})}return R});y.plugins=_;let G=p.module?.rules;if(G&&typeof G=="function"){let R=a.module?.rules??[];y.module={...y.module??{},rules:G(R)}}return y}}function _i(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={};for(let n of e){let{module:r,ModuleFederationPlugin:o,plugins:i,...s}=n;if(t={...t,...s},r){let{rules:a,...u}=r;if(t.module={...t.module,...u},a){let l=t.module?.rules;l?t.module.rules=c=>{let p=l(c);return a(p)}:t.module.rules=a}}o?.shared&&(t.ModuleFederationPlugin={shared:{...t.ModuleFederationPlugin?.shared,...o.shared}}),i&&(t.plugins=[...t.plugins??[],...i])}return t}function JF(e){return t=>typeof t=="function"?t(e):t}var ZF=Ei({deduplicatePluginNames:["ModuleFederationPlugin","MiniCssExtractPlugin"],ModuleFederationPluginClass:vg.ModuleFederationPlugin,getPluginOptions:e=>e._options??{}});function kg(e,t,n){return ZF(e,t,n)}var xg=require("@module-federation/enhanced/rspack");var KF=Ei({deduplicatePluginNames:["ModuleFederationPlugin","CssExtractRspackPlugin"],ModuleFederationPluginClass:xg.ModuleFederationPlugin,getPluginOptions:e=>e._options??{},filterOverridePlugins:e=>Rt(e)!=="MiniCssExtractPlugin"});function Cg(e,t,n){return KF(e,t,n)}var Nl={[Ag.Framework.React]:{generateWebpackBundlerConfig:lg,generateRspackBundlerConfig:ki}},YF={webpack:{generateBaseConfig:ig,getFrameworkConfig:(e,t)=>Nl[e].generateWebpackBundlerConfig(t),generateFederationConfig:ag,mergeConfigs:(e,t,n)=>kg(e,t,n),bundle:e=>gg({...e,config:e.config}),typeCheckerPlugin:_g.default,hashFunction:"md5",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Rt(t)==="MiniCssExtractPlugin"?new Sg.default({filename:"[name].[contenthash].css"}):t)})},rspack:{generateBaseConfig:pg,getFrameworkConfig:(e,t)=>Nl[e].generateRspackBundlerConfig(t),generateFederationConfig:fg,mergeConfigs:(e,t,n)=>Cg(e,t,n),bundle:e=>Fi({...e,config:e.config}),typeCheckerPlugin:Eg.TsCheckerRspackPlugin,hashFunction:"md4",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Rt(t)==="CssExtractRspackPlugin"?new Fg.CssExtractRspackPlugin({filename:"[name].[contenthash].css"}):t)})}},er=e=>YF[e],Tg=e=>!!Nl[e];var Og={colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0};async function Si(e){let t=e.bundler??"webpack";d.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=Gh(e.renderer,e.componentsFiles,e.componentsOptions),o=Bg.Volume.fromJSON({"/Server":null,"/Client":null});d.debug("Generating bundling config...");let i=e.overrideConfig??{};Object.keys(i).length&&d.debug("Found bundle config overrides. Merging...");let s=er(t),a=P=>{let A=XF({env:P,mode:e.dev?"development":"production",framework:e.framework,publicPath:e.publicPath,components:e.componentsFiles,entryPaths:r,libraryName:e.libraryIdentifier,bundler:t}),z=s.mergeConfigs(P,A,i);return e?.debugBundler&&(d.info(`${t} config for env ${P}:`),d.dir(z)),z},u={sourceVolumes:[...e.sourceVolumes,n],outputVolume:o,failOnWarnings:e.failOnWarnings},[l,c]=await Promise.all([s.bundle({...u,config:a(mn.Environment.Server),outputPath:`/${mn.Environment.Server}`}),s.bundle({...u,config:a(mn.Environment.Client),outputPath:`/${mn.Environment.Client}`})]);e?.debugBundler&&(d.debug(o.toTree()),d.debug(`Server Bundler Stats: ${l.toString(Og)}`),d.debug(`Client Bundler Stats: ${c.toString(Og)}`));let p=Zh(o);d.debug("Packaging server bundle...");let f=await Yh(l.toJson().assets||[],o,p);d.debug("Packaging client bundle...");let m=await Qh(c.toJson().assets||[],o,p),y=P=>A=>[A,P];return{outputFiles:[...f.map(y(mn.Environment.Server)),...m.map(y(mn.Environment.Client))],outputVolume:o}}function XF({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a,bundler:u="webpack"}){if(!Tg(n))throw new Error(`Unknown framework: ${n}`);let l=Object.entries({[wr]:i[e],...o}).reduce((y,[C,P])=>({...y,[`./${C}`]:`./${(0,Pg.relative)(process.cwd(),P)}`}),{}),c=er(u),p=c.generateBaseConfig({entry:i[e],env:e,mode:t,libraryName:s,publicPath:r,outputPath:a}),f=c.getFrameworkConfig(n,e),m=c.generateFederationConfig({exposes:l,env:e,libraryName:s});return(0,Ig.default)(p,f,m)}var Rg=D(require("path")),Ml=require("memfs/lib/volume"),$l=D(require("webpack-merge")),Lg=D(require("webpack-node-externals")),Be=require("@webflow/data-types");var QF=D(require("fs")),tr=require("path"),nr=require("webpack");function e_(e,t=QF){let n=(0,tr.join)(process.cwd(),"node_modules",e);for(;n!==(0,tr.dirname)(n)&&n!=="node_modules";){let r=(0,tr.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,tr.dirname)(n)}return null}var Ai=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:nr.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 C=e_(y,n.inputFileSystem);if(!C)throw new Error(`Could not find package information for ${y}`);C&&p.add(C)}}),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 nr.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new nr.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var jg=D(require("module"));function Qr(e,t){let n=e.readFileSync(t,"utf-8"),r=new jg.default(t,module);return r._compile(n,t),r}function t_(e,t){let n=`/${t}.js`,r=Qr(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,Be.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){let s=i instanceof Error?i.stack:String(i);throw new Error(`Error parsing component data for '${t}': ${s}`)}throw new Error(`Could not get declaration for '${t}'`)}async function n_({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r,bundler:o="webpack"}){let i=new Ml.Volume,s=er(o),a=(0,$l.default)(s.generateBaseConfig({entry:e,env:Be.Environment.Client,publicPath:"/",libraryName:"metadata"}),s.getFrameworkConfig(Be.Framework.React,Be.Environment.Client),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new s.typeCheckerPlugin]:[]}),u=s.mergeConfigs(Be.Environment.Client,a,n);return await s.bundle({outputPath:"/",config:u,sourceVolumes:t?[t]:[],outputVolume:i,failOnWarnings:!1}),i}async function r_({declarations:e,sources:t,overrideConfig:n={},bundler:r}){let o=new Ml.Volume,i=er(r),s=(0,$l.default)(i.generateBaseConfig({entry:e,env:Be.Environment.Client,publicPath:"/",libraryName:"source-maps"}),i.getFrameworkConfig(Be.Framework.React,Be.Environment.Client),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]",hashFunction:i.hashFunction},externalsPresets:{node:!0},devtool:"source-map",plugins:[new Ai],externals:[(0,Lg.default)()]}),a=i.mergeConfigs(Be.Environment.Client,s,n);return a=i.replaceCssPlugin(a),await i.bundle({outputPath:"/",config:a,sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}function o_(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=Rg.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function Ti({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1,skipSourceMaps:o=!1,bundler:i="webpack"}){let[s,a]=await Promise.all([n_({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r,bundler:i}),o||i==="rspack"?Promise.resolve(null):r_({declarations:e,sources:t,overrideConfig:n,bundler:i})]),{metadata:u,options:l}=Object.keys(e).reduce((p,f)=>{let m=t_(s,f);return p.metadata[f]=m,p.options[f]=m.options||{},p},{metadata:{},options:{}});return{sourceMaps:a?o_(a):{},metadata:u,options:l}}function Ng(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]}]))}var $g=D(require("md5"));He();_e();var zg=" - ";function i_(e){return e==="added"?` ${W.green("(Added)")}`:e==="removed"?` ${W.yellow("(Removed)")}`:e==="changed"?` ${W.blue("(Changed)")}`:""}function Mg(e){if(!e)return"";let t=JSON.parse(e);return(0,$g.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function s_({componentsMetadata: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=Mg(n[s]),c=a.displayName&&u.displayName!==a.displayName,p=l&&a.hash&&l!==Mg(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`${zg}${c}${i_(a)}`}).sort().join(`
121
+ `)}function a_({componentsMetadata:e}){return Object.values(e).map(n=>`${zg}${n.displayName}`).sort().join(`
122
+ `)}async function Wg({libraryConfig:e,componentsMetadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(ae())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?s_({componentsMetadata:t,latestVersion:i,sourceMaps:r}):a_({componentsMetadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await xt({message:`${a}
135
123
  ${u}
136
124
 
137
- ${l}`})}var ds=require("path"),jb=require("memfs/lib/volume");var Bb=D(require("fast-glob")),YF=e=>{let t=e.split("/");return t[t.length-1]},KF=e=>YF(e).split(".")[0];async function Rb(e,t){return(await Bb.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=KF(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 ps(e){let t=await Rb(e.components,{cwd:(0,ds.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}=XF(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function XF(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,ds.extname)(s),u=`${ut}/${Iy}/${i}${a}`;r[i]=u,o[u]=QF(t,s,n)}),{componentsFiles:r,componentsVolume:jb.Volume.fromJSON(o)}}function QF(e,t,n){return n?`
125
+ ${l}`})}var Oi=require("path"),Gg=require("memfs/lib/volume");var Ug=D(require("fast-glob")),l_=e=>{let t=e.split("/");return t[t.length-1]},u_=e=>l_(e).split(".")[0];async function Vg(e,t){return(await Ug.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=u_(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 Vg(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}=c_(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function c_(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,Oi.extname)(s),u=`${nt}/${Wh}/${i}${a}`;r[i]=u,o[u]=p_(t,s,n)}),{componentsFiles:r,componentsVolume:Gg.Volume.fromJSON(o)}}function p_(e,t,n){return n?`
138
126
  import { applyDecorators } from "${e}";
139
127
  import componentDefinition from "${t}";
140
128
  const globals = require("${n}") || {};
@@ -156,21 +144,21 @@ export default decoratedDefinition;
156
144
  `.trim():`
157
145
  import componentDefinition from "${t}";
158
146
  export default {...componentDefinition};
159
- `.trim()}q();Ae();var eS="fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074",tS=["code_components:read","code_components:write"];function nS(){return eS}async function Lb(e){let t=e?.apiToken||process.env.WEBFLOW_WORKSPACE_API_TOKEN;if(!t&&Qe()&&(p.debug("No workspace API token found. Performing OAuth..."),t=await Ln({clientId:nS(),scope:tS}),t&&Qt({workspaceApiToken:t})),!t)throw new Error("Workspace API token is required.");return t}var Mb=require("path"),Nb=require("fs-extra");function fs(e,t){try{let n=rS(),r=oS(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var rS=()=>{try{return(0,Nb.existsSync)((0,Mb.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},oS=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"));var $b=require("@webflow/data-types"),ms={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:$b.Framework.React};var br=require("path"),Dr=require("fs");q();Ge();function Ct(e){return e.replace(/\\/g,"/")}Ae();ye();function Wb(e){let t={...e};if(e.globals){let n=(0,br.resolve)(process.cwd(),e.globals);if(!(0,Dr.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
147
+ `.trim()}q();_e();var d_="fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074",f_=["code_components:read","code_components:write"];function m_(){return d_}async function qg(e){let t=e?.apiToken||process.env.WEBFLOW_WORKSPACE_API_TOKEN;if(!t&&Je()&&(d.debug("No workspace API token found. Performing OAuth..."),t=await _n({clientId:m_(),scope:f_}),t&&Vt({workspaceApiToken:t})),!t)throw new Error("Workspace API token is required.");return t}var Hg=require("path"),Jg=require("fs-extra");function Ii(e,t){try{let n=h_(),r=g_(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var h_=()=>{try{return(0,Jg.existsSync)((0,Hg.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},g_=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"));var Zg=require("@webflow/data-types"),Bi={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:Zg.Framework.React};var rr=require("path"),or=require("fs");He();q();Ne();function mt(e){return e.replace(/\\/g,"/")}_e();me();function Kg(e){let t={...e};if(e.globals){let n=(0,rr.resolve)(process.cwd(),e.globals);if(!(0,or.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
160
148
  Resolved path: ${n}
161
- Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=Ct(n)}if(e.bundleConfig){let n=(0,br.resolve)(process.cwd(),e.bundleConfig);if(!(0,Dr.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
149
+ Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=mt(n)}if(e.bundleConfig){let n=(0,rr.resolve)(process.cwd(),e.bundleConfig);if(!(0,or.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
162
150
  Resolved path: ${n}
163
- Please ensure the file exists or remove the 'bundleConfig' field from your manifest.`);t.bundleConfig=Ct(n)}if(typeof e.renderer=="string"){let n=(0,br.resolve)(process.cwd(),e.renderer);(0,Dr.existsSync)(n)&&(t.renderer=Ct(n))}else if(typeof e.renderer=="object"&&typeof t.renderer=="object"){if(typeof e.renderer.client=="string"){let n=(0,br.resolve)(process.cwd(),e.renderer.client);(0,Dr.existsSync)(n)&&(t.renderer={...t.renderer,client:Ct(n)})}if(typeof e.renderer.server=="string"){let n=(0,br.resolve)(process.cwd(),e.renderer.server);(0,Dr.existsSync)(n)&&(t.renderer={...t.renderer,server:Ct(n)})}}return t}async function iS({initialData:e}){let t=await He({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});if(t==null)throw new A("When --no-input mode is enabled please provide a name in your library manifest");let n=await He({message:"Enter a description for your code library",default:e?.description??""});if(!await At({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 sS({existingCodeLibraries:e}){return await Oe({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+=` ${me.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function Lu({initialData:e,existingCodeLibraries:t}){let n,r={components:ms.components},o=t.length>0?await sS({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await iS({initialData:e});n={...r,...e,...a}}let i=Wb(n);pe({library:i});let{path:s}=pt();return{libraryManifest:i,manifestPath:s}}async function zb({existingCodeLibraries:e}){let t=p.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=ie(),o=Ir(n,"library");if(!o.id){if(Qe())return t.succeed(),Lu({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&&Qe())return t.succeed(),Lu({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=Wb({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if((n instanceof dt||n instanceof Ht)&&Qe())return t.info(n.message),Lu({existingCodeLibraries:e});throw t.fail(),n}}var Mu=require("memfs/lib/volume"),Gb=D(require("webpack-merge"));var qb="/client-renderer.js",Hb="/server-renderer.js",Ub=`${ut}/test-renderers${qb}`,Vb=`${ut}/test-renderers${Hb}`,aS=new Set(["@webflow/react"]),lS=new Set(["@webflow/react","@webflow/emotion-utils/server","@webflow/styled-components-utils/server"]);async function Jb(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");if(aS.has(e.client)&&lS.has(e.server))return;let t=await dS(e);uS(e.client,t),cS(e.server,t)}function uS(e,t){let n=wo(t,qb);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 cS(e,t){let n=wo(t,Hb);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 dS(e){let t=new Mu.Volume,n=Ct(e.client),r=Ct(e.server),o={[Ub]:`
151
+ 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,rr.resolve)(process.cwd(),e.renderer);(0,or.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,rr.resolve)(process.cwd(),e.renderer.client);(0,or.existsSync)(n)&&(t.renderer={...t.renderer,client:mt(n)})}if(typeof e.renderer.server=="string"){let n=(0,rr.resolve)(process.cwd(),e.renderer.server);(0,or.existsSync)(n)&&(t.renderer={...t.renderer,server:mt(n)})}}return t}async function y_({initialData:e}){let t=await ze({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});if(t==null)throw new E("When --no-input mode is enabled please provide a name in your library manifest");let n=await ze({message:"Enter a description for your code library",default:e?.description??""});if(!await xt({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 b_({existingCodeLibraries:e}){return await Ee({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+=` ${W.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function zl({initialData:e,existingCodeLibraries:t}){let n,r={components:Bi.components},o=t.length>0?await b_({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await y_({initialData:e});n={...r,...e,...a}}let i=Kg(n);ue({library:i});let{path:s}=Mt();return{libraryManifest:i,manifestPath:s}}async function Yg({existingCodeLibraries:e}){let t=d.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=re(),o=gr(n,"library");if(!o.id){if(Je())return t.succeed(),zl({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&&Je())return t.succeed(),zl({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=Kg({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if(n instanceof Nt&&Je())return t.info(n.message),zl({existingCodeLibraries:e});throw t.fail(),n}}var Wl=require("memfs/lib/volume"),ey=D(require("webpack-merge"));var ty="/client-renderer.js",ny="/server-renderer.js",Xg=`${nt}/test-renderers${ty}`,Qg=`${nt}/test-renderers${ny}`,D_=new Set(["@webflow/react"]),w_=new Set(["@webflow/react","@webflow/emotion-utils/server","@webflow/styled-components-utils/server"]);async function ry(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");if(D_.has(e.client)&&w_.has(e.server))return;let t=await x_(e);v_(e.client,t),k_(e.server,t)}function v_(e,t){let n=Qr(t,ty);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 k_(e,t){let n=Qr(t,ny);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 x_(e){let t=new Wl.Volume,n=mt(e.client),r=mt(e.server),o={[Xg]:`
164
152
  export * from "${n}";
165
- `,[Vb]:`
153
+ `,[Qg]:`
166
154
  export * from "${r}";
167
- `},i=(0,Gb.default)(ns(),{entry:{"client-renderer":Ub,"server-renderer":Vb},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await is({config:i,sourceVolumes:[Mu.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function hs({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await zb({existingCodeLibraries:e}),{renderer:r,...o}=ms,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 Jb(i),{...o,...t,renderer:i,manifestPath:n}}ye();async function pS(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await ps(r);p.debug(`Components: ${JSON.stringify(o,null,2)}`);let{sourceMaps:s,metadata:a,options:u}=await cs({declarations:o,sources:i,overrideConfig:e.overrideConfig,performTypeCheck:fs(o,t),bundler:t?.bundler});return p.debug(`Metadata: ${JSON.stringify(a,null,2)}`),p.debug(`Source Maps:
155
+ `},i=(0,ey.default)(ki(),{entry:{"client-renderer":Xg,"server-renderer":Qg},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await Fi({config:i,sourceVolumes:[Wl.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function ji({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await Yg({existingCodeLibraries:e}),{renderer:r,...o}=Bi,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 ry(i),{...o,...t,renderer:i,manifestPath:n}}me();async function C_(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await Pi(r);d.debug(`Components: ${JSON.stringify(o,null,2)}`);let{sourceMaps:s,metadata:a,options:u}=await Ti({declarations:o,sources:i,overrideConfig:e.overrideConfig,performTypeCheck:Ii(o,t),bundler:t?.bundler});return d.debug(`Metadata: ${JSON.stringify(a,null,2)}`),d.debug(`Source Maps:
168
156
 
169
- ${Object.entries(s).reduce((l,[c,d])=>(l+=`${c}: ${JSON.stringify(JSON.parse(d),null,2)}
157
+ ${Object.entries(s).reduce((l,[c,p])=>(l+=`${c}: ${JSON.stringify(JSON.parse(p),null,2)}
170
158
 
171
- `,l),"")}`),{componentsFiles:o,componentsVolume:i,componentsMetadata:a,componentsOptions:u,sourceMaps:s}})}async function fS(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:u}=e;return await a("generate_library_bundle",async()=>await ls({libraryIdentifier:`_${o}`,renderer:u.renderer,framework:u.framework,publicPath:Vt(i[wr.Environment.Client]),sourceVolumes:[n],componentsFiles:t,componentsOptions:r,debugBundler:s?.debugBundler,dev:s?.dev,overrideConfig:e.overrideConfig,failOnWarnings:!s?.force,bundler:s?.bundler}))}async function mS(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,gs.resolve)((0,gs.join)(`/${l}`,`${u.name}`));return yo(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:l})}),{signatures:a}=await Eu({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 ku(l,u.value)}))})}async function hS(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let u={clientModule:{bundleUrl:Vt(o[wr.Environment.Client])+jr,loaderType:wr.ModuleLoader.FEDERATION},serverModule:{bundleUrl:Vt(o[wr.Environment.Server])+Mr}},l=Tb(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await _u({resourceId:r,codeModule:u,components:Object.values(l),options:a});p.debug(JSON.stringify({taskId:c},null,2))})}async function Nu(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;p.debug("Initializing workspace API token...");try{r=await Lb(e)}catch(a){throw p.error(a),a}p.debug("Initializing telemetry service...");let o=tt.forCodeLibraries({host:Y,authToken:r}),i=Uo(o),s=Vo(o);try{await o.promptForConsentIfNeeded(),p.debug("Checking dependencies versions..."),new Kt().run();let a={workspaceApiToken:r};t=p.spinner("Initializing");let u=await s("get_code_libraries",async()=>await xu({options:a})),{workspace:l,libraries:c}=u;t.succeed(),p.debug("Parsing library config...");let d=await hs({existingCodeLibraries:c}),f=d.bundleConfig?require(d.bundleConfig):{},m={trackPerformance:s,apiOptions:a,libraryConfig:d,overrideConfig:f};t=p.spinner("Collecting metadata");let{componentsFiles:y,componentsVolume:x,componentsMetadata:I,componentsOptions:O,sourceMaps:W}=await pS(m,e);if(t.succeed(),!await Ib({libraryConfig:d,componentsMetadata:I,existingCodeLibraries:c,sourceMaps:W,workspaceInfo:l}))return;t=p.spinner("Creating code library");let{resourceId:F,profileSlug:V,workspace:L,s3Urls:E,cdnUrls:h}=await s("init_code_library",async()=>await Cu({name:d.name,slug:d.id,description:d.description,options:a}));t.succeed(),p.debug(JSON.stringify({resourceId:F,profileSlug:V,s3Urls:E,cdnUrls:h},null,2)),await o.sendUsage("library_initialized",!0,void 0,{libraryName:d.name,framework:d.framework,resourceId:F,profileSlug:V}),d.id||pe({library:{id:V}}),t=p.spinner("Compiling code components");let{outputFiles:g,outputVolume:R}=await fS(m,y,x,O,F,h,e);t.succeed(),await o.sendUsage("bundle_generated",!0,void 0,{libraryName:d.name,componentCount:Object.keys(y).length,resourceId:F,profileSlug:V}),t=p.spinner("Uploading files"),await mS(m,g,R,F),t.succeed(),await o.sendUsage("files_uploaded",!0,void 0,{libraryName:d.name,fileCount:g.length,resourceId:F,profileSlug:V}),t=p.spinner("Sharing library"),await hS(m,I,W,F,h),t.succeed(),p.success(`Code library shared successfully${L?.slug?`: ${In}/dashboard/workspace/${L?.slug}/shared-libraries-and-templates`:"!"}`);let v=Date.now()-n;await o.sendUsage("share_library",!0,v,{componentCount:Object.keys(y).length,libraryName:d.name,framework:d.framework,resourceId:F,profileSlug:V})}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;throw await o.sendUsage("share_library",!1,l,{error:u}),new A(a)}}var ys=D(require("fs")),vr=require("path");q();ye();function gS(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}var yS="dist",bS="http://localhost/";async function $u(e){e.verbose&&(process.env.DEBUG="true");let t;try{p.debug("Checking dependencies versions..."),new Kt().run(),p.debug("Looking for manifest...");let n=await hs({existingCodeLibraries:[]}),r=`_${e.libraryId||gS(n.name)}`;e?.debugBundler&&p.debug(`Library Config: ${JSON.stringify(n,null,2)}`),t=p.spinner("Collecting metadata");let{componentsFiles:o,componentsVolume:i}=await ps(n);e?.debugBundler&&p.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:a,metadata:u,options:l}=await cs({declarations:o,sources:i,overrideConfig:s,performTypeCheck:fs(o,e),skipSourceMaps:!e?.debugBundler,bundler:e.bundler});e?.debugBundler&&(p.debug(`Metadata: ${JSON.stringify(u,null,2)}`),p.debug(`Source Maps:
159
+ `,l),"")}`),{componentsFiles:o,componentsVolume:i,componentsMetadata:a,componentsOptions:u,sourceMaps:s}})}async function F_(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:u}=e;return await a("generate_library_bundle",async()=>await Si({libraryIdentifier:`_${o}`,renderer:u.renderer,framework:u.framework,publicPath:jt(i[ir.Environment.Client]),sourceVolumes:[n],componentsFiles:t,componentsOptions:r,debugBundler:s?.debugBundler,dev:s?.dev,overrideConfig:e.overrideConfig,failOnWarnings:!s?.force,bundler:s?.bundler}))}async function __(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,Ri.resolve)((0,Ri.join)(`/${l}`,`${u.name}`));return Kr(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:l})}),{signatures:a}=await Al({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 _l(l,u.value)}))})}async function E_(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let u={clientModule:{bundleUrl:jt(o[ir.Environment.Client])+Dr,loaderType:ir.ModuleLoader.FEDERATION},serverModule:{bundleUrl:jt(o[ir.Environment.Server])+vr}},l=Ng(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await Tl({resourceId:r,codeModule:u,components:Object.values(l),options:a});d.debug(JSON.stringify({taskId:c},null,2))})}async function Ul(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;d.debug("Initializing workspace API token...");try{r=await qg(e)}catch(s){throw d.error(s),s}d.debug("Initializing telemetry service...");let o=De.forCodeLibraries({authToken:r}),i=ic(o);try{d.debug("Checking dependencies versions..."),new Wt().run();let s={workspaceApiToken:r};t=d.spinner("Initializing");let a=await i("get_code_libraries",async()=>await El({options:s})),{workspace:u,libraries:l}=a;t.succeed(),d.debug("Parsing library config...");let c=await ji({existingCodeLibraries:l}),p=c.bundleConfig?require(c.bundleConfig):{},f={trackPerformance:i,apiOptions:s,libraryConfig:c,overrideConfig:p};t=d.spinner("Collecting metadata");let{componentsFiles:m,componentsVolume:y,componentsMetadata:C,componentsOptions:P,sourceMaps:A}=await C_(f,e);if(t.succeed(),!await Wg({libraryConfig:c,componentsMetadata:C,existingCodeLibraries:l,sourceMaps:A,workspaceInfo:u}))return;t=d.spinner("Creating code library");let{resourceId:k,profileSlug:_,workspace:G,s3Urls:R,cdnUrls:F}=await i("init_code_library",async()=>await Sl({name:c.name,slug:c.id,description:c.description,options:s}));t.succeed(),d.debug(JSON.stringify({resourceId:k,profileSlug:_,s3Urls:R,cdnUrls:F},null,2)),await o.sendUsage("library_initialized",{libraryName:c.name,framework:c.framework,resourceId:k,profileSlug:_}),c.id||ue({library:{id:_}}),t=d.spinner("Compiling code components");let{outputFiles:h,outputVolume:g}=await F_(f,m,y,P,k,F,e);t.succeed(),await o.sendUsage("bundle_generated",{libraryName:c.name,componentCount:Object.keys(m).length,resourceId:k,profileSlug:_}),t=d.spinner("Uploading files"),await __(f,h,g,k),t.succeed(),await o.sendUsage("files_uploaded",{libraryName:c.name,fileCount:h.length,resourceId:k,profileSlug:_}),t=d.spinner("Sharing library"),await E_(f,C,A,k,F),t.succeed(),d.success(`Code library shared successfully${G?.slug?`: ${kn}/dashboard/workspace/${G?.slug}/shared-libraries-and-templates`:"!"}`);let B=Date.now()-n;await o.sendUsage("share_library",{duration:B,componentCount:Object.keys(m).length,libraryName:c.name,framework:c.framework,resourceId:k,profileSlug:_})}catch(s){t?.fail();let a=Date.now()-n;throw await o.sendError(s instanceof Error?s:new Error(String(s)),"share_library",{duration:a}),new E(s)}}var Li=D(require("fs")),sr=require("path");q();me();function S_(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}var A_="dist",T_="http://localhost/";async function Vl(e){e.verbose&&(process.env.DEBUG="true");let t;try{d.debug("Checking dependencies versions..."),new Wt().run(),d.debug("Looking for manifest...");let n=await ji({existingCodeLibraries:[]}),r=`_${e.libraryId||S_(n.name)}`;e?.debugBundler&&d.debug(`Library Config: ${JSON.stringify(n,null,2)}`),t=d.spinner("Collecting metadata");let{componentsFiles:o,componentsVolume:i}=await Pi(n);e?.debugBundler&&d.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:a,metadata:u,options:l}=await Ti({declarations:o,sources:i,overrideConfig:s,performTypeCheck:Ii(o,e),skipSourceMaps:!e?.debugBundler,bundler:e.bundler});e?.debugBundler&&(d.debug(`Metadata: ${JSON.stringify(u,null,2)}`),d.debug(`Source Maps:
172
160
 
173
161
  ${Object.entries(a).reduce((f,[m,y])=>(f+=`${m}: ${JSON.stringify(JSON.parse(y),null,2)}
174
162
 
175
- `,f),"")}`)),t.succeed(),t=p.spinner("Generating library bundle");let{outputFiles:c,outputVolume:d}=await ls({libraryIdentifier:r,renderer:n.renderer,framework:n.framework,publicPath:Vt(e.publicPath||bS),sourceVolumes:[i],componentsFiles:o,componentsOptions:l,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:s,failOnWarnings:!e.force,bundler:e.bundler});t.succeed(),t=p.spinner("Writing to disk"),c.forEach(([f,m])=>{let y=(0,vr.join)(`/${m}`,`${f.name}`),x=yo(d.readFileSync(y,"utf8").toString(),y,{bundleEnvironment:m}),I=(0,vr.join)(process.cwd(),e.outputPath||yS);ys.default.existsSync((0,vr.join)(I,`${m}`))||ys.default.mkdirSync((0,vr.join)(I,`${m}`),{recursive:!0}),ys.default.writeFileSync((0,vr.join)(I,m,f.name),x.value.toString())}),t.succeed(),p.success("Code Library bundled successfully!")}catch(n){throw t?.fail(),new A(n)}}var vo=D(require("fs-extra")),Wu=D(require("path"));q();function DS(){try{if(!vo.default.existsSync(xe))return null;let e=vo.default.readdirSync(xe).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Wu.default.join(xe,t),time:vo.default.statSync(Wu.default.join(xe,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=vo.default.readFileSync(t.path,"utf8").match(/Command: (.+)/);if(r){let o=r[1];if(!/^(log|library\s+log)(\s|$)/.test(o))return t.path}}catch{continue}return null}catch{return null}}async function zu(){let e=DS();e&&console.info(`${me.green("\u279C")} Latest log: ${e}`),console.info(`${me.green("\u279C")} All logs: ${xe}`)}async function Zb(e){e.command("log").description("Display the logs directory and path to the latest log file, if available.").action(zu)}function ko(e,t){t.forEach(n=>{e.addOption(n)}),e.commands.forEach(n=>ko(n,t))}var Yb=new Cn.Option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors."),Kb=new Cn.Option("--debug-bundler","Display final bundler configurations for debugging purposes."),Xb=new Cn.Option("--dev","Bundle in development mode for debugging purposes."),Qb=new Cn.Option("--verbose","Display more information for debugging purposes."),eD=new Cn.Option("--bundler <engine>","Bundler to use: webpack or rspack (experimental). Default: webpack").choices(["webpack","rspack"]).default("webpack").hideHelp(),tD=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").addOption(Yb).addOption(Kb).addOption(Xb).addOption(Qb);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.").addOption(eD).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Nu(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").addOption(new Cn.Option("--library-id <id>","Set the library identifier to use for the bundle.").hideHelp()).option("--public-path <path>","Set the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'").addOption(eD).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await $u(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(zu),t.commands.forEach(n=>{ko(n,[Yb,Kb,Xb,Qb])})};var iD=D(aa());var nD=new bs.Option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines."),rD=new bs.Option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json"),oD=new bs.Option("--skip-update-check","Skip checking for @webflow packages updates");function sD(e){let t=iD.default.version;e.name("webflow").description("Webflow CLI").version(t).addOption(nD).addOption(rD).addOption(oD).showHelpAfterError(),e.hook("preAction",async n=>{let r=n.opts();r.input||ld(!0),ht.start(),r.manifest&&ud(r.manifest);try{r.skipUpdateCheck||await new Wr().prompt()}catch(o){p.debug(o)}}),e.hook("postAction",async()=>{ht.displayGrouped(),ht.stop()}),Wd(e),yp(e),eg(e),Ty(e),tD(e),Zb(e),e.commands.forEach(n=>{ko(n,[nD,rD,oD])})}q();ye();var lD=new aD.Command;sD(lD);lD.parseAsync().catch(e=>{e instanceof A?e.skipLogging||p.error(e,{prefix:e.prefix}):p.error(e),process.exit(1)});
163
+ `,f),"")}`)),t.succeed(),t=d.spinner("Generating library bundle");let{outputFiles:c,outputVolume:p}=await Si({libraryIdentifier:r,renderer:n.renderer,framework:n.framework,publicPath:jt(e.publicPath||T_),sourceVolumes:[i],componentsFiles:o,componentsOptions:l,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:s,failOnWarnings:!e.force,bundler:e.bundler});t.succeed(),t=d.spinner("Writing to disk"),c.forEach(([f,m])=>{let y=(0,sr.join)(`/${m}`,`${f.name}`),C=Kr(p.readFileSync(y,"utf8").toString(),y,{bundleEnvironment:m}),P=(0,sr.join)(process.cwd(),e.outputPath||A_);Li.default.existsSync((0,sr.join)(P,`${m}`))||Li.default.mkdirSync((0,sr.join)(P,`${m}`),{recursive:!0}),Li.default.writeFileSync((0,sr.join)(P,m,f.name),C.value.toString())}),t.succeed(),d.success("Code Library bundled successfully!")}catch(n){throw t?.fail(),new E(n)}}var eo=D(require("fs-extra")),Gl=D(require("path"));q();bt();function O_(){try{if(!eo.default.existsSync(we))return null;let e=eo.default.readdirSync(we).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Gl.default.join(we,t),time:eo.default.statSync(Gl.default.join(we,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){let o=r[1];if(!/^(log|library\s+log)(\s|$)/.test(o))return t.path}}catch{continue}return null}catch{return null}}async function ql(){let e=O_();e&&console.info(`${wn} Latest log: ${e}`),console.info(`${wn} All logs: ${we}`)}async function oy(e){e.command("log").description("Display the logs directory and path to the latest log file, if available.").action(ql)}function to(e,t){t.forEach(n=>{e.addOption(n)}),e.commands.forEach(n=>to(n,t))}var iy=new ar.Option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors."),sy=new ar.Option("--debug-bundler","Display final bundler configurations for debugging purposes."),ay=new ar.Option("--dev","Bundle in development mode for debugging purposes."),ly=new ar.Option("--bundler <engine>","Bundler to use: webpack or rspack (experimental). Default: webpack").choices(["webpack","rspack"]).default("webpack").hideHelp(),uy=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").addOption(iy).addOption(sy).addOption(ay);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.").addOption(ly).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Ul(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").addOption(new ar.Option("--library-id <id>","Set the library identifier to use for the bundle.").hideHelp()).option("--public-path <path>","Set the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'").addOption(ly).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Vl(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(ql),t.commands.forEach(n=>{to(n,[iy,sy,ay])})};var my=D(vs());var cy=new no.Option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines."),py=new no.Option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json"),dy=new no.Option("--skip-update-check","Skip checking for @webflow packages updates"),fy=new no.Option("--verbose","Display more information for debugging purposes.");function hy(e){let t=my.default.version;e.name("webflow").description("Webflow CLI").version(t).addOption(cy).addOption(py).addOption(dy).addOption(fy).showHelpAfterError(),e.hook("preAction",async n=>{let r=n.opts();r.input||Uu(!0),it.start(),r.manifest&&Vu(r.manifest);try{await De.promptForConsentIfNeeded()}catch(o){d.debug(`Failed to check telemetry preference: ${o}`)}try{r.skipUpdateCheck||await new Cr().prompt()}catch(o){d.debug(`Failed to check for package updates: ${o}`)}}),e.hook("postAction",async()=>{it.displayGrouped(),it.stop()}),Cc(e),tp(e),$m(e),Nh(e),uy(e),oy(e),e.commands.forEach(n=>{to(n,[cy,py,dy,fy])})}q();me();var yy=new gy.Command;hy(yy);yy.parseAsync().catch(e=>{e instanceof E?e.skipLogging||d.error(e,{prefix:e.prefix}):d.error(e),process.exit(1)});
176
164
  //# sourceMappingURL=index.js.map