@webflow/webflow-cli 1.15.1 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,50 +1,48 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var qy=Object.create;var Mi=Object.defineProperty;var Jy=Object.getOwnPropertyDescriptor;var Hy=Object.getOwnPropertyNames;var Zy=Object.getPrototypeOf,Ky=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oc=(e,t)=>{for(var n in t)Mi(e,n,{get:t[n],enumerable:!0})},Yy=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hy(t))!Ky.call(e,o)&&o!==n&&Mi(e,o,{get:()=>t[o],enumerable:!(r=Jy(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?qy(Zy(e)):{},Yy(t||!e||!e.__esModule?Mi(n,"default",{value:e,enumerable:!0}):n,e));function eb(){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=ic(),te.color.ansi256=sc(),te.color.ansi16m=ac(),te.bgColor.ansi=ic(10),te.bgColor.ansi256=sc(10),te.bgColor.ansi16m=ac(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 ic,sc,ac,te,o_,Xy,Qy,i_,tb,ze,lc=S(()=>{"use strict";ic=(e=0)=>t=>`\x1B[${t+e}m`,sc=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,ac=(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]}},o_=Object.keys(te.modifier),Xy=Object.keys(te.color),Qy=Object.keys(te.bgColor),i_=[...Xy,...Qy];tb=eb(),ze=tb});function Te(e,t=globalThis.Deno?globalThis.Deno.args:no.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 nb(){if("FORCE_COLOR"in re)return re.FORCE_COLOR==="true"?1:re.FORCE_COLOR==="false"?0:re.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(re.FORCE_COLOR,10),3)}function rb(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ob(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=nb();r!==void 0&&(to=r);let o=n?to:r;if(o===0)return 0;if(n){if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2}if("TF_BUILD"in re&&"AGENT_NAME"in re)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(re.TERM==="dumb")return i;if(no.default.platform==="win32"){let s=uc.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in re)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in re)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in re)||re.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in re)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(re.TEAMCITY_VERSION)?1:0;if(re.COLORTERM==="truecolor"||re.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in re){let s=Number.parseInt((re.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(re.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(re.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(re.TERM)||"COLORTERM"in re?1:i}function cc(e,t={}){let n=ob(e,{streamIsTTY:e&&e.isTTY,...t});return rb(n)}var no,uc,Wi,re,to,ib,pc,dc=S(()=>{"use strict";no=D(require("process"),1),uc=D(require("os"),1),Wi=D(require("tty"),1);({env:re}=no.default);Te("no-color")||Te("no-colors")||Te("color=false")||Te("color=never")?to=0:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(to=1);ib={stdout:cc({isTTY:Wi.default.isatty(1)}),stderr:cc({isTTY:Wi.default.isatty(2)})},pc=ib});function fc(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 mc(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 Ny=Object.create;var zi=Object.defineProperty;var $y=Object.getOwnPropertyDescriptor;var My=Object.getOwnPropertyNames;var zy=Object.getPrototypeOf,Wy=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var Wi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tc=(e,t)=>{for(var n in t)zi(e,n,{get:t[n],enumerable:!0})},Uy=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of My(t))!Wy.call(e,o)&&o!==n&&zi(e,o,{get:()=>t[o],enumerable:!(r=$y(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?Ny(zy(e)):{},Uy(t||!e||!e.__esModule?zi(n,"default",{value:e,enumerable:!0}):n,e));function qy(){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=nc(),te.color.ansi256=rc(),te.color.ansi16m=oc(),te.bgColor.ansi=nc(10),te.bgColor.ansi256=rc(10),te.bgColor.ansi16m=oc(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 nc,rc,oc,te,YE,Vy,Gy,XE,Jy,ze,ic=S(()=>{"use strict";nc=(e=0)=>t=>`\x1B[${t+e}m`,rc=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,oc=(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]}},YE=Object.keys(te.modifier),Vy=Object.keys(te.color),Gy=Object.keys(te.bgColor),XE=[...Vy,...Gy];Jy=qy(),ze=Jy});function Te(e,t=globalThis.Deno?globalThis.Deno.args:ro.default.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}function Hy(){if("FORCE_COLOR"in oe)return oe.FORCE_COLOR==="true"?1:oe.FORCE_COLOR==="false"?0:oe.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(oe.FORCE_COLOR,10),3)}function Zy(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ky(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Hy();r!==void 0&&(no=r);let o=n?no:r;if(o===0)return 0;if(n){if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2}if("TF_BUILD"in oe&&"AGENT_NAME"in oe)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(oe.TERM==="dumb")return i;if(ro.default.platform==="win32"){let s=ac.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in oe)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in oe)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in oe)||oe.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in oe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(oe.TEAMCITY_VERSION)?1:0;if(oe.COLORTERM==="truecolor"||oe.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in oe){let s=Number.parseInt((oe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(oe.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(oe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(oe.TERM)||"COLORTERM"in oe?1:i}function sc(e,t={}){let n=Ky(e,{streamIsTTY:e&&e.isTTY,...t});return Zy(n)}var ro,ac,Ui,oe,no,Yy,lc,cc=S(()=>{"use strict";ro=D(require("process"),1),ac=D(require("os"),1),Ui=D(require("tty"),1);({env:oe}=ro.default);Te("no-color")||Te("no-colors")||Te("color=false")||Te("color=never")?no=0:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(no=1);Yy={stdout:sc({isTTY:Ui.default.isatty(1)}),stderr:sc({isTTY:Ui.default.isatty(2)})},lc=Yy});function uc(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 pc(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 hc=S(()=>{"use strict"});function pr(e){return ab(e)}var gc,yc,Ui,bn,ur,bc,Dn,sb,ab,Vi,lb,cb,Gi,ro,ub,pb,d_,T,We=S(()=>{"use strict";lc();dc();hc();({stdout:gc,stderr:yc}=pc),Ui=Symbol("GENERATOR"),bn=Symbol("STYLER"),ur=Symbol("IS_EMPTY"),bc=["ansi","ansi","ansi256","ansi16m"],Dn=Object.create(null),sb=(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=gc?gc.level:0;e.level=t.level===void 0?n:t.level},ab=e=>{let t=(...n)=>n.join(" ");return sb(t,e),Object.setPrototypeOf(t,pr.prototype),t};Object.setPrototypeOf(pr.prototype,Function.prototype);for(let[e,t]of Object.entries(ze))Dn[e]={get(){let n=ro(this,Gi(t.open,t.close,this[bn]),this[ur]);return Object.defineProperty(this,e,{value:n}),n}};Dn.visible={get(){let e=ro(this,this[bn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Vi=(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"?Vi("rgb",t,n,...ze.hexToRgb(...r)):ze[n][e](...r),lb=["rgb","hex","ansi256"];for(let e of lb){Dn[e]={get(){let{level:n}=this;return function(...r){let o=Gi(Vi(e,bc[n],"color",...r),ze.color.close,this[bn]);return ro(this,o,this[ur])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Dn[t]={get(){let{level:n}=this;return function(...r){let o=Gi(Vi(e,bc[n],"bgColor",...r),ze.bgColor.close,this[bn]);return ro(this,o,this[ur])}}}}cb=Object.defineProperties(()=>{},{...Dn,level:{enumerable:!0,get(){return this[Ui].level},set(e){this[Ui].level=e}}}),Gi=(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}},ro=(e,t,n)=>{let r=(...o)=>ub(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,cb),r[Ui]=e,r[bn]=t,r[ur]=n,r},ub=(e,t)=>{if(e.level<=0||!t)return e[ur]?"":t;let n=e[bn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=fc(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
- `);return i!==-1&&(t=mc(t,o,r,i)),r+t+o};Object.defineProperties(pr.prototype,Dn);pb=pr(),d_=pr({level:yc?yc.level:0}),T=pb});function qi(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))db(e,t,o,n);return mb(e,t),bb(e,t,r),e}var db,fb,mb,hb,gb,yb,bb,Dc=S(()=>{"use strict";db=(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);!fb(o,i)&&r||Object.defineProperty(e,n,i)},fb=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)},mb=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},hb=(e,t)=>`/* Wrapped ${e}*/
7
- ${t}`,gb=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),yb=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),bb=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=hb.bind(null,r,t.toString());Object.defineProperty(o,"name",yb);let{writable:i,enumerable:s,configurable:a}=gb;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var oo,wc,vc,kc=S(()=>{"use strict";Dc();oo=new WeakMap,wc=(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(oo.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 qi(i,e),oo.set(i,r),i};wc.callCount=e=>{if(!oo.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return oo.get(e)};vc=wc});var Mt,xc=S(()=>{"use strict";Mt=[];Mt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Mt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Mt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var io,Ji,Hi,Db,Zi,so,wb,Ki,Yi,Xi,Cc,D_,w_,Fc=S(()=>{"use strict";xc();io=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",Ji=Symbol.for("signal-exit emitter"),Hi=globalThis,Db=Object.defineProperty.bind(Object),Zi=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Hi[Ji])return Hi[Ji];Db(Hi,Ji,{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}},so=class{},wb=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Ki=class extends so{onExit(){return()=>{}}load(){}unload(){}},Yi=class extends so{#s=Xi.platform==="win32"?"SIGINT":"SIGHUP";#n=new Zi;#e;#o;#d;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of Mt)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(!io(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 Mt)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,Mt.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 io(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"&&io(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)}},Xi=globalThis.process,{onExit:Cc,load:D_,unload:w_}=wb(io(Xi)?new Yi(Xi):new Ki)});var dr,Ec,vb,_c,Sc=S(()=>{"use strict";dr=D(require("process"),1);kc();Fc();Ec=dr.default.stderr.isTTY?dr.default.stderr:dr.default.stdout.isTTY?dr.default.stdout:void 0,vb=Ec?vc(()=>{Cc(()=>{Ec.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},_c=vb});var Qi,ao,wn,es,Tc=S(()=>{"use strict";Qi=D(require("process"),1);Sc();ao=!1,wn={};wn.show=(e=Qi.default.stderr)=>{e.isTTY&&(ao=!1,e.write("\x1B[?25h"))};wn.hide=(e=Qi.default.stderr)=>{e.isTTY&&(_c(),ao=!0,e.write("\x1B[?25l"))};wn.toggle=(e,t)=>{e!==void 0&&(ao=e),ao?wn.show(t):wn.hide(t)};es=wn});var Ac=zi((__,kb)=>{kb.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 ts=zi((S_,Pc)=>{"use strict";var lo=Object.assign({},Ac()),Oc=Object.keys(lo);Object.defineProperty(lo,"random",{get(){let e=Math.floor(Math.random()*Oc.length),t=Oc[e];return lo[t]}});Pc.exports=lo});function ns(){return Ae.default.platform!=="win32"?Ae.default.env.TERM!=="linux":!!Ae.default.env.CI||!!Ae.default.env.WT_SESSION||!!Ae.default.env.TERMINUS_SUBLIME||Ae.default.env.ConEmuTask==="{cmd::Cmder}"||Ae.default.env.TERM_PROGRAM==="Terminus-Sublime"||Ae.default.env.TERM_PROGRAM==="vscode"||Ae.default.env.TERM==="xterm-256color"||Ae.default.env.TERM==="alacritty"||Ae.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Ae,Ic=S(()=>{"use strict";Ae=D(require("process"),1)});var xb,Cb,Fb,fr,Rc=S(()=>{"use strict";We();Ic();xb={info:T.blue("\u2139"),success:T.green("\u2714"),warning:T.yellow("\u26A0"),error:T.red("\u2716")},Cb={info:T.blue("i"),success:T.green("\u221A"),warning:T.yellow("\u203C"),error:T.red("\xD7")},Fb=ns()?xb:Cb,fr=Fb});function rs({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 jc=S(()=>{"use strict"});function mr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Eb,"")}var Eb,os=S(()=>{"use strict";jc();Eb=rs()});function Bc(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 Lc(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Nc(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 $c=S(()=>{"use strict"});function _b(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Mc(e,{ambiguousAsWide:t=!1}={}){return _b(e),Lc(e)||Nc(e)||t&&Bc(e)?2:1}var zc=S(()=>{"use strict";$c()});var Wc,Uc=S(()=>{"use strict";Wc=()=>/[#*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 is(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=mr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of Sb.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(Wc().test(s)){o+=2;continue}o+=Mc(a,i)}}return o}var Sb,Tb,Vc=S(()=>{"use strict";os();zc();Uc();Sb=new Intl.Segmenter,Tb=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function ss({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Gc=S(()=>{"use strict"});function ls(){let{env:e}=as.default,{TERM:t,TERM_PROGRAM:n}=e;return as.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 as,qc=S(()=>{"use strict";as=D(require("process"),1)});var Ue,Ab,cs,Ob,us,Jc=S(()=>{"use strict";Ue=D(require("process"),1),Ab=3,cs=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(){Ue.default.platform==="win32"||!Ue.default.stdin.isTTY||(Ue.default.stdin.setRawMode(!0),Ue.default.stdin.on("data",this.#o),Ue.default.stdin.resume())}#e(){Ue.default.stdin.isTTY&&(Ue.default.stdin.off("data",this.#o),Ue.default.stdin.pause(),Ue.default.stdin.setRawMode(!1))}#o(t){t[0]===Ab&&Ue.default.emit("SIGINT")}},Ob=new cs,us=Ob});function vn(e){return new ps(e)}var hr,gr,Pb,ps,ds=S(()=>{"use strict";hr=D(require("process"),1);We();Tc();gr=D(ts(),1);Rc();os();Vc();Gc();qc();Jc();Pb=D(ts(),1),ps=class{#s=0;#n=!1;#e=0;#o=-1;#d=0;#t;#i;#r;#f;#h;#c;#u;#p;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:hr.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.#c=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:ss({stream:this.#r}),this.#u=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,hr.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#c,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(!ls())this.#i=gr.default.line;else if(t===void 0)this.#i=gr.default.dots;else if(t!=="default"&&gr.default[t])this.#i=gr.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 mr(o).split(`
8
- `))this.#e+=Math.max(1,Math.ceil(is(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#c&&!this.#u}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#c=t}get isSilent(){return this.#u}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=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=T[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.#c||!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.#u?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#u?this:this.#c?this.isSpinning?this:(this.#t.hideCursor&&es.hide(this.#r),this.#t.discardStdin&&hr.default.stdin.isTTY&&(this.#n=!0,us.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.#c?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&es.show(this.#r),this.#t.discardStdin&&hr.default.stdin.isTTY&&this.#n&&(us.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.#u)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:"",c=t.suffixText??this.#l,l=this.#b(c," "),u=r+o+a+l+`
10
- `;return this.stop(),this.#r.write(u),this}}});function hs(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),co.default.platform==="darwin"?Ib(e):co.default.platform==="win32"?Rb(e):jb(e)}var ne,fs,co,wt,ms,kn,Ib,Rb,jb,Hc=S(()=>{"use strict";ne=D(require("path"),1),fs=D(require("os"),1),co=D(require("process"),1),wt=fs.default.homedir(),ms=fs.default.tmpdir(),{env:kn}=co.default,Ib=e=>{let t=ne.default.join(wt,"Library");return{data:ne.default.join(t,"Application Support",e),config:ne.default.join(t,"Preferences",e),cache:ne.default.join(t,"Caches",e),log:ne.default.join(t,"Logs",e),temp:ne.default.join(ms,e)}},Rb=e=>{let t=kn.APPDATA||ne.default.join(wt,"AppData","Roaming"),n=kn.LOCALAPPDATA||ne.default.join(wt,"AppData","Local");return{data:ne.default.join(n,e,"Data"),config:ne.default.join(t,e,"Config"),cache:ne.default.join(n,e,"Cache"),log:ne.default.join(n,e,"Log"),temp:ne.default.join(ms,e)}},jb=e=>{let t=ne.default.basename(wt);return{data:ne.default.join(kn.XDG_DATA_HOME||ne.default.join(wt,".local","share"),e),config:ne.default.join(kn.XDG_CONFIG_HOME||ne.default.join(wt,".config"),e),cache:ne.default.join(kn.XDG_CACHE_HOME||ne.default.join(wt,".cache"),e),log:ne.default.join(kn.XDG_STATE_HOME||ne.default.join(wt,".local","state"),e),temp:ne.default.join(ms,t,e)}}});function uo(){return/[<>:"/\\|?*\u0000-\u001F]/g}function Zc(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Kc=S(()=>{"use strict"});function yr(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(uo().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(Lb,o),e=e.replace(uo(),o),e=e.replace(n,o),e=e.replace(Nb,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=Zc().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:Bb;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),c=e.slice(s);e=a.slice(0,Math.max(1,i-c.length))+c}}return e}var Bb,Lb,Nb,gs=S(()=>{"use strict";Kc();Bb=100,Lb=/^\.+(\\|\/)|^\.+$/,Nb=/\.+$/});var $b,Yc=S(()=>{"use strict";$b=D(require("path"),1);gs()});var Xc=S(()=>{"use strict";gs();Yc()});var po,ys=S(()=>{"use strict";po="webflow.json"});var zt,bs=S(()=>{"use strict";zt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function eu(e){Ds=e}function le(){return Ds}function vt(){return!Ds}function tu(e){Qc=e}function nu(){return Qc}var Ds,Qc,Fe=S(()=>{"use strict";Ds=!1});function Wt(){let e=nu();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,ru.statSync)(e)?.isDirectory())return{path:(0,ou.join)(e,po),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:`./${po}`,isUserDefined:!1}}var ru,ou,ws=S(()=>{"use strict";ru=require("fs"),ou=require("path");ys();Fe()});var iu,Mb,zb,vs,su=S(()=>{"use strict";iu=D(require("ajv")),Mb=new iu.default,zb={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"},cssScopes:{type:"boolean"},camelCaseVariantNames:{type:"boolean"},relativeHrefRoot:{oneOf:[{type:"boolean",const:!1},{type:"string"}]},treeShake:{type:"boolean"}},required:[]}}},vs=Mb.compile(zb)});function au(e){return e instanceof Error?e:new Error("Unknown error")}function X(){let{path:e}=Wt();if(!(0,fo.existsSync)(e))return{manifest:{},manifestPath:e};let t;try{t=(0,fo.readFileSync)(e,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${au(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: ${au(o).message}`)}if(!vs(r)){let o=vs.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:r,manifestPath:e}}var fo,ks=S(()=>{"use strict";fo=require("fs");ws();su()});function br(e,t){let n=e[t];if(!n)throw new zt(t);return n}var lu=S(()=>{"use strict";bs()});function fe(e){let t=X(),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 c=o[s];o[s]={...typeof c=="object"&&c!==null?c:{},...a}}}(0,cu.writeFileSync)(r,JSON.stringify(o,null,2),"utf-8")}var cu,xs=S(()=>{"use strict";cu=require("fs");ks()});var De=S(()=>{"use strict";ys();bs();ks();ws();lu();xs()});var mo=zi((R2,Wb)=>{Wb.exports={name:"@webflow/webflow-cli",version:"1.15.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 <5.106.0","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 lt(){try{return mo().version}catch{return"unknown"}}function Xe(e=""){if(!e)return"";let t=e;t=t.replace(/\/.*?\/webflow-cli/gi,"/REDACTED_PII/webflow-cli"),t=t.replace(/\/.*?\/node_modules/gi,"/REDACTED_PII/node_modules");let n=Dr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=Dr.default.userInfo().username;if(r){let o=new RegExp(`/Users/${r}`,"gi");t=t.replace(o,"/Users/REDACTED_PII")}return t=t.replace(/\/Users\/[^\/\s]+/gi,"/Users/REDACTED_PII"),t=t.replace(/C:\\Users\\[^\\]+/gi,"C:\\Users\\REDACTED_PII"),t=t.replace(/[a-zA-Z0-9]{32,}/g,"[REDACTED_TOKEN]"),t=t.replace(/Bearer\s+[^\s]+/gi,"Bearer [REDACTED_TOKEN]"),t=t.replace(/token[=:]\s*[^\s]+/gi,"token=[REDACTED_TOKEN]"),t=t.replace(/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,"[REDACTED_EMAIL]"),t=t.replace(/\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,"[REDACTED_IP]"),t}function Cs(e){if(e.stack)return Xe(e.stack)}function kt(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]=Xe(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=kt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?kt(s):typeof s=="string"?Xe(s):s):n[r]=o}return n}function uu(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${Dr.default.type()} ${Dr.default.release()}`}}function Fs(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var Dr,wr=S(()=>{"use strict";Dr=D(require("os"))});var oe,ie,xn,Cn,Es,pu,Ve=S(()=>{"use strict";We();oe=T.green("\u2714"),ie=T.red("\u2716"),xn=T.cyan("\u2139"),Cn=T.green("\u279C"),Es=T.red("\u279C"),pu=T.yellow("\u26A0")});var xt,_s=S(()=>{"use strict";We();De();wr();V();Ve();xt=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 X(),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(`${xn} Telemetry is disabled because the DO_NOT_TRACK environment variable is set.`),!1):(d.info(`${xn} Telemetry is enabled. Usage data and error reports help us improve Webflow CLI.`),d.info(`${xn} To opt out, run: ${T.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:lt()}}};await fe(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 se(e,t){let r={"User-Agent":`webflow-cli@${lt()}`};return(0,du.default)(e,{...t,headers:{...t?.headers,...r}})}var du,Ut=S(()=>{"use strict";du=D(require("node-fetch"));Qe()});var fu,mu=S(()=>{"use strict";fu=e=>{try{let t=new URL(e);return!(!["http:","https:"].includes(t.protocol)||e.includes("?")||e.includes("#")||t.search||t.hash)}catch{return!1}}});var Ss,J,ho,Fn,vr,Ts,kr,xr,En,ue=S(()=>{"use strict";mu();Ss=(e,t)=>(fu(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),J=process.env.WEBFLOW_API_HOST?Ss("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",ho=process.env.WEBFLOW_CDN_API_HOST?Ss("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",Fn=process.env.WEBFLOW_HOST?Ss("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",vr="wf-manifest.json",Ts="mf-manifest.json",kr="@webflow_renderer",xr="ssr-bundle.tar",En="index.js"});var Q,As=S(()=>{"use strict";_s();wr();V();Ut();ue();Q=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=xt.getInstance(),this.sessionId=Fs(),this.platformInfo=uu()}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:Cs(t),context:n,metadata:r?kt(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?kt(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=xt.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:lt(),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=Xe(n.message)),n.stack&&(n.stack=Xe(n.stack)),n.context&&(n.context=Xe(n.context)),n.metadata&&(n.metadata=kt(n.metadata)),n.data&&(n.data=kt(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 se(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||J,authToken:t.authToken,siteId:t.siteId,commandType:"devlink"})}static forExport(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,commandType:"export"})}static forCloud(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host||J,authToken:t.authToken,commandType:"library"})}static forCms(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,commandType:"cms"})}}});var hu=S(()=>{"use strict"});function gu(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,c=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:c-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}var Qe=S(()=>{"use strict";As();_s();hu();wr();wr()});var Ps,Os,Ub,ct,Is=S(()=>{"use strict";Ps=Symbol("webflow-cli-warn"),Os=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]===Ps){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 dc=S(()=>{"use strict"});function dr(e){return Qy(e)}var fc,mc,Vi,Dn,pr,hc,wn,Xy,Qy,Gi,eb,tb,qi,oo,nb,rb,i_,T,We=S(()=>{"use strict";ic();cc();dc();({stdout:fc,stderr:mc}=lc),Vi=Symbol("GENERATOR"),Dn=Symbol("STYLER"),pr=Symbol("IS_EMPTY"),hc=["ansi","ansi","ansi256","ansi16m"],wn=Object.create(null),Xy=(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=fc?fc.level:0;e.level=t.level===void 0?n:t.level},Qy=e=>{let t=(...n)=>n.join(" ");return Xy(t,e),Object.setPrototypeOf(t,dr.prototype),t};Object.setPrototypeOf(dr.prototype,Function.prototype);for(let[e,t]of Object.entries(ze))wn[e]={get(){let n=oo(this,qi(t.open,t.close,this[Dn]),this[pr]);return Object.defineProperty(this,e,{value:n}),n}};wn.visible={get(){let e=oo(this,this[Dn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Gi=(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"?Gi("rgb",t,n,...ze.hexToRgb(...r)):ze[n][e](...r),eb=["rgb","hex","ansi256"];for(let e of eb){wn[e]={get(){let{level:n}=this;return function(...r){let o=qi(Gi(e,hc[n],"color",...r),ze.color.close,this[Dn]);return oo(this,o,this[pr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);wn[t]={get(){let{level:n}=this;return function(...r){let o=qi(Gi(e,hc[n],"bgColor",...r),ze.bgColor.close,this[Dn]);return oo(this,o,this[pr])}}}}tb=Object.defineProperties(()=>{},{...wn,level:{enumerable:!0,get(){return this[Vi].level},set(e){this[Vi].level=e}}}),qi=(e,t,n)=>{let r,o;return n===void 0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},oo=(e,t,n)=>{let r=(...o)=>nb(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,tb),r[Vi]=e,r[Dn]=t,r[pr]=n,r},nb=(e,t)=>{if(e.level<=0||!t)return e[pr]?"":t;let n=e[Dn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=uc(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
+ `);return i!==-1&&(t=pc(t,o,r,i)),r+t+o};Object.defineProperties(dr.prototype,wn);rb=dr(),i_=dr({level:mc?mc.level:0}),T=rb});function Ji(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))ob(e,t,o,n);return sb(e,t),ub(e,t,r),e}var ob,ib,sb,ab,lb,cb,ub,gc=S(()=>{"use strict";ob=(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);!ib(o,i)&&r||Object.defineProperty(e,n,i)},ib=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)},sb=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},ab=(e,t)=>`/* Wrapped ${e}*/
7
+ ${t}`,lb=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),cb=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ub=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=ab.bind(null,r,t.toString());Object.defineProperty(o,"name",cb);let{writable:i,enumerable:s,configurable:a}=lb;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var io,yc,bc,Dc=S(()=>{"use strict";gc();io=new WeakMap,yc=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(io.set(i,++r),r===1)n=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return Ji(i,e),io.set(i,r),i};yc.callCount=e=>{if(!io.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return io.get(e)};bc=yc});var zt,wc=S(()=>{"use strict";zt=[];zt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&zt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&zt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var so,Hi,Zi,pb,Ki,ao,db,Yi,Xi,Qi,vc,d_,f_,kc=S(()=>{"use strict";wc();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",Hi=Symbol.for("signal-exit emitter"),Zi=globalThis,pb=Object.defineProperty.bind(Object),Ki=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Zi[Hi])return Zi[Hi];pb(Zi,Hi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},ao=class{},db=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Yi=class extends ao{onExit(){return()=>{}}load(){}unload(){}},Xi=class extends ao{#s=Qi.platform==="win32"?"SIGINT":"SIGHUP";#n=new Ki;#e;#o;#d;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of zt)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(!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 zt)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,zt.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 so(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"&&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)}},Qi=globalThis.process,{onExit:vc,load:d_,unload:f_}=db(so(Qi)?new Xi(Qi):new Yi)});var fr,xc,fb,Cc,Fc=S(()=>{"use strict";fr=D(require("process"),1);Dc();kc();xc=fr.default.stderr.isTTY?fr.default.stderr:fr.default.stdout.isTTY?fr.default.stdout:void 0,fb=xc?bc(()=>{vc(()=>{xc.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Cc=fb});var es,lo,vn,ts,Ec=S(()=>{"use strict";es=D(require("process"),1);Fc();lo=!1,vn={};vn.show=(e=es.default.stderr)=>{e.isTTY&&(lo=!1,e.write("\x1B[?25h"))};vn.hide=(e=es.default.stderr)=>{e.isTTY&&(Cc(),lo=!0,e.write("\x1B[?25l"))};vn.toggle=(e,t)=>{e!==void 0&&(lo=e),lo?vn.show(t):vn.hide(t)};ts=vn});var _c=Wi((w_,mb)=>{mb.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 ns=Wi((v_,Tc)=>{"use strict";var co=Object.assign({},_c()),Sc=Object.keys(co);Object.defineProperty(co,"random",{get(){let e=Math.floor(Math.random()*Sc.length),t=Sc[e];return co[t]}});Tc.exports=co});function rs(){return Ae.default.platform!=="win32"?Ae.default.env.TERM!=="linux":!!Ae.default.env.CI||!!Ae.default.env.WT_SESSION||!!Ae.default.env.TERMINUS_SUBLIME||Ae.default.env.ConEmuTask==="{cmd::Cmder}"||Ae.default.env.TERM_PROGRAM==="Terminus-Sublime"||Ae.default.env.TERM_PROGRAM==="vscode"||Ae.default.env.TERM==="xterm-256color"||Ae.default.env.TERM==="alacritty"||Ae.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Ae,Ac=S(()=>{"use strict";Ae=D(require("process"),1)});var hb,gb,yb,mr,Oc=S(()=>{"use strict";We();Ac();hb={info:T.blue("\u2139"),success:T.green("\u2714"),warning:T.yellow("\u26A0"),error:T.red("\u2716")},gb={info:T.blue("i"),success:T.green("\u221A"),warning:T.yellow("\u203C"),error:T.red("\xD7")},yb=rs()?hb:gb,mr=yb});function os({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 Pc=S(()=>{"use strict"});function hr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(bb,"")}var bb,is=S(()=>{"use strict";Pc();bb=os()});function Ic(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 Rc(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Bc(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 jc=S(()=>{"use strict"});function Db(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Lc(e,{ambiguousAsWide:t=!1}={}){return Db(e),Rc(e)||Bc(e)||t&&Ic(e)?2:1}var Nc=S(()=>{"use strict";jc()});var $c,Mc=S(()=>{"use strict";$c=()=>/[#*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 ss(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=hr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of wb.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)&&!vb.test(s)){if($c().test(s)){o+=2;continue}o+=Lc(a,i)}}return o}var wb,vb,zc=S(()=>{"use strict";is();Nc();Mc();wb=new Intl.Segmenter,vb=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function as({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var Wc=S(()=>{"use strict"});function cs(){let{env:e}=ls.default,{TERM:t,TERM_PROGRAM:n}=e;return ls.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 ls,Uc=S(()=>{"use strict";ls=D(require("process"),1)});var Ue,kb,us,xb,ps,Vc=S(()=>{"use strict";Ue=D(require("process"),1),kb=3,us=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(){Ue.default.platform==="win32"||!Ue.default.stdin.isTTY||(Ue.default.stdin.setRawMode(!0),Ue.default.stdin.on("data",this.#o),Ue.default.stdin.resume())}#e(){Ue.default.stdin.isTTY&&(Ue.default.stdin.off("data",this.#o),Ue.default.stdin.pause(),Ue.default.stdin.setRawMode(!1))}#o(t){t[0]===kb&&Ue.default.emit("SIGINT")}},xb=new us,ps=xb});function kn(e){return new ds(e)}var gr,yr,Cb,ds,fs=S(()=>{"use strict";gr=D(require("process"),1);We();Ec();yr=D(ns(),1);Oc();is();zc();Wc();Uc();Vc();Cb=D(ns(),1),ds=class{#s=0;#n=!1;#e=0;#o=-1;#d=0;#t;#i;#r;#f;#h;#c;#u;#p;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:gr.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.#c=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:as({stream:this.#r}),this.#u=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,gr.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#c,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(!cs())this.#i=yr.default.line;else if(t===void 0)this.#i=yr.default.dots;else if(t!=="default"&&yr.default[t])this.#i=yr.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 hr(o).split(`
8
+ `))this.#e+=Math.max(1,Math.ceil(ss(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#c&&!this.#u}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#c=t}get isSilent(){return this.#u}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#u=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=T[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.#c||!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.#u?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#u?this:this.#c?this.isSpinning?this:(this.#t.hideCursor&&ts.hide(this.#r),this.#t.discardStdin&&gr.default.stdin.isTTY&&(this.#n=!0,ps.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.#c?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&ts.show(this.#r),this.#t.discardStdin&&gr.default.stdin.isTTY&&this.#n&&(ps.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:mr.success,text:t})}fail(t){return this.stopAndPersist({symbol:mr.error,text:t})}warn(t){return this.stopAndPersist({symbol:mr.warning,text:t})}info(t){return this.stopAndPersist({symbol:mr.info,text:t})}stopAndPersist(t={}){if(this.#u)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:"",c=t.suffixText??this.#l,l=this.#b(c," "),u=r+o+a+l+`
10
+ `;return this.stop(),this.#r.write(u),this}}});function gs(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),uo.default.platform==="darwin"?Fb(e):uo.default.platform==="win32"?Eb(e):_b(e)}var ne,ms,uo,wt,hs,xn,Fb,Eb,_b,Gc=S(()=>{"use strict";ne=D(require("path"),1),ms=D(require("os"),1),uo=D(require("process"),1),wt=ms.default.homedir(),hs=ms.default.tmpdir(),{env:xn}=uo.default,Fb=e=>{let t=ne.default.join(wt,"Library");return{data:ne.default.join(t,"Application Support",e),config:ne.default.join(t,"Preferences",e),cache:ne.default.join(t,"Caches",e),log:ne.default.join(t,"Logs",e),temp:ne.default.join(hs,e)}},Eb=e=>{let t=xn.APPDATA||ne.default.join(wt,"AppData","Roaming"),n=xn.LOCALAPPDATA||ne.default.join(wt,"AppData","Local");return{data:ne.default.join(n,e,"Data"),config:ne.default.join(t,e,"Config"),cache:ne.default.join(n,e,"Cache"),log:ne.default.join(n,e,"Log"),temp:ne.default.join(hs,e)}},_b=e=>{let t=ne.default.basename(wt);return{data:ne.default.join(xn.XDG_DATA_HOME||ne.default.join(wt,".local","share"),e),config:ne.default.join(xn.XDG_CONFIG_HOME||ne.default.join(wt,".config"),e),cache:ne.default.join(xn.XDG_CACHE_HOME||ne.default.join(wt,".cache"),e),log:ne.default.join(xn.XDG_STATE_HOME||ne.default.join(wt,".local","state"),e),temp:ne.default.join(hs,t,e)}}});function po(){return/[<>:"/\\|?*\u0000-\u001F]/g}function qc(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Jc=S(()=>{"use strict"});function br(e,t={}){let n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");let o=t.replacement===void 0?"!":t.replacement;if(po().test(o)&&n.test(o))throw new Error("Replacement string cannot contain reserved filename characters");o.length>0&&(e=e.replace(r,"$1")),e=e.normalize("NFD"),e=e.replace(Tb,o),e=e.replace(po(),o),e=e.replace(n,o),e=e.replace(Ab,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=qc().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:Sb;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),c=e.slice(s);e=a.slice(0,Math.max(1,i-c.length))+c}}return e}var Sb,Tb,Ab,ys=S(()=>{"use strict";Jc();Sb=100,Tb=/^\.+(\\|\/)|^\.+$/,Ab=/\.+$/});var Ob,Hc=S(()=>{"use strict";Ob=D(require("path"),1);ys()});var Zc=S(()=>{"use strict";ys();Hc()});var fo,bs=S(()=>{"use strict";fo="webflow.json"});var Wt,Ds=S(()=>{"use strict";Wt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function Yc(e){ws=e}function le(){return ws}function vt(){return!ws}function Xc(e){Kc=e}function Qc(){return Kc}var ws,Kc,Fe=S(()=>{"use strict";ws=!1});function Ut(){let e=Qc();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,eu.statSync)(e)?.isDirectory())return{path:(0,tu.join)(e,fo),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:`./${fo}`,isUserDefined:!1}}var eu,tu,vs=S(()=>{"use strict";eu=require("fs"),tu=require("path");bs();Fe()});var nu,Pb,Ib,ks,ru=S(()=>{"use strict";nu=D(require("ajv")),Pb=new nu.default,Ib={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"},cssScopes:{type:"boolean"},relativeHrefRoot:{oneOf:[{type:"boolean",const:!1},{type:"string"}]},treeShake:{type:"boolean"}},required:[]}}},ks=Pb.compile(Ib)});function ou(e){return e instanceof Error?e:new Error("Unknown error")}function X(){let{path:e}=Ut();if(!(0,mo.existsSync)(e))return{manifest:{},manifestPath:e};let t;try{t=(0,mo.readFileSync)(e,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${ou(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: ${ou(o).message}`)}if(!ks(r)){let o=ks.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:r,manifestPath:e}}var mo,xs=S(()=>{"use strict";mo=require("fs");vs();ru()});function Dr(e,t){let n=e[t];if(!n)throw new Wt(t);return n}var iu=S(()=>{"use strict";Ds()});function fe(e){let t=X(),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 c=o[s];o[s]={...typeof c=="object"&&c!==null?c:{},...a}}}(0,su.writeFileSync)(r,JSON.stringify(o,null,2),"utf-8")}var su,Cs=S(()=>{"use strict";su=require("fs");xs()});var De=S(()=>{"use strict";bs();Ds();xs();vs();iu();Cs()});var ho=Wi((_2,Rb)=>{Rb.exports={name:"@webflow/webflow-cli",version:"1.16.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 <5.106.0","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 lt(){try{return ho().version}catch{return"unknown"}}function Qe(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=wr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=wr.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 Fs(e){if(e.stack)return Qe(e.stack)}function kt(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]=Qe(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=kt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?kt(s):typeof s=="string"?Qe(s):s):n[r]=o}return n}function au(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${wr.default.type()} ${wr.default.release()}`}}function Es(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var wr,vr=S(()=>{"use strict";wr=D(require("os"))});var ie,re,Cn,Fn,_s,lu,Ve=S(()=>{"use strict";We();ie=T.green("\u2714"),re=T.red("\u2716"),Cn=T.cyan("\u2139"),Fn=T.green("\u279C"),_s=T.red("\u279C"),lu=T.yellow("\u26A0")});var xt,Ss=S(()=>{"use strict";We();De();vr();V();Ve();xt=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 X(),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(`${Cn} Telemetry is disabled because the DO_NOT_TRACK environment variable is set.`),!1):(d.info(`${Cn} Telemetry is enabled. Usage data and error reports help us improve Webflow CLI.`),d.info(`${Cn} To opt out, run: ${T.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:lt()}}};await fe(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 ce(e,t){let r={"User-Agent":`webflow-cli@${lt()}`};return(0,cu.default)(e,{...t,headers:{...t?.headers,...r}})}var cu,Vt=S(()=>{"use strict";cu=D(require("node-fetch"));et()});var uu,pu=S(()=>{"use strict";uu=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 Ts,J,go,En,kr,As,xr,Cr,_n,ue=S(()=>{"use strict";pu();Ts=(e,t)=>(uu(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),J=process.env.WEBFLOW_API_HOST?Ts("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",go=process.env.WEBFLOW_CDN_API_HOST?Ts("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",En=process.env.WEBFLOW_HOST?Ts("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",kr="wf-manifest.json",As="mf-manifest.json",xr="@webflow_renderer",Cr="ssr-bundle.tar",_n="index.js"});var Q,Os=S(()=>{"use strict";Ss();vr();V();Vt();ue();Q=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=xt.getInstance(),this.sessionId=Es(),this.platformInfo=au()}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:Fs(t),context:n,metadata:r?kt(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?kt(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=xt.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:lt(),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=Qe(n.message)),n.stack&&(n.stack=Qe(n.stack)),n.context&&(n.context=Qe(n.context)),n.metadata&&(n.metadata=kt(n.metadata)),n.data&&(n.data=kt(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 ce(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||J,authToken:t.authToken,siteId:t.siteId,commandType:"devlink"})}static forExport(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,commandType:"export"})}static forCloud(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host||J,authToken:t.authToken,commandType:"library"})}static forCms(t){return new e({host:t.host||J,authToken:t.authToken,siteId:t.siteId,commandType:"cms"})}}});var du=S(()=>{"use strict"});function fu(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,c=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:c-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}var et=S(()=>{"use strict";Os();Ss();du();vr();vr()});var Is,Ps,Bb,ct,Rs=S(()=>{"use strict";Is=Symbol("webflow-cli-warn"),Ps=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]===Is){let i=t.slice(0,-1);this.originalConsoleWarn&&this.originalConsoleWarn(...i);return}let n=t.map(i=>{if(typeof i=="string")return i;if(i instanceof Error)return i.message;try{return String(i)}catch{return"[Object]"}}).join(" "),r=new Error().stack||"",o=this.parseSource(r);this.warnings.push({message:n,timestamp:Date.now(),source:o,stackTrace:r})})}stop(){this.isActive&&(this.originalConsoleWarn&&(console.warn=this.originalConsoleWarn,this.originalConsoleWarn=null),this.isActive=!1)}displayGrouped(){if(this.warnings.length===0)return;console.log(`
12
12
  \u26A0\uFE0F Warnings:
13
13
  `);let t=this.warnings.reduce((n,r)=>{let o=r.source||"General";return n[o]||(n[o]=[]),n[o].push(r),n},{});Object.entries(t).forEach(([n,r])=>{n!=="General"&&console.log(` ${n}:`),r.forEach((o,i)=>{let s=n!=="General"?" ":" ",a=o.message||"[Empty warning message]";console.log(`${s}${i+1}. ${a}`)}),n!=="General"&&console.log("")}),t.General&&console.log("")}debug(){console.log(`
14
14
  \u{1F41B} Debug: Captured Warnings
15
15
  `),this.warnings.forEach((t,n)=>{console.log(`Warning ${n+1}:`),console.log(` Source: ${t.source}`),console.log(` Message: ${t.message}`),console.log(` Message length: ${t.message.length}`),console.log(` Timestamp: ${new Date(t.timestamp).toISOString()}`),t.stackTrace&&(console.log(" Stack (first 3 lines):"),t.stackTrace.split(`
16
- `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},Ub=new Os,ct=Ub});function Vb(e){return e.replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"")}function bu(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function Ct(e){Cr.push(Xe(e)),Cr.length>Jb&&Cr.shift()}function Zb(e){return Ct(`DEBUG: ${e}`),e}function Kb(e){return Ct(`INFO: ${e}`),e}function Yb(e){return Ct(`WARN: ${e}`),e}function Xb(e,t){let n=e instanceof Error?e.stack||e.message:e,r=t?.prefix?`${t.prefix} `:"";Ct(`ERROR: ${r}${n}`),js=!0;let o=e instanceof Error?e.message:e;return`${r}${o}`}function Qb(e){return Ct(`SUCCESS: ${e}`),`${T.green(e)}`}function eD(e){let t=vn(`${e}...`).start(),n=!1,r=o=>i=>{Ct(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(js=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function tD(){let e=_n.default.readdirSync(Ee).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:_n.default.statSync(go.default.join(Ee,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=qb;)try{let t=e.pop();if(!t)break;_n.default.removeSync(go.default.join(Ee,t.name))}catch{}}function Bs(e){try{let t=process.argv.slice(2).join(" ");if(/^(log|library\s+log)(\s|$)/.test(t))return;_n.default.ensureDirSync(Ee),tD(),Cr.unshift(`CLI Version: ${lt()}`,`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()}`,...yu?[`Sync ID: ${yu}`]:[],"");let n=Cr.map(Vb);_n.default.writeFileSync(Rs,n.join(`
16
+ `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},Bb=new Ps,ct=Bb});function jb(e){return e.replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"")}function hu(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function Ct(e){Fr.push(Qe(e)),Fr.length>$b&&Fr.shift()}function zb(e){return Ct(`DEBUG: ${e}`),e}function Wb(e){return Ct(`INFO: ${e}`),e}function Ub(e){return Ct(`WARN: ${e}`),e}function Vb(e,t){let n=e instanceof Error?e.stack||e.message:e,r=t?.prefix?`${t.prefix} `:"";Ct(`ERROR: ${r}${n}`),js=!0;let o=e instanceof Error?e.message:e;return`${r}${o}`}function Gb(e){return Ct(`SUCCESS: ${e}`),`${T.green(e)}`}function qb(e){let t=kn(`${e}...`).start(),n=!1,r=o=>i=>{Ct(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(js=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function Jb(){let e=Sn.default.readdirSync(Ee).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:Sn.default.statSync(yo.default.join(Ee,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=Nb;)try{let t=e.pop();if(!t)break;Sn.default.removeSync(yo.default.join(Ee,t.name))}catch{}}function Ls(e){try{let t=process.argv.slice(2).join(" ");if(/^(log|library\s+log)(\s|$)/.test(t))return;Sn.default.ensureDirSync(Ee),Jb(),Fr.unshift(`CLI Version: ${lt()}`,`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()}`,...mu?[`Sync ID: ${mu}`]:[],"");let n=Fr.map(jb);Sn.default.writeFileSync(Bs,n.join(`
17
17
  `)),js&&(console.info(`
18
- ${ie} An error occurred. See logs for more information:`),console.info(`${Es} Latest log: ${Rs}`),console.info(`${Es} All logs: ${Ee}`)),(process.env.DEBUG||process.argv.includes("--verbose"))&&(console.info(`
19
- ${oe} Command completed successfully. Logs written to:`),console.info(`${Cn} Latest log: ${Rs}`),console.info(`${Cn} All logs: ${Ee}`))}catch(t){console.error("Failed to write logs:",t)}}var _n,go,pS,Gb,Ee,qb,Jb,Hb,Rs,Cr,js,yu,Sn,d,V=S(()=>{"use strict";_n=D(require("fs-extra")),go=D(require("path"));We();pS=require("source-map-support/register");ds();Hc();Xc();Qe();Is();Ve();Gb=hs("webflow-cli"),Ee=Gb.log;qb=bu(process.env.MAX_PERSISTED_LOGS,50),Jb=bu(process.env.MAX_IN_MEMORY_LOGS,1e3),Hb=`${yr(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Rs=go.default.join(Ee,Hb);Cr=[],js=!1;Sn=!1;process.on("uncaughtException",e=>{Sn||(Sn=!0,Ct(`UNCAUGHT EXCEPTION: ${e?.stack}`),Bs(1)),ct.displayGrouped(),ct.stop(),process.exit(1)});process.on("unhandledRejection",e=>{Sn||(Sn=!0,Ct(`UNHANDLED REJECTION: ${e?.stack}`),Bs(1)),ct.displayGrouped(),ct.stop(),process.exit(1)});process.on("exit",e=>{Sn||(Sn=!0,Bs(e))});d={debug:e=>{let t=Zb(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(Kb(e)),warn:e=>console.warn(Yb(e),Ps),error:(e,t)=>{console.error(Xb(e,t))},success:e=>console.log(Qb(e)),spinner:eD}});async function bo(e){try{return await e()}catch(t){throw t instanceof Error&&rD.test(t.message)&&(d.debug(t.message),process.stdin.isTTY&&typeof process.stdin.setRawMode=="function"&&process.stdin.setRawMode(!1),process.exit(130)),t}}async function Ge(e){return le()?e.default??!1:bo(()=>Ft.confirm(e))}async function Oe(e){return le()?"default"in e?e.default:null:bo(()=>Ft.select(e))}async function Pe(e){return le()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:bo(()=>Ft.input(e))}async function Do(e){if(le()){let t=[];return await e.validate?.(t)!==!0?null:t}return bo(()=>Ft.checkbox(e))}var Ft,rD,qe=S(()=>{"use strict";Ft=D(require("@inquirer/prompts"));Fe();V();rD=/SIGINT/i});function wo({apiToken:e,directory:t}){let n=Er.resolve(t?Er.join(t,".env"):Er.join(process.cwd(),".env"));t&&!Jt.existsSync(t)&&Jt.mkdirSync(t,{recursive:!0}),Jt.existsSync(n)||Jt.writeFileSync(n,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),Ms.default.config({path:n,quiet:!0}),e&&Ms.default.set("WEBFLOW_API_TOKEN",e,{path:n,encrypt:!1})}var Jt,Er,Ms,zs=S(()=>{"use strict";Jt=D(require("fs")),Er=D(require("path")),Ms=D(require("@dotenvx/dotenvx"))});var w,ce=S(()=>{"use strict";w=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)}}});var _r,Ws=S(()=>{"use strict";ue();_r={serverUrl:Fn,timeoutMs:5*60*1e3}});var Eu,_u,Su,Tu,sD,Au,aD,Ou,Pu=S(()=>{"use strict";Eu=require("crypto"),_u=D(require("open"));Ws();V();Ut();Su=e=>{let t=new Uint8Array(e);return Eu.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},Tu=({pollId:e,clientId:t,scope:n})=>`${_r.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,sD=e=>`${_r.serverUrl}/oauth/webflow/poll?pollId=${e}`,Au=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,_u.default)(e),t.succeed()}catch{t.fail(),d.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},aD=async e=>{let t=sD(e),n=await se(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()},Ou=(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 aD(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)})}});function vo(){if(process.env.WEBFLOW_API_TOKEN)return process.env.WEBFLOW_API_TOKEN;let e=process.env.WEBFLOW_WORKSPACE_API_TOKEN??process.env.WEBFLOW_SITE_API_TOKEN??null;return e&&!Iu&&(Iu=!0,d.warn(`${pu} WEBFLOW_SITE_API_TOKEN / WEBFLOW_WORKSPACE_API_TOKEN are deprecated. Please use WEBFLOW_API_TOKEN instead. Run 'webflow auth login --force' to update your .env file.`)),e}async function me(e){if(e?.apiToken&&!e.force)return e.apiToken;if(!e?.force){let r=vo();if(r)return r}if(le())throw new w(`No API token found. To authenticate in CI/CD environments:
18
+ ${re} An error occurred. See logs for more information:`),console.info(`${_s} Latest log: ${Bs}`),console.info(`${_s} All logs: ${Ee}`)),(process.env.DEBUG||process.argv.includes("--verbose"))&&(console.info(`
19
+ ${ie} Command completed successfully. Logs written to:`),console.info(`${Fn} Latest log: ${Bs}`),console.info(`${Fn} All logs: ${Ee}`))}catch(t){console.error("Failed to write logs:",t)}}var Sn,yo,oS,Lb,Ee,Nb,$b,Mb,Bs,Fr,js,mu,Tn,d,V=S(()=>{"use strict";Sn=D(require("fs-extra")),yo=D(require("path"));We();oS=require("source-map-support/register");fs();Gc();Zc();et();Rs();Ve();Lb=gs("webflow-cli"),Ee=Lb.log;Nb=hu(process.env.MAX_PERSISTED_LOGS,50),$b=hu(process.env.MAX_IN_MEMORY_LOGS,1e3),Mb=`${br(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Bs=yo.default.join(Ee,Mb);Fr=[],js=!1;Tn=!1;process.on("uncaughtException",e=>{Tn||(Tn=!0,Ct(`UNCAUGHT EXCEPTION: ${e?.stack}`),Ls(1)),ct.displayGrouped(),ct.stop(),process.exit(1)});process.on("unhandledRejection",e=>{Tn||(Tn=!0,Ct(`UNHANDLED REJECTION: ${e?.stack}`),Ls(1)),ct.displayGrouped(),ct.stop(),process.exit(1)});process.on("exit",e=>{Tn||(Tn=!0,Ls(e))});d={debug:e=>{let t=zb(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(Wb(e)),warn:e=>console.warn(Ub(e),Is),error:(e,t)=>{console.error(Vb(e,t))},success:e=>console.log(Gb(e)),spinner:qb}});async function Do(e){try{return await e()}catch(t){throw t instanceof Error&&Zb.test(t.message)&&(d.debug(t.message),process.stdin.isTTY&&typeof process.stdin.setRawMode=="function"&&process.stdin.setRawMode(!1),process.exit(130)),t}}async function Ge(e){return le()?e.default??!1:Do(()=>Ft.confirm(e))}async function Oe(e){return le()?"default"in e?e.default:null:Do(()=>Ft.select(e))}async function Pe(e){return le()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:Do(()=>Ft.input(e))}async function wo(e){if(le()){let t=[];return await e.validate?.(t)!==!0?null:t}return Do(()=>Ft.checkbox(e))}var Ft,Zb,qe=S(()=>{"use strict";Ft=D(require("@inquirer/prompts"));Fe();V();Zb=/SIGINT/i});function vo({apiToken:e,directory:t}){let n=_r.resolve(t?_r.join(t,".env"):_r.join(process.cwd(),".env"));t&&!Ht.existsSync(t)&&Ht.mkdirSync(t,{recursive:!0}),Ht.existsSync(n)||Ht.writeFileSync(n,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),zs.default.config({path:n,quiet:!0}),e&&zs.default.set("WEBFLOW_API_TOKEN",e,{path:n,encrypt:!1})}var Ht,_r,zs,Ws=S(()=>{"use strict";Ht=D(require("fs")),_r=D(require("path")),zs=D(require("@dotenvx/dotenvx"))});var w,se=S(()=>{"use strict";w=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)}}});var Sr,Us=S(()=>{"use strict";ue();Sr={serverUrl:En,timeoutMs:5*60*1e3}});var xu,Cu,Fu,Eu,Xb,_u,Qb,Su,Tu=S(()=>{"use strict";xu=require("crypto"),Cu=D(require("open"));Us();V();Vt();Fu=e=>{let t=new Uint8Array(e);return xu.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},Eu=({pollId:e,clientId:t,scope:n})=>`${Sr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,Xb=e=>`${Sr.serverUrl}/oauth/webflow/poll?pollId=${e}`,_u=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,Cu.default)(e),t.succeed()}catch{t.fail(),d.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},Qb=async e=>{let t=Xb(e),n=await ce(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()},Su=(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 Qb(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)})}});function ko(){if(process.env.WEBFLOW_API_TOKEN)return process.env.WEBFLOW_API_TOKEN;let e=process.env.WEBFLOW_WORKSPACE_API_TOKEN??process.env.WEBFLOW_SITE_API_TOKEN??null;return e&&!Au&&(Au=!0,d.warn(`${lu} WEBFLOW_SITE_API_TOKEN / WEBFLOW_WORKSPACE_API_TOKEN are deprecated. Please use WEBFLOW_API_TOKEN instead. Run 'webflow auth login --force' to update your .env file.`)),e}async function me(e){if(e?.apiToken&&!e.force)return e.apiToken;if(!e?.force){let r=ko();if(r)return r}if(le())throw new w(`No API token found. To authenticate in CI/CD environments:
20
20
  1. Generate a Workspace API token in your Webflow Dashboard > Apps & Integrations > Manage > Workspace API Token
21
- 2. Set it as the WEBFLOW_API_TOKEN environment variable in your CI/CD pipeline`);let t=Su(16),n=lD();try{let r=Tu({pollId:t,clientId:n,scope:Ru});await Au(r);let o=await Ou(t,_r.timeoutMs);return wo({apiToken:o}),o}catch(r){throw new w(r)}}function lD(){return"fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074"}var Ru,Iu,Us=S(()=>{"use strict";Fe();V();Ve();ce();zs();Ws();Pu();Ru=["authorized_user:read","cloud_apps:write","cms:read","cms:write","code_components:read","code_components:write","devlink_export:read","sites:read","sites:write","workspace:read"],Iu=!1});function Sr(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID??null;return t&&!e.siteId&&fe({siteId:t}),t}async function Vs(e){try{let n=await new ju.WebflowClient({accessToken:e,environment:{base:`${J}/v2`,dataApi:`${J}/v2`,contentDeliveryApi:`${ho}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new w("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 w(t,{prefix:`Failed to fetch Webflow sites. Please check your authorization.
22
- `})}}async function Gs(e){let t=await Oe({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});if(!t){if(e.length===0)throw new w("No sites available for selection");return d.warn(`Auto fallback to first site: ${e[0].displayName}`),e[0]}return t}var ju,ko=S(()=>{"use strict";ju=require("webflow-api");qe();V();De();ue();ue();ce()});async function Je(e,t){let n=t?.site??Sr(e);if(le()&&!n)throw new w(`No site ID configured for this project.
21
+ 2. Set it as the WEBFLOW_API_TOKEN environment variable in your CI/CD pipeline`);let t=Fu(16),n=eD();try{let r=Eu({pollId:t,clientId:n,scope:Ou});await _u(r);let o=await Su(t,Sr.timeoutMs);return vo({apiToken:o}),o}catch(r){throw new w(r)}}function eD(){return"fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074"}var Ou,Au,Vs=S(()=>{"use strict";Fe();V();Ve();se();Ws();Us();Tu();Ou=["authorized_user:read","cloud_apps:write","cms:read","cms:write","code_components:read","code_components:write","devlink_export:read","sites:read","sites:write","workspace:read"],Au=!1});function Tr(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID??null;return t&&!e.siteId&&fe({siteId:t}),t}async function Gs(e){try{let n=await new Pu.WebflowClient({accessToken:e,environment:{base:`${J}/v2`,dataApi:`${J}/v2`,contentDeliveryApi:`${go}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new w("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 w(t,{prefix:`Failed to fetch Webflow sites. Please check your authorization.
22
+ `})}}async function qs(e){let t=await Oe({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});if(!t){if(e.length===0)throw new w("No sites available for selection");return d.warn(`Auto fallback to first site: ${e[0].displayName}`),e[0]}return t}var Pu,xo=S(()=>{"use strict";Pu=require("webflow-api");qe();V();De();ue();ue();se()});async function Je(e,t){let n=t?.site??Tr(e);if(le()&&!n)throw new w(`No site ID configured for this project.
23
23
  Run 'webflow auth login' locally to authenticate and associate this project with a Webflow site,
24
- or provide --site and --api-token when running a CLI command`);let r=await me({apiToken:t?.apiToken,force:t?.force});if(!n||t?.force){let o=d.spinner("Fetching your Webflow sites"),i=await Vs(r);if(i.length===0)throw o.fail("No Webflow sites found in your account"),new w("Please make sure you have at least one authorized site in your Webflow account");o.succeed(`Found ${i.length} site${i.length>1?"s":""} in your account`);let s=i.length>1?await Gs(i):i[0];return n=s.id,fe({siteId:n}),{siteId:n,siteName:s.displayName,accessToken:r}}return{siteId:n,accessToken:r}}var Bu=S(()=>{"use strict";V();De();Fe();Us();ko();ce()});var ut=S(()=>{"use strict";zs();Us();Bu();ko();ko()});async function dD(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,Vu.pathToFileURL)(e).href:e)).default}function Uu(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Ks(n.join(", "))}async function Tn(e=[],t=!1){if(!Ju){if(t)return{};throw new _o(pt)}if(!dt)throw new Zs;switch(dt){case"js":case"cjs":{await et.access(pt);let n=await dD(pt);return Uu(n,e),n}case"json":{let n=JSON.parse(await et.readFile(pt,"utf8"));return Uu(n,e),n}default:throw new Eo}}function fD(e,t){if(dt==="js"||dt==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function mD(e,t,n){let r=fD(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function hD(e){let t=["authToken","host","siteId"],n=await et.readFile(pt,"utf-8");for(let r of t)e=mD(e,n,r);return e}async function gD(){try{let e=Tr.join(Ys,"package.json");return await et.access(e),JSON.parse(await et.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function Hu(e){if(!Ju)throw new _o(pt);let t=JSON.stringify(e,null,2);switch(dt){case"js":case"cjs":{let n=await hD(t.replace(/"([^"]+)":/g,"$1:")),r=await gD()&&dt==="js"?"export default ":"module.exports = ";return et.writeFile(pt,r+n)}case"json":return et.writeFile(pt,t);default:throw new Eo}}var Tr,et,So,Vu,ST,Gu,Ys,qu,dt,pt,Ju,Zs,Eo,_o,Ks,To=S(()=>{"use strict";Tr=D(require("path")),et=D(require("fs/promises")),So=D(require("fs")),Vu=require("url"),ST=require("dotenv/config"),Gu=["js","cjs","json"],Ys=process.cwd(),qu=".webflowrc",dt=Tr.extname(So.readdirSync(Ys).find(e=>e.includes(qu))??"").replace(/\./g,""),pt=Tr.join(Ys,`${qu}${dt&&`.${dt}`}`),Ju=So.existsSync(pt),Zs=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${Gu.join(", ")}`)}},Eo=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${dt}. The supported extensions are: ${Gu.join(", ")}`)}},_o=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)}},Ks=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 Po(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=Wt(),i=bp.existsSync(r),s=!1;try{let{manifest:a}=X();s=!0,o&&d.info(`Using manifest file: ${r}`);try{let c=br(a,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
24
+ or provide --site and --api-token when running a CLI command`);let r=await me({apiToken:t?.apiToken,force:t?.force});if(!n||t?.force){let o=d.spinner("Fetching your Webflow sites"),i=await Gs(r);if(i.length===0)throw o.fail("No Webflow sites found in your account"),new w("Please make sure you have at least one authorized site in your Webflow account");o.succeed(`Found ${i.length} site${i.length>1?"s":""} in your account`);let s=i.length>1?await qs(i):i[0];return n=s.id,fe({siteId:n}),{siteId:n,siteName:s.displayName,accessToken:r}}return{siteId:n,accessToken:r}}var Iu=S(()=>{"use strict";V();De();Fe();Vs();xo();se()});var ut=S(()=>{"use strict";Ws();Vs();Iu();xo();xo()});async function oD(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,zu.pathToFileURL)(e).href:e)).default}function Mu(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Ys(n.join(", "))}async function An(e=[],t=!1){if(!Vu){if(t)return{};throw new So(pt)}if(!dt)throw new Ks;switch(dt){case"js":case"cjs":{await tt.access(pt);let n=await oD(pt);return Mu(n,e),n}case"json":{let n=JSON.parse(await tt.readFile(pt,"utf8"));return Mu(n,e),n}default:throw new _o}}function iD(e,t){if(dt==="js"||dt==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function sD(e,t,n){let r=iD(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function aD(e){let t=["authToken","host","siteId"],n=await tt.readFile(pt,"utf-8");for(let r of t)e=sD(e,n,r);return e}async function lD(){try{let e=Ar.join(Xs,"package.json");return await tt.access(e),JSON.parse(await tt.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function Gu(e){if(!Vu)throw new So(pt);let t=JSON.stringify(e,null,2);switch(dt){case"js":case"cjs":{let n=await aD(t.replace(/"([^"]+)":/g,"$1:")),r=await lD()&&dt==="js"?"export default ":"module.exports = ";return tt.writeFile(pt,r+n)}case"json":return tt.writeFile(pt,t);default:throw new _o}}var Ar,tt,To,zu,vT,Wu,Xs,Uu,dt,pt,Vu,Ks,_o,So,Ys,Ao=S(()=>{"use strict";Ar=D(require("path")),tt=D(require("fs/promises")),To=D(require("fs")),zu=require("url"),vT=require("dotenv/config"),Wu=["js","cjs","json"],Xs=process.cwd(),Uu=".webflowrc",dt=Ar.extname(To.readdirSync(Xs).find(e=>e.includes(Uu))??"").replace(/\./g,""),pt=Ar.join(Xs,`${Uu}${dt&&`.${dt}`}`),Vu=To.existsSync(pt),Ks=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${Wu.join(", ")}`)}},_o=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${dt}. The supported extensions are: ${Wu.join(", ")}`)}},So=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)}},Ys=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}=Ut(),i=hp.existsSync(r),s=!1;try{let{manifest:a}=X();s=!0,o&&d.info(`Using manifest file: ${r}`);try{let c=Dr(a,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
25
25
 
26
26
  To set up your credentials, run:
27
- webflow auth login`);return yp(c?.relativeHrefRoot),{...c,host:J,authToken:t,siteId:n,cssModules:!!c?.cssModules,components:An(c?.components),fileExtensions:{...gp,...c.fileExtensions},...e}}catch(c){throw new w(c,{prefix:`Failed to read devlink config from manifest file: ${r}
27
+ webflow auth login`);return mp(c?.relativeHrefRoot),{...c,host:J,authToken:t,siteId:n,cssModules:!!c?.cssModules,components:On(c?.components),fileExtensions:{...fp,...c.fileExtensions},...e}}catch(c){throw new w(c,{prefix:`Failed to read devlink config from manifest file: ${r}
28
28
  `})}}catch(a){if(o||i||s){let c=o?`The manifest file specified via --manifest flag was not found or is invalid: ${r}
29
29
  `:`Your manifest file exists but is invalid or missing required properties: ${r}
30
- `;throw new w(a,{prefix:c})}}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let c=await Tn(a);return yp(c?.relativeHrefRoot),{...c,host:c.host||J,cssModules:!!c?.cssModules,components:An(c?.components),fileExtensions:{...gp,...c.fileExtensions},...e}}catch(a){throw a instanceof Error&&a.message.includes(".webflowrc")&&(a.message=`No configuration file found. Please create either:
30
+ `;throw new w(a,{prefix:c})}}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let c=await An(a);return mp(c?.relativeHrefRoot),{...c,host:c.host||J,cssModules:!!c?.cssModules,components:On(c?.components),fileExtensions:{...fp,...c.fileExtensions},...e}}catch(a){throw a instanceof Error&&a.message.includes(".webflowrc")&&(a.message=`No configuration file found. Please create either:
31
31
  - webflow.json with a "devlink" section, or
32
32
  - .webflowrc file
33
- in your project root.`),new w(a)}}function yp(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 An(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var bp,gp,Or=S(()=>{"use strict";V();ue();To();De();bp=D(require("fs"));ce();gp={js:"js",css:"css"}});var Io,na=S(()=>{"use strict";Io={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 wp(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=jo.join(process.cwd(),n);o&&(0,tt.existsSync)(i)&&await(0,Ro.rm)(i,{recursive:!0,force:!0}),(0,tt.existsSync)(i)||await(0,Ro.mkdir)(i),await vD(i,e,t,r)}function wD(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 ra(e,t){let n=t.split("/");return jo.join(e,...n.slice(0,-1),n[n.length-1])}async function vD(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("/"));kD(e,s)}if(o.js){let s=wD(o.js,n),a=ia.default.format(s,Io),c=n.fileExtensions.js.replace(/\W/gi,""),l=ra(e,`${o.name}.${c}`);i.push((0,tt.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}`,c=ra(e,a);i.push((0,tt.writeFileSync)(c,sa(o.css,r),{flag:"w+"}))}if(o.types){let s=ra(e,`${o.name}.d.ts`);i.push((0,tt.writeFileSync)(s,ia.default.format(o.types,{...Io,parser:"typescript"}),{flag:"w+"}))}return i}))}function kD(e,t){let n=t.split("/"),r=e;for(let o of n)r=jo.join(r,o),(0,tt.existsSync)(r)||(0,tt.mkdirSync)(r)}function sa(e,t){return t?Dp(e):(oa={...oa,...e},Dp(oa))}function Dp(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
34
-
35
- `)}var tt,Ro,jo,ia,oa,aa=S(()=>{"use strict";tt=require("fs"),Ro=require("fs/promises"),jo=D(require("path")),ia=D(require("prettier"));na();oa={}});function he(e){return e>=48&&e<=57}function Ot(e){return he(e)||e>=65&&e<=70||e>=97&&e<=102}function Ga(e){return e>=65&&e<=90}function lw(e){return e>=97&&e<=122}function cw(e){return Ga(e)||lw(e)}function uw(e){return e>=128}function Ho(e){return cw(e)||uw(e)||e===95}function qa(e){return Ho(e)||he(e)||e===45}function pw(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Zo(e){return e===10||e===13||e===12}function Kt(e){return Zo(e)||e===32||e===9}function Ze(e,t){return!(e!==92||Zo(t)||t===0)}function Uo(e,t,n){return e===45?Ho(t)||t===45||Ze(t,n):Ho(e)?!0:e===92?Ze(e,t):!1}function la(e,t,n){return e===43||e===45?he(t)?2:t===46&&he(n)?3:0:e===46?he(t)?2:0:he(e)?1:0}function yd(e){return e===65279||e===65534?1:0}function ca(e){return e<128?_a[e]:Ja}function Bn(e,t){return t<e.length?e.charCodeAt(t):0}function Sa(e,t,n){return n===13&&Bn(e,t+1)===10?2:1}function Ln(e,t,n){let r=e.charCodeAt(t);return Ga(r)&&(r=r|32),r===n}function Mr(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(Ga(s)&&(s=s|32),s!==i)return!1}return!0}function fw(e,t){for(;t>=0&&Kt(e.charCodeAt(t));t--);return t+1}function Bo(e,t){for(;t<e.length&&Kt(e.charCodeAt(t));t++);return t}function ua(e,t){for(;t<e.length&&he(e.charCodeAt(t));t++);return t}function Yt(e,t){if(t+=2,Ot(Bn(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Ot(Bn(e,t));t++);let n=Bn(e,t);Kt(n)&&(t+=Sa(e,t,n))}return t}function Lo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!qa(n)){if(Ze(n,Bn(e,t+1))){t=Yt(e,t)-1;continue}break}}return t}function ni(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),he(n)&&(t=ua(e,t+1),n=e.charCodeAt(t)),n===46&&he(e.charCodeAt(t+1))&&(t+=2,t=ua(e,t)),Ln(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),he(n)&&(t=ua(e,t+1+r+1))}return t}function pa(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}Ze(n,Bn(e,t+1))&&(t=Yt(e,t))}return t}function Ha(e){if(e.length===1&&!Ot(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 Ko(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function xp(e){let t=e.source,n=t.length,r=t.length>0?yd(t.charCodeAt(0)):0,o=Ko(e.lines,n),i=Ko(e.columns,n),s=e.startLine,a=e.startColumn;for(let c=r;c<n;c++){let l=t.charCodeAt(c);o[c]=s,i[c]=a++,(l===vp||l===kp||l===mw)&&(l===kp&&c+1<n&&t.charCodeAt(c+1)===vp&&(c++,o[c]=s,i[c]=a),s++,a=1)}o[n]=s,i[n]=a,e.lines=o,e.columns=i,e.computed=!0}function ri(e,t){function n(p){return p<a?e.charCodeAt(p):0}function r(){if(l=ni(e,l),Uo(n(l),n(l+1),n(l+2))){u=12,l=Lo(e,l);return}if(n(l)===37){u=11,l++;return}u=10}function o(){let p=l;if(l=Lo(e,l),Mr(e,p,l,"url")&&n(l)===40){if(l=Bo(e,l+1),n(l)===34||n(l)===39){u=2,l=p+4;return}s();return}if(n(l)===40){u=2,l++;return}u=1}function i(p){for(p||(p=n(l++)),u=5;l<e.length;l++){let f=e.charCodeAt(l);switch(ca(f)){case p:l++;return;case Vo:if(Zo(f)){l+=Sa(e,l,f),u=6;return}break;case 92:if(l===e.length-1)break;let m=n(l+1);Zo(m)?l+=Sa(e,l+1,m):Ze(f,m)&&(l=Yt(e,l)-1);break}}}function s(){for(u=7,l=Bo(e,l);l<e.length;l++){let p=e.charCodeAt(l);switch(ca(p)){case 41:l++;return;case Vo:if(l=Bo(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=pa(e,l),u=8;return;case 34:case 39:case 40:case Dd:l=pa(e,l),u=8;return;case 92:if(Ze(p,n(l+1))){l=Yt(e,l)-1;break}l=pa(e,l),u=8;return}}}e=String(e||"");let a=e.length,c=yd(n(0)),l=c,u;for(;l<a;){let p=e.charCodeAt(l);switch(ca(p)){case Vo:u=13,l=Bo(e,l+1);break;case 34:i();break;case 35:qa(n(l+1))||Ze(n(l+1),n(l+2))?(u=4,l=Lo(e,l+1)):(u=9,l++);break;case 39:i();break;case 40:u=21,l++;break;case 41:u=22,l++;break;case 43:la(p,n(l+1),n(l+2))?r():(u=9,l++);break;case 44:u=18,l++;break;case 45:la(p,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(u=15,l=l+3):Uo(p,n(l+1),n(l+2))?o():(u=9,l++);break;case 46:la(p,n(l+1),n(l+2))?r():(u=9,l++);break;case 47:n(l+1)===42?(u=25,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(u=9,l++);break;case 58:u=16,l++;break;case 59:u=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(u=14,l=l+4):(u=9,l++);break;case 64:Uo(n(l+1),n(l+2),n(l+3))?(u=3,l=Lo(e,l+1)):(u=9,l++);break;case 91:u=19,l++;break;case 92:Ze(p,n(l+1))?o():(u=9,l++);break;case 93:u=20,l++;break;case 123:u=23,l++;break;case 125:u=24,l++;break;case bd:r();break;case Ja:o();break;default:u=9,l++}t(u,c,c=l)}}function oi(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 Ep({source:e,line:t,column:n},r){function o(u,p){return i.slice(u,p).map((f,m)=>String(u+m+1).padStart(c)+" |"+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),c=Math.max(4,String(a).length)+1,l=0;n+=(Fp.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>da&&(l=n-Cp+3,n=Cp-2);for(let u=s;u<=a;u++)u>=0&&u<i.length&&(i[u]=i[u].replace(/\t/g,Fp),i[u]=(l>0&&i[u].length>l?"\u2026":"")+i[u].substr(l,da-2)+(i[u].length>l+da-1?"\u2026":""));return[o(s,t),new Array(n+c+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
38
- `)}function _p(e,t,n,r,o){return Object.assign(oi("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return Ep({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
39
- `+Ep({source:t,line:r,column:o},2)}})}function bw(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 vw(e){return function(){return this[e]()}}function ma(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 kw(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:ma(e.atrule),pseudo:ma(e.pseudo),node:ma(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]=vw(e.parseContext[n]);break}return{config:t,...t,...t.node}}function xw(e){let t="",n="<unknown>",r=!1,o=Sp,i=!1,s=new hw,a=Object.assign(new yw,kw(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:bw,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(c){return c===Tp?1:0},consumeUntilLeftCurlyBracketOrSemicolon(c){return c===Tp||c===fa?1:0},consumeUntilExclamationMarkOrSemicolon(c){return c===Dw||c===fa?1:0},consumeUntilSemicolonIncluded(c){return c===fa?2:0},createList(){return new pe},createSingleNodeList(c){return new pe().appendData(c)},getFirstListNode(c){return c&&c.first},getLastListNode(c){return c&&c.last},parseWithFallback(c,l){let u=this.tokenIndex;try{return c.call(this)}catch(p){if(i)throw p;let f=l.call(this,u);return i=!0,o(p,f),i=!1,f}},lookupNonWSType(c){let l;do if(l=this.lookupType(c++),l!==13)return l;while(l!==Ap);return Ap},charCodeAt(c){return c>=0&&c<t.length?t.charCodeAt(c):0},substring(c,l){return t.substring(c,l)},substrToCursor(c){return this.source.substring(c,this.tokenStart)},cmpChar(c,l){return Ln(t,c,l)},cmpStr(c,l,u){return Mr(t,c,l,u)},consume(c){let l=this.tokenStart;return this.eat(c),this.substrToCursor(l)},consumeFunctionName(){let c=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),c},consumeNumber(c){let l=t.substring(this.tokenStart,ni(t,this.tokenStart));return this.eat(c),l},eat(c){if(this.tokenType!==c){let l=wd[c].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase()),u=`${/[[\](){}]/.test(l)?`"${l}"`:l} is expected`,p=this.tokenStart;switch(c){case 1:this.tokenType===2||this.tokenType===7?(p=this.tokenEnd-1,u="Identifier is expected but function found"):u="Identifier is expected";break;case 4:this.isDelim(ww)&&(this.next(),p++,u="Name is expected");break;case 11:this.tokenType===10&&(p=this.tokenEnd,u="Percent sign is expected");break}this.error(u,p)}this.next()},eatIdent(c){(this.tokenType!==1||this.lookupValue(0,c)===!1)&&this.error(`Identifier "${c}" is expected`),this.next()},eatDelim(c){this.isDelim(c)||this.error(`Delim "${String.fromCharCode(c)}" is expected`),this.next()},getLocation(c,l){return r?s.getLocationRange(c,l,n):null},getLocationFromList(c){if(r){let l=this.getFirstListNode(c),u=this.getLastListNode(c);return s.getLocationRange(l!==null?l.loc.start.offset-s.startOffset:this.tokenStart,u!==null?u.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(c,l){let u=typeof l<"u"&&l<t.length?s.getLocation(l):this.eof?s.getLocation(fw(t,t.length-1)):s.getLocation(this.tokenStart);throw new _p(c||"Unexpected input",t,u.offset,u.line,u.column)}});return Object.assign(function(c,l){t=c,l=l||{},a.setSource(t,ri),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=!!l.positions,o=typeof l.onParseError=="function"?l.onParseError:Sp,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:u="default",onComment:p}=l;if(!(u in a.context))throw new Error("Unknown context `"+u+"`");typeof p=="function"&&a.forEachToken((m,y,v)=>{if(m===25){let A=a.getLocation(y,v),E=Mr(t,v-2,v,"*/")?t.slice(y+2,v-2):t.slice(y+2,v);p(E,A)}});let f=a.context[u].call(a,l);return a.eof||a.error(),f},{SyntaxError:_p,config:a.config})}function Fw(e){let t=new Cw.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,c=!1,l=e.node;e.node=function(f){if(f.loc&&f.loc.start&&Op.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,c&&(c=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),c=!0,t.addMapping({source:f.loc.source,original:r,generated:n}))}l.call(this,f),c&&Op.has(f.type)&&(o.line=s,o.column=a)};let u=e.emit;e.emit=function(f,m,y){for(let v=0;v<f.length;v++)f.charCodeAt(v)===10?(s++,a=0):a++;u(f,m,y)};let p=e.result;return e.result=function(){return c&&t.addMapping(i),{css:p(),map:t}},e}function kd(e){let t=new Set(e.map(([n,r])=>ha(n)<<16|ha(r)));return function(n,r,o){let i=ha(r,o),s=o.charCodeAt(0);return(s===_w&&r!==1&&r!==2&&r!==15||s===Ew?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function Ow(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 Pw(e){ri(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function Iw(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(c){if(t.has(c.type))t.get(c.type).call(a,c);else throw new Error("Unknown node type: "+c.type)},tokenBefore:xd,token(c,l){i=this.tokenBefore(i,c,l),this.emit(l,c,!1),c===9&&l.charCodeAt(0)===Aw&&this.emit(`
40
- `,13,!0)},emit(c){o+=c},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=Fw(s)),r.mode in Ta&&(s.tokenBefore=Ta[r.mode]));let a={node:c=>s.node(c),children:Ow,token:(c,l)=>s.token(c,l),tokenize:Pw};return s.node(n),s.result()}}function Rw(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof pe)&&(n.children=new pe().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof pe&&(n.children=n.children.toArray())}}),t}}}function Pp(e){return typeof e=="function"?e:Ir}function Ip(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function jw(e,t){let n=t.structure,r=[];for(let o in n){if(Za.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 Bw(e){let t={};for(let n in e.node)if(Za.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]=jw(n,r)}return t}function Rp(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,c){let l;o&&(l=s[r],s[r]=i);for(let u of n){let p=i[u.name];if(!u.nullable||p){if(u.type==="list"){if(t?p.reduceRight(c,!1):p.reduce(c,!1))return!0}else if(a(p))return!0}}o&&(s[r]=l)}}function jp({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 Lw(e){let t=Bw(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)Za.call(t,l)&&t[l]!==null&&(n[l]=Rp(t[l],!1),r[l]=Rp(t[l],!0));let s=jp(n),a=jp(r),c=function(l,u){function p(E,z,C){let O=f.call(A,E,z,C);return O===o?!0:O===i?!1:!!(y.hasOwnProperty(E.type)&&y[E.type](E,A,p,v)||m.call(A,E,z,C)===o)}let f=Ir,m=Ir,y=n,v=(E,z,C,O)=>E||p(z,C,O),A={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")f=u;else if(u&&(f=Pp(u.enter),m=Pp(u.leave),u.reverse&&(y=r),u.visit)){if(s.hasOwnProperty(u.visit))y=u.reverse?a[u.visit]:s[u.visit];else if(!t.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=Ip(f,u.visit),m=Ip(m,u.visit)}if(f===Ir&&m===Ir)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(l)};return c.break=o,c.skip=i,c.find=function(l,u){let p=null;return c(l,function(f,m,y){if(u.call(this,f,m,y))return p=f,o}),p},c.findLast=function(l,u){let p=null;return c(l,{reverse:!0,enter(f,m,y){if(u.call(this,f,m,y))return p=f,o}}),p},c.findAll=function(l,u){let p=[];return c(l,function(f,m,y){u.call(this,f,m,y)&&p.push(f)}),p},c}function Nw(e){return e}function $w(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 Mw(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 zw(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Ka(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Ka(e,t,n,r){let o;switch(e.type){case"Group":o=zw(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Ka(e.term,t,n,r)+t($w(e),e);case"Type":o="<"+e.name+(e.opts?t(Mw(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=Nw,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Ka(e,n,r,o)}function Ww(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,c=0,l="",u,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?c++:c=0),l+=m}return r===n.length||c>1?(u=No(i||t,"end")||Rr(Bp,l),p=Rr(u)):(u=No(i,"start")||Rr(No(t,"start")||Bp,l.slice(0,s)),p=No(i,"end")||Rr(u,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:u,end:p}}function No(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 Ya(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Yo&&e.charCodeAt(t+1)===Yo}function Cd(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Yo&&e.charCodeAt(t+1)!==Yo){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Vw(e){if($o.has(e))return $o.get(e);let t=e.toLowerCase(),n=$o.get(t);if(n===void 0){let r=Ya(t,0),o=r?"":Cd(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return $o.set(e,n),n}function Gw(e){if(Pn.has(e))return Pn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Ya(t,n.length);if(!r&&(t=t.toLowerCase(),Pn.has(t))){let a=Pn.get(t);return Pn.set(e,a),a}let o=r?"":Cd(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 Pn.set(e,s),s}function Aa(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Nr(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function At(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===zr||o===nt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!he(e.value.charCodeAt(t)))return 0;return r+1}function ba(e,t,n){let r=!1,o=Nr(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(Aa(e,zr)||Aa(e,nt)){if(r=!0,o=Nr(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!==zr&&i!==nt)return 0}return At(e,r?0:1,r,o)}function Jw(e,t){let n=0;if(!e)return 0;if(e.type===10)return At(e,0,qw,n);if(e.type===1&&e.value.charCodeAt(0)===nt){if(!Ln(e.value,1,ya))return 0;switch(e.value.length){case 2:return ba(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==nt?0:(n=Nr(t(++n),n,t),e=t(n),At(e,0,In,n));default:return e.value.charCodeAt(2)!==nt?0:At(e,3,In,n)}}else if(e.type===1||Aa(e,zr)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!Ln(e.value,0,ya))return 0;switch(e.value.length){case 1:return ba(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==nt?0:(n=Nr(t(++n),n,t),e=t(n),At(e,0,In,n));default:return e.value.charCodeAt(1)!==nt?0:At(e,2,In,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===zr||r===nt?1:0,i=o;for(;i<e.value.length&&he(e.value.charCodeAt(i));i++);return i===o||!Ln(e.value,i,ya)?0:i+1===e.value.length?ba(t(++n),n,t):e.value.charCodeAt(i+1)!==nt?0:i+2===e.value.length?(n=Nr(t(++n),n,t),e=t(n),At(e,0,In,n)):At(e,i+2,In,n)}return 0}function Oa(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Kw(e,t){return e.value.charCodeAt(0)===t}function jr(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===Ed&&n&&r!==0)return jr(e,t+r+1,!1),6;if(!Ot(i)||++r>6)return 0}return r}function Mo(e,t,n){if(!e)return 0;for(;Oa(n(t),_d);){if(++e>6)return 0;t++}return t}function Yw(e,t){let n=0;if(e===null||e.type!==1||!Ln(e.value,0,Zw)||(e=t(++n),e===null))return 0;if(Oa(e,Hw))return e=t(++n),e===null?0:e.type===1?Mo(jr(e,0,!0),++n,t):Oa(e,_d)?Mo(1,++n,t):0;if(e.type===10){let r=jr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!Kw(e,Ed)||!jr(e,1,!1)?0:n+1:Mo(r,n,t))}return e.type===12?Mo(jr(e,1,!0),++n,t):0}function Ke(e,t){return t<e.length?e.charCodeAt(t):0}function Sd(e,t){return Mr(e,0,e.length,t)}function Td(e,t){for(let n=0;n<t.length;n++)if(Sd(e,t[n]))return!0;return!1}function Ad(e,t){return t!==e.length-2?!1:Ke(e,t)===92&&he(Ke(e,t+1))}function si(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 Qw(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=Xa.get(e.type);break}o++}while(e=t(o));return o}function je(e){return function(t,n,r){return t===null?0:t.type===2&&Td(t.value,Xw)?Qw(t,n):e(t,n,r)}}function Y(e){return function(t){return t===null||t.type!==e?0:1}}function ev(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return Td(t,Fd)||Sd(t,"default")?0:1}function tv(e){return e===null||e.type!==1||Ke(e.value,0)!==45||Ke(e.value,1)!==45?0:1}function nv(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(!Ot(Ke(e.value,n)))return 0;return 1}function rv(e){return e===null||e.type!==4||!Uo(Ke(e.value,1),Ke(e.value,2),Ke(e.value,3))?0:1}function ov(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=Xa.get(e.type);break}o++}while(e=t(o));return o}function iv(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=Xa.get(e.type);break}o++}while(e=t(o));return o}function ft(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==12)return 0;let o=ni(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!Ad(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return si(r,t.value,o)?0:1}}function sv(e,t,n){return e===null||e.type!==11||si(n,e.value,e.value.length-1)?0:1}function Od(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 av(e,t,n){if(e===null)return 0;let r=ni(e.value,0);return r!==e.value.length&&!Ad(e.value,r)||si(n,e.value,r)?0:1}function lv(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(!he(Ke(e.value,r)))return 0;return si(n,e.value,r)?0:1}function pv(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:c}=e||{};return{dimension:je(ft(null)),angle:je(ft(t)),decibel:je(ft(n)),frequency:je(ft(r)),flex:je(ft(o)),length:je(Od(ft(i))),resolution:je(ft(s)),semitones:je(ft(a)),time:je(ft(c))}}function dv(e){return{...cv,...uv,...pv(e)}}function Pd(e,t,n){return Object.assign(oi("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
33
+ in your project root.`),new w(a)}}function mp(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 On(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var hp,fp,Pr=S(()=>{"use strict";V();ue();Ao();De();hp=D(require("fs"));se();fp={js:"js",css:"css"}});function dD(e,t){if(e.includes("..")||He.isAbsolute(e))throw new Error(`Invalid file path: "${e}" - path traversal not allowed`);let n=He.resolve(t,e),r=He.resolve(t);if(!n.startsWith(r+He.sep)&&n!==r)throw new Error(`Invalid file path: "${e}" - resolves outside root directory`)}async function ra(e,t,n){let r=He.join(process.cwd(),t);n&&(0,St.existsSync)(r)&&await(0,Ro.rm)(r,{recursive:!0,force:!0}),(0,St.existsSync)(r)||await(0,Ro.mkdir)(r);for(let o of e){dD(o.path,r);let i=fD(r,o.path);if(o.path.includes("/")){let s=o.path.substring(0,o.path.lastIndexOf("/"));mD(r,s)}(0,St.writeFileSync)(i,o.content,{flag:"w+"})}}function fD(e,t){return He.join(e,...t.split("/"))}function mD(e,t){let n=t.split("/"),r=e;for(let o of n)r=He.join(r,o),(0,St.existsSync)(r)||(0,St.mkdirSync)(r)}var St,Ro,He,oa=S(()=>{"use strict";St=require("fs"),Ro=require("fs/promises"),He=D(require("path"))});function Bo(e,t,n){let i=new Intl.PluralRules("en-US").select(e)==="one"&&e===1?t:n||`${t}s`;return`${e} ${i}`}var jo=S(()=>{"use strict"});function he(e){return e>=48&&e<=57}function Pt(e){return he(e)||e>=65&&e<=70||e>=97&&e<=102}function Wa(e){return e>=65&&e<=90}function ew(e){return e>=97&&e<=122}function tw(e){return Wa(e)||ew(e)}function nw(e){return e>=128}function Zo(e){return tw(e)||nw(e)||e===95}function Ua(e){return Zo(e)||he(e)||e===45}function rw(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ko(e){return e===10||e===13||e===12}function Yt(e){return Ko(e)||e===32||e===9}function Ke(e,t){return!(e!==92||Ko(t)||t===0)}function Vo(e,t,n){return e===45?Zo(t)||t===45||Ke(t,n):Zo(e)?!0:e===92?Ke(e,t):!1}function ia(e,t,n){return e===43||e===45?he(t)?2:t===46&&he(n)?3:0:e===46?he(t)?2:0:he(e)?1:0}function dd(e){return e===65279||e===65534?1:0}function sa(e){return e<128?Ca[e]:Va}function Ln(e,t){return t<e.length?e.charCodeAt(t):0}function Fa(e,t,n){return n===13&&Ln(e,t+1)===10?2:1}function Nn(e,t,n){let r=e.charCodeAt(t);return Wa(r)&&(r=r|32),r===n}function zr(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 iw(e,t){for(;t>=0&&Yt(e.charCodeAt(t));t--);return t+1}function Lo(e,t){for(;t<e.length&&Yt(e.charCodeAt(t));t++);return t}function aa(e,t){for(;t<e.length&&he(e.charCodeAt(t));t++);return t}function Xt(e,t){if(t+=2,Pt(Ln(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Pt(Ln(e,t));t++);let n=Ln(e,t);Yt(n)&&(t+=Fa(e,t,n))}return t}function No(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Ua(n)){if(Ke(n,Ln(e,t+1))){t=Xt(e,t)-1;continue}break}}return t}function ri(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),he(n)&&(t=aa(e,t+1),n=e.charCodeAt(t)),n===46&&he(e.charCodeAt(t+1))&&(t+=2,t=aa(e,t)),Nn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),he(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}Ke(n,Ln(e,t+1))&&(t=Xt(e,t))}return t}function Ga(e){if(e.length===1&&!Pt(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 Yo(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function bp(e){let t=e.source,n=t.length,r=t.length>0?dd(t.charCodeAt(0)):0,o=Yo(e.lines,n),i=Yo(e.columns,n),s=e.startLine,a=e.startColumn;for(let c=r;c<n;c++){let l=t.charCodeAt(c);o[c]=s,i[c]=a++,(l===gp||l===yp||l===sw)&&(l===yp&&c+1<n&&t.charCodeAt(c+1)===gp&&(c++,o[c]=s,i[c]=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(p){return p<a?e.charCodeAt(p):0}function r(){if(l=ri(e,l),Vo(n(l),n(l+1),n(l+2))){u=12,l=No(e,l);return}if(n(l)===37){u=11,l++;return}u=10}function o(){let p=l;if(l=No(e,l),zr(e,p,l,"url")&&n(l)===40){if(l=Lo(e,l+1),n(l)===34||n(l)===39){u=2,l=p+4;return}s();return}if(n(l)===40){u=2,l++;return}u=1}function i(p){for(p||(p=n(l++)),u=5;l<e.length;l++){let f=e.charCodeAt(l);switch(sa(f)){case p:l++;return;case Go:if(Ko(f)){l+=Fa(e,l,f),u=6;return}break;case 92:if(l===e.length-1)break;let m=n(l+1);Ko(m)?l+=Fa(e,l+1,m):Ke(f,m)&&(l=Xt(e,l)-1);break}}}function s(){for(u=7,l=Lo(e,l);l<e.length;l++){let p=e.charCodeAt(l);switch(sa(p)){case 41:l++;return;case Go:if(l=Lo(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=la(e,l),u=8;return;case 34:case 39:case 40:case md:l=la(e,l),u=8;return;case 92:if(Ke(p,n(l+1))){l=Xt(e,l)-1;break}l=la(e,l),u=8;return}}}e=String(e||"");let a=e.length,c=dd(n(0)),l=c,u;for(;l<a;){let p=e.charCodeAt(l);switch(sa(p)){case Go:u=13,l=Lo(e,l+1);break;case 34:i();break;case 35:Ua(n(l+1))||Ke(n(l+1),n(l+2))?(u=4,l=No(e,l+1)):(u=9,l++);break;case 39:i();break;case 40:u=21,l++;break;case 41:u=22,l++;break;case 43:ia(p,n(l+1),n(l+2))?r():(u=9,l++);break;case 44:u=18,l++;break;case 45:ia(p,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(u=15,l=l+3):Vo(p,n(l+1),n(l+2))?o():(u=9,l++);break;case 46:ia(p,n(l+1),n(l+2))?r():(u=9,l++);break;case 47:n(l+1)===42?(u=25,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(u=9,l++);break;case 58:u=16,l++;break;case 59:u=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(u=14,l=l+4):(u=9,l++);break;case 64:Vo(n(l+1),n(l+2),n(l+3))?(u=3,l=No(e,l+1)):(u=9,l++);break;case 91:u=19,l++;break;case 92:Ke(p,n(l+1))?o():(u=9,l++);break;case 93:u=20,l++;break;case 123:u=23,l++;break;case 125:u=24,l++;break;case fd:r();break;case Va:o();break;default:u=9,l++}t(u,c,c=l)}}function ii(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}
34
+ `)}})}function vp({source:e,line:t,column:n},r){function o(u,p){return i.slice(u,p).map((f,m)=>String(u+m+1).padStart(c)+" |"+f).join(`
35
+ `)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-r)-1,a=Math.min(t+r,i.length+1),c=Math.max(4,String(a).length)+1,l=0;n+=(wp.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>ca&&(l=n-Dp+3,n=Dp-2);for(let u=s;u<=a;u++)u>=0&&u<i.length&&(i[u]=i[u].replace(/\t/g,wp),i[u]=(l>0&&i[u].length>l?"\u2026":"")+i[u].substr(l,ca-2)+(i[u].length>l+ca-1?"\u2026":""));return[o(s,t),new Array(n+c+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
36
+ `)}function kp(e,t,n,r,o){return Object.assign(ii("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return vp({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
37
+ `+vp({source:t,line:r,column:o},2)}})}function uw(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 fw(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 mw(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]=fw(e.parseContext[n]);break}return{config:t,...t,...t.node}}function hw(e){let t="",n="<unknown>",r=!1,o=xp,i=!1,s=new aw,a=Object.assign(new cw,mw(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:uw,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(c){return c===Cp?1:0},consumeUntilLeftCurlyBracketOrSemicolon(c){return c===Cp||c===ua?1:0},consumeUntilExclamationMarkOrSemicolon(c){return c===pw||c===ua?1:0},consumeUntilSemicolonIncluded(c){return c===ua?2:0},createList(){return new pe},createSingleNodeList(c){return new pe().appendData(c)},getFirstListNode(c){return c&&c.first},getLastListNode(c){return c&&c.last},parseWithFallback(c,l){let u=this.tokenIndex;try{return c.call(this)}catch(p){if(i)throw p;let f=l.call(this,u);return i=!0,o(p,f),i=!1,f}},lookupNonWSType(c){let l;do if(l=this.lookupType(c++),l!==13)return l;while(l!==Fp);return Fp},charCodeAt(c){return c>=0&&c<t.length?t.charCodeAt(c):0},substring(c,l){return t.substring(c,l)},substrToCursor(c){return this.source.substring(c,this.tokenStart)},cmpChar(c,l){return Nn(t,c,l)},cmpStr(c,l,u){return zr(t,c,l,u)},consume(c){let l=this.tokenStart;return this.eat(c),this.substrToCursor(l)},consumeFunctionName(){let c=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),c},consumeNumber(c){let l=t.substring(this.tokenStart,ri(t,this.tokenStart));return this.eat(c),l},eat(c){if(this.tokenType!==c){let l=hd[c].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase()),u=`${/[[\](){}]/.test(l)?`"${l}"`:l} is expected`,p=this.tokenStart;switch(c){case 1:this.tokenType===2||this.tokenType===7?(p=this.tokenEnd-1,u="Identifier is expected but function found"):u="Identifier is expected";break;case 4:this.isDelim(dw)&&(this.next(),p++,u="Name is expected");break;case 11:this.tokenType===10&&(p=this.tokenEnd,u="Percent sign is expected");break}this.error(u,p)}this.next()},eatIdent(c){(this.tokenType!==1||this.lookupValue(0,c)===!1)&&this.error(`Identifier "${c}" is expected`),this.next()},eatDelim(c){this.isDelim(c)||this.error(`Delim "${String.fromCharCode(c)}" is expected`),this.next()},getLocation(c,l){return r?s.getLocationRange(c,l,n):null},getLocationFromList(c){if(r){let l=this.getFirstListNode(c),u=this.getLastListNode(c);return s.getLocationRange(l!==null?l.loc.start.offset-s.startOffset:this.tokenStart,u!==null?u.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(c,l){let u=typeof l<"u"&&l<t.length?s.getLocation(l):this.eof?s.getLocation(iw(t,t.length-1)):s.getLocation(this.tokenStart);throw new kp(c||"Unexpected input",t,u.offset,u.line,u.column)}});return Object.assign(function(c,l){t=c,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:xp,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:u="default",onComment:p}=l;if(!(u in a.context))throw new Error("Unknown context `"+u+"`");typeof p=="function"&&a.forEachToken((m,y,v)=>{if(m===25){let A=a.getLocation(y,v),E=zr(t,v-2,v,"*/")?t.slice(y+2,v-2):t.slice(y+2,v);p(E,A)}});let f=a.context[u].call(a,l);return a.eof||a.error(),f},{SyntaxError:kp,config:a.config})}function yw(e){let t=new gw.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,c=!1,l=e.node;e.node=function(f){if(f.loc&&f.loc.start&&Ep.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,c&&(c=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),c=!0,t.addMapping({source:f.loc.source,original:r,generated:n}))}l.call(this,f),c&&Ep.has(f.type)&&(o.line=s,o.column=a)};let u=e.emit;e.emit=function(f,m,y){for(let v=0;v<f.length;v++)f.charCodeAt(v)===10?(s++,a=0):a++;u(f,m,y)};let p=e.result;return e.result=function(){return c&&t.addMapping(i),{css:p(),map:t}},e}function yd(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===Dw&&r!==1&&r!==2&&r!==15||s===bw?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function xw(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 Cw(e){oi(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function Fw(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(c){if(t.has(c.type))t.get(c.type).call(a,c);else throw new Error("Unknown node type: "+c.type)},tokenBefore:bd,token(c,l){i=this.tokenBefore(i,c,l),this.emit(l,c,!1),c===9&&l.charCodeAt(0)===kw&&this.emit(`
38
+ `,13,!0)},emit(c){o+=c},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=yw(s)),r.mode in Ea&&(s.tokenBefore=Ea[r.mode]));let a={node:c=>s.node(c),children:xw,token:(c,l)=>s.token(c,l),tokenize:Cw};return s.node(n),s.result()}}function Ew(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof pe)&&(n.children=new pe().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof pe&&(n.children=n.children.toArray())}}),t}}}function _p(e){return typeof e=="function"?e:Rr}function Sp(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function _w(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 Sw(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]=_w(n,r)}return t}function Tp(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,c){let l;o&&(l=s[r],s[r]=i);for(let u of n){let p=i[u.name];if(!u.nullable||p){if(u.type==="list"){if(t?p.reduceRight(c,!1):p.reduce(c,!1))return!0}else if(a(p))return!0}}o&&(s[r]=l)}}function Ap({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 Tw(e){let t=Sw(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]=Tp(t[l],!1),r[l]=Tp(t[l],!0));let s=Ap(n),a=Ap(r),c=function(l,u){function p(E,z,C){let O=f.call(A,E,z,C);return O===o?!0:O===i?!1:!!(y.hasOwnProperty(E.type)&&y[E.type](E,A,p,v)||m.call(A,E,z,C)===o)}let f=Rr,m=Rr,y=n,v=(E,z,C,O)=>E||p(z,C,O),A={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")f=u;else if(u&&(f=_p(u.enter),m=_p(u.leave),u.reverse&&(y=r),u.visit)){if(s.hasOwnProperty(u.visit))y=u.reverse?a[u.visit]:s[u.visit];else if(!t.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=Sp(f,u.visit),m=Sp(m,u.visit)}if(f===Rr&&m===Rr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(l)};return c.break=o,c.skip=i,c.find=function(l,u){let p=null;return c(l,function(f,m,y){if(u.call(this,f,m,y))return p=f,o}),p},c.findLast=function(l,u){let p=null;return c(l,{reverse:!0,enter(f,m,y){if(u.call(this,f,m,y))return p=f,o}}),p},c.findAll=function(l,u){let p=[];return c(l,function(f,m,y){u.call(this,f,m,y)&&p.push(f)}),p},c}function Aw(e){return e}function Ow(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 Pw(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 Iw(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Ja(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Ja(e,t,n,r){let o;switch(e.type){case"Group":o=Iw(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Ja(e.term,t,n,r)+t(Ow(e),e);case"Type":o="<"+e.name+(e.opts?t(Pw(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 si(e,t){let n=Aw,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Ja(e,n,r,o)}function Rw(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,c=0,l="",u,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?c++:c=0),l+=m}return r===n.length||c>1?(u=$o(i||t,"end")||Br(Op,l),p=Br(u)):(u=$o(i,"start")||Br($o(t,"start")||Op,l.slice(0,s)),p=$o(i,"end")||Br(u,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:u,end:p}}function $o(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Br(n):n:null}function Br({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 Ha(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Xo&&e.charCodeAt(t+1)===Xo}function Dd(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Xo&&e.charCodeAt(t+1)!==Xo){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function jw(e){if(Mo.has(e))return Mo.get(e);let t=e.toLowerCase(),n=Mo.get(t);if(n===void 0){let r=Ha(t,0),o=r?"":Dd(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Mo.set(e,n),n}function Lw(e){if(In.has(e))return In.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Ha(t,n.length);if(!r&&(t=t.toLowerCase(),In.has(t))){let a=In.get(t);return In.set(e,a),a}let o=r?"":Dd(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 In.set(e,s),s}function _a(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 Ot(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Wr||o===nt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!he(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(_a(e,Wr)||_a(e,nt)){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!==Wr&&i!==nt)return 0}return Ot(e,r?0:1,r,o)}function $w(e,t){let n=0;if(!e)return 0;if(e.type===10)return Ot(e,0,Nw,n);if(e.type===1&&e.value.charCodeAt(0)===nt){if(!Nn(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)!==nt?0:(n=$r(t(++n),n,t),e=t(n),Ot(e,0,Rn,n));default:return e.value.charCodeAt(2)!==nt?0:Ot(e,3,Rn,n)}}else if(e.type===1||_a(e,Wr)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!Nn(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)!==nt?0:(n=$r(t(++n),n,t),e=t(n),Ot(e,0,Rn,n));default:return e.value.charCodeAt(1)!==nt?0:Ot(e,2,Rn,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===Wr||r===nt?1:0,i=o;for(;i<e.value.length&&he(e.value.charCodeAt(i));i++);return i===o||!Nn(e.value,i,ma)?0:i+1===e.value.length?ha(t(++n),n,t):e.value.charCodeAt(i+1)!==nt?0:i+2===e.value.length?(n=$r(t(++n),n,t),e=t(n),Ot(e,0,Rn,n)):Ot(e,i+2,Rn,n)}return 0}function Sa(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Ww(e,t){return e.value.charCodeAt(0)===t}function jr(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===vd&&n&&r!==0)return jr(e,t+r+1,!1),6;if(!Pt(i)||++r>6)return 0}return r}function zo(e,t,n){if(!e)return 0;for(;Sa(n(t),kd);){if(++e>6)return 0;t++}return t}function Uw(e,t){let n=0;if(e===null||e.type!==1||!Nn(e.value,0,zw)||(e=t(++n),e===null))return 0;if(Sa(e,Mw))return e=t(++n),e===null?0:e.type===1?zo(jr(e,0,!0),++n,t):Sa(e,kd)?zo(1,++n,t):0;if(e.type===10){let r=jr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!Ww(e,vd)||!jr(e,1,!1)?0:n+1:zo(r,n,t))}return e.type===12?zo(jr(e,1,!0),++n,t):0}function Ye(e,t){return t<e.length?e.charCodeAt(t):0}function xd(e,t){return zr(e,0,e.length,t)}function Cd(e,t){for(let n=0;n<t.length;n++)if(xd(e,t[n]))return!0;return!1}function Fd(e,t){return t!==e.length-2?!1:Ye(e,t)===92&&he(Ye(e,t+1))}function ai(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 Gw(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 Be(e){return function(t,n,r){return t===null?0:t.type===2&&Cd(t.value,Vw)?Gw(t,n):e(t,n,r)}}function Y(e){return function(t){return t===null||t.type!==e?0:1}}function qw(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return Cd(t,wd)||xd(t,"default")?0:1}function Jw(e){return e===null||e.type!==1||Ye(e.value,0)!==45||Ye(e.value,1)!==45?0:1}function Hw(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(!Pt(Ye(e.value,n)))return 0;return 1}function Zw(e){return e===null||e.type!==4||!Vo(Ye(e.value,1),Ye(e.value,2),Ye(e.value,3))?0:1}function Kw(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 Yw(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 ft(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==12)return 0;let o=ri(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!Fd(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return ai(r,t.value,o)?0:1}}function Xw(e,t,n){return e===null||e.type!==11||ai(n,e.value,e.value.length-1)?0:1}function Ed(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 Qw(e,t,n){if(e===null)return 0;let r=ri(e.value,0);return r!==e.value.length&&!Fd(e.value,r)||ai(n,e.value,r)?0:1}function ev(e,t,n){if(e===null||e.type!==10)return 0;let r=Ye(e.value,0)===43||Ye(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!he(Ye(e.value,r)))return 0;return ai(n,e.value,r)?0:1}function rv(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:c}=e||{};return{dimension:Be(ft(null)),angle:Be(ft(t)),decibel:Be(ft(n)),frequency:Be(ft(r)),flex:Be(ft(o)),length:Be(Ed(ft(i))),resolution:Be(ft(s)),semitones:Be(ft(a)),time:Be(ft(c))}}function ov(e){return{...tv,...nv,...rv(e)}}function _d(e,t,n){return Object.assign(ii("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
41
39
  `+t+`
42
- --`+new Array((n||t.length)+1).join("-")+"^"})}function ei(e){return e.substringToPos(e.findWsEnd(e.pos))}function Nn(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Wr[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 jv(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 Vp(e){let t=null,n=null;return e.eat(Qo),t=ti(e),e.charCode()===tl?(e.pos++,e.charCode()!==zp&&(n=ti(e))):n=t,e.eat(zp),{min:Number(t),max:n?Number(n):0}}function Bv(e){let t=null,n=!1;switch(e.charCode()){case jd:e.pos++,t={min:0,max:0};break;case el:e.pos++,t={min:1,max:0};break;case Ia:e.pos++,t={min:0,max:1};break;case Qa:e.pos++,n=!0,e.charCode()===Qo?t=Vp(e):e.charCode()===Ia?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Qo:t=Vp(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function $n(e,t){let n=Bv(e);return n!==null?(n.term=t,e.charCode()===Qa&&e.charCodeAt(e.pos-1)===el?$n(e,n):n):t}function Da(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function Lv(e){let t;return e.eat(nl),e.eat(Xo),t=Nn(e),e.eat(Xo),e.eat(Bd),$n(e,{type:"Property",name:t})}function Nv(e){let t=null,n=null,r=1;return e.eat(ai),e.charCode()===$p&&(e.peek(),r=-1),r==-1&&e.charCode()===Wp?e.peek():(t=r*Number(ti(e)),Wr[e.charCode()]!==0&&(t+=Nn(e))),ei(e),e.eat(tl),ei(e),e.charCode()===Wp?e.peek():(r=1,e.charCode()===$p&&(e.peek(),r=-1),n=r*Number(ti(e)),Wr[e.charCode()]!==0&&(n+=Nn(e))),e.eat(rl),{type:"Range",min:t,max:n}}function $v(e){let t,n=null;return e.eat(nl),t=Nn(e),e.charCode()===Rd&&e.nextCharCode()===Iv&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ai&&(ei(e),n=Nv(e)),e.eat(Bd),$n(e,{type:"Type",name:t,opts:n})}function Mv(e){let t=Nn(e);return e.charCode()===Rd?(e.pos++,{type:"Function",name:t}):$n(e,{type:"Keyword",name:t})}function zv(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)=>Up[o]-Up[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 Ld(e){let t=[],n={},r,o=null,i=e.pos;for(;r=Uv(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:zv(t,n)||" ",disallowEmpty:!1,explicit:!1}}function Wv(e){let t;return e.eat(ai),t=Ld(e),e.eat(rl),t.explicit=!0,e.charCode()===Id&&(e.pos++,t.disallowEmpty=!0),t}function Uv(e){let t=e.charCode();if(t<128&&Wr[t]===1)return Mv(e);switch(t){case rl:break;case ai:return $n(e,Wv(e));case nl:return e.nextCharCode()===Xo?Lv(e):$v(e);case Mp:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Mp?2:1))};case Np:return e.pos++,e.eat(Np),{type:"Combinator",value:"&&"};case tl:return e.pos++,{type:"Comma"};case Xo:return $n(e,{type:"String",value:jv(e)});case Pv:case Sv:case Tv:case Ov:case Av:return{type:"Spaces",value:ei(e)};case Rv:return t=e.nextCharCode(),t<128&&Wr[t]===1?(e.pos++,{type:"AtKeyword",name:Nn(e)}):Da(e);case jd:case el:case Ia:case Qa:case Id:break;case Qo:if(t=e.nextCharCode(),t<48||t>57)return Da(e);break;default:return Da(e)}}function ol(e){let t=new _v(e),n=Ld(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function Gp(e){return typeof e=="function"?e:Br}function Nd(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=Br,i=Br;if(typeof t=="function"?o=t:t&&(o=Gp(t.enter),i=Gp(t.leave)),o===Br&&i===Br)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function Gv(e){let t=[];return ri(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function qv(e,t){return typeof e=="string"?Gv(e):t.generate(e,Vv)}function ye(e,t,n){return t===H&&n===Z||e===H&&t===H&&n===H?e:(e.type==="If"&&e.else===Z&&t===H&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function $d(e){return e.length>2&&e.charCodeAt(e.length-2)===Jv&&e.charCodeAt(e.length-1)===Hv}function qp(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&$d(e.name)}function Ra(e,t,n){switch(e){case" ":{let r=H;for(let o=t.length-1;o>=0;o--){let i=t[o];r=ye(i,r,Z)}return r}case"|":{let r=Z,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(qp(s)&&(o===null&&i>0&&qp(t[i-1])&&(o=Object.create(null),r=ye({type:"Enum",map:o},H,r)),o!==null)){let a=($d(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=ye(s,H,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Z;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Ra(e,t.filter(function(a){return a!==i}),!1):s=H,r=ye(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?H:Z;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Ra(e,t.filter(function(a){return a!==i}),!0):s=H,r=ye(i,s,r)}return r}}}function Zv(e){let t=H,n=sl(e.term);if(e.max===0)n=ye(n,il,Z),t=ye(n,null,Z),t.then=ye(H,H,t),e.comma&&(t.then.else=ye({type:"Comma",syntax:e},t,Z));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==H&&(t=ye({type:"Comma",syntax:e},t,Z)),t=ye(n,ye(H,H,t),Z);if(e.min===0)t=ye(H,H,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==H&&(t=ye({type:"Comma",syntax:e},t,Z)),t=ye(n,t,Z);return t}function sl(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Ra(e.combinator,e.terms.map(sl),!1);return e.disallowEmpty&&(t=ye(t,il,Z)),t}case"Multiplier":return Zv(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 ja(e,t){return typeof e=="string"&&(e=ol(e)),{type:"MatchGraph",match:sl(e),syntax:t||null,source:e}}function t0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function wa(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 n0(e){return e.type!==9?!1:e.value!=="?"}function Kp(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||n0(e)}function Yp(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function r0(e,t,n){function r(){do z++,E=z<e.length?e[z]:null;while(E!==null&&(E.type===13||E.type===25))}function o(q){let L=z+q;return L<e.length?e[L]:null}function i(q,L){return{nextState:q,matchStack:O,syntaxStack:p,thenStack:f,tokenIndex:z,prev:L}}function s(q){f={nextState:q,matchStack:O,syntaxStack:p,prev:f}}function a(q){m=i(q,m)}function c(){O={type:Yv,syntax:t.syntax,token:E,prev:O},r(),y=null,z>C&&(C=z)}function l(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},O={type:Ba,syntax:t.syntax,token:O.token,prev:O}}function u(){O.type===Ba?O=O.prev:O={type:Md,syntax:p.syntax,token:O.token,prev:O},p=p.prev}let p=null,f=null,m=null,y=null,v=0,A=null,E=null,z=-1,C=0,O={type:Kv,syntax:null,token:null,prev:null};for(r();A===null&&++v<Zp;)switch(t.type){case"Match":if(f===null){if(E!==null&&(z!==e.length-1||E.value!=="\\0"&&E.value!=="\\9")){t=Z;break}A=Hp;break}if(t=f.nextState,t===il)if(f.matchStack===O){t=Z;break}else t=H;for(;f.syntaxStack!==p;)u();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||z>m.tokenIndex)&&(m=y,y=!1);else if(m===null){A=Xv;break}t=m.nextState,f=m.thenStack,p=m.syntaxStack,O=m.matchStack,z=m.tokenIndex,E=z<e.length?e[z]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Z&&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 _=t.syntax.terms;if(t.index===_.length){if(t.mask===0||t.syntax.all){t=Z;break}t=H;break}if(t.mask===(1<<_.length)-1){t=H;break}for(;t.index<_.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=_[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(E!==null){let _=E.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),Jp.call(t.map,_)){t=t.map[_];break}}t=Z;break;case"Generic":{let _=p!==null?p.opts:null,h=z+Math.floor(t.fn(E,o,_));if(!isNaN(h)&&h>z){for(;z<h;)c();t=H}else t=Z;break}case"Type":case"Property":{let _=t.type==="Type"?"types":"properties",h=Jp.call(n,_)?n[_][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&E!==null&&t.type==="Type"&&(t.name==="custom-ident"&&E.type===1||t.name==="length"&&E.value==="0")){y===null&&(y=i(t,m)),t=Z;break}l(),t=h.match;break}case"Keyword":{let _=t.name;if(E!==null){let h=E.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),wa(h,_)){c(),t=H;break}}t=Z;break}case"AtKeyword":case"Function":if(E!==null&&wa(E.value,t.name)){c(),t=H;break}t=Z;break;case"Token":if(E!==null&&E.value===t.value){c(),t=H;break}t=Z;break;case"Comma":E!==null&&E.type===18?Kp(O.token)?t=Z:(c(),t=Yp(E)?Z:H):t=Kp(O.token)||Yp(E)?H:Z;break;case"String":let q="",L=z;for(;L<e.length&&q.length<t.value.length;L++)q+=e[L].value;if(wa(q,t.value)){for(;z<L;)c();t=H}else t=Z;break;default:throw new Error("Unknown node type: "+t.type)}switch(e0+=v,A){case null:console.warn("[csstree-match] BREAK after "+Zp+" iterations"),A=Qv,O=null;break;case Hp:for(;p!==null;)u();break;default:O=null}return{tokens:e,reason:A,iterations:v,match:O,longestMatch:C}}function Xp(e,t,n){let r=r0(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=t0(o).prev;o!==null;){switch(o.type){case Ba:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case Md: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 Wd(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 o0(e,t){return al(this,e,n=>n.type==="Type"&&n.name===t)}function i0(e,t){return al(this,e,n=>n.type==="Property"&&n.name===t)}function s0(e){return al(this,e,t=>t.type==="Keyword")}function al(e,t,n){let r=Wd.call(e,t);return r===null?!1:r.some(n)}function Ud(e){return"node"in e?e.node:Ud(e.match[0])}function Vd(e){return"node"in e?e.node:Vd(e.match[e.match.length-1])}function Qp(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let c=Ud(a),l=Vd(a);e.syntax.walk(t,function(u,p,f){if(u===c){let m=new pe;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 va(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function ed(e){return!!e&&va(e.offset)&&va(e.line)&&va(e.column)}function a0(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($r.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(!ed(n.loc.start))o+=".start";else if(!ed(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 pe)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)$r.call(t,o)&&$r.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function l0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if($r.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let c=0;c<a.length;c++){let l=a[c];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:a0(e,r)}}function c0(e){let t={};if(e.node){for(let n in e.node)if($r.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=l0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function La(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 p0(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&&La(i.descriptors,t,n)};return r}function d0(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function He(e,t,n){return{matched:e,iterations:n,error:t,...zd}}function Rn(e,t,n,r){let o=qv(n,e.syntax),i;return d0(o)?He(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=Xp(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=Xp(o,t.match,e),!i.match)?He(null,new Uw(i.reason,t.syntax,n,i),i.iterations):He(i.match,null,i.iterations))}function ka(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function nd(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 Na(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]||{},c=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){c.prelude=s.prelude?ka(c.prelude,s.prelude):c.prelude||null;for(let[l,u]of Object.entries(s.descriptors||{}))c.descriptors[l]=u?ka(c.descriptors[l],u):null;Object.keys(c.descriptors).length||(c.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=ka(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],...nd(o,["parse"])};break;case"node":n[r]={...e[r],...nd(o,["name","structure","parse","generate","walkContext"])};break}return n}function Gd(e){let t=xw(e),n=Lw(e),r=Iw(e),{fromPlainObject:o,toPlainObject:i}=Rw(n),s={lexer:null,createLexer:a=>new td(a,s,s.lexer.structure),tokenize:ri,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let c=Na({},e);return Gd(typeof a=="function"?a(c,Object.assign):Na(c,a))}};return s.lexer=new td({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function qo(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===rt||r===_e)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)he(this.charCodeAt(n))||this.error("Integer is expected",n)}function jn(e){return qo.call(this,0,e)}function Tt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Go:n="N is expected";break;case _e:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function xa(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(rt,e)||this.isDelim(_e,e)){t=this.isDelim(rt,e)?rt:_e;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),jn.call(this,Zt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==rt&&n!==_e&&this.error("Number sign is expected")),jn.call(this,t!==0),t===_e?"-"+this.consume(10):this.consume(10)}function Jd(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)jn.call(this,h0),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,_e))switch(t="-1",Tt.call(this,1,Go),this.tokenEnd-this.tokenStart){case 2:this.next(),n=xa.call(this);break;case 3:Tt.call(this,2,_e),this.next(),this.skipSC(),jn.call(this,Zt),n="-"+this.consume(10);break;default:Tt.call(this,2,_e),qo.call(this,3,Zt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(rt)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(rt)&&(r=1,this.next()),Tt.call(this,0,Go),this.tokenEnd-this.tokenStart){case 1:this.next(),n=xa.call(this);break;case 2:Tt.call(this,1,_e),this.next(),this.skipSC(),jn.call(this,Zt),n="-"+this.consume(10);break;default:Tt.call(this,1,_e),qo.call(this,2,Zt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===rt||r===_e,i=this.tokenStart+o;for(;i<this.tokenEnd&&he(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),Tt.call(this,i-this.tokenStart,Go),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=xa.call(this)):(Tt.call(this,i-this.tokenStart+1,_e),i+2===this.tokenEnd?(this.next(),this.skipSC(),jn.call(this,Zt),n="-"+this.consume(10)):(qo.call(this,i-this.tokenStart+2,Zt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===rt&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===rt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function b0(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 rd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function D0(){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 Zd(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),rd):o=rd.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(D0.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function x0(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function Yd(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 _0(e){this.children(e)}function O0(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(Qd)?(t=!0,this.next()):this.isDelim($a)||this.eat(1),this.isDelim($a)?this.charCodeAt(this.tokenStart+1)!==Jo?(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 P0(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Jo&&t!==A0&&t!==T0&&t!==S0&&t!==Qd&&t!==$a&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Jo&&(this.isDelim(Jo)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function ef(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=O0.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=P0.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 j0(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 nf(e){return this.Raw(e,null,!0)}function od(){return this.parseWithFallback(this.Rule,nf)}function id(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function L0(){if(this.tokenType===17)return id.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,id);return this.tokenType===17&&this.next(),e}function rf(e){let t=e?L0:od,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),nf));break;default:e&&this.isDelim(B0)?r.push(od.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function z0(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function sf(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 V0(e){this.token(9,"["),this.children(e),this.token(9,"]")}function lf(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function J0(){this.token(15,"-->")}function uf(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function K0(){this.token(14,"<!--")}function df(){return this.eatDelim(Y0),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function ek(e){this.token(9,"."),this.token(1,e.name)}function mf(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case nk:case tk:case rk:this.next();break;case sd:this.next(),this.eatIdent("deep"),this.eatDelim(sd);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function sk(e){this.tokenize(e.name)}function gf(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===ak&&this.charCodeAt(t-1)===lk&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function pk(e){this.token(25,"/*"+e.value+"*/")}function yk(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function bk(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Dk(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(bf)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function Df(){let e=this.tokenStart,t=this.tokenIndex,n=Ck.call(this),r=Ya(n),o=r?this.parseCustomProperty:this.parseValue,i=r?bk:yk,s=!1,a;this.skipSC(),this.eat(16);let c=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(Dk,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=c-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(bf)&&(s=Fk.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 xk(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 Ck(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case hk:case fk:case gk:case dk:case mk:this.next();break;case ad:this.next(),this.isDelim(ad)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function Fk(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function Ca(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function vf(){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),Ca));break;default:this.isDelim(Ek)?e.push(this.parseWithFallback(this.Rule,Ca)):e.push(this.parseWithFallback(this.Declaration,Ca))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Tk(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function xf(){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 Pk(e){this.token(12,e.value+e.unit)}function Ff(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 Bk(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function _f(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Mk(e){this.token(4,"#"+e.value)}function Tf(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Uk(e){this.token(1,e.name)}function Of(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function qk(e){this.token(9,"#"+e.name)}function If(){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 Zk(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function jf(){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 Xk(e){this.children(e)}function Lf(){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 tx(e){this.children(e,()=>this.token(18,","))}function $f(){let e=this.tokenStart;return this.eatDelim(nx),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function ix(){this.token(9,"&")}function zf(){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 lx(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Uf(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function px(e){this.token(10,e.value)}function Gf(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function mx(e){this.tokenize(e.value)}function Jf(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 yx(e){this.token(21,"("),this.children(e),this.token(22,")")}function Zf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function wx(e){this.token(11,e.value+"%")}function Yf(){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 Cx(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Qf(){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 Sx(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 ld(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!he(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 tm(){let e=this.tokenStart,t=ld.call(this),n;return this.skipSC(),this.eatDelim(Tx),n=ld.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Ix(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function Rx(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function rm(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=Rx.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function Lx(e){this.tokenize(e.value)}function cd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Nx(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function im(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(Nx,cd):n=cd.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Wx(e){this.node(e.prelude),this.node(e.block)}function am(){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 Gx(e){this.children(e)}function cm(){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 Zx(e){this.children(e,()=>this.token(18,","))}function cl(e){let t=e.length,n=e.charCodeAt(0),r=n===pm||n===dm?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===Ma){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),Ze(Ma,a)){let c=s-1,l=Yt(e,c);s=l-1,i+=Ha(e.substring(c+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function fm(e,t){let n=t?"'":'"',r=t?dm:pm,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===Ma?(o+="\\"+e.charAt(s),i=!1):(i&&(Ot(a)||Kt(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function mm(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:cl(this.consume(5))}}function Qx(e){this.token(5,fm(e.value))}function ud(e){return this.Raw(e,null,!1)}function gm(){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)!==eC){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,ud);break;default:n=this.parseWithFallback(this.Rule,ud)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function oC(e){this.children(e)}function Fa(){this.tokenType!==1&&this.isDelim(iC)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function bm(){let e=this.tokenStart;return this.isDelim(pd)?(this.next(),Fa.call(this)):(Fa.call(this),this.isDelim(pd)&&(this.next(),Fa.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function lC(e){this.tokenize(e.name)}function Lr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===vm&&t&&n!==0)return Lr.call(this,e+n+1,!1),-1;Ot(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 zo(e){let t=0;for(;this.isDelim(za);)++t>e&&this.error("Too many question marks"),this.next()}function cC(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===wm?"Plus sign":"Hyphen minus")+" is expected")}function uC(){let e=0;switch(this.tokenType){case 10:if(e=Lr.call(this,1,!0),this.isDelim(za)){zo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){cC.call(this,vm),Lr.call(this,1,!1);break}break;case 12:e=Lr.call(this,1,!0),e>0&&zo.call(this,6-e);break;default:if(this.eatDelim(wm),this.tokenType===1){e=Lr.call(this,0,!0),e>0&&zo.call(this,6-e);break}if(this.isDelim(za)){this.next(),zo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function km(){let e=this.tokenStart;return this.eatIdent("u"),uC.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function fC(e){this.tokenize(e.value)}function Fm(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===Cm?t-2:t-1,o="";for(;n<r&&Kt(e.charCodeAt(n));)n++;for(;n<r&&Kt(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===Wa){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),Ze(Wa,s)){let a=i-1,c=Yt(e,a);i=c-1,o+=Ha(e.substring(a+1,c))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function Em(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===hC||o===Wa||o===gC||o===yC||o===bC||o===Cm?(t+="\\"+e.charAt(r),n=!1):(n&&Ot(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function _m(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=Fm(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=cl(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 vC(e){this.token(7,Em(e.value))}function Tm(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function CC(e){this.children(e)}function Om(){return this.eat(13),FC}function SC(e){this.token(13,e.value)}function Im(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,RC)&&this.cmpChar(this.tokenStart+1,dd)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===IC||t===OC||t===dd||t===PC)return this.Operator();t===AC&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function VC(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function GC(){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)===fd&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case $C:case zC:case UC:case MC:return this.Combinator();case fd:return this.ClassSelector();case NC:case WC:return this.TypeSelector();case BC:return this.IdSelector();case LC:return this.NestingSelector()}break}}}function JC(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function HC(){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 md(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function t1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function n1(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Rm.call(this)}function Rm(){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(t1,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(n1,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function u1(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===gd){if(r===t)break;if(o=e.charCodeAt(++r),Ze(gd,o)){let i=r-1,s=Yt(e,i);r=s-1,n+=Ha(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function p1(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}qa(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var xD,Ua,CD,FD,ED,_D,Mn,R,SD,TD,AD,OD,Va,PD,ID,RD,jD,BD,LD,ND,$D,MD,zD,WD,UD,VD,GD,qD,JD,HD,ZD,KD,YD,XD,QD,ew,tw,nw,rw,ow,iw,sw,aw,_a,dw,Vo,bd,Ja,Dd,wd,vp,mw,kp,hw,Re,St,gw,yw,On,pe,da,Cp,Fp,Sp,Dw,ww,fa,Tp,Ap,Cw,Op,Ta,Ew,_w,ha,vd,Sw,Tw,xd,Aw,Za,Ir,Bp,Pr,Uw,$o,Pn,Yo,ga,Lp,Fd,zr,nt,ya,In,qw,Hw,Ed,_d,Zw,Xw,Xa,cv,uv,Pa,fv,mv,hv,gv,yv,bv,Dv,wv,vv,kv,xv,Cv,Fv,Ev,_v,Sv,Tv,Av,Ov,Pv,Id,Qa,Np,Xo,Rd,Iv,jd,el,tl,$p,nl,Bd,Ia,Rv,ai,rl,Qo,Mp,zp,Wp,Wr,Up,Br,Vv,H,Z,il,Jv,Hv,Jp,Kv,Yv,Ba,Md,Hp,Xv,Qv,Zp,e0,zd,$r,u0,td,f0,m0,ll,qd,rt,_e,Go,Zt,h0,g0,y0,Hd,w0,v0,k0,Kd,C0,F0,E0,Xd,S0,Qd,Jo,T0,$a,A0,I0,R0,tf,B0,N0,$0,M0,of,W0,U0,af,G0,q0,cf,H0,Z0,pf,Y0,X0,Q0,ff,tk,sd,nk,rk,ok,ik,hf,ak,lk,ck,uk,yf,bf,dk,fk,mk,hk,gk,ad,wk,vk,kk,wf,Ek,_k,Sk,kf,Ak,Ok,Cf,Ik,Rk,jk,Ef,Lk,Nk,$k,Sf,zk,Wk,Af,Vk,Gk,Pf,Jk,Hk,Rf,Kk,Yk,Bf,Qk,ex,Nf,nx,rx,ox,Mf,sx,ax,Wf,cx,ux,Vf,dx,fx,qf,hx,gx,Hf,bx,Dx,Kf,vx,kx,xx,Xf,Fx,Ex,_x,em,Tx,Ax,Ox,Px,nm,jx,Bx,om,$x,Mx,zx,sm,Ux,Vx,lm,qx,Jx,Hx,um,Kx,Ma,pm,dm,Yx,Xx,hm,eC,tC,nC,rC,ym,iC,pd,sC,aC,Dm,wm,vm,za,pC,dC,xm,mC,hC,Wa,gC,yC,bC,Cm,DC,wC,Sm,kC,xC,Am,FC,EC,_C,TC,Pm,AC,OC,dd,PC,IC,RC,jC,BC,LC,NC,$C,MC,fd,zC,WC,UC,qC,ZC,KC,YC,XC,QC,e1,r1,o1,Ht,Ea,hd,Wo,i1,jm,s1,a1,l1,c1,gd,XT,Bm,Lm,QT,eA,Nm,tA,nA,rA,oA,iA,sA,$m=S(()=>{"use strict";xD=Object.create,Ua=Object.defineProperty,CD=Object.getOwnPropertyDescriptor,FD=Object.getOwnPropertyNames,ED=Object.getPrototypeOf,_D=Object.prototype.hasOwnProperty,Mn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R=(e,t)=>{for(var n in t)Ua(e,n,{get:t[n],enumerable:!0})},SD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of FD(t))!_D.call(e,o)&&o!==n&&Ua(e,o,{get:()=>t[o],enumerable:!(r=CD(t,o))||r.enumerable});return e},TD=(e,t,n)=>(n=e!=null?xD(ED(e)):{},SD(t||!e||!e.__esModule?Ua(n,"default",{value:e,enumerable:!0}):n,e)),AD=Mn(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,c=57,l=43,u=47,p=26,f=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+p:a<=n&&n<=c?n-a+f:n==l?62:n==u?63:-1}}),OD=Mn(e=>{var t=AD(),n=5,r=1<<n,o=r-1,i=r;function s(c){return c<0?(-c<<1)+1:(c<<1)+0}function a(c){var l=(c&1)===1,u=c>>1;return l?-u:u}e.encode=function(c){var l="",u,p=s(c);do u=p&o,p>>>=n,p>0&&(u|=i),l+=t.encode(u);while(p>0);return l},e.decode=function(c,l,u){var p=c.length,f=0,m=0,y,v;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(v=t.decode(c.charCodeAt(l++)),v===-1)throw new Error("Invalid base64 digit: "+c.charAt(l-1));y=!!(v&i),v&=o,f=f+(v<<m),m+=n}while(y);u.value=a(f),u.rest=l}}),Va=Mn(e=>{function t(h,g,j){if(g in h)return h[g];if(arguments.length===3)return j;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(j){for(var x=0;x<g.length;x++)if(g[x].input===j){var de=g[0];return g[0]=g[x],g[x]=de,g[0].result}var Me=h(j);return g.unshift({input:j,result:Me}),g.length>s&&g.pop(),Me}}var c=a(function(h){var g=h,j=o(h);if(j){if(!j.path)return h;g=j.path}for(var x=e.isAbsolute(g),de=[],Me=0,M=0;;)if(Me=M,M=g.indexOf("/",Me),M===-1){de.push(g.slice(Me));break}else for(de.push(g.slice(Me,M));M<g.length&&g[M]==="/";)M++;for(var ee,Dt=0,M=de.length-1;M>=0;M--)ee=de[M],ee==="."?de.splice(M,1):ee===".."?Dt++:Dt>0&&(ee===""?(de.splice(M+1,Dt),Dt=0):(de.splice(M,2),Dt--));return g=de.join("/"),g===""&&(g=x?"/":"."),j?(j.path=g,i(j)):g});e.normalize=c;function l(h,g){h===""&&(h="."),g===""&&(g=".");var j=o(g),x=o(h);if(x&&(h=x.path||"/"),j&&!j.scheme)return x&&(j.scheme=x.scheme),i(j);if(j||g.match(r))return g;if(x&&!x.host&&!x.path)return x.host=g,i(x);var de=g.charAt(0)==="/"?g:c(h.replace(/\/+$/,"")+"/"+g);return x?(x.path=de,i(x)):de}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function u(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var j=0;g.indexOf(h+"/")!==0;){var x=h.lastIndexOf("/");if(x<0||(h=h.slice(0,x),h.match(/^([^\/]+:\/)?\/*$/)))return g;++j}return Array(j+1).join("../")+g.substr(h.length+1)}e.relative=u;var p=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return v(h)?"$"+h:h}e.toSetString=p?f:m;function y(h){return v(h)?h.slice(1):h}e.fromSetString=p?f:y;function v(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 j=g-10;j>=0;j--)if(h.charCodeAt(j)!==36)return!1;return!0}function A(h,g,j){var x=O(h.source,g.source);return x!==0||(x=h.originalLine-g.originalLine,x!==0)||(x=h.originalColumn-g.originalColumn,x!==0||j)||(x=h.generatedColumn-g.generatedColumn,x!==0)||(x=h.generatedLine-g.generatedLine,x!==0)?x:O(h.name,g.name)}e.compareByOriginalPositions=A;function E(h,g,j){var x;return x=h.originalLine-g.originalLine,x!==0||(x=h.originalColumn-g.originalColumn,x!==0||j)||(x=h.generatedColumn-g.generatedColumn,x!==0)||(x=h.generatedLine-g.generatedLine,x!==0)?x:O(h.name,g.name)}e.compareByOriginalPositionsNoSource=E;function z(h,g,j){var x=h.generatedLine-g.generatedLine;return x!==0||(x=h.generatedColumn-g.generatedColumn,x!==0||j)||(x=O(h.source,g.source),x!==0)||(x=h.originalLine-g.originalLine,x!==0)||(x=h.originalColumn-g.originalColumn,x!==0)?x:O(h.name,g.name)}e.compareByGeneratedPositionsDeflated=z;function C(h,g,j){var x=h.generatedColumn-g.generatedColumn;return x!==0||j||(x=O(h.source,g.source),x!==0)||(x=h.originalLine-g.originalLine,x!==0)||(x=h.originalColumn-g.originalColumn,x!==0)?x:O(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=C;function O(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function q(h,g){var j=h.generatedLine-g.generatedLine;return j!==0||(j=h.generatedColumn-g.generatedColumn,j!==0)||(j=O(h.source,g.source),j!==0)||(j=h.originalLine-g.originalLine,j!==0)||(j=h.originalColumn-g.originalColumn,j!==0)?j:O(h.name,g.name)}e.compareByGeneratedPositionsInflated=q;function L(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function _(h,g,j){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),j){var x=o(j);if(!x)throw new Error("sourceMapURL could not be parsed");if(x.path){var de=x.path.lastIndexOf("/");de>=0&&(x.path=x.path.substring(0,de+1))}g=l(i(x),g)}return c(g)}e.computeSourceURL=_}),PD=Mn(e=>{var t=Va(),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,c=0,l=i.length;c<l;c++)a.add(i[c],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),c=r?this.has(i):n.call(this._set,a),l=this._array.length;(!c||s)&&this._array.push(i),c||(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}),ID=Mn(e=>{var t=Va();function n(o,i){var s=o.generatedLine,a=i.generatedLine,c=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=c||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}),RD=Mn(e=>{var t=OD(),n=Va(),r=PD().ArraySet,o=ID().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,c=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var u={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(u.source=l.source,a!=null&&(u.source=n.relative(a,u.source)),u.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(u.name=l.name)),c.addMapping(u)}),s.sources.forEach(function(l){var u=l;a!==null&&(u=n.relative(a,l)),c._sources.has(u)||c._sources.add(u);var p=s.sourceContentFor(l);p!=null&&c.setSourceContent(l,p)}),c},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),c=n.getArg(s,"original",null),l=n.getArg(s,"source",null),u=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,c,l,u),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:l,name:u})},i.prototype.setSourceContent=function(s,a){var c=s;this._sourceRoot!=null&&(c=n.relative(this._sourceRoot,c)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(c)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,c){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 u=this._sourceRoot;u!=null&&(l=n.relative(u,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,c!=null&&(m.source=n.join(c,m.source)),u!=null&&(m.source=n.relative(u,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var v=m.source;v!=null&&!p.has(v)&&p.add(v);var A=m.name;A!=null&&!f.has(A)&&f.add(A)},this),this._sources=p,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(c!=null&&(m=n.join(c,m)),u!=null&&(m=n.relative(u,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,c,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&&!c&&!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&&c)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:c,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,c=0,l=0,u=0,p=0,f="",m,y,v,A,E=this._mappings.toArray(),z=0,C=E.length;z<C;z++){if(y=E[z],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(z>0){if(!n.compareByGeneratedPositionsInflated(y,E[z-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(A=this._sources.indexOf(y.source),m+=t.encode(A-p),p=A,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-c),c=y.originalColumn,y.name!=null&&(v=this._names.indexOf(y.name),m+=t.encode(v-u),u=v)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(c){if(!this._sourcesContents)return null;a!=null&&(c=n.relative(a,c));var l=n.toSetString(c);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}),jD={};R(jD,{AtKeyword:()=>$D,BadString:()=>WD,BadUrl:()=>VD,CDC:()=>YD,CDO:()=>KD,Colon:()=>XD,Comma:()=>ew,Comment:()=>aw,Delim:()=>GD,Dimension:()=>HD,EOF:()=>BD,Function:()=>ND,Hash:()=>MD,Ident:()=>LD,LeftCurlyBracket:()=>iw,LeftParenthesis:()=>rw,LeftSquareBracket:()=>tw,Number:()=>qD,Percentage:()=>JD,RightCurlyBracket:()=>sw,RightParenthesis:()=>ow,RightSquareBracket:()=>nw,Semicolon:()=>QD,String:()=>zD,Url:()=>UD,WhiteSpace:()=>ZD});BD=0,LD=1,ND=2,$D=3,MD=4,zD=5,WD=6,UD=7,VD=8,GD=9,qD=10,JD=11,HD=12,ZD=13,KD=14,YD=15,XD=16,QD=17,ew=18,tw=19,nw=20,rw=21,ow=22,iw=23,sw=24,aw=25;_a=new Array(128),dw=128,Vo=130,bd=131,Ja=132,Dd=133;for(let e=0;e<_a.length;e++)_a[e]=Kt(e)&&Vo||he(e)&&bd||Ho(e)&&Ja||pw(e)&&Dd||e||dw;wd=["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"];vp=10,mw=12,kp=13;hw=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||xp(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||xp(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]}}}},Re=16777215,St=24,gw=new Map([[2,22],[21,22],[19,20],[23,24]]),yw=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=Ko(this.offsetAndType,e.length+1),o=Ko(this.balance,e.length+1),i=0,s=0,a=0,c=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,u,p)=>{switch(l){default:o[i]=n;break;case s:{let f=a&Re;for(a=o[f],s=a>>St,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=gw.get(l),a=s<<St|i;break}r[i++]=l<<St|p,c===-1&&(c=u)}),r[i]=0<<St|n,o[i]=n,o[n]=n;a!==0;){let l=a&Re;a=o[l],o[l]=n}this.source=e,this.firstCharOffset=c===-1?0:c,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]>>St:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Re:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Mr(this.source,this.offsetAndType[e-1]&Re,this.offsetAndType[e]&Re,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Re:this.offsetAndType[this.tokenCount]&Re: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]&Re,t=this.offsetAndType[t],this.tokenType=t>>St,this.tokenEnd=t&Re):(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>>St,this.tokenEnd=e&Re):(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]&Re: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&Re,s=o>>St;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:wd[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};On=null,pe=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return pe.createItem(e)}allocateCursor(e,t){let n;return On!==null?(n=On,On=On.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=On,On=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=pe.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 pe;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 pe;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 pe;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(pe.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(pe.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(pe.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(pe.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(pe.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)}};da=100,Cp=60,Fp=" ";Sp=()=>{},Dw=33,ww=35,fa=59,Tp=123,Ap=0;Cw=TD(RD(),1),Op=new Set(["Atrule","Selector","Declaration"]);Ta={};R(Ta,{safe:()=>xd,spec:()=>Tw});Ew=43,_w=45,ha=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},vd=[[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],["/","*"]],Sw=vd.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,"-"]]);Tw=kd(vd),xd=kd(Sw),Aw=92;({hasOwnProperty:Za}=Object.prototype),Ir=function(){};Bp={offset:0,line:1,column:1};Pr=function(e,t){let n=oi("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Uw=function(e,t,n,r){let o=oi("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:c,end:l}=Ww(r,n);return o.rawMessage=e,o.syntax=t?ii(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
40
+ --`+new Array((n||t.length)+1).join("-")+"^"})}function ti(e){return e.substringToPos(e.findWsEnd(e.pos))}function $n(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Ur[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function ni(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 _v(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 $p(e){let t=null,n=null;return e.eat(ei),t=ni(e),e.charCode()===Xa?(e.pos++,e.charCode()!==jp&&(n=ni(e))):n=t,e.eat(jp),{min:Number(t),max:n?Number(n):0}}function Sv(e){let t=null,n=!1;switch(e.charCode()){case Ad:e.pos++,t={min:0,max:0};break;case Ya:e.pos++,t={min:1,max:0};break;case Aa:e.pos++,t={min:0,max:1};break;case Ka:e.pos++,n=!0,e.charCode()===ei?t=$p(e):e.charCode()===Aa?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case ei:t=$p(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Mn(e,t){let n=Sv(e);return n!==null?(n.term=t,e.charCode()===Ka&&e.charCodeAt(e.pos-1)===Ya?Mn(e,n):n):t}function ga(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function Tv(e){let t;return e.eat(Qa),e.eat(Qo),t=$n(e),e.eat(Qo),e.eat(Od),Mn(e,{type:"Property",name:t})}function Av(e){let t=null,n=null,r=1;return e.eat(li),e.charCode()===Rp&&(e.peek(),r=-1),r==-1&&e.charCode()===Lp?e.peek():(t=r*Number(ni(e)),Ur[e.charCode()]!==0&&(t+=$n(e))),ti(e),e.eat(Xa),ti(e),e.charCode()===Lp?e.peek():(r=1,e.charCode()===Rp&&(e.peek(),r=-1),n=r*Number(ni(e)),Ur[e.charCode()]!==0&&(n+=$n(e))),e.eat(el),{type:"Range",min:t,max:n}}function Ov(e){let t,n=null;return e.eat(Qa),t=$n(e),e.charCode()===Td&&e.nextCharCode()===Fv&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===li&&(ti(e),n=Av(e)),e.eat(Od),Mn(e,{type:"Type",name:t,opts:n})}function Pv(e){let t=$n(e);return e.charCode()===Td?(e.pos++,{type:"Function",name:t}):Mn(e,{type:"Keyword",name:t})}function Iv(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)=>Np[o]-Np[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 Pd(e){let t=[],n={},r,o=null,i=e.pos;for(;r=Bv(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:Iv(t,n)||" ",disallowEmpty:!1,explicit:!1}}function Rv(e){let t;return e.eat(li),t=Pd(e),e.eat(el),t.explicit=!0,e.charCode()===Sd&&(e.pos++,t.disallowEmpty=!0),t}function Bv(e){let t=e.charCode();if(t<128&&Ur[t]===1)return Pv(e);switch(t){case el:break;case li:return Mn(e,Rv(e));case Qa:return e.nextCharCode()===Qo?Tv(e):Ov(e);case Bp:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Bp?2:1))};case Ip:return e.pos++,e.eat(Ip),{type:"Combinator",value:"&&"};case Xa:return e.pos++,{type:"Comma"};case Qo:return Mn(e,{type:"String",value:_v(e)});case Cv:case wv:case vv:case xv:case kv:return{type:"Spaces",value:ti(e)};case Ev:return t=e.nextCharCode(),t<128&&Ur[t]===1?(e.pos++,{type:"AtKeyword",name:$n(e)}):ga(e);case Ad:case Ya:case Aa:case Ka:case Sd:break;case ei:if(t=e.nextCharCode(),t<48||t>57)return ga(e);break;default:return ga(e)}}function tl(e){let t=new Dv(e),n=Pd(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function Mp(e){return typeof e=="function"?e:Lr}function Id(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=Lr,i=Lr;if(typeof t=="function"?o=t:t&&(o=Mp(t.enter),i=Mp(t.leave)),o===Lr&&i===Lr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function Lv(e){let t=[];return oi(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function Nv(e,t){return typeof e=="string"?Lv(e):t.generate(e,jv)}function ye(e,t,n){return t===H&&n===Z||e===H&&t===H&&n===H?e:(e.type==="If"&&e.else===Z&&t===H&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Rd(e){return e.length>2&&e.charCodeAt(e.length-2)===$v&&e.charCodeAt(e.length-1)===Mv}function zp(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&Rd(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=ye(i,r,Z)}return r}case"|":{let r=Z,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(zp(s)&&(o===null&&i>0&&zp(t[i-1])&&(o=Object.create(null),r=ye({type:"Enum",map:o},H,r)),o!==null)){let a=(Rd(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=ye(s,H,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Z;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=ye(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?H:Z;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=ye(i,s,r)}return r}}}function zv(e){let t=H,n=rl(e.term);if(e.max===0)n=ye(n,nl,Z),t=ye(n,null,Z),t.then=ye(H,H,t),e.comma&&(t.then.else=ye({type:"Comma",syntax:e},t,Z));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==H&&(t=ye({type:"Comma",syntax:e},t,Z)),t=ye(n,ye(H,H,t),Z);if(e.min===0)t=ye(H,H,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==H&&(t=ye({type:"Comma",syntax:e},t,Z)),t=ye(n,t,Z);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=ye(t,nl,Z)),t}case"Multiplier":return zv(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 Jv(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 Hv(e){return e.type!==9?!1:e.value!=="?"}function Gp(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||Hv(e)}function qp(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function Zv(e,t,n){function r(){do z++,E=z<e.length?e[z]:null;while(E!==null&&(E.type===13||E.type===25))}function o(q){let L=z+q;return L<e.length?e[L]:null}function i(q,L){return{nextState:q,matchStack:O,syntaxStack:p,thenStack:f,tokenIndex:z,prev:L}}function s(q){f={nextState:q,matchStack:O,syntaxStack:p,prev:f}}function a(q){m=i(q,m)}function c(){O={type:Uv,syntax:t.syntax,token:E,prev:O},r(),y=null,z>C&&(C=z)}function l(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},O={type:Ia,syntax:t.syntax,token:O.token,prev:O}}function u(){O.type===Ia?O=O.prev:O={type:Bd,syntax:p.syntax,token:O.token,prev:O},p=p.prev}let p=null,f=null,m=null,y=null,v=0,A=null,E=null,z=-1,C=0,O={type:Wv,syntax:null,token:null,prev:null};for(r();A===null&&++v<Vp;)switch(t.type){case"Match":if(f===null){if(E!==null&&(z!==e.length-1||E.value!=="\\0"&&E.value!=="\\9")){t=Z;break}A=Up;break}if(t=f.nextState,t===nl)if(f.matchStack===O){t=Z;break}else t=H;for(;f.syntaxStack!==p;)u();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||z>m.tokenIndex)&&(m=y,y=!1);else if(m===null){A=Vv;break}t=m.nextState,f=m.thenStack,p=m.syntaxStack,O=m.matchStack,z=m.tokenIndex,E=z<e.length?e[z]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Z&&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 _=t.syntax.terms;if(t.index===_.length){if(t.mask===0||t.syntax.all){t=Z;break}t=H;break}if(t.mask===(1<<_.length)-1){t=H;break}for(;t.index<_.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=_[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(E!==null){let _=E.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),Wp.call(t.map,_)){t=t.map[_];break}}t=Z;break;case"Generic":{let _=p!==null?p.opts:null,h=z+Math.floor(t.fn(E,o,_));if(!isNaN(h)&&h>z){for(;z<h;)c();t=H}else t=Z;break}case"Type":case"Property":{let _=t.type==="Type"?"types":"properties",h=Wp.call(n,_)?n[_][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&E!==null&&t.type==="Type"&&(t.name==="custom-ident"&&E.type===1||t.name==="length"&&E.value==="0")){y===null&&(y=i(t,m)),t=Z;break}l(),t=h.match;break}case"Keyword":{let _=t.name;if(E!==null){let h=E.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),ya(h,_)){c(),t=H;break}}t=Z;break}case"AtKeyword":case"Function":if(E!==null&&ya(E.value,t.name)){c(),t=H;break}t=Z;break;case"Token":if(E!==null&&E.value===t.value){c(),t=H;break}t=Z;break;case"Comma":E!==null&&E.type===18?Gp(O.token)?t=Z:(c(),t=qp(E)?Z:H):t=Gp(O.token)||qp(E)?H:Z;break;case"String":let q="",L=z;for(;L<e.length&&q.length<t.value.length;L++)q+=e[L].value;if(ya(q,t.value)){for(;z<L;)c();t=H}else t=Z;break;default:throw new Error("Unknown node type: "+t.type)}switch(qv+=v,A){case null:console.warn("[csstree-match] BREAK after "+Vp+" iterations"),A=Gv,O=null;break;case Up:for(;p!==null;)u();break;default:O=null}return{tokens:e,reason:A,iterations:v,match:O,longestMatch:C}}function Jp(e,t,n){let r=Zv(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=Jv(o).prev;o!==null;){switch(o.type){case Ia:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case Bd: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 Ld(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 Kv(e,t){return ol(this,e,n=>n.type==="Type"&&n.name===t)}function Yv(e,t){return ol(this,e,n=>n.type==="Property"&&n.name===t)}function Xv(e){return ol(this,e,t=>t.type==="Keyword")}function ol(e,t,n){let r=Ld.call(e,t);return r===null?!1:r.some(n)}function Nd(e){return"node"in e?e.node:Nd(e.match[0])}function $d(e){return"node"in e?e.node:$d(e.match[e.match.length-1])}function Hp(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let c=Nd(a),l=$d(a);e.syntax.walk(t,function(u,p,f){if(u===c){let m=new pe;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 Zp(e){return!!e&&ba(e.offset)&&ba(e.line)&&ba(e.column)}function Qv(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(Mr.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(!Zp(n.loc.start))o+=".start";else if(!Zp(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 pe)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)Mr.call(t,o)&&Mr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function e0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(Mr.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let c=0;c<a.length;c++){let l=a[c];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:Qv(e,r)}}function t0(e){let t={};if(e.node){for(let n in e.node)if(Mr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=e0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Ra(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:si(e[o].syntax,{compact:t}));return r}function r0(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:si(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Ra(i.descriptors,t,n)};return r}function o0(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,...jd}}function Bn(e,t,n,r){let o=Nv(n,e.syntax),i;return o0(o)?Ze(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=Jp(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=Jp(o,t.match,e),!i.match)?Ze(null,new Bw(i.reason,t.syntax,n,i),i.iterations):Ze(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 Yp(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 Ba(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]||{},c=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){c.prelude=s.prelude?Da(c.prelude,s.prelude):c.prelude||null;for(let[l,u]of Object.entries(s.descriptors||{}))c.descriptors[l]=u?Da(c.descriptors[l],u):null;Object.keys(c.descriptors).length||(c.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],...Yp(o,["parse"])};break;case"node":n[r]={...e[r],...Yp(o,["name","structure","parse","generate","walkContext"])};break}return n}function Md(e){let t=hw(e),n=Tw(e),r=Fw(e),{fromPlainObject:o,toPlainObject:i}=Ew(n),s={lexer:null,createLexer:a=>new Kp(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 c=Ba({},e);return Md(typeof a=="function"?a(c,Object.assign):Ba(c,a))}};return s.lexer=new Kp({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function Jo(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===rt||r===_e)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)he(this.charCodeAt(n))||this.error("Integer is expected",n)}function jn(e){return Jo.call(this,0,e)}function At(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case qo:n="N is expected";break;case _e: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(rt,e)||this.isDelim(_e,e)){t=this.isDelim(rt,e)?rt:_e;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),jn.call(this,Kt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==rt&&n!==_e&&this.error("Number sign is expected")),jn.call(this,t!==0),t===_e?"-"+this.consume(10):this.consume(10)}function Wd(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)jn.call(this,a0),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,_e))switch(t="-1",At.call(this,1,qo),this.tokenEnd-this.tokenStart){case 2:this.next(),n=wa.call(this);break;case 3:At.call(this,2,_e),this.next(),this.skipSC(),jn.call(this,Kt),n="-"+this.consume(10);break;default:At.call(this,2,_e),Jo.call(this,3,Kt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(rt)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(rt)&&(r=1,this.next()),At.call(this,0,qo),this.tokenEnd-this.tokenStart){case 1:this.next(),n=wa.call(this);break;case 2:At.call(this,1,_e),this.next(),this.skipSC(),jn.call(this,Kt),n="-"+this.consume(10);break;default:At.call(this,1,_e),Jo.call(this,2,Kt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===rt||r===_e,i=this.tokenStart+o;for(;i<this.tokenEnd&&he(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),At.call(this,i-this.tokenStart,qo),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=wa.call(this)):(At.call(this,i-this.tokenStart+1,_e),i+2===this.tokenEnd?(this.next(),this.skipSC(),jn.call(this,Kt),n="-"+this.consume(10)):(Jo.call(this,i-this.tokenStart+2,Kt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===rt&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===rt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function u0(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 Xp(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function p0(){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 Vd(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),Xp):o=Xp.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(p0.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function h0(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function qd(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 D0(e){this.children(e)}function x0(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(Hd)?(t=!0,this.next()):this.isDelim(ja)||this.eat(1),this.isDelim(ja)?this.charCodeAt(this.tokenStart+1)!==Ho?(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 C0(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Ho&&t!==k0&&t!==v0&&t!==w0&&t!==Hd&&t!==ja&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Ho&&(this.isDelim(Ho)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function Zd(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=x0.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=C0.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 _0(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 Yd(e){return this.Raw(e,null,!0)}function Qp(){return this.parseWithFallback(this.Rule,Yd)}function ed(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function T0(){if(this.tokenType===17)return ed.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,ed);return this.tokenType===17&&this.next(),e}function Xd(e){let t=e?T0:Qp,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),Yd));break;default:e&&this.isDelim(S0)?r.push(Qp.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function I0(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function ef(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 j0(e){this.token(9,"["),this.children(e),this.token(9,"]")}function nf(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function $0(){this.token(15,"-->")}function of(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function W0(){this.token(14,"<!--")}function af(){return this.eatDelim(U0),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function q0(e){this.token(9,"."),this.token(1,e.name)}function cf(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case H0:case J0:case Z0:this.next();break;case td:this.next(),this.eatIdent("deep"),this.eatDelim(td);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function X0(e){this.tokenize(e.name)}function pf(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Q0&&this.charCodeAt(t-1)===ek&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function rk(e){this.token(25,"/*"+e.value+"*/")}function ck(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function uk(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function pk(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(ff)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function mf(){let e=this.tokenStart,t=this.tokenIndex,n=gk.call(this),r=Ha(n),o=r?this.parseCustomProperty:this.parseValue,i=r?uk:ck,s=!1,a;this.skipSC(),this.eat(16);let c=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(pk,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=c-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(ff)&&(s=yk.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 hk(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 gk(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case ak:case ik:case lk:case ok:case sk:this.next();break;case nd:this.next(),this.isDelim(nd)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function yk(){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 gf(){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(bk)?e.push(this.parseWithFallback(this.Rule,va)):e.push(this.parseWithFallback(this.Declaration,va))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function vk(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function bf(){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 Ck(e){this.token(12,e.value+e.unit)}function wf(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 Sk(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function kf(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Pk(e){this.token(4,"#"+e.value)}function Cf(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Bk(e){this.token(1,e.name)}function Ef(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Nk(e){this.token(9,"#"+e.name)}function Sf(){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 zk(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function Af(){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 Vk(e){this.children(e)}function Pf(){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 Jk(e){this.children(e,()=>this.token(18,","))}function Rf(){let e=this.tokenStart;return this.eatDelim(Hk),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Yk(){this.token(9,"&")}function jf(){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 ex(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Nf(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function rx(e){this.token(10,e.value)}function Mf(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function sx(e){this.tokenize(e.value)}function Wf(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 cx(e){this.token(21,"("),this.children(e),this.token(22,")")}function Vf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function dx(e){this.token(11,e.value+"%")}function qf(){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 gx(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Hf(){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 wx(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 rd(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!he(n)&&n!==kx&&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 Kf(){let e=this.tokenStart,t=rd.call(this),n;return this.skipSC(),this.eatDelim(vx),n=rd.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Fx(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function Ex(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function Xf(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=Ex.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function Tx(e){this.tokenize(e.value)}function od(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Ax(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function em(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(Ax,od):n=od.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Rx(e){this.node(e.prelude),this.node(e.block)}function nm(){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 Lx(e){this.children(e)}function om(){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 zx(e){this.children(e,()=>this.token(18,","))}function sl(e){let t=e.length,n=e.charCodeAt(0),r=n===sm||n===am?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),Ke(La,a)){let c=s-1,l=Xt(e,c);s=l-1,i+=Ga(e.substring(c+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function lm(e,t){let n=t?"'":'"',r=t?am:sm,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&&(Pt(a)||Yt(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function cm(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:sl(this.consume(5))}}function Gx(e){this.token(5,lm(e.value))}function id(e){return this.Raw(e,null,!1)}function pm(){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)!==qx){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,id);break;default:n=this.parseWithFallback(this.Rule,id)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function Kx(e){this.children(e)}function ka(){this.tokenType!==1&&this.isDelim(Yx)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function fm(){let e=this.tokenStart;return this.isDelim(sd)?(this.next(),ka.call(this)):(ka.call(this),this.isDelim(sd)&&(this.next(),ka.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function eC(e){this.tokenize(e.name)}function Nr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===gm&&t&&n!==0)return Nr.call(this,e+n+1,!1),-1;Pt(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 Wo(e){let t=0;for(;this.isDelim(Na);)++t>e&&this.error("Too many question marks"),this.next()}function tC(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===hm?"Plus sign":"Hyphen minus")+" is expected")}function nC(){let e=0;switch(this.tokenType){case 10:if(e=Nr.call(this,1,!0),this.isDelim(Na)){Wo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){tC.call(this,gm),Nr.call(this,1,!1);break}break;case 12:e=Nr.call(this,1,!0),e>0&&Wo.call(this,6-e);break;default:if(this.eatDelim(hm),this.tokenType===1){e=Nr.call(this,0,!0),e>0&&Wo.call(this,6-e);break}if(this.isDelim(Na)){this.next(),Wo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function ym(){let e=this.tokenStart;return this.eatIdent("u"),nC.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function iC(e){this.tokenize(e.value)}function wm(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===Dm?t-2:t-1,o="";for(;n<r&&Yt(e.charCodeAt(n));)n++;for(;n<r&&Yt(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===$a){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),Ke($a,s)){let a=i-1,c=Xt(e,a);i=c-1,o+=Ga(e.substring(a+1,c))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function vm(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===aC||o===$a||o===lC||o===cC||o===uC||o===Dm?(t+="\\"+e.charAt(r),n=!1):(n&&Pt(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function km(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=wm(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 fC(e){this.token(7,vm(e.value))}function Cm(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function gC(e){this.children(e)}function Em(){return this.eat(13),yC}function wC(e){this.token(13,e.value)}function Sm(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,EC)&&this.cmpChar(this.tokenStart+1,ad)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===FC||t===xC||t===ad||t===CC)return this.Operator();t===kC&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function jC(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function LC(){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)===ld&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case OC:case IC:case BC:case PC:return this.Combinator();case ld:return this.ClassSelector();case AC:case RC:return this.TypeSelector();case SC:return this.IdSelector();case TC:return this.NestingSelector()}break}}}function $C(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function MC(){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 cd(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 HC(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Tm.call(this)}function Tm(){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(HC,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function n1(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===pd){if(r===t)break;if(o=e.charCodeAt(++r),Ke(pd,o)){let i=r-1,s=Xt(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 r1(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 hD,Ma,gD,yD,bD,DD,zn,R,wD,vD,kD,xD,za,CD,FD,ED,_D,SD,TD,AD,OD,PD,ID,RD,BD,jD,LD,ND,$D,MD,zD,WD,UD,VD,GD,qD,JD,HD,ZD,KD,YD,XD,QD,Ca,ow,Go,fd,Va,md,hd,gp,sw,yp,aw,Re,Tt,lw,cw,Pn,pe,ca,Dp,wp,xp,pw,dw,ua,Cp,Fp,gw,Ep,Ea,bw,Dw,da,gd,ww,vw,bd,kw,qa,Rr,Op,Ir,Bw,Mo,In,Xo,fa,Pp,wd,Wr,nt,ma,Rn,Nw,Mw,vd,kd,zw,Vw,Za,tv,nv,Ta,iv,sv,av,lv,cv,uv,pv,dv,fv,mv,hv,gv,yv,bv,Dv,wv,vv,kv,xv,Cv,Sd,Ka,Ip,Qo,Td,Fv,Ad,Ya,Xa,Rp,Qa,Od,Aa,Ev,li,el,ei,Bp,jp,Lp,Ur,Np,Lr,jv,H,Z,nl,$v,Mv,Wp,Wv,Uv,Ia,Bd,Up,Vv,Gv,Vp,qv,jd,Mr,n0,Kp,i0,s0,il,zd,rt,_e,qo,Kt,a0,l0,c0,Ud,d0,f0,m0,Gd,g0,y0,b0,Jd,w0,Hd,Ho,v0,ja,k0,F0,E0,Kd,S0,A0,O0,P0,Qd,R0,B0,tf,L0,N0,rf,M0,z0,sf,U0,V0,G0,lf,J0,td,H0,Z0,K0,Y0,uf,Q0,ek,tk,nk,df,ff,ok,ik,sk,ak,lk,nd,dk,fk,mk,hf,bk,Dk,wk,yf,kk,xk,Df,Fk,Ek,_k,vf,Tk,Ak,Ok,xf,Ik,Rk,Ff,jk,Lk,_f,$k,Mk,Tf,Wk,Uk,Of,Gk,qk,If,Hk,Zk,Kk,Bf,Xk,Qk,Lf,tx,nx,$f,ox,ix,zf,ax,lx,Uf,ux,px,Gf,fx,mx,hx,Jf,yx,bx,Dx,Zf,vx,kx,xx,Cx,Yf,_x,Sx,Qf,Ox,Px,Ix,tm,Bx,jx,rm,Nx,$x,Mx,im,Wx,La,sm,am,Ux,Vx,um,qx,Jx,Hx,Zx,dm,Yx,sd,Xx,Qx,mm,hm,gm,Na,rC,oC,bm,sC,aC,$a,lC,cC,uC,Dm,pC,dC,xm,mC,hC,Fm,yC,bC,DC,vC,_m,kC,xC,ad,CC,FC,EC,_C,SC,TC,AC,OC,PC,ld,IC,RC,BC,NC,zC,WC,UC,VC,GC,qC,ZC,KC,Zt,xa,ud,Uo,YC,Am,XC,QC,e1,t1,pd,VT,Om,Pm,GT,qT,Im,JT,HT,ZT,KT,YT,XT,Rm=S(()=>{"use strict";hD=Object.create,Ma=Object.defineProperty,gD=Object.getOwnPropertyDescriptor,yD=Object.getOwnPropertyNames,bD=Object.getPrototypeOf,DD=Object.prototype.hasOwnProperty,zn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R=(e,t)=>{for(var n in t)Ma(e,n,{get:t[n],enumerable:!0})},wD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yD(t))!DD.call(e,o)&&o!==n&&Ma(e,o,{get:()=>t[o],enumerable:!(r=gD(t,o))||r.enumerable});return e},vD=(e,t,n)=>(n=e!=null?hD(bD(e)):{},wD(t||!e||!e.__esModule?Ma(n,"default",{value:e,enumerable:!0}):n,e)),kD=zn(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,c=57,l=43,u=47,p=26,f=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+p:a<=n&&n<=c?n-a+f:n==l?62:n==u?63:-1}}),xD=zn(e=>{var t=kD(),n=5,r=1<<n,o=r-1,i=r;function s(c){return c<0?(-c<<1)+1:(c<<1)+0}function a(c){var l=(c&1)===1,u=c>>1;return l?-u:u}e.encode=function(c){var l="",u,p=s(c);do u=p&o,p>>>=n,p>0&&(u|=i),l+=t.encode(u);while(p>0);return l},e.decode=function(c,l,u){var p=c.length,f=0,m=0,y,v;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(v=t.decode(c.charCodeAt(l++)),v===-1)throw new Error("Invalid base64 digit: "+c.charAt(l-1));y=!!(v&i),v&=o,f=f+(v<<m),m+=n}while(y);u.value=a(f),u.rest=l}}),za=zn(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 x=0;x<g.length;x++)if(g[x].input===B){var de=g[0];return g[0]=g[x],g[x]=de,g[0].result}var Me=h(B);return g.unshift({input:B,result:Me}),g.length>s&&g.pop(),Me}}var c=a(function(h){var g=h,B=o(h);if(B){if(!B.path)return h;g=B.path}for(var x=e.isAbsolute(g),de=[],Me=0,M=0;;)if(Me=M,M=g.indexOf("/",Me),M===-1){de.push(g.slice(Me));break}else for(de.push(g.slice(Me,M));M<g.length&&g[M]==="/";)M++;for(var ee,Dt=0,M=de.length-1;M>=0;M--)ee=de[M],ee==="."?de.splice(M,1):ee===".."?Dt++:Dt>0&&(ee===""?(de.splice(M+1,Dt),Dt=0):(de.splice(M,2),Dt--));return g=de.join("/"),g===""&&(g=x?"/":"."),B?(B.path=g,i(B)):g});e.normalize=c;function l(h,g){h===""&&(h="."),g===""&&(g=".");var B=o(g),x=o(h);if(x&&(h=x.path||"/"),B&&!B.scheme)return x&&(B.scheme=x.scheme),i(B);if(B||g.match(r))return g;if(x&&!x.host&&!x.path)return x.host=g,i(x);var de=g.charAt(0)==="/"?g:c(h.replace(/\/+$/,"")+"/"+g);return x?(x.path=de,i(x)):de}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function u(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var B=0;g.indexOf(h+"/")!==0;){var x=h.lastIndexOf("/");if(x<0||(h=h.slice(0,x),h.match(/^([^\/]+:\/)?\/*$/)))return g;++B}return Array(B+1).join("../")+g.substr(h.length+1)}e.relative=u;var p=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return v(h)?"$"+h:h}e.toSetString=p?f:m;function y(h){return v(h)?h.slice(1):h}e.fromSetString=p?f:y;function v(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 A(h,g,B){var x=O(h.source,g.source);return x!==0||(x=h.originalLine-g.originalLine,x!==0)||(x=h.originalColumn-g.originalColumn,x!==0||B)||(x=h.generatedColumn-g.generatedColumn,x!==0)||(x=h.generatedLine-g.generatedLine,x!==0)?x:O(h.name,g.name)}e.compareByOriginalPositions=A;function E(h,g,B){var x;return x=h.originalLine-g.originalLine,x!==0||(x=h.originalColumn-g.originalColumn,x!==0||B)||(x=h.generatedColumn-g.generatedColumn,x!==0)||(x=h.generatedLine-g.generatedLine,x!==0)?x:O(h.name,g.name)}e.compareByOriginalPositionsNoSource=E;function z(h,g,B){var x=h.generatedLine-g.generatedLine;return x!==0||(x=h.generatedColumn-g.generatedColumn,x!==0||B)||(x=O(h.source,g.source),x!==0)||(x=h.originalLine-g.originalLine,x!==0)||(x=h.originalColumn-g.originalColumn,x!==0)?x:O(h.name,g.name)}e.compareByGeneratedPositionsDeflated=z;function C(h,g,B){var x=h.generatedColumn-g.generatedColumn;return x!==0||B||(x=O(h.source,g.source),x!==0)||(x=h.originalLine-g.originalLine,x!==0)||(x=h.originalColumn-g.originalColumn,x!==0)?x:O(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=C;function O(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function q(h,g){var B=h.generatedLine-g.generatedLine;return B!==0||(B=h.generatedColumn-g.generatedColumn,B!==0)||(B=O(h.source,g.source),B!==0)||(B=h.originalLine-g.originalLine,B!==0)||(B=h.originalColumn-g.originalColumn,B!==0)?B:O(h.name,g.name)}e.compareByGeneratedPositionsInflated=q;function L(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function _(h,g,B){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),B){var x=o(B);if(!x)throw new Error("sourceMapURL could not be parsed");if(x.path){var de=x.path.lastIndexOf("/");de>=0&&(x.path=x.path.substring(0,de+1))}g=l(i(x),g)}return c(g)}e.computeSourceURL=_}),CD=zn(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,c=0,l=i.length;c<l;c++)a.add(i[c],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),c=r?this.has(i):n.call(this._set,a),l=this._array.length;(!c||s)&&this._array.push(i),c||(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}),FD=zn(e=>{var t=za();function n(o,i){var s=o.generatedLine,a=i.generatedLine,c=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=c||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}),ED=zn(e=>{var t=xD(),n=za(),r=CD().ArraySet,o=FD().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,c=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var u={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(u.source=l.source,a!=null&&(u.source=n.relative(a,u.source)),u.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(u.name=l.name)),c.addMapping(u)}),s.sources.forEach(function(l){var u=l;a!==null&&(u=n.relative(a,l)),c._sources.has(u)||c._sources.add(u);var p=s.sourceContentFor(l);p!=null&&c.setSourceContent(l,p)}),c},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),c=n.getArg(s,"original",null),l=n.getArg(s,"source",null),u=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,c,l,u),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:l,name:u})},i.prototype.setSourceContent=function(s,a){var c=s;this._sourceRoot!=null&&(c=n.relative(this._sourceRoot,c)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(c)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,c){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 u=this._sourceRoot;u!=null&&(l=n.relative(u,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,c!=null&&(m.source=n.join(c,m.source)),u!=null&&(m.source=n.relative(u,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var v=m.source;v!=null&&!p.has(v)&&p.add(v);var A=m.name;A!=null&&!f.has(A)&&f.add(A)},this),this._sources=p,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(c!=null&&(m=n.join(c,m)),u!=null&&(m=n.relative(u,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,c,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&&!c&&!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&&c)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:c,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,c=0,l=0,u=0,p=0,f="",m,y,v,A,E=this._mappings.toArray(),z=0,C=E.length;z<C;z++){if(y=E[z],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(z>0){if(!n.compareByGeneratedPositionsInflated(y,E[z-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(A=this._sources.indexOf(y.source),m+=t.encode(A-p),p=A,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-c),c=y.originalColumn,y.name!=null&&(v=this._names.indexOf(y.name),m+=t.encode(v-u),u=v)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(c){if(!this._sourcesContents)return null;a!=null&&(c=n.relative(a,c));var l=n.toSetString(c);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}),_D={};R(_D,{AtKeyword:()=>OD,BadString:()=>RD,BadUrl:()=>jD,CDC:()=>UD,CDO:()=>WD,Colon:()=>VD,Comma:()=>qD,Comment:()=>QD,Delim:()=>LD,Dimension:()=>MD,EOF:()=>SD,Function:()=>AD,Hash:()=>PD,Ident:()=>TD,LeftCurlyBracket:()=>YD,LeftParenthesis:()=>ZD,LeftSquareBracket:()=>JD,Number:()=>ND,Percentage:()=>$D,RightCurlyBracket:()=>XD,RightParenthesis:()=>KD,RightSquareBracket:()=>HD,Semicolon:()=>GD,String:()=>ID,Url:()=>BD,WhiteSpace:()=>zD});SD=0,TD=1,AD=2,OD=3,PD=4,ID=5,RD=6,BD=7,jD=8,LD=9,ND=10,$D=11,MD=12,zD=13,WD=14,UD=15,VD=16,GD=17,qD=18,JD=19,HD=20,ZD=21,KD=22,YD=23,XD=24,QD=25;Ca=new Array(128),ow=128,Go=130,fd=131,Va=132,md=133;for(let e=0;e<Ca.length;e++)Ca[e]=Yt(e)&&Go||he(e)&&fd||Zo(e)&&Va||rw(e)&&md||e||ow;hd=["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"];gp=10,sw=12,yp=13;aw=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||bp(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||bp(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]}}}},Re=16777215,Tt=24,lw=new Map([[2,22],[21,22],[19,20],[23,24]]),cw=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=Yo(this.offsetAndType,e.length+1),o=Yo(this.balance,e.length+1),i=0,s=0,a=0,c=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,u,p)=>{switch(l){default:o[i]=n;break;case s:{let f=a&Re;for(a=o[f],s=a>>Tt,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=lw.get(l),a=s<<Tt|i;break}r[i++]=l<<Tt|p,c===-1&&(c=u)}),r[i]=0<<Tt|n,o[i]=n,o[n]=n;a!==0;){let l=a&Re;a=o[l],o[l]=n}this.source=e,this.firstCharOffset=c===-1?0:c,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]>>Tt:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Re:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?zr(this.source,this.offsetAndType[e-1]&Re,this.offsetAndType[e]&Re,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Re:this.offsetAndType[this.tokenCount]&Re: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]&Re,t=this.offsetAndType[t],this.tokenType=t>>Tt,this.tokenEnd=t&Re):(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>>Tt,this.tokenEnd=e&Re):(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]&Re: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&Re,s=o>>Tt;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:hd[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};Pn=null,pe=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return pe.createItem(e)}allocateCursor(e,t){let n;return Pn!==null?(n=Pn,Pn=Pn.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=Pn,Pn=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=pe.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 pe;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 pe;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 pe;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(pe.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(pe.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(pe.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(pe.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(pe.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)}};ca=100,Dp=60,wp=" ";xp=()=>{},pw=33,dw=35,ua=59,Cp=123,Fp=0;gw=vD(ED(),1),Ep=new Set(["Atrule","Selector","Declaration"]);Ea={};R(Ea,{safe:()=>bd,spec:()=>vw});bw=43,Dw=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},gd=[[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],["/","*"]],ww=gd.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,"-"]]);vw=yd(gd),bd=yd(ww),kw=92;({hasOwnProperty:qa}=Object.prototype),Rr=function(){};Op={offset:0,line:1,column:1};Ir=function(e,t){let n=ii("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Bw=function(e,t,n,r){let o=ii("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:c,end:l}=Rw(r,n);return o.rawMessage=e,o.syntax=t?si(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
43
41
  syntax: `+o.syntax+`
44
42
  value: `+(i||"<empty string>")+`
45
- --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,c),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:c,end:l},o},$o=new Map,Pn=new Map,Yo=45,ga=Vw,Lp=Gw;Fd=["initial","inherit","unset","revert","revert-layer"],zr=43,nt=45,ya=110,In=!0,qw=!1;Hw=43,Ed=45,_d=63,Zw=117;Xw=["calc(","-moz-calc(","-webkit-calc("],Xa=new Map([[2,22],[21,22],[19,20],[23,24]]);cv={"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)},uv={string:Y(5),ident:Y(1),percentage:je(sv),zero:Od(),number:je(av),integer:je(lv),"custom-ident":ev,"custom-property-name":tv,"hex-color":nv,"id-selector":rv,"an-plus-b":Jw,urange:Yw,"declaration-value":ov,"any-value":iv};Pa={};R(Pa,{angle:()=>mv,decibel:()=>Dv,flex:()=>bv,frequency:()=>gv,length:()=>fv,resolution:()=>yv,semitones:()=>wv,time:()=>hv});fv=["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"],mv=["deg","grad","rad","turn"],hv=["s","ms"],gv=["hz","khz"],yv=["dpi","dpcm","dppx","x"],bv=["fr"],Dv=["db"],wv=["st"],vv={};R(vv,{SyntaxError:()=>Pd,generate:()=>ii,parse:()=>ol,walk:()=>Nd});kv=9,xv=10,Cv=12,Fv=13,Ev=32,_v=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!==Fv&&t!==xv&&t!==Cv&&t!==Ev&&t!==kv)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 Pd(e,this.str,this.pos)}},Sv=9,Tv=10,Av=12,Ov=13,Pv=32,Id=33,Qa=35,Np=38,Xo=39,Rd=40,Iv=41,jd=42,el=43,tl=44,$p=45,nl=60,Bd=62,Ia=63,Rv=64,ai=91,rl=93,Qo=123,Mp=124,zp=125,Wp=8734,Wr=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Up={" ":1,"&&":2,"||":3,"|":4};Br=function(){};Vv={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"},Z={type:"Mismatch"},il={type:"DisallowEmpty"},Jv=40,Hv=41;({hasOwnProperty:Jp}=Object.prototype),Kv=0,Yv=1,Ba=2,Md=3,Hp="Match",Xv="Mismatch",Qv="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Zp=15e3,e0=0;zd={};R(zd,{getTrace:()=>Wd,isKeyword:()=>s0,isProperty:()=>i0,isType:()=>o0});({hasOwnProperty:$r}=Object.prototype);u0=ja(Fd.join(" | "));td=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=u0,this.syntax=t,this.generic=!1,this.units={...Pa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||c0(e),e){if(e.units)for(let r of Object.keys(Pa))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(dv(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=ja(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:ol(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:ja(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 Pr("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&&!Rn(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=ga(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 Pr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Pr("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return He(null,n);let r=this.getAtrule(e);return r.prelude?Rn(this,r.prelude,t||"",!1):He(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return He(null,r);let o=this.getAtrule(e),i=ga(t);return Rn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?He(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Lp(e).custom)return He(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?He(null,n):Rn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Rn(this,n,t,!1):He(null,new Pr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?He(null,new Pr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Rn(this,e,t,!1))}findValueFragments(e,t,n,r){return Qp(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Qp(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=ga(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=Lp(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&&Nd(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let c=a.type==="Type"?r.types:r.properties,l=a.type==="Type"?t:n;(!hasOwnProperty.call(c,a.name)||e(r,a.name,l,c[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:La(this.types,!t,e),properties:La(this.properties,!t,e),atrules:p0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};f0=e=>Gd(Na({},e)),m0={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}}},ll={};R(ll,{AnPlusB:()=>qd,Atrule:()=>Hd,AtrulePrelude:()=>Kd,AttributeSelector:()=>Xd,Block:()=>tf,Brackets:()=>of,CDC:()=>af,CDO:()=>cf,ClassSelector:()=>pf,Combinator:()=>ff,Comment:()=>hf,Declaration:()=>yf,DeclarationList:()=>wf,Dimension:()=>kf,Function:()=>Cf,Hash:()=>Ef,IdSelector:()=>Af,Identifier:()=>Sf,MediaFeature:()=>Pf,MediaQuery:()=>Rf,MediaQueryList:()=>Bf,NestingSelector:()=>Nf,Nth:()=>Mf,Number:()=>Wf,Operator:()=>Vf,Parentheses:()=>qf,Percentage:()=>Hf,PseudoClassSelector:()=>Kf,PseudoElementSelector:()=>Xf,Ratio:()=>em,Raw:()=>nm,Rule:()=>om,Selector:()=>sm,SelectorList:()=>lm,String:()=>um,StyleSheet:()=>hm,TypeSelector:()=>ym,UnicodeRange:()=>Dm,Url:()=>xm,Value:()=>Sm,WhiteSpace:()=>Am});qd={};R(qd,{generate:()=>b0,name:()=>g0,parse:()=>Jd,structure:()=>y0});rt=43,_e=45,Go=110,Zt=!0,h0=!1;g0="AnPlusB",y0={a:[String,null],b:[String,null]};Hd={};R(Hd,{generate:()=>x0,name:()=>w0,parse:()=>Zd,structure:()=>k0,walkContext:()=>v0});w0="Atrule",v0="atrule",k0={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Kd={};R(Kd,{generate:()=>_0,name:()=>C0,parse:()=>Yd,structure:()=>E0,walkContext:()=>F0});C0="AtrulePrelude",F0="atrulePrelude",E0={children:[[]]};Xd={};R(Xd,{generate:()=>j0,name:()=>I0,parse:()=>ef,structure:()=>R0});S0=36,Qd=42,Jo=61,T0=94,$a=124,A0=126;I0="AttributeSelector",R0={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};tf={};R(tf,{generate:()=>z0,name:()=>N0,parse:()=>rf,structure:()=>M0,walkContext:()=>$0});B0=38;N0="Block",$0="block",M0={children:[["Atrule","Rule","Declaration"]]};of={};R(of,{generate:()=>V0,name:()=>W0,parse:()=>sf,structure:()=>U0});W0="Brackets",U0={children:[[]]};af={};R(af,{generate:()=>J0,name:()=>G0,parse:()=>lf,structure:()=>q0});G0="CDC",q0=[];cf={};R(cf,{generate:()=>K0,name:()=>H0,parse:()=>uf,structure:()=>Z0});H0="CDO",Z0=[];pf={};R(pf,{generate:()=>ek,name:()=>X0,parse:()=>df,structure:()=>Q0});Y0=46,X0="ClassSelector",Q0={name:String};ff={};R(ff,{generate:()=>sk,name:()=>ok,parse:()=>mf,structure:()=>ik});tk=43,sd=47,nk=62,rk=126,ok="Combinator",ik={name:String};hf={};R(hf,{generate:()=>pk,name:()=>ck,parse:()=>gf,structure:()=>uk});ak=42,lk=47,ck="Comment",uk={value:String};yf={};R(yf,{generate:()=>xk,name:()=>wk,parse:()=>Df,structure:()=>kk,walkContext:()=>vk});bf=33,dk=35,fk=36,mk=38,hk=42,gk=43,ad=47;wk="Declaration",vk="declaration",kk={important:[Boolean,String],property:String,value:["Value","Raw"]};wf={};R(wf,{generate:()=>Tk,name:()=>_k,parse:()=>vf,structure:()=>Sk});Ek=38;_k="DeclarationList",Sk={children:[["Declaration","Atrule","Rule"]]};kf={};R(kf,{generate:()=>Pk,name:()=>Ak,parse:()=>xf,structure:()=>Ok});Ak="Dimension",Ok={value:String,unit:String};Cf={};R(Cf,{generate:()=>Bk,name:()=>Ik,parse:()=>Ff,structure:()=>jk,walkContext:()=>Rk});Ik="Function",Rk="function",jk={name:String,children:[[]]};Ef={};R(Ef,{generate:()=>Mk,name:()=>Nk,parse:()=>_f,structure:()=>$k,xxx:()=>Lk});Lk="XXX",Nk="Hash",$k={value:String};Sf={};R(Sf,{generate:()=>Uk,name:()=>zk,parse:()=>Tf,structure:()=>Wk});zk="Identifier",Wk={name:String};Af={};R(Af,{generate:()=>qk,name:()=>Vk,parse:()=>Of,structure:()=>Gk});Vk="IdSelector",Gk={name:String};Pf={};R(Pf,{generate:()=>Zk,name:()=>Jk,parse:()=>If,structure:()=>Hk});Jk="MediaFeature",Hk={name:String,value:["Identifier","Number","Dimension","Ratio",null]};Rf={};R(Rf,{generate:()=>Xk,name:()=>Kk,parse:()=>jf,structure:()=>Yk});Kk="MediaQuery",Yk={children:[["Identifier","MediaFeature","WhiteSpace"]]};Bf={};R(Bf,{generate:()=>tx,name:()=>Qk,parse:()=>Lf,structure:()=>ex});Qk="MediaQueryList",ex={children:[["MediaQuery"]]};Nf={};R(Nf,{generate:()=>ix,name:()=>rx,parse:()=>$f,structure:()=>ox});nx=38,rx="NestingSelector",ox={};Mf={};R(Mf,{generate:()=>lx,name:()=>sx,parse:()=>zf,structure:()=>ax});sx="Nth",ax={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};Wf={};R(Wf,{generate:()=>px,name:()=>cx,parse:()=>Uf,structure:()=>ux});cx="Number",ux={value:String};Vf={};R(Vf,{generate:()=>mx,name:()=>dx,parse:()=>Gf,structure:()=>fx});dx="Operator",fx={value:String};qf={};R(qf,{generate:()=>yx,name:()=>hx,parse:()=>Jf,structure:()=>gx});hx="Parentheses",gx={children:[[]]};Hf={};R(Hf,{generate:()=>wx,name:()=>bx,parse:()=>Zf,structure:()=>Dx});bx="Percentage",Dx={value:String};Kf={};R(Kf,{generate:()=>Cx,name:()=>vx,parse:()=>Yf,structure:()=>xx,walkContext:()=>kx});vx="PseudoClassSelector",kx="function",xx={name:String,children:[["Raw"],null]};Xf={};R(Xf,{generate:()=>Sx,name:()=>Fx,parse:()=>Qf,structure:()=>_x,walkContext:()=>Ex});Fx="PseudoElementSelector",Ex="function",_x={name:String,children:[["Raw"],null]};em={};R(em,{generate:()=>Ix,name:()=>Ox,parse:()=>tm,structure:()=>Px});Tx=47,Ax=46;Ox="Ratio",Px={left:String,right:String};nm={};R(nm,{generate:()=>Lx,name:()=>jx,parse:()=>rm,structure:()=>Bx});jx="Raw",Bx={value:String};om={};R(om,{generate:()=>Wx,name:()=>$x,parse:()=>im,structure:()=>zx,walkContext:()=>Mx});$x="Rule",Mx="rule",zx={prelude:["SelectorList","Raw"],block:["Block"]};sm={};R(sm,{generate:()=>Gx,name:()=>Ux,parse:()=>am,structure:()=>Vx});Ux="Selector",Vx={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};lm={};R(lm,{generate:()=>Zx,name:()=>qx,parse:()=>cm,structure:()=>Hx,walkContext:()=>Jx});qx="SelectorList",Jx="selector",Hx={children:[["Selector","Raw"]]};um={};R(um,{generate:()=>Qx,name:()=>Yx,parse:()=>mm,structure:()=>Xx});Kx={};R(Kx,{decode:()=>cl,encode:()=>fm});Ma=92,pm=34,dm=39;Yx="String",Xx={value:String};hm={};R(hm,{generate:()=>oC,name:()=>tC,parse:()=>gm,structure:()=>rC,walkContext:()=>nC});eC=33;tC="StyleSheet",nC="stylesheet",rC={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};ym={};R(ym,{generate:()=>lC,name:()=>sC,parse:()=>bm,structure:()=>aC});iC=42,pd=124;sC="TypeSelector",aC={name:String};Dm={};R(Dm,{generate:()=>fC,name:()=>pC,parse:()=>km,structure:()=>dC});wm=43,vm=45,za=63;pC="UnicodeRange",dC={value:String};xm={};R(xm,{generate:()=>vC,name:()=>DC,parse:()=>_m,structure:()=>wC});mC={};R(mC,{decode:()=>Fm,encode:()=>Em});hC=32,Wa=92,gC=34,yC=39,bC=40,Cm=41;DC="Url",wC={value:String};Sm={};R(Sm,{generate:()=>CC,name:()=>kC,parse:()=>Tm,structure:()=>xC});kC="Value",xC={children:[[]]};Am={};R(Am,{generate:()=>SC,name:()=>EC,parse:()=>Om,structure:()=>_C});FC=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),EC="WhiteSpace",_C={value:String};TC={generic:!0,...m0,node:ll},Pm={};R(Pm,{AtrulePrelude:()=>jC,Selector:()=>qC,Value:()=>ZC});AC=35,OC=42,dd=43,PC=45,IC=47,RC=117;jC={getNode:Im},BC=35,LC=38,NC=42,$C=43,MC=47,fd=46,zC=62,WC=124,UC=126;qC={onWhiteSpace:VC,getNode:GC};ZC={getNode:Im,onWhiteSpace(e,t){md(e)&&(e.value=" "+e.value),md(t.last)&&(t.last.value+=" ")},expression:JC,var:HC},KC={parse:{prelude:null,block(){return this.Block(!0)}}},YC={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}},XC={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)}}},e1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};r1={parse:{prelude(){let e=Rm.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},o1={"font-face":KC,import:YC,media:XC,nest:QC,page:e1,supports:r1},Ht={parse(){return this.createSingleNodeList(this.SelectorList())}},Ea={parse(){return this.createSingleNodeList(this.Selector())}},hd={parse(){return this.createSingleNodeList(this.Identifier())}},Wo={parse(){return this.createSingleNodeList(this.Nth())}},i1={dir:hd,has:Ht,lang:hd,matches:Ht,is:Ht,"-moz-any":Ht,"-webkit-any":Ht,where:Ht,not:Ht,"nth-child":Wo,"nth-last-child":Wo,"nth-last-of-type":Wo,"nth-of-type":Wo,slotted:Ea,host:Ea,"host-context":Ea},jm={};R(jm,{AnPlusB:()=>Jd,Atrule:()=>Zd,AtrulePrelude:()=>Yd,AttributeSelector:()=>ef,Block:()=>rf,Brackets:()=>sf,CDC:()=>lf,CDO:()=>uf,ClassSelector:()=>df,Combinator:()=>mf,Comment:()=>gf,Declaration:()=>Df,DeclarationList:()=>vf,Dimension:()=>xf,Function:()=>Ff,Hash:()=>_f,IdSelector:()=>Of,Identifier:()=>Tf,MediaFeature:()=>If,MediaQuery:()=>jf,MediaQueryList:()=>Lf,NestingSelector:()=>$f,Nth:()=>zf,Number:()=>Uf,Operator:()=>Gf,Parentheses:()=>Jf,Percentage:()=>Zf,PseudoClassSelector:()=>Yf,PseudoElementSelector:()=>Qf,Ratio:()=>tm,Raw:()=>rm,Rule:()=>im,Selector:()=>am,SelectorList:()=>cm,String:()=>mm,StyleSheet:()=>gm,TypeSelector:()=>bm,UnicodeRange:()=>km,Url:()=>_m,Value:()=>Tm,WhiteSpace:()=>Om});s1={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:Pm,atrule:o1,pseudo:i1,node:jm},a1={node:ll},l1=f0({...TC,...s1,...a1}),c1={};R(c1,{decode:()=>u1,encode:()=>p1});gd=92;({tokenize:XT,parse:Bm,generate:Lm,lexer:QT,createLexer:eA,walk:Nm,find:tA,findLast:nA,findAll:rA,toPlainObject:oA,fromPlainObject:iA,fork:sA}=l1)});function f1(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 pe().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 Wm(e){if(d.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return Mm("");let t=sa(e?.css,!0);try{let n=Bm(t);Nm(n,{enter:f1});let r=zm.default.format([Lm(n),d1].join(`
43
+ --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,c),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:c,end:l},o},Mo=new Map,In=new Map,Xo=45,fa=jw,Pp=Lw;wd=["initial","inherit","unset","revert","revert-layer"],Wr=43,nt=45,ma=110,Rn=!0,Nw=!1;Mw=43,vd=45,kd=63,zw=117;Vw=["calc(","-moz-calc(","-webkit-calc("],Za=new Map([[2,22],[21,22],[19,20],[23,24]]);tv={"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)},nv={string:Y(5),ident:Y(1),percentage:Be(Xw),zero:Ed(),number:Be(Qw),integer:Be(ev),"custom-ident":qw,"custom-property-name":Jw,"hex-color":Hw,"id-selector":Zw,"an-plus-b":$w,urange:Uw,"declaration-value":Kw,"any-value":Yw};Ta={};R(Ta,{angle:()=>sv,decibel:()=>pv,flex:()=>uv,frequency:()=>lv,length:()=>iv,resolution:()=>cv,semitones:()=>dv,time:()=>av});iv=["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"],sv=["deg","grad","rad","turn"],av=["s","ms"],lv=["hz","khz"],cv=["dpi","dpcm","dppx","x"],uv=["fr"],pv=["db"],dv=["st"],fv={};R(fv,{SyntaxError:()=>_d,generate:()=>si,parse:()=>tl,walk:()=>Id});mv=9,hv=10,gv=12,yv=13,bv=32,Dv=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!==yv&&t!==hv&&t!==gv&&t!==bv&&t!==mv)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 _d(e,this.str,this.pos)}},wv=9,vv=10,kv=12,xv=13,Cv=32,Sd=33,Ka=35,Ip=38,Qo=39,Td=40,Fv=41,Ad=42,Ya=43,Xa=44,Rp=45,Qa=60,Od=62,Aa=63,Ev=64,li=91,el=93,ei=123,Bp=124,jp=125,Lp=8734,Ur=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Np={" ":1,"&&":2,"||":3,"|":4};Lr=function(){};jv={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"},Z={type:"Mismatch"},nl={type:"DisallowEmpty"},$v=40,Mv=41;({hasOwnProperty:Wp}=Object.prototype),Wv=0,Uv=1,Ia=2,Bd=3,Up="Match",Vv="Mismatch",Gv="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Vp=15e3,qv=0;jd={};R(jd,{getTrace:()=>Ld,isKeyword:()=>Xv,isProperty:()=>Yv,isType:()=>Kv});({hasOwnProperty:Mr}=Object.prototype);n0=Pa(wd.join(" | "));Kp=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=n0,this.syntax=t,this.generic=!1,this.units={...Ta},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||t0(e),e){if(e.units)for(let r of Object.keys(Ta))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(ov(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 Ir("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&&!Bn(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 Ir("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Ir("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?Bn(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=fa(t);return Bn(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(Pp(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):Bn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Bn(this,n,t,!1):Ze(null,new Ir("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?Ze(null,new Ir("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Bn(this,e,t,!1))}findValueFragments(e,t,n,r){return Hp(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Hp(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=Pp(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&&Id(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let c=a.type==="Type"?r.types:r.properties,l=a.type==="Type"?t:n;(!hasOwnProperty.call(c,a.name)||e(r,a.name,l,c[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:Ra(this.types,!t,e),properties:Ra(this.properties,!t,e),atrules:r0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};i0=e=>Md(Ba({},e)),s0={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={};R(il,{AnPlusB:()=>zd,Atrule:()=>Ud,AtrulePrelude:()=>Gd,AttributeSelector:()=>Jd,Block:()=>Kd,Brackets:()=>Qd,CDC:()=>tf,CDO:()=>rf,ClassSelector:()=>sf,Combinator:()=>lf,Comment:()=>uf,Declaration:()=>df,DeclarationList:()=>hf,Dimension:()=>yf,Function:()=>Df,Hash:()=>vf,IdSelector:()=>Ff,Identifier:()=>xf,MediaFeature:()=>_f,MediaQuery:()=>Tf,MediaQueryList:()=>Of,NestingSelector:()=>If,Nth:()=>Bf,Number:()=>Lf,Operator:()=>$f,Parentheses:()=>zf,Percentage:()=>Uf,PseudoClassSelector:()=>Gf,PseudoElementSelector:()=>Jf,Ratio:()=>Zf,Raw:()=>Yf,Rule:()=>Qf,Selector:()=>tm,SelectorList:()=>rm,String:()=>im,StyleSheet:()=>um,TypeSelector:()=>dm,UnicodeRange:()=>mm,Url:()=>bm,Value:()=>xm,WhiteSpace:()=>Fm});zd={};R(zd,{generate:()=>u0,name:()=>l0,parse:()=>Wd,structure:()=>c0});rt=43,_e=45,qo=110,Kt=!0,a0=!1;l0="AnPlusB",c0={a:[String,null],b:[String,null]};Ud={};R(Ud,{generate:()=>h0,name:()=>d0,parse:()=>Vd,structure:()=>m0,walkContext:()=>f0});d0="Atrule",f0="atrule",m0={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Gd={};R(Gd,{generate:()=>D0,name:()=>g0,parse:()=>qd,structure:()=>b0,walkContext:()=>y0});g0="AtrulePrelude",y0="atrulePrelude",b0={children:[[]]};Jd={};R(Jd,{generate:()=>_0,name:()=>F0,parse:()=>Zd,structure:()=>E0});w0=36,Hd=42,Ho=61,v0=94,ja=124,k0=126;F0="AttributeSelector",E0={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Kd={};R(Kd,{generate:()=>I0,name:()=>A0,parse:()=>Xd,structure:()=>P0,walkContext:()=>O0});S0=38;A0="Block",O0="block",P0={children:[["Atrule","Rule","Declaration"]]};Qd={};R(Qd,{generate:()=>j0,name:()=>R0,parse:()=>ef,structure:()=>B0});R0="Brackets",B0={children:[[]]};tf={};R(tf,{generate:()=>$0,name:()=>L0,parse:()=>nf,structure:()=>N0});L0="CDC",N0=[];rf={};R(rf,{generate:()=>W0,name:()=>M0,parse:()=>of,structure:()=>z0});M0="CDO",z0=[];sf={};R(sf,{generate:()=>q0,name:()=>V0,parse:()=>af,structure:()=>G0});U0=46,V0="ClassSelector",G0={name:String};lf={};R(lf,{generate:()=>X0,name:()=>K0,parse:()=>cf,structure:()=>Y0});J0=43,td=47,H0=62,Z0=126,K0="Combinator",Y0={name:String};uf={};R(uf,{generate:()=>rk,name:()=>tk,parse:()=>pf,structure:()=>nk});Q0=42,ek=47,tk="Comment",nk={value:String};df={};R(df,{generate:()=>hk,name:()=>dk,parse:()=>mf,structure:()=>mk,walkContext:()=>fk});ff=33,ok=35,ik=36,sk=38,ak=42,lk=43,nd=47;dk="Declaration",fk="declaration",mk={important:[Boolean,String],property:String,value:["Value","Raw"]};hf={};R(hf,{generate:()=>vk,name:()=>Dk,parse:()=>gf,structure:()=>wk});bk=38;Dk="DeclarationList",wk={children:[["Declaration","Atrule","Rule"]]};yf={};R(yf,{generate:()=>Ck,name:()=>kk,parse:()=>bf,structure:()=>xk});kk="Dimension",xk={value:String,unit:String};Df={};R(Df,{generate:()=>Sk,name:()=>Fk,parse:()=>wf,structure:()=>_k,walkContext:()=>Ek});Fk="Function",Ek="function",_k={name:String,children:[[]]};vf={};R(vf,{generate:()=>Pk,name:()=>Ak,parse:()=>kf,structure:()=>Ok,xxx:()=>Tk});Tk="XXX",Ak="Hash",Ok={value:String};xf={};R(xf,{generate:()=>Bk,name:()=>Ik,parse:()=>Cf,structure:()=>Rk});Ik="Identifier",Rk={name:String};Ff={};R(Ff,{generate:()=>Nk,name:()=>jk,parse:()=>Ef,structure:()=>Lk});jk="IdSelector",Lk={name:String};_f={};R(_f,{generate:()=>zk,name:()=>$k,parse:()=>Sf,structure:()=>Mk});$k="MediaFeature",Mk={name:String,value:["Identifier","Number","Dimension","Ratio",null]};Tf={};R(Tf,{generate:()=>Vk,name:()=>Wk,parse:()=>Af,structure:()=>Uk});Wk="MediaQuery",Uk={children:[["Identifier","MediaFeature","WhiteSpace"]]};Of={};R(Of,{generate:()=>Jk,name:()=>Gk,parse:()=>Pf,structure:()=>qk});Gk="MediaQueryList",qk={children:[["MediaQuery"]]};If={};R(If,{generate:()=>Yk,name:()=>Zk,parse:()=>Rf,structure:()=>Kk});Hk=38,Zk="NestingSelector",Kk={};Bf={};R(Bf,{generate:()=>ex,name:()=>Xk,parse:()=>jf,structure:()=>Qk});Xk="Nth",Qk={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};Lf={};R(Lf,{generate:()=>rx,name:()=>tx,parse:()=>Nf,structure:()=>nx});tx="Number",nx={value:String};$f={};R($f,{generate:()=>sx,name:()=>ox,parse:()=>Mf,structure:()=>ix});ox="Operator",ix={value:String};zf={};R(zf,{generate:()=>cx,name:()=>ax,parse:()=>Wf,structure:()=>lx});ax="Parentheses",lx={children:[[]]};Uf={};R(Uf,{generate:()=>dx,name:()=>ux,parse:()=>Vf,structure:()=>px});ux="Percentage",px={value:String};Gf={};R(Gf,{generate:()=>gx,name:()=>fx,parse:()=>qf,structure:()=>hx,walkContext:()=>mx});fx="PseudoClassSelector",mx="function",hx={name:String,children:[["Raw"],null]};Jf={};R(Jf,{generate:()=>wx,name:()=>yx,parse:()=>Hf,structure:()=>Dx,walkContext:()=>bx});yx="PseudoElementSelector",bx="function",Dx={name:String,children:[["Raw"],null]};Zf={};R(Zf,{generate:()=>Fx,name:()=>xx,parse:()=>Kf,structure:()=>Cx});vx=47,kx=46;xx="Ratio",Cx={left:String,right:String};Yf={};R(Yf,{generate:()=>Tx,name:()=>_x,parse:()=>Xf,structure:()=>Sx});_x="Raw",Sx={value:String};Qf={};R(Qf,{generate:()=>Rx,name:()=>Ox,parse:()=>em,structure:()=>Ix,walkContext:()=>Px});Ox="Rule",Px="rule",Ix={prelude:["SelectorList","Raw"],block:["Block"]};tm={};R(tm,{generate:()=>Lx,name:()=>Bx,parse:()=>nm,structure:()=>jx});Bx="Selector",jx={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};rm={};R(rm,{generate:()=>zx,name:()=>Nx,parse:()=>om,structure:()=>Mx,walkContext:()=>$x});Nx="SelectorList",$x="selector",Mx={children:[["Selector","Raw"]]};im={};R(im,{generate:()=>Gx,name:()=>Ux,parse:()=>cm,structure:()=>Vx});Wx={};R(Wx,{decode:()=>sl,encode:()=>lm});La=92,sm=34,am=39;Ux="String",Vx={value:String};um={};R(um,{generate:()=>Kx,name:()=>Jx,parse:()=>pm,structure:()=>Zx,walkContext:()=>Hx});qx=33;Jx="StyleSheet",Hx="stylesheet",Zx={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};dm={};R(dm,{generate:()=>eC,name:()=>Xx,parse:()=>fm,structure:()=>Qx});Yx=42,sd=124;Xx="TypeSelector",Qx={name:String};mm={};R(mm,{generate:()=>iC,name:()=>rC,parse:()=>ym,structure:()=>oC});hm=43,gm=45,Na=63;rC="UnicodeRange",oC={value:String};bm={};R(bm,{generate:()=>fC,name:()=>pC,parse:()=>km,structure:()=>dC});sC={};R(sC,{decode:()=>wm,encode:()=>vm});aC=32,$a=92,lC=34,cC=39,uC=40,Dm=41;pC="Url",dC={value:String};xm={};R(xm,{generate:()=>gC,name:()=>mC,parse:()=>Cm,structure:()=>hC});mC="Value",hC={children:[[]]};Fm={};R(Fm,{generate:()=>wC,name:()=>bC,parse:()=>Em,structure:()=>DC});yC=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),bC="WhiteSpace",DC={value:String};vC={generic:!0,...s0,node:il},_m={};R(_m,{AtrulePrelude:()=>_C,Selector:()=>NC,Value:()=>zC});kC=35,xC=42,ad=43,CC=45,FC=47,EC=117;_C={getNode:Sm},SC=35,TC=38,AC=42,OC=43,PC=47,ld=46,IC=62,RC=124,BC=126;NC={onWhiteSpace:jC,getNode:LC};zC={getNode:Sm,onWhiteSpace(e,t){cd(e)&&(e.value=" "+e.value),cd(t.last)&&(t.last.value+=" ")},expression:$C,var:MC},WC={parse:{prelude:null,block(){return this.Block(!0)}}},UC={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}},VC={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},GC={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},qC={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};ZC={parse:{prelude(){let e=Tm.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},KC={"font-face":WC,import:UC,media:VC,nest:GC,page:qC,supports:ZC},Zt={parse(){return this.createSingleNodeList(this.SelectorList())}},xa={parse(){return this.createSingleNodeList(this.Selector())}},ud={parse(){return this.createSingleNodeList(this.Identifier())}},Uo={parse(){return this.createSingleNodeList(this.Nth())}},YC={dir:ud,has:Zt,lang:ud,matches:Zt,is:Zt,"-moz-any":Zt,"-webkit-any":Zt,where:Zt,not:Zt,"nth-child":Uo,"nth-last-child":Uo,"nth-last-of-type":Uo,"nth-of-type":Uo,slotted:xa,host:xa,"host-context":xa},Am={};R(Am,{AnPlusB:()=>Wd,Atrule:()=>Vd,AtrulePrelude:()=>qd,AttributeSelector:()=>Zd,Block:()=>Xd,Brackets:()=>ef,CDC:()=>nf,CDO:()=>of,ClassSelector:()=>af,Combinator:()=>cf,Comment:()=>pf,Declaration:()=>mf,DeclarationList:()=>gf,Dimension:()=>bf,Function:()=>wf,Hash:()=>kf,IdSelector:()=>Ef,Identifier:()=>Cf,MediaFeature:()=>Sf,MediaQuery:()=>Af,MediaQueryList:()=>Pf,NestingSelector:()=>Rf,Nth:()=>jf,Number:()=>Nf,Operator:()=>Mf,Parentheses:()=>Wf,Percentage:()=>Vf,PseudoClassSelector:()=>qf,PseudoElementSelector:()=>Hf,Ratio:()=>Kf,Raw:()=>Xf,Rule:()=>em,Selector:()=>nm,SelectorList:()=>om,String:()=>cm,StyleSheet:()=>pm,TypeSelector:()=>fm,UnicodeRange:()=>ym,Url:()=>km,Value:()=>Cm,WhiteSpace:()=>Em});XC={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:_m,atrule:KC,pseudo:YC,node:Am},QC={node:il},e1=i0({...vC,...XC,...QC}),t1={};R(t1,{decode:()=>n1,encode:()=>r1});pd=92;({tokenize:VT,parse:Om,generate:Pm,lexer:GT,createLexer:qT,walk:Im,find:JT,findLast:HT,findAll:ZT,toPlainObject:KT,fromPlainObject:YT,fork:XT}=e1)});function i1(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 pe().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 jm(e){if(d.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return"";try{let t=Om(e);return Im(t,{enter:i1}),Bm.default.format([Pm(t),o1].join(`
46
44
 
47
- `).trim(),{parser:"css"});return Mm(r)}catch{return d.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function Um(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var zm,d1,Mm,Vm=S(()=>{"use strict";$m();zm=D(require("prettier"));aa();V();d1=`
45
+ `).trim(),{parser:"css"})}catch{return d.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function Lm(e){return e.reduce((t,n)=>(n.path==="global.css"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var Bm,o1,Nm=S(()=>{"use strict";Rm();Bm=D(require("prettier"));V();o1=`
48
46
  .w-icon-slider-right:before {
49
47
  content: "\\e600";
50
48
  }
@@ -63,24 +61,25 @@ in your project root.`),new w(a)}}function yp(e){if(!(e===void 0||e===!1)){if(ty
63
61
  .w-icon-file-upload-icon:before {
64
62
  content: "\\e903";
65
63
  }
66
- `;Mm=e=>({name:"global",ext:"css",css:{__bootflow:{rule:e}},module:!1})});function m1(e){try{let t=JSON.parse(e);if(t.msg&&typeof t.msg=="string")return t.msg}catch{}return null}function Gm(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 qm(e){switch(e.status){case 400:{let t=await e.text(),n=m1(t);throw new zn(n||"Bad request: The server rejected the request due to invalid input. Please check your configuration and try again.")}case 401:throw new zn("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new zn("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new zn(`Something went wrong (HTTP ${e.status}).`)}}async function h1(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 c=`?${a.toString()}`,l=await se(`${n}/devlink/${t}${c}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});if(Gm(l),!l.ok)return qm(l);let u=await l.json();return u.components||u}catch(t){throw new w(t,{skipLogging:!0})}}async function g1(e){try{let{siteId:t,host:n,authToken:r}=e,o=await se(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return Gm(o),o.ok?await o.json():qm(o)}catch(t){throw new w(t,{skipLogging:!0})}}async function ul(e){try{let[t,n]=await Promise.all([h1(e),g1(e)]),r=n;if(e.skipTagSelectors===!0){let{rest:o,globalCss:i}=Um(t),s=Wm(i);r.push(...o,s)}else r.push(...t);await wp(r,e)}catch(t){throw t instanceof w?t:new w(t,{skipLogging:!0})}}var zn,Jm=S(()=>{"use strict";V();aa();Vm();Ut();ce();zn=class extends Error{constructor(t){super(t)}}});function li(e){return async function(n){Xt.default.removeListener("uncaughtException",li),Xt.default.removeListener("unhandledRejection",li);let r=await Po(e);if(!r)return;await new pl(r,n).prompt()}}function Hm(e){Xt.default.on("uncaughtException",li(e)),Xt.default.on("unhandledRejection",li(e))}var Xt,pl,Zm=S(()=>{"use strict";Xt=D(require("process"));V();Or();To();De();Ut();pl=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;se(`${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:Xt.default.platform,node:Xt.default.version})})}async storeChoice(t){try{return fe({devlink:{allowTelemetry:t}})}catch{let r=await Tn();await Hu({...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 Km={};oc(Km,{syncComponents:()=>fl});async function fl(e,t){let n=Date.now(),{manifest:r}=X(),{accessToken:o,siteId:i}=await Je(r,{site:t?.site,apiToken:t?.apiToken}),s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:An(e),overwriteModule:!1}:{overwriteModule:!0}};Hm(s);let a=await Po(s);if(!a)return dl.default.exit();let c;try{c=Q.forDevlinkSync(a)}catch(u){d.debug(`Failed to initialize telemetry: ${u}`)}await c?.sendUsage("devlink_sync_start",{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot});let l=d.spinner(`Exporting components into ${a.rootDir}`);try{await ul(a),l.succeed(`Successfully exported components into ${a.rootDir} folder`);let u=Date.now()-n;await c?.sendUsage("devlink_sync_success",{duration:u,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot})}catch(u){let p=u instanceof Error?u.message:String(u);l.fail(`Failed to export components: ${p}`);let f=Date.now()-n;throw await c?.sendError(u instanceof Error?u:new Error(String(u)),"devlink_sync_failure",{duration:f,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,configOverrides:Object.keys(s),argv:dl.default.argv.slice(2)}),u}}var dl,ml=S(()=>{"use strict";dl=D(require("process"));Or();Jm();Zm();Qe();V();ut();De()});var Vy=require("commander");var Qr=require("commander");V();var Du=require("child_process"),wu=require("fs"),Ls=D(require("semver"));V();var Ns="@webflow/webflow-cli",Vt="@webflow/data-types",yo="@webflow/react",nD=[Ns,Vt,yo],Gt=class{getInstalledDependencies(){try{let t=(0,Du.execSync)(`npm ls ${nD.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,wu.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Vt];if(!n)return;let o=this.getRequiredDependencies(Ns)[Vt];if(!Ls.default.satisfies(n,o))throw new Error(`Version mismatch: ${Ns} requires ${Vt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Vt],r=t[yo];if(!(!n||!r)&&!Ls.default.eq(n,r))throw new Error(`Version mismatch: ${yo} and ${Vt} must be on the same version. Found ${yo}@${r} and ${Vt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var Cu=require("fs-extra");qe();var Fu=require("@dotenvx/dotenvx"),qt=D(require("semver"));V();var vu=require("child_process"),ku=require("util"),oD=(0,ku.promisify)(vu.exec);async function Et(e,t){try{let{stdout:n,stderr:r}=await oD(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}}}Fe();var $s=D(mo());(0,Fu.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var xu={npm:{updateCommand:"npm install",update:async e=>await Et(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await Et(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await Et(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await Et(`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}},iD=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],Fr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(xu))if((0,Cu.existsSync)(t.lockFile))return t;return xu.npm}async listOutdatedPackages(t="local",n=iD){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 Do({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 Ge({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(`
64
+ `});function s1(e){try{let t=JSON.parse(e);if(t.msg&&typeof t.msg=="string")return t.msg}catch{}return null}function a1(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 l1(e){switch(e.status){case 400:{let t=await e.text(),n=s1(t);throw new Wn(n||"Bad request: The server rejected the request due to invalid input. Please check your configuration and try again.")}case 401:throw new Wn("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new Wn("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new Wn(`Something went wrong (HTTP ${e.status}).`)}}async function c1(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 c=`?${a.toString()}`,l=await ce(`${n}/devlink/${t}${c}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return a1(l),l.ok?await l.json():l1(l)}catch(t){throw new w(t,{skipLogging:!0})}}async function al(e){try{let t=await c1(e);if(!t.files||!Array.isArray(t.files))throw new w("Invalid response format from V1 API: expected 'files' array");let n=t.files;if(e.skipTagSelectors===!0){let{rest:r,globalCss:o}=Lm(n);if(o){let i=jm(o.content);n=[...r,{...o,content:i}]}}e.fileExtensions&&(n=n.map(r=>{let o=r.path;if(e.fileExtensions.js){let i=e.fileExtensions.js.startsWith(".")?e.fileExtensions.js:`.${e.fileExtensions.js}`;o=o.replace(/\.(jsx|js)$/,i)}if(e.fileExtensions.css){let i=e.fileExtensions.css.startsWith(".")?e.fileExtensions.css:`.${e.fileExtensions.css}`;o=o.replace(/\.css$/,i)}return{...r,path:o}})),e.envVariables&&Object.keys(e.envVariables).length>0&&(n=n.map(r=>({...r,content:u1(r.content,e.envVariables)}))),t.issues&&t.issues.length>0&&p1(t.issues),await ra(n,e.rootDir,!0)}catch(t){throw t instanceof w?t:new w(t,{skipLogging:!0})}}function u1(e,t){return t?Object.entries(t).reduce((n,[r,o])=>n.replace(new RegExp(`DEVLINK_ENV_${r}`,"g"),o.trim()),e):e}function p1(e){d.warn(`
65
+ ${Bo(e.length,"component")} could not be fully exported. See code comments for more details:`);let t={"invalid-attribute":"Invalid attribute(s)","unsupported-element":"Unsupported element(s)","unsupported-prop":"Unsupported prop(s)"};e.forEach(n=>{let o=[...Array.from(new Set(n.warnings?.map(i=>i.type)||[])).map(i=>t[i]).filter(Boolean),...n.error?[n.error]:[]];d.warn(`- ${n.componentName}: ${o.join(", ")}`)})}var Wn,$m=S(()=>{"use strict";V();oa();Vt();se();jo();Nm();Wn=class extends Error{constructor(t){super(t)}}});function ci(e){return async function(n){Qt.default.removeListener("uncaughtException",ci),Qt.default.removeListener("unhandledRejection",ci);let r=await Io(e);if(!r)return;await new ll(r,n).prompt()}}function Mm(e){Qt.default.on("uncaughtException",ci(e)),Qt.default.on("unhandledRejection",ci(e))}var Qt,ll,zm=S(()=>{"use strict";Qt=D(require("process"));V();Pr();Ao();De();Vt();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;ce(`${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:Qt.default.platform,node:Qt.default.version})})}async storeChoice(t){try{return fe({devlink:{allowTelemetry:t}})}catch{let r=await An();await Gu({...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 Wm={};tc(Wm,{syncComponents:()=>ul});async function ul(e,t){let n=Date.now(),{manifest:r}=X(),{accessToken:o,siteId:i}=await Je(r,{site:t?.site,apiToken:t?.apiToken}),s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:On(e),overwriteModule:!1}:{overwriteModule:!0}};Mm(s);let a=await Io(s);if(!a)return cl.default.exit();let c;try{c=Q.forDevlinkSync(a)}catch(u){d.debug(`Failed to initialize telemetry: ${u}`)}await c?.sendUsage("devlink_sync_start",{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot});let l=d.spinner(`Exporting components into ${a.rootDir}`);try{await al(a),l.succeed(`Successfully exported components into ${a.rootDir} folder`);let u=Date.now()-n;await c?.sendUsage("devlink_sync_success",{duration:u,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot})}catch(u){let p=u instanceof Error?u.message:String(u);l.fail(`Failed to export components: ${p}`);let f=Date.now()-n;throw await c?.sendError(u instanceof Error?u:new Error(String(u)),"devlink_sync_failure",{duration:f,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,configOverrides:Object.keys(s),argv:cl.default.argv.slice(2)}),u}}var cl,pl=S(()=>{"use strict";cl=D(require("process"));Pr();$m();zm();et();V();ut();De()});var jy=require("commander");var eo=require("commander");V();var gu=require("child_process"),yu=require("fs"),Ns=D(require("semver"));V();var $s="@webflow/webflow-cli",Gt="@webflow/data-types",bo="@webflow/react",Hb=[$s,Gt,bo],qt=class{getInstalledDependencies(){try{let t=(0,gu.execSync)(`npm ls ${Hb.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,yu.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Gt];if(!n)return;let o=this.getRequiredDependencies($s)[Gt];if(!Ns.default.satisfies(n,o))throw new Error(`Version mismatch: ${$s} requires ${Gt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Gt],r=t[bo];if(!(!n||!r)&&!Ns.default.eq(n,r))throw new Error(`Version mismatch: ${bo} and ${Gt} must be on the same version. Found ${bo}@${r} and ${Gt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var vu=require("fs-extra");qe();var ku=require("@dotenvx/dotenvx"),Jt=D(require("semver"));V();var bu=require("child_process"),Du=require("util"),Kb=(0,Du.promisify)(bu.exec);async function Et(e,t){try{let{stdout:n,stderr:r}=await Kb(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}}}Fe();var Ms=D(ho());(0,ku.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var wu={npm:{updateCommand:"npm install",update:async e=>await Et(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await Et(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await Et(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await Et(`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}},Yb=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],Er=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(wu))if((0,vu.existsSync)(t.lockFile))return t;return wu.npm}async listOutdatedPackages(t="local",n=Yb){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 Ge({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(`
67
66
  New versions of the following @webflow packages are available:`),Object.entries(t).forEach(([a,{current:c,latest:l}])=>{console.log(` ${a} (${c} \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(`
68
67
  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:c}]]=Object.entries(t);console.log(`
69
- A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=c==="global"?` ${o}`:"";console.log(`To update, run: ${r}${l} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}getDistTag(){let t=qt.prerelease($s.default.version);return t&&t.length>0&&typeof t[0]=="string"?t[0]:"latest"}async promptPrerelease(t){let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let{stdout:r,code:o}=await Et(`npm view @webflow/webflow-cli@${t} version`);if(o!==0||!r.trim()){n.succeed("Up to date");return}let i=r.trim(),s=$s.default.version;if(!qt.valid(i)||!qt.valid(s)){n.succeed("Up to date");return}if(!qt.gt(i,s)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||le()){console.log(`
70
- A new version of @webflow/webflow-cli@${t} is available.`);let{code:p}=await Et("npm ls @webflow/webflow-cli --json"),m=(p===0?"local":"global")==="global"?" --global":"";console.log(`To update, run: ${this.packageManager.updateCommand}${m} @webflow/webflow-cli@${t}`);return}let{code:c}=await Et("npm ls @webflow/webflow-cli --json"),l=c===0?"local":"global";if(await Ge({message:`A new version of @webflow/webflow-cli@${t} is available. Would you like to update?`,default:!1})){n=d.spinner("Updating");let p=l==="global"?` ${this.packageManager.globalFlag}`:"";try{await this.packageManager.update(`${p} @webflow/webflow-cli@${t}`),n.succeed("Updated successfully")}catch{let m=l==="global"?` ${this.packageManager.globalFlag}`:"";n.fail(`Update failed. Manually run: ${this.packageManager.updateCommand}${m} @webflow/webflow-cli@${t}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}async prompt(){if(this.shouldSkipUpdateChecks())return;let t=this.getDistTag();if(t!=="latest")return this.promptPrerelease(t);let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let r=await this.getOutdatedPackages();if(!(Object.keys(r).length>0)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||le()){this.showUpdateSuggestions(r);return}let s=await this.showUpdatePrompt(r);if(s.length>0){n=d.spinner("Updating");let{local:a,global:c}=s.reduce((f,m)=>(f[r[m].installationType==="global"?"global":"local"].push(m),f),{local:[],global:[]}),{update:l,globalFlag:u,updateCommand:p}=this.packageManager;try{a.length>0&&await l(`${a.map(f=>`${f}@latest`).join(" ")}`),c.length>0&&await l(`${u} ${c.map(f=>`${f}@latest`).join(" ")}`),n.succeed("Updated successfully")}catch{n.fail(`Update failed. Manually run: ${p} ${s.map(m=>`${m}@latest`).join(" ")}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}};Fe();Is();As();qe();Qe();ut();Fe();De();V();ce();Ve();var Nu=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(le()){d.info(`${ie} No-input mode enabled. Aborting OAuth authentication`);return}let{manifest:r}=X();if(!n.force&&vo()){let i=Sr(r);d.info(`${oe} Webflow credentials already exist:`),i&&d.info(` Site ID: ${i}`),d.info(" API Token: [hidden]"),d.info(`
71
- Use --force flag to reauthenticate anyway`);return}try{await me({force:n.force}),d.info(`${oe} Credentials saved to .env file`),d.info(`
72
- You can now use other Webflow CLI commands that require authentication`)}catch(o){throw new w(o,{prefix:`${ie} 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=xt.getInstance();if(n.status){let s=await r.getTelemetryStatus();d.info(Lu(s.enabled));return}if(n.enable){await r.setGlobalPreference(!0),d.info(qs(!0));return}if(n.disable){await r.setGlobalPreference(!1),d.info(qs(!1));return}let o=await r.getTelemetryStatus();if(d.info(Lu(o.enabled)),le()){d.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"}]});if(i==="enable"||i==="disable"){let s=i==="enable";await r.setGlobalPreference(s),d.info(qs(s))}})},qs=e=>`${oe} Telemetry ${e?"enabled":"disabled"} for all Webflow CLI commands`,Lu=e=>`${xn} Telemetry status: ${e?`enabled ${oe}`:`disabled ${ie}`}`;var ip=D(require("http")),sp=D(require("node-fetch")),ap=D(require("serve-handler")),lp=require("fs"),cp=D(require("path")),up=require("commander");var Mu=D(require("archiver")),Hs=require("commander"),Fo=require("fs");var $u=require("cosmiconfig"),Js=require("commander"),xo=async(e,t)=>{let n=await cD(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Js.program.error('Error: The apiVersion field in webflow.json must be a string (i.e. "apiVersion": "2").'),{filepath:n.filepath,config:{publicDir:e,...n.config}}},cD=async e=>{let n=await(0,$u.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Js.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var zu=D(require("mime-types")),Co=D(require("path")),uD=5*1024*1024,pD=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"]),Wu=async(e,t,n)=>{let{config:r,filepath:o}=await xo(e,t),i=Co.join(o,".."),s=!0,a=!1,c=u=>{let p=u.name,f=zu.default.lookup(p);return p==="index.html"&&(a=!0),p&&p.endsWith(".DS_Store")||!f?!1:pD.has(f)?u:(console.log(`Invalid file type: ${f} for file: ${p}`),s=!1,!1)},l=u=>{(0,Fo.unlink)(n,p=>{p&&console.error(`Failed to delete file: ${p}`),Hs.program.error(u)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(u=>{let p=(0,Mu.default)("zip",{zlib:{level:9}}),f=(0,Fo.createWriteStream)(Co.join(i,n));f.on("close",()=>{u(void 0)}),p.directory(Co.join(i,r.publicDir),!1,c),p.file(o,{name:t}),p.pipe(f),p.finalize(),p.on("warning",m=>{console.log(m)}),p.on("error",m=>{Hs.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()>=uD){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.`)})})};To();var _t=D(require("fs")),Ie=D(require("path"));var Ar="webflow.json",Zu="index.html",Ku="bundle.zip",Xs="public",Qs="extension-scaffolds",Ao="default",Yu="./";var Xu="package.json",Qu="wf-placeholder-name",ea=e=>JSON.stringify(e,null,2),ep=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
68
+ A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=c==="global"?` ${o}`:"";console.log(`To update, run: ${r}${l} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}getDistTag(){let t=Jt.prerelease(Ms.default.version);return t&&t.length>0&&typeof t[0]=="string"?t[0]:"latest"}async promptPrerelease(t){let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let{stdout:r,code:o}=await Et(`npm view @webflow/webflow-cli@${t} version`);if(o!==0||!r.trim()){n.succeed("Up to date");return}let i=r.trim(),s=Ms.default.version;if(!Jt.valid(i)||!Jt.valid(s)){n.succeed("Up to date");return}if(!Jt.gt(i,s)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||le()){console.log(`
69
+ A new version of @webflow/webflow-cli@${t} is available.`);let{code:p}=await Et("npm ls @webflow/webflow-cli --json"),m=(p===0?"local":"global")==="global"?" --global":"";console.log(`To update, run: ${this.packageManager.updateCommand}${m} @webflow/webflow-cli@${t}`);return}let{code:c}=await Et("npm ls @webflow/webflow-cli --json"),l=c===0?"local":"global";if(await Ge({message:`A new version of @webflow/webflow-cli@${t} is available. Would you like to update?`,default:!1})){n=d.spinner("Updating");let p=l==="global"?` ${this.packageManager.globalFlag}`:"";try{await this.packageManager.update(`${p} @webflow/webflow-cli@${t}`),n.succeed("Updated successfully")}catch{let m=l==="global"?` ${this.packageManager.globalFlag}`:"";n.fail(`Update failed. Manually run: ${this.packageManager.updateCommand}${m} @webflow/webflow-cli@${t}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}async prompt(){if(this.shouldSkipUpdateChecks())return;let t=this.getDistTag();if(t!=="latest")return this.promptPrerelease(t);let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let r=await this.getOutdatedPackages();if(!(Object.keys(r).length>0)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||le()){this.showUpdateSuggestions(r);return}let s=await this.showUpdatePrompt(r);if(s.length>0){n=d.spinner("Updating");let{local:a,global:c}=s.reduce((f,m)=>(f[r[m].installationType==="global"?"global":"local"].push(m),f),{local:[],global:[]}),{update:l,globalFlag:u,updateCommand:p}=this.packageManager;try{a.length>0&&await l(`${a.map(f=>`${f}@latest`).join(" ")}`),c.length>0&&await l(`${u} ${c.map(f=>`${f}@latest`).join(" ")}`),n.succeed("Updated successfully")}catch{n.fail(`Update failed. Manually run: ${p} ${s.map(m=>`${m}@latest`).join(" ")}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}};Fe();Rs();Os();qe();et();ut();Fe();De();V();se();Ve();var Bu=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(le()){d.info(`${re} No-input mode enabled. Aborting OAuth authentication`);return}let{manifest:r}=X();if(!n.force&&ko()){let i=Tr(r);d.info(`${ie} Webflow credentials already exist:`),i&&d.info(` Site ID: ${i}`),d.info(" API Token: [hidden]"),d.info(`
70
+ Use --force flag to reauthenticate anyway`);return}try{await me({force:n.force}),d.info(`${ie} Credentials saved to .env file`),d.info(`
71
+ You can now use other Webflow CLI commands that require authentication`)}catch(o){throw new w(o,{prefix:`${re} 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=xt.getInstance();if(n.status){let s=await r.getTelemetryStatus();d.info(Ru(s.enabled));return}if(n.enable){await r.setGlobalPreference(!0),d.info(Js(!0));return}if(n.disable){await r.setGlobalPreference(!1),d.info(Js(!1));return}let o=await r.getTelemetryStatus();if(d.info(Ru(o.enabled)),le()){d.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"}]});if(i==="enable"||i==="disable"){let s=i==="enable";await r.setGlobalPreference(s),d.info(Js(s))}})},Js=e=>`${ie} Telemetry ${e?"enabled":"disabled"} for all Webflow CLI commands`,Ru=e=>`${Cn} Telemetry status: ${e?`enabled ${ie}`:`disabled ${re}`}`;var np=D(require("http")),rp=D(require("node-fetch")),op=D(require("serve-handler")),ip=require("fs"),sp=D(require("path")),ap=require("commander");var Lu=D(require("archiver")),Zs=require("commander"),Eo=require("fs");var ju=require("cosmiconfig"),Hs=require("commander"),Co=async(e,t)=>{let n=await tD(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Hs.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}}},tD=async e=>{let n=await(0,ju.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Hs.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var Nu=D(require("mime-types")),Fo=D(require("path")),nD=5*1024*1024,rD=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"]),$u=async(e,t,n)=>{let{config:r,filepath:o}=await Co(e,t),i=Fo.join(o,".."),s=!0,a=!1,c=u=>{let p=u.name,f=Nu.default.lookup(p);return p==="index.html"&&(a=!0),p&&p.endsWith(".DS_Store")||!f?!1:rD.has(f)?u:(console.log(`Invalid file type: ${f} for file: ${p}`),s=!1,!1)},l=u=>{(0,Eo.unlink)(n,p=>{p&&console.error(`Failed to delete file: ${p}`),Zs.program.error(u)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(u=>{let p=(0,Lu.default)("zip",{zlib:{level:9}}),f=(0,Eo.createWriteStream)(Fo.join(i,n));f.on("close",()=>{u(void 0)}),p.directory(Fo.join(i,r.publicDir),!1,c),p.file(o,{name:t}),p.pipe(f),p.finalize(),p.on("warning",m=>{console.log(m)}),p.on("error",m=>{Zs.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()>=nD){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 _t=D(require("fs")),Ie=D(require("path"));var Or="webflow.json",qu="index.html",Ju="bundle.zip",Qs="public",ea="extension-scaffolds",Oo="default",Hu="./";var Zu="package.json",Ku="wf-placeholder-name",ta=e=>JSON.stringify(e,null,2),Yu=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
73
72
  \u2502 `+e+` \u2502
74
- \u2570`+t+"\u256F"};var tp=async(e,t=Yu,n=Ao,r)=>{let o=r[n];try{for(let i of o){let s=Ie.join(t,i),a=bD(s,n,e);if(i.includes(Xu)||i.includes(Ar))await yD(i,a,e);else{let c=await _t.promises.readFile(i);await op(a,c)}}}catch(i){console.error("Error writing file, ",i)}},np=async()=>{let e={},t=Ie.resolve(__dirname),n=Ie.join(t,Qs),r=await _t.promises.readdir(n);for(let o of r){let i=Ie.join(n,o),s=await rp(i);e[o]=s}return e},rp=async e=>{let t=[];try{let n=await _t.promises.readdir(e);for(let r of n){let o=Ie.join(e,r);if((await _t.promises.stat(o)).isDirectory()){let s=await rp(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Ie}, `,n)}return t},op=async(e,t)=>{try{await _t.promises.mkdir(Ie.dirname(e),{recursive:!0}),await _t.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},yD=async(e,t,n)=>_t.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Qu,n);await op(t,o)}),bD=(e,t,n)=>{let r=Ie.join(Qs,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Ie.join(n,i)}return""};var Oo=async()=>await np(),pp=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"')},dp=async(e,t=Ao)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Oo();await tp(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},fp=()=>Wu(Xs,Ar,Ku),mp=async e=>{let{config:t,filepath:n}=await xo(Xs,Ar),r=cp.join(n,"..",t.publicDir,Zu),i=(await Tn([],!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("&"),c=a?`&${a}`:"",u=await(await(0,sp.default)(`https://${i}/${s}?name=${t.name}${c}`)).text(),p=new ip.Server((m,y)=>{if(m.url==="/"){lp.promises.readFile(r,{encoding:"utf-8"}).catch(v=>{up.program.error(v.message)}).then(v=>{let A=u.replace("{{ui}}",v);return y.writeHead(200,{"Content-Length":Buffer.byteLength(A),"Content-Type":"text/html"}),y.end(A)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(ea(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(ea(t));(0,ap.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=DD(e);p.listen(f),console.log(ep(`Serving your extension at http://localhost:${f}`)+`
75
- `)},DD=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};qe();ce();var hp=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(pp),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 Pe({message:"What would you like to name your Designer Extension?",default:n,validate:c=>c.trim()===""?"The Designer Extension name cannot be empty.":!0});if(s===null)throw new w("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(c=>({name:c,value:c})),default:r||"default"});await dp(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(fp),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(mp)};ml();var v1=require("crypto");qe();Fe();xs();var Ym=require("path"),Xm=require("fs-extra");function ci(e,t){try{let n=Qm(),r=eh(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var Qm=()=>{try{return(0,Xm.existsSync)((0,Ym.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},eh=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"));var b1=D(require("node-fetch")),D1=require("timers/promises");V();var y1=D(require("prettier"));na();Or();ue();Or();qe();V();Qe();ut();De();V();ce();Ve();var Yn=require("commander");var Fi=require("path"),Zn=require("@webflow/data-types");ue();var th=D(require("md5"));function Ur(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,th.default)(o),size:r,...n}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var nh=D(require("node-fetch")),rh=D(require("form-data"));async function hl(e,t){let n={...t.fields,file:e.value},r=new rh.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,nh.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});x1(o)}function x1(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}`)}}V();De();Qe();ue();Ut();function C1({apiToken:e=process.env.WEBFLOW_API_TOKEN??process.env.WEBFLOW_WORKSPACE_API_TOKEN??process.env.WEBFLOW_SITE_API_TOKEN,siteId:t=process.env.WEBFLOW_SITE_ID,libraryTarget:n=process.env.WEBFLOW_LIBRARY_TARGET}){if(!e)throw new Error("No API token provided");if(n==="site"){if(!t)throw new Error("No site provided");return{baseUrl:`${J}/v2/sites/${t}`,authToken:e}}return{baseUrl:`${J}/v2/workspaces`,authToken:e}}function F1(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function E1(e){if(e.ok)return;if(e.status===401||e.status===403)throw new Error("Your API token is invalid or not authorized to perform this action. Remove the token from .env and run the command again to generate a new token.");if(e.status===404)throw new Error("Code components are rolling out in phases. Check back soon for access.");let t=await e.json();throw new Error(t.message||e.statusText)}async function Pt({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=C1(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await se(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:F1(n)});return await E1(a),a.json()}async function gl({options:e}){return(await Pt({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function yl({name:e,description:t,slug:n,options:r}){return(await Pt({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function bl({resourceId:e,files:t,options:n}){return(await Pt({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function Dl({resourceId:e,codeModule:t,components:n,options:r}){return(await Pt({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var Hh=require("path"),Zh=D(require("webpack-merge")),Qt=require("@webflow/data-types");ue();V();var sh=require("memfs/lib/volume"),Vr=require("@webflow/data-types");var ot="./tmp_entry",oh="components";function _1(e){let t=S1(e);return/^[a-zA-Z]/.test(t.charAt(0))?t:"_"+t}function ih(e,t){let n=e.map(({name:c,path:l,isDefaultExport:u})=>u?`import ${c} from "${l}";`:`import { ${c} } from "${l}";`).join(`
73
+ \u2570`+t+"\u256F"};var Xu=async(e,t=Hu,n=Oo,r)=>{let o=r[n];try{for(let i of o){let s=Ie.join(t,i),a=uD(s,n,e);if(i.includes(Zu)||i.includes(Or))await cD(i,a,e);else{let c=await _t.promises.readFile(i);await tp(a,c)}}}catch(i){console.error("Error writing file, ",i)}},Qu=async()=>{let e={},t=Ie.resolve(__dirname),n=Ie.join(t,ea),r=await _t.promises.readdir(n);for(let o of r){let i=Ie.join(n,o),s=await ep(i);e[o]=s}return e},ep=async e=>{let t=[];try{let n=await _t.promises.readdir(e);for(let r of n){let o=Ie.join(e,r);if((await _t.promises.stat(o)).isDirectory()){let s=await ep(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Ie}, `,n)}return t},tp=async(e,t)=>{try{await _t.promises.mkdir(Ie.dirname(e),{recursive:!0}),await _t.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},cD=async(e,t,n)=>_t.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Ku,n);await tp(t,o)}),uD=(e,t,n)=>{let r=Ie.join(ea,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Ie.join(n,i)}return""};var Po=async()=>await Qu(),lp=async()=>{let e=await Po(),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"')},cp=async(e,t=Oo)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Po();await Xu(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},up=()=>$u(Qs,Or,Ju),pp=async e=>{let{config:t,filepath:n}=await Co(Qs,Or),r=sp.join(n,"..",t.publicDir,qu),i=(await An([],!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("&"),c=a?`&${a}`:"",u=await(await(0,rp.default)(`https://${i}/${s}?name=${t.name}${c}`)).text(),p=new np.Server((m,y)=>{if(m.url==="/"){ip.promises.readFile(r,{encoding:"utf-8"}).catch(v=>{ap.program.error(v.message)}).then(v=>{let A=u.replace("{{ui}}",v);return y.writeHead(200,{"Content-Length":Buffer.byteLength(A),"Content-Type":"text/html"}),y.end(A)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(ta(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(ta(t));(0,op.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=pD(e);p.listen(f),console.log(Yu(`Serving your extension at http://localhost:${f}`)+`
74
+ `)},pD=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};qe();se();var dp=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(lp),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 Po(),i=Object.keys(o),s=await Pe({message:"What would you like to name your Designer Extension?",default:n,validate:c=>c.trim()===""?"The Designer Extension name cannot be empty.":!0});if(s===null)throw new w("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(c=>({name:c,value:c})),default:r||"default"});await cp(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(up),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(pp)};pl();var m1=require("crypto");qe();Fe();Cs();var Um=require("path"),Vm=require("fs-extra");function ui(e,t){try{let n=Gm(),r=qm(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var Gm=()=>{try{return(0,Vm.existsSync)((0,Um.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},qm=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"));var d1=D(require("node-fetch")),f1=require("timers/promises");V();Pr();ue();se();Pr();qe();jo();V();et();ut();De();jo();V();se();oa();Ve();var Xn=require("commander");var Ei=require("path"),Kn=require("@webflow/data-types");ue();var Jm=D(require("md5"));function Vr(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,Jm.default)(o),size:r,...n}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Hm=D(require("node-fetch")),Zm=D(require("form-data"));async function dl(e,t){let n={...t.fields,file:e.value},r=new Zm.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,Hm.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});g1(o)}function g1(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}`)}}V();De();et();ue();Vt();function y1({apiToken:e=process.env.WEBFLOW_API_TOKEN??process.env.WEBFLOW_WORKSPACE_API_TOKEN??process.env.WEBFLOW_SITE_API_TOKEN,siteId:t=process.env.WEBFLOW_SITE_ID,libraryTarget:n=process.env.WEBFLOW_LIBRARY_TARGET}){if(!e)throw new Error("No API token provided");if(n==="site"){if(!t)throw new Error("No site provided");return{baseUrl:`${J}/v2/sites/${t}`,authToken:e}}return{baseUrl:`${J}/v2/workspaces`,authToken:e}}function b1(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function D1(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 It({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=y1(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await ce(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:b1(n)});return await D1(a),a.json()}async function fl({options:e}){return(await It({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function ml({name:e,description:t,slug:n,options:r}){return(await It({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function hl({resourceId:e,files:t,options:n}){return(await It({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function gl({resourceId:e,codeModule:t,components:n,options:r}){return(await It({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var Mh=require("path"),zh=D(require("webpack-merge")),en=require("@webflow/data-types");ue();V();var Xm=require("memfs/lib/volume"),Gr=require("@webflow/data-types");var ot="./tmp_entry",Km="components";function w1(e){let t=v1(e);return/^[a-zA-Z]/.test(t.charAt(0))?t:"_"+t}function Ym(e,t){let n=e.map(({name:c,path:l,isDefaultExport:u})=>u?`import ${c} from "${l}";`:`import { ${c} } from "${l}";`).join(`
76
75
  `),r=e.filter(c=>c.type==="internal").map(({name:c,exportKey:l})=>`${l}: ${c}`).join(", "),o=e.filter(c=>c.type==="component").map(({name:c,exportKey:l})=>`"${l}": ${c}`).join(", "),i=`env: "${t}"`,s=r,a=o?`components: { ${o} }`:void 0;return`${n}
77
76
 
78
- export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function ah(e,t,n){let r={},o=`${ot}/Client.js`,i=`${ot}/Server.js`;r[o]=ih([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],Vr.Environment.Client);let s={},a=l=>{let u=_1(l);return s[u]?(s[u]+=1,`${u}${s[u]}`):(s[u]=1,u)};r[i]=ih([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.ssr??!0).map(([l,u])=>{let p=a(l),f=u.startsWith(ot)?u.replace(`${ot}/`,"./"):u;return{name:p,path:f,exportKey:l,isDefaultExport:!0,type:"component"}})],Vr.Environment.Server);let c={[Vr.Environment.Client]:o,[Vr.Environment.Server]:i};return{entryPointsVolume:sh.Volume.fromJSON(r),paths:c}}var S1=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 Kh=require("memfs/lib/volume");var dh=D(require("archiver")),Wn=require("path");ue();var Gr=require("@webflow/data-types");ue();V();var It=e=>e.endsWith("/")||/%2F$/i.test(e)?e:`${e}/`;var lh=2;function ch(e){let t={type:Gr.ModuleLoader.FEDERATION,version:lh,entry:Ts,renderer:kr,components:e};return{title:vr,content:JSON.stringify(t)}}function uh(e){let t={type:Gr.ModuleLoader.SSR,version:lh,entry:En,components:e};return{title:vr,content:JSON.stringify(t)}}function ph(e){let t=`/${Gr.Environment.Client}/${Ts}`;try{if(e.existsSync(t)){let n=e.readFileSync(t,"utf8"),r=JSON.parse(n.toString()),o="publicPath"in r.metaData?r.metaData.publicPath:null;if(!o)throw new Error("Public path not found in module federation manifest");return r.exposes.reduce((i,s)=>{let a=s.name;return a===kr||(i[a]={css:[]},s.assets.css.sync.forEach(c=>{i[a].css.push(`${It(o)}${c}`)})),i},{})}}catch(n){d.error(n,{prefix:"Failed to extract components metadata from MF manifest:"})}return{}}var ui=require("@webflow/data-types"),T1=/\.css$/i;async function fh(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${ui.Environment.Server}/${xr}`,a=(0,dh.default)("tar",{gzip:!1}),c=t.createWriteStream(s);a.on("error",p=>(r=!0,i(p))),c.on("close",()=>{if(!r)try{let p={type:"asset",name:xr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Wn.resolve)((0,Wn.join)(`/${ui.Environment.Server}`,f.name));t.existsSync(m)&&t.rmSync(m)}),o([p])}catch(p){return i(p)}finally{r=!0}}),a.pipe(c);let{title:l,content:u}=uh(n);a.append(u,{name:l}),e.forEach(p=>{if(!T1.test(p.name))try{let f=(0,Wn.resolve)((0,Wn.join)(`/${ui.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 mh=require("@webflow/data-types");async function hh(e,t,n){let{title:r,content:o}=ch(n);await t.promises.writeFile(`/${mh.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 zh=require("@rspack/core"),Wh=D(require("fork-ts-checker-webpack-plugin")),Uh=require("ts-checker-rspack-plugin"),Vh=D(require("mini-css-extract-plugin")),Gh=require("@webflow/data-types");var yh=require("webpack"),vl=D(require("mini-css-extract-plugin")),bh=D(require("tsconfig-paths-webpack-plugin")),Dh=require("tsconfig-paths"),kl=require("@webflow/data-types"),wh=require("path");ue();var gh=D(require("postcss-selector-parser")),wl=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,gh.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});wl.postcss=!0;wl.postcssPlugin="CSSinShadowDOM";var pi=wl;function A1(){return(0,Dh.loadConfig)(process.cwd()).resultType==="success"}function vh({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:vl.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[pi]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new vl.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:{plugins:[A1()?new bh.default:null].filter(Boolean)},performance:{hints:!1}};if(t===kl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,wh.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===kl.Environment.Server)return{...s,plugins:[...s.plugins||[],new yh.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:En,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var kh=require("@module-federation/enhanced"),xl=require("@webflow/data-types");function xh({libraryName:e,env:t,exposes:n}){if(t===xl.Environment.Client)return{plugins:[new kh.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===xl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}function Ch(){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 di(){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 fi=require("@rspack/core"),Fh=require("tsconfig-paths"),Cl=require("@webflow/data-types"),Eh=require("path");ue();function O1(){let e=(0,Fh.loadConfig)(process.cwd());if(e.resultType==="success")return e.configFileAbsolutePath}function _h({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:fi.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:[pi]}}}],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 fi.rspack.CssExtractRspackPlugin({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:(()=>{let a=O1();return a?{tsConfig:{configFile:a}}:{}})(),performance:{hints:!1}};if(t===Cl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,Eh.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Cl.Environment.Server)return{...s,plugins:[...Array.isArray(s.plugins)?s.plugins:[],new fi.rspack.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:En,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Sh=require("@module-federation/enhanced/rspack"),Fl=require("@webflow/data-types");function Th({libraryName:e,env:t,exposes:n}){if(t===Fl.Environment.Client)return{plugins:[new Sh.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Fl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}var I1=D(require("fs")),Ah=require("unionfs"),Oh=require("webpack");function P1(e){return{name:e.name,size:e.size,emitted:e.emitted,info:e.info}}function mi(e){let t=e.toJson();return{hasErrors:()=>e.hasErrors(),hasWarnings:()=>e.hasWarnings(),toString:n=>e.toString(n),toJson:()=>({...t,assets:(t.assets??[]).map(P1)})}}async function Ph({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new Ah.Union().use(I1));return new Promise((s,a)=>{let c=(0,Oh.webpack)(e);c.inputFileSystem=i,n&&(c.outputFileSystem=n),r&&(c.outputPath=r),c.run((l,u)=>{c.close(p=>{l||p?a(l||p):u?u.hasErrors()||o&&u.hasWarnings()?a(new Error(u.toString("errors-warnings"))):s(mi(u)):a(new Error("Webpack stats are undefined"))})})})}var R1=D(require("fs")),El=D(require("webpack-merge")),Ih=require("memfs"),Rh=require("unionfs"),jh=require("@rspack/core");async function hi({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((a,c)=>(a.use(c),a),new Rh.Union().use(R1)),s=e;return t.length>0&&(s=(0,El.default)(s,{experiments:{...e.experiments,useInputFileSystem:[/./]}})),n&&(s=(0,El.default)(s,{output:{clean:!1,...r&&{path:r}}})),new Promise((a,c)=>{let l=(0,jh.rspack)(s);l.inputFileSystem=i,n&&(l.outputFileSystem=(0,Ih.createFsFromVolume)(n)),r&&(l.outputPath=r),l.run((u,p)=>{l.close(f=>{u||f?c(u||f):p?p.hasErrors()||o&&p.hasWarnings()?c(new Error(p.toString("errors-warnings"))):a(mi(p)):c(new Error("Rspack stats are undefined"))})})})}var Lh=require("@module-federation/enhanced");var Un=D(require("webpack-merge"));V();function Rt(e){return e!==null&&typeof e=="object"&&"constructor"in e?e.constructor.name??"":""}function Bh(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function yi(e){let{deduplicatePluginNames:t,ModuleFederationPluginClass:n,getPluginOptions:r,filterOverridePlugins:o}=e;return function(s,a,c){let l=["entry","output","target"],u=j1(s),p=Array.isArray(c)?gi(...c.map(u)):gi(u(c));Object.keys(p).some(L=>l.includes(L))&&d.warn(`Cannot override blocked properties: ${l.join(", ")}`);let m={...Bh(p,[...l,"ModuleFederationPlugin","module","plugins"]),module:Bh(p.module??{},["rules"])},y=(0,Un.default)(a,m),v=p.plugins??[];o&&(v=v.filter(o));let A=a.plugins??[],z=(0,Un.mergeWithCustomize)({customizeArray:(0,Un.unique)("plugins",t,L=>Rt(L))})({plugins:v},{plugins:A}).plugins,C=p?.ModuleFederationPlugin?.shared,O=z?.map(L=>{if(Rt(L)==="ModuleFederationPlugin"){let _=r(L);return new n({..._,...C?{shared:C}:{}})}return L});y.plugins=O;let q=p.module?.rules;if(q&&typeof q=="function"){let L=a.module?.rules??[];y.module={...y.module??{},rules:q(L)}}return y}}function gi(...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,...c}=r;if(t.module={...t.module,...c},a){let l=t.module?.rules;l?t.module.rules=u=>{let p=l(u);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 j1(e){return t=>typeof t=="function"?t(e):t}var B1=yi({deduplicatePluginNames:["ModuleFederationPlugin","MiniCssExtractPlugin"],ModuleFederationPluginClass:Lh.ModuleFederationPlugin,getPluginOptions:e=>e._options??{}});function Nh(e,t,n){return B1(e,t,n)}var $h=require("@module-federation/enhanced/rspack");var L1=yi({deduplicatePluginNames:["ModuleFederationPlugin","CssExtractRspackPlugin"],ModuleFederationPluginClass:$h.ModuleFederationPlugin,getPluginOptions:e=>e._options??{},filterOverridePlugins:e=>Rt(e)!=="MiniCssExtractPlugin"});function Mh(e,t,n){return L1(e,t,n)}var _l={[Gh.Framework.React]:{generateWebpackBundlerConfig:Ch,generateRspackBundlerConfig:di}},N1={webpack:{generateBaseConfig:vh,getFrameworkConfig:(e,t)=>_l[e].generateWebpackBundlerConfig(t),generateFederationConfig:xh,mergeConfigs:(e,t,n)=>Nh(e,t,n),bundle:e=>Ph({...e,config:e.config}),typeCheckerPlugin:Wh.default,hashFunction:"md5",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Rt(t)==="MiniCssExtractPlugin"?new Vh.default({filename:"[name].[contenthash].css"}):t)})},rspack:{generateBaseConfig:_h,getFrameworkConfig:(e,t)=>_l[e].generateRspackBundlerConfig(t),generateFederationConfig:Th,mergeConfigs:(e,t,n)=>Mh(e,t,n),bundle:e=>hi({...e,config:e.config}),typeCheckerPlugin:Uh.TsCheckerRspackPlugin,hashFunction:"md4",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Rt(t)==="CssExtractRspackPlugin"?new zh.CssExtractRspackPlugin({filename:"[name].[contenthash].css"}):t)})}},Vn=e=>N1[e],qh=e=>!!_l[e];var Jh={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 bi(e){let t=e.bundler??"webpack";d.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=ah(e.renderer,e.componentsFiles,e.componentsOptions),o=Kh.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=Vn(t),a=A=>{let E=$1({env:A,mode:e.dev?"development":"production",framework:e.framework,publicPath:e.publicPath,components:e.componentsFiles,entryPaths:r,libraryName:e.libraryIdentifier,bundler:t}),z=s.mergeConfigs(A,E,i);return e?.debugBundler&&(d.info(`${t} config for env ${A}:`),d.dir(z)),z},c={sourceVolumes:[...e.sourceVolumes,n],outputVolume:o,failOnWarnings:e.failOnWarnings},[l,u]=await Promise.all([s.bundle({...c,config:a(Qt.Environment.Server),outputPath:`/${Qt.Environment.Server}`}),s.bundle({...c,config:a(Qt.Environment.Client),outputPath:`/${Qt.Environment.Client}`})]);e?.debugBundler&&(d.debug(o.toTree()),d.debug(`Server Bundler Stats: ${l.toString(Jh)}`),d.debug(`Client Bundler Stats: ${u.toString(Jh)}`));let p=ph(o);d.debug("Packaging server bundle...");let f=await fh(l.toJson().assets||[],o,p);d.debug("Packaging client bundle...");let m=await hh(u.toJson().assets||[],o,p),y=A=>E=>[E,A];return{outputFiles:[...f.map(y(Qt.Environment.Server)),...m.map(y(Qt.Environment.Client))],outputVolume:o}}function $1({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a,bundler:c="webpack"}){if(!qh(n))throw new Error(`Unknown framework: ${n}`);let l=Object.entries({[kr]:i[e],...o}).reduce((y,[v,A])=>({...y,[`./${v}`]:`./${(0,Hh.relative)(process.cwd(),A)}`}),{}),u=Vn(c),p=u.generateBaseConfig({entry:i[e],env:e,mode:t,libraryName:s,publicPath:r,outputPath:a}),f=u.getFrameworkConfig(n,e),m=u.generateFederationConfig({exposes:l,env:e,libraryName:s});return(0,Zh.default)(p,f,m)}var Xh=D(require("path")),Sl=require("memfs/lib/volume"),Tl=D(require("webpack-merge")),Qh=D(require("webpack-node-externals")),Be=require("@webflow/data-types");var M1=D(require("fs")),Gn=require("path"),qn=require("webpack");function z1(e,t=M1){let n=(0,Gn.join)(process.cwd(),"node_modules",e);for(;n!==(0,Gn.dirname)(n)&&n!=="node_modules";){let r=(0,Gn.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,Gn.dirname)(n)}return null}var Di=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:qn.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,c,l]=i.split("."),u=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 v=z1(y,n.inputFileSystem);if(!v)throw new Error(`Could not find package information for ${y}`);v&&p.add(v)}}),o[a]={sources:{...u,[`./${a}.${l}`]:c},dependencies:p},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new qn.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new qn.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var Yh=D(require("module"));function qr(e,t){let n=e.readFileSync(t,"utf-8"),r=new Yh.default(t,module);return r._compile(n,t),r}function W1(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:c,options:l}=(0,Be.parseComponentData)(o);return{displayName:i,description:s,group:a,props:Object.entries(c||{}).map(([u,p])=>({...p,name:u,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 U1({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r,bundler:o="webpack"}){let i=new Sl.Volume,s=Vn(o),a=(0,Tl.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]:[]}),c=s.mergeConfigs(Be.Environment.Client,a,n);return await s.bundle({outputPath:"/",config:c,sourceVolumes:t?[t]:[],outputVolume:i,failOnWarnings:!1}),i}async function V1({declarations:e,sources:t,overrideConfig:n={},bundler:r}){let o=new Sl.Volume,i=Vn(r),s=(0,Tl.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 Di],externals:[(0,Qh.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 G1(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=Xh.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function wi({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1,skipSourceMaps:o=!1,bundler:i="webpack"}){let[s,a]=await Promise.all([U1({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r,bundler:i}),o||i==="rspack"?Promise.resolve(null):V1({declarations:e,sources:t,overrideConfig:n,bundler:i})]),{metadata:c,options:l}=Object.keys(e).reduce((p,f)=>{let m=W1(s,f);return p.metadata[f]=m,p.options[f]=m.options||{},p},{metadata:{},options:{}});return{sourceMaps:a?G1(a):{},metadata:c,options:l}}function eg(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]}]))}qe();var ng=D(require("md5"));We();Fe();var rg=" - ";function q1(e){return e==="added"?` ${T.green("(Added)")}`:e==="removed"?` ${T.yellow("(Removed)")}`:e==="changed"?` ${T.blue("(Changed)")}`:""}function tg(e){if(!e)return"";let t=JSON.parse(e);return(0,ng.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function J1({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 c=e[s],l=tg(n[s]),u=a.displayName&&c.displayName!==a.displayName,p=l&&a.hash&&l!==tg(a.hash),f=u||p;o[s]={component:c,status:f?"changed":"unchanged",previousName:u?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:c})=>{let l=s.displayName,u=c?`${c} \u2192 ${l}`:l;return`${rg}${u}${q1(a)}`}).sort().join(`
79
- `)}function H1({componentsMetadata:e}){return Object.values(e).map(n=>`${rg}${n.displayName}`).sort().join(`
80
- `)}async function og({libraryConfig:e,componentsMetadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(le())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:",c=s?J1({componentsMetadata:t,latestVersion:i,sourceMaps:r}):H1({componentsMetadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await Ge({message:`${a}
77
+ export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function Qm(e,t,n){let r={},o=`${ot}/Client.js`,i=`${ot}/Server.js`;r[o]=Ym([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],Gr.Environment.Client);let s={},a=l=>{let u=w1(l);return s[u]?(s[u]+=1,`${u}${s[u]}`):(s[u]=1,u)};r[i]=Ym([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.ssr??!0).map(([l,u])=>{let p=a(l),f=u.startsWith(ot)?u.replace(`${ot}/`,"./"):u;return{name:p,path:f,exportKey:l,isDefaultExport:!0,type:"component"}})],Gr.Environment.Server);let c={[Gr.Environment.Client]:o,[Gr.Environment.Server]:i};return{entryPointsVolume:Xm.Volume.fromJSON(r),paths:c}}var v1=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 Wh=require("memfs/lib/volume");var oh=D(require("archiver")),Un=require("path");ue();var qr=require("@webflow/data-types");ue();V();var Rt=e=>e.endsWith("/")||/%2F$/i.test(e)?e:`${e}/`;var eh=2;function th(e){let t={type:qr.ModuleLoader.FEDERATION,version:eh,entry:As,renderer:xr,components:e};return{title:kr,content:JSON.stringify(t)}}function nh(e){let t={type:qr.ModuleLoader.SSR,version:eh,entry:_n,components:e};return{title:kr,content:JSON.stringify(t)}}function rh(e){let t=`/${qr.Environment.Client}/${As}`;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===xr||(i[a]={css:[]},s.assets.css.sync.forEach(c=>{i[a].css.push(`${Rt(o)}${c}`)})),i},{})}}catch(n){d.error(n,{prefix:"Failed to extract components metadata from MF manifest:"})}return{}}var pi=require("@webflow/data-types"),k1=/\.css$/i;async function ih(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${pi.Environment.Server}/${Cr}`,a=(0,oh.default)("tar",{gzip:!1}),c=t.createWriteStream(s);a.on("error",p=>(r=!0,i(p))),c.on("close",()=>{if(!r)try{let p={type:"asset",name:Cr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Un.resolve)((0,Un.join)(`/${pi.Environment.Server}`,f.name));t.existsSync(m)&&t.rmSync(m)}),o([p])}catch(p){return i(p)}finally{r=!0}}),a.pipe(c);let{title:l,content:u}=nh(n);a.append(u,{name:l}),e.forEach(p=>{if(!k1.test(p.name))try{let f=(0,Un.resolve)((0,Un.join)(`/${pi.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 sh=require("@webflow/data-types");async function ah(e,t,n){let{title:r,content:o}=th(n);await t.promises.writeFile(`/${sh.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 Ih=require("@rspack/core"),Rh=D(require("fork-ts-checker-webpack-plugin")),Bh=require("ts-checker-rspack-plugin"),jh=D(require("mini-css-extract-plugin")),Lh=require("@webflow/data-types");var ch=require("webpack"),bl=D(require("mini-css-extract-plugin")),uh=D(require("tsconfig-paths-webpack-plugin")),ph=require("tsconfig-paths"),Dl=require("@webflow/data-types"),dh=require("path");ue();var lh=D(require("postcss-selector-parser")),yl=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,lh.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});yl.postcss=!0;yl.postcssPlugin="CSSinShadowDOM";var di=yl;function x1(){return(0,ph.loadConfig)(process.cwd()).resultType==="success"}function fh({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:bl.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[di]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new bl.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:{plugins:[x1()?new uh.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Dl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,dh.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Dl.Environment.Server)return{...s,plugins:[...s.plugins||[],new ch.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:_n,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var mh=require("@module-federation/enhanced"),wl=require("@webflow/data-types");function hh({libraryName:e,env:t,exposes:n}){if(t===wl.Environment.Client)return{plugins:[new mh.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===wl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}function gh(){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 fi(){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 mi=require("@rspack/core"),yh=require("tsconfig-paths"),vl=require("@webflow/data-types"),bh=require("path");ue();function C1(){let e=(0,yh.loadConfig)(process.cwd());if(e.resultType==="success")return e.configFileAbsolutePath}function Dh({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:mi.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:[di]}}}],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 mi.rspack.CssExtractRspackPlugin({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:(()=>{let a=C1();return a?{tsConfig:{configFile:a}}:{}})(),performance:{hints:!1}};if(t===vl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,bh.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===vl.Environment.Server)return{...s,plugins:[...Array.isArray(s.plugins)?s.plugins:[],new mi.rspack.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:_n,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var wh=require("@module-federation/enhanced/rspack"),kl=require("@webflow/data-types");function vh({libraryName:e,env:t,exposes:n}){if(t===kl.Environment.Client)return{plugins:[new wh.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===kl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}var E1=D(require("fs")),kh=require("unionfs"),xh=require("webpack");function F1(e){return{name:e.name,size:e.size,emitted:e.emitted,info:e.info}}function hi(e){let t=e.toJson();return{hasErrors:()=>e.hasErrors(),hasWarnings:()=>e.hasWarnings(),toString:n=>e.toString(n),toJson:()=>({...t,assets:(t.assets??[]).map(F1)})}}async function Ch({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new kh.Union().use(E1));return new Promise((s,a)=>{let c=(0,xh.webpack)(e);c.inputFileSystem=i,n&&(c.outputFileSystem=n),r&&(c.outputPath=r),c.run((l,u)=>{c.close(p=>{l||p?a(l||p):u?u.hasErrors()||o&&u.hasWarnings()?a(new Error(u.toString("errors-warnings"))):s(hi(u)):a(new Error("Webpack stats are undefined"))})})})}var _1=D(require("fs")),xl=D(require("webpack-merge")),Fh=require("memfs"),Eh=require("unionfs"),_h=require("@rspack/core");async function gi({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((a,c)=>(a.use(c),a),new Eh.Union().use(_1)),s=e;return t.length>0&&(s=(0,xl.default)(s,{experiments:{...e.experiments,useInputFileSystem:[/./]}})),n&&(s=(0,xl.default)(s,{output:{clean:!1,...r&&{path:r}}})),new Promise((a,c)=>{let l=(0,_h.rspack)(s);l.inputFileSystem=i,n&&(l.outputFileSystem=(0,Fh.createFsFromVolume)(n)),r&&(l.outputPath=r),l.run((u,p)=>{l.close(f=>{u||f?c(u||f):p?p.hasErrors()||o&&p.hasWarnings()?c(new Error(p.toString("errors-warnings"))):a(hi(p)):c(new Error("Rspack stats are undefined"))})})})}var Th=require("@module-federation/enhanced");var Vn=D(require("webpack-merge"));V();function Bt(e){return e!==null&&typeof e=="object"&&"constructor"in e?e.constructor.name??"":""}function Sh(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function bi(e){let{deduplicatePluginNames:t,ModuleFederationPluginClass:n,getPluginOptions:r,filterOverridePlugins:o}=e;return function(s,a,c){let l=["entry","output","target"],u=S1(s),p=Array.isArray(c)?yi(...c.map(u)):yi(u(c));Object.keys(p).some(L=>l.includes(L))&&d.warn(`Cannot override blocked properties: ${l.join(", ")}`);let m={...Sh(p,[...l,"ModuleFederationPlugin","module","plugins"]),module:Sh(p.module??{},["rules"])},y=(0,Vn.default)(a,m),v=p.plugins??[];o&&(v=v.filter(o));let A=a.plugins??[],z=(0,Vn.mergeWithCustomize)({customizeArray:(0,Vn.unique)("plugins",t,L=>Bt(L))})({plugins:v},{plugins:A}).plugins,C=p?.ModuleFederationPlugin?.shared,O=z?.map(L=>{if(Bt(L)==="ModuleFederationPlugin"){let _=r(L);return new n({..._,...C?{shared:C}:{}})}return L});y.plugins=O;let q=p.module?.rules;if(q&&typeof q=="function"){let L=a.module?.rules??[];y.module={...y.module??{},rules:q(L)}}return y}}function yi(...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,...c}=r;if(t.module={...t.module,...c},a){let l=t.module?.rules;l?t.module.rules=u=>{let p=l(u);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 S1(e){return t=>typeof t=="function"?t(e):t}var T1=bi({deduplicatePluginNames:["ModuleFederationPlugin","MiniCssExtractPlugin"],ModuleFederationPluginClass:Th.ModuleFederationPlugin,getPluginOptions:e=>e._options??{}});function Ah(e,t,n){return T1(e,t,n)}var Oh=require("@module-federation/enhanced/rspack");var A1=bi({deduplicatePluginNames:["ModuleFederationPlugin","CssExtractRspackPlugin"],ModuleFederationPluginClass:Oh.ModuleFederationPlugin,getPluginOptions:e=>e._options??{},filterOverridePlugins:e=>Bt(e)!=="MiniCssExtractPlugin"});function Ph(e,t,n){return A1(e,t,n)}var Cl={[Lh.Framework.React]:{generateWebpackBundlerConfig:gh,generateRspackBundlerConfig:fi}},O1={webpack:{generateBaseConfig:fh,getFrameworkConfig:(e,t)=>Cl[e].generateWebpackBundlerConfig(t),generateFederationConfig:hh,mergeConfigs:(e,t,n)=>Ah(e,t,n),bundle:e=>Ch({...e,config:e.config}),typeCheckerPlugin:Rh.default,hashFunction:"md5",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Bt(t)==="MiniCssExtractPlugin"?new jh.default({filename:"[name].[contenthash].css"}):t)})},rspack:{generateBaseConfig:Dh,getFrameworkConfig:(e,t)=>Cl[e].generateRspackBundlerConfig(t),generateFederationConfig:vh,mergeConfigs:(e,t,n)=>Ph(e,t,n),bundle:e=>gi({...e,config:e.config}),typeCheckerPlugin:Bh.TsCheckerRspackPlugin,hashFunction:"md4",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Bt(t)==="CssExtractRspackPlugin"?new Ih.CssExtractRspackPlugin({filename:"[name].[contenthash].css"}):t)})}},Gn=e=>O1[e],Nh=e=>!!Cl[e];var $h={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 Di(e){let t=e.bundler??"webpack";d.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=Qm(e.renderer,e.componentsFiles,e.componentsOptions),o=Wh.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=Gn(t),a=A=>{let E=P1({env:A,mode:e.dev?"development":"production",framework:e.framework,publicPath:e.publicPath,components:e.componentsFiles,entryPaths:r,libraryName:e.libraryIdentifier,bundler:t}),z=s.mergeConfigs(A,E,i);return e?.debugBundler&&(d.info(`${t} config for env ${A}:`),d.dir(z)),z},c={sourceVolumes:[...e.sourceVolumes,n],outputVolume:o,failOnWarnings:e.failOnWarnings},[l,u]=await Promise.all([s.bundle({...c,config:a(en.Environment.Server),outputPath:`/${en.Environment.Server}`}),s.bundle({...c,config:a(en.Environment.Client),outputPath:`/${en.Environment.Client}`})]);e?.debugBundler&&(d.debug(o.toTree()),d.debug(`Server Bundler Stats: ${l.toString($h)}`),d.debug(`Client Bundler Stats: ${u.toString($h)}`));let p=rh(o);d.debug("Packaging server bundle...");let f=await ih(l.toJson().assets||[],o,p);d.debug("Packaging client bundle...");let m=await ah(u.toJson().assets||[],o,p),y=A=>E=>[E,A];return{outputFiles:[...f.map(y(en.Environment.Server)),...m.map(y(en.Environment.Client))],outputVolume:o}}function P1({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a,bundler:c="webpack"}){if(!Nh(n))throw new Error(`Unknown framework: ${n}`);let l=Object.entries({[xr]:i[e],...o}).reduce((y,[v,A])=>({...y,[`./${v}`]:`./${(0,Mh.relative)(process.cwd(),A)}`}),{}),u=Gn(c),p=u.generateBaseConfig({entry:i[e],env:e,mode:t,libraryName:s,publicPath:r,outputPath:a}),f=u.getFrameworkConfig(n,e),m=u.generateFederationConfig({exposes:l,env:e,libraryName:s});return(0,zh.default)(p,f,m)}var Vh=D(require("path")),Fl=require("memfs/lib/volume"),El=D(require("webpack-merge")),Gh=D(require("webpack-node-externals")),je=require("@webflow/data-types");var I1=D(require("fs")),qn=require("path"),Jn=require("webpack");function R1(e,t=I1){let n=(0,qn.join)(process.cwd(),"node_modules",e);for(;n!==(0,qn.dirname)(n)&&n!=="node_modules";){let r=(0,qn.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,qn.dirname)(n)}return null}var wi=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:Jn.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,c,l]=i.split("."),u=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 v=R1(y,n.inputFileSystem);if(!v)throw new Error(`Could not find package information for ${y}`);v&&p.add(v)}}),o[a]={sources:{...u,[`./${a}.${l}`]:c},dependencies:p},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new Jn.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new Jn.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var Uh=D(require("module"));function Jr(e,t){let n=e.readFileSync(t,"utf-8"),r=new Uh.default(t,module);return r._compile(n,t),r}function B1(e,t){let n=`/${t}.js`,r=Jr(e,n),o=r.exports.default||r.exports;if(o&&typeof o=="object")try{let{name:i,description:s,group:a,props:c,options:l}=(0,je.parseComponentData)(o);return{displayName:i,description:s,group:a,props:Object.entries(c||{}).map(([u,p])=>({...p,name:u,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 j1({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r,bundler:o="webpack"}){let i=new Fl.Volume,s=Gn(o),a=(0,El.default)(s.generateBaseConfig({entry:e,env:je.Environment.Client,publicPath:"/",libraryName:"metadata"}),s.getFrameworkConfig(je.Framework.React,je.Environment.Client),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new s.typeCheckerPlugin]:[]}),c=s.mergeConfigs(je.Environment.Client,a,n);return await s.bundle({outputPath:"/",config:c,sourceVolumes:t?[t]:[],outputVolume:i,failOnWarnings:!1}),i}async function L1({declarations:e,sources:t,overrideConfig:n={},bundler:r}){let o=new Fl.Volume,i=Gn(r),s=(0,El.default)(i.generateBaseConfig({entry:e,env:je.Environment.Client,publicPath:"/",libraryName:"source-maps"}),i.getFrameworkConfig(je.Framework.React,je.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 wi],externals:[(0,Gh.default)()]}),a=i.mergeConfigs(je.Environment.Client,s,n);return a=i.replaceCssPlugin(a),await i.bundle({outputPath:"/",config:a,sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}function N1(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=Vh.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function vi({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1,skipSourceMaps:o=!1,bundler:i="webpack"}){let[s,a]=await Promise.all([j1({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r,bundler:i}),o||i==="rspack"?Promise.resolve(null):L1({declarations:e,sources:t,overrideConfig:n,bundler:i})]),{metadata:c,options:l}=Object.keys(e).reduce((p,f)=>{let m=B1(s,f);return p.metadata[f]=m,p.options[f]=m.options||{},p},{metadata:{},options:{}});return{sourceMaps:a?N1(a):{},metadata:c,options:l}}function qh(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]}]))}qe();var Hh=D(require("md5"));We();Fe();var Zh=" - ";function $1(e){return e==="added"?` ${T.green("(Added)")}`:e==="removed"?` ${T.yellow("(Removed)")}`:e==="changed"?` ${T.blue("(Changed)")}`:""}function Jh(e){if(!e)return"";let t=JSON.parse(e);return(0,Hh.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function M1({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 c=e[s],l=Jh(n[s]),u=a.displayName&&c.displayName!==a.displayName,p=l&&a.hash&&l!==Jh(a.hash),f=u||p;o[s]={component:c,status:f?"changed":"unchanged",previousName:u?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:c})=>{let l=s.displayName,u=c?`${c} \u2192 ${l}`:l;return`${Zh}${u}${$1(a)}`}).sort().join(`
78
+ `)}function z1({componentsMetadata:e}){return Object.values(e).map(n=>`${Zh}${n.displayName}`).sort().join(`
79
+ `)}async function Kh({libraryConfig:e,componentsMetadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(le())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:",c=s?M1({componentsMetadata:t,latestVersion:i,sourceMaps:r}):z1({componentsMetadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await Ge({message:`${a}
81
80
  ${c}
82
81
 
83
- ${l}`})}var vi=require("path"),ag=require("memfs/lib/volume");var ig=D(require("fast-glob")),Z1=e=>{let t=e.split("/");return t[t.length-1]},K1=e=>Z1(e).split(".")[0];async function sg(e,t){return(await ig.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=K1(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 ki(e){let t=await sg(e.components,{cwd:(0,vi.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}=Y1(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function Y1(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,vi.extname)(s),c=`${ot}/${oh}/${i}${a}`;r[i]=c,o[c]=X1(t,s,n)}),{componentsFiles:r,componentsVolume:ag.Volume.fromJSON(o)}}function X1(e,t,n){return n?`
82
+ ${l}`})}var ki=require("path"),Qh=require("memfs/lib/volume");var Yh=D(require("fast-glob")),W1=e=>{let t=e.split("/");return t[t.length-1]},U1=e=>W1(e).split(".")[0];async function Xh(e,t){return(await Yh.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=U1(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 xi(e){let t=await Xh(e.components,{cwd:(0,ki.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}=V1(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function V1(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,ki.extname)(s),c=`${ot}/${Km}/${i}${a}`;r[i]=c,o[c]=G1(t,s,n)}),{componentsFiles:r,componentsVolume:Qh.Volume.fromJSON(o)}}function G1(e,t,n){return n?`
84
83
  import { applyDecorators } from "${e}";
85
84
  import componentDefinition from "${t}";
86
85
  const globals = require("${n}") || {};
@@ -102,57 +101,57 @@ export default decoratedDefinition;
102
101
  `.trim():`
103
102
  import componentDefinition from "${t}";
104
103
  export default {...componentDefinition};
105
- `.trim()}ut();var lg=require("@webflow/data-types"),xi={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:lg.Framework.React};var Jn=require("path"),Hn=require("fs");We();qe();V();De();function mt(e){return e.replace(/\\/g,"/")}Fe();ce();function cg(e){let t={...e};if(e.globals){let n=(0,Jn.resolve)(process.cwd(),e.globals);if(!(0,Hn.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
104
+ `.trim()}ut();var eg=require("@webflow/data-types"),Ci={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:eg.Framework.React};var Hn=require("path"),Zn=require("fs");We();qe();V();De();function mt(e){return e.replace(/\\/g,"/")}Fe();se();function tg(e){let t={...e};if(e.globals){let n=(0,Hn.resolve)(process.cwd(),e.globals);if(!(0,Zn.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
106
105
  Resolved path: ${n}
107
- Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=mt(n)}if(e.bundleConfig){let n=(0,Jn.resolve)(process.cwd(),e.bundleConfig);if(!(0,Hn.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
106
+ Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=mt(n)}if(e.bundleConfig){let n=(0,Hn.resolve)(process.cwd(),e.bundleConfig);if(!(0,Zn.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
108
107
  Resolved path: ${n}
109
- 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,Jn.resolve)(process.cwd(),e.renderer);(0,Hn.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,Jn.resolve)(process.cwd(),e.renderer.client);(0,Hn.existsSync)(n)&&(t.renderer={...t.renderer,client:mt(n)})}if(typeof e.renderer.server=="string"){let n=(0,Jn.resolve)(process.cwd(),e.renderer.server);(0,Hn.existsSync)(n)&&(t.renderer={...t.renderer,server:mt(n)})}}return t}async function Q1({initialData:e}){let t=await Pe({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 w("When --no-input mode is enabled please provide a name in your library manifest");let n=await Pe({message:"Enter a description for your code library",default:e?.description??""});if(!await Ge({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 eF({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+=` ${T.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function Al({initialData:e,existingCodeLibraries:t}){let n,r={components:xi.components},o=t.length>0?await eF({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await Q1({initialData:e});n={...r,...e,...a}}let i=cg(n);fe({library:i});let{path:s}=Wt();return{libraryManifest:i,manifestPath:s}}async function ug({existingCodeLibraries:e}){let t=d.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=X(),o=br(n,"library");if(!o.id){if(vt())return t.succeed(),Al({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&&vt())return t.succeed(),Al({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=cg({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if(n instanceof zt&&vt())return t.info(n.message),Al({existingCodeLibraries:e});throw t.fail(),n}}var Ol=require("memfs/lib/volume"),fg=D(require("webpack-merge"));var mg="/client-renderer.js",hg="/server-renderer.js",pg=`${ot}/test-renderers${mg}`,dg=`${ot}/test-renderers${hg}`,tF=new Set(["@webflow/react"]),nF=new Set(["@webflow/react","@webflow/emotion-utils/server","@webflow/styled-components-utils/server"]);async function gg(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");if(tF.has(e.client)&&nF.has(e.server))return;let t=await iF(e);rF(e.client,t),oF(e.server,t)}function rF(e,t){let n=qr(t,mg);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 oF(e,t){let n=qr(t,hg);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 iF(e){let t=new Ol.Volume,n=mt(e.client),r=mt(e.server),o={[pg]:`
108
+ 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,Hn.resolve)(process.cwd(),e.renderer);(0,Zn.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,Hn.resolve)(process.cwd(),e.renderer.client);(0,Zn.existsSync)(n)&&(t.renderer={...t.renderer,client:mt(n)})}if(typeof e.renderer.server=="string"){let n=(0,Hn.resolve)(process.cwd(),e.renderer.server);(0,Zn.existsSync)(n)&&(t.renderer={...t.renderer,server:mt(n)})}}return t}async function q1({initialData:e}){let t=await Pe({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 w("When --no-input mode is enabled please provide a name in your library manifest");let n=await Pe({message:"Enter a description for your code library",default:e?.description??""});if(!await Ge({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 J1({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+=` ${T.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function _l({initialData:e,existingCodeLibraries:t}){let n,r={components:Ci.components},o=t.length>0?await J1({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await q1({initialData:e});n={...r,...e,...a}}let i=tg(n);fe({library:i});let{path:s}=Ut();return{libraryManifest:i,manifestPath:s}}async function ng({existingCodeLibraries:e}){let t=d.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=X(),o=Dr(n,"library");if(!o.id){if(vt())return t.succeed(),_l({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&&vt())return t.succeed(),_l({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=tg({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if(n instanceof Wt&&vt())return t.info(n.message),_l({existingCodeLibraries:e});throw t.fail(),n}}var Sl=require("memfs/lib/volume"),ig=D(require("webpack-merge"));var sg="/client-renderer.js",ag="/server-renderer.js",rg=`${ot}/test-renderers${sg}`,og=`${ot}/test-renderers${ag}`,H1=new Set(["@webflow/react"]),Z1=new Set(["@webflow/react","@webflow/emotion-utils/server","@webflow/styled-components-utils/server"]);async function lg(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");if(H1.has(e.client)&&Z1.has(e.server))return;let t=await X1(e);K1(e.client,t),Y1(e.server,t)}function K1(e,t){let n=Jr(t,sg);if(typeof n.exports.ClientRenderer!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'ClientRenderer' export.`);if(typeof n.exports.applyDecorators!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'applyDecorators' export.`);let r=()=>null,o=n.exports.ClientRenderer(r),i=["mount","hydrate","render","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid client renderer: ${e} ClientRenderer must return an object with a '${s}' function.`)}function Y1(e,t){let n=Jr(t,ag);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 X1(e){let t=new Sl.Volume,n=mt(e.client),r=mt(e.server),o={[rg]:`
110
109
  export * from "${n}";
111
- `,[dg]:`
110
+ `,[og]:`
112
111
  export * from "${r}";
113
- `},i=(0,fg.default)(di(),{entry:{"client-renderer":pg,"server-renderer":dg},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await hi({config:i,sourceVolumes:[Ol.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function Ci({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await ug({existingCodeLibraries:e}),{renderer:r,...o}=xi,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 gg(i),{...o,...t,renderer:i,manifestPath:n}}ce();async function sF(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await ki(r);d.debug(`Components: ${JSON.stringify(o,null,2)}`);let{sourceMaps:s,metadata:a,options:c}=await wi({declarations:o,sources:i,overrideConfig:e.overrideConfig,performTypeCheck:ci(o,t),bundler:t?.bundler});return d.debug(`Metadata: ${JSON.stringify(a,null,2)}`),d.debug(`Source Maps:
112
+ `},i=(0,ig.default)(fi(),{entry:{"client-renderer":rg,"server-renderer":og},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await gi({config:i,sourceVolumes:[Sl.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function Fi({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await ng({existingCodeLibraries:e}),{renderer:r,...o}=Ci,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 lg(i),{...o,...t,renderer:i,manifestPath:n}}se();async function Q1(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await xi(r);d.debug(`Components: ${JSON.stringify(o,null,2)}`);let{sourceMaps:s,metadata:a,options:c}=await vi({declarations:o,sources:i,overrideConfig:e.overrideConfig,performTypeCheck:ui(o,t),bundler:t?.bundler});return d.debug(`Metadata: ${JSON.stringify(a,null,2)}`),d.debug(`Source Maps:
114
113
 
115
114
  ${Object.entries(s).reduce((l,[u,p])=>(l+=`${u}: ${JSON.stringify(JSON.parse(p),null,2)}
116
115
 
117
- `,l),"")}`),{componentsFiles:o,componentsVolume:i,componentsMetadata:a,componentsOptions:c,sourceMaps:s}})}async function aF(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:c}=e;return await a("generate_library_bundle",async()=>await bi({libraryIdentifier:`_${o}`,renderer:c.renderer,framework:c.framework,publicPath:It(i[Zn.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 lF(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([c,l])=>{let u=(0,Fi.resolve)((0,Fi.join)(`/${l}`,`${c.name}`));return Ur(n.readFileSync(u,"utf8").toString(),u,{bundleEnvironment:l})}),{signatures:a}=await bl({resourceId:r,files:s.map(({meta:c})=>c),options:i});await Promise.all(a.map(async c=>{let l=s.find(u=>u.meta.fileHash===c.hash);if(!l)throw new Error(`File not found: ${c.hash}`);await hl(l,c.value)}))})}async function cF(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let c={clientModule:{bundleUrl:It(o[Zn.Environment.Client])+vr,loaderType:Zn.ModuleLoader.FEDERATION},serverModule:{bundleUrl:It(o[Zn.Environment.Server])+xr}},l=eg(t,{framework:s.framework,sourceMaps:n}),{taskId:u}=await Dl({resourceId:r,codeModule:c,components:Object.values(l),options:a});d.debug(JSON.stringify({taskId:u},null,2))})}async function Pl(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;try{r=await me({apiToken:e?.apiToken})}catch(s){throw d.error(s),s}d.debug("Initializing telemetry service...");let o=Q.forCodeLibraries({authToken:r}),i=gu(o);try{d.debug("Checking dependencies versions..."),new Gt().run();let s={apiToken:r};t=d.spinner("Initializing");let a=await i("get_code_libraries",async()=>await gl({options:s})),{workspace:c,libraries:l}=a;t.succeed(),d.debug("Parsing library config...");let u=await Ci({existingCodeLibraries:l}),p=u.bundleConfig?require(u.bundleConfig):{},f={trackPerformance:i,apiOptions:s,libraryConfig:u,overrideConfig:p};t=d.spinner("Collecting metadata");let{componentsFiles:m,componentsVolume:y,componentsMetadata:v,componentsOptions:A,sourceMaps:E}=await sF(f,e);if(t.succeed(),!await og({libraryConfig:u,componentsMetadata:v,existingCodeLibraries:l,sourceMaps:E,workspaceInfo:c}))return;t=d.spinner("Creating code library");let{resourceId:C,profileSlug:O,workspace:q,s3Urls:L,cdnUrls:_}=await i("init_code_library",async()=>await yl({name:u.name,slug:u.id,description:u.description,options:s}));t.succeed(),d.debug(JSON.stringify({resourceId:C,profileSlug:O,s3Urls:L,cdnUrls:_},null,2)),await o.sendUsage("library_initialized",{libraryName:u.name,framework:u.framework,resourceId:C,profileSlug:O}),u.id||fe({library:{id:O}}),t=d.spinner("Compiling code components");let{outputFiles:h,outputVolume:g}=await aF(f,m,y,A,C,_,e);t.succeed(),await o.sendUsage("bundle_generated",{libraryName:u.name,componentCount:Object.keys(m).length,resourceId:C,profileSlug:O}),t=d.spinner("Uploading files"),await lF(f,h,g,C),t.succeed(),await o.sendUsage("files_uploaded",{libraryName:u.name,fileCount:h.length,resourceId:C,profileSlug:O}),t=d.spinner("Sharing library"),await cF(f,v,E,C,_),t.succeed(),d.success(`Code library shared successfully${q?.slug?`: ${Fn}/dashboard/workspace/${q?.slug}/shared-libraries-and-templates`:"!"}`);let j=Date.now()-n;await o.sendUsage("share_library",{duration:j,componentCount:Object.keys(m).length,libraryName:u.name,framework:u.framework,resourceId:C,profileSlug:O})}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 w(s)}}var Ei=D(require("fs")),Kn=require("path");V();ce();function uF(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}var pF="dist",dF="http://localhost/";async function Il(e){e.verbose&&(process.env.DEBUG="true");let t;try{d.debug("Checking dependencies versions..."),new Gt().run(),d.debug("Looking for manifest...");let n=await Ci({existingCodeLibraries:[]}),r=`_${e.libraryId||uF(n.name)}`;e?.debugBundler&&d.debug(`Library Config: ${JSON.stringify(n,null,2)}`),t=d.spinner("Collecting metadata");let{componentsFiles:o,componentsVolume:i}=await ki(n);e?.debugBundler&&d.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:a,metadata:c,options:l}=await wi({declarations:o,sources:i,overrideConfig:s,performTypeCheck:ci(o,e),skipSourceMaps:!e?.debugBundler,bundler:e.bundler});e?.debugBundler&&(d.debug(`Metadata: ${JSON.stringify(c,null,2)}`),d.debug(`Source Maps:
116
+ `,l),"")}`),{componentsFiles:o,componentsVolume:i,componentsMetadata:a,componentsOptions:c,sourceMaps:s}})}async function eF(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:c}=e;return await a("generate_library_bundle",async()=>await Di({libraryIdentifier:`_${o}`,renderer:c.renderer,framework:c.framework,publicPath:Rt(i[Kn.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 tF(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([c,l])=>{let u=(0,Ei.resolve)((0,Ei.join)(`/${l}`,`${c.name}`));return Vr(n.readFileSync(u,"utf8").toString(),u,{bundleEnvironment:l})}),{signatures:a}=await hl({resourceId:r,files:s.map(({meta:c})=>c),options:i});await Promise.all(a.map(async c=>{let l=s.find(u=>u.meta.fileHash===c.hash);if(!l)throw new Error(`File not found: ${c.hash}`);await dl(l,c.value)}))})}async function nF(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let c={clientModule:{bundleUrl:Rt(o[Kn.Environment.Client])+kr,loaderType:Kn.ModuleLoader.FEDERATION},serverModule:{bundleUrl:Rt(o[Kn.Environment.Server])+Cr}},l=qh(t,{framework:s.framework,sourceMaps:n}),{taskId:u}=await gl({resourceId:r,codeModule:c,components:Object.values(l),options:a});d.debug(JSON.stringify({taskId:u},null,2))})}async function Tl(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;try{r=await me({apiToken:e?.apiToken})}catch(s){throw d.error(s),s}d.debug("Initializing telemetry service...");let o=Q.forCodeLibraries({authToken:r}),i=fu(o);try{d.debug("Checking dependencies versions..."),new qt().run();let s={apiToken:r};t=d.spinner("Initializing");let a=await i("get_code_libraries",async()=>await fl({options:s})),{workspace:c,libraries:l}=a;t.succeed(),d.debug("Parsing library config...");let u=await Fi({existingCodeLibraries:l}),p=u.bundleConfig?require(u.bundleConfig):{},f={trackPerformance:i,apiOptions:s,libraryConfig:u,overrideConfig:p};t=d.spinner("Collecting metadata");let{componentsFiles:m,componentsVolume:y,componentsMetadata:v,componentsOptions:A,sourceMaps:E}=await Q1(f,e);if(t.succeed(),!await Kh({libraryConfig:u,componentsMetadata:v,existingCodeLibraries:l,sourceMaps:E,workspaceInfo:c}))return;t=d.spinner("Creating code library");let{resourceId:C,profileSlug:O,workspace:q,s3Urls:L,cdnUrls:_}=await i("init_code_library",async()=>await ml({name:u.name,slug:u.id,description:u.description,options:s}));t.succeed(),d.debug(JSON.stringify({resourceId:C,profileSlug:O,s3Urls:L,cdnUrls:_},null,2)),await o.sendUsage("library_initialized",{libraryName:u.name,framework:u.framework,resourceId:C,profileSlug:O}),u.id||fe({library:{id:O}}),t=d.spinner("Compiling code components");let{outputFiles:h,outputVolume:g}=await eF(f,m,y,A,C,_,e);t.succeed(),await o.sendUsage("bundle_generated",{libraryName:u.name,componentCount:Object.keys(m).length,resourceId:C,profileSlug:O}),t=d.spinner("Uploading files"),await tF(f,h,g,C),t.succeed(),await o.sendUsage("files_uploaded",{libraryName:u.name,fileCount:h.length,resourceId:C,profileSlug:O}),t=d.spinner("Sharing library"),await nF(f,v,E,C,_),t.succeed(),d.success(`Code library shared successfully${q?.slug?`: ${En}/dashboard/workspace/${q?.slug}/shared-libraries-and-templates`:"!"}`);let B=Date.now()-n;await o.sendUsage("share_library",{duration:B,componentCount:Object.keys(m).length,libraryName:u.name,framework:u.framework,resourceId:C,profileSlug:O})}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 w(s)}}var _i=D(require("fs")),Yn=require("path");V();se();function rF(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}var oF="dist",iF="http://localhost/";async function Al(e){e.verbose&&(process.env.DEBUG="true");let t;try{d.debug("Checking dependencies versions..."),new qt().run(),d.debug("Looking for manifest...");let n=await Fi({existingCodeLibraries:[]}),r=`_${e.libraryId||rF(n.name)}`;e?.debugBundler&&d.debug(`Library Config: ${JSON.stringify(n,null,2)}`),t=d.spinner("Collecting metadata");let{componentsFiles:o,componentsVolume:i}=await xi(n);e?.debugBundler&&d.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:a,metadata:c,options:l}=await vi({declarations:o,sources:i,overrideConfig:s,performTypeCheck:ui(o,e),skipSourceMaps:!e?.debugBundler,bundler:e.bundler});e?.debugBundler&&(d.debug(`Metadata: ${JSON.stringify(c,null,2)}`),d.debug(`Source Maps:
118
117
 
119
118
  ${Object.entries(a).reduce((f,[m,y])=>(f+=`${m}: ${JSON.stringify(JSON.parse(y),null,2)}
120
119
 
121
- `,f),"")}`)),t.succeed(),t=d.spinner("Generating library bundle");let{outputFiles:u,outputVolume:p}=await bi({libraryIdentifier:r,renderer:n.renderer,framework:n.framework,publicPath:It(e.publicPath||dF),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"),u.forEach(([f,m])=>{let y=(0,Kn.join)(`/${m}`,`${f.name}`),v=Ur(p.readFileSync(y,"utf8").toString(),y,{bundleEnvironment:m}),A=(0,Kn.join)(process.cwd(),e.outputPath||pF);Ei.default.existsSync((0,Kn.join)(A,`${m}`))||Ei.default.mkdirSync((0,Kn.join)(A,`${m}`),{recursive:!0}),Ei.default.writeFileSync((0,Kn.join)(A,m,f.name),v.value.toString())}),t.succeed(),d.success("Code Library bundled successfully!")}catch(n){throw t?.fail(),new w(n)}}var Jr=D(require("fs-extra")),Rl=D(require("path"));V();Ve();function fF(){try{if(!Jr.default.existsSync(Ee))return null;let e=Jr.default.readdirSync(Ee).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Rl.default.join(Ee,t),time:Jr.default.statSync(Rl.default.join(Ee,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=Jr.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 jl(){let e=fF();e&&console.info(`${Cn} Latest log: ${e}`),console.info(`${Cn} All logs: ${Ee}`)}async function yg(e){e.command("log").description("Display the logs directory and path to the latest log file, if available.").action(jl)}var mF="Share a library of Code Components to your Webflow Workspace.";function bg(){return new Yn.Option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors.")}function Dg(){return new Yn.Option("--debug-bundler","Display final bundler configurations for debugging purposes.")}function wg(){return new Yn.Option("--dev","Bundle in development mode for debugging purposes.")}function vg(){return new Yn.Option("--bundler <engine>","Bundler to use: webpack or rspack (experimental). Default: webpack").choices(["webpack","rspack"]).default("webpack").hideHelp()}function Bl(e,t){return e.command(t).description(mF).option("--api-token <token>","API token. Default: value set in WEBFLOW_API_TOKEN env variable.").addOption(bg()).addOption(Dg()).addOption(wg()).addOption(vg()).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Pl(i)})}var kg=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.");Bl(t,"share"),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").addOption(new Yn.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(vg()).addOption(bg()).addOption(Dg()).addOption(wg()).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Il(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(jl)};var xg=e=>{let t=e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.");t.command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","API token. Default: value set in WEBFLOW_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(fl),Bl(t,"import")};var Se=D(require("fs")),ve=D(require("path"));V();ut();var _i="astro",Ll="cloud-scaffolds";var Cg="package.json",Fg="webflow.json",Eg="wf-placeholder-name",_g="CLOUD_MOUNT_PATH",Sg="gitignore";var Nl=async(e,t,n=_i,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let c=ve.join(e,a.split(ve.join(Ll,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),u=a.includes("astro.config.mjs"),p=l||u;if(a.includes(Cg)||a.includes(Fg)){let m=(await Se.promises.readFile(a,"utf8")).replace(Eg,e);await Si(c,m)}else if(p){let f=await Se.promises.readFile(a,"utf8");await Si(c,f.replace(_g,t))}else if(ve.basename(c).toLowerCase()===Sg){let f=await Se.promises.readFile(a,"utf8"),m=ve.join(ve.dirname(c),".gitignore");await Si(m,f)}else{let f=await Se.promises.readFile(a);await Si(c,f)}}catch(c){d.error(`Error processing file ${a}: ${c}`)}if(o&&i)try{wo({siteId:o,apiToken:i,directory:e})}catch(a){d.error(`Error creating .env file: ${a}`)}}catch(s){throw d.error(`Error applying scaffold: ${s}`),s}},$l=async()=>{try{let e={},t=ve.join(ve.resolve(__dirname),Ll);if(!Se.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await Se.promises.readdir(t);for(let r of n)try{let o=ve.join(t,r);e[r]=await Tg(o)}catch(o){d.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw d.error(`Error getting available scaffolds: ${e}`),e}},Tg=async e=>{let t=[];try{if(!Se.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await Se.promises.readdir(e);for(let r of n)try{let o=ve.join(e,r);(await Se.promises.stat(o)).isDirectory()?t.push(...await Tg(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},Si=async(e,t)=>{try{await Se.promises.mkdir(ve.dirname(e),{recursive:!0}),await Se.promises.writeFile(e,t)}catch(n){throw d.error(`Error writing file ${e}: ${n}`),n}};ut();Qe();var jt=D(require("fs")),Ml=D(require("path"));V();var Ti={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"}},Ai=["nextjs","astro","remix"];async function Ag(e=process.cwd()){let t=Ml.join(e,"package.json"),n=Ml.join(e,"webflow.json");if(!jt.existsSync(t))throw new Error("No package.json file found");let r=null;if(jt.existsSync(n))try{let i=JSON.parse(jt.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!Ti[i]){let s=Object.keys(Ti).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!Ai.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${Ai.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(jt.readFileSync(t,"utf8"));for(let s of Ai){let c=Ti[s].package_identifier;if(o.dependencies?.[c]||o.devDependencies?.[c]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${Ai.join(", ")} are currently supported.`);d.info(`Detected framework: ${r}`),jt.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:Ti[r]}}var I=D(require("fs")),$=D(require("path")),lr=require("child_process"),Qg=D(require("tar"));var ae=D(require("fs")),Ce=D(require("path"));var K={};oc(K,{BRAND:()=>MF,DIRTY:()=>en,EMPTY_PATH:()=>bF,INVALID:()=>B,NEVER:()=>CE,OK:()=>be,ParseStatus:()=>ge,Schema:()=>U,ZodAny:()=>Nt,ZodArray:()=>bt,ZodBigInt:()=>nn,ZodBoolean:()=>rn,ZodBranded:()=>Zr,ZodCatch:()=>hn,ZodDate:()=>on,ZodDefault:()=>mn,ZodDiscriminatedUnion:()=>Ii,ZodEffects:()=>$e,ZodEnum:()=>dn,ZodError:()=>ke,ZodFirstPartyTypeKind:()=>N,ZodFunction:()=>ji,ZodIntersection:()=>cn,ZodIssueCode:()=>b,ZodLazy:()=>un,ZodLiteral:()=>pn,ZodMap:()=>rr,ZodNaN:()=>ir,ZodNativeEnum:()=>fn,ZodNever:()=>Ye,ZodNull:()=>an,ZodNullable:()=>at,ZodNumber:()=>tn,ZodObject:()=>xe,ZodOptional:()=>Le,ZodParsedType:()=>F,ZodPipeline:()=>Kr,ZodPromise:()=>$t,ZodReadonly:()=>gn,ZodRecord:()=>Ri,ZodSchema:()=>U,ZodSet:()=>or,ZodString:()=>Lt,ZodSymbol:()=>tr,ZodTransformer:()=>$e,ZodTuple:()=>st,ZodType:()=>U,ZodUndefined:()=>sn,ZodUnion:()=>ln,ZodUnknown:()=>yt,ZodVoid:()=>nr,addIssueToContext:()=>k,any:()=>ZF,array:()=>QF,bigint:()=>VF,boolean:()=>zg,coerce:()=>xE,custom:()=>Ng,date:()=>GF,datetimeRegex:()=>Bg,defaultErrorMap:()=>ht,discriminatedUnion:()=>rE,effect:()=>hE,enum:()=>dE,function:()=>cE,getErrorMap:()=>Xn,getParsedType:()=>it,instanceof:()=>WF,intersection:()=>oE,isAborted:()=>Oi,isAsync:()=>Qn,isDirty:()=>Pi,isValid:()=>Bt,late:()=>zF,lazy:()=>uE,literal:()=>pE,makeIssue:()=>Hr,map:()=>aE,nan:()=>UF,nativeEnum:()=>fE,never:()=>YF,null:()=>HF,nullable:()=>yE,number:()=>Mg,object:()=>eE,objectUtil:()=>zl,oboolean:()=>kE,onumber:()=>vE,optional:()=>gE,ostring:()=>wE,pipeline:()=>DE,preprocess:()=>bE,promise:()=>mE,quotelessJson:()=>hF,record:()=>sE,set:()=>lE,setErrorMap:()=>yF,strictObject:()=>tE,string:()=>$g,symbol:()=>qF,transformer:()=>hE,tuple:()=>iE,undefined:()=>JF,union:()=>nE,unknown:()=>KF,util:()=>G,void:()=>XF});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 zl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zl||(zl={}));var F=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 F.undefined;case"string":return F.string;case"number":return Number.isNaN(e)?F.nan:F.number;case"boolean":return F.boolean;case"function":return F.function;case"bigint":return F.bigint;case"symbol":return F.symbol;case"object":return Array.isArray(e)?F.array:e===null?F.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?F.promise:typeof Map<"u"&&e instanceof Map?F.map:typeof Set<"u"&&e instanceof Set?F.set:typeof Date<"u"&&e instanceof Date?F.date:F.object;default:return F.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"]),hF=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ke=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,c=0;for(;c<s.path.length;){let l=s.path[c];c===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(s))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};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()}};ke.create=e=>new ke(e);var gF=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===F.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}},ht=gF;var Og=ht;function yF(e){Og=e}function Xn(){return Og}var Hr=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="",c=r.filter(l=>!!l).slice().reverse();for(let l of c)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},bF=[];function k(e,t){let n=Xn(),r=Hr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ht?void 0:ht].filter(o=>!!o)});e.common.issues.push(r)}var ge=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 B;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 B;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}}},B=Object.freeze({status:"aborted"}),en=e=>({status:"dirty",value:e}),be=e=>({status:"valid",value:e}),Oi=e=>e.status==="aborted",Pi=e=>e.status==="dirty",Bt=e=>e.status==="valid",Qn=e=>typeof Promise<"u"&&e instanceof Promise;var P;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(P||(P={}));var Ne=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}},Pg=(e,t)=>{if(Bt(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 ke(e.common.issues);return this._error=n,this._error}}};function W(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:c}=e;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:c??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 ge,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(Qn(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 Pg(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 Bt(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=>Bt(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(Qn(o)?o:Promise.resolve(o));return Pg(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(c=>c?!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 $e({schema:this,typeName:N.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 Le.create(this,this._def)}nullable(){return at.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bt.create(this)}promise(){return $t.create(this,this._def)}or(t){return ln.create([this,t],this._def)}and(t){return cn.create(this,t,this._def)}transform(t){return new $e({...W(this._def),schema:this,typeName:N.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new mn({...W(this._def),innerType:this,defaultValue:n,typeName:N.ZodDefault})}brand(){return new Zr({typeName:N.ZodBranded,type:this,...W(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new hn({...W(this._def),innerType:this,catchValue:n,typeName:N.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Kr.create(this,t)}readonly(){return gn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},DF=/^c[^\s-]{8,}$/i,wF=/^[0-9a-z]+$/,vF=/^[0-9A-HJKMNP-TV-Z]{26}$/i,kF=/^[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,xF=/^[a-z0-9_-]{21}$/i,CF=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,FF=/^[-+]?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)?)??$/,EF=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_F="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Wl,SF=/^(?:(?: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])$/,TF=/^(?:(?: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])$/,AF=/^(([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]))$/,OF=/^(([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])$/,PF=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,IF=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Rg="((\\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])))",RF=new RegExp(`^${Rg}$`);function jg(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 jF(e){return new RegExp(`^${jg(e)}$`)}function Bg(e){let t=`${Rg}T${jg(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 BF(e,t){return!!((t==="v4"||!t)&&SF.test(e)||(t==="v6"||!t)&&AF.test(e))}function LF(e,t){if(!CF.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 NF(e,t){return!!((t==="v4"||!t)&&TF.test(e)||(t==="v6"||!t)&&OF.test(e))}var Lt=class e extends U{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==F.string){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_type,expected:F.string,received:i.parsedType}),B}let r=new ge,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),k(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),k(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?k(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&k(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")EF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Wl||(Wl=new RegExp(_F,"u")),Wl.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")kF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")xF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")DF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")wF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")vF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(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),k(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),k(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),k(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),k(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),k(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Bg(i).test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?RF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?jF(i).test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?FF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?BF(t.data,i.version)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?LF(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?NF(t.data,i.version)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?PF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?IF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(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,...P.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...P.errToObj(t)})}url(t){return this._addCheck({kind:"url",...P.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...P.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...P.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...P.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...P.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...P.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...P.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...P.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...P.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...P.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...P.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...P.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,...P.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,...P.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...P.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...P.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...P.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...P.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...P.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...P.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...P.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...P.errToObj(n)})}nonempty(t){return this.min(1,P.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}};Lt.create=e=>new Lt({checks:[],typeName:N.ZodString,coerce:e?.coerce??!1,...W(e)});function $F(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 tn=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)!==F.number){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_type,expected:F.number,received:i.parsedType}),B}let r,o=new ge;for(let i of this._def.checks)i.kind==="int"?G.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),k(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),k(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),k(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?$F(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),k(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),k(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,P.toString(n))}gt(t,n){return this.setLimit("min",t,!1,P.toString(n))}lte(t,n){return this.setLimit("max",t,!0,P.toString(n))}lt(t,n){return this.setLimit("max",t,!1,P.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:P.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:P.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:P.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:P.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:P.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:P.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:P.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:P.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:P.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)}};tn.create=e=>new tn({checks:[],typeName:N.ZodNumber,coerce:e?.coerce||!1,...W(e)});var nn=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)!==F.bigint)return this._getInvalidInput(t);let r,o=new ge;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),k(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),k(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),k(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 k(n,{code:b.invalid_type,expected:F.bigint,received:n.parsedType}),B}gte(t,n){return this.setLimit("min",t,!0,P.toString(n))}gt(t,n){return this.setLimit("min",t,!1,P.toString(n))}lte(t,n){return this.setLimit("max",t,!0,P.toString(n))}lt(t,n){return this.setLimit("max",t,!1,P.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.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:P.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:P.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:P.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:P.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:P.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}};nn.create=e=>new nn({checks:[],typeName:N.ZodBigInt,coerce:e?.coerce??!1,...W(e)});var rn=class extends U{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==F.boolean){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.boolean,received:r.parsedType}),B}return be(t.data)}};rn.create=e=>new rn({typeName:N.ZodBoolean,coerce:e?.coerce||!1,...W(e)});var on=class e extends U{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==F.date){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_type,expected:F.date,received:i.parsedType}),B}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_date}),B}let r=new ge,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),k(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),k(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:P.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:P.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}};on.create=e=>new on({checks:[],coerce:e?.coerce||!1,typeName:N.ZodDate,...W(e)});var tr=class extends U{_parse(t){if(this._getType(t)!==F.symbol){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.symbol,received:r.parsedType}),B}return be(t.data)}};tr.create=e=>new tr({typeName:N.ZodSymbol,...W(e)});var sn=class extends U{_parse(t){if(this._getType(t)!==F.undefined){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.undefined,received:r.parsedType}),B}return be(t.data)}};sn.create=e=>new sn({typeName:N.ZodUndefined,...W(e)});var an=class extends U{_parse(t){if(this._getType(t)!==F.null){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.null,received:r.parsedType}),B}return be(t.data)}};an.create=e=>new an({typeName:N.ZodNull,...W(e)});var Nt=class extends U{constructor(){super(...arguments),this._any=!0}_parse(t){return be(t.data)}};Nt.create=e=>new Nt({typeName:N.ZodAny,...W(e)});var yt=class extends U{constructor(){super(...arguments),this._unknown=!0}_parse(t){return be(t.data)}};yt.create=e=>new yt({typeName:N.ZodUnknown,...W(e)});var Ye=class extends U{_parse(t){let n=this._getOrReturnCtx(t);return k(n,{code:b.invalid_type,expected:F.never,received:n.parsedType}),B}};Ye.create=e=>new Ye({typeName:N.ZodNever,...W(e)});var nr=class extends U{_parse(t){if(this._getType(t)!==F.undefined){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.void,received:r.parsedType}),B}return be(t.data)}};nr.create=e=>new nr({typeName:N.ZodVoid,...W(e)});var bt=class e extends U{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==F.array)return k(n,{code:b.invalid_type,expected:F.array,received:n.parsedType}),B;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(k(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&&(k(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&&(k(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 Ne(n,s,n.path,a)))).then(s=>ge.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Ne(n,s,n.path,a)));return ge.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:P.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:P.toString(n)}})}nonempty(t){return this.min(1,t)}};bt.create=(e,t)=>new bt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:N.ZodArray,...W(t)});function er(e){if(e instanceof xe){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Le.create(er(r))}return new xe({...e._def,shape:()=>t})}else return e instanceof bt?new bt({...e._def,type:er(e.element)}):e instanceof Le?Le.create(er(e.unwrap())):e instanceof at?at.create(er(e.unwrap())):e instanceof st?st.create(e.items.map(t=>er(t))):e}var xe=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)!==F.object){let l=this._getOrReturnCtx(t);return k(l,{code:b.invalid_type,expected:F.object,received:l.parsedType}),B}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ye&&this._def.unknownKeys==="strip"))for(let l in o.data)s.includes(l)||a.push(l);let c=[];for(let l of s){let u=i[l],p=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Ne(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Ye){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(l==="strict")a.length>0&&(k(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 u of a){let p=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Ne(o,p,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let p=await u.key,f=await u.value;l.push({key:p,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>ge.mergeObjectSync(r,l)):ge.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return P.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:P.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:N.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 er(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 Le;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return Lg(G.objectKeys(this.shape))}};xe.create=(e,t)=>new xe({shape:()=>e,unknownKeys:"strip",catchall:Ye.create(),typeName:N.ZodObject,...W(t)});xe.strictCreate=(e,t)=>new xe({shape:()=>e,unknownKeys:"strict",catchall:Ye.create(),typeName:N.ZodObject,...W(t)});xe.lazycreate=(e,t)=>new xe({shape:e,unknownKeys:"strip",catchall:Ye.create(),typeName:N.ZodObject,...W(t)});var ln=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 ke(a.ctx.common.issues));return k(n,{code:b.invalid_union,unionErrors:s}),B}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 c of r){let l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,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(c=>new ke(c));return k(n,{code:b.invalid_union,unionErrors:a}),B}}get options(){return this._def.options}};ln.create=(e,t)=>new ln({options:e,typeName:N.ZodUnion,...W(t)});var gt=e=>e instanceof un?gt(e.schema):e instanceof $e?gt(e.innerType()):e instanceof pn?[e.value]:e instanceof dn?e.options:e instanceof fn?G.objectValues(e.enum):e instanceof mn?gt(e._def.innerType):e instanceof sn?[void 0]:e instanceof an?[null]:e instanceof Le?[void 0,...gt(e.unwrap())]:e instanceof at?[null,...gt(e.unwrap())]:e instanceof Zr||e instanceof gn?gt(e.unwrap()):e instanceof hn?gt(e._def.innerType):[],Ii=class e extends U{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.object)return k(n,{code:b.invalid_type,expected:F.object,received:n.parsedType}),B;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}):(k(n,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),B)}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=gt(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:N.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...W(r)})}};function Ul(e,t){let n=it(e),r=it(t);if(e===t)return{valid:!0,data:e};if(n===F.object&&r===F.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 c=Ul(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(n===F.array&&r===F.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],c=Ul(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return n===F.date&&r===F.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var cn=class extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(Oi(i)||Oi(s))return B;let a=Ul(i.value,s.value);return a.valid?((Pi(i)||Pi(s))&&n.dirty(),{status:n.value,value:a.data}):(k(r,{code:b.invalid_intersection_types}),B)};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}))}};cn.create=(e,t,n)=>new cn({left:e,right:t,typeName:N.ZodIntersection,...W(n)});var st=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.array)return k(r,{code:b.invalid_type,expected:F.array,received:r.parsedType}),B;if(r.data.length<this._def.items.length)return k(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),B;!this._def.rest&&r.data.length>this._def.items.length&&(k(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 c=this._def.items[a]||this._def.rest;return c?c._parse(new Ne(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>ge.mergeArray(n,s)):ge.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:N.ZodTuple,rest:null,...W(t)})};var Ri=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!==F.object)return k(r,{code:b.invalid_type,expected:F.object,received:r.parsedType}),B;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Ne(r,a,r.path,a)),value:s._parse(new Ne(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ge.mergeObjectAsync(n,o):ge.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:N.ZodRecord,...W(r)}):new e({keyType:Lt.create(),valueType:t,typeName:N.ZodRecord,...W(n)})}},rr=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!==F.map)return k(r,{code:b.invalid_type,expected:F.map,received:r.parsedType}),B;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,c],l)=>({key:o._parse(new Ne(r,a,r.path,[l,"key"])),value:i._parse(new Ne(r,c,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of s){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return B;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of s){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return B;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}};rr.create=(e,t,n)=>new rr({valueType:t,keyType:e,typeName:N.ZodMap,...W(n)});var or=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.set)return k(r,{code:b.invalid_type,expected:F.set,received:r.parsedType}),B;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(k(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&&(k(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(c){let l=new Set;for(let u of c){if(u.status==="aborted")return B;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((c,l)=>i._parse(new Ne(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>s(c)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:P.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};or.create=(e,t)=>new or({valueType:e,minSize:null,maxSize:null,typeName:N.ZodSet,...W(t)});var ji=class e extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.function)return k(n,{code:b.invalid_type,expected:F.function,received:n.parsedType}),B;function r(a,c){return Hr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xn(),ht].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:c}})}function o(a,c){return Hr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xn(),ht].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof $t){let a=this;return be(async function(...c){let l=new ke([]),u=await a._def.args.parseAsync(c,i).catch(m=>{throw l.addIssue(r(c,m)),l}),p=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(p,i).catch(m=>{throw l.addIssue(o(p,m)),l})})}else{let a=this;return be(function(...c){let l=a._def.args.safeParse(c,i);if(!l.success)throw new ke([r(c,l.error)]);let u=Reflect.apply(s,this,l.data),p=a._def.returns.safeParse(u,i);if(!p.success)throw new ke([o(u,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:st.create(t).rest(yt.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(yt.create()),returns:n||yt.create(),typeName:N.ZodFunction,...W(r)})}},un=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})}};un.create=(e,t)=>new un({getter:e,typeName:N.ZodLazy,...W(t)});var pn=class extends U{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return k(n,{received:n.data,code:b.invalid_literal,expected:this._def.value}),B}return{status:"valid",value:t.data}}get value(){return this._def.value}};pn.create=(e,t)=>new pn({value:e,typeName:N.ZodLiteral,...W(t)});function Lg(e,t){return new dn({values:e,typeName:N.ZodEnum,...W(t)})}var dn=class e extends U{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return k(n,{expected:G.joinValues(r),received:n.parsedType,code:b.invalid_type}),B}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 k(n,{received:n.data,code:b.invalid_enum_value,options:r}),B}return be(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})}};dn.create=Lg;var fn=class extends U{_parse(t){let n=G.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==F.string&&r.parsedType!==F.number){let o=G.objectValues(n);return k(r,{expected:G.joinValues(o),received:r.parsedType,code:b.invalid_type}),B}if(this._cache||(this._cache=new Set(G.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=G.objectValues(n);return k(r,{received:r.data,code:b.invalid_enum_value,options:o}),B}return be(t.data)}get enum(){return this._def.values}};fn.create=(e,t)=>new fn({values:e,typeName:N.ZodNativeEnum,...W(t)});var $t=class extends U{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.promise&&n.common.async===!1)return k(n,{code:b.invalid_type,expected:F.promise,received:n.parsedType}),B;let r=n.parsedType===F.promise?n.data:Promise.resolve(n.data);return be(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};$t.create=(e,t)=>new $t({type:e,typeName:N.ZodPromise,...W(t)});var $e=class extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===N.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=>{k(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 B;let c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?B:c.status==="dirty"?en(c.value):n.value==="dirty"?en(c.value):c});{if(n.value==="aborted")return B;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?B:a.status==="dirty"?en(a.value):n.value==="dirty"?en(a.value):a}}if(o.type==="refinement"){let s=a=>{let c=o.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?B:(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"?B:(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(!Bt(s))return B;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=>Bt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):B);G.assertNever(o)}};$e.create=(e,t,n)=>new $e({schema:e,typeName:N.ZodEffects,effect:t,...W(n)});$e.createWithPreprocess=(e,t,n)=>new $e({schema:t,effect:{type:"preprocess",transform:e},typeName:N.ZodEffects,...W(n)});var Le=class extends U{_parse(t){return this._getType(t)===F.undefined?be(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Le.create=(e,t)=>new Le({innerType:e,typeName:N.ZodOptional,...W(t)});var at=class extends U{_parse(t){return this._getType(t)===F.null?be(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};at.create=(e,t)=>new at({innerType:e,typeName:N.ZodNullable,...W(t)});var mn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===F.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};mn.create=(e,t)=>new mn({innerType:e,typeName:N.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...W(t)});var hn=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 Qn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ke(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ke(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};hn.create=(e,t)=>new hn({innerType:e,typeName:N.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...W(t)});var ir=class extends U{_parse(t){if(this._getType(t)!==F.nan){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.nan,received:r.parsedType}),B}return{status:"valid",value:t.data}}};ir.create=e=>new ir({typeName:N.ZodNaN,...W(e)});var MF=Symbol("zod_brand"),Zr=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}},Kr=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"?B:i.status==="dirty"?(n.dirty(),en(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"?B: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:N.ZodPipeline})}},gn=class extends U{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Bt(o)&&(o.value=Object.freeze(o.value)),o);return Qn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};gn.create=(e,t)=>new gn({innerType:e,typeName:N.ZodReadonly,...W(t)});function Ig(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Ng(e,t={},n){return e?Nt.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=Ig(t,r),c=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=Ig(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Nt.create()}var zF={object:xe.lazycreate},N;(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"})(N||(N={}));var WF=(e,t={message:`Input not instance of ${e.name}`})=>Ng(n=>n instanceof e,t),$g=Lt.create,Mg=tn.create,UF=ir.create,VF=nn.create,zg=rn.create,GF=on.create,qF=tr.create,JF=sn.create,HF=an.create,ZF=Nt.create,KF=yt.create,YF=Ye.create,XF=nr.create,QF=bt.create,eE=xe.create,tE=xe.strictCreate,nE=ln.create,rE=Ii.create,oE=cn.create,iE=st.create,sE=Ri.create,aE=rr.create,lE=or.create,cE=ji.create,uE=un.create,pE=pn.create,dE=dn.create,fE=fn.create,mE=$t.create,hE=$e.create,gE=Le.create,yE=at.create,bE=$e.createWithPreprocess,DE=Kr.create,wE=()=>$g().optional(),vE=()=>Mg().optional(),kE=()=>zg().optional(),xE={string:e=>Lt.create({...e,coerce:!0}),number:e=>tn.create({...e,coerce:!0}),boolean:e=>rn.create({...e,coerce:!0}),bigint:e=>nn.create({...e,coerce:!0}),date:e=>on.create({...e,coerce:!0})};var CE=B;function Bi(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,c=0,l=0,u=0,p=0;function f(C,O){let q=0,L=0;for(;q<C||!O;){let _=e.charCodeAt(r);if(_>=48&&_<=57)L=L*16+_-48;else if(_>=65&&_<=70)L=L*16+_-65+10;else if(_>=97&&_<=102)L=L*16+_-97+10;else break;r++,q++}return q<C&&(L=-1),L}function m(C){r=C,o="",i=0,s=16,p=0}function y(){let C=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&sr(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&sr(e.charCodeAt(r)))for(r++;r<e.length&&sr(e.charCodeAt(r));)r++;else return p=3,e.substring(C,r);let O=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&&sr(e.charCodeAt(r))){for(r++;r<e.length&&sr(e.charCodeAt(r));)r++;O=r}else p=3;return e.substring(C,O)}function v(){let C="",O=r;for(;;){if(r>=n){C+=e.substring(O,r),p=2;break}let q=e.charCodeAt(r);if(q===34){C+=e.substring(O,r),r++;break}if(q===92){if(C+=e.substring(O,r),r++,r>=n){p=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+=`
122
- `;break;case 114:C+="\r";break;case 116:C+=" ";break;case 117:let _=f(4,!0);_>=0?C+=String.fromCharCode(_):p=4;break;default:p=5}O=r;continue}if(q>=0&&q<=31)if(Yr(q)){C+=e.substring(O,r),p=2;break}else p=6;r++}return C}function A(){if(o="",p=0,i=r,c=a,u=l,r>=n)return i=n,s=17;let C=e.charCodeAt(r);if(Vl(C)){do r++,o+=String.fromCharCode(C),C=e.charCodeAt(r);while(Vl(C));return s=15}if(Yr(C))return r++,o+=String.fromCharCode(C),C===13&&e.charCodeAt(r)===10&&(r++,o+=`
123
- `),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=v(),s=10;case 47:let O=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Yr(e.charCodeAt(r));)r++;return o=e.substring(O,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let q=n-1,L=!1;for(;r<q;){let _=e.charCodeAt(r);if(_===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,Yr(_)&&(_===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return L||(r++,p=1),o=e.substring(O,r),s=13}return o+=String.fromCharCode(C),r++,s=16;case 45:if(o+=String.fromCharCode(C),r++,r===n||!sr(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&&E(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 E(C){if(Vl(C)||Yr(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 z(){let C;do C=A();while(C>=12&&C<=15);return C}return{setPosition:m,getPosition:()=>r,scan:t?z:A,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>c,getTokenStartCharacter:()=>i-u,getTokenError:()=>p}}function Vl(e){return e===32||e===9}function Yr(e){return e===10||e===13}function sr(e){return e>=48&&e<=57}var Wg;(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"})(Wg||(Wg={}));var EE=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),ar=200,_E={" ":{"\n":new Array(ar).fill(0).map((e,t)=>`
124
- `+" ".repeat(t)),"\r":new Array(ar).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(ar).fill(0).map((e,t)=>`\r
125
- `+" ".repeat(t))}," ":{"\n":new Array(ar).fill(0).map((e,t)=>`
126
- `+" ".repeat(t)),"\r":new Array(ar).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(ar).fill(0).map((e,t)=>`\r
127
- `+" ".repeat(t))}};var Li;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Li||(Li={}));function Ug(e,t=[],n=Li.DEFAULT){let r=null,o=[],i=[];function s(c){Array.isArray(o)?o.push(c):r!==null&&(o[r]=c)}return Vg(e,{onObjectBegin:()=>{let c={};s(c),i.push(o),o=c,r=null},onObjectProperty:c=>{r=c},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let c=[];s(c),i.push(o),o=c,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},n),o[0]}function Vg(e,t,n=Li.DEFAULT){let r=Bi(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?ee=>i===0&&M(ee,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(M){return M?ee=>i===0&&M(ee,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 u(M){return M?()=>{i>0&&i--,i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let p=l(t.onObjectBegin),f=c(t.onObjectProperty),m=u(t.onObjectEnd),y=l(t.onArrayBegin),v=u(t.onArrayEnd),A=c(t.onLiteralValue),E=a(t.onSeparator),z=s(t.onComment),C=a(t.onError),O=n&&n.disallowComments,q=n&&n.allowTrailingComma;function L(){for(;;){let M=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:O||_(11);break;case 2:_(12);break;case 6:_(16);break}switch(M){case 12:case 13:O?_(10):z();break;case 16:_(1);break;case 15:case 14:break;default:return M}}}function _(M,ee=[],Dt=[]){if(C(M),ee.length+Dt.length>0){let eo=r.getToken();for(;eo!==17;){if(ee.indexOf(eo)!==-1){L();break}else if(Dt.indexOf(eo)!==-1)break;eo=L()}}}function h(M){let ee=r.getTokenValue();return M?A(ee):(f(ee),o.push(ee)),L(),!0}function g(){switch(r.getToken()){case 11:let M=r.getTokenValue(),ee=Number(M);isNaN(ee)&&(_(2),ee=0),A(ee);break;case 7:A(null);break;case 8:A(!0);break;case 9:A(!1);break;default:return!1}return L(),!0}function j(){return r.getToken()!==10?(_(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(E(":"),L(),Me()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function x(){p(),L();let M=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||_(4,[],[]),E(","),L(),r.getToken()===2&&q)break}else M&&_(6,[],[]);j()||_(4,[],[2,5]),M=!0}return m(),r.getToken()!==2?_(7,[2],[]):L(),!0}function de(){y(),L();let M=!0,ee=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(ee||_(4,[],[]),E(","),L(),r.getToken()===4&&q)break}else ee&&_(6,[],[]);M?(o.push(0),M=!1):o[o.length-1]++,Me()||_(4,[],[4,5]),ee=!0}return v(),M||o.pop(),r.getToken()!==4?_(8,[4],[]):L(),!0}function Me(){switch(r.getToken()){case 3:return de();case 1:return x();case 10:return h(!0);default:return g()}}return L(),r.getToken()===17?n.allowEmptyContent?!0:(_(4,[],[]),!1):Me()?(r.getToken()!==17&&_(9,[],[]),!0):(_(4,[],[]),!1)}var Gg;(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"})(Gg||(Gg={}));var qg;(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"})(qg||(qg={}));var Gl=Ug;var Jg;(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"})(Jg||(Jg={}));V();var Hg=K.object({name:K.string(),main:K.string(),compatibility_date:K.string(),compatibility_flags:K.array(K.string()).optional(),placement:K.object({mode:K.string()}).passthrough().optional(),assets:K.object({directory:K.string(),binding:K.string().optional()}).passthrough().optional(),d1_databases:K.array(K.object({database_name:K.string(),database_id:K.string(),binding:K.string(),migrations_dir:K.string().optional()}).passthrough()).default([]),kv_namespaces:K.array(K.object({binding:K.string(),id:K.string()}).passthrough()).default([]),r2_buckets:K.array(K.object({binding:K.string(),bucket_name:K.string()}).passthrough()).default([])}).passthrough();function Zg(e,t="wrangler.json"){let n=Ce.join(e,t);if(!ae.existsSync(n)){if(t.endsWith(".json"))return d.warn(`/${t} not found, checking for /${t}c`),Zg(e,t+"c");d.warn(`/${t} not found`);return}let r=ae.readFileSync(n,"utf8");d.info(`reading /${t}...`);let o;try{o=Gl(r)}catch(i){d.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Hg.parse(o);return d.info(`successfully loaded /${t}`),i}catch(i){d.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function Kg(e,t,n={}){if(!ae.existsSync(e))return 0;ae.mkdirSync(t,{recursive:!0});let r=ae.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=Ce.join(e,i.name),a=Ce.join(t,i.name);i.isDirectory()?o+=Kg(s,a,n):(ae.copyFileSync(s,a),o++)}return o}async function Yg(e,t){let n=null,r=null,o=Ce.join(t,"wrangler.json"),i=Ce.join(t,"wrangler.jsonc");ae.existsSync(o)?(n=o,r=".json"):ae.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(d.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),ae.copyFileSync(n,Ce.join(t,`clouduser.wrangler${r}`)));let s=n?Zg(t,Ce.basename(n)):null,a=Ce.join(__dirname,e.config.wrangler_template_path),c=Ce.join(t,"wrangler.json");if(!ae.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`),ae.copyFileSync(a,c),!s)return;let l=JSON.parse(ae.readFileSync(c,"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`)),ae.writeFileSync(c,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let u in s.d1_databases){let p=s.d1_databases[u];if(!p.migrations_dir){d.info(`skipping migrations for database ${u} in wrangler.json; migrations dir is not defined`);continue}let f=p.migrations_dir,m=Ce.join(t,f);if(!ae.existsSync(m)){d.info(`skipping migrations for database ${u} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=Ce.join(t,"clouduser","migrations",f),v=Kg(m,y);v>0?d.info(`copied ${v} migrations to /clouduser/migrations/${f}`):d.info(`skipping migrations for database ${u} in wrangler.json; migrations dir (/${f}) is empty`)}}function jE(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 Xg(e){let t=null;for(let i of[".json",".jsonc"]){let s=Ce.join(e,`clouduser.wrangler${i}`);if(ae.existsSync(s)){t=s;break}}if(!t)return;let n=ae.readFileSync(t,"utf8"),r;try{r=Gl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Hg.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)jE(i.bucket_name)}}V();We();ce();Ve();async function ey(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=$.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||$.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),c=Jl(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:c}),I.mkdirSync(o,{recursive:!0});try{d.info(T.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
128
- `)),await BE(n,e.framework,t.telemetry),d.info(T.green(`--- \u{1F527} Setting up framework configuration ----------------------
129
- `)),await LE(n,e,s,t.deployUrl,t.environmentId),d.info(T.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
130
- `)),await Yg(e,n),Xg(n),d.info(T.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
131
- `)),d.info(`running ${e.config.build_command}...`),await NE(n,e.config.build_command,t.telemetry),d.info(T.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
132
- `)),await $E(n,i),d.info(T.green(`--- \u{1F4C1} Copying assets ------------------------------------------
133
- `)),await ME(n,i,e,s),d.info(T.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
134
- `));let u=await zE(i),p=Date.now()-a;return d.info(`${oe} 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:c}),u}catch(u){let p=Date.now()-a;throw await l?.sendError(u instanceof Error?u:new Error(String(u)),"cloud_build_failure",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:c}),u}}function Jl(e){let t=$.join(e,"wrangler.json");if(!I.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(I.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 ty(e){try{let t=$.dirname(e);t.includes(".tmp/webflow-build-")&&(d.info(T.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
135
- `)),I.rmSync(t,{recursive:!0,force:!0}))}catch(t){d.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function ny(e,t){try{if(!t.config.config_template_path)return;let n=$.join(__dirname,t.config.config_template_path),r=$.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));d.info(T.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
136
- `));for(let s of["mjs","cjs","js","ts"]){let a=$.join(e,`clouduser.${o}.${s}`),c=$.join(e,`${o}.${s}`);if(I.existsSync(a)){d.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),I.existsSync(c)&&I.unlinkSync(c),I.renameSync(a,c);break}}for(let s of[".jsonc",".json"]){let a=$.join(e,`clouduser.wrangler${s}`);if(I.existsSync(a)){d.info(`restoring user wrangler${s} from backup...`);let c=$.join(e,"wrangler.json");I.existsSync(c)&&I.unlinkSync(c);let l=$.join(e,`wrangler${s}`);I.renameSync(a,l);break}}let i=$.join(e,"clouduser");I.existsSync(i)&&(d.info("cleaning up clouduser directory..."),I.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=$.join(e,$.basename(s));I.existsSync(a)&&(d.info(`cleaning up additional config file ${a}...`),I.unlinkSync(a))}}catch(n){d.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function BE(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=$.join(e,"package.json"),c=JSON.parse(I.readFileSync(a,"utf8"));c.dependencies?.["@astrojs/react"]||c.devDependencies?.["@astrojs/react"]||(d.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,lr.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=$.join(e,"package-lock.json");I.existsSync(i)?(d.info("Running npm ci..."),(0,lr.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(d.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,lr.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:I.existsSync($.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:I.existsSync($.join(e,"package-lock.json"))}),i}}async function LE(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=$.join(__dirname,t.config.config_template_path),s=$.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let p of["mjs","cjs","js","ts"]){let f=$.join(e,`${a}.${p}`);if(I.existsSync(f)){let m=$.join(e,`clouduser.${a}.${p}`);d.info(`renaming user base config /${a}.${p} to /clouduser.${a}.${p}...`),I.renameSync(f,m);break}}let c=$.join(e,s);d.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let u=I.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);I.writeFileSync(c,u);for(let p of t.config.additional_config_files||[]){let f=$.join(__dirname,p);I.statSync(f,{throwIfNoEntry:!1})?(d.info(`copying additional config file /${p} to ${$.join(e,$.basename(p))}`),I.copyFileSync(f,$.join(e,$.basename(p)))):d.warn(`additional config file /${p} does not exist; skipping`)}}async function NE(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,lr.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 $E(e,t){I.mkdirSync(t,{recursive:!0});let n=$.join(e,"wrangler.json"),r=$.join(e,"wrangler.jsonc");if(!I.existsSync(n)&&!I.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,lr.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function ME(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=$.join(e,o);if(I.existsSync(p)&&I.statSync(p).isDirectory()){let m=I.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=$.join(t,"assets",s||"");I.mkdirSync(a,{recursive:!0});let c=$.join(e,o);if(I.existsSync(c)&&I.statSync(c).isDirectory()){d.info(`copying assets from /${o} to output/assets...`);try{i?(d.info(`excluding ${i}`),ry(c,a,i)):ql(c,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=$.join(e,"webflow.json");I.existsSync(l)&&I.copyFileSync(l,$.join(t,"webflow.json"));let u=null;for(let p of[".json",".jsonc"]){let f=$.join(e,`clouduser.wrangler${p}`);if(I.existsSync(f)){u=f;break}}if(u){d.info("including user wrangler config in output..."),I.copyFileSync(u,$.join(t,"clouduser.wrangler.json"));let p=$.join(e,"clouduser","migrations");if(I.existsSync(p)){d.info("copying migrations from clouduser/migrations to output/migrations...");let f=$.join(t,"migrations");ql(p,f)}}}async function zE(e){let t=`${e}.tar.gz`;try{return await Qg.create({gzip:!0,file:t,cwd:$.dirname(e)},[$.basename(e)]),d.info(`Tarball created: ${t}`),t}catch(n){throw new w(n,{prefix:"Failed to create tarball:"})}}function ql(e,t){I.mkdirSync(t,{recursive:!0});let n=I.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=$.join(e,r.name),i=$.join(t,r.name);r.isDirectory()?ql(o,i):I.copyFileSync(o,i)}}function ry(e,t,n){I.mkdirSync(t,{recursive:!0});let r=I.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=$.join(e,o.name),s=$.join(t,o.name);o.isDirectory()?ry(i,s,n):I.copyFileSync(i,s)}}De();ue();V();var WE="DUPLICATE_ENVIRONMENT_MOUNT",UE="ENVIRONMENT_MOUNT_MISMATCH",VE="DUPLICATE_ENVIRONMENT_BRANCH",GE="INVALID_MOUNT_PATH_FORMAT",qE="INVALID_PROJECT_ID",oy={[WE]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[UE]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[VE]:"An environment with this branch already exists for this project.",[GE]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[qE]:"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 iy(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 oy)if(n.includes(r))return oy[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var cr=D(require("fs")),Hl=require("child_process");V();ce();Ve();var sy=104857600;function ay(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 JE(){try{let e=(0,Hl.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,Hl.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 Zl(e,t,n){let r=await fetch(`${J}${t}`,{method:n.method,headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:n.body?JSON.stringify(n.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=iy(i);throw new Error(s)}return r.json()}async function ly(e,t,n,r){let{manifest:o}=X(),i=o.cloud||{},s=i.project_id,a=i.framework;if(!a)throw new w("No framework specified in webflow.json. Please ensure your webflow.json has a cloud.framework property");let c=await HE(e,{siteId:e.siteId,apiToken:e.accessToken,framework:a,mountPath:n,environment:t,projectId:s,projectName:r?.projectName,description:r?.description,directory:r?.directory,version:JE()});return!s&&c.project_id&&(d.info("\u{1F4DD} Updating webflow.json with project ID..."),fe({cloud:{...i,project_id:c.project_id}})),c}async function HE(e,t){let{siteId:n,framework:r,mountPath:o,environment:i,version:s,projectId:a,projectName:c,description:l,directory:u}=t,p={framework:r,mount_path:o,environment:i,version:s};return a&&(p.project_id=a),c&&(p.project_name=c),l&&(p.description=l),u&&(p.app_path=u),Zl(e.accessToken,`/cosmic/${n}/cli-deploy-init`,{method:"POST",body:p})}async function cy(e,t){return Zl(e.accessToken,`/cosmic/${e.siteId}/cli-project-environments/${t}`,{method:"GET"})}async function uy(e){return Zl(e.accessToken,`/cosmic/${e.siteId}/cli-projects`,{method:"GET"})}async function py(e,t){if(!cr.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=cr.statSync(e);if(n.size>sy)throw new Error(`Build output is too large (${ay(n.size)}). Maximum allowed size is ${ay(sy)}.`);let r=cr.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(([c,l])=>{i.append(c,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 c=await a.text();throw new w(c,{prefix:`${ie} Upload failed with response:`})}}async function dy(e,t){if(!e||e==="undefined")throw new w("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 w(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}var fy=require("webflow-api");ue();ue();ce();function Kl(e){return new fy.WebflowClient({accessToken:e,environment:{base:`${J}/v2`,dataApi:`${J}/v2`,contentDeliveryApi:`${ho}/v2`}})}async function Xr(e,t){try{let r=await Kl(e).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 w(n,{prefix:"Error fetching site details:"})}}async function Yl(e,t){try{return{customDomains:(await Kl(e).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new w(n,{prefix:"Error fetching custom domains:"})}}async function Xl(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 w(t,{prefix:`Failed to fetch manifest from ${e}:`})}}function Ql(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 my(e,t,n){try{let r=Kl(e),o=await Xr(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(c=>c.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw new w(r,{prefix:"Error publishing site:"})}}qe();ds();V();async function hy(e,t,n){let{siteId:r,accessToken:o}=e,i=vn("Validating mount path configuration...").start();try{let s=await Xr(o,r),a=await Yl(o,r),c=[`${s.shortName}.webflow.io`,...a.customDomains?.map(y=>y.url)||[]],l=0;i.text=`Validating ${c.length} domain(s) for mount path: ${t}... (0/${c.length})`;let u=c.map(async y=>{try{let v=await Xl(y),A=Array.isArray(v.cosmic)?v.cosmic.map(z=>z.mountPath).filter(z=>typeof z=="string"):[],E=Ql(v,t,n);return{domain:y,mountPaths:A,isValid:E===!0}}catch(v){return{domain:y,mountPaths:[],isValid:!1,error:v instanceof Error?v.message:String(v)}}finally{l++,i.text=`Validating ${c.length} domain(s) for mount path: ${t}... (${l}/${c.length})`}}),p=await Promise.all(u),f=p.some(y=>!y.isValid),m=p.every(y=>y.isValid);return i.succeed("Mount path validation completed"),{isValid:m,domains:p,needsPublishing:f}}catch(s){throw i.fail("Mount path validation failed"),s}}async function gy(e,t,n){let{siteId:r,accessToken:o}=e;try{let i=await Xr(o,r),s=await Yl(o,r),c=[`${i.shortName}.webflow.io`,...s.customDomains?.map(u=>u.url)||[]].map(async u=>{try{let p=await Xl(u),f=Ql(p,t,n);return{domain:u,isValid:f}}catch(p){return d.debug(`Could not verify mount path for ${u}: ${p}`),{domain:u,isValid:!1}}});return(await Promise.all(c)).filter(u=>u.isValid).map(u=>u.domain)}catch(i){return d.debug(`Error getting valid domains: ${i}`),[]}}function yy(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function by(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await Do({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 Dy(){return await Ge({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 ec(e,t){let{siteId:n,accessToken:r}=e,o=vn(`Publishing site to ${t.length} domain(s)...`).start();try{let s=`${(await Xr(r,n)).shortName}.webflow.io`,a=t.includes(s),c=t.filter(l=>l!==s);await my(r,n,{domains:c,publishToWebflowSubdomain:a}),o.succeed(`Site published successfully to selected domains: ${t.join(", ")}`)}catch{throw o.fail("Failed to publish site"),new Error("Failed to publish site")}}De();V();We();ue();Fe();ce();Ve();var Ni=async()=>{try{let e=await $l();return Object.keys(e)}catch(e){return d.error(e,{prefix:"Failed to get available scaffolds:"}),[]}},tc=async(e,t,n=_i,r)=>{let o=`./${e}`,i=await $l(),s=null,a=!1;try{let c=Date.now(),{manifest:l}=X(),u=await Je(l,{site:r}),p=u.accessToken,f=u.siteId;if(s=Q.forCloud({authToken:p,siteId:f}),await Nl(e,t,n,i,f,p),process.chdir(o),f){d.info("Running devlink sync to fetch your Webflow components...");try{await ZE({site:f,apiToken:p}),a=!0}catch(y){d.error(y,{prefix:"Failed to run devlink sync:"}),d.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}}let m=Date.now()-c;await s?.sendUsage("project_init",{scaffold:n,scaffoldName:n,devlinkSyncStatus:a,totalDuration:m,mountPath:t}),wy(e)}catch(c){throw d.error(c,{prefix:"Error during Webflow authentication:"}),await Nl(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"),wy(e),new w(c,{skipLogging:!0})}},ZE=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(ml(),Km));await t(void 0,{site:e.site,apiToken:e.apiToken})},KE=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=X();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},YE=async(e,t,n,r)=>{d.info("\u{1F50D} Validating mount path configuration...");let o=await hy(e,t,n);if(o.isValid)d.info(`${oe} Mount path validation passed`);else if(d.info(`
137
- \u{1F4CB} Mount path validation results:`),o.domains.forEach(i=>{let s=i.isValid?oe:ie,a=i.isValid?`(mountPath: ${i.mountPaths[0]})`:"(no matching mountPath)";d.info(`${s} ${i.domain} ${a}`),i.error&&d.debug(` Error: ${i.error}`)}),o.needsPublishing)if(r){d.info("\u{1F680} Auto-publishing site to update mount path configuration...");let i=o.domains.filter(s=>!s.isValid).map(s=>s.domain);await ec(e,i)}else if(await Dy()&&vt()){let s=o.domains.filter(c=>!c.isValid).map(c=>c.domain),a=await by(s);await ec(e,a)}else d.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},XE=async(e,t,n,r)=>{d.info(`
138
- \u{1F3D7}\uFE0F Building project...`);let o=await ey(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 py(o,t.upload_url);let s=Date.now()-i;return d.info(`${oe} Upload completed in ${(s/1e3).toFixed(1)}s`),o},QE=async(e,t,n)=>{d.success(`
139
- \u{1F310} Your cloud app will soon be available at:`);try{let r=await gy(e,t,n),o=yy(r,t);o.length>0?o.forEach(i=>{d.info(` ${i}`)}):d.warn(" No domains found with the correct mount path configuration yet.")}catch(r){d.warn(` Could not determine deployment links: ${r instanceof Error?r.message:r}`)}},e_=e=>{e.site_slug?d.success(`Visit your deployment:
120
+ `,f),"")}`)),t.succeed(),t=d.spinner("Generating library bundle");let{outputFiles:u,outputVolume:p}=await Di({libraryIdentifier:r,renderer:n.renderer,framework:n.framework,publicPath:Rt(e.publicPath||iF),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"),u.forEach(([f,m])=>{let y=(0,Yn.join)(`/${m}`,`${f.name}`),v=Vr(p.readFileSync(y,"utf8").toString(),y,{bundleEnvironment:m}),A=(0,Yn.join)(process.cwd(),e.outputPath||oF);_i.default.existsSync((0,Yn.join)(A,`${m}`))||_i.default.mkdirSync((0,Yn.join)(A,`${m}`),{recursive:!0}),_i.default.writeFileSync((0,Yn.join)(A,m,f.name),v.value.toString())}),t.succeed(),d.success("Code Library bundled successfully!")}catch(n){throw t?.fail(),new w(n)}}var Hr=D(require("fs-extra")),Ol=D(require("path"));V();Ve();function sF(){try{if(!Hr.default.existsSync(Ee))return null;let e=Hr.default.readdirSync(Ee).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Ol.default.join(Ee,t),time:Hr.default.statSync(Ol.default.join(Ee,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=Hr.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 Pl(){let e=sF();e&&console.info(`${Fn} Latest log: ${e}`),console.info(`${Fn} All logs: ${Ee}`)}async function cg(e){e.command("log").description("Display the logs directory and path to the latest log file, if available.").action(Pl)}var aF="Share a library of Code Components to your Webflow Workspace.";function ug(){return new Xn.Option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors.")}function pg(){return new Xn.Option("--debug-bundler","Display final bundler configurations for debugging purposes.")}function dg(){return new Xn.Option("--dev","Bundle in development mode for debugging purposes.")}function fg(){return new Xn.Option("--bundler <engine>","Bundler to use: webpack or rspack (experimental). Default: webpack").choices(["webpack","rspack"]).default("webpack").hideHelp()}function Il(e,t){return e.command(t).description(aF).option("--api-token <token>","API token. Default: value set in WEBFLOW_API_TOKEN env variable.").addOption(ug()).addOption(pg()).addOption(dg()).addOption(fg()).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Tl(i)})}var mg=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.");Il(t,"share"),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").addOption(new Xn.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(fg()).addOption(ug()).addOption(pg()).addOption(dg()).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Al(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(Pl)};var hg=e=>{let t=e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.");t.command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","API token. Default: value set in WEBFLOW_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),Il(t,"import")};var Se=D(require("fs")),ve=D(require("path"));V();ut();var Si="astro",Rl="cloud-scaffolds";var gg="package.json",yg="webflow.json",bg="wf-placeholder-name",Dg="CLOUD_MOUNT_PATH",wg="gitignore";var Bl=async(e,t,n=Si,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let c=ve.join(e,a.split(ve.join(Rl,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),u=a.includes("astro.config.mjs"),p=l||u;if(a.includes(gg)||a.includes(yg)){let m=(await Se.promises.readFile(a,"utf8")).replace(bg,e);await Ti(c,m)}else if(p){let f=await Se.promises.readFile(a,"utf8");await Ti(c,f.replace(Dg,t))}else if(ve.basename(c).toLowerCase()===wg){let f=await Se.promises.readFile(a,"utf8"),m=ve.join(ve.dirname(c),".gitignore");await Ti(m,f)}else{let f=await Se.promises.readFile(a);await Ti(c,f)}}catch(c){d.error(`Error processing file ${a}: ${c}`)}if(o&&i)try{vo({siteId:o,apiToken:i,directory:e})}catch(a){d.error(`Error creating .env file: ${a}`)}}catch(s){throw d.error(`Error applying scaffold: ${s}`),s}},jl=async()=>{try{let e={},t=ve.join(ve.resolve(__dirname),Rl);if(!Se.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await Se.promises.readdir(t);for(let r of n)try{let o=ve.join(t,r);e[r]=await vg(o)}catch(o){d.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw d.error(`Error getting available scaffolds: ${e}`),e}},vg=async e=>{let t=[];try{if(!Se.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await Se.promises.readdir(e);for(let r of n)try{let o=ve.join(e,r);(await Se.promises.stat(o)).isDirectory()?t.push(...await vg(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},Ti=async(e,t)=>{try{await Se.promises.mkdir(ve.dirname(e),{recursive:!0}),await Se.promises.writeFile(e,t)}catch(n){throw d.error(`Error writing file ${e}: ${n}`),n}};ut();et();var jt=D(require("fs")),Ll=D(require("path"));V();var Ai={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"}},Oi=["nextjs","astro","remix"];async function kg(e=process.cwd()){let t=Ll.join(e,"package.json"),n=Ll.join(e,"webflow.json");if(!jt.existsSync(t))throw new Error("No package.json file found");let r=null;if(jt.existsSync(n))try{let i=JSON.parse(jt.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!Ai[i]){let s=Object.keys(Ai).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!Oi.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${Oi.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(jt.readFileSync(t,"utf8"));for(let s of Oi){let c=Ai[s].package_identifier;if(o.dependencies?.[c]||o.devDependencies?.[c]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${Oi.join(", ")} are currently supported.`);d.info(`Detected framework: ${r}`),jt.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:Ai[r]}}var I=D(require("fs")),$=D(require("path")),cr=require("child_process"),Gg=D(require("tar"));var ae=D(require("fs")),Ce=D(require("path"));var K={};tc(K,{BRAND:()=>IF,DIRTY:()=>tn,EMPTY_PATH:()=>pF,INVALID:()=>j,NEVER:()=>yE,OK:()=>be,ParseStatus:()=>ge,Schema:()=>U,ZodAny:()=>$t,ZodArray:()=>bt,ZodBigInt:()=>rn,ZodBoolean:()=>on,ZodBranded:()=>Kr,ZodCatch:()=>gn,ZodDate:()=>sn,ZodDefault:()=>hn,ZodDiscriminatedUnion:()=>Ri,ZodEffects:()=>$e,ZodEnum:()=>fn,ZodError:()=>ke,ZodFirstPartyTypeKind:()=>N,ZodFunction:()=>ji,ZodIntersection:()=>un,ZodIssueCode:()=>b,ZodLazy:()=>pn,ZodLiteral:()=>dn,ZodMap:()=>or,ZodNaN:()=>sr,ZodNativeEnum:()=>mn,ZodNever:()=>Xe,ZodNull:()=>ln,ZodNullable:()=>at,ZodNumber:()=>nn,ZodObject:()=>xe,ZodOptional:()=>Le,ZodParsedType:()=>F,ZodPipeline:()=>Yr,ZodPromise:()=>Mt,ZodReadonly:()=>yn,ZodRecord:()=>Bi,ZodSchema:()=>U,ZodSet:()=>ir,ZodString:()=>Nt,ZodSymbol:()=>nr,ZodTransformer:()=>$e,ZodTuple:()=>st,ZodType:()=>U,ZodUndefined:()=>an,ZodUnion:()=>cn,ZodUnknown:()=>yt,ZodVoid:()=>rr,addIssueToContext:()=>k,any:()=>WF,array:()=>qF,bigint:()=>LF,boolean:()=>Ig,coerce:()=>gE,custom:()=>Ag,date:()=>NF,datetimeRegex:()=>Sg,defaultErrorMap:()=>ht,discriminatedUnion:()=>KF,effect:()=>lE,enum:()=>iE,function:()=>nE,getErrorMap:()=>Qn,getParsedType:()=>it,instanceof:()=>BF,intersection:()=>YF,isAborted:()=>Pi,isAsync:()=>er,isDirty:()=>Ii,isValid:()=>Lt,late:()=>RF,lazy:()=>rE,literal:()=>oE,makeIssue:()=>Zr,map:()=>eE,nan:()=>jF,nativeEnum:()=>sE,never:()=>VF,null:()=>zF,nullable:()=>uE,number:()=>Pg,object:()=>JF,objectUtil:()=>Nl,oboolean:()=>hE,onumber:()=>mE,optional:()=>cE,ostring:()=>fE,pipeline:()=>dE,preprocess:()=>pE,promise:()=>aE,quotelessJson:()=>lF,record:()=>QF,set:()=>tE,setErrorMap:()=>uF,strictObject:()=>HF,string:()=>Og,symbol:()=>$F,transformer:()=>lE,tuple:()=>XF,undefined:()=>MF,union:()=>ZF,unknown:()=>UF,util:()=>G,void:()=>GF});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 Nl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Nl||(Nl={}));var F=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 F.undefined;case"string":return F.string;case"number":return Number.isNaN(e)?F.nan:F.number;case"boolean":return F.boolean;case"function":return F.function;case"bigint":return F.bigint;case"symbol":return F.symbol;case"object":return Array.isArray(e)?F.array:e===null?F.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?F.promise:typeof Map<"u"&&e instanceof Map?F.map:typeof Set<"u"&&e instanceof Set?F.set:typeof Date<"u"&&e instanceof Date?F.date:F.object;default:return F.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"]),lF=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ke=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,c=0;for(;c<s.path.length;){let l=s.path[c];c===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(s))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};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()}};ke.create=e=>new ke(e);var cF=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===F.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}},ht=cF;var xg=ht;function uF(e){xg=e}function Qn(){return xg}var Zr=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",c=r.filter(l=>!!l).slice().reverse();for(let l of c)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},pF=[];function k(e,t){let n=Qn(),r=Zr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ht?void 0:ht].filter(o=>!!o)});e.common.issues.push(r)}var ge=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"}),tn=e=>({status:"dirty",value:e}),be=e=>({status:"valid",value:e}),Pi=e=>e.status==="aborted",Ii=e=>e.status==="dirty",Lt=e=>e.status==="valid",er=e=>typeof Promise<"u"&&e instanceof Promise;var P;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(P||(P={}));var Ne=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}},Cg=(e,t)=>{if(Lt(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 ke(e.common.issues);return this._error=n,this._error}}};function W(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:c}=e;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:c??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 ge,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(er(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 Cg(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 Lt(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=>Lt(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(er(o)?o:Promise.resolve(o));return Cg(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(c=>c?!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 $e({schema:this,typeName:N.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 Le.create(this,this._def)}nullable(){return at.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bt.create(this)}promise(){return Mt.create(this,this._def)}or(t){return cn.create([this,t],this._def)}and(t){return un.create(this,t,this._def)}transform(t){return new $e({...W(this._def),schema:this,typeName:N.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new hn({...W(this._def),innerType:this,defaultValue:n,typeName:N.ZodDefault})}brand(){return new Kr({typeName:N.ZodBranded,type:this,...W(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new gn({...W(this._def),innerType:this,catchValue:n,typeName:N.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Yr.create(this,t)}readonly(){return yn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},dF=/^c[^\s-]{8,}$/i,fF=/^[0-9a-z]+$/,mF=/^[0-9A-HJKMNP-TV-Z]{26}$/i,hF=/^[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,gF=/^[a-z0-9_-]{21}$/i,yF=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,bF=/^[-+]?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)?)??$/,DF=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",$l,vF=/^(?:(?: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])$/,kF=/^(?:(?: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])$/,xF=/^(([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]))$/,CF=/^(([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])$/,FF=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,EF=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Eg="((\\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])))",_F=new RegExp(`^${Eg}$`);function _g(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 SF(e){return new RegExp(`^${_g(e)}$`)}function Sg(e){let t=`${Eg}T${_g(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 TF(e,t){return!!((t==="v4"||!t)&&vF.test(e)||(t==="v6"||!t)&&xF.test(e))}function AF(e,t){if(!yF.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 OF(e,t){return!!((t==="v4"||!t)&&kF.test(e)||(t==="v6"||!t)&&CF.test(e))}var Nt=class e extends U{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==F.string){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_type,expected:F.string,received:i.parsedType}),j}let r=new ge,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),k(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),k(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?k(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&k(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")DF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")$l||($l=new RegExp(wF,"u")),$l.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")hF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")gF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")dF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")fF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")mF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(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),k(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),k(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),k(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),k(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),k(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Sg(i).test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?_F.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?SF(i).test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?bF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?TF(t.data,i.version)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?AF(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?OF(t.data,i.version)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?FF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?EF.test(t.data)||(o=this._getOrReturnCtx(t,o),k(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,...P.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...P.errToObj(t)})}url(t){return this._addCheck({kind:"url",...P.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...P.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...P.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...P.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...P.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...P.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...P.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...P.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...P.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...P.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...P.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...P.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,...P.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,...P.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...P.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...P.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...P.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...P.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...P.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...P.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...P.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...P.errToObj(n)})}nonempty(t){return this.min(1,P.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:N.ZodString,coerce:e?.coerce??!1,...W(e)});function PF(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 nn=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)!==F.number){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_type,expected:F.number,received:i.parsedType}),j}let r,o=new ge;for(let i of this._def.checks)i.kind==="int"?G.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),k(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),k(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),k(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?PF(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),k(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),k(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,P.toString(n))}gt(t,n){return this.setLimit("min",t,!1,P.toString(n))}lte(t,n){return this.setLimit("max",t,!0,P.toString(n))}lt(t,n){return this.setLimit("max",t,!1,P.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:P.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:P.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:P.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:P.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:P.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:P.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:P.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:P.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:P.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)}};nn.create=e=>new nn({checks:[],typeName:N.ZodNumber,coerce:e?.coerce||!1,...W(e)});var rn=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)!==F.bigint)return this._getInvalidInput(t);let r,o=new ge;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),k(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),k(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),k(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 k(n,{code:b.invalid_type,expected:F.bigint,received:n.parsedType}),j}gte(t,n){return this.setLimit("min",t,!0,P.toString(n))}gt(t,n){return this.setLimit("min",t,!1,P.toString(n))}lte(t,n){return this.setLimit("max",t,!0,P.toString(n))}lt(t,n){return this.setLimit("max",t,!1,P.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.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:P.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:P.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:P.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:P.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:P.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}};rn.create=e=>new rn({checks:[],typeName:N.ZodBigInt,coerce:e?.coerce??!1,...W(e)});var on=class extends U{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==F.boolean){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.boolean,received:r.parsedType}),j}return be(t.data)}};on.create=e=>new on({typeName:N.ZodBoolean,coerce:e?.coerce||!1,...W(e)});var sn=class e extends U{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==F.date){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_type,expected:F.date,received:i.parsedType}),j}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return k(i,{code:b.invalid_date}),j}let r=new ge,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),k(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),k(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:P.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:P.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}};sn.create=e=>new sn({checks:[],coerce:e?.coerce||!1,typeName:N.ZodDate,...W(e)});var nr=class extends U{_parse(t){if(this._getType(t)!==F.symbol){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.symbol,received:r.parsedType}),j}return be(t.data)}};nr.create=e=>new nr({typeName:N.ZodSymbol,...W(e)});var an=class extends U{_parse(t){if(this._getType(t)!==F.undefined){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.undefined,received:r.parsedType}),j}return be(t.data)}};an.create=e=>new an({typeName:N.ZodUndefined,...W(e)});var ln=class extends U{_parse(t){if(this._getType(t)!==F.null){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.null,received:r.parsedType}),j}return be(t.data)}};ln.create=e=>new ln({typeName:N.ZodNull,...W(e)});var $t=class extends U{constructor(){super(...arguments),this._any=!0}_parse(t){return be(t.data)}};$t.create=e=>new $t({typeName:N.ZodAny,...W(e)});var yt=class extends U{constructor(){super(...arguments),this._unknown=!0}_parse(t){return be(t.data)}};yt.create=e=>new yt({typeName:N.ZodUnknown,...W(e)});var Xe=class extends U{_parse(t){let n=this._getOrReturnCtx(t);return k(n,{code:b.invalid_type,expected:F.never,received:n.parsedType}),j}};Xe.create=e=>new Xe({typeName:N.ZodNever,...W(e)});var rr=class extends U{_parse(t){if(this._getType(t)!==F.undefined){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.void,received:r.parsedType}),j}return be(t.data)}};rr.create=e=>new rr({typeName:N.ZodVoid,...W(e)});var bt=class e extends U{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==F.array)return k(n,{code:b.invalid_type,expected:F.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)&&(k(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&&(k(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&&(k(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 Ne(n,s,n.path,a)))).then(s=>ge.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Ne(n,s,n.path,a)));return ge.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:P.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:P.toString(n)}})}nonempty(t){return this.min(1,t)}};bt.create=(e,t)=>new bt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:N.ZodArray,...W(t)});function tr(e){if(e instanceof xe){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Le.create(tr(r))}return new xe({...e._def,shape:()=>t})}else return e instanceof bt?new bt({...e._def,type:tr(e.element)}):e instanceof Le?Le.create(tr(e.unwrap())):e instanceof at?at.create(tr(e.unwrap())):e instanceof st?st.create(e.items.map(t=>tr(t))):e}var xe=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)!==F.object){let l=this._getOrReturnCtx(t);return k(l,{code:b.invalid_type,expected:F.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 c=[];for(let l of s){let u=i[l],p=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Ne(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Xe){let l=this._def.unknownKeys;if(l==="passthrough")for(let u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(l==="strict")a.length>0&&(k(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 u of a){let p=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Ne(o,p,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let u of c){let p=await u.key,f=await u.value;l.push({key:p,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>ge.mergeObjectSync(r,l)):ge.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return P.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:P.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:N.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 tr(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 Le;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return Tg(G.objectKeys(this.shape))}};xe.create=(e,t)=>new xe({shape:()=>e,unknownKeys:"strip",catchall:Xe.create(),typeName:N.ZodObject,...W(t)});xe.strictCreate=(e,t)=>new xe({shape:()=>e,unknownKeys:"strict",catchall:Xe.create(),typeName:N.ZodObject,...W(t)});xe.lazycreate=(e,t)=>new xe({shape:e,unknownKeys:"strip",catchall:Xe.create(),typeName:N.ZodObject,...W(t)});var cn=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 ke(a.ctx.common.issues));return k(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 c of r){let l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,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(c=>new ke(c));return k(n,{code:b.invalid_union,unionErrors:a}),j}}get options(){return this._def.options}};cn.create=(e,t)=>new cn({options:e,typeName:N.ZodUnion,...W(t)});var gt=e=>e instanceof pn?gt(e.schema):e instanceof $e?gt(e.innerType()):e instanceof dn?[e.value]:e instanceof fn?e.options:e instanceof mn?G.objectValues(e.enum):e instanceof hn?gt(e._def.innerType):e instanceof an?[void 0]:e instanceof ln?[null]:e instanceof Le?[void 0,...gt(e.unwrap())]:e instanceof at?[null,...gt(e.unwrap())]:e instanceof Kr||e instanceof yn?gt(e.unwrap()):e instanceof gn?gt(e._def.innerType):[],Ri=class e extends U{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.object)return k(n,{code:b.invalid_type,expected:F.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}):(k(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=gt(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:N.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...W(r)})}};function Ml(e,t){let n=it(e),r=it(t);if(e===t)return{valid:!0,data:e};if(n===F.object&&r===F.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 c=Ml(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(n===F.array&&r===F.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],c=Ml(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return n===F.date&&r===F.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var un=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=Ml(i.value,s.value);return a.valid?((Ii(i)||Ii(s))&&n.dirty(),{status:n.value,value:a.data}):(k(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}))}};un.create=(e,t,n)=>new un({left:e,right:t,typeName:N.ZodIntersection,...W(n)});var st=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.array)return k(r,{code:b.invalid_type,expected:F.array,received:r.parsedType}),j;if(r.data.length<this._def.items.length)return k(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&&(k(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 c=this._def.items[a]||this._def.rest;return c?c._parse(new Ne(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>ge.mergeArray(n,s)):ge.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:N.ZodTuple,rest:null,...W(t)})};var Bi=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!==F.object)return k(r,{code:b.invalid_type,expected:F.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 Ne(r,a,r.path,a)),value:s._parse(new Ne(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ge.mergeObjectAsync(n,o):ge.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:N.ZodRecord,...W(r)}):new e({keyType:Nt.create(),valueType:t,typeName:N.ZodRecord,...W(n)})}},or=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!==F.map)return k(r,{code:b.invalid_type,expected:F.map,received:r.parsedType}),j;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,c],l)=>({key:o._parse(new Ne(r,a,r.path,[l,"key"])),value:i._parse(new Ne(r,c,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of s){let l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return j;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let c of s){let l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return j;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}};or.create=(e,t,n)=>new or({valueType:t,keyType:e,typeName:N.ZodMap,...W(n)});var ir=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.set)return k(r,{code:b.invalid_type,expected:F.set,received:r.parsedType}),j;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(k(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&&(k(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(c){let l=new Set;for(let u of c){if(u.status==="aborted")return j;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((c,l)=>i._parse(new Ne(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>s(c)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:P.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};ir.create=(e,t)=>new ir({valueType:e,minSize:null,maxSize:null,typeName:N.ZodSet,...W(t)});var ji=class e extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.function)return k(n,{code:b.invalid_type,expected:F.function,received:n.parsedType}),j;function r(a,c){return Zr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Qn(),ht].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:c}})}function o(a,c){return Zr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Qn(),ht].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Mt){let a=this;return be(async function(...c){let l=new ke([]),u=await a._def.args.parseAsync(c,i).catch(m=>{throw l.addIssue(r(c,m)),l}),p=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(p,i).catch(m=>{throw l.addIssue(o(p,m)),l})})}else{let a=this;return be(function(...c){let l=a._def.args.safeParse(c,i);if(!l.success)throw new ke([r(c,l.error)]);let u=Reflect.apply(s,this,l.data),p=a._def.returns.safeParse(u,i);if(!p.success)throw new ke([o(u,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:st.create(t).rest(yt.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(yt.create()),returns:n||yt.create(),typeName:N.ZodFunction,...W(r)})}},pn=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})}};pn.create=(e,t)=>new pn({getter:e,typeName:N.ZodLazy,...W(t)});var dn=class extends U{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return k(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}};dn.create=(e,t)=>new dn({value:e,typeName:N.ZodLiteral,...W(t)});function Tg(e,t){return new fn({values:e,typeName:N.ZodEnum,...W(t)})}var fn=class e extends U{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return k(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 k(n,{received:n.data,code:b.invalid_enum_value,options:r}),j}return be(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})}};fn.create=Tg;var mn=class extends U{_parse(t){let n=G.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==F.string&&r.parsedType!==F.number){let o=G.objectValues(n);return k(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 k(r,{received:r.data,code:b.invalid_enum_value,options:o}),j}return be(t.data)}get enum(){return this._def.values}};mn.create=(e,t)=>new mn({values:e,typeName:N.ZodNativeEnum,...W(t)});var Mt=class extends U{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.promise&&n.common.async===!1)return k(n,{code:b.invalid_type,expected:F.promise,received:n.parsedType}),j;let r=n.parsedType===F.promise?n.data:Promise.resolve(n.data);return be(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Mt.create=(e,t)=>new Mt({type:e,typeName:N.ZodPromise,...W(t)});var $e=class extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===N.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=>{k(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 c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?j:c.status==="dirty"?tn(c.value):n.value==="dirty"?tn(c.value):c});{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"?tn(a.value):n.value==="dirty"?tn(a.value):a}}if(o.type==="refinement"){let s=a=>{let c=o.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(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(!Lt(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=>Lt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):j);G.assertNever(o)}};$e.create=(e,t,n)=>new $e({schema:e,typeName:N.ZodEffects,effect:t,...W(n)});$e.createWithPreprocess=(e,t,n)=>new $e({schema:t,effect:{type:"preprocess",transform:e},typeName:N.ZodEffects,...W(n)});var Le=class extends U{_parse(t){return this._getType(t)===F.undefined?be(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Le.create=(e,t)=>new Le({innerType:e,typeName:N.ZodOptional,...W(t)});var at=class extends U{_parse(t){return this._getType(t)===F.null?be(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};at.create=(e,t)=>new at({innerType:e,typeName:N.ZodNullable,...W(t)});var hn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===F.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};hn.create=(e,t)=>new hn({innerType:e,typeName:N.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...W(t)});var gn=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 er(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ke(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ke(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};gn.create=(e,t)=>new gn({innerType:e,typeName:N.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...W(t)});var sr=class extends U{_parse(t){if(this._getType(t)!==F.nan){let r=this._getOrReturnCtx(t);return k(r,{code:b.invalid_type,expected:F.nan,received:r.parsedType}),j}return{status:"valid",value:t.data}}};sr.create=e=>new sr({typeName:N.ZodNaN,...W(e)});var IF=Symbol("zod_brand"),Kr=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}},Yr=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(),tn(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:N.ZodPipeline})}},yn=class extends U{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Lt(o)&&(o.value=Object.freeze(o.value)),o);return er(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};yn.create=(e,t)=>new yn({innerType:e,typeName:N.ZodReadonly,...W(t)});function Fg(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Ag(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=Fg(t,r),c=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=Fg(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):$t.create()}var RF={object:xe.lazycreate},N;(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"})(N||(N={}));var BF=(e,t={message:`Input not instance of ${e.name}`})=>Ag(n=>n instanceof e,t),Og=Nt.create,Pg=nn.create,jF=sr.create,LF=rn.create,Ig=on.create,NF=sn.create,$F=nr.create,MF=an.create,zF=ln.create,WF=$t.create,UF=yt.create,VF=Xe.create,GF=rr.create,qF=bt.create,JF=xe.create,HF=xe.strictCreate,ZF=cn.create,KF=Ri.create,YF=un.create,XF=st.create,QF=Bi.create,eE=or.create,tE=ir.create,nE=ji.create,rE=pn.create,oE=dn.create,iE=fn.create,sE=mn.create,aE=Mt.create,lE=$e.create,cE=Le.create,uE=at.create,pE=$e.createWithPreprocess,dE=Yr.create,fE=()=>Og().optional(),mE=()=>Pg().optional(),hE=()=>Ig().optional(),gE={string:e=>Nt.create({...e,coerce:!0}),number:e=>nn.create({...e,coerce:!0}),boolean:e=>on.create({...e,coerce:!0}),bigint:e=>rn.create({...e,coerce:!0}),date:e=>sn.create({...e,coerce:!0})};var yE=j;function Li(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,c=0,l=0,u=0,p=0;function f(C,O){let q=0,L=0;for(;q<C||!O;){let _=e.charCodeAt(r);if(_>=48&&_<=57)L=L*16+_-48;else if(_>=65&&_<=70)L=L*16+_-65+10;else if(_>=97&&_<=102)L=L*16+_-97+10;else break;r++,q++}return q<C&&(L=-1),L}function m(C){r=C,o="",i=0,s=16,p=0}function y(){let C=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ar(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ar(e.charCodeAt(r)))for(r++;r<e.length&&ar(e.charCodeAt(r));)r++;else return p=3,e.substring(C,r);let O=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&&ar(e.charCodeAt(r))){for(r++;r<e.length&&ar(e.charCodeAt(r));)r++;O=r}else p=3;return e.substring(C,O)}function v(){let C="",O=r;for(;;){if(r>=n){C+=e.substring(O,r),p=2;break}let q=e.charCodeAt(r);if(q===34){C+=e.substring(O,r),r++;break}if(q===92){if(C+=e.substring(O,r),r++,r>=n){p=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+=`
121
+ `;break;case 114:C+="\r";break;case 116:C+=" ";break;case 117:let _=f(4,!0);_>=0?C+=String.fromCharCode(_):p=4;break;default:p=5}O=r;continue}if(q>=0&&q<=31)if(Xr(q)){C+=e.substring(O,r),p=2;break}else p=6;r++}return C}function A(){if(o="",p=0,i=r,c=a,u=l,r>=n)return i=n,s=17;let C=e.charCodeAt(r);if(zl(C)){do r++,o+=String.fromCharCode(C),C=e.charCodeAt(r);while(zl(C));return s=15}if(Xr(C))return r++,o+=String.fromCharCode(C),C===13&&e.charCodeAt(r)===10&&(r++,o+=`
122
+ `),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=v(),s=10;case 47:let O=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Xr(e.charCodeAt(r));)r++;return o=e.substring(O,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let q=n-1,L=!1;for(;r<q;){let _=e.charCodeAt(r);if(_===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,Xr(_)&&(_===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return L||(r++,p=1),o=e.substring(O,r),s=13}return o+=String.fromCharCode(C),r++,s=16;case 45:if(o+=String.fromCharCode(C),r++,r===n||!ar(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&&E(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 E(C){if(zl(C)||Xr(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 z(){let C;do C=A();while(C>=12&&C<=15);return C}return{setPosition:m,getPosition:()=>r,scan:t?z:A,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>c,getTokenStartCharacter:()=>i-u,getTokenError:()=>p}}function zl(e){return e===32||e===9}function Xr(e){return e===10||e===13}function ar(e){return e>=48&&e<=57}var Rg;(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"})(Rg||(Rg={}));var DE=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),lr=200,wE={" ":{"\n":new Array(lr).fill(0).map((e,t)=>`
123
+ `+" ".repeat(t)),"\r":new Array(lr).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(lr).fill(0).map((e,t)=>`\r
124
+ `+" ".repeat(t))}," ":{"\n":new Array(lr).fill(0).map((e,t)=>`
125
+ `+" ".repeat(t)),"\r":new Array(lr).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(lr).fill(0).map((e,t)=>`\r
126
+ `+" ".repeat(t))}};var Ni;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ni||(Ni={}));function Bg(e,t=[],n=Ni.DEFAULT){let r=null,o=[],i=[];function s(c){Array.isArray(o)?o.push(c):r!==null&&(o[r]=c)}return jg(e,{onObjectBegin:()=>{let c={};s(c),i.push(o),o=c,r=null},onObjectProperty:c=>{r=c},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let c=[];s(c),i.push(o),o=c,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},n),o[0]}function jg(e,t,n=Ni.DEFAULT){let r=Li(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?ee=>i===0&&M(ee,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(M){return M?ee=>i===0&&M(ee,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 u(M){return M?()=>{i>0&&i--,i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let p=l(t.onObjectBegin),f=c(t.onObjectProperty),m=u(t.onObjectEnd),y=l(t.onArrayBegin),v=u(t.onArrayEnd),A=c(t.onLiteralValue),E=a(t.onSeparator),z=s(t.onComment),C=a(t.onError),O=n&&n.disallowComments,q=n&&n.allowTrailingComma;function L(){for(;;){let M=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:O||_(11);break;case 2:_(12);break;case 6:_(16);break}switch(M){case 12:case 13:O?_(10):z();break;case 16:_(1);break;case 15:case 14:break;default:return M}}}function _(M,ee=[],Dt=[]){if(C(M),ee.length+Dt.length>0){let to=r.getToken();for(;to!==17;){if(ee.indexOf(to)!==-1){L();break}else if(Dt.indexOf(to)!==-1)break;to=L()}}}function h(M){let ee=r.getTokenValue();return M?A(ee):(f(ee),o.push(ee)),L(),!0}function g(){switch(r.getToken()){case 11:let M=r.getTokenValue(),ee=Number(M);isNaN(ee)&&(_(2),ee=0),A(ee);break;case 7:A(null);break;case 8:A(!0);break;case 9:A(!1);break;default:return!1}return L(),!0}function B(){return r.getToken()!==10?(_(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(E(":"),L(),Me()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function x(){p(),L();let M=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||_(4,[],[]),E(","),L(),r.getToken()===2&&q)break}else M&&_(6,[],[]);B()||_(4,[],[2,5]),M=!0}return m(),r.getToken()!==2?_(7,[2],[]):L(),!0}function de(){y(),L();let M=!0,ee=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(ee||_(4,[],[]),E(","),L(),r.getToken()===4&&q)break}else ee&&_(6,[],[]);M?(o.push(0),M=!1):o[o.length-1]++,Me()||_(4,[],[4,5]),ee=!0}return v(),M||o.pop(),r.getToken()!==4?_(8,[4],[]):L(),!0}function Me(){switch(r.getToken()){case 3:return de();case 1:return x();case 10:return h(!0);default:return g()}}return L(),r.getToken()===17?n.allowEmptyContent?!0:(_(4,[],[]),!1):Me()?(r.getToken()!==17&&_(9,[],[]),!0):(_(4,[],[]),!1)}var Lg;(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"})(Lg||(Lg={}));var Ng;(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"})(Ng||(Ng={}));var Wl=Bg;var $g;(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"})($g||($g={}));V();var Mg=K.object({name:K.string(),main:K.string(),compatibility_date:K.string(),compatibility_flags:K.array(K.string()).optional(),placement:K.object({mode:K.string()}).passthrough().optional(),assets:K.object({directory:K.string(),binding:K.string().optional()}).passthrough().optional(),d1_databases:K.array(K.object({database_name:K.string(),database_id:K.string(),binding:K.string(),migrations_dir:K.string().optional()}).passthrough()).default([]),kv_namespaces:K.array(K.object({binding:K.string(),id:K.string()}).passthrough()).default([]),r2_buckets:K.array(K.object({binding:K.string(),bucket_name:K.string()}).passthrough()).default([])}).passthrough();function zg(e,t="wrangler.json"){let n=Ce.join(e,t);if(!ae.existsSync(n)){if(t.endsWith(".json"))return d.warn(`/${t} not found, checking for /${t}c`),zg(e,t+"c");d.warn(`/${t} not found`);return}let r=ae.readFileSync(n,"utf8");d.info(`reading /${t}...`);let o;try{o=Wl(r)}catch(i){d.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Mg.parse(o);return d.info(`successfully loaded /${t}`),i}catch(i){d.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function Wg(e,t,n={}){if(!ae.existsSync(e))return 0;ae.mkdirSync(t,{recursive:!0});let r=ae.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=Ce.join(e,i.name),a=Ce.join(t,i.name);i.isDirectory()?o+=Wg(s,a,n):(ae.copyFileSync(s,a),o++)}return o}async function Ug(e,t){let n=null,r=null,o=Ce.join(t,"wrangler.json"),i=Ce.join(t,"wrangler.jsonc");ae.existsSync(o)?(n=o,r=".json"):ae.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(d.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),ae.copyFileSync(n,Ce.join(t,`clouduser.wrangler${r}`)));let s=n?zg(t,Ce.basename(n)):null,a=Ce.join(__dirname,e.config.wrangler_template_path),c=Ce.join(t,"wrangler.json");if(!ae.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`),ae.copyFileSync(a,c),!s)return;let l=JSON.parse(ae.readFileSync(c,"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`)),ae.writeFileSync(c,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let u in s.d1_databases){let p=s.d1_databases[u];if(!p.migrations_dir){d.info(`skipping migrations for database ${u} in wrangler.json; migrations dir is not defined`);continue}let f=p.migrations_dir,m=Ce.join(t,f);if(!ae.existsSync(m)){d.info(`skipping migrations for database ${u} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=Ce.join(t,"clouduser","migrations",f),v=Wg(m,y);v>0?d.info(`copied ${v} migrations to /clouduser/migrations/${f}`):d.info(`skipping migrations for database ${u} in wrangler.json; migrations dir (/${f}) is empty`)}}function SE(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 Vg(e){let t=null;for(let i of[".json",".jsonc"]){let s=Ce.join(e,`clouduser.wrangler${i}`);if(ae.existsSync(s)){t=s;break}}if(!t)return;let n=ae.readFileSync(t,"utf8"),r;try{r=Wl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Mg.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)SE(i.bucket_name)}}V();We();se();Ve();async function qg(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=$.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||$.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),c=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:c}),I.mkdirSync(o,{recursive:!0});try{d.info(T.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
127
+ `)),await TE(n,e.framework,t.telemetry),d.info(T.green(`--- \u{1F527} Setting up framework configuration ----------------------
128
+ `)),await AE(n,e,s,t.deployUrl,t.environmentId),d.info(T.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
129
+ `)),await Ug(e,n),Vg(n),d.info(T.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
130
+ `)),d.info(`running ${e.config.build_command}...`),await OE(n,e.config.build_command,t.telemetry),d.info(T.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
131
+ `)),await PE(n,i),d.info(T.green(`--- \u{1F4C1} Copying assets ------------------------------------------
132
+ `)),await IE(n,i,e,s),d.info(T.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
133
+ `));let u=await RE(i),p=Date.now()-a;return d.info(`${ie} 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:c}),u}catch(u){let p=Date.now()-a;throw await l?.sendError(u instanceof Error?u:new Error(String(u)),"cloud_build_failure",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:c}),u}}function Vl(e){let t=$.join(e,"wrangler.json");if(!I.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(I.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 Jg(e){try{let t=$.dirname(e);t.includes(".tmp/webflow-build-")&&(d.info(T.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
134
+ `)),I.rmSync(t,{recursive:!0,force:!0}))}catch(t){d.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function Hg(e,t){try{if(!t.config.config_template_path)return;let n=$.join(__dirname,t.config.config_template_path),r=$.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));d.info(T.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
135
+ `));for(let s of["mjs","cjs","js","ts"]){let a=$.join(e,`clouduser.${o}.${s}`),c=$.join(e,`${o}.${s}`);if(I.existsSync(a)){d.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),I.existsSync(c)&&I.unlinkSync(c),I.renameSync(a,c);break}}for(let s of[".jsonc",".json"]){let a=$.join(e,`clouduser.wrangler${s}`);if(I.existsSync(a)){d.info(`restoring user wrangler${s} from backup...`);let c=$.join(e,"wrangler.json");I.existsSync(c)&&I.unlinkSync(c);let l=$.join(e,`wrangler${s}`);I.renameSync(a,l);break}}let i=$.join(e,"clouduser");I.existsSync(i)&&(d.info("cleaning up clouduser directory..."),I.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=$.join(e,$.basename(s));I.existsSync(a)&&(d.info(`cleaning up additional config file ${a}...`),I.unlinkSync(a))}}catch(n){d.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function TE(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=$.join(e,"package.json"),c=JSON.parse(I.readFileSync(a,"utf8"));c.dependencies?.["@astrojs/react"]||c.devDependencies?.["@astrojs/react"]||(d.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,cr.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=$.join(e,"package-lock.json");I.existsSync(i)?(d.info("Running npm ci..."),(0,cr.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(d.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,cr.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:I.existsSync($.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:I.existsSync($.join(e,"package-lock.json"))}),i}}async function AE(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=$.join(__dirname,t.config.config_template_path),s=$.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let p of["mjs","cjs","js","ts"]){let f=$.join(e,`${a}.${p}`);if(I.existsSync(f)){let m=$.join(e,`clouduser.${a}.${p}`);d.info(`renaming user base config /${a}.${p} to /clouduser.${a}.${p}...`),I.renameSync(f,m);break}}let c=$.join(e,s);d.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let u=I.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);I.writeFileSync(c,u);for(let p of t.config.additional_config_files||[]){let f=$.join(__dirname,p);I.statSync(f,{throwIfNoEntry:!1})?(d.info(`copying additional config file /${p} to ${$.join(e,$.basename(p))}`),I.copyFileSync(f,$.join(e,$.basename(p)))):d.warn(`additional config file /${p} does not exist; skipping`)}}async function OE(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,cr.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 PE(e,t){I.mkdirSync(t,{recursive:!0});let n=$.join(e,"wrangler.json"),r=$.join(e,"wrangler.jsonc");if(!I.existsSync(n)&&!I.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,cr.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function IE(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=$.join(e,o);if(I.existsSync(p)&&I.statSync(p).isDirectory()){let m=I.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=$.join(t,"assets",s||"");I.mkdirSync(a,{recursive:!0});let c=$.join(e,o);if(I.existsSync(c)&&I.statSync(c).isDirectory()){d.info(`copying assets from /${o} to output/assets...`);try{i?(d.info(`excluding ${i}`),Zg(c,a,i)):Ul(c,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=$.join(e,"webflow.json");I.existsSync(l)&&I.copyFileSync(l,$.join(t,"webflow.json"));let u=null;for(let p of[".json",".jsonc"]){let f=$.join(e,`clouduser.wrangler${p}`);if(I.existsSync(f)){u=f;break}}if(u){d.info("including user wrangler config in output..."),I.copyFileSync(u,$.join(t,"clouduser.wrangler.json"));let p=$.join(e,"clouduser","migrations");if(I.existsSync(p)){d.info("copying migrations from clouduser/migrations to output/migrations...");let f=$.join(t,"migrations");Ul(p,f)}}}async function RE(e){let t=`${e}.tar.gz`;try{return await Gg.create({gzip:!0,file:t,cwd:$.dirname(e)},[$.basename(e)]),d.info(`Tarball created: ${t}`),t}catch(n){throw new w(n,{prefix:"Failed to create tarball:"})}}function Ul(e,t){I.mkdirSync(t,{recursive:!0});let n=I.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=$.join(e,r.name),i=$.join(t,r.name);r.isDirectory()?Ul(o,i):I.copyFileSync(o,i)}}function Zg(e,t,n){I.mkdirSync(t,{recursive:!0});let r=I.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=$.join(e,o.name),s=$.join(t,o.name);o.isDirectory()?Zg(i,s,n):I.copyFileSync(i,s)}}De();ue();V();var BE="DUPLICATE_ENVIRONMENT_MOUNT",jE="ENVIRONMENT_MOUNT_MISMATCH",LE="DUPLICATE_ENVIRONMENT_BRANCH",NE="INVALID_MOUNT_PATH_FORMAT",$E="INVALID_PROJECT_ID",Kg={[BE]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[jE]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[LE]:"An environment with this branch already exists for this project.",[NE]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[$E]:"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 Yg(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 Kg)if(n.includes(r))return Kg[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var ur=D(require("fs")),Gl=require("child_process");V();se();Ve();var Xg=104857600;function Qg(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 ME(){try{let e=(0,Gl.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,Gl.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 ql(e,t,n){let r=await fetch(`${J}${t}`,{method:n.method,headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:n.body?JSON.stringify(n.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=Yg(i);throw new Error(s)}return r.json()}async function ey(e,t,n,r){let{manifest:o}=X(),i=o.cloud||{},s=i.project_id,a=i.framework;if(!a)throw new w("No framework specified in webflow.json. Please ensure your webflow.json has a cloud.framework property");let c=await zE(e,{siteId:e.siteId,apiToken:e.accessToken,framework:a,mountPath:n,environment:t,projectId:s,projectName:r?.projectName,description:r?.description,directory:r?.directory,version:ME()});return!s&&c.project_id&&(d.info("\u{1F4DD} Updating webflow.json with project ID..."),fe({cloud:{...i,project_id:c.project_id}})),c}async function zE(e,t){let{siteId:n,framework:r,mountPath:o,environment:i,version:s,projectId:a,projectName:c,description:l,directory:u}=t,p={framework:r,mount_path:o,environment:i,version:s};return a&&(p.project_id=a),c&&(p.project_name=c),l&&(p.description=l),u&&(p.app_path=u),ql(e.accessToken,`/cosmic/${n}/cli-deploy-init`,{method:"POST",body:p})}async function ty(e,t){return ql(e.accessToken,`/cosmic/${e.siteId}/cli-project-environments/${t}`,{method:"GET"})}async function ny(e){return ql(e.accessToken,`/cosmic/${e.siteId}/cli-projects`,{method:"GET"})}async function ry(e,t){if(!ur.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=ur.statSync(e);if(n.size>Xg)throw new Error(`Build output is too large (${Qg(n.size)}). Maximum allowed size is ${Qg(Xg)}.`);let r=ur.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(([c,l])=>{i.append(c,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 c=await a.text();throw new w(c,{prefix:`${re} Upload failed with response:`})}}async function oy(e,t){if(!e||e==="undefined")throw new w("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 w(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}var iy=require("webflow-api");ue();ue();se();function Jl(e){return new iy.WebflowClient({accessToken:e,environment:{base:`${J}/v2`,dataApi:`${J}/v2`,contentDeliveryApi:`${go}/v2`}})}async function Qr(e,t){try{let r=await Jl(e).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 w(n,{prefix:"Error fetching site details:"})}}async function Hl(e,t){try{return{customDomains:(await Jl(e).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new w(n,{prefix:"Error fetching custom domains:"})}}async function Zl(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 w(t,{prefix:`Failed to fetch manifest from ${e}:`})}}function Kl(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 sy(e,t,n){try{let r=Jl(e),o=await Qr(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(c=>c.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw new w(r,{prefix:"Error publishing site:"})}}qe();fs();V();async function ay(e,t,n){let{siteId:r,accessToken:o}=e,i=kn("Validating mount path configuration...").start();try{let s=await Qr(o,r),a=await Hl(o,r),c=[`${s.shortName}.webflow.io`,...a.customDomains?.map(y=>y.url)||[]],l=0;i.text=`Validating ${c.length} domain(s) for mount path: ${t}... (0/${c.length})`;let u=c.map(async y=>{try{let v=await Zl(y),A=Array.isArray(v.cosmic)?v.cosmic.map(z=>z.mountPath).filter(z=>typeof z=="string"):[],E=Kl(v,t,n);return{domain:y,mountPaths:A,isValid:E===!0}}catch(v){return{domain:y,mountPaths:[],isValid:!1,error:v instanceof Error?v.message:String(v)}}finally{l++,i.text=`Validating ${c.length} domain(s) for mount path: ${t}... (${l}/${c.length})`}}),p=await Promise.all(u),f=p.some(y=>!y.isValid),m=p.every(y=>y.isValid);return i.succeed("Mount path validation completed"),{isValid:m,domains:p,needsPublishing:f}}catch(s){throw i.fail("Mount path validation failed"),s}}async function ly(e,t,n){let{siteId:r,accessToken:o}=e;try{let i=await Qr(o,r),s=await Hl(o,r),c=[`${i.shortName}.webflow.io`,...s.customDomains?.map(u=>u.url)||[]].map(async u=>{try{let p=await Zl(u),f=Kl(p,t,n);return{domain:u,isValid:f}}catch(p){return d.debug(`Could not verify mount path for ${u}: ${p}`),{domain:u,isValid:!1}}});return(await Promise.all(c)).filter(u=>u.isValid).map(u=>u.domain)}catch(i){return d.debug(`Error getting valid domains: ${i}`),[]}}function cy(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function uy(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 py(){return await Ge({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 Yl(e,t){let{siteId:n,accessToken:r}=e,o=kn(`Publishing site to ${t.length} domain(s)...`).start();try{let s=`${(await Qr(r,n)).shortName}.webflow.io`,a=t.includes(s),c=t.filter(l=>l!==s);await sy(r,n,{domains:c,publishToWebflowSubdomain:a}),o.succeed(`Site published successfully to selected domains: ${t.join(", ")}`)}catch{throw o.fail("Failed to publish site"),new Error("Failed to publish site")}}De();V();We();ue();Fe();se();Ve();var $i=async()=>{try{let e=await jl();return Object.keys(e)}catch(e){return d.error(e,{prefix:"Failed to get available scaffolds:"}),[]}},Xl=async(e,t,n=Si,r)=>{let o=`./${e}`,i=await jl(),s=null,a=!1;try{let c=Date.now(),{manifest:l}=X(),u=await Je(l,{site:r}),p=u.accessToken,f=u.siteId;if(s=Q.forCloud({authToken:p,siteId:f}),await Bl(e,t,n,i,f,p),process.chdir(o),f){d.info("Running devlink sync to fetch your Webflow components...");try{await WE({site:f,apiToken:p}),a=!0}catch(y){d.error(y,{prefix:"Failed to run devlink sync:"}),d.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}}let m=Date.now()-c;await s?.sendUsage("project_init",{scaffold:n,scaffoldName:n,devlinkSyncStatus:a,totalDuration:m,mountPath:t}),dy(e)}catch(c){throw d.error(c,{prefix:"Error during Webflow authentication:"}),await Bl(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"),dy(e),new w(c,{skipLogging:!0})}},WE=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(pl(),Wm));await t(void 0,{site:e.site,apiToken:e.apiToken})},UE=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=X();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},VE=async(e,t,n,r)=>{d.info("\u{1F50D} Validating mount path configuration...");let o=await ay(e,t,n);if(o.isValid)d.info(`${ie} Mount path validation passed`);else if(d.info(`
136
+ \u{1F4CB} Mount path validation results:`),o.domains.forEach(i=>{let s=i.isValid?ie:re,a=i.isValid?`(mountPath: ${i.mountPaths[0]})`:"(no matching mountPath)";d.info(`${s} ${i.domain} ${a}`),i.error&&d.debug(` Error: ${i.error}`)}),o.needsPublishing)if(r){d.info("\u{1F680} Auto-publishing site to update mount path configuration...");let i=o.domains.filter(s=>!s.isValid).map(s=>s.domain);await Yl(e,i)}else if(await py()&&vt()){let s=o.domains.filter(c=>!c.isValid).map(c=>c.domain),a=await uy(s);await Yl(e,a)}else d.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},GE=async(e,t,n,r)=>{d.info(`
137
+ \u{1F3D7}\uFE0F Building project...`);let o=await qg(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 ry(o,t.upload_url);let s=Date.now()-i;return d.info(`${ie} Upload completed in ${(s/1e3).toFixed(1)}s`),o},qE=async(e,t,n)=>{d.success(`
138
+ \u{1F310} Your cloud app will soon be available at:`);try{let r=await ly(e,t,n),o=cy(r,t);o.length>0?o.forEach(i=>{d.info(` ${i}`)}):d.warn(" No domains found with the correct mount path configuration yet.")}catch(r){d.warn(` Could not determine deployment links: ${r instanceof Error?r.message:r}`)}},JE=e=>{e.site_slug?d.success(`Visit your deployment:
140
139
 
141
- ${Fn}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):d.info(`
142
- Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},t_=async(e,t,n,r)=>{try{await dy(t.completion_url,!!r),r?d.error(`
143
- ${ie} Deployment failed due to build error.`):(d.success(`
144
- ${oe} Deployment triggered successfully!`),await QE(e,n,t.environment_id),e_(t))}catch(o){throw new w(o,{prefix:"Failed to trigger deployment:"})}},n_=(e,t)=>{e&&ny(process.cwd(),e),t&&ty(t)},vy=async(e,t,n,r)=>{let o=null,i=null,s=Date.now(),a=null,c=null,l=Jl(process.cwd()),u=r?.telemetry;await u?.sendUsage("cloud_deploy_start",{environment:t,mountPath:n,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,cloudflareBindings:l});try{d.info("\u{1F527} Detecting framework..."),a=await Ag(),d.info(`Framework: ${a.framework}`),d.info(`Build command: ${a.config.build_command}`),d.info("\u{1F3D7}\uFE0F Building project..."),o=await ly(e,t,n,r),KE(r)?d.info("\u23ED\uFE0F Skipping mount path validation..."):await YE(e,n,o.environment_id,r?.autoPublish),i=await XE(a,o,n,r),d.info(`Starting deployment process for environment: ${t} at mount path: ${n}`);let p=Date.now()-s;await u?.sendUsage("cloud_deploy_success",{duration:p,environment:t,mountPath:n,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,framework:a.framework,buildCommand:a.config.build_command,cloudflareBindings:l})}catch(p){c=p instanceof Error?p:new Error(String(p)),d.error(c,{prefix:"Error during deployment initialization:"});let f=Date.now()-s;await u?.sendError(c,"cloud_deploy_failure",{duration:f,environment:t,mountPath:n,projectName:r?.projectName,cloudflareBindings:l,argv:process.argv.slice(2)})}finally{if(n_(a,i),o&&await t_(e,o,n,c),c)throw new w(c,{skipLogging:!0})}},wy=e=>{d.info("--- "),d.info(T.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
140
+ ${En}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):d.info(`
141
+ Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},HE=async(e,t,n,r)=>{try{await oy(t.completion_url,!!r),r?d.error(`
142
+ ${re} Deployment failed due to build error.`):(d.success(`
143
+ ${ie} Deployment triggered successfully!`),await qE(e,n,t.environment_id),JE(t))}catch(o){throw new w(o,{prefix:"Failed to trigger deployment:"})}},ZE=(e,t)=>{e&&Hg(process.cwd(),e),t&&Jg(t)},fy=async(e,t,n,r)=>{let o=null,i=null,s=Date.now(),a=null,c=null,l=Vl(process.cwd()),u=r?.telemetry;await u?.sendUsage("cloud_deploy_start",{environment:t,mountPath:n,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,cloudflareBindings:l});try{d.info("\u{1F527} Detecting framework..."),a=await kg(),d.info(`Framework: ${a.framework}`),d.info(`Build command: ${a.config.build_command}`),d.info("\u{1F3D7}\uFE0F Building project..."),o=await ey(e,t,n,r),UE(r)?d.info("\u23ED\uFE0F Skipping mount path validation..."):await VE(e,n,o.environment_id,r?.autoPublish),i=await GE(a,o,n,r),d.info(`Starting deployment process for environment: ${t} at mount path: ${n}`);let p=Date.now()-s;await u?.sendUsage("cloud_deploy_success",{duration:p,environment:t,mountPath:n,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,framework:a.framework,buildCommand:a.config.build_command,cloudflareBindings:l})}catch(p){c=p instanceof Error?p:new Error(String(p)),d.error(c,{prefix:"Error during deployment initialization:"});let f=Date.now()-s;await u?.sendError(c,"cloud_deploy_failure",{duration:f,environment:t,mountPath:n,projectName:r?.projectName,cloudflareBindings:l,argv:process.argv.slice(2)})}finally{if(ZE(a,i),o&&await HE(e,o,n,c),c)throw new w(c,{skipLogging:!0})}},dy=e=>{d.info("--- "),d.info(T.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
145
144
 
146
145
  `),d.info("Run the following command to sync Webflow components when they update:"),d.info(` webflow devlink sync
147
- `),d.info("--- ")};De();qe();ut();Qe();V();Fe();var ky=D(require("path"));function yn(e){if(!e||e.trim()==="")return"/";let t=ky.posix.normalize(e);return t.startsWith("/")||(t="/"+t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t=t.split("/").map((r,o)=>o===0?r:encodeURIComponent(r)).join("/"),t}function $i(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}ce();var xy=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 Ni()).find(a=>a===o)){d.error(`Framework ${o} not found`);return}await tc(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await Ni();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 Ni(),i={};if(r&&vt()){if(!n.projectName){let p=await Pe({message:"What would you like to name your project?",validate:f=>f.trim()===""?"Project name cannot be empty":!0});if(p==null)throw new w("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 Oe({message:"Which framework would you like to use?",choices:o.map(p=>({name:p,value:p})),default:"astro"})),!n.mount){let p=await Pe({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=yn(p)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,c=n.mount||i.mountPath||"/app",l=n.siteId,u=yn(c);if(!s||typeof s!="string"||s.trim()==="")throw new w("--project-name cannot be empty");if(!a||typeof a!="string"||!o.includes(a)){let p=o.map(f=>`- ${f}`).join(`
146
+ `),d.info("--- ")};De();qe();ut();et();V();Fe();var my=D(require("path"));function bn(e){if(!e||e.trim()==="")return"/";let t=my.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 Mi(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}se();var hy=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 $i()).find(a=>a===o)){d.error(`Framework ${o} not found`);return}await Xl(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await $i();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 $i(),i={};if(r&&vt()){if(!n.projectName){let p=await Pe({message:"What would you like to name your project?",validate:f=>f.trim()===""?"Project name cannot be empty":!0});if(p==null)throw new w("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 Oe({message:"Which framework would you like to use?",choices:o.map(p=>({name:p,value:p})),default:"astro"})),!n.mount){let p=await Pe({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=bn(p)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,c=n.mount||i.mountPath||"/app",l=n.siteId,u=bn(c);if(!s||typeof s!="string"||s.trim()==="")throw new w("--project-name cannot be empty");if(!a||typeof a!="string"||!o.includes(a)){let p=o.map(f=>`- ${f}`).join(`
148
147
  `);throw new w(`--framework "${a||"undefined"}" not found
149
148
 
150
149
  Available frameworks:
151
- ${p}`)}if(typeof u!="string"||!$i(u))throw new w("Invalid mount path: "+u);if(!l&&(!r||le()))throw new w("--site-id is required");await tc(s,u,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{manifest:r}=X(),o=await Je(r),i;try{i=Q.forCloud({authToken:o.accessToken,siteId:o.siteId})}catch(s){d.debug(`Failed to initialize telemetry: ${s}`)}try{if(n.directory)try{process.chdir(n.directory),d.info(`Changed directory to: ${n.directory}`)}catch(m){throw d.error(`Error: Could not change to directory ${n.directory}`),new w(m)}let{manifest:s}=X(),c=(s.cloud||{}).project_id,l,u,p=n.projectName,f=n.description;if(n.environment&&n.mount){if(l=n.environment,u=yn(n.mount),!$i(u))throw new w("Invalid mount path: "+u)}else{let m=[];if(!c){if(!p&&le())throw new w("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");try{let v=await uy(o);if(v.projects.length>0){let A=await Oe({message:"Select a project to deploy to:",choices:[...v.projects.map(E=>({name:`${E.name} (${E.description||"No description"})`,value:E.id})),{name:"Create new project",value:null}]});A?(c=A,d.info("\u{1F4DD} Updating webflow.json with project ID..."),fe({cloud:{project_id:A}})):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(v){d.warn("Could not fetch existing projects. A new project will be created during deployment."),d.warn(v instanceof Error?v.message:String(v))}}if(!c&&!p&&(p=await Pe({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:v=>v.trim()===""?"Project name cannot be empty":!0})),c)try{let A=(await cy(o,c)).environments.map(E=>({name:`${E.branch} (${E.mount})`,value:{branch:E.branch,mount:E.mount}}));m.push(...A)}catch(v){throw new w(v,{prefix:"Error fetching project environments:"})}m.push({name:"Create new environment",value:null});let y=await Oe({message:"Select an environment to deploy to:",choices:m});if(y)l=y.branch,u=yn(y.mount);else if(n.environment?l=n.environment:l=await Pe({message:"What environment would you like to deploy to?",default:"main",validate:v=>v.trim()===""?"Environment cannot be empty":!0}),n.mount)u=yn(n.mount);else{let v=await Pe({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=yn(v)}}if(!$i(u))throw new w("Invalid mount path: "+u);await vy(o,l,u,{projectName:p,description:f,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:i})}catch(s){throw new w(s,{prefix:"Error during deployment setup:"})}})};ut();Qe();De();V();ce();Ve();We();ue();Ut();ce();ce();function we(e,t){if(/[\x00-\x1f?#%/\\]/.test(e)||e.includes(".."))throw new w(`Invalid ${t}: "${e}" contains disallowed characters.`)}async function Cy(e,t){we(t,"siteId");let n=await se(`${J}/v2/sites/${t}/collections`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!n.ok)throw new w(`Failed to list collections: ${n.status} ${n.statusText}`);return(await n.json()).collections??[]}async function Fy(e,t){we(t,"collectionId");let n=await se(`${J}/v2/collections/${t}`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!n.ok)throw new w(`Failed to get collection: ${n.status} ${n.statusText}`);let r=await n.json();return{...r,fields:r.fields??[]}}async function Ey(e,t,n){we(t,"siteId");let r={displayName:n.displayName,singularName:n.singularName};n.slug&&(r.slug=n.slug);let o=await se(`${J}/v2/sites/${t}/collections`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new w(`Failed to create collection: ${o.status} ${o.statusText}`);return await o.json()}async function _y(e,t,n){we(t,"collectionId");let r=await se(`${J}/v2/collections/${t}/fields`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({displayName:n.displayName,type:n.type,isRequired:n.isRequired??!1})});if(!r.ok)throw new w(`Failed to create field: ${r.status} ${r.statusText}`);return await r.json()}async function Sy(e,t,n={}){we(t,"collectionId");let r=new URLSearchParams;n.limit!=null&&r.set("limit",String(n.limit)),n.offset!=null&&r.set("offset",String(n.offset)),n.cmsLocaleId&&r.set("cmsLocaleId",n.cmsLocaleId);let o=r.toString()?`?${r.toString()}`:"",i=await se(`${J}/v2/collections/${t}/items${o}`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!i.ok)throw new w(`Failed to list items: ${i.status} ${i.statusText}`);let s=await i.json();return{items:s.items??[],total:s.total??0,count:s.count??s.items?.length??0,limit:s.limit??n.limit??100,offset:s.offset??n.offset??0}}async function Ty(e,t,n,r){we(t,"collectionId"),we(n,"itemId");let o=r?`?cmsLocaleId=${encodeURIComponent(r)}`:"",i=await se(`${J}/v2/collections/${t}/items/${n}${o}`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!i.ok)throw new w(`Failed to get item: ${i.status} ${i.statusText}`);return await i.json()}async function Ay(e,t,n,r=!1){we(t,"collectionId");let o=await se(`${J}/v2/collections/${t}/items`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({fieldData:n,isDraft:r})});if(!o.ok)throw new w(`Failed to create item: ${o.status} ${o.statusText}`);return await o.json()}async function Oy(e,t,n,r){we(t,"collectionId"),we(n,"itemId");let o=await se(`${J}/v2/collections/${t}/items/${n}`,{method:"PATCH",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({fieldData:r})});if(!o.ok)throw new w(`Failed to update item: ${o.status} ${o.statusText}`);return await o.json()}async function Py(e,t,n){we(t,"collectionId"),we(n,"itemId");let r=await se(`${J}/v2/collections/${t}/items/${n}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!r.ok)throw new w(`Failed to delete item: ${r.status} ${r.statusText}`)}async function Iy(e,t,n){we(t,"collectionId"),n.forEach(o=>we(o,"itemId"));let r=await se(`${J}/v2/collections/${t}/items/publish`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({itemIds:n})});if(!r.ok)throw new w(`Failed to publish items: ${r.status} ${r.statusText}`);return await r.json()}function Ry(e,t=["id","displayName","slug"]){if(e.length===0)return T.dim("No collections found.");let n=["id","displayName","singularName","slug","lastUpdated"],r=t.filter(s=>n.includes(s));if(r.length===0)return T.red(`Invalid fields. Available: ${n.join(", ")}`);let o=r.map(s=>T.bold(s)),i=e.map(s=>r.map(a=>{let c=s[a];return c?a==="lastUpdated"?new Date(c).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):c:T.dim("\u2014")}));return nc(o,i)}function jy(e){let t=[`${T.bold("Collection:")} ${e.displayName}`,`${T.bold("ID:")} ${e.id}`,`${T.bold("Slug:")} ${e.slug}`,`${T.bold("Singular:")} ${e.singularName}`,`${T.bold("Updated:")} ${new Date(e.lastUpdated).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}`,"",T.bold("Fields:")];if(e.fields.length===0)return t.push(T.dim(" No fields defined.")),t.join(`
152
- `);let n=["NAME","SLUG","TYPE","REQUIRED"].map(o=>T.bold(o)),r=e.fields.map(o=>[o.displayName,o.slug,o.type,o.isRequired?"yes":"no"]);return t.push(nc(n,r)),t.join(`
153
- `)}function By(e,t=["id","isDraft","lastUpdated"]){if(e.length===0)return T.dim("No items found.");let n=t.map(o=>T.bold(o)),r=e.map(o=>t.map(i=>{if(i==="fieldData")return JSON.stringify(o.fieldData);if(i==="isDraft")return o.isDraft?T.yellow("draft"):T.green("live");if(i==="isArchived")return o.isArchived?T.dim("archived"):"";if(i==="lastUpdated"||i==="lastPublished"||i==="createdOn"){let a=o[i];return a?new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):T.dim("\u2014")}let s=o[i];return s==null?T.dim("\u2014"):String(s)}));return nc(n,r)}function nc(e,t){let n=e.map((s,a)=>Math.max(T.reset(s).length,...t.map(c=>T.reset(String(c[a])).length))),r=n.map(s=>"\u2500".repeat(s+2)).join("\u2500"),o=e.map((s,a)=>T.reset(s).padEnd(n[a]+2)).join(""),i=t.map(s=>s.map((a,c)=>T.reset(String(a)).padEnd(n[c]+2)).join("")).join(`
150
+ ${p}`)}if(typeof u!="string"||!Mi(u))throw new w("Invalid mount path: "+u);if(!l&&(!r||le()))throw new w("--site-id is required");await Xl(s,u,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{manifest:r}=X(),o=await Je(r),i;try{i=Q.forCloud({authToken:o.accessToken,siteId:o.siteId})}catch(s){d.debug(`Failed to initialize telemetry: ${s}`)}try{if(n.directory)try{process.chdir(n.directory),d.info(`Changed directory to: ${n.directory}`)}catch(m){throw d.error(`Error: Could not change to directory ${n.directory}`),new w(m)}let{manifest:s}=X(),c=(s.cloud||{}).project_id,l,u,p=n.projectName,f=n.description;if(n.environment&&n.mount){if(l=n.environment,u=bn(n.mount),!Mi(u))throw new w("Invalid mount path: "+u)}else{let m=[];if(!c){if(!p&&le())throw new w("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");try{let v=await ny(o);if(v.projects.length>0){let A=await Oe({message:"Select a project to deploy to:",choices:[...v.projects.map(E=>({name:`${E.name} (${E.description||"No description"})`,value:E.id})),{name:"Create new project",value:null}]});A?(c=A,d.info("\u{1F4DD} Updating webflow.json with project ID..."),fe({cloud:{project_id:A}})):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(v){d.warn("Could not fetch existing projects. A new project will be created during deployment."),d.warn(v instanceof Error?v.message:String(v))}}if(!c&&!p&&(p=await Pe({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:v=>v.trim()===""?"Project name cannot be empty":!0})),c)try{let A=(await ty(o,c)).environments.map(E=>({name:`${E.branch} (${E.mount})`,value:{branch:E.branch,mount:E.mount}}));m.push(...A)}catch(v){throw new w(v,{prefix:"Error fetching project environments:"})}m.push({name:"Create new environment",value:null});let y=await Oe({message:"Select an environment to deploy to:",choices:m});if(y)l=y.branch,u=bn(y.mount);else if(n.environment?l=n.environment:l=await Pe({message:"What environment would you like to deploy to?",default:"main",validate:v=>v.trim()===""?"Environment cannot be empty":!0}),n.mount)u=bn(n.mount);else{let v=await Pe({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=bn(v)}}if(!Mi(u))throw new w("Invalid mount path: "+u);await fy(o,l,u,{projectName:p,description:f,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:i})}catch(s){throw new w(s,{prefix:"Error during deployment setup:"})}})};ut();et();De();V();se();Ve();We();ue();Vt();se();se();function we(e,t){if(/[\x00-\x1f?#%/\\]/.test(e)||e.includes(".."))throw new w(`Invalid ${t}: "${e}" contains disallowed characters.`)}async function gy(e,t){we(t,"siteId");let n=await ce(`${J}/v2/sites/${t}/collections`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!n.ok)throw new w(`Failed to list collections: ${n.status} ${n.statusText}`);return(await n.json()).collections??[]}async function yy(e,t){we(t,"collectionId");let n=await ce(`${J}/v2/collections/${t}`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!n.ok)throw new w(`Failed to get collection: ${n.status} ${n.statusText}`);let r=await n.json();return{...r,fields:r.fields??[]}}async function by(e,t,n){we(t,"siteId");let r={displayName:n.displayName,singularName:n.singularName};n.slug&&(r.slug=n.slug);let o=await ce(`${J}/v2/sites/${t}/collections`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new w(`Failed to create collection: ${o.status} ${o.statusText}`);return await o.json()}async function Dy(e,t,n){we(t,"collectionId");let r=await ce(`${J}/v2/collections/${t}/fields`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({displayName:n.displayName,type:n.type,isRequired:n.isRequired??!1})});if(!r.ok)throw new w(`Failed to create field: ${r.status} ${r.statusText}`);return await r.json()}async function wy(e,t,n={}){we(t,"collectionId");let r=new URLSearchParams;n.limit!=null&&r.set("limit",String(n.limit)),n.offset!=null&&r.set("offset",String(n.offset)),n.cmsLocaleId&&r.set("cmsLocaleId",n.cmsLocaleId);let o=r.toString()?`?${r.toString()}`:"",i=await ce(`${J}/v2/collections/${t}/items${o}`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!i.ok)throw new w(`Failed to list items: ${i.status} ${i.statusText}`);let s=await i.json();return{items:s.items??[],total:s.total??0,count:s.count??s.items?.length??0,limit:s.limit??n.limit??100,offset:s.offset??n.offset??0}}async function vy(e,t,n,r){we(t,"collectionId"),we(n,"itemId");let o=r?`?cmsLocaleId=${encodeURIComponent(r)}`:"",i=await ce(`${J}/v2/collections/${t}/items/${n}${o}`,{headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!i.ok)throw new w(`Failed to get item: ${i.status} ${i.statusText}`);return await i.json()}async function ky(e,t,n,r=!1){we(t,"collectionId");let o=await ce(`${J}/v2/collections/${t}/items`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({fieldData:n,isDraft:r})});if(!o.ok)throw new w(`Failed to create item: ${o.status} ${o.statusText}`);return await o.json()}async function xy(e,t,n,r){we(t,"collectionId"),we(n,"itemId");let o=await ce(`${J}/v2/collections/${t}/items/${n}`,{method:"PATCH",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({fieldData:r})});if(!o.ok)throw new w(`Failed to update item: ${o.status} ${o.statusText}`);return await o.json()}async function Cy(e,t,n){we(t,"collectionId"),we(n,"itemId");let r=await ce(`${J}/v2/collections/${t}/items/${n}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`,Accept:"application/json"}});if(!r.ok)throw new w(`Failed to delete item: ${r.status} ${r.statusText}`)}async function Fy(e,t,n){we(t,"collectionId"),n.forEach(o=>we(o,"itemId"));let r=await ce(`${J}/v2/collections/${t}/items/publish`,{method:"POST",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({itemIds:n})});if(!r.ok)throw new w(`Failed to publish items: ${r.status} ${r.statusText}`);return await r.json()}function Ey(e,t=["id","displayName","slug"]){if(e.length===0)return T.dim("No collections found.");let n=["id","displayName","singularName","slug","lastUpdated"],r=t.filter(s=>n.includes(s));if(r.length===0)return T.red(`Invalid fields. Available: ${n.join(", ")}`);let o=r.map(s=>T.bold(s)),i=e.map(s=>r.map(a=>{let c=s[a];return c?a==="lastUpdated"?new Date(c).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):c:T.dim("\u2014")}));return Ql(o,i)}function _y(e){let t=[`${T.bold("Collection:")} ${e.displayName}`,`${T.bold("ID:")} ${e.id}`,`${T.bold("Slug:")} ${e.slug}`,`${T.bold("Singular:")} ${e.singularName}`,`${T.bold("Updated:")} ${new Date(e.lastUpdated).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}`,"",T.bold("Fields:")];if(e.fields.length===0)return t.push(T.dim(" No fields defined.")),t.join(`
151
+ `);let n=["NAME","SLUG","TYPE","REQUIRED"].map(o=>T.bold(o)),r=e.fields.map(o=>[o.displayName,o.slug,o.type,o.isRequired?"yes":"no"]);return t.push(Ql(n,r)),t.join(`
152
+ `)}function Sy(e,t=["id","isDraft","lastUpdated"]){if(e.length===0)return T.dim("No items found.");let n=t.map(o=>T.bold(o)),r=e.map(o=>t.map(i=>{if(i==="fieldData")return JSON.stringify(o.fieldData);if(i==="isDraft")return o.isDraft?T.yellow("draft"):T.green("live");if(i==="isArchived")return o.isArchived?T.dim("archived"):"";if(i==="lastUpdated"||i==="lastPublished"||i==="createdOn"){let a=o[i];return a?new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):T.dim("\u2014")}let s=o[i];return s==null?T.dim("\u2014"):String(s)}));return Ql(n,r)}function Ql(e,t){let n=e.map((s,a)=>Math.max(T.reset(s).length,...t.map(c=>T.reset(String(c[a])).length))),r=n.map(s=>"\u2500".repeat(s+2)).join("\u2500"),o=e.map((s,a)=>T.reset(s).padEnd(n[a]+2)).join(""),i=t.map(s=>s.map((a,c)=>T.reset(String(a)).padEnd(n[c]+2)).join("")).join(`
154
153
  `);return`${o}
155
154
  ${r}
156
- ${i}`}var Ly=e=>{let t=e.command("cms").description("Manage Webflow CMS content"),n=t.command("collections").description("Manage CMS collections");n.command("list").description("List all CMS collections for a site").option("--site <siteId>","Site ID (falls back to manifest or prompts)").option("--json","Output as JSON").option("--fields <fields>","Comma-separated fields to display (id, displayName, singularName, slug, lastUpdated)","id,displayName,slug").action(async i=>{let s,a;if(i.site)s=await me(),a=i.site;else{let{manifest:u}=X(),p=await Je(u);s=p.accessToken,a=p.siteId}let c=Q.forCms({authToken:s,siteId:a}),l=Date.now();try{let u=await Cy(s,a);if(await c.sendUsage("cms_collections_list",{duration:Date.now()-l,count:u.length}),u.length===0){d.info("No collections found.");return}if(i.json){d.info(JSON.stringify(u,null,2));return}let p=i.fields.split(",").map(f=>f.trim());d.info(Ry(u,p))}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_collections_list",{duration:Date.now()-l}),new w(u,{prefix:`${ie} Failed to list collections:`})}}),n.command("get").description("Get details and field schema for a CMS collection").argument("<collectionId>","Collection ID").option("--json","Output as JSON").action(async(i,s)=>{let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await Fy(a,i);if(await c.sendUsage("cms_collections_get",{duration:Date.now()-l}),s.json){d.info(JSON.stringify(u,null,2));return}d.info(jy(u))}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_collections_get",{duration:Date.now()-l}),new w(u,{prefix:`${ie} Failed to get collection:`})}}),n.command("create").description("Create a new CMS collection on a site. Use --dry-run to preview.").option("--site <siteId>","Site ID (falls back to manifest or prompts)").requiredOption("--name <displayName>","Collection display name").option("--singular-name <singularName>","Singular name (defaults to --name)").option("--slug <slug>","URL slug for the collection (auto-derived from --name if omitted)").option("--dry-run","Preview without executing").option("--json","Output as JSON").action(async i=>{let s=i.singularName??i.name,a=i.slug??i.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(i.dryRun){d.info("Dry run \u2014 would create collection:"),d.info(JSON.stringify({displayName:i.name,singularName:s,slug:a},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let c,l;if(i.site)c=await me(),l=i.site;else{let{manifest:f}=X(),m=await Je(f);c=m.accessToken,l=m.siteId}let u=Q.forCms({authToken:c,siteId:l}),p=Date.now();try{let f=await Ey(c,l,{displayName:i.name,singularName:s,slug:a});if(await u.sendUsage("cms_collections_create",{duration:Date.now()-p}),i.json){d.info(JSON.stringify(f,null,2));return}d.info(`${oe} Collection created: ${f.id}`),d.info(` Name: ${f.displayName}`),d.info(` Slug: ${f.slug}`)}catch(f){throw await u.sendError(f instanceof Error?f:new Error(String(f)),"cms_collections_create",{duration:Date.now()-p}),new w(f,{prefix:`${ie} Failed to create collection:`})}}),t.command("fields").description("Manage CMS collection fields").command("create").description("Add a field to a CMS collection. Use --dry-run to preview.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--name <displayName>","Field display name").requiredOption("--type <type>","Field type (e.g. PlainText, RichText, Number, DateTime, Link, Image, Video, Color, Bool, Option, ItemRef, ItemRefSet)").option("--required","Mark field as required").option("--dry-run","Preview without executing").option("--json","Output as JSON").action(async i=>{if(i.dryRun){d.info("Dry run \u2014 would create field:"),d.info(JSON.stringify({collectionId:i.collection,displayName:i.name,type:i.type,isRequired:i.required??!1},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let s=await me(),a=Q.forCms({authToken:s}),c=Date.now();try{let l=await _y(s,i.collection,{displayName:i.name,type:i.type,isRequired:i.required??!1});if(await a.sendUsage("cms_fields_create",{duration:Date.now()-c}),i.json){d.info(JSON.stringify(l,null,2));return}d.info(`${oe} Field created: ${l.id}`),d.info(` Name: ${l.displayName}`),d.info(` Type: ${l.type}`),d.info(` Slug: ${l.slug}`)}catch(l){throw await a.sendError(l instanceof Error?l:new Error(String(l)),"cms_fields_create",{duration:Date.now()-c}),new w(l,{prefix:`${ie} Failed to create field:`})}});let o=t.command("items").description("Manage CMS items");o.command("list").description("List items in a CMS collection").requiredOption("--collection <collectionId>","Collection ID").option("--limit <n>","Maximum items to return (default: 100)","100").option("--offset <n>","Number of items to skip (default: 0)","0").option("--locale <cmsLocaleId>","CMS locale ID to filter by").option("--json","Output as JSON").option("--fields <fields>","Comma-separated fields to display (id, isDraft, isArchived, lastUpdated, fieldData)","id,isDraft,lastUpdated").action(async i=>{let s=await me(),a=Q.forCms({authToken:s}),c=Date.now(),l=parseInt(i.limit,10)||100,u=parseInt(i.offset,10)||0;try{let p=await Sy(s,i.collection,{limit:l,offset:u,cmsLocaleId:i.locale});if(await a.sendUsage("cms_items_list",{duration:Date.now()-c,count:p.items.length}),p.items.length===0){d.info("No items found.");return}if(i.json){d.info(JSON.stringify(p,null,2));return}let f=i.fields.split(",").map(A=>A.trim());d.info(By(p.items,f));let m=u+1,y=u+p.items.length;if(p.items.length>=l||u>0){let A=p.total>0?` of ${p.total}`:"";d.info(`
157
- Showing ${m}\u2013${y}${A} items. Use --offset ${y} to load next page.`)}}catch(p){throw await a.sendError(p instanceof Error?p:new Error(String(p)),"cms_items_list",{duration:Date.now()-c}),new w(p,{prefix:`${ie} Failed to list items:`})}}),o.command("get").description("Get a single CMS item by ID").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--item <itemId>","Item ID").option("--locale <cmsLocaleId>","CMS locale ID to retrieve content for").option("--json","Output as JSON").action(async i=>{let s=await me(),a=Q.forCms({authToken:s}),c=Date.now();try{let l=await Ty(s,i.collection,i.item,i.locale);if(await a.sendUsage("cms_items_get",{duration:Date.now()-c}),i.json){d.info(JSON.stringify(l,null,2));return}let u=l.isArchived?"archived":l.isDraft?"draft":"live";d.info(`${l.id} [${u}]`),d.info(` Last updated: ${new Date(l.lastUpdated).toLocaleString()}`),l.lastPublished&&d.info(` Last published: ${new Date(l.lastPublished).toLocaleString()}`),d.info(" Fields:"),d.info(JSON.stringify(l.fieldData,null,4).replace(/^/gm," "))}catch(l){throw await a.sendError(l instanceof Error?l:new Error(String(l)),"cms_items_get",{duration:Date.now()-c}),new w(l,{prefix:`${ie} Failed to get item:`})}}),o.command("create").description("Create a new CMS item. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--data <json>","Item field data as a JSON string").option("--draft","Create as draft (not published)").option("--dry-run","Preview the item that would be created without creating it").option("--json","Output as JSON").action(async i=>{let s;try{s=JSON.parse(i.data)}catch{throw new w(`Invalid JSON for --data: ${i.data}`)}if(i.dryRun){d.info("Dry run \u2014 would create item:"),d.info(JSON.stringify({fieldData:s,isDraft:i.draft??!1},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await Ay(a,i.collection,s,i.draft??!1);if(await c.sendUsage("cms_items_create",{duration:Date.now()-l,dryRun:!1}),i.json){d.info(JSON.stringify(u,null,2));return}d.info(`${oe} Item created: ${u.id}`)}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_items_create",{duration:Date.now()-l}),new w(u,{prefix:`${ie} Failed to create item:`})}}),o.command("update").description("Update an existing CMS item. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--item <itemId>","Item ID").requiredOption("--data <json>","Updated field data as a JSON string").option("--dry-run","Preview the update without applying it").option("--json","Output as JSON").action(async i=>{let s;try{s=JSON.parse(i.data)}catch{throw new w(`Invalid JSON for --data: ${i.data}`)}if(i.dryRun){d.info("Dry run \u2014 would update item:"),d.info(JSON.stringify({collectionId:i.collection,itemId:i.item,fieldData:s},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await Oy(a,i.collection,i.item,s);if(await c.sendUsage("cms_items_update",{duration:Date.now()-l,dryRun:!1}),i.json){d.info(JSON.stringify(u,null,2));return}d.info(`${oe} Item updated: ${u.id}`)}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_items_update",{duration:Date.now()-l}),new w(u,{prefix:`${ie} Failed to update item:`})}}),o.command("delete").description("Delete a CMS item. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--item <itemId>","Item ID").option("--dry-run","Preview the deletion without executing it").action(async i=>{if(i.dryRun){d.info(`Dry run \u2014 would delete item ${i.item} from collection ${i.collection}`),d.info("Dry run complete \u2014 no changes made.");return}let s=await me(),a=Q.forCms({authToken:s}),c=Date.now();try{await Py(s,i.collection,i.item),await a.sendUsage("cms_items_delete",{duration:Date.now()-c,dryRun:!1}),d.info(`${oe} Item deleted: ${i.item}`)}catch(l){throw await a.sendError(l instanceof Error?l:new Error(String(l)),"cms_items_delete",{duration:Date.now()-c}),new w(l,{prefix:`${ie} Failed to delete item:`})}}),o.command("publish").description("Publish one or more CMS items. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--items <itemIds>","Comma-separated item IDs to publish").option("--dry-run","Preview the publish without executing it").option("--json","Output as JSON").action(async i=>{let s=i.items.split(",").map(u=>u.trim());if(i.dryRun){d.info(`Dry run \u2014 would publish ${s.length} item(s) in collection ${i.collection}:`),s.forEach(u=>d.info(` ${u}`)),d.info("Dry run complete \u2014 no changes made.");return}let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await Iy(a,i.collection,s);if(await c.sendUsage("cms_items_publish",{duration:Date.now()-l,itemCount:s.length,dryRun:!1}),i.json){d.info(JSON.stringify(u,null,2));return}let p=u.publishedItemIds?.length??0;d.info(`${oe} Published ${p} item(s)`),u.errors?.length&&u.errors.forEach(f=>d.warn(` ${f.itemId}: ${f.message}`))}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_items_publish",{duration:Date.now()-l}),new w(u,{prefix:`${ie} Failed to publish items:`})}})};var Wy=D(mo());function rc(e,t){t.forEach(n=>{e.addOption(n)}),e.commands.forEach(n=>rc(n,t))}var Ny=new Qr.Option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines."),$y=new Qr.Option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json"),My=new Qr.Option("--skip-update-check","Skip checking for @webflow packages updates"),zy=new Qr.Option("--verbose","Display more information for debugging purposes.");function Uy(e){let t=Wy.default.version;e.name("webflow").description("Webflow CLI").version(t).addOption(Ny).addOption($y).addOption(My).addOption(zy).showHelpAfterError(),e.hook("preAction",async n=>{let r=n.opts();r.input||eu(!0),ct.start(),r.manifest&&tu(r.manifest);try{await Q.promptForConsentIfNeeded()}catch(o){d.debug(`Failed to check telemetry preference: ${o}`)}try{r.skipUpdateCheck||await new Fr().prompt()}catch(o){d.debug(`Failed to check for package updates: ${o}`)}}),e.hook("postAction",async()=>{ct.displayGrouped(),ct.stop()}),Nu(e),Ly(e),hp(e),xg(e),xy(e),kg(e),yg(e),e.commands.forEach(n=>{rc(n,[Ny,$y,My,zy])})}V();ce();var Gy=new Vy.Command;Uy(Gy);Gy.parseAsync().catch(e=>{e instanceof w?e.skipLogging||d.error(e,{prefix:e.prefix}):d.error(e),process.exit(1)});
155
+ ${i}`}var Ty=e=>{let t=e.command("cms").description("Manage Webflow CMS content"),n=t.command("collections").description("Manage CMS collections");n.command("list").description("List all CMS collections for a site").option("--site <siteId>","Site ID (falls back to manifest or prompts)").option("--json","Output as JSON").option("--fields <fields>","Comma-separated fields to display (id, displayName, singularName, slug, lastUpdated)","id,displayName,slug").action(async i=>{let s,a;if(i.site)s=await me(),a=i.site;else{let{manifest:u}=X(),p=await Je(u);s=p.accessToken,a=p.siteId}let c=Q.forCms({authToken:s,siteId:a}),l=Date.now();try{let u=await gy(s,a);if(await c.sendUsage("cms_collections_list",{duration:Date.now()-l,count:u.length}),u.length===0){d.info("No collections found.");return}if(i.json){d.info(JSON.stringify(u,null,2));return}let p=i.fields.split(",").map(f=>f.trim());d.info(Ey(u,p))}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_collections_list",{duration:Date.now()-l}),new w(u,{prefix:`${re} Failed to list collections:`})}}),n.command("get").description("Get details and field schema for a CMS collection").argument("<collectionId>","Collection ID").option("--json","Output as JSON").action(async(i,s)=>{let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await yy(a,i);if(await c.sendUsage("cms_collections_get",{duration:Date.now()-l}),s.json){d.info(JSON.stringify(u,null,2));return}d.info(_y(u))}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_collections_get",{duration:Date.now()-l}),new w(u,{prefix:`${re} Failed to get collection:`})}}),n.command("create").description("Create a new CMS collection on a site. Use --dry-run to preview.").option("--site <siteId>","Site ID (falls back to manifest or prompts)").requiredOption("--name <displayName>","Collection display name").option("--singular-name <singularName>","Singular name (defaults to --name)").option("--slug <slug>","URL slug for the collection (auto-derived from --name if omitted)").option("--dry-run","Preview without executing").option("--json","Output as JSON").action(async i=>{let s=i.singularName??i.name,a=i.slug??i.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(i.dryRun){d.info("Dry run \u2014 would create collection:"),d.info(JSON.stringify({displayName:i.name,singularName:s,slug:a},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let c,l;if(i.site)c=await me(),l=i.site;else{let{manifest:f}=X(),m=await Je(f);c=m.accessToken,l=m.siteId}let u=Q.forCms({authToken:c,siteId:l}),p=Date.now();try{let f=await by(c,l,{displayName:i.name,singularName:s,slug:a});if(await u.sendUsage("cms_collections_create",{duration:Date.now()-p}),i.json){d.info(JSON.stringify(f,null,2));return}d.info(`${ie} Collection created: ${f.id}`),d.info(` Name: ${f.displayName}`),d.info(` Slug: ${f.slug}`)}catch(f){throw await u.sendError(f instanceof Error?f:new Error(String(f)),"cms_collections_create",{duration:Date.now()-p}),new w(f,{prefix:`${re} Failed to create collection:`})}}),t.command("fields").description("Manage CMS collection fields").command("create").description("Add a field to a CMS collection. Use --dry-run to preview.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--name <displayName>","Field display name").requiredOption("--type <type>","Field type (e.g. PlainText, RichText, Number, DateTime, Link, Image, Video, Color, Bool, Option, ItemRef, ItemRefSet)").option("--required","Mark field as required").option("--dry-run","Preview without executing").option("--json","Output as JSON").action(async i=>{if(i.dryRun){d.info("Dry run \u2014 would create field:"),d.info(JSON.stringify({collectionId:i.collection,displayName:i.name,type:i.type,isRequired:i.required??!1},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let s=await me(),a=Q.forCms({authToken:s}),c=Date.now();try{let l=await Dy(s,i.collection,{displayName:i.name,type:i.type,isRequired:i.required??!1});if(await a.sendUsage("cms_fields_create",{duration:Date.now()-c}),i.json){d.info(JSON.stringify(l,null,2));return}d.info(`${ie} Field created: ${l.id}`),d.info(` Name: ${l.displayName}`),d.info(` Type: ${l.type}`),d.info(` Slug: ${l.slug}`)}catch(l){throw await a.sendError(l instanceof Error?l:new Error(String(l)),"cms_fields_create",{duration:Date.now()-c}),new w(l,{prefix:`${re} Failed to create field:`})}});let o=t.command("items").description("Manage CMS items");o.command("list").description("List items in a CMS collection").requiredOption("--collection <collectionId>","Collection ID").option("--limit <n>","Maximum items to return (default: 100)","100").option("--offset <n>","Number of items to skip (default: 0)","0").option("--locale <cmsLocaleId>","CMS locale ID to filter by").option("--json","Output as JSON").option("--fields <fields>","Comma-separated fields to display (id, isDraft, isArchived, lastUpdated, fieldData)","id,isDraft,lastUpdated").action(async i=>{let s=await me(),a=Q.forCms({authToken:s}),c=Date.now(),l=parseInt(i.limit,10)||100,u=parseInt(i.offset,10)||0;try{let p=await wy(s,i.collection,{limit:l,offset:u,cmsLocaleId:i.locale});if(await a.sendUsage("cms_items_list",{duration:Date.now()-c,count:p.items.length}),p.items.length===0){d.info("No items found.");return}if(i.json){d.info(JSON.stringify(p,null,2));return}let f=i.fields.split(",").map(A=>A.trim());d.info(Sy(p.items,f));let m=u+1,y=u+p.items.length;if(p.items.length>=l||u>0){let A=p.total>0?` of ${p.total}`:"";d.info(`
156
+ Showing ${m}\u2013${y}${A} items. Use --offset ${y} to load next page.`)}}catch(p){throw await a.sendError(p instanceof Error?p:new Error(String(p)),"cms_items_list",{duration:Date.now()-c}),new w(p,{prefix:`${re} Failed to list items:`})}}),o.command("get").description("Get a single CMS item by ID").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--item <itemId>","Item ID").option("--locale <cmsLocaleId>","CMS locale ID to retrieve content for").option("--json","Output as JSON").action(async i=>{let s=await me(),a=Q.forCms({authToken:s}),c=Date.now();try{let l=await vy(s,i.collection,i.item,i.locale);if(await a.sendUsage("cms_items_get",{duration:Date.now()-c}),i.json){d.info(JSON.stringify(l,null,2));return}let u=l.isArchived?"archived":l.isDraft?"draft":"live";d.info(`${l.id} [${u}]`),d.info(` Last updated: ${new Date(l.lastUpdated).toLocaleString()}`),l.lastPublished&&d.info(` Last published: ${new Date(l.lastPublished).toLocaleString()}`),d.info(" Fields:"),d.info(JSON.stringify(l.fieldData,null,4).replace(/^/gm," "))}catch(l){throw await a.sendError(l instanceof Error?l:new Error(String(l)),"cms_items_get",{duration:Date.now()-c}),new w(l,{prefix:`${re} Failed to get item:`})}}),o.command("create").description("Create a new CMS item. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--data <json>","Item field data as a JSON string").option("--draft","Create as draft (not published)").option("--dry-run","Preview the item that would be created without creating it").option("--json","Output as JSON").action(async i=>{let s;try{s=JSON.parse(i.data)}catch{throw new w(`Invalid JSON for --data: ${i.data}`)}if(i.dryRun){d.info("Dry run \u2014 would create item:"),d.info(JSON.stringify({fieldData:s,isDraft:i.draft??!1},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await ky(a,i.collection,s,i.draft??!1);if(await c.sendUsage("cms_items_create",{duration:Date.now()-l,dryRun:!1}),i.json){d.info(JSON.stringify(u,null,2));return}d.info(`${ie} Item created: ${u.id}`)}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_items_create",{duration:Date.now()-l}),new w(u,{prefix:`${re} Failed to create item:`})}}),o.command("update").description("Update an existing CMS item. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--item <itemId>","Item ID").requiredOption("--data <json>","Updated field data as a JSON string").option("--dry-run","Preview the update without applying it").option("--json","Output as JSON").action(async i=>{let s;try{s=JSON.parse(i.data)}catch{throw new w(`Invalid JSON for --data: ${i.data}`)}if(i.dryRun){d.info("Dry run \u2014 would update item:"),d.info(JSON.stringify({collectionId:i.collection,itemId:i.item,fieldData:s},null,2)),d.info("Dry run complete \u2014 no changes made.");return}let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await xy(a,i.collection,i.item,s);if(await c.sendUsage("cms_items_update",{duration:Date.now()-l,dryRun:!1}),i.json){d.info(JSON.stringify(u,null,2));return}d.info(`${ie} Item updated: ${u.id}`)}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_items_update",{duration:Date.now()-l}),new w(u,{prefix:`${re} Failed to update item:`})}}),o.command("delete").description("Delete a CMS item. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--item <itemId>","Item ID").option("--dry-run","Preview the deletion without executing it").action(async i=>{if(i.dryRun){d.info(`Dry run \u2014 would delete item ${i.item} from collection ${i.collection}`),d.info("Dry run complete \u2014 no changes made.");return}let s=await me(),a=Q.forCms({authToken:s}),c=Date.now();try{await Cy(s,i.collection,i.item),await a.sendUsage("cms_items_delete",{duration:Date.now()-c,dryRun:!1}),d.info(`${ie} Item deleted: ${i.item}`)}catch(l){throw await a.sendError(l instanceof Error?l:new Error(String(l)),"cms_items_delete",{duration:Date.now()-c}),new w(l,{prefix:`${re} Failed to delete item:`})}}),o.command("publish").description("Publish one or more CMS items. Use --dry-run to preview before executing.").requiredOption("--collection <collectionId>","Collection ID").requiredOption("--items <itemIds>","Comma-separated item IDs to publish").option("--dry-run","Preview the publish without executing it").option("--json","Output as JSON").action(async i=>{let s=i.items.split(",").map(u=>u.trim());if(i.dryRun){d.info(`Dry run \u2014 would publish ${s.length} item(s) in collection ${i.collection}:`),s.forEach(u=>d.info(` ${u}`)),d.info("Dry run complete \u2014 no changes made.");return}let a=await me(),c=Q.forCms({authToken:a}),l=Date.now();try{let u=await Fy(a,i.collection,s);if(await c.sendUsage("cms_items_publish",{duration:Date.now()-l,itemCount:s.length,dryRun:!1}),i.json){d.info(JSON.stringify(u,null,2));return}let p=u.publishedItemIds?.length??0;d.info(`${ie} Published ${p} item(s)`),u.errors?.length&&u.errors.forEach(f=>d.warn(` ${f.itemId}: ${f.message}`))}catch(u){throw await c.sendError(u instanceof Error?u:new Error(String(u)),"cms_items_publish",{duration:Date.now()-l}),new w(u,{prefix:`${re} Failed to publish items:`})}})};var Ry=D(ho());function ec(e,t){t.forEach(n=>{e.addOption(n)}),e.commands.forEach(n=>ec(n,t))}var Ay=new eo.Option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines."),Oy=new eo.Option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json"),Py=new eo.Option("--skip-update-check","Skip checking for @webflow packages updates"),Iy=new eo.Option("--verbose","Display more information for debugging purposes.");function By(e){let t=Ry.default.version;e.name("webflow").description("Webflow CLI").version(t).addOption(Ay).addOption(Oy).addOption(Py).addOption(Iy).showHelpAfterError(),e.hook("preAction",async n=>{let r=n.opts();r.input||Yc(!0),ct.start(),r.manifest&&Xc(r.manifest);try{await Q.promptForConsentIfNeeded()}catch(o){d.debug(`Failed to check telemetry preference: ${o}`)}try{r.skipUpdateCheck||await new Er().prompt()}catch(o){d.debug(`Failed to check for package updates: ${o}`)}}),e.hook("postAction",async()=>{ct.displayGrouped(),ct.stop()}),Bu(e),Ty(e),dp(e),hg(e),hy(e),mg(e),cg(e),e.commands.forEach(n=>{ec(n,[Ay,Oy,Py,Iy])})}V();se();var Ly=new jy.Command;By(Ly);Ly.parseAsync().catch(e=>{e instanceof w?e.skipLogging||d.error(e,{prefix:e.prefix}):d.error(e),process.exit(1)});
158
157
  //# sourceMappingURL=index.js.map