@webflow/webflow-cli 1.8.49 → 1.8.50
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/CHANGELOG.md +6 -0
- package/dist/cloud-scaffolds/nextjs/package.json +2 -2
- package/dist/index.js +76 -76
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var cg=Object.create;var Si=Object.defineProperty;var dg=Object.getOwnPropertyDescriptor;var pg=Object.getOwnPropertyNames;var fg=Object.getPrototypeOf,mg=Object.prototype.hasOwnProperty;var A=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ti=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fl=(e,t)=>{for(var n in t)Si(e,n,{get:t[n],enumerable:!0})},hg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pg(t))!mg.call(e,o)&&o!==n&&Si(e,o,{get:()=>t[o],enumerable:!(r=dg(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?cg(fg(e)):{},hg(t||!e||!e.__esModule?Si(n,"default",{value:e,enumerable:!0}):n,e));function bg(){let e=new Map;for(let[t,n]of Object.entries(K)){for(let[r,o]of Object.entries(n))K[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=K[r],e.set(o[0],o[1]);Object.defineProperty(K,t,{value:n,enumerable:!1})}return Object.defineProperty(K,"codes",{value:e,enumerable:!1}),K.color.close="\x1B[39m",K.bgColor.close="\x1B[49m",K.color.ansi=_l(),K.color.ansi256=El(),K.color.ansi16m=Cl(),K.bgColor.ansi=_l(10),K.bgColor.ansi256=El(10),K.bgColor.ansi16m=Cl(10),Object.defineProperties(K,{rgbToAnsi256:{value(t,n,r){return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>K.rgbToAnsi256(...K.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,o;if(t>=232)n=((t-232)*10+8)/255,r=n,o=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let i=Math.max(n,r,o)*2;if(i===0)return 30;let s=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,r)=>K.ansi256ToAnsi(K.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>K.ansi256ToAnsi(K.hexToAnsi256(t)),enumerable:!1}}),K}var _l,El,Cl,K,t_,gg,yg,n_,Dg,je,Sl=A(()=>{"use strict";_l=(e=0)=>t=>`\x1B[${t+e}m`,El=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Cl=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,K={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},t_=Object.keys(K.modifier),gg=Object.keys(K.color),yg=Object.keys(K.bgColor),n_=[...gg,...yg];Dg=bg(),je=Dg});function ve(e,t=globalThis.Deno?globalThis.Deno.args:eo.default.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}function wg(){if("FORCE_COLOR"in ee)return ee.FORCE_COLOR==="true"?1:ee.FORCE_COLOR==="false"?0:ee.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ee.FORCE_COLOR,10),3)}function vg(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kg(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=wg();r!==void 0&&(Qr=r);let o=n?Qr:r;if(o===0)return 0;if(n){if(ve("color=16m")||ve("color=full")||ve("color=truecolor"))return 3;if(ve("color=256"))return 2}if("TF_BUILD"in ee&&"AGENT_NAME"in ee)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(ee.TERM==="dumb")return i;if(eo.default.platform==="win32"){let s=Al.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ee)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ee)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ee)||ee.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor"||ee.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ee){let s=Number.parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:i}function Tl(e,t={}){let n=kg(e,{streamIsTTY:e&&e.isTTY,...t});return vg(n)}var eo,Al,Ai,ee,Qr,xg,Ol,Pl=A(()=>{"use strict";eo=D(require("process"),1),Al=D(require("os"),1),Ai=D(require("tty"),1);({env:ee}=eo.default);ve("no-color")||ve("no-colors")||ve("color=false")||ve("color=never")?Qr=0:(ve("color")||ve("colors")||ve("color=true")||ve("color=always"))&&(Qr=1);xg={stdout:Tl({isTTY:Ai.default.isatty(1)}),stderr:Tl({isTTY:Ai.default.isatty(2)})},Ol=xg});function Il(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 jl(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
|
-
`)+
|
|
5
|
-
`,o)}while(
|
|
6
|
-
`);return i!==-1&&(t=
|
|
7
|
-
${t}`,Eg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Cg=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Sg=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,o=_g.bind(null,n,t.toString());Object.defineProperty(o,"name",Cg);let{writable:i,enumerable:s,configurable:a}=Eg;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var Kn,Ll,Nl,Ml=A(()=>{"use strict";Bl();Kn=new WeakMap,Ll=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Kn.set(i,++n),n===1)r=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return Ti(i,e),Kn.set(i,n),i};Ll.callCount=e=>{if(!Kn.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Kn.get(e)};Nl=Ll});var Et,Rl=A(()=>{"use strict";Et=[];Et.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Et.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Et.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var Xn,Ai,Oi,Tg,Pi,Qn,Ag,Ii,ji,Bi,$l,l_,u_,zl=A(()=>{"use strict";Rl();Xn=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",Ai=Symbol.for("signal-exit emitter"),Oi=globalThis,Tg=Object.defineProperty.bind(Object),Pi=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Oi[Ai])return Oi[Ai];Tg(Oi,Ai,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let n=this.listeners[t],o=n.indexOf(r);o!==-1&&(o===0&&n.length===1?n.length=0:n.splice(o,1))}emit(t,r,n){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(r,n)===!0||o;return t==="exit"&&(o=this.emit("afterExit",r,n)||o),o}},Qn=class{},Ag=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),Ii=class extends Qn{onExit(){return()=>{}}load(){}unload(){}},ji=class extends Qn{#s=Bi.platform==="win32"?"SIGINT":"SIGHUP";#r=new Pi;#e;#o;#p;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let r of Et)this.#t[r]=()=>{let n=this.#e.listeners(r),{count:o}=this.#r,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),n.length===o){this.unload();let s=this.#r.emit("exit",null,r),a=r==="SIGHUP"?this.#s:r;s||t.kill(t.pid,a)}};this.#p=t.reallyExit,this.#o=t.emit}onExit(t,r){if(!Xn(this.#e))return()=>{};this.#i===!1&&this.load();let n=r?.alwaysLast?"afterExit":"exit";return this.#r.on(n,t),()=>{this.#r.removeListener(n,t),this.#r.listeners.exit.length===0&&this.#r.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#r.count+=1;for(let t of Et)try{let r=this.#t[t];r&&this.#e.on(t,r)}catch{}this.#e.emit=(t,...r)=>this.#f(t,...r),this.#e.reallyExit=t=>this.#n(t)}}unload(){this.#i&&(this.#i=!1,Et.forEach(t=>{let r=this.#t[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#p,this.#r.count-=1)}#n(t){return Xn(this.#e)?(this.#e.exitCode=t||0,this.#r.emit("exit",this.#e.exitCode,null),this.#p.call(this.#e,this.#e.exitCode)):0}#f(t,...r){let n=this.#o;if(t==="exit"&&Xn(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let o=n.call(this.#e,t,...r);return this.#r.emit("exit",this.#e.exitCode,null),o}else return n.call(this.#e,t,...r)}},Bi=globalThis.process,{onExit:$l,load:l_,unload:u_}=Ag(Xn(Bi)?new ji(Bi):new Ii)});var Kr,Wl,Og,Ul,Vl=A(()=>{"use strict";Kr=D(require("process"),1);Ml();zl();Wl=Kr.default.stderr.isTTY?Kr.default.stderr:Kr.default.stdout.isTTY?Kr.default.stdout:void 0,Og=Wl?Nl(()=>{$l(()=>{Wl.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Ul=Og});var Li,eo,ar,Ni,Gl=A(()=>{"use strict";Li=D(require("process"),1);Vl();eo=!1,ar={};ar.show=(e=Li.default.stderr)=>{e.isTTY&&(eo=!1,e.write("\x1B[?25h"))};ar.hide=(e=Li.default.stderr)=>{e.isTTY&&(Ul(),eo=!0,e.write("\x1B[?25l"))};ar.toggle=(e,t)=>{e!==void 0&&(eo=e),eo?ar.show(t):ar.hide(t)};Ni=ar});var ql=Fi((g_,Pg)=>{Pg.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 Mi=Fi((y_,Jl)=>{"use strict";var to=Object.assign({},ql()),Hl=Object.keys(to);Object.defineProperty(to,"random",{get(){let e=Math.floor(Math.random()*Hl.length),t=Hl[e];return to[t]}});Jl.exports=to});function Ri(){return we.default.platform!=="win32"?we.default.env.TERM!=="linux":!!we.default.env.CI||!!we.default.env.WT_SESSION||!!we.default.env.TERMINUS_SUBLIME||we.default.env.ConEmuTask==="{cmd::Cmder}"||we.default.env.TERM_PROGRAM==="Terminus-Sublime"||we.default.env.TERM_PROGRAM==="vscode"||we.default.env.TERM==="xterm-256color"||we.default.env.TERM==="alacritty"||we.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var we,Zl=A(()=>{"use strict";we=D(require("process"),1)});var Ig,jg,Bg,Xr,Yl=A(()=>{"use strict";Yr();Zl();Ig={info:Q.blue("\u2139"),success:Q.green("\u2714"),warning:Q.yellow("\u26A0"),error:Q.red("\u2716")},jg={info:Q.blue("i"),success:Q.green("\u221A"),warning:Q.yellow("\u203C"),error:Q.red("\xD7")},Bg=Ri()?Ig:jg,Xr=Bg});function $i({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var Kl=A(()=>{"use strict"});function Qr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Lg,"")}var Lg,zi=A(()=>{"use strict";Kl();Lg=$i()});function Xl(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 Ql(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function eu(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var tu=A(()=>{"use strict"});function Ng(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function ru(e,{ambiguousAsWide:t=!1}={}){return Ng(e),Ql(e)||eu(e)||t&&Xl(e)?2:1}var nu=A(()=>{"use strict";tu()});var ou,iu=A(()=>{"use strict";ou=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function Wi(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Qr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!r};for(let{segment:s}of Mg.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)&&!Rg.test(s)){if(ou().test(s)){o+=2;continue}o+=ru(a,i)}}return o}var Mg,Rg,su=A(()=>{"use strict";zi();nu();iu();Mg=new Intl.Segmenter,Rg=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function Ui({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var au=A(()=>{"use strict"});function Gi(){let{env:e}=Vi.default,{TERM:t,TERM_PROGRAM:r}=e;return Vi.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Vi,lu=A(()=>{"use strict";Vi=D(require("process"),1)});var Oe,$g,qi,zg,Hi,uu=A(()=>{"use strict";Oe=D(require("process"),1),$g=3,qi=class{#s=0;start(){this.#s++,this.#s===1&&this.#r()}stop(){if(this.#s<=0)throw new Error("`stop` called more times than `start`");this.#s--,this.#s===0&&this.#e()}#r(){Oe.default.platform==="win32"||!Oe.default.stdin.isTTY||(Oe.default.stdin.setRawMode(!0),Oe.default.stdin.on("data",this.#o),Oe.default.stdin.resume())}#e(){Oe.default.stdin.isTTY&&(Oe.default.stdin.off("data",this.#o),Oe.default.stdin.pause(),Oe.default.stdin.setRawMode(!1))}#o(t){t[0]===$g&&Oe.default.emit("SIGINT")}},zg=new qi,Hi=zg});function lr(e){return new Ji(e)}var en,tn,Wg,Ji,Zi=A(()=>{"use strict";en=D(require("process"),1);Yr();Gl();tn=D(Mi(),1);Yl();zi();su();au();lu();uu();Wg=D(Mi(),1),Ji=class{#s=0;#r=!1;#e=0;#o=-1;#p=0;#t;#i;#n;#f;#h;#u;#c;#d;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:en.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#n=this.#t.stream,this.#u=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:Ui({stream:this.#n}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,en.default.env.NODE_ENV==="test"&&(this._stream=this.#n,this._isEnabled=this.#u,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(r){this.#s=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#o}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#d}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#d=t,this.#m()}get interval(){return this.#h??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#o=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#i=t}else if(!Gi())this.#i=tn.default.line;else if(t===void 0)this.#i=tn.default.dots;else if(t!=="default"&&tn.default[t])this.#i=tn.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,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}#b(t=this.#l,r=" "){return typeof t=="string"&&t!==""?r+t:typeof t=="function"?r+t():""}#m(){let t=this.#n.columns??80,r=this.#y(this.#a,"-"),n=this.#b(this.#l,"-"),o=" ".repeat(this.#d)+r+"--"+this.#g+"--"+n;this.#e=0;for(let i of Qr(o).split(`
|
|
8
|
-
`))this.#e+=Math.max(1,Math.ceil(
|
|
9
|
-
`),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&
|
|
10
|
-
`;return this.stop(),this.#n.write(c),this}}});function Xi(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),ro.default.platform==="darwin"?Ug(e):ro.default.platform==="win32"?Vg(e):Gg(e)}var X,Yi,ro,st,Ki,ur,Ug,Vg,Gg,cu=A(()=>{"use strict";X=D(require("path"),1),Yi=D(require("os"),1),ro=D(require("process"),1),st=Yi.default.homedir(),Ki=Yi.default.tmpdir(),{env:ur}=ro.default,Ug=e=>{let t=X.default.join(st,"Library");return{data:X.default.join(t,"Application Support",e),config:X.default.join(t,"Preferences",e),cache:X.default.join(t,"Caches",e),log:X.default.join(t,"Logs",e),temp:X.default.join(Ki,e)}},Vg=e=>{let t=ur.APPDATA||X.default.join(st,"AppData","Roaming"),r=ur.LOCALAPPDATA||X.default.join(st,"AppData","Local");return{data:X.default.join(r,e,"Data"),config:X.default.join(t,e,"Config"),cache:X.default.join(r,e,"Cache"),log:X.default.join(r,e,"Log"),temp:X.default.join(Ki,e)}},Gg=e=>{let t=X.default.basename(st);return{data:X.default.join(ur.XDG_DATA_HOME||X.default.join(st,".local","share"),e),config:X.default.join(ur.XDG_CONFIG_HOME||X.default.join(st,".config"),e),cache:X.default.join(ur.XDG_CACHE_HOME||X.default.join(st,".cache"),e),log:X.default.join(ur.XDG_STATE_HOME||X.default.join(st,".local","state"),e),temp:X.default.join(Ki,t,e)}}});function no(){return/[<>:"/\\|?*\u0000-\u001F]/g}function du(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var pu=A(()=>{"use strict"});function rn(e,t={}){let r=/[\u0000-\u001F\u0080-\u009F]/g,n=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");let o=t.replacement===void 0?"!":t.replacement;if(no().test(o)&&r.test(o))throw new Error("Replacement string cannot contain reserved filename characters");o.length>0&&(e=e.replace(n,"$1")),e=e.normalize("NFD"),e=e.replace(Hg,o),e=e.replace(no(),o),e=e.replace(r,o),e=e.replace(Jg,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=du().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:qg;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),u=e.slice(s);e=a.slice(0,Math.max(1,i-u.length))+u}}return e}var qg,Hg,Jg,Qi=A(()=>{"use strict";pu();qg=100,Hg=/^\.+(\\|\/)|^\.+$/,Jg=/\.+$/});var Zg,fu=A(()=>{"use strict";Zg=D(require("path"),1);Qi()});var mu=A(()=>{"use strict";Qi();fu()});var at,es=A(()=>{"use strict";at="webflow.json"});var Ze,Ct,nn=A(()=>{"use strict";Ze=class extends Error{constructor(t){super(`Manifest file not found at path: ${t}`),this.name="ManifestFileNotFoundError"}},Ct=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function St(e){if(e){if(e.endsWith(at))return e;if((0,hu.statSync)(e)?.isDirectory())return(0,gu.join)(e,at);throw new Error(`Manifest file name must be ${at}`)}return`./${at}`}var hu,gu,oo=A(()=>{"use strict";hu=require("fs"),gu=require("path");es()});var yu,Yg,Kg,ts,bu=A(()=>{"use strict";yu=D(require("ajv")),Yg=new yu.default,Kg={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},renderers:{type:"object",additionalProperties:{type:"string"},minProperties: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"]}}},ts=Yg.compile(Kg)});function Du(e){return e instanceof Error?e:new Error("Unknown error")}function se(e){let t=St(e);if(!(0,io.existsSync)(t))throw new Ze(t);let r;try{r=(0,io.readFileSync)(t,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${Du(o).message}`)}let n;try{n=JSON.parse(r)}catch(o){throw new Error(`Invalid JSON in manifest file: ${Du(o).message}`)}if(!ts(n)){let o=ts.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:n,manifestPath:t}}var io,rs=A(()=>{"use strict";io=require("fs");nn();oo();bu()});function Tt(e,t){let r=e[t];if(!r)throw new Ct(t);return r}var wu=A(()=>{"use strict";nn()});function ge(e,t){let r,n;try{let i=se(t);r=i.manifest,n=i.manifestPath}catch(i){if(i instanceof Ze)r={},n=St(t);else throw i}let o={...r};for(let i in e){let s=i,a=e[s];a&&(o[s]={...o[s],...a})}(0,vu.writeFileSync)(n,JSON.stringify(o,null,2),"utf-8")}var vu,ku=A(()=>{"use strict";vu=require("fs");nn();rs();oo()});var Re=A(()=>{"use strict";es();nn();rs();oo();wu();ku()});var ns=Fi((FE,Xg)=>{Xg.exports={name:"@webflow/webflow-cli",version:"1.8.49",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"rm -fr ./dist; tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:local":"jest"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@dotenvx/dotenvx":"^1.44.1","@inquirer/prompts":"^7.9.0","@module-federation/enhanced":"0.20.0","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","env-paths":"^3.0.0","fast-glob":"^3.3.3",filenamify:"^6.0.0","fork-ts-checker-webpack-plugin":"9.1.0","form-data":"4.0.4","fs-extra":"^11.3.0","jsonc-parser":"^3.2.0",md5:"^2.2.1",memfs:"4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",ora:"^8.2.0",postcss:"^8.5.6","postcss-loader":"^8.1.1","postcss-selector-parser":"^7.1.0",prettier:"^2.7.1",semver:"^7.7.2","serve-handler":"^6.1.5","source-map-support":"^0.5.21",tar:"^7.4.3","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.0",webpack:"^5.99.7","webpack-merge":"^6.0.1","webpack-node-externals":"^3.0.0",zod:"^3.22.4"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/fs-extra":"^11.0.4","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"2.6.13","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","@types/source-map":"^0.5.2","@types/webpack-node-externals":"^3.0.4",astro:"^5.7.0","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1",tar:"^7.4.3","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}}});function At(){try{return ns().version}catch{return"unknown"}}function $e(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 r=on.default.homedir();if(r){let o=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let n=on.default.userInfo().username;if(n){let o=new RegExp(`/Users/${n}`,"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 os(e){if(e.stack)return $e(e.stack)}function lt(e){let t=["password","token","secret","key","auth","bearer","authorization","apikey","api_key","access_token","refresh_token","client_secret","private_key"],r={};for(let[n,o]of Object.entries(e)){let i=n.toLowerCase();t.some(s=>i.includes(s))?r[n]="[REDACTED]":typeof o=="string"?r[n]=$e(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?r[n]=lt(o):Array.isArray(o)?r[n]=o.map(s=>typeof s=="object"&&s!==null?lt(s):typeof s=="string"?$e(s):s):r[n]=o}return r}function xu(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${on.default.type()} ${on.default.release()}`}}function is(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var on,sn=A(()=>{"use strict";on=D(require("os"))});var ss,Ot,as=A(()=>{"use strict";ss=require("@inquirer/prompts");Re();sn();Ot=class e{static instance;cache=void 0;static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await se(),r=t?.telemetry?.global?.allowTelemetry;return this.cache=r,r}catch{return}}async setPreference(t){this.cache=t,await this.setGlobalPreference(t)}async promptForConsent(t){let o=await(0,ss.confirm)({message:t||"Help us improve Webflow CLI by sharing usage data and error reports?",default:!0});return await(0,ss.confirm)({message:"Would you like to save this choice for all Webflow CLI commands?",default:!0})&&await this.setPreference(o),o}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let r={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:At()}}};await ge(r),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,r){this.cache=r}}});var Fu,ze,ls=A(()=>{"use strict";Fu=D(require("node-fetch"));as();sn();V();ze=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Ot.getInstance(),this.sessionId=is(),this.platformInfo=xu()}async sendEvent(t){if(await this.isEnabled())try{let r=this.enrichEvent(t),n=this.sanitizeEvent(r);await this.transmitEvent(n)}catch(r){p.debug(`Failed to send telemetry event: ${r}`)}}async sendError(t,r,n){if(!await this.isEnabled())return;let o={eventType:"error",name:t.name,message:t.message,cause:t.cause,stack:os(t),context:r,metadata:n?lt(n):void 0};await this.sendEvent(o)}async sendUsage(t,r,n,o){if(!await this.isEnabled())return;let i={eventType:"usage",feature:t,success:r,duration:n,data:o?lt(o):void 0};await this.sendEvent(i)}async sendPerformance(t,r,n){if(!await this.isEnabled())return;let o={eventType:"performance",operation:t,duration:r,memoryBefore:void 0,memoryAfter:void 0,metrics:n};await this.sendEvent(o)}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}async promptForConsentIfNeeded(t){let r=await this.consentManager.getPreference();return r!==void 0?r:await this.consentManager.promptForConsent(t??"Help us improve Webflow CLI by sharing usage data and error reports?")}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:At(),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 r=JSON.parse(JSON.stringify(t));return r.message&&(r.message=$e(r.message)),r.stack&&(r.stack=$e(r.stack)),r.context&&(r.context=$e(r.context)),r.metadata&&(r.metadata=lt(r.metadata)),r.data&&(r.data=lt(r.data)),r}async transmitEvent(t){let r=this.getEndpoint(),n=process.env.WEBFLOW_TELEMETRY_DEBUG==="true";if(n){console.log(`\u{1F4CA} [Telemetry] Sending to: ${r}`);let i={...t};i.metadata&&(delete i.metadata.authToken,delete i.metadata.apiToken),console.log("\u{1F4CA} [Telemetry] Payload:",JSON.stringify(i,null,2))}let o=await(0,Fu.default)(r,{method:"POST",headers:{Authorization:`Bearer ${this.config.authToken}`,"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3});if(o.ok)n&&console.log(`\u{1F4CA} [Telemetry] Request successful: ${o.status}`);else throw n&&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:r}=this.config;return`${t}/webflow-cli/${r}/telemetry`}static fromDevlinkConfig(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"devlink",allowTelemetry:t.allowTelemetry})}static forCloud(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host,authToken:t.authToken,commandType:"library"})}}});var _u=A(()=>{"use strict"});function so(e){return async(t,r)=>{try{await e.sendError(t,r)}catch(n){p.debug("Failed to send error telemetry:"+n)}}}function ao(e){return async(t,r,n)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await r(),a=Date.now()-o,u=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:u-i,...n}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...n}),s}}}function Eu(e){return async(t,r,n)=>{let o=Date.now();try{let i=await r(),s=Date.now()-o;return await e.sendUsage(t,!0,s,n),i}catch(i){let s=Date.now()-o;throw await e.sendUsage(t,!1,s,{error:i instanceof Error?i.message:"Unknown error",...n}),i}}}var cr=A(()=>{"use strict";V();ls();as();_u();sn();ls();sn()});function Su(e,t){if(!e)return t;let r=parseInt(e,10);return isNaN(r)||r<=0?t:r}function ut(e){an.push($e(e)),an.length>ty&&an.shift()}function oy(e){return ut(`DEBUG: ${e}`),`${re.cyan("DEBUG:")} ${e}`}function ct(e){return ut(`INFO: ${e}`),`${re.green("INFO:")} ${e}`}function fr(e){return ut(`WARN: ${e}`),`${re.yellow("WARN:")} ${e}`}function dt(e){let t=e instanceof Error?e.stack:e;return ut(`ERROR: ${t}`),us=!0,`${re.red("ERROR:")} ${t}`}function iy(e){return ut(`SUCCESS: ${e}`),`${re.green(e)}`}function sy(e){let t=lr(`${e}...`).start(),r=!1,n=o=>i=>{ut(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(us=!0),!r&&(r=!0,t[o](i||e))};return{succeed:n("succeed"),fail:n("fail"),warn:n("warn"),info:n("info")}}function ay(){let e=dr.default.readdirSync(ve).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:dr.default.statSync(lo.default.join(ve,t)).mtime.getTime()})).sort((t,r)=>r.time-t.time);for(;e.length>=ey;)try{let t=e.pop();if(!t)break;dr.default.removeSync(lo.default.join(ve,t.name))}catch{}}function cs(){try{dr.default.ensureDirSync(ve),ay(),an.unshift(`CLI Version: ${At()}`,`Command: ${process.argv.slice(2).join(" ")||"N/A"}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}
|
|
11
|
-
`),
|
|
12
|
-
`)),(process.env.DEBUG||
|
|
13
|
-
${
|
|
14
|
-
${
|
|
4
|
+
`)+n,o=r+1,r=e.indexOf(`
|
|
5
|
+
`,o)}while(r!==-1);return i+=e.slice(o),i}var Bl=A(()=>{"use strict"});function er(e){return _g(e)}var Ll,Nl,Oi,cn,Qn,Ml,dn,Fg,_g,Pi,Eg,Cg,Ii,to,Sg,Tg,u_,Q,tr=A(()=>{"use strict";Sl();Pl();Bl();({stdout:Ll,stderr:Nl}=Ol),Oi=Symbol("GENERATOR"),cn=Symbol("STYLER"),Qn=Symbol("IS_EMPTY"),Ml=["ansi","ansi","ansi256","ansi16m"],dn=Object.create(null),Fg=(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=Ll?Ll.level:0;e.level=t.level===void 0?n:t.level},_g=e=>{let t=(...n)=>n.join(" ");return Fg(t,e),Object.setPrototypeOf(t,er.prototype),t};Object.setPrototypeOf(er.prototype,Function.prototype);for(let[e,t]of Object.entries(je))dn[e]={get(){let n=to(this,Ii(t.open,t.close,this[cn]),this[Qn]);return Object.defineProperty(this,e,{value:n}),n}};dn.visible={get(){let e=to(this,this[cn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Pi=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?je[n].ansi16m(...r):t==="ansi256"?je[n].ansi256(je.rgbToAnsi256(...r)):je[n].ansi(je.rgbToAnsi(...r)):e==="hex"?Pi("rgb",t,n,...je.hexToRgb(...r)):je[n][e](...r),Eg=["rgb","hex","ansi256"];for(let e of Eg){dn[e]={get(){let{level:n}=this;return function(...r){let o=Ii(Pi(e,Ml[n],"color",...r),je.color.close,this[cn]);return to(this,o,this[Qn])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);dn[t]={get(){let{level:n}=this;return function(...r){let o=Ii(Pi(e,Ml[n],"bgColor",...r),je.bgColor.close,this[cn]);return to(this,o,this[Qn])}}}}Cg=Object.defineProperties(()=>{},{...dn,level:{enumerable:!0,get(){return this[Oi].level},set(e){this[Oi].level=e}}}),Ii=(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}},to=(e,t,n)=>{let r=(...o)=>Sg(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,Cg),r[Oi]=e,r[cn]=t,r[Qn]=n,r},Sg=(e,t)=>{if(e.level<=0||!t)return e[Qn]?"":t;let n=e[cn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=Il(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
|
|
6
|
+
`);return i!==-1&&(t=jl(t,o,r,i)),r+t+o};Object.defineProperties(er.prototype,dn);Tg=er(),u_=er({level:Nl?Nl.level:0}),Q=Tg});function ji(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Ag(e,t,o,n);return Pg(e,t),Lg(e,t,r),e}var Ag,Og,Pg,Ig,jg,Bg,Lg,Rl=A(()=>{"use strict";Ag=(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);!Og(o,i)&&r||Object.defineProperty(e,n,i)},Og=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)},Pg=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Ig=(e,t)=>`/* Wrapped ${e}*/
|
|
7
|
+
${t}`,jg=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Bg=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Lg=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=Ig.bind(null,r,t.toString());Object.defineProperty(o,"name",Bg);let{writable:i,enumerable:s,configurable:a}=jg;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var no,$l,zl,Wl=A(()=>{"use strict";Rl();no=new WeakMap,$l=(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(no.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),no.set(i,r),i};$l.callCount=e=>{if(!no.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return no.get(e)};zl=$l});var It,Ul=A(()=>{"use strict";It=[];It.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&It.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&It.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var ro,Bi,Li,Ng,Ni,oo,Mg,Mi,Ri,$i,Vl,g_,y_,Gl=A(()=>{"use strict";Ul();ro=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",Bi=Symbol.for("signal-exit emitter"),Li=globalThis,Ng=Object.defineProperty.bind(Object),Ni=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Li[Bi])return Li[Bi];Ng(Li,Bi,{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}},oo=class{},Mg=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Mi=class extends oo{onExit(){return()=>{}}load(){}unload(){}},Ri=class extends oo{#s=$i.platform==="win32"?"SIGINT":"SIGHUP";#n=new Ni;#e;#o;#p;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of It)this.#t[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#n,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#s:n;s||t.kill(t.pid,a)}};this.#p=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!ro(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 It)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,It.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#p,this.#n.count-=1)}#r(t){return ro(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#p.call(this.#e,this.#e.exitCode)):0}#f(t,...n){let r=this.#o;if(t==="exit"&&ro(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)}},$i=globalThis.process,{onExit:Vl,load:g_,unload:y_}=Mg(ro($i)?new Ri($i):new Mi)});var nr,ql,Rg,Hl,Jl=A(()=>{"use strict";nr=D(require("process"),1);Wl();Gl();ql=nr.default.stderr.isTTY?nr.default.stderr:nr.default.stdout.isTTY?nr.default.stdout:void 0,Rg=ql?zl(()=>{Vl(()=>{ql.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Hl=Rg});var zi,io,pn,Wi,Zl=A(()=>{"use strict";zi=D(require("process"),1);Jl();io=!1,pn={};pn.show=(e=zi.default.stderr)=>{e.isTTY&&(io=!1,e.write("\x1B[?25h"))};pn.hide=(e=zi.default.stderr)=>{e.isTTY&&(Hl(),io=!0,e.write("\x1B[?25l"))};pn.toggle=(e,t)=>{e!==void 0&&(io=e),io?pn.show(t):pn.hide(t)};Wi=pn});var Yl=Ti((F_,$g)=>{$g.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 Ui=Ti((__,Xl)=>{"use strict";var so=Object.assign({},Yl()),Kl=Object.keys(so);Object.defineProperty(so,"random",{get(){let e=Math.floor(Math.random()*Kl.length),t=Kl[e];return so[t]}});Xl.exports=so});function Vi(){return ke.default.platform!=="win32"?ke.default.env.TERM!=="linux":!!ke.default.env.CI||!!ke.default.env.WT_SESSION||!!ke.default.env.TERMINUS_SUBLIME||ke.default.env.ConEmuTask==="{cmd::Cmder}"||ke.default.env.TERM_PROGRAM==="Terminus-Sublime"||ke.default.env.TERM_PROGRAM==="vscode"||ke.default.env.TERM==="xterm-256color"||ke.default.env.TERM==="alacritty"||ke.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ke,Ql=A(()=>{"use strict";ke=D(require("process"),1)});var zg,Wg,Ug,rr,eu=A(()=>{"use strict";tr();Ql();zg={info:Q.blue("\u2139"),success:Q.green("\u2714"),warning:Q.yellow("\u26A0"),error:Q.red("\u2716")},Wg={info:Q.blue("i"),success:Q.green("\u221A"),warning:Q.yellow("\u203C"),error:Q.red("\xD7")},Ug=Vi()?zg:Wg,rr=Ug});function Gi({onlyFirst:e=!1}={}){let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(n,e?void 0:"g")}var tu=A(()=>{"use strict"});function or(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Vg,"")}var Vg,qi=A(()=>{"use strict";tu();Vg=Gi()});function nu(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 ru(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function ou(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 iu=A(()=>{"use strict"});function Gg(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function su(e,{ambiguousAsWide:t=!1}={}){return Gg(e),ru(e)||ou(e)||t&&nu(e)?2:1}var au=A(()=>{"use strict";iu()});var lu,uu=A(()=>{"use strict";lu=()=>/[#*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 Hi(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=or(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of qg.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)&&!Hg.test(s)){if(lu().test(s)){o+=2;continue}o+=su(a,i)}}return o}var qg,Hg,cu=A(()=>{"use strict";qi();au();uu();qg=new Intl.Segmenter,Hg=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function Ji({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var du=A(()=>{"use strict"});function Yi(){let{env:e}=Zi.default,{TERM:t,TERM_PROGRAM:n}=e;return Zi.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 Zi,pu=A(()=>{"use strict";Zi=D(require("process"),1)});var Be,Jg,Ki,Zg,Xi,fu=A(()=>{"use strict";Be=D(require("process"),1),Jg=3,Ki=class{#s=0;start(){this.#s++,this.#s===1&&this.#n()}stop(){if(this.#s<=0)throw new Error("`stop` called more times than `start`");this.#s--,this.#s===0&&this.#e()}#n(){Be.default.platform==="win32"||!Be.default.stdin.isTTY||(Be.default.stdin.setRawMode(!0),Be.default.stdin.on("data",this.#o),Be.default.stdin.resume())}#e(){Be.default.stdin.isTTY&&(Be.default.stdin.off("data",this.#o),Be.default.stdin.pause(),Be.default.stdin.setRawMode(!1))}#o(t){t[0]===Jg&&Be.default.emit("SIGINT")}},Zg=new Ki,Xi=Zg});function fn(e){return new Qi(e)}var ir,sr,Yg,Qi,es=A(()=>{"use strict";ir=D(require("process"),1);tr();Zl();sr=D(Ui(),1);eu();qi();cu();du();pu();fu();Yg=D(Ui(),1),Qi=class{#s=0;#n=!1;#e=0;#o=-1;#p=0;#t;#i;#r;#f;#h;#u;#c;#d;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:ir.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#r=this.#t.stream,this.#u=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:Ji({stream:this.#r}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,ir.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#u,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(n){this.#s=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#o}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#d}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#d=t,this.#m()}get interval(){return this.#h??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#o=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#i=t}else if(!Yi())this.#i=sr.default.line;else if(t===void 0)this.#i=sr.default.dots;else if(t!=="default"&&sr.default[t])this.#i=sr.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#g}set text(t=""){this.#g=t,this.#m()}get prefixText(){return this.#a}set prefixText(t=""){this.#a=t,this.#m()}get suffixText(){return this.#l}set suffixText(t=""){this.#l=t,this.#m()}get isSpinning(){return this.#f!==void 0}#y(t=this.#a,n=" "){return typeof t=="string"&&t!==""?t+n:typeof t=="function"?t()+n:""}#b(t=this.#l,n=" "){return typeof t=="string"&&t!==""?n+t:typeof t=="function"?n+t():""}#m(){let t=this.#r.columns??80,n=this.#y(this.#a,"-"),r=this.#b(this.#l,"-"),o=" ".repeat(this.#d)+n+"--"+this.#g+"--"+r;this.#e=0;for(let i of or(o).split(`
|
|
8
|
+
`))this.#e+=Math.max(1,Math.ceil(Hi(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#u&&!this.#c}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#u=t}get isSilent(){return this.#c}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=t}frame(){let t=Date.now();(this.#o===-1||t-this.#p>=this.interval)&&(this.#o=++this.#o%this.#i.frames.length,this.#p=t);let{frames:n}=this.#i,r=n[this.#o];this.color&&(r=Q[this.color](r));let o=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",i=typeof this.text=="string"?" "+this.text:"",s=typeof this.#l=="string"&&this.#l!==""?" "+this.#l:"";return o+r+i+s}clear(){if(!this.#u||!this.#r.isTTY)return this;this.#r.cursorTo(0);for(let t=0;t<this.#s;t++)t>0&&this.#r.moveCursor(0,-1),this.#r.clearLine(1);return(this.#d||this.lastIndent!==this.#d)&&this.#r.cursorTo(this.#d),this.lastIndent=this.#d,this.#s=0,this}render(){return this.#c?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#c?this:this.#u?this.isSpinning?this:(this.#t.hideCursor&&Wi.hide(this.#r),this.#t.discardStdin&&ir.default.stdin.isTTY&&(this.#n=!0,Xi.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#r.write(`- ${this.text}
|
|
9
|
+
`),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&Wi.show(this.#r),this.#t.discardStdin&&ir.default.stdin.isTTY&&this.#n&&(Xi.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:rr.success,text:t})}fail(t){return this.stopAndPersist({symbol:rr.error,text:t})}warn(t){return this.stopAndPersist({symbol:rr.warning,text:t})}info(t){return this.stopAndPersist({symbol:rr.info,text:t})}stopAndPersist(t={}){if(this.#c)return this;let n=t.prefixText??this.#a,r=this.#y(n," "),o=t.symbol??" ",i=t.text??this.text,a=typeof i=="string"?(o?" ":"")+i:"",u=t.suffixText??this.#l,l=this.#b(u," "),c=r+o+a+l+`
|
|
10
|
+
`;return this.stop(),this.#r.write(c),this}}});function rs(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),ao.default.platform==="darwin"?Kg(e):ao.default.platform==="win32"?Xg(e):Qg(e)}var X,ts,ao,pt,ns,mn,Kg,Xg,Qg,mu=A(()=>{"use strict";X=D(require("path"),1),ts=D(require("os"),1),ao=D(require("process"),1),pt=ts.default.homedir(),ns=ts.default.tmpdir(),{env:mn}=ao.default,Kg=e=>{let t=X.default.join(pt,"Library");return{data:X.default.join(t,"Application Support",e),config:X.default.join(t,"Preferences",e),cache:X.default.join(t,"Caches",e),log:X.default.join(t,"Logs",e),temp:X.default.join(ns,e)}},Xg=e=>{let t=mn.APPDATA||X.default.join(pt,"AppData","Roaming"),n=mn.LOCALAPPDATA||X.default.join(pt,"AppData","Local");return{data:X.default.join(n,e,"Data"),config:X.default.join(t,e,"Config"),cache:X.default.join(n,e,"Cache"),log:X.default.join(n,e,"Log"),temp:X.default.join(ns,e)}},Qg=e=>{let t=X.default.basename(pt);return{data:X.default.join(mn.XDG_DATA_HOME||X.default.join(pt,".local","share"),e),config:X.default.join(mn.XDG_CONFIG_HOME||X.default.join(pt,".config"),e),cache:X.default.join(mn.XDG_CACHE_HOME||X.default.join(pt,".cache"),e),log:X.default.join(mn.XDG_STATE_HOME||X.default.join(pt,".local","state"),e),temp:X.default.join(ns,t,e)}}});function lo(){return/[<>:"/\\|?*\u0000-\u001F]/g}function hu(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var gu=A(()=>{"use strict"});function ar(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(lo().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(ty,o),e=e.replace(lo(),o),e=e.replace(n,o),e=e.replace(ny,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=hu().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:ey;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),u=e.slice(s);e=a.slice(0,Math.max(1,i-u.length))+u}}return e}var ey,ty,ny,os=A(()=>{"use strict";gu();ey=100,ty=/^\.+(\\|\/)|^\.+$/,ny=/\.+$/});var ry,yu=A(()=>{"use strict";ry=D(require("path"),1);os()});var bu=A(()=>{"use strict";os();yu()});function Du(e){is=e}function re(){return is}function Ge(){return!is}var is,xe=A(()=>{"use strict";is=!1});async function uo(e){try{return await e()}catch(t){throw t instanceof Error&&oy.test(t.message)&&(p.debug(t.message),process.exit(130)),t}}async function pe(e){return re()?e.default??!1:uo(()=>ft.confirm(e))}async function Fe(e){return re()?"default"in e?e.default:null:uo(()=>ft.select(e))}async function Le(e){return re()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:uo(()=>ft.input(e))}async function co(e){if(re()){let t=[];return await e.validate?.(t)!==!0?null:t}return uo(()=>ft.checkbox(e))}var ft,oy,Ne=A(()=>{"use strict";ft=D(require("@inquirer/prompts"));xe();U();oy=/SIGINT/i});var mt,ss=A(()=>{"use strict";mt="webflow.json"});var tt,jt,lr=A(()=>{"use strict";tt=class extends Error{constructor(t){super(`Manifest file not found at path: ${t}`),this.name="ManifestFileNotFoundError"}},jt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function Bt(e){if(e){if(e.endsWith(mt))return e;if((0,wu.statSync)(e)?.isDirectory())return(0,vu.join)(e,mt);throw new Error(`Manifest file name must be ${mt}`)}return`./${mt}`}var wu,vu,po=A(()=>{"use strict";wu=require("fs"),vu=require("path");ss()});var ku,iy,sy,as,xu=A(()=>{"use strict";ku=D(require("ajv")),iy=new ku.default,sy={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},renderers:{type:"object",additionalProperties:{type:"string"},minProperties: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"]}}},as=iy.compile(sy)});function Fu(e){return e instanceof Error?e:new Error("Unknown error")}function ae(e){let t=Bt(e);if(!(0,fo.existsSync)(t))throw new tt(t);let n;try{n=(0,fo.readFileSync)(t,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${Fu(o).message}`)}let r;try{r=JSON.parse(n)}catch(o){throw new Error(`Invalid JSON in manifest file: ${Fu(o).message}`)}if(!as(r)){let o=as.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:r,manifestPath:t}}var fo,ls=A(()=>{"use strict";fo=require("fs");lr();po();xu()});function Lt(e,t){let n=e[t];if(!n)throw new jt(t);return n}var _u=A(()=>{"use strict";lr()});function be(e,t){let n,r;try{let i=ae(t);n=i.manifest,r=i.manifestPath}catch(i){if(i instanceof tt)n={},r=Bt(t);else throw i}let o={...n};for(let i in e){let s=i,a=e[s];a&&(o[s]={...o[s],...a})}(0,Eu.writeFileSync)(r,JSON.stringify(o,null,2),"utf-8")}var Eu,Cu=A(()=>{"use strict";Eu=require("fs");lr();ls();po()});var qe=A(()=>{"use strict";ss();lr();ls();po();_u();Cu()});var us=Ti((LE,ay)=>{ay.exports={name:"@webflow/webflow-cli",version:"1.8.50",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"rm -fr ./dist; tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:local":"jest"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@dotenvx/dotenvx":"^1.44.1","@inquirer/prompts":"^7.9.0","@module-federation/enhanced":"0.20.0","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","env-paths":"^3.0.0","fast-glob":"^3.3.3",filenamify:"^6.0.0","fork-ts-checker-webpack-plugin":"9.1.0","form-data":"4.0.4","fs-extra":"^11.3.0","jsonc-parser":"^3.2.0",md5:"^2.2.1",memfs:"4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",ora:"^8.2.0",postcss:"^8.5.6","postcss-loader":"^8.1.1","postcss-selector-parser":"^7.1.0",prettier:"^2.7.1",semver:"^7.7.2","serve-handler":"^6.1.5","source-map-support":"^0.5.21",tar:"^7.4.3","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.0",webpack:"^5.99.7","webpack-merge":"^6.0.1","webpack-node-externals":"^3.0.0",zod:"^3.22.4"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/fs-extra":"^11.0.4","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"2.6.13","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","@types/source-map":"^0.5.2","@types/webpack-node-externals":"^3.0.4",astro:"^5.7.0","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1",tar:"^7.4.3","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}}});function Nt(){try{return us().version}catch{return"unknown"}}function He(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=ur.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=ur.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 He(e.stack)}function ht(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]=He(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=ht(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?ht(s):typeof s=="string"?He(s):s):n[r]=o}return n}function Su(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${ur.default.type()} ${ur.default.release()}`}}function ds(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var ur,cr=A(()=>{"use strict";ur=D(require("os"))});var Mt,ps=A(()=>{"use strict";Ne();qe();cr();xe();Mt=class e{static instance;cache=void 0;static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await ae(),n=t?.telemetry?.global?.allowTelemetry;return this.cache=n,n}catch{return}}async setPreference(t){this.cache=t,await this.setGlobalPreference(t)}async promptForConsent(t){if(re())return Promise.resolve(!1);let o=await pe({message:t||"Help us improve Webflow CLI by sharing usage data and error reports?",default:!0});return await pe({message:"Would you like to save this choice for all Webflow CLI commands?",default:!0})&&await this.setPreference(o),o}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let n={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:Nt()}}};await be(n),this.cache=t}async hasGlobalPreference(){return await this.getPreference()!==void 0}async getTelemetryStatus(){let t=await this.getPreference();return t!==void 0?{enabled:t,source:"global",hasPreference:!0}:{enabled:!1,source:"none",hasPreference:!1}}setCacheValue(t,n){this.cache=n}}});var Tu,Je,fs=A(()=>{"use strict";Tu=D(require("node-fetch"));ps();cr();U();Je=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Mt.getInstance(),this.sessionId=ds(),this.platformInfo=Su()}async sendEvent(t){if(await this.isEnabled())try{let n=this.enrichEvent(t),r=this.sanitizeEvent(n);await this.transmitEvent(r)}catch(n){p.debug(`Failed to send telemetry event: ${n}`)}}async sendError(t,n,r){if(!await this.isEnabled())return;let o={eventType:"error",name:t.name,message:t.message,cause:t.cause,stack:cs(t),context:n,metadata:r?ht(r):void 0};await this.sendEvent(o)}async sendUsage(t,n,r,o){if(!await this.isEnabled())return;let i={eventType:"usage",feature:t,success:n,duration:r,data:o?ht(o):void 0};await this.sendEvent(i)}async sendPerformance(t,n,r){if(!await this.isEnabled())return;let o={eventType:"performance",operation:t,duration:n,memoryBefore:void 0,memoryAfter:void 0,metrics:r};await this.sendEvent(o)}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}async promptForConsentIfNeeded(t){let n=await this.consentManager.getPreference();return n!==void 0?n:await this.consentManager.promptForConsent(t??"Help us improve Webflow CLI by sharing usage data and error reports?")}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:Nt(),command:process.argv.slice(2).join(" ")||void 0,metadata:{...t.metadata,commandType:this.config.commandType,siteId:this.config.siteId,projectId:this.config.projectId,os:this.platformInfo.os,arch:this.platformInfo.arch}},...t}}sanitizeEvent(t){let n=JSON.parse(JSON.stringify(t));return n.message&&(n.message=He(n.message)),n.stack&&(n.stack=He(n.stack)),n.context&&(n.context=He(n.context)),n.metadata&&(n.metadata=ht(n.metadata)),n.data&&(n.data=ht(n.data)),n}async transmitEvent(t){let n=this.getEndpoint(),r=process.env.WEBFLOW_TELEMETRY_DEBUG==="true";if(r){console.log(`\u{1F4CA} [Telemetry] Sending to: ${n}`);let i={...t};i.metadata&&(delete i.metadata.authToken,delete i.metadata.apiToken),console.log("\u{1F4CA} [Telemetry] Payload:",JSON.stringify(i,null,2))}let o=await(0,Tu.default)(n,{method:"POST",headers:{Authorization:`Bearer ${this.config.authToken}`,"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3});if(o.ok)r&&console.log(`\u{1F4CA} [Telemetry] Request successful: ${o.status}`);else throw r&&console.error(`\u{1F4CA} [Telemetry] Request failed: ${o.status} ${o.statusText}`),new Error(`Telemetry request failed: ${o.status} ${o.statusText}`)}getEndpoint(){let{host:t,commandType:n}=this.config;return`${t}/webflow-cli/${n}/telemetry`}static fromDevlinkConfig(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"devlink",allowTelemetry:t.allowTelemetry})}static forCloud(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host,authToken:t.authToken,commandType:"library"})}}});var Au=A(()=>{"use strict"});function mo(e){return async(t,n)=>{try{await e.sendError(t,n)}catch(r){p.debug("Failed to send error telemetry:"+r)}}}function ho(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,u=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:u-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}function Ou(e){return async(t,n,r)=>{let o=Date.now();try{let i=await n(),s=Date.now()-o;return await e.sendUsage(t,!0,s,r),i}catch(i){let s=Date.now()-o;throw await e.sendUsage(t,!1,s,{error:i instanceof Error?i.message:"Unknown error",...r}),i}}}var hn=A(()=>{"use strict";U();fs();ps();Au();cr();fs();cr()});function Iu(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function gt(e){dr.push(He(e)),dr.length>cy&&dr.shift()}function fy(e){return gt(`DEBUG: ${e}`),`${ne.cyan("DEBUG:")} ${e}`}function yt(e){return gt(`INFO: ${e}`),`${ne.green("INFO:")} ${e}`}function bn(e){return gt(`WARN: ${e}`),`${ne.yellow("WARN:")} ${e}`}function bt(e){let t=e instanceof Error?e.stack:e;return gt(`ERROR: ${t}`),ms=!0,`${ne.red("ERROR:")} ${t}`}function my(e){return gt(`SUCCESS: ${e}`),`${ne.green(e)}`}function hy(e){let t=fn(`${e}...`).start(),n=!1,r=o=>i=>{gt(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(ms=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function gy(){let e=gn.default.readdirSync(_e).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:gn.default.statSync(go.default.join(_e,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=uy;)try{let t=e.pop();if(!t)break;gn.default.removeSync(go.default.join(_e,t.name))}catch{}}function hs(){try{gn.default.ensureDirSync(_e),gy(),dr.unshift(`CLI Version: ${Nt()}`,`Command: ${process.argv.slice(2).join(" ")||"N/A"}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}
|
|
11
|
+
`),gn.default.writeFileSync(Pu,dr.join(`
|
|
12
|
+
`)),(process.env.DEBUG||ms||process.argv.includes("--verbose"))&&(console.info(`
|
|
13
|
+
${ne.green("INFO:")} Full log of this session: ${Pu}`),console.info(`
|
|
14
|
+
${ne.green("INFO:")} All logs: ${_e}`))}catch(e){console.error("Failed to write logs:",e)}}var gn,go,tC,ly,_e,uy,cy,dy,Pu,dr,ms,py,ne,yn,p,U=A(()=>{"use strict";gn=D(require("fs-extra")),go=D(require("path")),tC=require("source-map-support/register");es();mu();bu();hn();ly=rs("webflow-cli"),_e=ly.log;uy=Iu(process.env.MAX_PERSISTED_LOGS,50),cy=Iu(process.env.MAX_IN_MEMORY_LOGS,1e3),dy=`${ar(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Pu=go.default.join(_e,dy);dr=[],ms=!1,py={reset:"\x1B[0m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"},ne=Object.entries(py).reduce((e,[t,n])=>({...e,[t]:r=>`${n}${r}\x1B[0m`}),{});yn=!1;process.on("uncaughtException",e=>{yn||(yn=!0,gt(`UNCAUGHT EXCEPTION: ${e?.stack}`),hs()),process.exit(1)});process.on("unhandledRejection",e=>{yn||(yn=!0,gt(`UNHANDLED REJECTION: ${e?.stack}`),hs()),process.exit(1)});process.on("exit",()=>{yn||(yn=!0,hs())});p={debug:e=>{let t=fy(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(yt(e)),warn:e=>console.warn(bn(e)),error:e=>console.error(bt(e)),success:e=>console.log(my(e)),spinner:hy}});var zu,Wu=A(()=>{"use strict";zu=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 bs,Z,nt,Dn,mr,Ds,hr,gr,bo,fe=A(()=>{"use strict";Wu();bs=(e,t)=>(zu(t)||(console.error(`Error: Invalid ${e} environment variable. Only valid plain HTTP/HTTPS URLs without query parameters and anchors is allowed.`),process.exit(1)),t),Z=process.env.WEBFLOW_API_HOST?bs("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):process.env.BUILD_ENV==="development"?"https://api.wfdev.io:8443":process.env.BUILD_ENV==="acceptance"?"https://api.webflowtest.com":"https://api.webflow.com",nt=process.env.WEBFLOW_CDN_API_HOST?bs("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):process.env.BUILD_ENV==="development"?"https://api-cdn.wfdev.io:8443":process.env.BUILD_ENV==="acceptance"?"https://api-cdn.webflowtest.com":"https://api-cdn.webflow.com",Dn=process.env.WEBFLOW_HOST?bs("WEBFLOW_HOST",process.env.WEBFLOW_HOST):process.env.BUILD_ENV==="development"?"https://wfdev.io:8443":process.env.BUILD_ENV==="acceptance"?"https://webflowtest.com":"https://webflow.com",mr="wf-manifest.json",Ds="mf-manifest.json",hr="@webflow_renderer",gr="ssr-bundle.tar",bo="index.js"});async function _y(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,nc.pathToFileURL)(e).href:e)).default}function tc(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Cs(n.join(", "))}async function kn(e=[],t=!1){if(!ic){if(t)return{};throw new Co(rt)}if(!ot)throw new Es;switch(ot){case"js":case"cjs":{await Ze.access(rt);let n=await _y(rt);return tc(n,e),n}case"json":{let n=JSON.parse(await Ze.readFile(rt,"utf8"));return tc(n,e),n}default:throw new Eo}}function Ey(e,t){if(ot==="js"||ot==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function Cy(e,t,n){let r=Ey(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function Sy(e){let t=["authToken","host","siteId"],n=await Ze.readFile(rt,"utf-8");for(let r of t)e=Cy(e,n,r);return e}async function Ty(){try{let e=kr.join(Ss,"package.json");return await Ze.access(e),JSON.parse(await Ze.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function sc(e){if(!ic)throw new Co(rt);let t=JSON.stringify(e,null,2);switch(ot){case"js":case"cjs":{let n=await Sy(t.replace(/"([^"]+)":/g,"$1:")),r=await Ty()&&ot==="js"?"export default ":"module.exports = ";return Ze.writeFile(rt,r+n)}case"json":return Ze.writeFile(rt,t);default:throw new Eo}}var kr,Ze,So,nc,JC,rc,Ss,oc,ot,rt,ic,Es,Eo,Co,Cs,To=A(()=>{"use strict";kr=D(require("path")),Ze=D(require("fs/promises")),So=D(require("fs")),nc=require("url"),JC=require("dotenv/config"),rc=["js","cjs","json"],Ss=process.cwd(),oc=".webflowrc",ot=kr.extname(So.readdirSync(Ss).find(e=>e.includes(oc))??"").replace(/\./g,""),rt=kr.join(Ss,`${oc}${ot&&`.${ot}`}`),ic=So.existsSync(rt),Es=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${rc.join(", ")}`)}},Eo=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${ot}. The supported extensions are: ${rc.join(", ")}`)}},Co=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)}},Cs=class extends Error{constructor(t){super(`The following required fields are missing or undefined in your .webflowrc file: ${t}. If you're using process.env variables, make sure they're set up correctly.`)}}});function Is(e,t){console.clear(),t?.forEach(n=>console.log(n,`
|
|
15
15
|
`)),console.log(e,`
|
|
16
|
-
`)}var
|
|
16
|
+
`)}var Sc,Iy,le,Fr=A(()=>{"use strict";U();Sc=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],Iy=function(){let t,n=[];return{render(r){if(clearInterval(t),r.showSpinner){let o=0;t=setInterval(()=>{let i=Sc[o=++o%Sc.length];Is(`${ne.magenta(i)} ${r.text}`,r.flushLogs?n:[])},80)}else Is(r.text,r.flushLogs?n:[])},log(r){n.push(r),Is(r)}}}();le=Iy});async function jo(e){let{authToken:t,siteId:n}=e||{},o=Ac.existsSync(mt),i=!1;try{let{manifest:s}=ae();i=!0;try{let a=Lt(s,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_SITE_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
|
|
17
17
|
|
|
18
18
|
To set up your credentials, run:
|
|
19
|
-
webflow auth login`);return
|
|
20
|
-
${s instanceof Error?s.message:String(s)}`)}),process.exit(1)),i&&(s instanceof Error&&
|
|
19
|
+
webflow auth login`);return Tc(a?.relativeHrefRoot),{...a,host:Z,authToken:t,siteId:n,cssModules:!!a?.cssModules,components:Io(a?.components),fileExtensions:{...Po,...a.fileExtensions},...e}}catch(a){le.render({text:bt(a instanceof Error?a.message:String(a))}),process.exit(1)}}catch(s){o&&(le.render({text:bt(`Your webflow.json exists but is invalid or missing required properties.
|
|
20
|
+
${s instanceof Error?s.message:String(s)}`)}),process.exit(1)),i&&(s instanceof Error&&le.render({text:bt(s instanceof Error?s.message:String(s))}),process.exit(1))}try{let s=[];t||s.push("authToken"),n||s.push("siteId");let a=await kn(s);return Tc(a?.relativeHrefRoot),{...a,host:a.host||Z,cssModules:!!a?.cssModules,components:Io(a?.components),fileExtensions:{...Po,...a.fileExtensions},...e}}catch(s){if(s instanceof Error)le.render({text:bt(s instanceof Error?s.message:String(s))});else throw s}}function Tc(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 Io(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var Ac,Po,Bo=A(()=>{"use strict";U();fe();To();qe();Fr();Ac=D(require("fs")),Po={js:"js",css:"css"}});var _r,Oc=A(()=>{"use strict";_r={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 Bc(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=wt.join(process.cwd(),n);(0,Re.existsSync)(i)||await(0,xn.mkdir)(i),Ic.forEach(u=>js.addEntry(u.name,u.options)),await Ly(i,e,t,r);let s=e.reduce((u,l)=>({...u,[l.name]:l}),{}),a=await(0,xn.readdir)(i);await Promise.all(a.map(u=>{let l=u.split(".")[0],c=s[l],d=!jc.has(l);return d&&o&&!c?(0,xn.rm)(wt.join(i,u),{recursive:!0,force:!0}):(d&&js.addEntry(l,{errorMessage:c?.error}),Promise.resolve())})),My(js.getFile(),i)}function By(e="",t){let n=t?.envVariables??{};return Object.entries(n).forEach(([r,o])=>{e=e.replace(new RegExp(`DEVLINK_ENV_${r}`,"g"),o.trim())}),e}async function Ly(e,t,n,r){await Promise.all(t.flatMap(o=>{let i=[];if(/\//.test(o.name)){let s=o.name.replace(/\/[^/]*$/,"");Ny(e,s)}if(o.js){let s=By(o.js,n),a=Er.default.format(s,_r),l=!jc.has(o.name)||["interactions","devlinkContext"].includes(o.name)?n.fileExtensions.js.replace(/\W/gi,""):Po.js,c=wt.join(e,`${o.name}.${l}`);i.push((0,Re.writeFileSync)(c,a,{flag:"w+"}))}if(o.css){let s=n.fileExtensions.css.replace(/\W/gi,"");i.push((0,Re.writeFileSync)(wt.join(e,o.module?r?`${o.name}.module.${s}`:`global.${s}`:`${o.name}.${s}`),Ls(o.css,r),{flag:"w+"}))}return o.types&&i.push((0,Re.writeFileSync)(wt.join(e,`${o.name}.d.ts`),Er.default.format(o.types,{..._r,parser:"typescript"}),{flag:"w+"})),i}))}async function Ny(e,t){let n=t.split("/"),r=e;for(let o of n)r+="/"+o,(0,Re.existsSync)(r)||(0,Re.mkdirSync)(r)}function My(e,t){(0,Re.writeFileSync)(wt.join(t,"index.js"),Er.default.format(e,_r),{flag:"w+"}),(0,Re.writeFileSync)(wt.join(t,"index.d.ts"),Er.default.format(e,{..._r,parser:"typescript"}),{flag:"w+"})}function Ry(e){let t=new Set,n=e.modules||{},r=e.useClient||!0;return{addEntry(o,i){t.add(o),n[o]={...n[o],...i}},getFile(){let o=r?`"use client";
|
|
21
21
|
|
|
22
22
|
`:"";o+=`console.warn("\u26A0\uFE0F Avoid importing components from 'index.js' for better performance. This practice is deprecated and may be removed in the future.");
|
|
23
23
|
|
|
24
|
-
`;for(let i of t){let s=
|
|
25
|
-
`}return o.trim()}}}function
|
|
24
|
+
`;for(let i of t){let s=n[i]?.as,a=n[i]?.errorMessage,u=a?` // Error: ${a}`:"";o+=`export ${s?`* as ${s}`:"*"} from './${i}';${u}
|
|
25
|
+
`}return o.trim()}}}function Ls(e,t){return t?Pc(e):(Bs={...Bs,...e},Pc(Bs))}function Pc(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
|
|
26
26
|
|
|
27
|
-
`)}var
|
|
28
|
-
`)}})}function
|
|
29
|
-
`)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-
|
|
30
|
-
`)}function
|
|
31
|
-
`+
|
|
32
|
-
`,13,!0)},emit(u){o+=u},result(){return o}};n&&(typeof n.decorator=="function"&&(s=n.decorator(s)),n.sourceMap&&(s=Ob(s)),n.mode in Xs&&(s.tokenBefore=Xs[n.mode]));let a={node:u=>s.node(u),children:Nb,token:(u,l)=>s.token(u,l),tokenize:Mb};return s.node(r),s.result()}}function $b(e){return{fromPlainObject(t){return e(t,{enter(r){r.children&&!(r.children instanceof ne)&&(r.children=new ne().fromArray(r.children))}}),t},toPlainObject(t){return e(t,{leave(r){r.children&&r.children instanceof ne&&(r.children=r.children.toArray())}}),t}}}function jc(e){return typeof e=="function"?e:Dn}function Bc(e,t){return function(r,n,o){r.type===t&&e.call(this,r,n,o)}}function zb(e,t){let r=t.structure,n=[];for(let o in r){if(ba.call(r,o)===!1)continue;let i=r[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&&n.push(s)}return n.length?{context:t.walkContext,fields:n}:null}function Wb(e){let t={};for(let r in e.node)if(ba.call(e.node,r)){let n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=zb(r,n)}return t}function Lc(e,t){let r=e.fields.slice(),n=e.context,o=typeof n=="string";return t&&r.reverse(),function(i,s,a,u){let l;o&&(l=s[n],s[n]=i);for(let c of r){let d=i[c.name];if(!c.nullable||d){if(c.type==="list"){if(t?d.reduceRight(u,!1):d.reduce(u,!1))return!0}else if(a(d))return!0}}o&&(s[n]=l)}}function Nc({StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}}}function Ub(e){let t=Wb(e),r={},n={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)ba.call(t,l)&&t[l]!==null&&(r[l]=Lc(t[l],!1),n[l]=Lc(t[l],!0));let s=Nc(r),a=Nc(n),u=function(l,c){function d(C,M,F){let T=f.call(z,C,M,F);return T===o?!0:T===i?!1:!!(y.hasOwnProperty(C.type)&&y[C.type](C,z,d,k)||m.call(z,C,M,F)===o)}let f=Dn,m=Dn,y=r,k=(C,M,F,T)=>C||d(M,F,T),z={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")f=c;else if(c&&(f=jc(c.enter),m=jc(c.leave),c.reverse&&(y=n),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?a[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=Bc(f,c.visit),m=Bc(m,c.visit)}if(f===Dn&&m===Dn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");d(l)};return u.break=o,u.skip=i,u.find=function(l,c){let d=null;return u(l,function(f,m,y){if(c.call(this,f,m,y))return d=f,o}),d},u.findLast=function(l,c){let d=null;return u(l,{reverse:!0,enter(f,m,y){if(c.call(this,f,m,y))return d=f,o}}),d},u.findAll=function(l,c){let d=[];return u(l,function(f,m,y){c.call(this,f,m,y)&&d.push(f)}),d},u}function Vb(e){return e}function Gb(e){let{min:t,max:r,comma:n}=e;return t===0&&r===0?n?"#?":"*":t===0&&r===1?"?":t===1&&r===0?n?"#":"+":t===1&&r===1?"":(n?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(r!==0?r:"")+"}")}function qb(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 Hb(e,t,r,n){let o=e.combinator===" "||n?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Da(s,t,r,n)).join(o);return e.explicit||r?(n||i[0]===","?"[":"[ ")+i+(n?"]":" ]"):i}function Da(e,t,r,n){let o;switch(e.type){case"Group":o=Hb(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Da(e.term,t,r,n)+t(Gb(e),e);case"Type":o="<"+e.name+(e.opts?t(qb(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 Yo(e,t){let r=Vb,n=!1,o=!1;return typeof t=="function"?r=t:t&&(n=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(r=t.decorate)),Da(e,r,n,o)}function Jb(e,t){let r=e.tokens,n=e.longestMatch,o=n<r.length&&r[n].node||null,i=o!==t?o:null,s=0,a=0,u=0,l="",c,d;for(let f=0;f<r.length;f++){let m=r[f].value;f===n&&(a=m.length,s=l.length),i!==null&&r[f].node===i&&(f<=n?u++:u=0),l+=m}return n===r.length||u>1?(c=To(i||t,"end")||wn(Mc,l),d=wn(c)):(c=To(i,"start")||wn(To(t,"start")||Mc,l.slice(0,s)),d=To(i,"end")||wn(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:d}}function To(e,t){let r=e&&e.loc&&e.loc[t];return r?"line"in r?wn(r):r:null}function wn({offset:e,line:t,column:r},n){let o={offset:e,line:t,column:r};if(n){let i=n.split(/\n|\r\n?|\f/);o.offset+=n.length,o.line+=i.length-1,o.column=i.length===1?o.column+n.length:i.pop().length+1}return o}function wa(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Wo&&e.charCodeAt(t+1)===Wo}function Ed(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Wo&&e.charCodeAt(t+1)!==Wo){let r=e.indexOf("-",t+2);if(r!==-1)return e.substring(t,r+1)}return""}function Yb(e){if(Ao.has(e))return Ao.get(e);let t=e.toLowerCase(),r=Ao.get(t);if(r===void 0){let n=wa(t,0),o=n?"":Ed(t,0);r=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:n})}return Ao.set(e,r),r}function Kb(e){if(Dr.has(e))return Dr.get(e);let t=e,r=e[0];r==="/"?r=e[1]==="/"?"//":"/":r!=="_"&&r!=="*"&&r!=="$"&&r!=="#"&&r!=="+"&&r!=="&"&&(r="");let n=wa(t,r.length);if(!n&&(t=t.toLowerCase(),Dr.has(t))){let a=Dr.get(t);return Dr.set(e,a),a}let o=n?"":Ed(t,r.length),i=t.substr(0,r.length+o.length),s=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:o,prefix:i,custom:n});return Dr.set(e,s),s}function Qs(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Fn(e,t,r){for(;e!==null&&(e.type===13||e.type===25);)e=r(++t);return t}function gt(e,t,r,n){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Cn||o===Ue){if(r)return 0;t++}for(;t<e.value.length;t++)if(!ie(e.value.charCodeAt(t)))return 0;return n+1}function zs(e,t,r){let n=!1,o=Fn(e,t,r);if(e=r(o),e===null)return t;if(e.type!==10)if(Qs(e,Cn)||Qs(e,Ue)){if(n=!0,o=Fn(r(++o),o,r),e=r(o),e===null||e.type!==10)return 0}else return t;if(!n){let i=e.value.charCodeAt(0);if(i!==Cn&&i!==Ue)return 0}return gt(e,n?0:1,n,o)}function Qb(e,t){let r=0;if(!e)return 0;if(e.type===10)return gt(e,0,Xb,r);if(e.type===1&&e.value.charCodeAt(0)===Ue){if(!Fr(e.value,1,$s))return 0;switch(e.value.length){case 2:return zs(t(++r),r,t);case 3:return e.value.charCodeAt(2)!==Ue?0:(r=Fn(t(++r),r,t),e=t(r),gt(e,0,wr,r));default:return e.value.charCodeAt(2)!==Ue?0:gt(e,3,wr,r)}}else if(e.type===1||Qs(e,Cn)&&t(r+1).type===1){if(e.type!==1&&(e=t(++r)),e===null||!Fr(e.value,0,$s))return 0;switch(e.value.length){case 1:return zs(t(++r),r,t);case 2:return e.value.charCodeAt(1)!==Ue?0:(r=Fn(t(++r),r,t),e=t(r),gt(e,0,wr,r));default:return e.value.charCodeAt(1)!==Ue?0:gt(e,2,wr,r)}}else if(e.type===12){let n=e.value.charCodeAt(0),o=n===Cn||n===Ue?1:0,i=o;for(;i<e.value.length&&ie(e.value.charCodeAt(i));i++);return i===o||!Fr(e.value,i,$s)?0:i+1===e.value.length?zs(t(++r),r,t):e.value.charCodeAt(i+1)!==Ue?0:i+2===e.value.length?(r=Fn(t(++r),r,t),e=t(r),gt(e,0,wr,r)):gt(e,i+2,wr,r)}return 0}function ea(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function rD(e,t){return e.value.charCodeAt(0)===t}function vn(e,t,r){let n=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===Sd&&r&&n!==0)return vn(e,t+n+1,!1),6;if(!yt(i)||++n>6)return 0}return n}function Oo(e,t,r){if(!e)return 0;for(;ea(r(t),Td);){if(++e>6)return 0;t++}return t}function nD(e,t){let r=0;if(e===null||e.type!==1||!Fr(e.value,0,tD)||(e=t(++r),e===null))return 0;if(ea(e,eD))return e=t(++r),e===null?0:e.type===1?Oo(vn(e,0,!0),++r,t):ea(e,Td)?Oo(1,++r,t):0;if(e.type===10){let n=vn(e,1,!0);return n===0?0:(e=t(++r),e===null?r:e.type===12||e.type===10?!rD(e,Sd)||!vn(e,1,!1)?0:r+1:Oo(n,r,t))}return e.type===12?Oo(vn(e,1,!0),++r,t):0}function Be(e,t){return t<e.length?e.charCodeAt(t):0}function Ad(e,t){return En(e,0,e.length,t)}function Od(e,t){for(let r=0;r<t.length;r++)if(Ad(e,t[r]))return!0;return!1}function Pd(e,t){return t!==e.length-2?!1:Be(e,t)===92&&ie(Be(e,t+1))}function Ko(e,t,r){if(e&&e.type==="Range"){let n=Number(r!==void 0&&r!==t.length?t.substr(0,r):t);if(isNaN(n)||e.min!==null&&n<e.min&&typeof e.min!="string"||e.max!==null&&n>e.max&&typeof e.max!="string")return!0}return!1}function iD(e,t){let r=0,n=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==r)break e;if(r=n.pop(),n.length===0){o++;break e}break;case 2:case 21:case 19:case 23:n.push(r),r=va.get(e.type);break}o++}while(e=t(o));return o}function Fe(e){return function(t,r,n){return t===null?0:t.type===2&&Od(t.value,oD)?iD(t,r):e(t,r,n)}}function J(e){return function(t){return t===null||t.type!==e?0:1}}function sD(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return Od(t,Cd)||Ad(t,"default")?0:1}function aD(e){return e===null||e.type!==1||Be(e.value,0)!==45||Be(e.value,1)!==45?0:1}function lD(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 r=1;r<t;r++)if(!yt(Be(e.value,r)))return 0;return 1}function uD(e){return e===null||e.type!==4||!jo(Be(e.value,1),Be(e.value,2),Be(e.value,3))?0:1}function cD(e,t){if(!e)return 0;let r=0,n=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==r)break e;r=n.pop();break;case 17:if(r===0)break e;break;case 9:if(r===0&&e.value==="!")break e;break;case 2:case 21:case 19:case 23:n.push(r),r=va.get(e.type);break}o++}while(e=t(o));return o}function dD(e,t){if(!e)return 0;let r=0,n=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==r)break e;r=n.pop();break;case 2:case 21:case 19:case 23:n.push(r),r=va.get(e.type);break}o++}while(e=t(o));return o}function Qe(e){return e&&(e=new Set(e)),function(t,r,n){if(t===null||t.type!==12)return 0;let o=Ho(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!Pd(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return Ko(n,t.value,o)?0:1}}function pD(e,t,r){return e===null||e.type!==11||Ko(r,e.value,e.value.length-1)?0:1}function Id(e){return typeof e!="function"&&(e=function(){return 0}),function(t,r,n){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,r,n)}}function fD(e,t,r){if(e===null)return 0;let n=Ho(e.value,0);return n!==e.value.length&&!Pd(e.value,n)||Ko(r,e.value,n)?0:1}function mD(e,t,r){if(e===null||e.type!==10)return 0;let n=Be(e.value,0)===43||Be(e.value,0)===45?1:0;for(;n<e.value.length;n++)if(!ie(Be(e.value,n)))return 0;return Ko(r,e.value,n)?0:1}function yD(e){let{angle:t,decibel:r,frequency:n,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Fe(Qe(null)),angle:Fe(Qe(t)),decibel:Fe(Qe(r)),frequency:Fe(Qe(n)),flex:Fe(Qe(o)),length:Fe(Id(Qe(i))),resolution:Fe(Qe(s)),semitones:Fe(Qe(a)),time:Fe(Qe(u))}}function bD(e){return{...hD,...gD,...yD(e)}}function jd(e,t,r){return Object.assign(Zo("SyntaxError",e),{input:t,offset:r,rawMessage:e,message:e+`
|
|
27
|
+
`)}var Re,xn,wt,Er,jy,js,Ic,jc,Bs,Ns=A(()=>{"use strict";Re=require("fs"),xn=require("fs/promises"),wt=D(require("path")),Er=D(require("prettier"));Bo();Oc();jy={modules:{},useClient:!0},js=Ry(jy),Ic=[{name:"_Builtin",options:{as:"_Builtin"}},{name:"devlinkContext"},{name:"interactions"},{name:"utils"},{name:"devlink"}],jc=new Set([...Ic.map(e=>e.name),"_Builtin/index","types","index","global"]);Bs={}});function Fn(e){return async function(n){Wt.default.removeListener("uncaughtException",Fn),Wt.default.removeListener("unhandledRejection",Fn);let r=await jo(e);if(!r)return;await new Ms(r,n).prompt()}}function Nc(e){Wt.default.on("uncaughtException",Fn(e)),Wt.default.on("unhandledRejection",Fn(e))}var Lc,Wt,Ms,Rs=A(()=>{"use strict";Lc=D(require("node-fetch"));Ne();Wt=D(require("process"));Bo();To();qe();xe();Ms=class{config;error;constructor(t,n){this.config=t,this.error=n}stripPII(t=""){return t.replace(/\/(.*)webflow-cli/gi,"/REDACTED_PII/webflow-cli/").replace(/\/(.*)node_modules/gi,"/REDACTED_PII/node_modules")}sendTelemetry(){let t=this.config,n=this.error;(0,Lc.default)(`${t.host}/devlink/${t.siteId}/telemetry`,{headers:{Authorization:`Bearer ${t.authToken}`,"Content-Type":"application/json"},method:"post",body:JSON.stringify({cause:n.cause,message:n.message,name:n.name,stack:this.stripPII(n.stack),platform:Wt.default.platform,node:Wt.default.version})})}async storeChoice(t){try{return be({devlink:{allowTelemetry:t}})}catch{let r=await kn();await sc({...r,allowTelemetry:t})}}async prompt(){let t=this.config;if(console.error(this.error),t.allowTelemetry===!0)console.log("Sending crash report telemetry..."),this.sendTelemetry();else if(t.allowTelemetry===!1){console.log("Skipping crash report telemetry...");return}else{if(re())return Promise.resolve(!1);let n=await pe({message:"An unexpected error ocurred while syncing your components. Would like to send a crash report back to the developer team?",default:!0});await pe({message:"Would you like to save this choice for the future?",default:!0})&&(console.log("Storing your choice..."),await this.storeChoice(n)),n?(console.log("Sending crash report telemetry..."),this.sendTelemetry()):console.log("Skipping crash report telemetry...")}}}});function se(e){return e>=48&&e<=57}function Ft(e){return se(e)||e>=65&&e<=70||e>=97&&e<=102}function xa(e){return e>=65&&e<=90}function _b(e){return e>=97&&e<=122}function Eb(e){return xa(e)||_b(e)}function Cb(e){return e>=128}function Jo(e){return Eb(e)||Cb(e)||e===95}function Fa(e){return Jo(e)||se(e)||e===45}function Sb(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 Gt(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?Jo(t)||t===45||ze(t,n):Jo(e)?!0:e===92?ze(e,t):!1}function $s(e,t,n){return e===43||e===45?se(t)?2:t===46&&se(n)?3:0:e===46?se(t)?2:0:se(e)?1:0}function jd(e){return e===65279||e===65534?1:0}function zs(e){return e<128?ia[e]:_a}function An(e,t){return t<e.length?e.charCodeAt(t):0}function sa(e,t,n){return n===13&&An(e,t+1)===10?2:1}function On(e,t,n){let r=e.charCodeAt(t);return xa(r)&&(r=r|32),r===n}function Br(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(xa(s)&&(s=s|32),s!==i)return!1}return!0}function Ab(e,t){for(;t>=0&&Gt(e.charCodeAt(t));t--);return t+1}function Lo(e,t){for(;t<e.length&&Gt(e.charCodeAt(t));t++);return t}function Ws(e,t){for(;t<e.length&&se(e.charCodeAt(t));t++);return t}function qt(e,t){if(t+=2,Ft(An(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Ft(An(e,t));t++);let n=An(e,t);Gt(n)&&(t+=sa(e,t,n))}return t}function No(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Fa(n)){if(ze(n,An(e,t+1))){t=qt(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)),se(n)&&(t=Ws(e,t+1),n=e.charCodeAt(t)),n===46&&se(e.charCodeAt(t+1))&&(t+=2,t=Ws(e,t)),On(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),se(n)&&(t=Ws(e,t+1+r+1))}return t}function Us(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}ze(n,An(e,t+1))&&(t=qt(e,t))}return t}function Ea(e){if(e.length===1&&!Ft(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}function Yo(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function $c(e){let t=e.source,n=t.length,r=t.length>0?jd(t.charCodeAt(0)):0,o=Yo(e.lines,n),i=Yo(e.columns,n),s=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){let l=t.charCodeAt(u);o[u]=s,i[u]=a++,(l===Mc||l===Rc||l===Ob)&&(l===Rc&&u+1<n&&t.charCodeAt(u+1)===Mc&&(u++,o[u]=s,i[u]=a),s++,a=1)}o[n]=s,i[n]=a,e.lines=o,e.columns=i,e.computed=!0}function ri(e,t){function n(d){return d<a?e.charCodeAt(d):0}function r(){if(l=ni(e,l),Uo(n(l),n(l+1),n(l+2))){c=12,l=No(e,l);return}if(n(l)===37){c=11,l++;return}c=10}function o(){let d=l;if(l=No(e,l),Br(e,d,l,"url")&&n(l)===40){if(l=Lo(e,l+1),n(l)===34||n(l)===39){c=2,l=d+4;return}s();return}if(n(l)===40){c=2,l++;return}c=1}function i(d){for(d||(d=n(l++)),c=5;l<e.length;l++){let f=e.charCodeAt(l);switch(zs(f)){case d:l++;return;case Vo:if(Zo(f)){l+=sa(e,l,f),c=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=qt(e,l)-1);break}}}function s(){for(c=7,l=Lo(e,l);l<e.length;l++){let d=e.charCodeAt(l);switch(zs(d)){case 41:l++;return;case Vo:if(l=Lo(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=Us(e,l),c=8;return;case 34:case 39:case 40:case Ld:l=Us(e,l),c=8;return;case 92:if(ze(d,n(l+1))){l=qt(e,l)-1;break}l=Us(e,l),c=8;return}}}e=String(e||"");let a=e.length,u=jd(n(0)),l=u,c;for(;l<a;){let d=e.charCodeAt(l);switch(zs(d)){case Vo:c=13,l=Lo(e,l+1);break;case 34:i();break;case 35:Fa(n(l+1))||ze(n(l+1),n(l+2))?(c=4,l=No(e,l+1)):(c=9,l++);break;case 39:i();break;case 40:c=21,l++;break;case 41:c=22,l++;break;case 43:$s(d,n(l+1),n(l+2))?r():(c=9,l++);break;case 44:c=18,l++;break;case 45:$s(d,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(c=15,l=l+3):Uo(d,n(l+1),n(l+2))?o():(c=9,l++);break;case 46:$s(d,n(l+1),n(l+2))?r():(c=9,l++);break;case 47:n(l+1)===42?(c=25,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(c=9,l++);break;case 58:c=16,l++;break;case 59:c=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(c=14,l=l+4):(c=9,l++);break;case 64:Uo(n(l+1),n(l+2),n(l+3))?(c=3,l=No(e,l+1)):(c=9,l++);break;case 91:c=19,l++;break;case 92:ze(d,n(l+1))?o():(c=9,l++);break;case 93:c=20,l++;break;case 123:c=23,l++;break;case 125:c=24,l++;break;case Bd:r();break;case _a:o();break;default:c=9,l++}t(c,u,u=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}
|
|
28
|
+
`)}})}function Uc({source:e,line:t,column:n},r){function o(c,d){return i.slice(c,d).map((f,m)=>String(c+m+1).padStart(u)+" |"+f).join(`
|
|
29
|
+
`)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-r)-1,a=Math.min(t+r,i.length+1),u=Math.max(4,String(a).length)+1,l=0;n+=(Wc.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Vs&&(l=n-zc+3,n=zc-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,Wc),i[c]=(l>0&&i[c].length>l?"\u2026":"")+i[c].substr(l,Vs-2)+(i[c].length>l+Vs-1?"\u2026":""));return[o(s,t),new Array(n+u+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
|
|
30
|
+
`)}function Vc(e,t,n,r,o){return Object.assign(oi("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return Uc({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
|
|
31
|
+
`+Uc({source:t,line:r,column:o},2)}})}function Bb(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 Mb(e){return function(){return this[e]()}}function qs(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 Rb(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:qs(e.atrule),pseudo:qs(e.pseudo),node:qs(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]=Mb(e.parseContext[n]);break}return{config:t,...t,...t.node}}function $b(e){let t="",n="<unknown>",r=!1,o=Gc,i=!1,s=new Pb,a=Object.assign(new jb,Rb(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Bb,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(u){return u===qc?1:0},consumeUntilLeftCurlyBracketOrSemicolon(u){return u===qc||u===Gs?1:0},consumeUntilExclamationMarkOrSemicolon(u){return u===Lb||u===Gs?1:0},consumeUntilSemicolonIncluded(u){return u===Gs?2:0},createList(){return new oe},createSingleNodeList(u){return new oe().appendData(u)},getFirstListNode(u){return u&&u.first},getLastListNode(u){return u&&u.last},parseWithFallback(u,l){let c=this.tokenIndex;try{return u.call(this)}catch(d){if(i)throw d;let f=l.call(this,c);return i=!0,o(d,f),i=!1,f}},lookupNonWSType(u){let l;do if(l=this.lookupType(u++),l!==13)return l;while(l!==Hc);return Hc},charCodeAt(u){return u>=0&&u<t.length?t.charCodeAt(u):0},substring(u,l){return t.substring(u,l)},substrToCursor(u){return this.source.substring(u,this.tokenStart)},cmpChar(u,l){return On(t,u,l)},cmpStr(u,l,c){return Br(t,u,l,c)},consume(u){let l=this.tokenStart;return this.eat(u),this.substrToCursor(l)},consumeFunctionName(){let u=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),u},consumeNumber(u){let l=t.substring(this.tokenStart,ni(t,this.tokenStart));return this.eat(u),l},eat(u){if(this.tokenType!==u){let l=Nd[u].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase()),c=`${/[[\](){}]/.test(l)?`"${l}"`:l} is expected`,d=this.tokenStart;switch(u){case 1:this.tokenType===2||this.tokenType===7?(d=this.tokenEnd-1,c="Identifier is expected but function found"):c="Identifier is expected";break;case 4:this.isDelim(Nb)&&(this.next(),d++,c="Name is expected");break;case 11:this.tokenType===10&&(d=this.tokenEnd,c="Percent sign is expected");break}this.error(c,d)}this.next()},eatIdent(u){(this.tokenType!==1||this.lookupValue(0,u)===!1)&&this.error(`Identifier "${u}" is expected`),this.next()},eatDelim(u){this.isDelim(u)||this.error(`Delim "${String.fromCharCode(u)}" is expected`),this.next()},getLocation(u,l){return r?s.getLocationRange(u,l,n):null},getLocationFromList(u){if(r){let l=this.getFirstListNode(u),c=this.getLastListNode(u);return s.getLocationRange(l!==null?l.loc.start.offset-s.startOffset:this.tokenStart,c!==null?c.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(u,l){let c=typeof l<"u"&&l<t.length?s.getLocation(l):this.eof?s.getLocation(Ab(t,t.length-1)):s.getLocation(this.tokenStart);throw new Vc(u||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(u,l){t=u,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:Gc,i=!1,a.parseAtrulePrelude="parseAtrulePrelude"in l?!!l.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in l?!!l.parseRulePrelude:!0,a.parseValue="parseValue"in l?!!l.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in l?!!l.parseCustomProperty:!1;let{context:c="default",onComment:d}=l;if(!(c in a.context))throw new Error("Unknown context `"+c+"`");typeof d=="function"&&a.forEachToken((m,y,k)=>{if(m===25){let R=a.getLocation(y,k),T=Br(t,k-2,k,"*/")?t.slice(y+2,k-2):t.slice(y+2,k);d(T,R)}});let f=a.context[c].call(a,l);return a.eof||a.error(),f},{SyntaxError:Vc,config:a.config})}function Wb(e){let t=new zb.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,u=!1,l=e.node;e.node=function(f){if(f.loc&&f.loc.start&&Jc.has(f.type)){let m=f.loc.start.line,y=f.loc.start.column-1;(r.line!==m||r.column!==y)&&(r.line=m,r.column=y,n.line=s,n.column=a,u&&(u=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),u=!0,t.addMapping({source:f.loc.source,original:r,generated:n}))}l.call(this,f),u&&Jc.has(f.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(f,m,y){for(let k=0;k<f.length;k++)f.charCodeAt(k)===10?(s++,a=0):a++;c(f,m,y)};let d=e.result;return e.result=function(){return u&&t.addMapping(i),{css:d(),map:t}},e}function Rd(e){let t=new Set(e.map(([n,r])=>Hs(n)<<16|Hs(r)));return function(n,r,o){let i=Hs(r,o),s=o.charCodeAt(0);return(s===Vb&&r!==1&&r!==2&&r!==15||s===Ub?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function Jb(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 Zb(e){ri(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function Yb(e){let t=new Map;for(let n in e.node){let r=e.node[n];typeof(r.generate||r)=="function"&&t.set(n,r.generate||r)}return function(n,r){let o="",i=0,s={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:$d,token(u,l){i=this.tokenBefore(i,u,l),this.emit(l,u,!1),u===9&&l.charCodeAt(0)===Hb&&this.emit(`
|
|
32
|
+
`,13,!0)},emit(u){o+=u},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=Wb(s)),r.mode in aa&&(s.tokenBefore=aa[r.mode]));let a={node:u=>s.node(u),children:Jb,token:(u,l)=>s.token(u,l),tokenize:Zb};return s.node(n),s.result()}}function Kb(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof oe)&&(n.children=new oe().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof oe&&(n.children=n.children.toArray())}}),t}}}function Zc(e){return typeof e=="function"?e:Sr}function Yc(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function Xb(e,t){let n=t.structure,r=[];for(let o in n){if(Ca.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 Qb(e){let t={};for(let n in e.node)if(Ca.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]=Xb(n,r)}return t}function Kc(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,u){let l;o&&(l=s[r],s[r]=i);for(let c of n){let d=i[c.name];if(!c.nullable||d){if(c.type==="list"){if(t?d.reduceRight(u,!1):d.reduce(u,!1))return!0}else if(a(d))return!0}}o&&(s[r]=l)}}function Xc({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 eD(e){let t=Qb(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)Ca.call(t,l)&&t[l]!==null&&(n[l]=Kc(t[l],!1),r[l]=Kc(t[l],!0));let s=Xc(n),a=Xc(r),u=function(l,c){function d(T,W,F){let C=f.call(R,T,W,F);return C===o?!0:C===i?!1:!!(y.hasOwnProperty(T.type)&&y[T.type](T,R,d,k)||m.call(R,T,W,F)===o)}let f=Sr,m=Sr,y=n,k=(T,W,F,C)=>T||d(W,F,C),R={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")f=c;else if(c&&(f=Zc(c.enter),m=Zc(c.leave),c.reverse&&(y=r),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?a[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=Yc(f,c.visit),m=Yc(m,c.visit)}if(f===Sr&&m===Sr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");d(l)};return u.break=o,u.skip=i,u.find=function(l,c){let d=null;return u(l,function(f,m,y){if(c.call(this,f,m,y))return d=f,o}),d},u.findLast=function(l,c){let d=null;return u(l,{reverse:!0,enter(f,m,y){if(c.call(this,f,m,y))return d=f,o}}),d},u.findAll=function(l,c){let d=[];return u(l,function(f,m,y){c.call(this,f,m,y)&&d.push(f)}),d},u}function tD(e){return e}function nD(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 rD(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 oD(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Sa(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Sa(e,t,n,r){let o;switch(e.type){case"Group":o=oD(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Sa(e.term,t,n,r)+t(nD(e),e);case"Type":o="<"+e.name+(e.opts?t(rD(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=tD,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Sa(e,n,r,o)}function iD(e,t){let n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null,s=0,a=0,u=0,l="",c,d;for(let f=0;f<n.length;f++){let m=n[f].value;f===r&&(a=m.length,s=l.length),i!==null&&n[f].node===i&&(f<=r?u++:u=0),l+=m}return r===n.length||u>1?(c=Mo(i||t,"end")||Tr(Qc,l),d=Tr(c)):(c=Mo(i,"start")||Tr(Mo(t,"start")||Qc,l.slice(0,s)),d=Mo(i,"end")||Tr(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:d}}function Mo(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Tr(n):n:null}function Tr({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 Ta(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Ko&&e.charCodeAt(t+1)===Ko}function zd(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Ko&&e.charCodeAt(t+1)!==Ko){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function aD(e){if(Ro.has(e))return Ro.get(e);let t=e.toLowerCase(),n=Ro.get(t);if(n===void 0){let r=Ta(t,0),o=r?"":zd(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Ro.set(e,n),n}function lD(e){if(En.has(e))return En.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Ta(t,n.length);if(!r&&(t=t.toLowerCase(),En.has(t))){let a=En.get(t);return En.set(e,a),a}let o=r?"":zd(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 En.set(e,s),s}function la(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Ir(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function xt(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Lr||o===Ye){if(n)return 0;t++}for(;t<e.value.length;t++)if(!se(e.value.charCodeAt(t)))return 0;return r+1}function Ys(e,t,n){let r=!1,o=Ir(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(la(e,Lr)||la(e,Ye)){if(r=!0,o=Ir(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!==Lr&&i!==Ye)return 0}return xt(e,r?0:1,r,o)}function cD(e,t){let n=0;if(!e)return 0;if(e.type===10)return xt(e,0,uD,n);if(e.type===1&&e.value.charCodeAt(0)===Ye){if(!On(e.value,1,Zs))return 0;switch(e.value.length){case 2:return Ys(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ye?0:(n=Ir(t(++n),n,t),e=t(n),xt(e,0,Cn,n));default:return e.value.charCodeAt(2)!==Ye?0:xt(e,3,Cn,n)}}else if(e.type===1||la(e,Lr)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!On(e.value,0,Zs))return 0;switch(e.value.length){case 1:return Ys(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ye?0:(n=Ir(t(++n),n,t),e=t(n),xt(e,0,Cn,n));default:return e.value.charCodeAt(1)!==Ye?0:xt(e,2,Cn,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===Lr||r===Ye?1:0,i=o;for(;i<e.value.length&&se(e.value.charCodeAt(i));i++);return i===o||!On(e.value,i,Zs)?0:i+1===e.value.length?Ys(t(++n),n,t):e.value.charCodeAt(i+1)!==Ye?0:i+2===e.value.length?(n=Ir(t(++n),n,t),e=t(n),xt(e,0,Cn,n)):xt(e,i+2,Cn,n)}return 0}function ua(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function fD(e,t){return e.value.charCodeAt(0)===t}function Ar(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===Ud&&n&&r!==0)return Ar(e,t+r+1,!1),6;if(!Ft(i)||++r>6)return 0}return r}function $o(e,t,n){if(!e)return 0;for(;ua(n(t),Vd);){if(++e>6)return 0;t++}return t}function mD(e,t){let n=0;if(e===null||e.type!==1||!On(e.value,0,pD)||(e=t(++n),e===null))return 0;if(ua(e,dD))return e=t(++n),e===null?0:e.type===1?$o(Ar(e,0,!0),++n,t):ua(e,Vd)?$o(1,++n,t):0;if(e.type===10){let r=Ar(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!fD(e,Ud)||!Ar(e,1,!1)?0:n+1:$o(r,n,t))}return e.type===12?$o(Ar(e,1,!0),++n,t):0}function We(e,t){return t<e.length?e.charCodeAt(t):0}function Gd(e,t){return Br(e,0,e.length,t)}function qd(e,t){for(let n=0;n<t.length;n++)if(Gd(e,t[n]))return!0;return!1}function Hd(e,t){return t!==e.length-2?!1:We(e,t)===92&&se(We(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 gD(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=Aa.get(e.type);break}o++}while(e=t(o));return o}function Se(e){return function(t,n,r){return t===null?0:t.type===2&&qd(t.value,hD)?gD(t,n):e(t,n,r)}}function J(e){return function(t){return t===null||t.type!==e?0:1}}function yD(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return qd(t,Wd)||Gd(t,"default")?0:1}function bD(e){return e===null||e.type!==1||We(e.value,0)!==45||We(e.value,1)!==45?0:1}function DD(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Ft(We(e.value,n)))return 0;return 1}function wD(e){return e===null||e.type!==4||!Uo(We(e.value,1),We(e.value,2),We(e.value,3))?0:1}function vD(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=Aa.get(e.type);break}o++}while(e=t(o));return o}function kD(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=Aa.get(e.type);break}o++}while(e=t(o));return o}function it(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||!Hd(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 xD(e,t,n){return e===null||e.type!==11||si(n,e.value,e.value.length-1)?0:1}function Jd(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 FD(e,t,n){if(e===null)return 0;let r=ni(e.value,0);return r!==e.value.length&&!Hd(e.value,r)||si(n,e.value,r)?0:1}function _D(e,t,n){if(e===null||e.type!==10)return 0;let r=We(e.value,0)===43||We(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!se(We(e.value,r)))return 0;return si(n,e.value,r)?0:1}function SD(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Se(it(null)),angle:Se(it(t)),decibel:Se(it(n)),frequency:Se(it(r)),flex:Se(it(o)),length:Se(Jd(it(i))),resolution:Se(it(s)),semitones:Se(it(a)),time:Se(it(u))}}function TD(e){return{...ED,...CD,...SD(e)}}function Zd(e,t,n){return Object.assign(oi("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
|
|
33
33
|
`+t+`
|
|
34
|
-
--`+new Array((r||t.length)+1).join("-")+"^"})}function Go(e){return e.substringToPos(e.findWsEnd(e.pos))}function _r(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r>=128||Sn[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function qo(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function zD(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 qc(e){let t=null,r=null;return e.eat(Vo),t=qo(e),e.charCode()===Fa?(e.pos++,e.charCode()!==Uc&&(r=qo(e))):r=t,e.eat(Uc),{min:Number(t),max:r?Number(r):0}}function WD(e){let t=null,r=!1;switch(e.charCode()){case Nd:e.pos++,t={min:0,max:0};break;case xa:e.pos++,t={min:1,max:0};break;case ra:e.pos++,t={min:0,max:1};break;case ka:e.pos++,r=!0,e.charCode()===Vo?t=qc(e):e.charCode()===ra?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Vo:t=qc(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function Er(e,t){let r=WD(e);return r!==null?(r.term=t,e.charCode()===ka&&e.charCodeAt(e.pos-1)===xa?Er(e,r):r):t}function Ws(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function UD(e){let t;return e.eat(_a),e.eat(Uo),t=_r(e),e.eat(Uo),e.eat(Md),Er(e,{type:"Property",name:t})}function VD(e){let t=null,r=null,n=1;return e.eat(Xo),e.charCode()===zc&&(e.peek(),n=-1),n==-1&&e.charCode()===Vc?e.peek():(t=n*Number(qo(e)),Sn[e.charCode()]!==0&&(t+=_r(e))),Go(e),e.eat(Fa),Go(e),e.charCode()===Vc?e.peek():(n=1,e.charCode()===zc&&(e.peek(),n=-1),r=n*Number(qo(e)),Sn[e.charCode()]!==0&&(r+=_r(e))),e.eat(Ea),{type:"Range",min:t,max:r}}function GD(e){let t,r=null;return e.eat(_a),t=_r(e),e.charCode()===Ld&&e.nextCharCode()===RD&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Xo&&(Go(e),r=VD(e)),e.eat(Md),Er(e,{type:"Type",name:t,opts:r})}function qD(e){let t=_r(e);return e.charCode()===Ld?(e.pos++,{type:"Function",name:t}):Er(e,{type:"Keyword",name:t})}function HD(e,t){function r(o,i){return{type:"Group",terms:o,combinator:i,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort((o,i)=>Gc[o]-Gc[i]);t.length>0;){n=t.shift();let o=0,i=0;for(;o<e.length;o++){let s=e[o];s.type==="Combinator"&&(s.value===n?(i===-1&&(i=o-1),e.splice(o,1),o--):(i!==-1&&o-i>1&&(e.splice(i,o-i,r(e.slice(i,o),n)),o=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,o-i,r(e.slice(i,o),n))}return n}function Rd(e){let t=[],r={},n,o=null,i=e.pos;for(;n=ZD(e);)n.type!=="Spaces"&&(n.type==="Combinator"?((o===null||o.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),r[n.value]=!0):o!==null&&o.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(n),o=n,i=e.pos);return o!==null&&o.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:HD(t,r)||" ",disallowEmpty:!1,explicit:!1}}function JD(e){let t;return e.eat(Xo),t=Rd(e),e.eat(Ea),t.explicit=!0,e.charCode()===Bd&&(e.pos++,t.disallowEmpty=!0),t}function ZD(e){let t=e.charCode();if(t<128&&Sn[t]===1)return qD(e);switch(t){case Ea:break;case Xo:return Er(e,JD(e));case _a:return e.nextCharCode()===Uo?UD(e):GD(e);case Wc:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Wc?2:1))};case $c:return e.pos++,e.eat($c),{type:"Combinator",value:"&&"};case Fa:return e.pos++,{type:"Comma"};case Uo:return Er(e,{type:"String",value:zD(e)});case MD:case jD:case BD:case ND:case LD:return{type:"Spaces",value:Go(e)};case $D:return t=e.nextCharCode(),t<128&&Sn[t]===1?(e.pos++,{type:"AtKeyword",name:_r(e)}):Ws(e);case Nd:case xa:case ra:case ka:case Bd:break;case Vo:if(t=e.nextCharCode(),t<48||t>57)return Ws(e);break;default:return Ws(e)}}function Ca(e){let t=new ID(e),r=Rd(t);return t.pos!==e.length&&t.error("Unexpected input"),r.terms.length===1&&r.terms[0].type==="Group"?r.terms[0]:r}function Hc(e){return typeof e=="function"?e:kn}function $d(e,t,r){function n(s){switch(o.call(r,s),s.type){case"Group":s.terms.forEach(n);break;case"Multiplier":n(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(r,s)}let o=kn,i=kn;if(typeof t=="function"?o=t:t&&(o=Hc(t.enter),i=Hc(t.leave)),o===kn&&i===kn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");n(e,r)}function KD(e){let t=[];return Jo(e,(r,n,o)=>t.push({type:r,value:e.slice(n,o),node:null})),t}function XD(e,t){return typeof e=="string"?KD(e):t.generate(e,YD)}function ue(e,t,r){return t===G&&r===q||e===G&&t===G&&r===G?e:(e.type==="If"&&e.else===q&&t===G&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function zd(e){return e.length>2&&e.charCodeAt(e.length-2)===QD&&e.charCodeAt(e.length-1)===e0}function Jc(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&zd(e.name)}function na(e,t,r){switch(e){case" ":{let n=G;for(let o=t.length-1;o>=0;o--){let i=t[o];n=ue(i,n,q)}return n}case"|":{let n=q,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(Jc(s)&&(o===null&&i>0&&Jc(t[i-1])&&(o=Object.create(null),n=ue({type:"Enum",map:o},G,n)),o!==null)){let a=(zd(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,n=ue(s,G,n)}return n}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=na(e,t.filter(function(a){return a!==i}),!1):s=G,n=ue(i,s,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let n=r?G:q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=na(e,t.filter(function(a){return a!==i}),!0):s=G,n=ue(i,s,n)}return n}}}function t0(e){let t=G,r=Ta(e.term);if(e.max===0)r=ue(r,Sa,q),t=ue(r,null,q),t.then=ue(G,G,t),e.comma&&(t.then.else=ue({type:"Comma",syntax:e},t,q));else for(let n=e.min||1;n<=e.max;n++)e.comma&&t!==G&&(t=ue({type:"Comma",syntax:e},t,q)),t=ue(r,ue(G,G,t),q);if(e.min===0)t=ue(G,G,t);else for(let n=0;n<e.min-1;n++)e.comma&&t!==G&&(t=ue({type:"Comma",syntax:e},t,q)),t=ue(r,t,q);return t}function Ta(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=na(e.combinator,e.terms.map(Ta),!1);return e.disallowEmpty&&(t=ue(t,Sa,q)),t}case"Multiplier":return t0(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 oa(e,t){return typeof e=="string"&&(e=Ca(e)),{type:"MatchGraph",match:Ta(e),syntax:t||null,source:e}}function a0(e){let t=null,r=null,n=e;for(;n!==null;)r=n.prev,n.prev=t,t=n,n=r;return t}function Us(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=t.charCodeAt(r),o=e.charCodeAt(r);if(o>=65&&o<=90&&(o=o|32),o!==n)return!1}return!0}function l0(e){return e.type!==9?!1:e.value!=="?"}function Xc(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||l0(e)}function Qc(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function u0(e,t,r){function n(){do M++,C=M<e.length?e[M]:null;while(C!==null&&(C.type===13||C.type===25))}function o(U){let R=M+U;return R<e.length?e[R]:null}function i(U,R){return{nextState:U,matchStack:T,syntaxStack:d,thenStack:f,tokenIndex:M,prev:R}}function s(U){f={nextState:U,matchStack:T,syntaxStack:d,prev:f}}function a(U){m=i(U,m)}function u(){T={type:n0,syntax:t.syntax,token:C,prev:T},n(),y=null,M>F&&(F=M)}function l(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},T={type:ia,syntax:t.syntax,token:T.token,prev:T}}function c(){T.type===ia?T=T.prev:T={type:Wd,syntax:d.syntax,token:T.token,prev:T},d=d.prev}let d=null,f=null,m=null,y=null,k=0,z=null,C=null,M=-1,F=0,T={type:r0,syntax:null,token:null,prev:null};for(n();z===null&&++k<Kc;)switch(t.type){case"Match":if(f===null){if(C!==null&&(M!==e.length-1||C.value!=="\\0"&&C.value!=="\\9")){t=q;break}z=Yc;break}if(t=f.nextState,t===Sa)if(f.matchStack===T){t=q;break}else t=G;for(;f.syntaxStack!==d;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||M>m.tokenIndex)&&(m=y,y=!1);else if(m===null){z=o0;break}t=m.nextState,f=m.thenStack,d=m.syntaxStack,T=m.matchStack,M=m.tokenIndex,C=M<e.length?e[M]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==q&&a(t.else),t.then!==G&&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=q;break}t=G;break}if(t.mask===(1<<_.length)-1){t=G;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(C!==null){let _=C.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),Zc.call(t.map,_)){t=t.map[_];break}}t=q;break;case"Generic":{let _=d!==null?d.opts:null,h=M+Math.floor(t.fn(C,o,_));if(!isNaN(h)&&h>M){for(;M<h;)u();t=G}else t=q;break}case"Type":case"Property":{let _=t.type==="Type"?"types":"properties",h=Zc.call(r,_)?r[_][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&C!==null&&t.type==="Type"&&(t.name==="custom-ident"&&C.type===1||t.name==="length"&&C.value==="0")){y===null&&(y=i(t,m)),t=q;break}l(),t=h.match;break}case"Keyword":{let _=t.name;if(C!==null){let h=C.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),Us(h,_)){u(),t=G;break}}t=q;break}case"AtKeyword":case"Function":if(C!==null&&Us(C.value,t.name)){u(),t=G;break}t=q;break;case"Token":if(C!==null&&C.value===t.value){u(),t=G;break}t=q;break;case"Comma":C!==null&&C.type===18?Xc(T.token)?t=q:(u(),t=Qc(C)?q:G):t=Xc(T.token)||Qc(C)?G:q;break;case"String":let U="",R=M;for(;R<e.length&&U.length<t.value.length;R++)U+=e[R].value;if(Us(U,t.value)){for(;M<R;)u();t=G}else t=q;break;default:throw new Error("Unknown node type: "+t.type)}switch(s0+=k,z){case null:console.warn("[csstree-match] BREAK after "+Kc+" iterations"),z=i0,T=null;break;case Yc:for(;d!==null;)c();break;default:T=null}return{tokens:e,reason:z,iterations:k,match:T,longestMatch:F}}function ed(e,t,r){let n=u0(e,t,r||{});if(n.match===null)return n;let o=n.match,i=n.match={syntax:t.syntax||null,match:[]},s=[i];for(o=a0(o).prev;o!==null;){switch(o.type){case ia:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case Wd: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 n}function Vd(e){function t(o){return o===null?!1:o.type==="Type"||o.type==="Property"||o.type==="Keyword"}function r(o){if(Array.isArray(o.match)){for(let i=0;i<o.match.length;i++)if(r(o.match[i]))return t(o.syntax)&&n.unshift(o.syntax),!0}else if(o.node===e)return n=t(o.syntax)?[o.syntax]:[],!0;return!1}let n=null;return this.matched!==null&&r(this.matched),n}function c0(e,t){return Aa(this,e,r=>r.type==="Type"&&r.name===t)}function d0(e,t){return Aa(this,e,r=>r.type==="Property"&&r.name===t)}function p0(e){return Aa(this,e,t=>t.type==="Keyword")}function Aa(e,t,r){let n=Vd.call(e,t);return n===null?!1:n.some(r)}function Gd(e){return"node"in e?e.node:Gd(e.match[0])}function qd(e){return"node"in e?e.node:qd(e.match[e.match.length-1])}function td(e,t,r,n,o){function i(a){if(a.syntax!==null&&a.syntax.type===n&&a.syntax.name===o){let u=Gd(a),l=qd(a);e.syntax.walk(t,function(c,d,f){if(c===u){let m=new ne;do{if(m.appendData(d.data),d.data===l)break;d=d.next}while(d!==null);s.push({parent:f,nodes:m})}})}Array.isArray(a.match)&&a.match.forEach(i)}let s=[];return r.matched!==null&&i(r.matched),s}function Vs(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function rd(e){return!!e&&Vs(e.offset)&&Vs(e.line)&&Vs(e.column)}function f0(e,t){return function(r,n){if(!r||r.constructor!==Object)return n(r,"Type of node should be an Object");for(let o in r){let i=!0;if(_n.call(r,o)!==!1){if(o==="type")r.type!==e&&n(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(o==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")o+=".source";else if(!rd(r.loc.start))o+=".start";else if(!rd(r.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 r[o]=="string";break;case Boolean:i=typeof r[o]=="boolean";break;case null:i=r[o]===null;break;default:typeof a=="string"?i=r[o]&&r[o].type===a:Array.isArray(a)&&(i=r[o]instanceof ne)}}}else n(r,"Unknown field `"+o+"` for "+e+" node type");i||n(r,"Bad value for `"+e+"."+o+"`")}}for(let o in t)_n.call(t,o)&&_n.call(r,o)===!1&&n(r,"Field `"+e+"."+o+"` is missed")}}function m0(e,t){let r=t.structure,n={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in r){if(_n.call(r,i)===!1)continue;let s=[],a=n[i]=Array.isArray(r[i])?r[i].slice():[r[i]];for(let u=0;u<a.length;u++){let l=a[u];if(l===String||l===Boolean)s.push(l.name);else if(l===null)s.push("null");else if(typeof l=="string")s.push("<"+l+">");else if(Array.isArray(l))s.push("List");else throw new Error("Wrong value `"+l+"` in `"+e+"."+i+"` structure definition")}o[i]=s.join(" | ")}return{docs:o,check:f0(e,n)}}function h0(e){let t={};if(e.node){for(let r in e.node)if(_n.call(e.node,r)){let n=e.node[r];if(n.structure)t[r]=m0(r,n);else throw new Error("Missed `structure` field in `"+r+"` node type definition")}}return t}function sa(e,t,r){let n={};for(let o in e)e[o].syntax&&(n[o]=r?e[o].syntax:Yo(e[o].syntax,{compact:t}));return n}function y0(e,t,r){let n={};for(let[o,i]of Object.entries(e))n[o]={prelude:i.prelude&&(r?i.prelude.syntax:Yo(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&sa(i.descriptors,t,r)};return n}function b0(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function Ie(e,t,r){return{matched:e,iterations:r,error:t,...Ud}}function vr(e,t,r,n){let o=XD(r,e.syntax),i;return b0(o)?Ie(null,new Error("Matching for a tree with var() is not supported")):(n&&(i=ed(o,e.cssWideKeywordsSyntax,e)),(!n||!i.match)&&(i=ed(o,t.match,e),!i.match)?Ie(null,new Zb(i.reason,t.syntax,r,i),i.iterations):Ie(i.match,null,i.iterations))}function Gs(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function od(e,t){let r=Object.create(null);for(let[n,o]of Object.entries(e))if(o){r[n]={};for(let i of Object.keys(o))t.includes(i)&&(r[n][i]=o[i])}return r}function aa(e,t){let r={...e};for(let[n,o]of Object.entries(t))switch(n){case"generic":r[n]=!!o;break;case"units":r[n]={...e[n]};for(let[i,s]of Object.entries(o))r[n][i]=Array.isArray(s)?s:[];break;case"atrules":r[n]={...e[n]};for(let[i,s]of Object.entries(o)){let a=r[n][i]||{},u=r[n][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){u.prelude=s.prelude?Gs(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?Gs(u.descriptors[l],c):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":r[n]={...e[n]};for(let[i,s]of Object.entries(o))r[n][i]=Gs(r[n][i],s);break;case"scope":r[n]={...e[n]};for(let[i,s]of Object.entries(o))r[n][i]={...r[n][i],...s};break;case"parseContext":r[n]={...e[n],...o};break;case"atrule":case"pseudo":r[n]={...e[n],...od(o,["parse"])};break;case"node":r[n]={...e[n],...od(o,["name","structure","parse","generate","walkContext"])};break}return r}function Hd(e){let t=Tb(e),r=Ub(e),n=Rb(e),{fromPlainObject:o,toPlainObject:i}=$b(r),s={lexer:null,createLexer:a=>new nd(a,s,s.lexer.structure),tokenize:Jo,parse:t,generate:n,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let u=aa({},e);return Hd(typeof a=="function"?a(u,Object.assign):aa(u,a))}};return s.lexer=new nd({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function No(e,t){let r=this.tokenStart+e,n=this.charCodeAt(r);for((n===Ve||n===ye)&&(t&&this.error("Number sign is not allowed"),r++);r<this.tokenEnd;r++)ie(this.charCodeAt(r))||this.error("Integer is expected",r)}function kr(e){return No.call(this,0,e)}function ht(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let r="";switch(t){case Lo:r="N is expected";break;case ye:r="HyphenMinus is expected";break}this.error(r,this.tokenStart+e)}}function qs(){let e=0,t=0,r=this.tokenType;for(;r===13||r===25;)r=this.lookupType(++e);if(r!==10)if(this.isDelim(Ve,e)||this.isDelim(ye,e)){t=this.isDelim(Ve,e)?Ve:ye;do r=this.lookupType(++e);while(r===13||r===25);r!==10&&(this.skip(e),kr.call(this,Lt))}else return null;return e>0&&this.skip(e),t===0&&(r=this.charCodeAt(this.tokenStart),r!==Ve&&r!==ye&&this.error("Number sign is expected")),kr.call(this,t!==0),t===ye?"-"+this.consume(10):this.consume(10)}function Zd(){let e=this.tokenStart,t=null,r=null;if(this.tokenType===10)kr.call(this,v0),r=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,ye))switch(t="-1",ht.call(this,1,Lo),this.tokenEnd-this.tokenStart){case 2:this.next(),r=qs.call(this);break;case 3:ht.call(this,2,ye),this.next(),this.skipSC(),kr.call(this,Lt),r="-"+this.consume(10);break;default:ht.call(this,2,ye),No.call(this,3,Lt),this.next(),r=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(Ve)&&this.lookupType(1)===1){let n=0;switch(t="1",this.isDelim(Ve)&&(n=1,this.next()),ht.call(this,0,Lo),this.tokenEnd-this.tokenStart){case 1:this.next(),r=qs.call(this);break;case 2:ht.call(this,1,ye),this.next(),this.skipSC(),kr.call(this,Lt),r="-"+this.consume(10);break;default:ht.call(this,1,ye),No.call(this,2,Lt),this.next(),r=this.substrToCursor(e+n+1)}}else if(this.tokenType===12){let n=this.charCodeAt(this.tokenStart),o=n===Ve||n===ye,i=this.tokenStart+o;for(;i<this.tokenEnd&&ie(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),ht.call(this,i-this.tokenStart,Lo),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),r=qs.call(this)):(ht.call(this,i-this.tokenStart+1,ye),i+2===this.tokenEnd?(this.next(),this.skipSC(),kr.call(this,Lt),r="-"+this.consume(10)):(No.call(this,i-this.tokenStart+2,Lt),this.next(),r=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Ve&&(t=t.substr(1)),r!==null&&r.charCodeAt(0)===Ve&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:r}}function F0(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 r=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+r)}else this.tokenize(t)}else this.tokenize(e.b)}function id(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function _0(){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 Kd(e=!1){let t=this.tokenStart,r,n,o=null,i=null;switch(this.eat(3),r=this.substrToCursor(t+1),n=r.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,r,e),id):o=id.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,n)&&typeof this.atrule[n].block=="function"?i=this.atrule[n].block.call(this,e):i=this.Block(_0.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:r,prelude:o,block:i}}function T0(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 I0(e){this.children(e)}function N0(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(tp)?(t=!0,this.next()):this.isDelim(la)||this.eat(1),this.isDelim(la)?this.charCodeAt(this.tokenStart+1)!==Mo?(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 M0(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Mo&&t!==L0&&t!==B0&&t!==j0&&t!==tp&&t!==la&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Mo&&(this.isDelim(Mo)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function rp(){let e=this.tokenStart,t,r=null,n=null,o=null;return this.eat(19),this.skipSC(),t=N0.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(r=M0.call(this),this.skipSC(),n=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:r,value:n,flags:o}}function z0(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 op(e){return this.Raw(e,null,!0)}function sd(){return this.parseWithFallback(this.Rule,op)}function ad(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function U0(){if(this.tokenType===17)return ad.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,ad);return this.tokenType===17&&this.next(),e}function ip(e){let t=e?U0:sd,r=this.tokenStart,n=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:n.push(this.parseWithFallback(this.Atrule.bind(this,e),op));break;default:e&&this.isDelim(W0)?n.push(sd.call(this)):n.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(r,this.tokenStart),children:n}}function H0(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function ap(e,t){let r=this.tokenStart,n=null;return this.eat(19),n=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function Y0(e){this.token(9,"["),this.children(e),this.token(9,"]")}function up(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Q0(){this.token(15,"-->")}function dp(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function rw(){this.token(14,"<!--")}function fp(){return this.eatDelim(nw),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function sw(e){this.token(9,"."),this.token(1,e.name)}function hp(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case lw:case aw:case uw:this.next();break;case ld:this.next(),this.eatIdent("deep"),this.eatDelim(ld);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function pw(e){this.tokenize(e.name)}function yp(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===fw&&this.charCodeAt(t-1)===mw&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function yw(e){this.token(25,"/*"+e.value+"*/")}function xw(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Fw(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function _w(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Dp)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function wp(){let e=this.tokenStart,t=this.tokenIndex,r=Aw.call(this),n=wa(r),o=n?this.parseCustomProperty:this.parseValue,i=n?Fw:xw,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(n||this.skipSC(),o?a=this.parseWithFallback(_w,i):a=i.call(this,this.tokenIndex),n&&a.type==="Value"&&a.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Dp)&&(s=Ow.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:r,value:a}}function Tw(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 Aw(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case vw:case Dw:case kw:case bw:case ww:this.next();break;case ud:this.next(),this.isDelim(ud)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function Ow(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function Hs(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function kp(){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),Hs));break;default:this.isDelim(Pw)?e.push(this.parseWithFallback(this.Rule,Hs)):e.push(this.parseWithFallback(this.Declaration,Hs))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Bw(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function Fp(){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 Mw(e){this.token(12,e.value+e.unit)}function Ep(e,t){let r=this.tokenStart,n=this.consumeFunctionName(),o=n.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(r,this.tokenStart),name:n,children:i}}function Ww(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function Sp(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function qw(e){this.token(4,"#"+e.value)}function Ap(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Zw(e){this.token(1,e.name)}function Pp(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Xw(e){this.token(9,"#"+e.name)}function jp(){let e=this.tokenStart,t,r=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?r=this.Ratio():r=this.Number();break;case 12:r=this.Dimension();break;case 1:r=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:r}}function tv(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function Lp(){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 ov(e){this.children(e)}function Mp(){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 av(e){this.children(e,()=>this.token(18,","))}function $p(){let e=this.tokenStart;return this.eatDelim(lv),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function dv(){this.token(9,"&")}function Wp(){this.skipSC();let e=this.tokenStart,t=e,r=null,n;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?n=this.Identifier():n=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:n,selector:r}}function mv(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function Vp(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function yv(e){this.token(10,e.value)}function qp(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function wv(e){this.tokenize(e.value)}function Jp(e,t){let r=this.tokenStart,n=null;return this.eat(21),n=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function xv(e){this.token(21,"("),this.children(e),this.token(22,")")}function Yp(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Ev(e){this.token(11,e.value+"%")}function Xp(){let e=this.tokenStart,t=null,r,n;return this.eat(16),this.tokenType===2?(r=this.consumeFunctionName(),n=r.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),t=this.pseudo[n].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):r=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:r,children:t}}function Av(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function ef(){let e=this.tokenStart,t=null,r,n;return this.eat(16),this.eat(16),this.tokenType===2?(r=this.consumeFunctionName(),n=r.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),t=this.pseudo[n].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):r=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:r,children:t}}function jv(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 cd(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);!ie(r)&&r!==Lv&&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 rf(){let e=this.tokenStart,t=cd.call(this),r;return this.skipSC(),this.eatDelim(Bv),r=cd.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:r}}function Rv(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function $v(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function of(e,t,r){let n=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r&&this.tokenStart>n?o=$v.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(n,o),value:this.substring(n,o)}}function Uv(e){this.tokenize(e.value)}function dd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Vv(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function af(){let e=this.tokenIndex,t=this.tokenStart,r,n;return this.parseRulePrelude?r=this.parseWithFallback(Vv,dd):r=dd.call(this,e),n=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:r,block:n}}function Jv(e){this.node(e.prelude),this.node(e.block)}function uf(){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 Kv(e){this.children(e)}function df(){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 tk(e){this.children(e,()=>this.token(18,","))}function Pa(e){let t=e.length,r=e.charCodeAt(0),n=r===ff||r===mf?1:0,o=n===1&&t>1&&e.charCodeAt(t-1)===r?t-2:t-1,i="";for(let s=n;s<=o;s++){let a=e.charCodeAt(s);if(a===ua){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),je(ua,a)){let u=s-1,l=Mt(e,u);s=l-1,i+=ya(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function hf(e,t){let r=t?"'":'"',n=t?mf:ff,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===n||a===ua?(o+="\\"+e.charAt(s),i=!1):(i&&(yt(a)||Nt(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return r+o+r}function gf(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Pa(this.consume(5))}}function ik(e){this.token(5,hf(e.value))}function pd(e){return this.Raw(e,null,!1)}function bf(){let e=this.tokenStart,t=this.createList(),r;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==sk){this.next();continue}r=this.Comment();break;case 14:r=this.CDO();break;case 15:r=this.CDC();break;case 3:r=this.parseWithFallback(this.Atrule,pd);break;default:r=this.parseWithFallback(this.Rule,pd)}t.push(r)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function ck(e){this.children(e)}function Js(){this.tokenType!==1&&this.isDelim(dk)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function wf(){let e=this.tokenStart;return this.isDelim(fd)?(this.next(),Js.call(this)):(Js.call(this),this.isDelim(fd)&&(this.next(),Js.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function mk(e){this.tokenize(e.name)}function xn(e,t){let r=0;for(let n=this.tokenStart+e;n<this.tokenEnd;n++){let o=this.charCodeAt(n);if(o===xf&&t&&r!==0)return xn.call(this,e+r+1,!1),-1;yt(o)||this.error(t&&r!==0?"Hyphen minus"+(r<6?" or hex digit":"")+" is expected":r<6?"Hex digit is expected":"Unexpected input",n),++r>6&&this.error("Too many hex digits",n)}return this.next(),r}function Po(e){let t=0;for(;this.isDelim(ca);)++t>e&&this.error("Too many question marks"),this.next()}function hk(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===kf?"Plus sign":"Hyphen minus")+" is expected")}function gk(){let e=0;switch(this.tokenType){case 10:if(e=xn.call(this,1,!0),this.isDelim(ca)){Po.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){hk.call(this,xf),xn.call(this,1,!1);break}break;case 12:e=xn.call(this,1,!0),e>0&&Po.call(this,6-e);break;default:if(this.eatDelim(kf),this.tokenType===1){e=xn.call(this,0,!0),e>0&&Po.call(this,6-e);break}if(this.isDelim(ca)){this.next(),Po.call(this,5);break}this.error("Hex digit or question mark is expected")}}function Ff(){let e=this.tokenStart;return this.eatIdent("u"),gk.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Dk(e){this.tokenize(e.value)}function Cf(e){let t=e.length,r=4,n=e.charCodeAt(t-1)===Ef?t-2:t-1,o="";for(;r<n&&Nt(e.charCodeAt(r));)r++;for(;r<n&&Nt(e.charCodeAt(n));)n--;for(let i=r;i<=n;i++){let s=e.charCodeAt(i);if(s===da){if(i===n){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),je(da,s)){let a=i-1,u=Mt(e,a);i=u-1,o+=ya(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function Sf(e){let t="",r=!1;for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o===0){t+="\uFFFD";continue}if(o<=31||o===127){t+="\\"+o.toString(16),r=!0;continue}o===vk||o===da||o===kk||o===xk||o===Fk||o===Ef?(t+="\\"+e.charAt(n),r=!1):(r&&yt(o)&&(t+=" "),t+=e.charAt(n),r=!1)}return"url("+t+")"}function Tf(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=Cf(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=Pa(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 Ck(e){this.token(7,Sf(e.value))}function Of(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function Ak(e){this.children(e)}function If(){return this.eat(13),Ok}function jk(e){this.token(13,e.value)}function Bf(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,$k)&&this.cmpChar(this.tokenStart+1,md)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===Rk||t===Nk||t===md||t===Mk)return this.Operator();t===Lk&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function Yk(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function Kk(){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)===hd&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case Gk:case Hk:case Zk:case qk:return this.Combinator();case hd:return this.ClassSelector();case Vk:case Jk:return this.TypeSelector();case Wk:return this.IdSelector();case Uk:return this.NestingSelector()}break}}}function Qk(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function ex(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty){for(let n=t-this.tokenIndex;n<=0;n++)if(this.lookupType(n)===13){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(r)}return e}function gd(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function ax(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function lx(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Lf.call(this)}function Lf(){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(ax,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(lx,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function gx(e){let t=e.length-1,r="";for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o===bd){if(n===t)break;if(o=e.charCodeAt(++n),je(bd,o)){let i=n-1,s=Mt(e,i);n=s-1,r+=ya(e.substring(i+1,s))}else o===13&&e.charCodeAt(n+1)===10&&n++}else r+=e[n]}return r}function yx(e){let t="";if(e.length===1&&e.charCodeAt(0)===45)return"\\-";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n===0){t+="\uFFFD";continue}if(n<=31||n===127||n>=48&&n<=57&&(r===0||r===1&&e.charCodeAt(0)===45)){t+="\\"+n.toString(16)+" ";continue}ha(n)?t+=e.charAt(r):t+="\\"+e.charAt(r)}return t}var Ty,pa,Ay,Oy,Py,Iy,Cr,O,jy,By,Ly,Ny,fa,My,Ry,$y,zy,Wy,Uy,Vy,Gy,qy,Hy,Jy,Zy,Yy,Ky,Xy,Qy,eb,tb,rb,nb,ob,ib,sb,ab,lb,ub,cb,db,pb,fb,Ys,bb,Bo,wd,ga,vd,kd,xc,wb,Fc,vb,xe,mt,kb,xb,br,ne,Bs,Ec,Cc,Ac,_b,Eb,Ls,Oc,Pc,Ab,Ic,Xs,Pb,Ib,Ms,xd,jb,Bb,_d,Lb,ba,Dn,Mc,bn,Zb,Ao,Dr,Wo,Rs,Rc,Cd,Cn,Ue,$s,wr,Xb,eD,Sd,Td,tD,oD,va,hD,gD,ta,DD,wD,vD,kD,xD,FD,_D,ED,CD,SD,TD,AD,OD,PD,ID,jD,BD,LD,ND,MD,Bd,ka,$c,Uo,Ld,RD,Nd,xa,Fa,zc,_a,Md,ra,$D,Xo,Ea,Vo,Wc,Uc,Vc,Sn,Gc,kn,YD,G,q,Sa,QD,e0,Zc,r0,n0,ia,Wd,Yc,o0,i0,Kc,s0,Ud,_n,g0,nd,D0,w0,Oa,Jd,Ve,ye,Lo,Lt,v0,k0,x0,Yd,E0,C0,S0,Xd,A0,O0,P0,ep,j0,tp,Mo,B0,la,L0,R0,$0,np,W0,V0,G0,q0,sp,J0,Z0,lp,K0,X0,cp,ew,tw,pp,nw,ow,iw,mp,aw,ld,lw,uw,cw,dw,gp,fw,mw,hw,gw,bp,Dp,bw,Dw,ww,vw,kw,ud,Ew,Cw,Sw,vp,Pw,Iw,jw,xp,Lw,Nw,_p,Rw,$w,zw,Cp,Uw,Vw,Gw,Tp,Hw,Jw,Op,Yw,Kw,Ip,Qw,ev,Bp,rv,nv,Np,iv,sv,Rp,lv,uv,cv,zp,pv,fv,Up,hv,gv,Gp,bv,Dv,Hp,vv,kv,Zp,Fv,_v,Kp,Cv,Sv,Tv,Qp,Ov,Pv,Iv,tf,Bv,Lv,Nv,Mv,nf,zv,Wv,sf,Gv,qv,Hv,lf,Zv,Yv,cf,Xv,Qv,ek,pf,rk,ua,ff,mf,nk,ok,yf,sk,ak,lk,uk,Df,dk,fd,pk,fk,vf,kf,xf,ca,yk,bk,_f,wk,vk,da,kk,xk,Fk,Ef,_k,Ek,Af,Sk,Tk,Pf,Ok,Pk,Ik,Bk,jf,Lk,Nk,md,Mk,Rk,$k,zk,Wk,Uk,Vk,Gk,qk,hd,Hk,Jk,Zk,Xk,tx,rx,nx,ox,ix,sx,ux,cx,Bt,Zs,yd,Io,dx,Nf,px,fx,mx,hx,bd,LC,Mf,Rf,NC,MC,$f,RC,$C,zC,WC,UC,VC,zf=A(()=>{"use strict";Ty=Object.create,pa=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,Oy=Object.getOwnPropertyNames,Py=Object.getPrototypeOf,Iy=Object.prototype.hasOwnProperty,Cr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),O=(e,t)=>{for(var r in t)pa(e,r,{get:t[r],enumerable:!0})},jy=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oy(t))!Iy.call(e,o)&&o!==r&&pa(e,o,{get:()=>t[o],enumerable:!(n=Ay(t,o))||n.enumerable});return e},By=(e,t,r)=>(r=e!=null?Ty(Py(e)):{},jy(t||!e||!e.__esModule?pa(r,"default",{value:e,enumerable:!0}):r,e)),Ly=Cr(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(r){if(0<=r&&r<t.length)return t[r];throw new TypeError("Must be between 0 and 63: "+r)},e.decode=function(r){var n=65,o=90,i=97,s=122,a=48,u=57,l=43,c=47,d=26,f=52;return n<=r&&r<=o?r-n:i<=r&&r<=s?r-i+d:a<=r&&r<=u?r-a+f:r==l?62:r==c?63:-1}}),Ny=Cr(e=>{var t=Ly(),r=5,n=1<<r,o=n-1,i=n;function s(u){return u<0?(-u<<1)+1:(u<<1)+0}function a(u){var l=(u&1)===1,c=u>>1;return l?-c:c}e.encode=function(u){var l="",c,d=s(u);do c=d&o,d>>>=r,d>0&&(c|=i),l+=t.encode(c);while(d>0);return l},e.decode=function(u,l,c){var d=u.length,f=0,m=0,y,k;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(k=t.decode(u.charCodeAt(l++)),k===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(k&i),k&=o,f=f+(k<<m),m+=r}while(y);c.value=a(f),c.rest=l}}),fa=Cr(e=>{function t(h,g,I){if(g in h)return h[g];if(arguments.length===3)return I;throw new Error('"'+g+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function o(h){var g=h.match(r);return g?{scheme:g[1],auth:g[2],host:g[3],port:g[4],path:g[5]}:null}e.urlParse=o;function i(h){var g="";return h.scheme&&(g+=h.scheme+":"),g+="//",h.auth&&(g+=h.auth+"@"),h.host&&(g+=h.host),h.port&&(g+=":"+h.port),h.path&&(g+=h.path),g}e.urlGenerate=i;var s=32;function a(h){var g=[];return function(I){for(var v=0;v<g.length;v++)if(g[v].input===I){var oe=g[0];return g[0]=g[v],g[v]=oe,g[0].result}var Te=h(I);return g.unshift({input:I,result:Te}),g.length>s&&g.pop(),Te}}var u=a(function(h){var g=h,I=o(h);if(I){if(!I.path)return h;g=I.path}for(var v=e.isAbsolute(g),oe=[],Te=0,L=0;;)if(Te=L,L=g.indexOf("/",Te),L===-1){oe.push(g.slice(Te));break}else for(oe.push(g.slice(Te,L));L<g.length&&g[L]==="/";)L++;for(var Y,it=0,L=oe.length-1;L>=0;L--)Y=oe[L],Y==="."?oe.splice(L,1):Y===".."?it++:it>0&&(Y===""?(oe.splice(L+1,it),it=0):(oe.splice(L,2),it--));return g=oe.join("/"),g===""&&(g=v?"/":"."),I?(I.path=g,i(I)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var I=o(g),v=o(h);if(v&&(h=v.path||"/"),I&&!I.scheme)return v&&(I.scheme=v.scheme),i(I);if(I||g.match(n))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var oe=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=oe,i(v)):oe}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||r.test(h)};function c(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var I=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++I}return Array(I+1).join("../")+g.substr(h.length+1)}e.relative=c;var d=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return k(h)?"$"+h:h}e.toSetString=d?f:m;function y(h){return k(h)?h.slice(1):h}e.fromSetString=d?f:y;function k(h){if(!h)return!1;var g=h.length;if(g<9||h.charCodeAt(g-1)!==95||h.charCodeAt(g-2)!==95||h.charCodeAt(g-3)!==111||h.charCodeAt(g-4)!==116||h.charCodeAt(g-5)!==111||h.charCodeAt(g-6)!==114||h.charCodeAt(g-7)!==112||h.charCodeAt(g-8)!==95||h.charCodeAt(g-9)!==95)return!1;for(var I=g-10;I>=0;I--)if(h.charCodeAt(I)!==36)return!1;return!0}function z(h,g,I){var v=T(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||I)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositions=z;function C(h,g,I){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||I)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositionsNoSource=C;function M(h,g,I){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||I)||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflated=M;function F(h,g,I){var v=h.generatedColumn-g.generatedColumn;return v!==0||I||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=F;function T(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function U(h,g){var I=h.generatedLine-g.generatedLine;return I!==0||(I=h.generatedColumn-g.generatedColumn,I!==0)||(I=T(h.source,g.source),I!==0)||(I=h.originalLine-g.originalLine,I!==0)||(I=h.originalColumn-g.originalColumn,I!==0)?I:T(h.name,g.name)}e.compareByGeneratedPositionsInflated=U;function R(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=R;function _(h,g,I){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),I){var v=o(I);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var oe=v.path.lastIndexOf("/");oe>=0&&(v.path=v.path.substring(0,oe+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=_}),My=Cr(e=>{var t=fa(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}o.fromArray=function(i,s){for(var a=new o,u=0,l=i.length;u<l;u++)a.add(i[u],s);return a},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,s){var a=n?i:t.toSetString(i),u=n?this.has(i):r.call(this._set,a),l=this._array.length;(!u||s)&&this._array.push(i),u||(n?this._set.set(i,l):this._set[a]=l)},o.prototype.has=function(i){if(n)return this._set.has(i);var s=t.toSetString(i);return r.call(this._set,s)},o.prototype.indexOf=function(i){if(n){var s=this._set.get(i);if(s>=0)return s}else{var a=t.toSetString(i);if(r.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}),Ry=Cr(e=>{var t=fa();function r(o,i){var s=o.generatedLine,a=i.generatedLine,u=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=u||t.compareByGeneratedPositionsInflated(o,i)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},n.prototype.add=function(o){r(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n}),$y=Cr(e=>{var t=Ny(),r=fa(),n=My().ArraySet,o=Ry().MappingList;function i(s){s||(s={}),this._file=r.getArg(s,"file",null),this._sourceRoot=r.getArg(s,"sourceRoot",null),this._skipValidation=r.getArg(s,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(s){var a=s.sourceRoot,u=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var c={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(c.source=l.source,a!=null&&(c.source=r.relative(a,c.source)),c.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(c.name=l.name)),u.addMapping(c)}),s.sources.forEach(function(l){var c=l;a!==null&&(c=r.relative(a,l)),u._sources.has(c)||u._sources.add(c);var d=s.sourceContentFor(l);d!=null&&u.setSourceContent(l,d)}),u},i.prototype.addMapping=function(s){var a=r.getArg(s,"generated"),u=r.getArg(s,"original",null),l=r.getArg(s,"source",null),c=r.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,u,l,c),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:l,name:c})},i.prototype.setSourceContent=function(s,a){var u=s;this._sourceRoot!=null&&(u=r.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,u){var l=a;if(a==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=s.file}var c=this._sourceRoot;c!=null&&(l=r.relative(c,l));var d=new n,f=new n;this._mappings.unsortedForEach(function(m){if(m.source===l&&m.originalLine!=null){var y=s.originalPositionFor({line:m.originalLine,column:m.originalColumn});y.source!=null&&(m.source=y.source,u!=null&&(m.source=r.join(u,m.source)),c!=null&&(m.source=r.relative(c,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var k=m.source;k!=null&&!d.has(k)&&d.add(k);var z=m.name;z!=null&&!f.has(z)&&f.add(z)},this),this._sources=d,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(u!=null&&(m=r.join(u,m)),c!=null&&(m=r.relative(c,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,u,l){if(a&&typeof a.line!="number"&&typeof a.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!a&&!u&&!l)){if(s&&"line"in s&&"column"in s&&a&&"line"in a&&"column"in a&&s.line>0&&s.column>=0&&a.line>0&&a.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:u,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,u=0,l=0,c=0,d=0,f="",m,y,k,z,C=this._mappings.toArray(),M=0,F=C.length;M<F;M++){if(y=C[M],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(M>0){if(!r.compareByGeneratedPositionsInflated(y,C[M-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(z=this._sources.indexOf(y.source),m+=t.encode(z-d),d=z,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-u),u=y.originalColumn,y.name!=null&&(k=this._names.indexOf(y.name),m+=t.encode(k-c),c=k)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=r.relative(a,u));var l=r.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}),zy={};O(zy,{AtKeyword:()=>Gy,BadString:()=>Jy,BadUrl:()=>Yy,CDC:()=>nb,CDO:()=>rb,Colon:()=>ob,Comma:()=>sb,Comment:()=>fb,Delim:()=>Ky,Dimension:()=>eb,EOF:()=>Wy,Function:()=>Vy,Hash:()=>qy,Ident:()=>Uy,LeftCurlyBracket:()=>db,LeftParenthesis:()=>ub,LeftSquareBracket:()=>ab,Number:()=>Xy,Percentage:()=>Qy,RightCurlyBracket:()=>pb,RightParenthesis:()=>cb,RightSquareBracket:()=>lb,Semicolon:()=>ib,String:()=>Hy,Url:()=>Zy,WhiteSpace:()=>tb});Wy=0,Uy=1,Vy=2,Gy=3,qy=4,Hy=5,Jy=6,Zy=7,Yy=8,Ky=9,Xy=10,Qy=11,eb=12,tb=13,rb=14,nb=15,ob=16,ib=17,sb=18,ab=19,lb=20,ub=21,cb=22,db=23,pb=24,fb=25;Ys=new Array(128),bb=128,Bo=130,wd=131,ga=132,vd=133;for(let e=0;e<Ys.length;e++)Ys[e]=Nt(e)&&Bo||ie(e)&&wd||Ro(e)&&ga||yb(e)&&vd||e||bb;kd=["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"];xc=10,wb=12,Fc=13;vb=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,r=1,n=1){this.source=e,this.startOffset=t,this.startLine=r,this.startColumn=n,this.computed=!1}getLocation(e,t){return this.computed||_c(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,r){return this.computed||_c(this),{source:r,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]}}}},xe=16777215,mt=24,kb=new Map([[2,22],[21,22],[19,20],[23,24]]),xb=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 r=e.length,n=zo(this.offsetAndType,e.length+1),o=zo(this.balance,e.length+1),i=0,s=0,a=0,u=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,c,d)=>{switch(l){default:o[i]=r;break;case s:{let f=a&xe;for(a=o[f],s=a>>mt,o[i]=f,o[f++]=i;f<i;f++)o[f]===r&&(o[f]=i);break}case 21:case 2:case 19:case 23:o[i]=a,s=kb.get(l),a=s<<mt|i;break}n[i++]=l<<mt|d,u===-1&&(u=c)}),n[i]=0<<mt|r,o[i]=r,o[r]=r;a!==0;){let l=a&xe;a=o[l],o[l]=r}this.source=e,this.firstCharOffset=u===-1?0:u,this.tokenCount=i,this.offsetAndType=n,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>mt:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&xe:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?En(this.source,this.offsetAndType[e-1]&xe,this.offsetAndType[e]&xe,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&xe:this.offsetAndType[this.tokenCount]&xe: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]&xe,t=this.offsetAndType[t],this.tokenType=t>>mt,this.tokenEnd=t&xe):(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>>mt,this.tokenEnd=e&xe):(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 r=e,n,o;e:for(;r<this.tokenCount;r++){if(n=this.balance[r],n<e)break e;switch(o=r>0?this.offsetAndType[r-1]&xe:this.firstCharOffset,t(this.source.charCodeAt(o))){case 1:break e;case 2:r++;break e;default:this.balance[n]===r&&(r=n)}}this.skip(r-this.tokenIndex)}forEachToken(e){for(let t=0,r=this.firstCharOffset;t<this.tokenCount;t++){let n=r,o=this.offsetAndType[t],i=o&xe,s=o>>mt;r=i,e(s,n,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken((t,r,n,o)=>{e[o]={idx:o,type:kd[t],chunk:this.source.substring(r,n),balance:this.balance[o]}}),e}};br=null,ne=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return ne.createItem(e)}allocateCursor(e,t){let r;return br!==null?(r=br,br=br.cursor,r.prev=e,r.next=t,r.cursor=this.cursor):r={prev:e,next:t,cursor:this.cursor},this.cursor=r,r}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=br,br=e}updateCursors(e,t,r,n){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=t),o.next===r&&(o.next=n),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 r of e){let n=ne.createItem(r);t!==null?t.next=n:this.head=n,n.prev=t,t=n}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let r=this.allocateCursor(null,this.head);for(;r.next!==null;){let n=r.next;r.next=n.next,e.call(t,n.data,n,this)}this.releaseCursor()}forEachRight(e,t=this){let r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){let n=r.prev;r.prev=n.prev,e.call(t,n.data,n,this)}this.releaseCursor()}reduce(e,t,r=this){let n=this.allocateCursor(null,this.head),o=t,i;for(;n.next!==null;)i=n.next,n.next=i.next,o=e.call(r,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,t,r=this){let n=this.allocateCursor(this.tail,null),o=t,i;for(;n.prev!==null;)i=n.prev,n.prev=i.prev,o=e.call(r,o,i.data,i,this);return this.releaseCursor(),o}some(e,t=this){for(let r=this.head;r!==null;r=r.next)if(e.call(t,r.data,r,this))return!0;return!1}map(e,t=this){let r=new ne;for(let n=this.head;n!==null;n=n.next)r.appendData(e.call(t,n.data,n,this));return r}filter(e,t=this){let r=new ne;for(let n=this.head;n!==null;n=n.next)e.call(t,n.data,n,this)&&r.appendData(n.data);return r}nextUntil(e,t,r=this){if(e===null)return;let n=this.allocateCursor(null,e);for(;n.next!==null;){let o=n.next;if(n.next=o.next,t.call(r,o.data,o,this))break}this.releaseCursor()}prevUntil(e,t,r=this){if(e===null)return;let n=this.allocateCursor(e,null);for(;n.prev!==null;){let o=n.prev;if(n.prev=o.prev,t.call(r,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new ne;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(ne.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(ne.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(ne.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(ne.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(ne.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)}};Bs=100,Ec=60,Cc=" ";Ac=()=>{},_b=33,Eb=35,Ls=59,Oc=123,Pc=0;Ab=By($y(),1),Ic=new Set(["Atrule","Selector","Declaration"]);Xs={};O(Xs,{safe:()=>_d,spec:()=>Bb});Pb=43,Ib=45,Ms=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let r=e.charCodeAt(0);return r>127?32768:r<<8}return e},xd=[[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],["/","*"]],jb=xd.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,"-"]]);Bb=Fd(xd),_d=Fd(jb),Lb=92;({hasOwnProperty:ba}=Object.prototype),Dn=function(){};Mc={offset:0,line:1,column:1};bn=function(e,t){let r=Zo("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},Zb=function(e,t,r,n){let o=Zo("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=Jb(n,r);return o.rawMessage=e,o.syntax=t?Yo(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
|
|
34
|
+
--`+new Array((n||t.length)+1).join("-")+"^"})}function ei(e){return e.substringToPos(e.findWsEnd(e.pos))}function Pn(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Nr[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 XD(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 ad(e){let t=null,n=null;return e.eat(Qo),t=ti(e),e.charCode()===Ia?(e.pos++,e.charCode()!==od&&(n=ti(e))):n=t,e.eat(od),{min:Number(t),max:n?Number(n):0}}function QD(e){let t=null,n=!1;switch(e.charCode()){case Xd:e.pos++,t={min:0,max:0};break;case Pa:e.pos++,t={min:1,max:0};break;case da:e.pos++,t={min:0,max:1};break;case Oa:e.pos++,n=!0,e.charCode()===Qo?t=ad(e):e.charCode()===da?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Qo:t=ad(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function In(e,t){let n=QD(e);return n!==null?(n.term=t,e.charCode()===Oa&&e.charCodeAt(e.pos-1)===Pa?In(e,n):n):t}function Ks(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function e0(e){let t;return e.eat(ja),e.eat(Xo),t=Pn(e),e.eat(Xo),e.eat(Qd),In(e,{type:"Property",name:t})}function t0(e){let t=null,n=null,r=1;return e.eat(ai),e.charCode()===nd&&(e.peek(),r=-1),r==-1&&e.charCode()===id?e.peek():(t=r*Number(ti(e)),Nr[e.charCode()]!==0&&(t+=Pn(e))),ei(e),e.eat(Ia),ei(e),e.charCode()===id?e.peek():(r=1,e.charCode()===nd&&(e.peek(),r=-1),n=r*Number(ti(e)),Nr[e.charCode()]!==0&&(n+=Pn(e))),e.eat(Ba),{type:"Range",min:t,max:n}}function n0(e){let t,n=null;return e.eat(ja),t=Pn(e),e.charCode()===Kd&&e.nextCharCode()===YD&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ai&&(ei(e),n=t0(e)),e.eat(Qd),In(e,{type:"Type",name:t,opts:n})}function r0(e){let t=Pn(e);return e.charCode()===Kd?(e.pos++,{type:"Function",name:t}):In(e,{type:"Keyword",name:t})}function o0(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)=>sd[o]-sd[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 ep(e){let t=[],n={},r,o=null,i=e.pos;for(;r=s0(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:o0(t,n)||" ",disallowEmpty:!1,explicit:!1}}function i0(e){let t;return e.eat(ai),t=ep(e),e.eat(Ba),t.explicit=!0,e.charCode()===Yd&&(e.pos++,t.disallowEmpty=!0),t}function s0(e){let t=e.charCode();if(t<128&&Nr[t]===1)return r0(e);switch(t){case Ba:break;case ai:return In(e,i0(e));case ja:return e.nextCharCode()===Xo?e0(e):n0(e);case rd:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===rd?2:1))};case td:return e.pos++,e.eat(td),{type:"Combinator",value:"&&"};case Ia:return e.pos++,{type:"Comma"};case Xo:return In(e,{type:"String",value:XD(e)});case ZD:case GD:case qD:case JD:case HD:return{type:"Spaces",value:ei(e)};case KD:return t=e.nextCharCode(),t<128&&Nr[t]===1?(e.pos++,{type:"AtKeyword",name:Pn(e)}):Ks(e);case Xd:case Pa:case da:case Oa:case Yd:break;case Qo:if(t=e.nextCharCode(),t<48||t>57)return Ks(e);break;default:return Ks(e)}}function La(e){let t=new VD(e),n=ep(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function ld(e){return typeof e=="function"?e:Or}function tp(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=Or,i=Or;if(typeof t=="function"?o=t:t&&(o=ld(t.enter),i=ld(t.leave)),o===Or&&i===Or)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function l0(e){let t=[];return ri(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function u0(e,t){return typeof e=="string"?l0(e):t.generate(e,a0)}function ce(e,t,n){return t===G&&n===q||e===G&&t===G&&n===G?e:(e.type==="If"&&e.else===q&&t===G&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function np(e){return e.length>2&&e.charCodeAt(e.length-2)===c0&&e.charCodeAt(e.length-1)===d0}function ud(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&np(e.name)}function pa(e,t,n){switch(e){case" ":{let r=G;for(let o=t.length-1;o>=0;o--){let i=t[o];r=ce(i,r,q)}return r}case"|":{let r=q,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(ud(s)&&(o===null&&i>0&&ud(t[i-1])&&(o=Object.create(null),r=ce({type:"Enum",map:o},G,r)),o!==null)){let a=(np(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=ce(s,G,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=pa(e,t.filter(function(a){return a!==i}),!1):s=G,r=ce(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?G:q;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=pa(e,t.filter(function(a){return a!==i}),!0):s=G,r=ce(i,s,r)}return r}}}function p0(e){let t=G,n=Ma(e.term);if(e.max===0)n=ce(n,Na,q),t=ce(n,null,q),t.then=ce(G,G,t),e.comma&&(t.then.else=ce({type:"Comma",syntax:e},t,q));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==G&&(t=ce({type:"Comma",syntax:e},t,q)),t=ce(n,ce(G,G,t),q);if(e.min===0)t=ce(G,G,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==G&&(t=ce({type:"Comma",syntax:e},t,q)),t=ce(n,t,q);return t}function Ma(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=pa(e.combinator,e.terms.map(Ma),!1);return e.disallowEmpty&&(t=ce(t,Na,q)),t}case"Multiplier":return p0(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 fa(e,t){return typeof e=="string"&&(e=La(e)),{type:"MatchGraph",match:Ma(e),syntax:t||null,source:e}}function b0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Xs(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 D0(e){return e.type!==9?!1:e.value!=="?"}function fd(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||D0(e)}function md(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function w0(e,t,n){function r(){do W++,T=W<e.length?e[W]:null;while(T!==null&&(T.type===13||T.type===25))}function o(V){let $=W+V;return $<e.length?e[$]:null}function i(V,$){return{nextState:V,matchStack:C,syntaxStack:d,thenStack:f,tokenIndex:W,prev:$}}function s(V){f={nextState:V,matchStack:C,syntaxStack:d,prev:f}}function a(V){m=i(V,m)}function u(){C={type:m0,syntax:t.syntax,token:T,prev:C},r(),y=null,W>F&&(F=W)}function l(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},C={type:ma,syntax:t.syntax,token:C.token,prev:C}}function c(){C.type===ma?C=C.prev:C={type:rp,syntax:d.syntax,token:C.token,prev:C},d=d.prev}let d=null,f=null,m=null,y=null,k=0,R=null,T=null,W=-1,F=0,C={type:f0,syntax:null,token:null,prev:null};for(r();R===null&&++k<pd;)switch(t.type){case"Match":if(f===null){if(T!==null&&(W!==e.length-1||T.value!=="\\0"&&T.value!=="\\9")){t=q;break}R=dd;break}if(t=f.nextState,t===Na)if(f.matchStack===C){t=q;break}else t=G;for(;f.syntaxStack!==d;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||W>m.tokenIndex)&&(m=y,y=!1);else if(m===null){R=h0;break}t=m.nextState,f=m.thenStack,d=m.syntaxStack,C=m.matchStack,W=m.tokenIndex,T=W<e.length?e[W]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==q&&a(t.else),t.then!==G&&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=q;break}t=G;break}if(t.mask===(1<<_.length)-1){t=G;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(T!==null){let _=T.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),cd.call(t.map,_)){t=t.map[_];break}}t=q;break;case"Generic":{let _=d!==null?d.opts:null,h=W+Math.floor(t.fn(T,o,_));if(!isNaN(h)&&h>W){for(;W<h;)u();t=G}else t=q;break}case"Type":case"Property":{let _=t.type==="Type"?"types":"properties",h=cd.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&&T!==null&&t.type==="Type"&&(t.name==="custom-ident"&&T.type===1||t.name==="length"&&T.value==="0")){y===null&&(y=i(t,m)),t=q;break}l(),t=h.match;break}case"Keyword":{let _=t.name;if(T!==null){let h=T.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),Xs(h,_)){u(),t=G;break}}t=q;break}case"AtKeyword":case"Function":if(T!==null&&Xs(T.value,t.name)){u(),t=G;break}t=q;break;case"Token":if(T!==null&&T.value===t.value){u(),t=G;break}t=q;break;case"Comma":T!==null&&T.type===18?fd(C.token)?t=q:(u(),t=md(T)?q:G):t=fd(C.token)||md(T)?G:q;break;case"String":let V="",$=W;for(;$<e.length&&V.length<t.value.length;$++)V+=e[$].value;if(Xs(V,t.value)){for(;W<$;)u();t=G}else t=q;break;default:throw new Error("Unknown node type: "+t.type)}switch(y0+=k,R){case null:console.warn("[csstree-match] BREAK after "+pd+" iterations"),R=g0,C=null;break;case dd:for(;d!==null;)c();break;default:C=null}return{tokens:e,reason:R,iterations:k,match:C,longestMatch:F}}function hd(e,t,n){let r=w0(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=b0(o).prev;o!==null;){switch(o.type){case ma:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case rp: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 ip(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 v0(e,t){return Ra(this,e,n=>n.type==="Type"&&n.name===t)}function k0(e,t){return Ra(this,e,n=>n.type==="Property"&&n.name===t)}function x0(e){return Ra(this,e,t=>t.type==="Keyword")}function Ra(e,t,n){let r=ip.call(e,t);return r===null?!1:r.some(n)}function sp(e){return"node"in e?e.node:sp(e.match[0])}function ap(e){return"node"in e?e.node:ap(e.match[e.match.length-1])}function gd(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let u=sp(a),l=ap(a);e.syntax.walk(t,function(c,d,f){if(c===u){let m=new oe;do{if(m.appendData(d.data),d.data===l)break;d=d.next}while(d!==null);s.push({parent:f,nodes:m})}})}Array.isArray(a.match)&&a.match.forEach(i)}let s=[];return n.matched!==null&&i(n.matched),s}function Qs(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function yd(e){return!!e&&Qs(e.offset)&&Qs(e.line)&&Qs(e.column)}function F0(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(jr.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(!yd(n.loc.start))o+=".start";else if(!yd(n.loc.end))o+=".end";else continue;i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let s=0;!i&&s<t[o].length;s++){let a=t[o][s];switch(a){case String:i=typeof n[o]=="string";break;case Boolean:i=typeof n[o]=="boolean";break;case null:i=n[o]===null;break;default:typeof a=="string"?i=n[o]&&n[o].type===a:Array.isArray(a)&&(i=n[o]instanceof oe)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)jr.call(t,o)&&jr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function _0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(jr.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let u=0;u<a.length;u++){let l=a[u];if(l===String||l===Boolean)s.push(l.name);else if(l===null)s.push("null");else if(typeof l=="string")s.push("<"+l+">");else if(Array.isArray(l))s.push("List");else throw new Error("Wrong value `"+l+"` in `"+e+"."+i+"` structure definition")}o[i]=s.join(" | ")}return{docs:o,check:F0(e,r)}}function E0(e){let t={};if(e.node){for(let n in e.node)if(jr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=_0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function ha(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 S0(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&&ha(i.descriptors,t,n)};return r}function T0(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function $e(e,t,n){return{matched:e,iterations:n,error:t,...op}}function Sn(e,t,n,r){let o=u0(n,e.syntax),i;return T0(o)?$e(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=hd(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=hd(o,t.match,e),!i.match)?$e(null,new sD(i.reason,t.syntax,n,i),i.iterations):$e(i.match,null,i.iterations))}function ea(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Dd(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 ga(e,t){let n={...e};for(let[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"units":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(let[i,s]of Object.entries(o)){let a=n[r][i]||{},u=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){u.prelude=s.prelude?ea(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?ea(u.descriptors[l],c):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=ea(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],...Dd(o,["parse"])};break;case"node":n[r]={...e[r],...Dd(o,["name","structure","parse","generate","walkContext"])};break}return n}function lp(e){let t=$b(e),n=eD(e),r=Yb(e),{fromPlainObject:o,toPlainObject:i}=Kb(n),s={lexer:null,createLexer:a=>new bd(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 u=ga({},e);return lp(typeof a=="function"?a(u,Object.assign):ga(u,a))}};return s.lexer=new bd({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===Ke||r===De)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)se(this.charCodeAt(n))||this.error("Integer is expected",n)}function Tn(e){return qo.call(this,0,e)}function kt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Go:n="N is expected";break;case De:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function ta(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(Ke,e)||this.isDelim(De,e)){t=this.isDelim(Ke,e)?Ke:De;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),Tn.call(this,Vt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Ke&&n!==De&&this.error("Number sign is expected")),Tn.call(this,t!==0),t===De?"-"+this.consume(10):this.consume(10)}function cp(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)Tn.call(this,P0),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,De))switch(t="-1",kt.call(this,1,Go),this.tokenEnd-this.tokenStart){case 2:this.next(),n=ta.call(this);break;case 3:kt.call(this,2,De),this.next(),this.skipSC(),Tn.call(this,Vt),n="-"+this.consume(10);break;default:kt.call(this,2,De),qo.call(this,3,Vt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(Ke)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(Ke)&&(r=1,this.next()),kt.call(this,0,Go),this.tokenEnd-this.tokenStart){case 1:this.next(),n=ta.call(this);break;case 2:kt.call(this,1,De),this.next(),this.skipSC(),Tn.call(this,Vt),n="-"+this.consume(10);break;default:kt.call(this,1,De),qo.call(this,2,Vt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===Ke||r===De,i=this.tokenStart+o;for(;i<this.tokenEnd&&se(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),kt.call(this,i-this.tokenStart,Go),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=ta.call(this)):(kt.call(this,i-this.tokenStart+1,De),i+2===this.tokenEnd?(this.next(),this.skipSC(),Tn.call(this,Vt),n="-"+this.consume(10)):(qo.call(this,i-this.tokenStart+2,Vt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Ke&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Ke&&(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 wd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function L0(){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 pp(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),wd):o=wd.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(L0.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function $0(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function mp(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 V0(e){this.children(e)}function J0(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(gp)?(t=!0,this.next()):this.isDelim(ya)||this.eat(1),this.isDelim(ya)?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 Z0(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Ho&&t!==H0&&t!==q0&&t!==G0&&t!==gp&&t!==ya&&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 yp(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=J0.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=Z0.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 X0(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 Dp(e){return this.Raw(e,null,!0)}function vd(){return this.parseWithFallback(this.Rule,Dp)}function kd(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function ew(){if(this.tokenType===17)return kd.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,kd);return this.tokenType===17&&this.next(),e}function wp(e){let t=e?ew:vd,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),Dp));break;default:e&&this.isDelim(Q0)?r.push(vd.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function ow(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function kp(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 aw(e){this.token(9,"["),this.children(e),this.token(9,"]")}function Fp(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function cw(){this.token(15,"-->")}function Ep(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function fw(){this.token(14,"<!--")}function Sp(){return this.eatDelim(mw),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function yw(e){this.token(9,"."),this.token(1,e.name)}function Ap(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Dw:case bw:case ww:this.next();break;case xd:this.next(),this.eatIdent("deep"),this.eatDelim(xd);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function xw(e){this.tokenize(e.name)}function Pp(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Fw&&this.charCodeAt(t-1)===_w&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Sw(e){this.token(25,"/*"+e.value+"*/")}function jw(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Bw(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Lw(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(jp)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function Bp(){let e=this.tokenStart,t=this.tokenIndex,n=zw.call(this),r=Ta(n),o=r?this.parseCustomProperty:this.parseValue,i=r?Bw:jw,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(Lw,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(jp)&&(s=Ww.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 $w(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 zw(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case Pw:case Aw:case Iw:case Tw:case Ow:this.next();break;case Fd:this.next(),this.isDelim(Fd)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function Ww(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function na(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Np(){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),na));break;default:this.isDelim(Uw)?e.push(this.parseWithFallback(this.Rule,na)):e.push(this.parseWithFallback(this.Declaration,na))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function qw(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function Rp(){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 Zw(e){this.token(12,e.value+e.unit)}function zp(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 Qw(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function Up(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function rv(e){this.token(4,"#"+e.value)}function Gp(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function sv(e){this.token(1,e.name)}function Hp(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function uv(e){this.token(9,"#"+e.name)}function Zp(){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 pv(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function Kp(){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 hv(e){this.children(e)}function Qp(){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 bv(e){this.children(e,()=>this.token(18,","))}function tf(){let e=this.tokenStart;return this.eatDelim(Dv),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function kv(){this.token(9,"&")}function rf(){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 _v(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function sf(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Sv(e){this.token(10,e.value)}function lf(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Ov(e){this.tokenize(e.value)}function cf(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 jv(e){this.token(21,"("),this.children(e),this.token(22,")")}function pf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Nv(e){this.token(11,e.value+"%")}function mf(){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 zv(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function gf(){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 Gv(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 _d(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!se(n)&&n!==Hv&&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 bf(){let e=this.tokenStart,t=_d.call(this),n;return this.skipSC(),this.eatDelim(qv),n=_d.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Yv(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function Kv(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function wf(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=Kv.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function ek(e){this.tokenize(e.value)}function Ed(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function tk(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function kf(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(tk,Ed):n=Ed.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function ik(e){this.node(e.prelude),this.node(e.block)}function Ff(){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 lk(e){this.children(e)}function Ef(){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 pk(e){this.children(e,()=>this.token(18,","))}function za(e){let t=e.length,n=e.charCodeAt(0),r=n===Sf||n===Tf?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===ba){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),ze(ba,a)){let u=s-1,l=qt(e,u);s=l-1,i+=Ea(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function Af(e,t){let n=t?"'":'"',r=t?Tf:Sf,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===ba?(o+="\\"+e.charAt(s),i=!1):(i&&(Ft(a)||Gt(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function Of(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:za(this.consume(5))}}function gk(e){this.token(5,Af(e.value))}function Cd(e){return this.Raw(e,null,!1)}function If(){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)!==yk){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,Cd);break;default:n=this.parseWithFallback(this.Rule,Cd)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function vk(e){this.children(e)}function ra(){this.tokenType!==1&&this.isDelim(kk)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function Bf(){let e=this.tokenStart;return this.isDelim(Sd)?(this.next(),ra.call(this)):(ra.call(this),this.isDelim(Sd)&&(this.next(),ra.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function _k(e){this.tokenize(e.name)}function Pr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===Mf&&t&&n!==0)return Pr.call(this,e+n+1,!1),-1;Ft(o)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function zo(e){let t=0;for(;this.isDelim(Da);)++t>e&&this.error("Too many question marks"),this.next()}function Ek(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Nf?"Plus sign":"Hyphen minus")+" is expected")}function Ck(){let e=0;switch(this.tokenType){case 10:if(e=Pr.call(this,1,!0),this.isDelim(Da)){zo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){Ek.call(this,Mf),Pr.call(this,1,!1);break}break;case 12:e=Pr.call(this,1,!0),e>0&&zo.call(this,6-e);break;default:if(this.eatDelim(Nf),this.tokenType===1){e=Pr.call(this,0,!0),e>0&&zo.call(this,6-e);break}if(this.isDelim(Da)){this.next(),zo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function Rf(){let e=this.tokenStart;return this.eatIdent("u"),Ck.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Ak(e){this.tokenize(e.value)}function Wf(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===zf?t-2:t-1,o="";for(;n<r&&Gt(e.charCodeAt(n));)n++;for(;n<r&&Gt(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===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,u=qt(e,a);i=u-1,o+=Ea(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function Uf(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===Pk||o===wa||o===Ik||o===jk||o===Bk||o===zf?(t+="\\"+e.charAt(r),n=!1):(n&&Ft(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function Vf(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=Wf(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=za(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 Mk(e){this.token(7,Uf(e.value))}function qf(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function zk(e){this.children(e)}function Jf(){return this.eat(13),Wk}function Gk(e){this.token(13,e.value)}function Yf(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,Kk)&&this.cmpChar(this.tokenStart+1,Td)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===Yk||t===Jk||t===Td||t===Zk)return this.Operator();t===Hk&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function ax(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function lx(){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)===Ad&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case nx:case ox:case sx:case rx:return this.Combinator();case Ad:return this.ClassSelector();case tx:case ix:return this.TypeSelector();case Qk:return this.IdSelector();case ex:return this.NestingSelector()}break}}}function cx(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function dx(){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 Od(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function bx(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Dx(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Kf.call(this)}function Kf(){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(bx,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(Dx,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function Cx(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===Id){if(r===t)break;if(o=e.charCodeAt(++r),ze(Id,o)){let i=r-1,s=qt(e,i);r=s-1,n+=Ea(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function Sx(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}Fa(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var $y,va,zy,Wy,Uy,Vy,jn,O,Gy,qy,Hy,Jy,ka,Zy,Yy,Ky,Xy,Qy,eb,tb,nb,rb,ob,ib,sb,ab,lb,ub,cb,db,pb,fb,mb,hb,gb,yb,bb,Db,wb,vb,kb,xb,Fb,ia,Tb,Vo,Bd,_a,Ld,Nd,Mc,Ob,Rc,Pb,Ce,vt,Ib,jb,_n,oe,Vs,zc,Wc,Gc,Lb,Nb,Gs,qc,Hc,zb,Jc,aa,Ub,Vb,Hs,Md,Gb,qb,$d,Hb,Ca,Sr,Qc,Cr,sD,Ro,En,Ko,Js,ed,Wd,Lr,Ye,Zs,Cn,uD,dD,Ud,Vd,pD,hD,Aa,ED,CD,ca,AD,OD,PD,ID,jD,BD,LD,ND,MD,RD,$D,zD,WD,UD,VD,GD,qD,HD,JD,ZD,Yd,Oa,td,Xo,Kd,YD,Xd,Pa,Ia,nd,ja,Qd,da,KD,ai,Ba,Qo,rd,od,id,Nr,sd,Or,a0,G,q,Na,c0,d0,cd,f0,m0,ma,rp,dd,h0,g0,pd,y0,op,jr,C0,bd,A0,O0,$a,up,Ke,De,Go,Vt,P0,I0,j0,dp,N0,M0,R0,fp,z0,W0,U0,hp,G0,gp,Ho,q0,ya,H0,Y0,K0,bp,Q0,tw,nw,rw,vp,iw,sw,xp,lw,uw,_p,dw,pw,Cp,mw,hw,gw,Tp,bw,xd,Dw,ww,vw,kw,Op,Fw,_w,Ew,Cw,Ip,jp,Tw,Aw,Ow,Pw,Iw,Fd,Nw,Mw,Rw,Lp,Uw,Vw,Gw,Mp,Hw,Jw,$p,Yw,Kw,Xw,Wp,ev,tv,nv,Vp,ov,iv,qp,av,lv,Jp,cv,dv,Yp,fv,mv,Xp,gv,yv,ef,Dv,wv,vv,nf,xv,Fv,of,Ev,Cv,af,Tv,Av,uf,Pv,Iv,df,Bv,Lv,ff,Mv,Rv,$v,hf,Wv,Uv,Vv,yf,qv,Hv,Jv,Zv,Df,Xv,Qv,vf,nk,rk,ok,xf,sk,ak,_f,uk,ck,dk,Cf,fk,ba,Sf,Tf,mk,hk,Pf,yk,bk,Dk,wk,jf,kk,Sd,xk,Fk,Lf,Nf,Mf,Da,Sk,Tk,$f,Ok,Pk,wa,Ik,jk,Bk,zf,Lk,Nk,Gf,Rk,$k,Hf,Wk,Uk,Vk,qk,Zf,Hk,Jk,Td,Zk,Yk,Kk,Xk,Qk,ex,tx,nx,rx,Ad,ox,ix,sx,ux,px,fx,mx,hx,gx,yx,wx,vx,Ut,oa,Pd,Wo,kx,Xf,xx,Fx,_x,Ex,Id,E2,Qf,em,C2,S2,tm,T2,A2,O2,P2,I2,j2,nm=A(()=>{"use strict";$y=Object.create,va=Object.defineProperty,zy=Object.getOwnPropertyDescriptor,Wy=Object.getOwnPropertyNames,Uy=Object.getPrototypeOf,Vy=Object.prototype.hasOwnProperty,jn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),O=(e,t)=>{for(var n in t)va(e,n,{get:t[n],enumerable:!0})},Gy=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wy(t))!Vy.call(e,o)&&o!==n&&va(e,o,{get:()=>t[o],enumerable:!(r=zy(t,o))||r.enumerable});return e},qy=(e,t,n)=>(n=e!=null?$y(Uy(e)):{},Gy(t||!e||!e.__esModule?va(n,"default",{value:e,enumerable:!0}):n,e)),Hy=jn(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(n){if(0<=n&&n<t.length)return t[n];throw new TypeError("Must be between 0 and 63: "+n)},e.decode=function(n){var r=65,o=90,i=97,s=122,a=48,u=57,l=43,c=47,d=26,f=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+d:a<=n&&n<=u?n-a+f:n==l?62:n==c?63:-1}}),Jy=jn(e=>{var t=Hy(),n=5,r=1<<n,o=r-1,i=r;function s(u){return u<0?(-u<<1)+1:(u<<1)+0}function a(u){var l=(u&1)===1,c=u>>1;return l?-c:c}e.encode=function(u){var l="",c,d=s(u);do c=d&o,d>>>=n,d>0&&(c|=i),l+=t.encode(c);while(d>0);return l},e.decode=function(u,l,c){var d=u.length,f=0,m=0,y,k;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(k=t.decode(u.charCodeAt(l++)),k===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(k&i),k&=o,f=f+(k<<m),m+=n}while(y);c.value=a(f),c.rest=l}}),ka=jn(e=>{function t(h,g,P){if(g in h)return h[g];if(arguments.length===3)return P;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(P){for(var v=0;v<g.length;v++)if(g[v].input===P){var ie=g[0];return g[0]=g[v],g[v]=ie,g[0].result}var Ie=h(P);return g.unshift({input:P,result:Ie}),g.length>s&&g.pop(),Ie}}var u=a(function(h){var g=h,P=o(h);if(P){if(!P.path)return h;g=P.path}for(var v=e.isAbsolute(g),ie=[],Ie=0,L=0;;)if(Ie=L,L=g.indexOf("/",Ie),L===-1){ie.push(g.slice(Ie));break}else for(ie.push(g.slice(Ie,L));L<g.length&&g[L]==="/";)L++;for(var Y,dt=0,L=ie.length-1;L>=0;L--)Y=ie[L],Y==="."?ie.splice(L,1):Y===".."?dt++:dt>0&&(Y===""?(ie.splice(L+1,dt),dt=0):(ie.splice(L,2),dt--));return g=ie.join("/"),g===""&&(g=v?"/":"."),P?(P.path=g,i(P)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var P=o(g),v=o(h);if(v&&(h=v.path||"/"),P&&!P.scheme)return v&&(P.scheme=v.scheme),i(P);if(P||g.match(r))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var ie=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=ie,i(v)):ie}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function c(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var P=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++P}return Array(P+1).join("../")+g.substr(h.length+1)}e.relative=c;var d=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return k(h)?"$"+h:h}e.toSetString=d?f:m;function y(h){return k(h)?h.slice(1):h}e.fromSetString=d?f:y;function k(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 P=g-10;P>=0;P--)if(h.charCodeAt(P)!==36)return!1;return!0}function R(h,g,P){var v=C(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||P)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:C(h.name,g.name)}e.compareByOriginalPositions=R;function T(h,g,P){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||P)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:C(h.name,g.name)}e.compareByOriginalPositionsNoSource=T;function W(h,g,P){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||P)||(v=C(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:C(h.name,g.name)}e.compareByGeneratedPositionsDeflated=W;function F(h,g,P){var v=h.generatedColumn-g.generatedColumn;return v!==0||P||(v=C(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:C(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=F;function C(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function V(h,g){var P=h.generatedLine-g.generatedLine;return P!==0||(P=h.generatedColumn-g.generatedColumn,P!==0)||(P=C(h.source,g.source),P!==0)||(P=h.originalLine-g.originalLine,P!==0)||(P=h.originalColumn-g.originalColumn,P!==0)?P:C(h.name,g.name)}e.compareByGeneratedPositionsInflated=V;function $(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=$;function _(h,g,P){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),P){var v=o(P);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var ie=v.path.lastIndexOf("/");ie>=0&&(v.path=v.path.substring(0,ie+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=_}),Zy=jn(e=>{var t=ka(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function o(){this._array=[],this._set=r?new Map:Object.create(null)}o.fromArray=function(i,s){for(var a=new o,u=0,l=i.length;u<l;u++)a.add(i[u],s);return a},o.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,s){var a=r?i:t.toSetString(i),u=r?this.has(i):n.call(this._set,a),l=this._array.length;(!u||s)&&this._array.push(i),u||(r?this._set.set(i,l):this._set[a]=l)},o.prototype.has=function(i){if(r)return this._set.has(i);var s=t.toSetString(i);return n.call(this._set,s)},o.prototype.indexOf=function(i){if(r){var s=this._set.get(i);if(s>=0)return s}else{var a=t.toSetString(i);if(n.call(this._set,a))return this._set[a]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},e.ArraySet=o}),Yy=jn(e=>{var t=ka();function n(o,i){var s=o.generatedLine,a=i.generatedLine,u=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=u||t.compareByGeneratedPositionsInflated(o,i)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},r.prototype.add=function(o){n(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r}),Ky=jn(e=>{var t=Jy(),n=ka(),r=Zy().ArraySet,o=Yy().MappingList;function i(s){s||(s={}),this._file=n.getArg(s,"file",null),this._sourceRoot=n.getArg(s,"sourceRoot",null),this._skipValidation=n.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(s){var a=s.sourceRoot,u=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var c={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(c.source=l.source,a!=null&&(c.source=n.relative(a,c.source)),c.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(c.name=l.name)),u.addMapping(c)}),s.sources.forEach(function(l){var c=l;a!==null&&(c=n.relative(a,l)),u._sources.has(c)||u._sources.add(c);var d=s.sourceContentFor(l);d!=null&&u.setSourceContent(l,d)}),u},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),u=n.getArg(s,"original",null),l=n.getArg(s,"source",null),c=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,u,l,c),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:l,name:c})},i.prototype.setSourceContent=function(s,a){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,u){var l=a;if(a==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=s.file}var c=this._sourceRoot;c!=null&&(l=n.relative(c,l));var d=new r,f=new r;this._mappings.unsortedForEach(function(m){if(m.source===l&&m.originalLine!=null){var y=s.originalPositionFor({line:m.originalLine,column:m.originalColumn});y.source!=null&&(m.source=y.source,u!=null&&(m.source=n.join(u,m.source)),c!=null&&(m.source=n.relative(c,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var k=m.source;k!=null&&!d.has(k)&&d.add(k);var R=m.name;R!=null&&!f.has(R)&&f.add(R)},this),this._sources=d,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(u!=null&&(m=n.join(u,m)),c!=null&&(m=n.relative(c,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,u,l){if(a&&typeof a.line!="number"&&typeof a.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!a&&!u&&!l)){if(s&&"line"in s&&"column"in s&&a&&"line"in a&&"column"in a&&s.line>0&&s.column>=0&&a.line>0&&a.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:u,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,u=0,l=0,c=0,d=0,f="",m,y,k,R,T=this._mappings.toArray(),W=0,F=T.length;W<F;W++){if(y=T[W],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if(W>0){if(!n.compareByGeneratedPositionsInflated(y,T[W-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(R=this._sources.indexOf(y.source),m+=t.encode(R-d),d=R,m+=t.encode(y.originalLine-1-l),l=y.originalLine-1,m+=t.encode(y.originalColumn-u),u=y.originalColumn,y.name!=null&&(k=this._names.indexOf(y.name),m+=t.encode(k-c),c=k)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=n.relative(a,u));var l=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}),Xy={};O(Xy,{AtKeyword:()=>nb,BadString:()=>ib,BadUrl:()=>ab,CDC:()=>mb,CDO:()=>fb,Colon:()=>hb,Comma:()=>yb,Comment:()=>Fb,Delim:()=>lb,Dimension:()=>db,EOF:()=>Qy,Function:()=>tb,Hash:()=>rb,Ident:()=>eb,LeftCurlyBracket:()=>kb,LeftParenthesis:()=>wb,LeftSquareBracket:()=>bb,Number:()=>ub,Percentage:()=>cb,RightCurlyBracket:()=>xb,RightParenthesis:()=>vb,RightSquareBracket:()=>Db,Semicolon:()=>gb,String:()=>ob,Url:()=>sb,WhiteSpace:()=>pb});Qy=0,eb=1,tb=2,nb=3,rb=4,ob=5,ib=6,sb=7,ab=8,lb=9,ub=10,cb=11,db=12,pb=13,fb=14,mb=15,hb=16,gb=17,yb=18,bb=19,Db=20,wb=21,vb=22,kb=23,xb=24,Fb=25;ia=new Array(128),Tb=128,Vo=130,Bd=131,_a=132,Ld=133;for(let e=0;e<ia.length;e++)ia[e]=Gt(e)&&Vo||se(e)&&Bd||Jo(e)&&_a||Sb(e)&&Ld||e||Tb;Nd=["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"];Mc=10,Ob=12,Rc=13;Pb=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||$c(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||$c(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},Ce=16777215,vt=24,Ib=new Map([[2,22],[21,22],[19,20],[23,24]]),jb=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,u=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,c,d)=>{switch(l){default:o[i]=n;break;case s:{let f=a&Ce;for(a=o[f],s=a>>vt,o[i]=f,o[f++]=i;f<i;f++)o[f]===n&&(o[f]=i);break}case 21:case 2:case 19:case 23:o[i]=a,s=Ib.get(l),a=s<<vt|i;break}r[i++]=l<<vt|d,u===-1&&(u=c)}),r[i]=0<<vt|n,o[i]=n,o[n]=n;a!==0;){let l=a&Ce;a=o[l],o[l]=n}this.source=e,this.firstCharOffset=u===-1?0:u,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>vt:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Ce:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Br(this.source,this.offsetAndType[e-1]&Ce,this.offsetAndType[e]&Ce,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Ce:this.offsetAndType[this.tokenCount]&Ce:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&Ce,t=this.offsetAndType[t],this.tokenType=t>>vt,this.tokenEnd=t&Ce):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>vt,this.tokenEnd=e&Ce):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,o;e:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break e;switch(o=n>0?this.offsetAndType[n-1]&Ce:this.firstCharOffset,t(this.source.charCodeAt(o))){case 1:break e;case 2:n++;break e;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,o=this.offsetAndType[t],i=o&Ce,s=o>>vt;n=i,e(s,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken((t,n,r,o)=>{e[o]={idx:o,type:Nd[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};_n=null,oe=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return oe.createItem(e)}allocateCursor(e,t){let n;return _n!==null?(n=_n,_n=_n.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=_n,_n=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){let r=oe.createItem(n);t!==null?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),o=t,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),o=t,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){let n=new oe;for(let r=this.head;r!==null;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){let n=new oe;for(let r=this.head;r!==null;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let o=r.next;if(r.next=o.next,t.call(n,o.data,o,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let o=r.prev;if(r.prev=o.prev,t.call(n,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new oe;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(oe.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(oe.createItem(e))}insert(e,t=null){if(t!==null)if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(oe.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(oe.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(oe.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null?this:(t!=null?(this.updateCursors(t.prev,e.tail,t,e.head),t.prev!==null?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};Vs=100,zc=60,Wc=" ";Gc=()=>{},Lb=33,Nb=35,Gs=59,qc=123,Hc=0;zb=qy(Ky(),1),Jc=new Set(["Atrule","Selector","Declaration"]);aa={};O(aa,{safe:()=>$d,spec:()=>qb});Ub=43,Vb=45,Hs=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Md=[[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],["/","*"]],Gb=Md.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,"-"]]);qb=Rd(Md),$d=Rd(Gb),Hb=92;({hasOwnProperty:Ca}=Object.prototype),Sr=function(){};Qc={offset:0,line:1,column:1};Cr=function(e,t){let n=oi("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},sD=function(e,t,n,r){let o=oi("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=iD(r,n);return o.rawMessage=e,o.syntax=t?ii(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
|
|
35
35
|
syntax: `+o.syntax+`
|
|
36
36
|
value: `+(i||"<empty string>")+`
|
|
37
|
-
--------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,u),o.loc={source:r&&r.loc&&r.loc.source||"<unknown>",start:u,end:l},o},Ao=new Map,Dr=new Map,Wo=45,Rs=Yb,Rc=Kb;Cd=["initial","inherit","unset","revert","revert-layer"],Cn=43,Ue=45,$s=110,wr=!0,Xb=!1;eD=43,Sd=45,Td=63,tD=117;oD=["calc(","-moz-calc(","-webkit-calc("],va=new Map([[2,22],[21,22],[19,20],[23,24]]);hD={"ident-token":J(1),"function-token":J(2),"at-keyword-token":J(3),"hash-token":J(4),"string-token":J(5),"bad-string-token":J(6),"url-token":J(7),"bad-url-token":J(8),"delim-token":J(9),"number-token":J(10),"percentage-token":J(11),"dimension-token":J(12),"whitespace-token":J(13),"CDO-token":J(14),"CDC-token":J(15),"colon-token":J(16),"semicolon-token":J(17),"comma-token":J(18),"[-token":J(19),"]-token":J(20),"(-token":J(21),")-token":J(22),"{-token":J(23),"}-token":J(24)},gD={string:J(5),ident:J(1),percentage:Fe(pD),zero:Id(),number:Fe(fD),integer:Fe(mD),"custom-ident":sD,"custom-property-name":aD,"hex-color":lD,"id-selector":uD,"an-plus-b":Qb,urange:nD,"declaration-value":cD,"any-value":dD};ta={};O(ta,{angle:()=>wD,decibel:()=>_D,flex:()=>FD,frequency:()=>kD,length:()=>DD,resolution:()=>xD,semitones:()=>ED,time:()=>vD});DD=["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"],wD=["deg","grad","rad","turn"],vD=["s","ms"],kD=["hz","khz"],xD=["dpi","dpcm","dppx","x"],FD=["fr"],_D=["db"],ED=["st"],CD={};O(CD,{SyntaxError:()=>jd,generate:()=>Yo,parse:()=>Ca,walk:()=>$d});SD=9,TD=10,AD=12,OD=13,PD=32,ID=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!==OD&&t!==TD&&t!==AD&&t!==PD&&t!==SD)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 jd(e,this.str,this.pos)}},jD=9,BD=10,LD=12,ND=13,MD=32,Bd=33,ka=35,$c=38,Uo=39,Ld=40,RD=41,Nd=42,xa=43,Fa=44,zc=45,_a=60,Md=62,ra=63,$D=64,Xo=91,Ea=93,Vo=123,Wc=124,Uc=125,Vc=8734,Sn=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Gc={" ":1,"&&":2,"||":3,"|":4};kn=function(){};YD={decorator(e){let t=[],r=null;return{...e,node(n){let o=r;r=n,e.node.call(this,n),r=o},emit(n,o,i){t.push({type:o,value:n,node:i?null:r})},result(){return t}}}};G={type:"Match"},q={type:"Mismatch"},Sa={type:"DisallowEmpty"},QD=40,e0=41;({hasOwnProperty:Zc}=Object.prototype),r0=0,n0=1,ia=2,Wd=3,Yc="Match",o0="Mismatch",i0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Kc=15e3,s0=0;Ud={};O(Ud,{getTrace:()=>Vd,isKeyword:()=>p0,isProperty:()=>d0,isType:()=>c0});({hasOwnProperty:_n}=Object.prototype);g0=oa(Cd.join(" | "));nd=class{constructor(e,t,r){if(this.cssWideKeywordsSyntax=g0,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=r||h0(e),e){if(e.units)for(let n of Object.keys(ta))Array.isArray(e.units[n])&&(this.units[n]=e.units[n]);if(e.types)for(let n in e.types)this.addType_(n,e.types[n]);if(e.generic){this.generic=!0;for(let[n,o]of Object.entries(bD(this.units)))this.addType_(n,o)}if(e.atrules)for(let n in e.atrules)this.addAtrule_(n,e.atrules[n]);if(e.properties)for(let n in e.properties)this.addProperty_(n,e.properties[n])}}checkStructure(e){function t(o,i){n.push({node:o,message:i})}let r=this.structure,n=[];return this.syntax.walk(e,function(o){r.hasOwnProperty(o.type)?r[o.type].check(o,t):t(o,"Unknown node type `"+o.type+"`")}),n.length?n:!1}createDescriptor(e,t,r,n=null){let o={type:t,name:r},i={type:t,name:r,parent:n,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?i.match=oa(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:Ca(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:oa(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((r,n)=>(r[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n,e),r),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 bn("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let r=this.checkAtruleName(e);if(r)return r;let n=this.getAtrule(e);if(!n.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(n.prelude&&!t&&!vr(this,n.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let r=this.checkAtruleName(e);if(r)return r;let n=this.getAtrule(e),o=Rs(t);if(!n.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!n.descriptors[o.name]&&!n.descriptors[o.basename])return new bn("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new bn("Unknown property",e)}matchAtrulePrelude(e,t){let r=this.checkAtrulePrelude(e,t);if(r)return Ie(null,r);let n=this.getAtrule(e);return n.prelude?vr(this,n.prelude,t||"",!1):Ie(null,null)}matchAtruleDescriptor(e,t,r){let n=this.checkAtruleDescriptorName(e,t);if(n)return Ie(null,n);let o=this.getAtrule(e),i=Rs(t);return vr(this,o.descriptors[i.name]||o.descriptors[i.basename],r,!1)}matchDeclaration(e){return e.type!=="Declaration"?Ie(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Rc(e).custom)return Ie(null,new Error("Lexer matching doesn't applicable for custom properties"));let r=this.checkPropertyName(e);return r?Ie(null,r):vr(this,this.getProperty(e),t,!0)}matchType(e,t){let r=this.getType(e);return r?vr(this,r,t,!1):Ie(null,new bn("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?Ie(null,new bn("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),vr(this,e,t,!1))}findValueFragments(e,t,r,n){return td(this,t,this.matchProperty(e,t),r,n)}findDeclarationValueFragments(e,t,r){return td(this,e.value,this.matchDeclaration(e),t,r)}findAllFragments(e,t,r){let n=[];return this.syntax.walk(e,{visit:"Declaration",enter:o=>{n.push.apply(n,this.findDeclarationValueFragments(o,t,r))}}),n}getAtrule(e,t=!0){let r=Rs(e);return(r.vendor&&t?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(e,t=!0){let r=this.getAtrule(e,t);return r&&r.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let r=Rc(e);return(r.vendor&&t?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(n,o,i,s){if(i.has(o))return i.get(o);i.set(o,!1),s.syntax!==null&&$d(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let u=a.type==="Type"?n.types:n.properties,l=a.type==="Type"?t:r;(!hasOwnProperty.call(u,a.name)||e(n,a.name,l,u[a.name]))&&i.set(o,!0)},this)}let t=new Map,r=new Map;for(let n in this.types)e(this,n,t,this.types[n]);for(let n in this.properties)e(this,n,r,this.properties[n]);return t=[...t.keys()].filter(n=>t.get(n)),r=[...r.keys()].filter(n=>r.get(n)),t.length||r.length?{types:t,properties:r}:null}dump(e,t){return{generic:this.generic,units:this.units,types:sa(this.types,!t,e),properties:sa(this.properties,!t,e),atrules:y0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};D0=e=>Hd(aa({},e)),w0={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}}},Oa={};O(Oa,{AnPlusB:()=>Jd,Atrule:()=>Yd,AtrulePrelude:()=>Xd,AttributeSelector:()=>ep,Block:()=>np,Brackets:()=>sp,CDC:()=>lp,CDO:()=>cp,ClassSelector:()=>pp,Combinator:()=>mp,Comment:()=>gp,Declaration:()=>bp,DeclarationList:()=>vp,Dimension:()=>xp,Function:()=>_p,Hash:()=>Cp,IdSelector:()=>Op,Identifier:()=>Tp,MediaFeature:()=>Ip,MediaQuery:()=>Bp,MediaQueryList:()=>Np,NestingSelector:()=>Rp,Nth:()=>zp,Number:()=>Up,Operator:()=>Gp,Parentheses:()=>Hp,Percentage:()=>Zp,PseudoClassSelector:()=>Kp,PseudoElementSelector:()=>Qp,Ratio:()=>tf,Raw:()=>nf,Rule:()=>sf,Selector:()=>lf,SelectorList:()=>cf,String:()=>pf,StyleSheet:()=>yf,TypeSelector:()=>Df,UnicodeRange:()=>vf,Url:()=>_f,Value:()=>Af,WhiteSpace:()=>Pf});Jd={};O(Jd,{generate:()=>F0,name:()=>k0,parse:()=>Zd,structure:()=>x0});Ve=43,ye=45,Lo=110,Lt=!0,v0=!1;k0="AnPlusB",x0={a:[String,null],b:[String,null]};Yd={};O(Yd,{generate:()=>T0,name:()=>E0,parse:()=>Kd,structure:()=>S0,walkContext:()=>C0});E0="Atrule",C0="atrule",S0={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Xd={};O(Xd,{generate:()=>I0,name:()=>A0,parse:()=>Qd,structure:()=>P0,walkContext:()=>O0});A0="AtrulePrelude",O0="atrulePrelude",P0={children:[[]]};ep={};O(ep,{generate:()=>z0,name:()=>R0,parse:()=>rp,structure:()=>$0});j0=36,tp=42,Mo=61,B0=94,la=124,L0=126;R0="AttributeSelector",$0={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};np={};O(np,{generate:()=>H0,name:()=>V0,parse:()=>ip,structure:()=>q0,walkContext:()=>G0});W0=38;V0="Block",G0="block",q0={children:[["Atrule","Rule","Declaration"]]};sp={};O(sp,{generate:()=>Y0,name:()=>J0,parse:()=>ap,structure:()=>Z0});J0="Brackets",Z0={children:[[]]};lp={};O(lp,{generate:()=>Q0,name:()=>K0,parse:()=>up,structure:()=>X0});K0="CDC",X0=[];cp={};O(cp,{generate:()=>rw,name:()=>ew,parse:()=>dp,structure:()=>tw});ew="CDO",tw=[];pp={};O(pp,{generate:()=>sw,name:()=>ow,parse:()=>fp,structure:()=>iw});nw=46,ow="ClassSelector",iw={name:String};mp={};O(mp,{generate:()=>pw,name:()=>cw,parse:()=>hp,structure:()=>dw});aw=43,ld=47,lw=62,uw=126,cw="Combinator",dw={name:String};gp={};O(gp,{generate:()=>yw,name:()=>hw,parse:()=>yp,structure:()=>gw});fw=42,mw=47,hw="Comment",gw={value:String};bp={};O(bp,{generate:()=>Tw,name:()=>Ew,parse:()=>wp,structure:()=>Sw,walkContext:()=>Cw});Dp=33,bw=35,Dw=36,ww=38,vw=42,kw=43,ud=47;Ew="Declaration",Cw="declaration",Sw={important:[Boolean,String],property:String,value:["Value","Raw"]};vp={};O(vp,{generate:()=>Bw,name:()=>Iw,parse:()=>kp,structure:()=>jw});Pw=38;Iw="DeclarationList",jw={children:[["Declaration","Atrule","Rule"]]};xp={};O(xp,{generate:()=>Mw,name:()=>Lw,parse:()=>Fp,structure:()=>Nw});Lw="Dimension",Nw={value:String,unit:String};_p={};O(_p,{generate:()=>Ww,name:()=>Rw,parse:()=>Ep,structure:()=>zw,walkContext:()=>$w});Rw="Function",$w="function",zw={name:String,children:[[]]};Cp={};O(Cp,{generate:()=>qw,name:()=>Vw,parse:()=>Sp,structure:()=>Gw,xxx:()=>Uw});Uw="XXX",Vw="Hash",Gw={value:String};Tp={};O(Tp,{generate:()=>Zw,name:()=>Hw,parse:()=>Ap,structure:()=>Jw});Hw="Identifier",Jw={name:String};Op={};O(Op,{generate:()=>Xw,name:()=>Yw,parse:()=>Pp,structure:()=>Kw});Yw="IdSelector",Kw={name:String};Ip={};O(Ip,{generate:()=>tv,name:()=>Qw,parse:()=>jp,structure:()=>ev});Qw="MediaFeature",ev={name:String,value:["Identifier","Number","Dimension","Ratio",null]};Bp={};O(Bp,{generate:()=>ov,name:()=>rv,parse:()=>Lp,structure:()=>nv});rv="MediaQuery",nv={children:[["Identifier","MediaFeature","WhiteSpace"]]};Np={};O(Np,{generate:()=>av,name:()=>iv,parse:()=>Mp,structure:()=>sv});iv="MediaQueryList",sv={children:[["MediaQuery"]]};Rp={};O(Rp,{generate:()=>dv,name:()=>uv,parse:()=>$p,structure:()=>cv});lv=38,uv="NestingSelector",cv={};zp={};O(zp,{generate:()=>mv,name:()=>pv,parse:()=>Wp,structure:()=>fv});pv="Nth",fv={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};Up={};O(Up,{generate:()=>yv,name:()=>hv,parse:()=>Vp,structure:()=>gv});hv="Number",gv={value:String};Gp={};O(Gp,{generate:()=>wv,name:()=>bv,parse:()=>qp,structure:()=>Dv});bv="Operator",Dv={value:String};Hp={};O(Hp,{generate:()=>xv,name:()=>vv,parse:()=>Jp,structure:()=>kv});vv="Parentheses",kv={children:[[]]};Zp={};O(Zp,{generate:()=>Ev,name:()=>Fv,parse:()=>Yp,structure:()=>_v});Fv="Percentage",_v={value:String};Kp={};O(Kp,{generate:()=>Av,name:()=>Cv,parse:()=>Xp,structure:()=>Tv,walkContext:()=>Sv});Cv="PseudoClassSelector",Sv="function",Tv={name:String,children:[["Raw"],null]};Qp={};O(Qp,{generate:()=>jv,name:()=>Ov,parse:()=>ef,structure:()=>Iv,walkContext:()=>Pv});Ov="PseudoElementSelector",Pv="function",Iv={name:String,children:[["Raw"],null]};tf={};O(tf,{generate:()=>Rv,name:()=>Nv,parse:()=>rf,structure:()=>Mv});Bv=47,Lv=46;Nv="Ratio",Mv={left:String,right:String};nf={};O(nf,{generate:()=>Uv,name:()=>zv,parse:()=>of,structure:()=>Wv});zv="Raw",Wv={value:String};sf={};O(sf,{generate:()=>Jv,name:()=>Gv,parse:()=>af,structure:()=>Hv,walkContext:()=>qv});Gv="Rule",qv="rule",Hv={prelude:["SelectorList","Raw"],block:["Block"]};lf={};O(lf,{generate:()=>Kv,name:()=>Zv,parse:()=>uf,structure:()=>Yv});Zv="Selector",Yv={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};cf={};O(cf,{generate:()=>tk,name:()=>Xv,parse:()=>df,structure:()=>ek,walkContext:()=>Qv});Xv="SelectorList",Qv="selector",ek={children:[["Selector","Raw"]]};pf={};O(pf,{generate:()=>ik,name:()=>nk,parse:()=>gf,structure:()=>ok});rk={};O(rk,{decode:()=>Pa,encode:()=>hf});ua=92,ff=34,mf=39;nk="String",ok={value:String};yf={};O(yf,{generate:()=>ck,name:()=>ak,parse:()=>bf,structure:()=>uk,walkContext:()=>lk});sk=33;ak="StyleSheet",lk="stylesheet",uk={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};Df={};O(Df,{generate:()=>mk,name:()=>pk,parse:()=>wf,structure:()=>fk});dk=42,fd=124;pk="TypeSelector",fk={name:String};vf={};O(vf,{generate:()=>Dk,name:()=>yk,parse:()=>Ff,structure:()=>bk});kf=43,xf=45,ca=63;yk="UnicodeRange",bk={value:String};_f={};O(_f,{generate:()=>Ck,name:()=>_k,parse:()=>Tf,structure:()=>Ek});wk={};O(wk,{decode:()=>Cf,encode:()=>Sf});vk=32,da=92,kk=34,xk=39,Fk=40,Ef=41;_k="Url",Ek={value:String};Af={};O(Af,{generate:()=>Ak,name:()=>Sk,parse:()=>Of,structure:()=>Tk});Sk="Value",Tk={children:[[]]};Pf={};O(Pf,{generate:()=>jk,name:()=>Pk,parse:()=>If,structure:()=>Ik});Ok=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Pk="WhiteSpace",Ik={value:String};Bk={generic:!0,...w0,node:Oa},jf={};O(jf,{AtrulePrelude:()=>zk,Selector:()=>Xk,Value:()=>tx});Lk=35,Nk=42,md=43,Mk=45,Rk=47,$k=117;zk={getNode:Bf},Wk=35,Uk=38,Vk=42,Gk=43,qk=47,hd=46,Hk=62,Jk=124,Zk=126;Xk={onWhiteSpace:Yk,getNode:Kk};tx={getNode:Bf,onWhiteSpace(e,t){gd(e)&&(e.value=" "+e.value),gd(t.last)&&(t.last.value+=" ")},expression:Qk,var:ex},rx={parse:{prelude:null,block(){return this.Block(!0)}}},nx={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}},ox={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},ix={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},sx={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};ux={parse:{prelude(){let e=Lf.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},cx={"font-face":rx,import:nx,media:ox,nest:ix,page:sx,supports:ux},Bt={parse(){return this.createSingleNodeList(this.SelectorList())}},Zs={parse(){return this.createSingleNodeList(this.Selector())}},yd={parse(){return this.createSingleNodeList(this.Identifier())}},Io={parse(){return this.createSingleNodeList(this.Nth())}},dx={dir:yd,has:Bt,lang:yd,matches:Bt,is:Bt,"-moz-any":Bt,"-webkit-any":Bt,where:Bt,not:Bt,"nth-child":Io,"nth-last-child":Io,"nth-last-of-type":Io,"nth-of-type":Io,slotted:Zs,host:Zs,"host-context":Zs},Nf={};O(Nf,{AnPlusB:()=>Zd,Atrule:()=>Kd,AtrulePrelude:()=>Qd,AttributeSelector:()=>rp,Block:()=>ip,Brackets:()=>ap,CDC:()=>up,CDO:()=>dp,ClassSelector:()=>fp,Combinator:()=>hp,Comment:()=>yp,Declaration:()=>wp,DeclarationList:()=>kp,Dimension:()=>Fp,Function:()=>Ep,Hash:()=>Sp,IdSelector:()=>Pp,Identifier:()=>Ap,MediaFeature:()=>jp,MediaQuery:()=>Lp,MediaQueryList:()=>Mp,NestingSelector:()=>$p,Nth:()=>Wp,Number:()=>Vp,Operator:()=>qp,Parentheses:()=>Jp,Percentage:()=>Yp,PseudoClassSelector:()=>Xp,PseudoElementSelector:()=>ef,Ratio:()=>rf,Raw:()=>of,Rule:()=>af,Selector:()=>uf,SelectorList:()=>df,String:()=>gf,StyleSheet:()=>bf,TypeSelector:()=>wf,UnicodeRange:()=>Ff,Url:()=>Tf,Value:()=>Of,WhiteSpace:()=>If});px={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:jf,atrule:cx,pseudo:dx,node:Nf},fx={node:Oa},mx=D0({...Bk,...px,...fx}),hx={};O(hx,{decode:()=>gx,encode:()=>yx});bd=92;({tokenize:LC,parse:Mf,generate:Rf,lexer:NC,createLexer:MC,walk:$f,find:RC,findLast:$C,findAll:zC,toPlainObject:WC,fromPlainObject:UC,fork:VC}=mx)});function Dx(e,t,r){let n=["ClassSelector","AttributeSelector","IdSelector","PseudoClassSelector"],o=["type"],i=["root"];if(e.type==="Rule"&&(e.prelude.type==="SelectorList"&&(e.prelude.children=new ne().fromArray(e.prelude.children.toArray().filter(s=>{let a="children"in s?s.children?.first:null;return!a||!n.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&&r)){r.remove(t);return}}function Vf(e){if(ae.log(ct("Detected skipTagSelectors flag is enabled. Skipping global CSS tags.")),!e)return Wf("");let t=Es(e?.css,!0);try{let r=Mf(t);$f(r,{enter:Dx});let n=Uf.default.format([Rf(r),bx].join(`
|
|
37
|
+
--------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,u),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:l},o},Ro=new Map,En=new Map,Ko=45,Js=aD,ed=lD;Wd=["initial","inherit","unset","revert","revert-layer"],Lr=43,Ye=45,Zs=110,Cn=!0,uD=!1;dD=43,Ud=45,Vd=63,pD=117;hD=["calc(","-moz-calc(","-webkit-calc("],Aa=new Map([[2,22],[21,22],[19,20],[23,24]]);ED={"ident-token":J(1),"function-token":J(2),"at-keyword-token":J(3),"hash-token":J(4),"string-token":J(5),"bad-string-token":J(6),"url-token":J(7),"bad-url-token":J(8),"delim-token":J(9),"number-token":J(10),"percentage-token":J(11),"dimension-token":J(12),"whitespace-token":J(13),"CDO-token":J(14),"CDC-token":J(15),"colon-token":J(16),"semicolon-token":J(17),"comma-token":J(18),"[-token":J(19),"]-token":J(20),"(-token":J(21),")-token":J(22),"{-token":J(23),"}-token":J(24)},CD={string:J(5),ident:J(1),percentage:Se(xD),zero:Jd(),number:Se(FD),integer:Se(_D),"custom-ident":yD,"custom-property-name":bD,"hex-color":DD,"id-selector":wD,"an-plus-b":cD,urange:mD,"declaration-value":vD,"any-value":kD};ca={};O(ca,{angle:()=>OD,decibel:()=>LD,flex:()=>BD,frequency:()=>ID,length:()=>AD,resolution:()=>jD,semitones:()=>ND,time:()=>PD});AD=["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"],OD=["deg","grad","rad","turn"],PD=["s","ms"],ID=["hz","khz"],jD=["dpi","dpcm","dppx","x"],BD=["fr"],LD=["db"],ND=["st"],MD={};O(MD,{SyntaxError:()=>Zd,generate:()=>ii,parse:()=>La,walk:()=>tp});RD=9,$D=10,zD=12,WD=13,UD=32,VD=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!==WD&&t!==$D&&t!==zD&&t!==UD&&t!==RD)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 Zd(e,this.str,this.pos)}},GD=9,qD=10,HD=12,JD=13,ZD=32,Yd=33,Oa=35,td=38,Xo=39,Kd=40,YD=41,Xd=42,Pa=43,Ia=44,nd=45,ja=60,Qd=62,da=63,KD=64,ai=91,Ba=93,Qo=123,rd=124,od=125,id=8734,Nr=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),sd={" ":1,"&&":2,"||":3,"|":4};Or=function(){};a0={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}}}};G={type:"Match"},q={type:"Mismatch"},Na={type:"DisallowEmpty"},c0=40,d0=41;({hasOwnProperty:cd}=Object.prototype),f0=0,m0=1,ma=2,rp=3,dd="Match",h0="Mismatch",g0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",pd=15e3,y0=0;op={};O(op,{getTrace:()=>ip,isKeyword:()=>x0,isProperty:()=>k0,isType:()=>v0});({hasOwnProperty:jr}=Object.prototype);C0=fa(Wd.join(" | "));bd=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=C0,this.syntax=t,this.generic=!1,this.units={...ca},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||E0(e),e){if(e.units)for(let r of Object.keys(ca))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(TD(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=fa(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:La(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:fa(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 Cr("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&&!Sn(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=Js(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 Cr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Cr("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return $e(null,n);let r=this.getAtrule(e);return r.prelude?Sn(this,r.prelude,t||"",!1):$e(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return $e(null,r);let o=this.getAtrule(e),i=Js(t);return Sn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?$e(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(ed(e).custom)return $e(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?$e(null,n):Sn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Sn(this,n,t,!1):$e(null,new Cr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?$e(null,new Cr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Sn(this,e,t,!1))}findValueFragments(e,t,n,r){return gd(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return gd(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=Js(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=ed(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&&tp(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let u=a.type==="Type"?r.types:r.properties,l=a.type==="Type"?t:n;(!hasOwnProperty.call(u,a.name)||e(r,a.name,l,u[a.name]))&&i.set(o,!0)},this)}let t=new Map,n=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(r=>t.get(r)),n=[...n.keys()].filter(r=>n.get(r)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:ha(this.types,!t,e),properties:ha(this.properties,!t,e),atrules:S0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};A0=e=>lp(ga({},e)),O0={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}}},$a={};O($a,{AnPlusB:()=>up,Atrule:()=>dp,AtrulePrelude:()=>fp,AttributeSelector:()=>hp,Block:()=>bp,Brackets:()=>vp,CDC:()=>xp,CDO:()=>_p,ClassSelector:()=>Cp,Combinator:()=>Tp,Comment:()=>Op,Declaration:()=>Ip,DeclarationList:()=>Lp,Dimension:()=>Mp,Function:()=>$p,Hash:()=>Wp,IdSelector:()=>qp,Identifier:()=>Vp,MediaFeature:()=>Jp,MediaQuery:()=>Yp,MediaQueryList:()=>Xp,NestingSelector:()=>ef,Nth:()=>nf,Number:()=>of,Operator:()=>af,Parentheses:()=>uf,Percentage:()=>df,PseudoClassSelector:()=>ff,PseudoElementSelector:()=>hf,Ratio:()=>yf,Raw:()=>Df,Rule:()=>vf,Selector:()=>xf,SelectorList:()=>_f,String:()=>Cf,StyleSheet:()=>Pf,TypeSelector:()=>jf,UnicodeRange:()=>Lf,Url:()=>$f,Value:()=>Gf,WhiteSpace:()=>Hf});up={};O(up,{generate:()=>B0,name:()=>I0,parse:()=>cp,structure:()=>j0});Ke=43,De=45,Go=110,Vt=!0,P0=!1;I0="AnPlusB",j0={a:[String,null],b:[String,null]};dp={};O(dp,{generate:()=>$0,name:()=>N0,parse:()=>pp,structure:()=>R0,walkContext:()=>M0});N0="Atrule",M0="atrule",R0={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};fp={};O(fp,{generate:()=>V0,name:()=>z0,parse:()=>mp,structure:()=>U0,walkContext:()=>W0});z0="AtrulePrelude",W0="atrulePrelude",U0={children:[[]]};hp={};O(hp,{generate:()=>X0,name:()=>Y0,parse:()=>yp,structure:()=>K0});G0=36,gp=42,Ho=61,q0=94,ya=124,H0=126;Y0="AttributeSelector",K0={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};bp={};O(bp,{generate:()=>ow,name:()=>tw,parse:()=>wp,structure:()=>rw,walkContext:()=>nw});Q0=38;tw="Block",nw="block",rw={children:[["Atrule","Rule","Declaration"]]};vp={};O(vp,{generate:()=>aw,name:()=>iw,parse:()=>kp,structure:()=>sw});iw="Brackets",sw={children:[[]]};xp={};O(xp,{generate:()=>cw,name:()=>lw,parse:()=>Fp,structure:()=>uw});lw="CDC",uw=[];_p={};O(_p,{generate:()=>fw,name:()=>dw,parse:()=>Ep,structure:()=>pw});dw="CDO",pw=[];Cp={};O(Cp,{generate:()=>yw,name:()=>hw,parse:()=>Sp,structure:()=>gw});mw=46,hw="ClassSelector",gw={name:String};Tp={};O(Tp,{generate:()=>xw,name:()=>vw,parse:()=>Ap,structure:()=>kw});bw=43,xd=47,Dw=62,ww=126,vw="Combinator",kw={name:String};Op={};O(Op,{generate:()=>Sw,name:()=>Ew,parse:()=>Pp,structure:()=>Cw});Fw=42,_w=47,Ew="Comment",Cw={value:String};Ip={};O(Ip,{generate:()=>$w,name:()=>Nw,parse:()=>Bp,structure:()=>Rw,walkContext:()=>Mw});jp=33,Tw=35,Aw=36,Ow=38,Pw=42,Iw=43,Fd=47;Nw="Declaration",Mw="declaration",Rw={important:[Boolean,String],property:String,value:["Value","Raw"]};Lp={};O(Lp,{generate:()=>qw,name:()=>Vw,parse:()=>Np,structure:()=>Gw});Uw=38;Vw="DeclarationList",Gw={children:[["Declaration","Atrule","Rule"]]};Mp={};O(Mp,{generate:()=>Zw,name:()=>Hw,parse:()=>Rp,structure:()=>Jw});Hw="Dimension",Jw={value:String,unit:String};$p={};O($p,{generate:()=>Qw,name:()=>Yw,parse:()=>zp,structure:()=>Xw,walkContext:()=>Kw});Yw="Function",Kw="function",Xw={name:String,children:[[]]};Wp={};O(Wp,{generate:()=>rv,name:()=>tv,parse:()=>Up,structure:()=>nv,xxx:()=>ev});ev="XXX",tv="Hash",nv={value:String};Vp={};O(Vp,{generate:()=>sv,name:()=>ov,parse:()=>Gp,structure:()=>iv});ov="Identifier",iv={name:String};qp={};O(qp,{generate:()=>uv,name:()=>av,parse:()=>Hp,structure:()=>lv});av="IdSelector",lv={name:String};Jp={};O(Jp,{generate:()=>pv,name:()=>cv,parse:()=>Zp,structure:()=>dv});cv="MediaFeature",dv={name:String,value:["Identifier","Number","Dimension","Ratio",null]};Yp={};O(Yp,{generate:()=>hv,name:()=>fv,parse:()=>Kp,structure:()=>mv});fv="MediaQuery",mv={children:[["Identifier","MediaFeature","WhiteSpace"]]};Xp={};O(Xp,{generate:()=>bv,name:()=>gv,parse:()=>Qp,structure:()=>yv});gv="MediaQueryList",yv={children:[["MediaQuery"]]};ef={};O(ef,{generate:()=>kv,name:()=>wv,parse:()=>tf,structure:()=>vv});Dv=38,wv="NestingSelector",vv={};nf={};O(nf,{generate:()=>_v,name:()=>xv,parse:()=>rf,structure:()=>Fv});xv="Nth",Fv={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};of={};O(of,{generate:()=>Sv,name:()=>Ev,parse:()=>sf,structure:()=>Cv});Ev="Number",Cv={value:String};af={};O(af,{generate:()=>Ov,name:()=>Tv,parse:()=>lf,structure:()=>Av});Tv="Operator",Av={value:String};uf={};O(uf,{generate:()=>jv,name:()=>Pv,parse:()=>cf,structure:()=>Iv});Pv="Parentheses",Iv={children:[[]]};df={};O(df,{generate:()=>Nv,name:()=>Bv,parse:()=>pf,structure:()=>Lv});Bv="Percentage",Lv={value:String};ff={};O(ff,{generate:()=>zv,name:()=>Mv,parse:()=>mf,structure:()=>$v,walkContext:()=>Rv});Mv="PseudoClassSelector",Rv="function",$v={name:String,children:[["Raw"],null]};hf={};O(hf,{generate:()=>Gv,name:()=>Wv,parse:()=>gf,structure:()=>Vv,walkContext:()=>Uv});Wv="PseudoElementSelector",Uv="function",Vv={name:String,children:[["Raw"],null]};yf={};O(yf,{generate:()=>Yv,name:()=>Jv,parse:()=>bf,structure:()=>Zv});qv=47,Hv=46;Jv="Ratio",Zv={left:String,right:String};Df={};O(Df,{generate:()=>ek,name:()=>Xv,parse:()=>wf,structure:()=>Qv});Xv="Raw",Qv={value:String};vf={};O(vf,{generate:()=>ik,name:()=>nk,parse:()=>kf,structure:()=>ok,walkContext:()=>rk});nk="Rule",rk="rule",ok={prelude:["SelectorList","Raw"],block:["Block"]};xf={};O(xf,{generate:()=>lk,name:()=>sk,parse:()=>Ff,structure:()=>ak});sk="Selector",ak={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};_f={};O(_f,{generate:()=>pk,name:()=>uk,parse:()=>Ef,structure:()=>dk,walkContext:()=>ck});uk="SelectorList",ck="selector",dk={children:[["Selector","Raw"]]};Cf={};O(Cf,{generate:()=>gk,name:()=>mk,parse:()=>Of,structure:()=>hk});fk={};O(fk,{decode:()=>za,encode:()=>Af});ba=92,Sf=34,Tf=39;mk="String",hk={value:String};Pf={};O(Pf,{generate:()=>vk,name:()=>bk,parse:()=>If,structure:()=>wk,walkContext:()=>Dk});yk=33;bk="StyleSheet",Dk="stylesheet",wk={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};jf={};O(jf,{generate:()=>_k,name:()=>xk,parse:()=>Bf,structure:()=>Fk});kk=42,Sd=124;xk="TypeSelector",Fk={name:String};Lf={};O(Lf,{generate:()=>Ak,name:()=>Sk,parse:()=>Rf,structure:()=>Tk});Nf=43,Mf=45,Da=63;Sk="UnicodeRange",Tk={value:String};$f={};O($f,{generate:()=>Mk,name:()=>Lk,parse:()=>Vf,structure:()=>Nk});Ok={};O(Ok,{decode:()=>Wf,encode:()=>Uf});Pk=32,wa=92,Ik=34,jk=39,Bk=40,zf=41;Lk="Url",Nk={value:String};Gf={};O(Gf,{generate:()=>zk,name:()=>Rk,parse:()=>qf,structure:()=>$k});Rk="Value",$k={children:[[]]};Hf={};O(Hf,{generate:()=>Gk,name:()=>Uk,parse:()=>Jf,structure:()=>Vk});Wk=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Uk="WhiteSpace",Vk={value:String};qk={generic:!0,...O0,node:$a},Zf={};O(Zf,{AtrulePrelude:()=>Xk,Selector:()=>ux,Value:()=>px});Hk=35,Jk=42,Td=43,Zk=45,Yk=47,Kk=117;Xk={getNode:Yf},Qk=35,ex=38,tx=42,nx=43,rx=47,Ad=46,ox=62,ix=124,sx=126;ux={onWhiteSpace:ax,getNode:lx};px={getNode:Yf,onWhiteSpace(e,t){Od(e)&&(e.value=" "+e.value),Od(t.last)&&(t.last.value+=" ")},expression:cx,var:dx},fx={parse:{prelude:null,block(){return this.Block(!0)}}},mx={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}},hx={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},gx={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},yx={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};wx={parse:{prelude(){let e=Kf.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},vx={"font-face":fx,import:mx,media:hx,nest:gx,page:yx,supports:wx},Ut={parse(){return this.createSingleNodeList(this.SelectorList())}},oa={parse(){return this.createSingleNodeList(this.Selector())}},Pd={parse(){return this.createSingleNodeList(this.Identifier())}},Wo={parse(){return this.createSingleNodeList(this.Nth())}},kx={dir:Pd,has:Ut,lang:Pd,matches:Ut,is:Ut,"-moz-any":Ut,"-webkit-any":Ut,where:Ut,not:Ut,"nth-child":Wo,"nth-last-child":Wo,"nth-last-of-type":Wo,"nth-of-type":Wo,slotted:oa,host:oa,"host-context":oa},Xf={};O(Xf,{AnPlusB:()=>cp,Atrule:()=>pp,AtrulePrelude:()=>mp,AttributeSelector:()=>yp,Block:()=>wp,Brackets:()=>kp,CDC:()=>Fp,CDO:()=>Ep,ClassSelector:()=>Sp,Combinator:()=>Ap,Comment:()=>Pp,Declaration:()=>Bp,DeclarationList:()=>Np,Dimension:()=>Rp,Function:()=>zp,Hash:()=>Up,IdSelector:()=>Hp,Identifier:()=>Gp,MediaFeature:()=>Zp,MediaQuery:()=>Kp,MediaQueryList:()=>Qp,NestingSelector:()=>tf,Nth:()=>rf,Number:()=>sf,Operator:()=>lf,Parentheses:()=>cf,Percentage:()=>pf,PseudoClassSelector:()=>mf,PseudoElementSelector:()=>gf,Ratio:()=>bf,Raw:()=>wf,Rule:()=>kf,Selector:()=>Ff,SelectorList:()=>Ef,String:()=>Of,StyleSheet:()=>If,TypeSelector:()=>Bf,UnicodeRange:()=>Rf,Url:()=>Vf,Value:()=>qf,WhiteSpace:()=>Jf});xx={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:Zf,atrule:vx,pseudo:kx,node:Xf},Fx={node:$a},_x=A0({...qk,...xx,...Fx}),Ex={};O(Ex,{decode:()=>Cx,encode:()=>Sx});Id=92;({tokenize:E2,parse:Qf,generate:em,lexer:C2,createLexer:S2,walk:tm,find:T2,findLast:A2,findAll:O2,toPlainObject:P2,fromPlainObject:I2,fork:j2}=_x)});function Ax(e,t,n){let r=["ClassSelector","AttributeSelector","IdSelector","PseudoClassSelector"],o=["type"],i=["root"];if(e.type==="Rule"&&(e.prelude.type==="SelectorList"&&(e.prelude.children=new oe().fromArray(e.prelude.children.toArray().filter(s=>{let a="children"in s?s.children?.first:null;return!a||!r.includes(a.type)?!1:a.type==="PseudoClassSelector"?i.includes(a.name):a.type==="AttributeSelector"?!o.includes(a.name.name):!0}))),e.prelude.children.toArray().length===0&&n)){n.remove(t);return}}function im(e){if(le.log(yt("Detected skipTagSelectors flag is enabled. Skipping global CSS tags.")),!e)return rm("");let t=Ls(e?.css,!0);try{let n=Qf(t);tm(n,{enter:Ax});let r=om.default.format([em(n),Tx].join(`
|
|
38
38
|
|
|
39
|
-
`).trim(),{parser:"css"});return
|
|
39
|
+
`).trim(),{parser:"css"});return rm(r)}catch{return le.log(bn("There was a problem skipping global tags from CSS. Falling back to normal global CSS.")),e}}function sm(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var om,Tx,rm,am=A(()=>{"use strict";nm();om=D(require("prettier"));Ns();U();Fr();Tx=`
|
|
40
40
|
.w-icon-slider-right:before {
|
|
41
41
|
content: "\\e600";
|
|
42
42
|
}
|
|
@@ -55,68 +55,68 @@ ${s instanceof Error?s.message:String(s)}`)}),process.exit(1)),i&&(s instanceof
|
|
|
55
55
|
.w-icon-file-upload-icon:before {
|
|
56
56
|
content: "\\e903";
|
|
57
57
|
}
|
|
58
|
-
`;
|
|
59
|
-
${e?.stack}`})});var
|
|
58
|
+
`;rm=e=>({name:"global",css:{__bootflow:{rule:e}},module:!1})});function lm(e){if(e.status>=200&&e.status<300){switch(e.status){case 206:le.log(bn("You exceeded the limit of components and some components were not exported."));break;case 207:le.log(bn("Certain components couldn't be exported due to an unexpected error."));break}return}switch(e.status){case 400:throw new _t("Something unexpected happened. Report a bug here: https://airtable.com/shr47EWPVsV9xCwOH");case 401:throw new _t("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new _t("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new _t("Something went wrong. Try again later or report a bug here: https://airtable.com/shr47EWPVsV9xCwOH")}}async function Ox(e){try{let{siteId:t,host:n,authToken:r,components:o,cssModules:i,relativeHrefRoot:s}=e,a=new URLSearchParams({cssModules:i?"true":"false"});o&&a.append("components",encodeURIComponent(o)),s!==void 0&&a.append("relativeHrefRoot",encodeURIComponent(String(s)));let u=`?${a.toString()}`,l=await(0,Wa.default)(`${n}/devlink/${t}${u}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});lm(l);let c=await l.json();return c.components||c}catch(t){if(t instanceof _t)Ua(t),process.exit(1);else throw t}}async function Px(e){try{let{siteId:t,host:n,authToken:r}=e,o=await(0,Wa.default)(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return lm(o),await o.json()}catch(t){if(t instanceof _t)Ua(t),process.exit(1);else throw t}}async function Va(e){let{rootDir:t}=e;le.render({text:`Exporting components into ${e.rootDir}.`,showSpinner:!0,flushLogs:!0});try{let[n,r]=await Promise.all([Ox(e),Px(e)]),o=r;if(e.skipTagSelectors===!0){let{rest:i,globalCss:s}=sm(n),a=im(s);o.push(...i,a)}else o.push(...n);await Bc(o,e),le.render({text:yt(`Successfully exported components into ${t} folder.`),flushLogs:!0})}catch(n){n instanceof Error&&(Ua(n),await Fn(e)(n))}}var Wa,_t,Ua,um=A(()=>{"use strict";Wa=D(require("node-fetch"));U();Ns();Rs();Fr();am();_t=class extends Error{constructor(t){super(t)}},Ua=e=>le.render({text:`${bt("Something went wrong while trying to export your components:")} ${ne.red(e.message)}
|
|
59
|
+
${e?.stack}`})});var cm={};Fl(cm,{syncComponents:()=>Ga});async function Ga(e,t){let n=Date.now(),r=null,o=t?.apiToken||Mr.default.env.WEBFLOW_SITE_API_TOKEN,i=t?.site||Mr.default.env.WEBFLOW_SITE_ID,s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:Io(e),overwriteModule:!1}:{overwriteModule:!0}};Nc(s);let a=await jo(s);if(!a)return Mr.default.exit();let u=!1;try{r=Je.fromDevlinkConfig(a),u=await r.promptForConsentIfNeeded();let l=u?"Telemetry enabled - usage data will be collected":"Telemetry disabled - no usage data will be collected";le.log(yt(l))}catch{le.log(yt("Telemetry unavailable - continuing without usage tracking"))}if(r&&u)try{await r.sendUsage("devlink_sync_start",!0,void 0,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot})}catch(l){console.debug("Failed to send telemetry start event:",l)}try{if(await Va({...a,allowTelemetry:u}),r&&u)try{let l=Date.now()-n;await r.sendUsage("devlink_sync_success",!0,l,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,performanceMetrics:{totalDuration:l,operation:"devlink_sync"}})}catch(l){console.debug("Failed to send telemetry success events:",l)}}catch(l){if(r&&u)try{let c=Date.now()-n;await r.sendUsage("devlink_sync_failure",!1,c,{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,errorType:l instanceof Error?l.name:"unknown",performanceMetrics:{totalDuration:c,operation:"devlink_sync"}}),await r.sendError(l instanceof Error?l:new Error(String(l)),"devlink_sync",{specificComponents:e&&e.length>0,componentCount:e?.length||0,configOverrides:Object.keys(s),argv:Mr.default.argv.slice(2)})}catch(c){console.debug("Failed to send telemetry failure events:",c)}throw l}}var Mr,qa=A(()=>{"use strict";Mr=D(require("process"));Bo();um();Rs();hn();Fr();U()});var lg=require("commander");U();var ju=require("child_process"),Bu=require("fs"),gs=D(require("semver"));U();var ys="@webflow/webflow-cli",Rt="@webflow/data-types",yo="@webflow/react",yy=[ys,Rt,yo],$t=class{getInstalledDependencies(){try{let t=(0,ju.execSync)(`npm ls ${yy.join(" ")} --depth=0 --json --silent`,{encoding:"utf-8"}),n=JSON.parse(t);return n.dependencies?Object.entries(n.dependencies).reduce((r,[o,{version:i}])=>(r[o]=i,r),{}):{}}catch(t){return p.debug(`Failed to get installed dependencies: ${t}`),{}}}getRequiredDependencies(t){let n=JSON.parse((0,Bu.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Rt];if(!n)return;let o=this.getRequiredDependencies(ys)[Rt];if(!gs.default.satisfies(n,o))throw new Error(`Version mismatch: ${ys} requires ${Rt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Rt],r=t[yo];if(!(!n||!r)&&!gs.default.eq(n,r))throw new Error(`Version mismatch: ${yo} and ${Rt} must be on the same version. Found ${yo}@${r} and ${Rt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var Ru=require("fs-extra");Ne();var $u=require("@dotenvx/dotenvx");U();var Lu=require("child_process"),Nu=require("util"),by=(0,Nu.promisify)(Lu.exec);async function pr(e,t){try{let{stdout:n,stderr:r}=await by(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}}}xe();(0,$u.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var Mu={npm:{updateCommand:"npm install",update:async e=>await pr(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await pr(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await pr(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await pr(`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}},Dy=["@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(Mu))if((0,Ru.existsSync)(t.lockFile))return t;return Mu.npm}async listOutdatedPackages(t="local",n=Dy){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 co({message:"New versions of the following @webflow packages are available. Would you like to upgrade?",choices:Object.entries(t).map(([o,{current:i,latest:s}])=>({name:`${o} (${i} \u2192 ${s})`,value:o}))});return r??[]}else{let[[r,{current:o,latest:i}]]=Object.entries(t);return await pe({message:`A new version of ${r} (${o} \u2192 ${i}) is available. Would you like to update?`,default:!1})?[r]:[]}}showUpdateSuggestions(t){let n=Object.keys(t).length>1,{updateCommand:r,globalFlag:o}=this.packageManager;if(n){console.log(`
|
|
60
60
|
New versions of the following @webflow packages are available:`),Object.entries(t).forEach(([a,{current:u,latest:l}])=>{console.log(` ${a} (${u} \u2192 ${l})`)});let i=Object.entries(t).filter(([,{installationType:a}])=>a==="local").map(([a])=>`${a}@latest`),s=Object.entries(t).filter(([,{installationType:a}])=>a==="global").map(([a])=>`${a}@latest`);console.log(`
|
|
61
|
-
To update, run:`),i.length>0&&console.log(` ${
|
|
62
|
-
A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=u==="global"?` ${o}`:"";console.log(`To update, run: ${
|
|
61
|
+
To update, run:`),i.length>0&&console.log(` ${r} ${i.join(" ")}`),s.length>0&&console.log(` ${r} ${o} ${s.join(" ")}`)}else{let[[i,{current:s,latest:a,installationType:u}]]=Object.entries(t);console.log(`
|
|
62
|
+
A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=u==="global"?` ${o}`:"";console.log(`To update, run: ${r}${l} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}async prompt(){if(this.shouldSkipUpdateChecks())return;let t;try{t=p.spinner("Checking for updates. To disable update checks, use WEBFLOW_SKIP_UPDATE_CHECKS=true");let n=await this.getOutdatedPackages();if(!(Object.keys(n).length>0)){t.succeed("All webflow packages are updated. To disable update checks, use WEBFLOW_SKIP_UPDATE_CHECKS=true");return}if(t.succeed(),!process.stdin.isTTY||re()){this.showUpdateSuggestions(n);return}let i=await this.showUpdatePrompt(n);if(i.length>0){t=p.spinner("Updating");let{local:s,global:a}=i.reduce((d,f)=>(d[n[f].installationType==="global"?"global":"local"].push(f),d),{local:[],global:[]}),{update:u,globalFlag:l,updateCommand:c}=this.packageManager;try{s.length>0&&await u(`${s.map(d=>`${d}@latest`).join(" ")}`),a.length>0&&await u(`${l} ${a.map(d=>`${d}@latest`).join(" ")}`),t.succeed("Updated successfully. To disable update checks, use WEBFLOW_SKIP_UPDATE_CHECKS=true")}catch{t.fail(`Update failed. Manually run: ${c} ${i.map(f=>`${f}@latest`).join(" ")}`)}}}catch(n){t?.fail("Failed to check for updates"),p.debug(n)}}};xe();Ne();Ne();var wr=require("webflow-api");fe();var yr={serverUrl:Dn,timeoutMs:5*60*1e3};var Uu=require("crypto"),Vu=D(require("open"));U();var Gu=e=>{let t=new Uint8Array(e);return Uu.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},qu=({pollId:e,clientId:t,scope:n})=>`${yr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,wy=e=>`${yr.serverUrl}/oauth/webflow/poll?pollId=${e}`,Hu=async e=>{let t=p.spinner("Opening browser for authentication. Please follow the instructions in your browser");try{await new Promise(n=>setTimeout(n,3e3)),await(0,Vu.default)(e),t.succeed()}catch{t.fail(),p.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},vy=async e=>{let t=wy(e),n=await fetch(t);if(!n.ok){let r=`Failed to poll for authentication status (${n.status})`;try{let o=await n.json();o&&o.error&&(r+=`: ${o.error}`)}catch{}throw new Error(r)}return n.json()},Ju=(e,t)=>{let n=p.spinner("Waiting for authentication");return new Promise((r,o)=>{let i=setTimeout(()=>{clearTimeout(i),clearInterval(s),o(new Error("Authentication timed out. Please try again."))},t),s=setInterval(async()=>{try{let a=await vy(e);a.status==="success"&&a.accessToken?(clearTimeout(i),clearInterval(s),n.succeed("Authentication successful! You can close the browser window."),r(a.accessToken)):a.status==="error"&&(clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(new Error(a.error||"Authentication failed")))}catch(a){clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(a instanceof Error?a:new Error(String(a)))}},2e3)})};U();fe();fe();var zt=D(require("fs")),Dr=D(require("path")),br=D(require("@dotenvx/dotenvx"));function wn({siteId:e,siteApiToken:t,workspaceApiToken:n,directory:r}){let o=Dr.resolve(r?Dr.join(r,".env"):Dr.join(process.cwd(),".env"));r&&!zt.existsSync(r)&&zt.mkdirSync(r,{recursive:!0}),zt.existsSync(o)||zt.writeFileSync(o,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),br.default.config({path:o,quiet:!0}),e&&br.default.set("WEBFLOW_SITE_ID",e,{path:o,encrypt:!1}),t&&br.default.set("WEBFLOW_SITE_API_TOKEN",t,{path:o,encrypt:!1}),n&&br.default.set("WEBFLOW_WORKSPACE_API_TOKEN",n,{path:o,encrypt:!1})}async function vn({clientId:e,scope:t}){let n=Gu(16);try{let r=qu({pollId:n,clientId:e,scope:t});return await Hu(r),await Ju(n,yr.timeoutMs)}catch(r){throw r instanceof Error?r:new Error(String(r))}}async function Do(e){try{let n=await new wr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${nt}/v2`,production:`${Z}/v2`,cdn:`${nt}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new Error("Invalid response from Webflow API");return n.sites.map(r=>({id:r.id,displayName:r.displayName,shortName:r.shortName||r.displayName.toLowerCase().replace(/\s+/g,"-")}))}catch(t){throw p.error(`Error fetching Webflow sites: ${t}`),new Error("Failed to fetch Webflow sites. Please check your authorization.")}}async function vr(e,t){try{let r=await new wr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${nt}/v2`,production:`${Z}/v2`,cdn:`${nt}/v2`}}).sites.get(t);return{id:r.id||t,displayName:r.displayName||"Unknown Site",shortName:r.shortName||"unknown-site",customDomains:r.customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw p.error(`Error fetching site details: ${n}`),new Error("Failed to fetch site details from Webflow API")}}async function ws(e,t){try{return{customDomains:(await new wr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${nt}/v2`,production:`${Z}/v2`,cdn:`${nt}/v2`}}).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw p.error(`Error fetching custom domains ${n}`),new Error("Failed to fetch custom domains from Webflow API")}}async function vs(e){try{let t=await fetch(`https://${e}/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);return await t.json()}catch(t){throw p.debug(`Failed to fetch manifest ${t}`),new Error(`Failed to fetch manifest from ${e}: ${t}`)}}function ks(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 Zu(e,t,n){try{let r=new wr.WebflowClient({accessToken:e,environment:{base:`${Z}/v2`,dataApi:`${Z}/v2`,contentDeliveryApi:`${nt}/v2`,production:`${Z}/v2`,cdn:`${nt}/v2`}}),o=await vr(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(u=>u.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw p.error(`Error publishing site ${r}`),new Error("Failed to publish site to Webflow")}}async function wo(e){let t=await Fe({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});return t||(console.warn("Auto fallback to first site:",e[0].displayName),e[0])}hn();U();var vo=process.env.BUILD_ENV==="development"?"530671685bda4c7d91b2b585af9aeb3b334eda3671d2ecead5a70a3b40b9dc3b":process.env.BUILD_ENV==="acceptance"?"1523a726fdc4e2be0fd575642dfe426a778cf0b173b6db7a24c92bae78bcb555":"4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",ko=["sites:read","sites:write","authorized_user:read"];function xs(){let e=process.env.WEBFLOW_SITE_ID,t=process.env.WEBFLOW_SITE_API_TOKEN;return e&&t?{siteId:e,accessToken:t}:null}function Me(){let e=xs();return e||(p.error("Error: Missing required environment variables:"),p.error("- WEBFLOW_SITE_ID"),p.error("- WEBFLOW_SITE_API_TOKEN"),p.error(`
|
|
63
|
+
To set up your credentials, run:`),p.error(" webflow auth login"),p.error(`
|
|
64
|
+
Alternatively, you can manually set these environment variables.`),process.exit(1)),e}xe();var Yu=e=>{let t=e.command("auth").description("Authentication and configuration commands");t.command("login").description("Authenticate with Webflow and save credentials to .env file").option("-f, --force","Force reauthentication even if credentials exist").action(async n=>{try{let r=xs();if(!n.force&&r){console.log("\u2705 Webflow credentials already exist in .env file:"),r.siteId&&console.log(` Site ID: ${r.siteId}`),console.log(" API Token: [hidden]"),console.log(`
|
|
65
|
+
Use --force flag to reauthenticate anyway.`);return}if(re()){console.log("\u274C No-input mode enabled. Aborting OAuth authentication.");return}console.log("\u{1F510} Starting Webflow authentication...");let o=await vn({clientId:vo,scope:ko});console.log("\u2705 Authentication successful!"),console.log("\u{1F4E1} Fetching your Webflow sites...");let i=await Do(o);i.length===0&&(console.error("\u274C No Webflow sites found in your account."),console.error("Please make sure you have at least one site in your Webflow account."),process.exit(1)),console.log(`Found ${i.length} site${i.length>1?"s":""} in your account.`);let s=await wo(i);console.log("\u{1F4BE} Saving credentials..."),wn({siteId:s.id,siteApiToken:o}),console.log(`
|
|
66
|
+
\u{1F389} Authentication complete!`),console.log(`\u2705 Connected to site: ${s.displayName}`),console.log(`\u2705 Site ID: ${s.id}`),console.log("\u2705 Credentials saved to .env file"),console.log(`
|
|
67
|
+
You can now use other Webflow CLI commands like 'webflow devlink sync'`)}catch(r){console.error("\u274C Authentication failed:"),console.error(r instanceof Error?r.message:r),process.exit(1)}}),t.command("telemetry").description("Manage telemetry settings for all Webflow CLI commands").option("--enable","Enable telemetry for all commands").option("--disable","Disable telemetry for all commands").option("--status","Show current telemetry status").action(async n=>{let r=Mt.getInstance();if(n.status){let s=await r.getTelemetryStatus();console.log(`
|
|
68
|
+
\u{1F4CA} Telemetry Status:`),console.log(` Enabled: ${s.enabled?"\u2705 Yes":"\u274C No"}`),console.log(` Source: ${s.source}`),console.log(` Has Preference: ${s.hasPreference?"\u2705 Yes":"\u274C No"}`);return}if(n.enable){await r.setGlobalPreference(!0),console.log("\u2705 Telemetry enabled for all Webflow CLI commands");return}if(n.disable){await r.setGlobalPreference(!1),console.log("\u274C Telemetry disabled for all Webflow CLI commands");return}let o=await r.getTelemetryStatus();if(console.log(`
|
|
69
|
+
\u{1F4CA} Current Telemetry Status:`),console.log(` Enabled: ${o.enabled?"\u2705 Yes":"\u274C No"}`),console.log(` Source: ${o.source}`),re()){console.log("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option.");return}let i=await Fe({message:"What would you like to do?",choices:[{name:"Enable telemetry for all commands",value:"enable"},{name:"Disable telemetry for all commands",value:"disable"},{name:"Cancel",value:"cancel"}]});i==="enable"?(await r.setGlobalPreference(!0),console.log("\u2705 Telemetry enabled for all Webflow CLI commands")):i==="disable"&&(await r.setGlobalPreference(!1),console.log("\u274C Telemetry disabled for all Webflow CLI commands"))})};var yc=D(require("http")),bc=D(require("node-fetch")),Dc=D(require("serve-handler")),wc=require("fs"),vc=D(require("path")),kc=require("commander");var Xu=D(require("archiver")),_s=require("commander"),_o=require("fs");var Ku=require("cosmiconfig"),Fs=require("commander"),xo=async(e,t)=>{let n=await ky(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Fs.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}}},ky=async e=>{let n=await(0,Ku.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Fs.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var Qu=D(require("mime-types")),Fo=D(require("path")),xy=5*1024*1024,Fy=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"]),ec=async(e,t,n)=>{let{config:r,filepath:o}=await xo(e,t),i=Fo.join(o,".."),s=!0,a=!1,u=c=>{let d=c.name,f=Qu.default.lookup(d);return d==="index.html"&&(a=!0),d&&d.endsWith(".DS_Store")||!f?!1:Fy.has(f)?c:(console.log(`Invalid file type: ${f} for file: ${d}`),s=!1,!1)},l=c=>{(0,_o.unlink)(n,d=>{d&&console.error(`Failed to delete file: ${d}`),_s.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let d=(0,Xu.default)("zip",{zlib:{level:9}}),f=(0,_o.createWriteStream)(Fo.join(i,n));f.on("close",()=>{c(void 0)}),d.directory(Fo.join(i,r.publicDir),!1,u),d.file(o,{name:t}),d.pipe(f),d.finalize(),d.on("warning",m=>{console.log(m)}),d.on("error",m=>{_s.program.error(m.message)}),d.on("finish",()=>{if(!a){l("Could not find index.html in your `publicDir`, all Designer Extension code needs to be inside of `publicDir`");return}if(!s){l("Bundling failed due to invalid file types");return}if(!d.pointer()||d.pointer()===0){l("Bundling failed with no output");return}if(d.pointer()>=xy){l("Bundling failed due to the bundle exceeding 5MB");return}console.log(`${d.pointer()} total bytes written`),console.log(`Done! ${n} is ready for you to upload to your Webflow app.`)})})};To();var Dt=D(require("fs")),Ee=D(require("path"));var xr="webflow.json",ac="index.html",lc="bundle.zip",Ts="public",As="extension-scaffolds",Ao="default",uc="./";var cc="package.json",dc="wf-placeholder-name",Os=e=>JSON.stringify(e,null,2),pc=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
|
|
63
70
|
\u2502 `+e+` \u2502
|
|
64
|
-
\u2570`+t+"\u256F"};var
|
|
65
|
-
`)},vy=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};var vo=require("@inquirer/prompts"),pc=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(lc),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(r,n)=>{let o=await wo(),i=Object.keys(o),s=await(0,vo.input)({message:"What would you like to name your Designer Extension?",default:r,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0}),a=await(0,vo.select)({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:n||"default"});await uc(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(cc),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(dc)};Na();var Yf=e=>{e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.").command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","Site API token. Default: value set in WEBFLOW_SITE_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").description("Sync your Webflow components to your filesystem.").action(La)};var wt=require("path"),Qa=require("@webflow/data-types");de();var Kf=D(require("md5"));function An(e,t,r){try{let n=new Blob([e]).size,o=Buffer.from(e,"utf-8");return{value:o,meta:{title:t.replace(/^.*[\\\/]/,""),fileHash:(0,Kf.default)(o),size:n,...r||{}}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Xf=D(require("node-fetch")),Qf=D(require("form-data"));async function Ma(e,t){let r={...t.fields,file:e.value},n=new Qf.default;Object.entries(r).forEach(([i,s])=>{n.append(i,s)});let o=await(0,Xf.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:n});kx(o)}function kx(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();Re();cr();var em=D(require("node-fetch"));de();function xx({workspaceApiToken:e=process.env.WEBFLOW_WORKSPACE_API_TOKEN,siteApiToken:t=process.env.WEBFLOW_SITE_API_TOKEN,siteId:r=process.env.WEBFLOW_SITE_ID,libraryTarget:n=process.env.WEBFLOW_LIBRARY_TARGET}){if(n==="site"){if(!t)throw new Error("No API token provided");if(!r)throw new Error("No site provided");return{baseUrl:`${Z}/beta/sites/${r}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${Z}/beta/workspaces`,authToken:e}}function Fx(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function _x(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 Dt({endpoint:e,method:t="GET",body:r,options:n}){let{baseUrl:o,authToken:i}=xx(n),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await(0,em.default)(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:Fx(r)});return await _x(a),a.json()}async function Ra({options:e}){return Dt({endpoint:"/code_libraries",options:e})}async function $a({name:e,description:t,slug:r,options:n}){return Dt({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:r},options:n})}async function za({resourceId:e,files:t,options:r}){return Dt({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:r})}async function Wa({resourceId:e,components:t,options:r}){return Dt({method:"POST",endpoint:`/code_library/${e}/share`,body:{components:t},options:r})}var _m=require("path"),Em=D(require("webpack-merge")),et=require("@webflow/data-types");function On(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,use:[{ident:"babel-loader",loader:require.resolve("babel-loader"),options:{presets:[require.resolve("@babel/preset-env"),[require.resolve("@babel/preset-react"),{runtime:"automatic"}],require.resolve("@babel/preset-typescript")]}}]}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var nm=require("webpack"),Va=D(require("mini-css-extract-plugin")),om=D(require("tsconfig-paths-webpack-plugin")),im=require("tsconfig-paths"),Ga=require("@webflow/data-types"),sm=require("path");de();var tm=D(require("postcss-selector-parser")),Ua=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,tm.default)(r=>{r.walkPseudos(n=>{n.value===":root"&&(n.value=":host")})}).processSync(t.selector)})}});Ua.postcss=!0;Ua.postcssPlugin="CSSinShadowDOM";var rm=Ua;function Ex(){return(0,im.loadConfig)(process.cwd()).resultType==="success"}function Pn({entry:e,env:t,mode:r="production",publicPath:n,libraryName:o,outputPath:i}){let s={module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:Va.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[rm]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new Va.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],mode:r,resolve:{plugins:[Ex()?new om.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Ga.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,sm.join)(process.cwd(),i,t):"/",publicPath:n,clean:!0,uniqueName:o},target:"web"};if(t===Ga.Environment.Server)return{...s,plugins:[...s.plugins,new nm.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:ko,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var am=require("@module-federation/enhanced"),qa=require("@webflow/data-types");function lm({libraryName:e,env:t,exposes:r}){if(t===qa.Environment.Client)return{plugins:[new am.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:r,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===qa.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}de();V();var cm=require("memfs/lib/volume"),In=require("@webflow/data-types");function um(e,t){let r=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
|
|
66
|
-
|
|
71
|
+
\u2570`+t+"\u256F"};var fc=async(e,t=uc,n=Ao,r)=>{let o=r[n];try{for(let i of o){let s=Ee.join(t,i),a=Oy(s,n,e);if(i.includes(cc)||i.includes(xr))await Ay(i,a,e);else{let u=await Dt.promises.readFile(i);await gc(a,u)}}}catch(i){console.error("Error writing file, ",i)}},mc=async()=>{let e={},t=Ee.resolve(__dirname),n=Ee.join(t,As),r=await Dt.promises.readdir(n);for(let o of r){let i=Ee.join(n,o),s=await hc(i);e[o]=s}return e},hc=async e=>{let t=[];try{let n=await Dt.promises.readdir(e);for(let r of n){let o=Ee.join(e,r);if((await Dt.promises.stat(o)).isDirectory()){let s=await hc(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Ee}, `,n)}return t},gc=async(e,t)=>{try{await Dt.promises.mkdir(Ee.dirname(e),{recursive:!0}),await Dt.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},Ay=async(e,t,n)=>Dt.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(dc,n);await gc(t,o)}),Oy=(e,t,n)=>{let r=Ee.join(As,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Ee.join(n,i)}return""};var Oo=async()=>await mc(),xc=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"')},Fc=async(e,t=Ao)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Oo();await fc(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},_c=()=>ec(Ts,xr,lc),Ec=async e=>{let{config:t,filepath:n}=await xo(Ts,xr),r=vc.join(n,"..",t.publicDir,ac),i=(await kn([],!0)).extensionTemplateDomain||"webflow-ext.com",s=t.apiVersion==="2"?"template/v2":"template",a=Object.keys(t.featureFlags||{}).map(m=>t.featureFlags?.[m]===!0?`ff_on=${m}`:`ff_off=${m}`).join("&"),u=a?`&${a}`:"",c=await(await(0,bc.default)(`https://${i}/${s}?name=${t.name}${u}`)).text(),d=new yc.Server((m,y)=>{if(m.url==="/"){wc.promises.readFile(r,{encoding:"utf-8"}).catch(k=>{kc.program.error(k.message)}).then(k=>{let R=c.replace("{{ui}}",k);return y.writeHead(200,{"Content-Length":Buffer.byteLength(R),"Content-Type":"text/html"}),y.end(R)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(Os(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(Os(t));(0,Dc.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=Py(e);d.listen(f),console.log(pc(`Serving your extension at http://localhost:${f}`)+`
|
|
72
|
+
`)},Py=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};Ne();var Cc=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(xc),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 Le({message:"What would you like to name your Designer Extension?",default:n,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0});s===null&&(console.error("When --no-input mode is enabled please provide the [projectName] argument."),process.exit(1));let a=await Fe({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:r||"default"});await Fc(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(_c),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(Ec)};qa();var dm=e=>{e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.").command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","Site API token. Default: value set in WEBFLOW_SITE_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").description("Sync your Webflow components to your filesystem.").action(Ga)};var we=D(require("fs")),me=D(require("path"));U();var li="astro",Ha="cloud-scaffolds";var pm="package.json",fm="webflow.json",mm="wf-placeholder-name",hm="CLOUD_MOUNT_PATH",gm="gitignore";var Ja=async(e,t,n=li,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let u=me.join(e,a.split(me.join(Ha,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),d=l||c;if(a.includes(pm)||a.includes(fm)){let m=(await we.promises.readFile(a,"utf8")).replace(mm,e);await ui(u,m)}else if(d){let f=await we.promises.readFile(a,"utf8");await ui(u,f.replace(hm,t))}else if(me.basename(u).toLowerCase()===gm){let f=await we.promises.readFile(a,"utf8"),m=me.join(me.dirname(u),".gitignore");await ui(m,f)}else{let f=await we.promises.readFile(a);await ui(u,f)}}catch(u){p.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{wn({siteId:o,siteApiToken:i,directory:e})}catch(a){p.error(`Error creating .env file: ${a}`)}}catch(s){throw p.error(`Error applying scaffold: ${s}`),s}},Za=async()=>{try{let e={},t=me.join(me.resolve(__dirname),Ha);if(!we.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await we.promises.readdir(t);for(let r of n)try{let o=me.join(t,r);e[r]=await ym(o)}catch(o){p.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw p.error(`Error getting available scaffolds: ${e}`),e}},ym=async e=>{let t=[];try{if(!we.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await we.promises.readdir(e);for(let r of n)try{let o=me.join(e,r);(await we.promises.stat(o)).isDirectory()?t.push(...await ym(o)):t.push(o)}catch(o){p.error(`Error processing path ${r}: ${o}`)}}catch(n){throw p.error(`Error reading directory ${e}: ${n}`),n}return t},ui=async(e,t)=>{try{await we.promises.mkdir(me.dirname(e),{recursive:!0}),await we.promises.writeFile(e,t)}catch(n){throw p.error(`Error writing file ${e}: ${n}`),n}};hn();fe();function Ix(e){return Je.forCloud({host:e.host||Z,authToken:e.authToken,siteId:e.siteId,projectId:e.projectId})}function ci(e){let t=Ix(e);return{service:t,handleError:mo(t),trackUsage:Ou(t),trackPerformance:ho(t),async trackProjectInit(n,r,o,i){await t.sendUsage("project_init",r,o,{scaffold:n,scaffoldName:n,mountPath:i?.mountPath,devlinkSyncStatus:i?.devlinkSyncStatus,totalDuration:i?.totalDuration})},async isEnabled(){return await t.isEnabled()},async promptForConsentIfNeeded(){return await t.promptForConsentIfNeeded("Help us improve Webflow Cloud by sharing usage data and error reports?")}}}async function Te(e,t,n,r,o,i){if(e)try{await e.service.sendUsage(t,n,r,o),i&&t.includes("_failure")&&await e.service.sendError(i instanceof Error?i:new Error(String(i)),t.replace(/_success$|_failure$/,""),{...o,argv:process.argv.slice(2)})}catch(s){console.debug(`Failed to send ${t} telemetry:`,s)}}var Et=D(require("fs")),Ya=D(require("path"));U();var di={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"}},pi=["nextjs","astro","remix"];async function bm(e=process.cwd()){let t=Ya.join(e,"package.json"),n=Ya.join(e,"webflow.json");if(!Et.existsSync(t))throw new Error("No package.json file found");let r=null;if(Et.existsSync(n))try{let i=JSON.parse(Et.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!di[i]){let s=Object.keys(di).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!pi.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${pi.join(", ")}`);r=i,p.info(`Using framework type from webflow.json: ${r}`)}else throw new Error("webflow.json exists but doesn't contain valid framework information under the 'cloud' key")}catch(o){throw o instanceof SyntaxError?new Error("webflow.json contains invalid JSON"):o}if(!r)try{let o=JSON.parse(Et.readFileSync(t,"utf8"));for(let s of pi){let u=di[s].package_identifier;if(o.dependencies?.[u]||o.devDependencies?.[u]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${pi.join(", ")} are currently supported.`);p.info(`Detected framework: ${r}`),Et.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:di[r]}}var S=D(require("fs")),B=D(require("path")),Gn=require("child_process"),zm=D(require("tar"));var te=D(require("fs")),ye=D(require("path"));var H={};Fl(H,{BRAND:()=>i1,DIRTY:()=>Ht,EMPTY_PATH:()=>Nx,INVALID:()=>I,NEVER:()=>U1,OK:()=>de,ParseStatus:()=>ue,Schema:()=>M,ZodAny:()=>Tt,ZodArray:()=>ut,ZodBigInt:()=>Zt,ZodBoolean:()=>Yt,ZodBranded:()=>$r,ZodCatch:()=>ln,ZodDate:()=>Kt,ZodDefault:()=>an,ZodDiscriminatedUnion:()=>hi,ZodEffects:()=>Pe,ZodEnum:()=>on,ZodError:()=>he,ZodFirstPartyTypeKind:()=>j,ZodFunction:()=>yi,ZodIntersection:()=>tn,ZodIssueCode:()=>b,ZodLazy:()=>nn,ZodLiteral:()=>rn,ZodMap:()=>$n,ZodNaN:()=>Wn,ZodNativeEnum:()=>sn,ZodNever:()=>Ue,ZodNull:()=>Qt,ZodNullable:()=>et,ZodNumber:()=>Jt,ZodObject:()=>ge,ZodOptional:()=>Ae,ZodParsedType:()=>x,ZodPipeline:()=>zr,ZodPromise:()=>At,ZodReadonly:()=>un,ZodRecord:()=>gi,ZodSchema:()=>M,ZodSet:()=>zn,ZodString:()=>St,ZodSymbol:()=>Mn,ZodTransformer:()=>Pe,ZodTuple:()=>Qe,ZodType:()=>M,ZodUndefined:()=>Xt,ZodUnion:()=>en,ZodUnknown:()=>lt,ZodVoid:()=>Rn,addIssueToContext:()=>w,any:()=>m1,array:()=>b1,bigint:()=>u1,boolean:()=>Tm,coerce:()=>W1,custom:()=>Em,date:()=>c1,datetimeRegex:()=>Fm,defaultErrorMap:()=>st,discriminatedUnion:()=>k1,effect:()=>j1,enum:()=>O1,function:()=>S1,getErrorMap:()=>Bn,getParsedType:()=>Xe,instanceof:()=>a1,intersection:()=>x1,isAborted:()=>fi,isAsync:()=>Ln,isDirty:()=>mi,isValid:()=>Ct,late:()=>s1,lazy:()=>T1,literal:()=>A1,makeIssue:()=>Rr,map:()=>E1,nan:()=>l1,nativeEnum:()=>P1,never:()=>g1,null:()=>f1,nullable:()=>L1,number:()=>Sm,object:()=>D1,objectUtil:()=>Ka,oboolean:()=>z1,onumber:()=>$1,optional:()=>B1,ostring:()=>R1,pipeline:()=>M1,preprocess:()=>N1,promise:()=>I1,quotelessJson:()=>jx,record:()=>_1,set:()=>C1,setErrorMap:()=>Lx,strictObject:()=>w1,string:()=>Cm,symbol:()=>d1,transformer:()=>j1,tuple:()=>F1,undefined:()=>p1,union:()=>v1,unknown:()=>h1,util:()=>z,void:()=>y1});var z;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(z||(z={}));var Ka;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ka||(Ka={}));var x=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xe=e=>{switch(typeof e){case"undefined":return x.undefined;case"string":return x.string;case"number":return Number.isNaN(e)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":return Array.isArray(e)?x.array:e===null?x.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?x.promise:typeof Map<"u"&&e instanceof Map?x.map:typeof Set<"u"&&e instanceof Set?x.set:typeof Date<"u"&&e instanceof Date?x.date:x.object;default:return x.unknown}};var b=z.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),jx=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),he=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,z.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};he.create=e=>new he(e);var Bx=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===x.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,z.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${z.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${z.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${z.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:n="Invalid function arguments";break;case b.invalid_return_type:n="Invalid function return type";break;case b.invalid_date:n="Invalid date";break;case b.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:z.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case b.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case b.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case b.custom:n="Invalid input";break;case b.invalid_intersection_types:n="Intersection results could not be merged";break;case b.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:n="Number must be finite";break;default:n=t.defaultError,z.assertNever(e)}return{message:n}},st=Bx;var Dm=st;function Lx(e){Dm=e}function Bn(){return Dm}var Rr=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",u=r.filter(l=>!!l).slice().reverse();for(let l of u)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},Nx=[];function w(e,t){let n=Bn(),r=Rr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===st?void 0:st].filter(o=>!!o)});e.common.issues.push(r)}var ue=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 I;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 I;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}}},I=Object.freeze({status:"aborted"}),Ht=e=>({status:"dirty",value:e}),de=e=>({status:"valid",value:e}),fi=e=>e.status==="aborted",mi=e=>e.status==="dirty",Ct=e=>e.status==="valid",Ln=e=>typeof Promise<"u"&&e instanceof Promise;var E;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(E||(E={}));var Oe=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},wm=(e,t)=>{if(Ct(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new he(e.common.issues);return this._error=n,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:u??n??a.defaultError}},description:o}}var M=class{get description(){return this._def.description}_getType(t){return Xe(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Xe(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ue,ctx:{common:t.parent.common,data:t.data,parsedType:Xe(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Ln(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:Xe(t)},o=this._parseSync({data:t,path:r.path,parent:r});return wm(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xe(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Ct(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Ct(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xe(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(Ln(o)?o:Promise.resolve(o));return wm(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:b.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>u?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Pe({schema:this,typeName:j.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ae.create(this,this._def)}nullable(){return et.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ut.create(this)}promise(){return At.create(this,this._def)}or(t){return en.create([this,t],this._def)}and(t){return tn.create(this,t,this._def)}transform(t){return new Pe({...N(this._def),schema:this,typeName:j.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new an({...N(this._def),innerType:this,defaultValue:n,typeName:j.ZodDefault})}brand(){return new $r({typeName:j.ZodBranded,type:this,...N(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new ln({...N(this._def),innerType:this,catchValue:n,typeName:j.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return zr.create(this,t)}readonly(){return un.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Mx=/^c[^\s-]{8,}$/i,Rx=/^[0-9a-z]+$/,$x=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zx=/^[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,Wx=/^[a-z0-9_-]{21}$/i,Ux=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Vx=/^[-+]?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)?)??$/,Gx=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,qx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Xa,Hx=/^(?:(?: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])$/,Jx=/^(?:(?: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])$/,Zx=/^(([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]))$/,Yx=/^(([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])$/,Kx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Xx=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,km="((\\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])))",Qx=new RegExp(`^${km}$`);function xm(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function e1(e){return new RegExp(`^${xm(e)}$`)}function Fm(e){let t=`${km}T${xm(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function t1(e,t){return!!((t==="v4"||!t)&&Hx.test(e)||(t==="v6"||!t)&&Zx.test(e))}function n1(e,t){if(!Ux.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 r1(e,t){return!!((t==="v4"||!t)&&Jx.test(e)||(t==="v6"||!t)&&Yx.test(e))}var St=class e extends M{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==x.string){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.string,received:i.parsedType}),I}let r=new ue,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")Gx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Xa||(Xa=new RegExp(qx,"u")),Xa.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")zx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")Wx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Mx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Rx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")$x.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ulid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),w(o,{validation:"url",code:b.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"regex",code:b.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Fm(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?Qx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?e1(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Vx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?t1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?n1(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?r1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?Kx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?Xx.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):z.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:b.invalid_string,...E.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...E.errToObj(t)})}url(t){return this._addCheck({kind:"url",...E.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...E.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...E.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...E.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...E.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...E.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...E.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...E.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...E.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...E.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...E.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...E.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,...E.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,...E.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...E.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...E.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...E.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...E.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...E.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...E.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...E.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...E.errToObj(n)})}nonempty(t){return this.min(1,E.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};St.create=e=>new St({checks:[],typeName:j.ZodString,coerce:e?.coerce??!1,...N(e)});function o1(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Jt=class e extends M{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==x.number){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.number,received:i.parsedType}),I}let r,o=new ue;for(let i of this._def.checks)i.kind==="int"?z.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?o1(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_finite,message:i.message}),o.dirty()):z.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,E.toString(n))}gt(t,n){return this.setLimit("min",t,!1,E.toString(n))}lte(t,n){return this.setLimit("max",t,!0,E.toString(n))}lt(t,n){return this.setLimit("max",t,!1,E.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:E.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:E.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:E.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:E.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:E.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:E.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:E.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:E.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:E.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:E.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&z.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Jt.create=e=>new Jt({checks:[],typeName:j.ZodNumber,coerce:e?.coerce||!1,...N(e)});var Zt=class e extends M{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==x.bigint)return this._getInvalidInput(t);let r,o=new ue;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):z.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.bigint,received:n.parsedType}),I}gte(t,n){return this.setLimit("min",t,!0,E.toString(n))}gt(t,n){return this.setLimit("min",t,!1,E.toString(n))}lte(t,n){return this.setLimit("max",t,!0,E.toString(n))}lt(t,n){return this.setLimit("max",t,!1,E.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:E.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:E.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:E.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:E.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:E.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:E.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Zt.create=e=>new Zt({checks:[],typeName:j.ZodBigInt,coerce:e?.coerce??!1,...N(e)});var Yt=class extends M{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==x.boolean){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.boolean,received:r.parsedType}),I}return de(t.data)}};Yt.create=e=>new Yt({typeName:j.ZodBoolean,coerce:e?.coerce||!1,...N(e)});var Kt=class e extends M{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==x.date){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.date,received:i.parsedType}),I}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),I}let r=new ue,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):z.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:E.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:E.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Kt.create=e=>new Kt({checks:[],coerce:e?.coerce||!1,typeName:j.ZodDate,...N(e)});var Mn=class extends M{_parse(t){if(this._getType(t)!==x.symbol){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.symbol,received:r.parsedType}),I}return de(t.data)}};Mn.create=e=>new Mn({typeName:j.ZodSymbol,...N(e)});var Xt=class extends M{_parse(t){if(this._getType(t)!==x.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.undefined,received:r.parsedType}),I}return de(t.data)}};Xt.create=e=>new Xt({typeName:j.ZodUndefined,...N(e)});var Qt=class extends M{_parse(t){if(this._getType(t)!==x.null){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.null,received:r.parsedType}),I}return de(t.data)}};Qt.create=e=>new Qt({typeName:j.ZodNull,...N(e)});var Tt=class extends M{constructor(){super(...arguments),this._any=!0}_parse(t){return de(t.data)}};Tt.create=e=>new Tt({typeName:j.ZodAny,...N(e)});var lt=class extends M{constructor(){super(...arguments),this._unknown=!0}_parse(t){return de(t.data)}};lt.create=e=>new lt({typeName:j.ZodUnknown,...N(e)});var Ue=class extends M{_parse(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.never,received:n.parsedType}),I}};Ue.create=e=>new Ue({typeName:j.ZodNever,...N(e)});var Rn=class extends M{_parse(t){if(this._getType(t)!==x.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.void,received:r.parsedType}),I}return de(t.data)}};Rn.create=e=>new Rn({typeName:j.ZodVoid,...N(e)});var ut=class e extends M{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==x.array)return w(n,{code:b.invalid_type,expected:x.array,received:n.parsedType}),I;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(w(n,{code:s?b.too_big:b.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(w(n,{code:b.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(w(n,{code:b.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Oe(n,s,n.path,a)))).then(s=>ue.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Oe(n,s,n.path,a)));return ue.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:E.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:E.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:E.toString(n)}})}nonempty(t){return this.min(1,t)}};ut.create=(e,t)=>new ut({type:e,minLength:null,maxLength:null,exactLength:null,typeName:j.ZodArray,...N(t)});function Nn(e){if(e instanceof ge){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Ae.create(Nn(r))}return new ge({...e._def,shape:()=>t})}else return e instanceof ut?new ut({...e._def,type:Nn(e.element)}):e instanceof Ae?Ae.create(Nn(e.unwrap())):e instanceof et?et.create(Nn(e.unwrap())):e instanceof Qe?Qe.create(e.items.map(t=>Nn(t))):e}var ge=class e extends M{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=z.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==x.object){let l=this._getOrReturnCtx(t);return w(l,{code:b.invalid_type,expected:x.object,received:l.parsedType}),I}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ue&&this._def.unknownKeys==="strip"))for(let l in o.data)s.includes(l)||a.push(l);let u=[];for(let l of s){let c=i[l],d=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Oe(o,d,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Ue){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(l==="strict")a.length>0&&(w(o,{code:b.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let d=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Oe(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let d=await c.key,f=await c.value;l.push({key:d,value:f,alwaysSet:c.alwaysSet})}return l}).then(l=>ue.mergeObjectSync(r,l)):ue.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return E.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:E.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:j.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of z.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of z.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Nn(this)}partial(t){let n={};for(let r of z.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of z.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ae;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return _m(z.objectKeys(this.shape))}};ge.create=(e,t)=>new ge({shape:()=>e,unknownKeys:"strip",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});ge.strictCreate=(e,t)=>new ge({shape:()=>e,unknownKeys:"strict",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});ge.lazycreate=(e,t)=>new ge({shape:e,unknownKeys:"strip",catchall:Ue.create(),typeName:j.ZodObject,...N(t)});var en=class extends M{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new he(a.ctx.common.issues));return w(n,{code:b.invalid_union,unionErrors:s}),I}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let u of r){let l={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(u=>new he(u));return w(n,{code:b.invalid_union,unionErrors:a}),I}}get options(){return this._def.options}};en.create=(e,t)=>new en({options:e,typeName:j.ZodUnion,...N(t)});var at=e=>e instanceof nn?at(e.schema):e instanceof Pe?at(e.innerType()):e instanceof rn?[e.value]:e instanceof on?e.options:e instanceof sn?z.objectValues(e.enum):e instanceof an?at(e._def.innerType):e instanceof Xt?[void 0]:e instanceof Qt?[null]:e instanceof Ae?[void 0,...at(e.unwrap())]:e instanceof et?[null,...at(e.unwrap())]:e instanceof $r||e instanceof un?at(e.unwrap()):e instanceof ln?at(e._def.innerType):[],hi=class e extends M{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==x.object)return w(n,{code:b.invalid_type,expected:x.object,received:n.parsedType}),I;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(w(n,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),I)}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=at(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new e({typeName:j.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...N(r)})}};function Qa(e,t){let n=Xe(e),r=Xe(t);if(e===t)return{valid:!0,data:e};if(n===x.object&&r===x.object){let o=z.objectKeys(t),i=z.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=Qa(e[a],t[a]);if(!u.valid)return{valid:!1};s[a]=u.data}return{valid:!0,data:s}}else if(n===x.array&&r===x.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],u=Qa(s,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===x.date&&r===x.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var tn=class extends M{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(fi(i)||fi(s))return I;let a=Qa(i.value,s.value);return a.valid?((mi(i)||mi(s))&&n.dirty(),{status:n.value,value:a.data}):(w(r,{code:b.invalid_intersection_types}),I)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};tn.create=(e,t,n)=>new tn({left:e,right:t,typeName:j.ZodIntersection,...N(n)});var Qe=class e extends M{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==x.array)return w(r,{code:b.invalid_type,expected:x.array,received:r.parsedType}),I;if(r.data.length<this._def.items.length)return w(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),I;!this._def.rest&&r.data.length>this._def.items.length&&(w(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Oe(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>ue.mergeArray(n,s)):ue.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Qe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qe({items:e,typeName:j.ZodTuple,rest:null,...N(t)})};var gi=class e extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==x.object)return w(r,{code:b.invalid_type,expected:x.object,received:r.parsedType}),I;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Oe(r,a,r.path,a)),value:s._parse(new Oe(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ue.mergeObjectAsync(n,o):ue.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof M?new e({keyType:t,valueType:n,typeName:j.ZodRecord,...N(r)}):new e({keyType:St.create(),valueType:t,typeName:j.ZodRecord,...N(n)})}},$n=class extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==x.map)return w(r,{code:b.invalid_type,expected:x.map,received:r.parsedType}),I;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Oe(r,a,r.path,[l,"key"])),value:i._parse(new Oe(r,u,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of s){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return I;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let u of s){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return I;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}}}};$n.create=(e,t,n)=>new $n({valueType:t,keyType:e,typeName:j.ZodMap,...N(n)});var zn=class e extends M{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==x.set)return w(r,{code:b.invalid_type,expected:x.set,received:r.parsedType}),I;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(w(r,{code:b.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(w(r,{code:b.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(u){let l=new Set;for(let c of u){if(c.status==="aborted")return I;c.status==="dirty"&&n.dirty(),l.add(c.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((u,l)=>i._parse(new Oe(r,u,r.path,l)));return r.common.async?Promise.all(a).then(u=>s(u)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:E.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:E.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};zn.create=(e,t)=>new zn({valueType:e,minSize:null,maxSize:null,typeName:j.ZodSet,...N(t)});var yi=class e extends M{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==x.function)return w(n,{code:b.invalid_type,expected:x.function,received:n.parsedType}),I;function r(a,u){return Rr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Bn(),st].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return Rr({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Bn(),st].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:u}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof At){let a=this;return de(async function(...u){let l=new he([]),c=await a._def.args.parseAsync(u,i).catch(m=>{throw l.addIssue(r(u,m)),l}),d=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(d,i).catch(m=>{throw l.addIssue(o(d,m)),l})})}else{let a=this;return de(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new he([r(u,l.error)]);let c=Reflect.apply(s,this,l.data),d=a._def.returns.safeParse(c,i);if(!d.success)throw new he([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Qe.create(t).rest(lt.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||Qe.create([]).rest(lt.create()),returns:n||lt.create(),typeName:j.ZodFunction,...N(r)})}},nn=class extends M{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};nn.create=(e,t)=>new nn({getter:e,typeName:j.ZodLazy,...N(t)});var rn=class extends M{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return w(n,{received:n.data,code:b.invalid_literal,expected:this._def.value}),I}return{status:"valid",value:t.data}}get value(){return this._def.value}};rn.create=(e,t)=>new rn({value:e,typeName:j.ZodLiteral,...N(t)});function _m(e,t){return new on({values:e,typeName:j.ZodEnum,...N(t)})}var on=class e extends M{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{expected:z.joinValues(r),received:n.parsedType,code:b.invalid_type}),I}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{received:n.data,code:b.invalid_enum_value,options:r}),I}return de(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};on.create=_m;var sn=class extends M{_parse(t){let n=z.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==x.string&&r.parsedType!==x.number){let o=z.objectValues(n);return w(r,{expected:z.joinValues(o),received:r.parsedType,code:b.invalid_type}),I}if(this._cache||(this._cache=new Set(z.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=z.objectValues(n);return w(r,{received:r.data,code:b.invalid_enum_value,options:o}),I}return de(t.data)}get enum(){return this._def.values}};sn.create=(e,t)=>new sn({values:e,typeName:j.ZodNativeEnum,...N(t)});var At=class extends M{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==x.promise&&n.common.async===!1)return w(n,{code:b.invalid_type,expected:x.promise,received:n.parsedType}),I;let r=n.parsedType===x.promise?n.data:Promise.resolve(n.data);return de(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};At.create=(e,t)=>new At({type:e,typeName:j.ZodPromise,...N(t)});var Pe=class extends M{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{w(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return I;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?I:u.status==="dirty"?Ht(u.value):n.value==="dirty"?Ht(u.value):u});{if(n.value==="aborted")return I;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?I:a.status==="dirty"?Ht(a.value):n.value==="dirty"?Ht(a.value):a}}if(o.type==="refinement"){let s=a=>{let u=o.refinement(a,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?I:(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"?I:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ct(s))return I;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Ct(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):I);z.assertNever(o)}};Pe.create=(e,t,n)=>new Pe({schema:e,typeName:j.ZodEffects,effect:t,...N(n)});Pe.createWithPreprocess=(e,t,n)=>new Pe({schema:t,effect:{type:"preprocess",transform:e},typeName:j.ZodEffects,...N(n)});var Ae=class extends M{_parse(t){return this._getType(t)===x.undefined?de(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ae.create=(e,t)=>new Ae({innerType:e,typeName:j.ZodOptional,...N(t)});var et=class extends M{_parse(t){return this._getType(t)===x.null?de(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};et.create=(e,t)=>new et({innerType:e,typeName:j.ZodNullable,...N(t)});var an=class extends M{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===x.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};an.create=(e,t)=>new an({innerType:e,typeName:j.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...N(t)});var ln=class extends M{_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 Ln(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new he(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new he(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};ln.create=(e,t)=>new ln({innerType:e,typeName:j.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...N(t)});var Wn=class extends M{_parse(t){if(this._getType(t)!==x.nan){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.nan,received:r.parsedType}),I}return{status:"valid",value:t.data}}};Wn.create=e=>new Wn({typeName:j.ZodNaN,...N(e)});var i1=Symbol("zod_brand"),$r=class extends M{_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}},zr=class e extends M{_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"?I:i.status==="dirty"?(n.dirty(),Ht(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?I:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:j.ZodPipeline})}},un=class extends M{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Ct(o)&&(o.value=Object.freeze(o.value)),o);return Ln(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};un.create=(e,t)=>new un({innerType:e,typeName:j.ZodReadonly,...N(t)});function vm(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Em(e,t={},n){return e?Tt.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=vm(t,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=vm(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Tt.create()}var s1={object:ge.lazycreate},j;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(j||(j={}));var a1=(e,t={message:`Input not instance of ${e.name}`})=>Em(n=>n instanceof e,t),Cm=St.create,Sm=Jt.create,l1=Wn.create,u1=Zt.create,Tm=Yt.create,c1=Kt.create,d1=Mn.create,p1=Xt.create,f1=Qt.create,m1=Tt.create,h1=lt.create,g1=Ue.create,y1=Rn.create,b1=ut.create,D1=ge.create,w1=ge.strictCreate,v1=en.create,k1=hi.create,x1=tn.create,F1=Qe.create,_1=gi.create,E1=$n.create,C1=zn.create,S1=yi.create,T1=nn.create,A1=rn.create,O1=on.create,P1=sn.create,I1=At.create,j1=Pe.create,B1=Ae.create,L1=et.create,N1=Pe.createWithPreprocess,M1=zr.create,R1=()=>Cm().optional(),$1=()=>Sm().optional(),z1=()=>Tm().optional(),W1={string:e=>St.create({...e,coerce:!0}),number:e=>Jt.create({...e,coerce:!0}),boolean:e=>Yt.create({...e,coerce:!0}),bigint:e=>Zt.create({...e,coerce:!0}),date:e=>Kt.create({...e,coerce:!0})};var U1=I;function bi(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,u=0,l=0,c=0,d=0;function f(F,C){let V=0,$=0;for(;V<F||!C;){let _=e.charCodeAt(r);if(_>=48&&_<=57)$=$*16+_-48;else if(_>=65&&_<=70)$=$*16+_-65+10;else if(_>=97&&_<=102)$=$*16+_-97+10;else break;r++,V++}return V<F&&($=-1),$}function m(F){r=F,o="",i=0,s=16,d=0}function y(){let F=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Un(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Un(e.charCodeAt(r)))for(r++;r<e.length&&Un(e.charCodeAt(r));)r++;else return d=3,e.substring(F,r);let C=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&&Un(e.charCodeAt(r))){for(r++;r<e.length&&Un(e.charCodeAt(r));)r++;C=r}else d=3;return e.substring(F,C)}function k(){let F="",C=r;for(;;){if(r>=n){F+=e.substring(C,r),d=2;break}let V=e.charCodeAt(r);if(V===34){F+=e.substring(C,r),r++;break}if(V===92){if(F+=e.substring(C,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:F+='"';break;case 92:F+="\\";break;case 47:F+="/";break;case 98:F+="\b";break;case 102:F+="\f";break;case 110:F+=`
|
|
73
|
+
`;break;case 114:F+="\r";break;case 116:F+=" ";break;case 117:let _=f(4,!0);_>=0?F+=String.fromCharCode(_):d=4;break;default:d=5}C=r;continue}if(V>=0&&V<=31)if(Wr(V)){F+=e.substring(C,r),d=2;break}else d=6;r++}return F}function R(){if(o="",d=0,i=r,u=a,c=l,r>=n)return i=n,s=17;let F=e.charCodeAt(r);if(el(F)){do r++,o+=String.fromCharCode(F),F=e.charCodeAt(r);while(el(F));return s=15}if(Wr(F))return r++,o+=String.fromCharCode(F),F===13&&e.charCodeAt(r)===10&&(r++,o+=`
|
|
74
|
+
`),a++,l=r,s=14;switch(F){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=k(),s=10;case 47:let C=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Wr(e.charCodeAt(r));)r++;return o=e.substring(C,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let V=n-1,$=!1;for(;r<V;){let _=e.charCodeAt(r);if(_===42&&e.charCodeAt(r+1)===47){r+=2,$=!0;break}r++,Wr(_)&&(_===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return $||(r++,d=1),o=e.substring(C,r),s=13}return o+=String.fromCharCode(F),r++,s=16;case 45:if(o+=String.fromCharCode(F),r++,r===n||!Un(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&&T(F);)r++,F=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(F),r++,s=16}}function T(F){if(el(F)||Wr(F))return!1;switch(F){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function W(){let F;do F=R();while(F>=12&&F<=15);return F}return{setPosition:m,getPosition:()=>r,scan:t?W:R,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>d}}function el(e){return e===32||e===9}function Wr(e){return e===10||e===13}function Un(e){return e>=48&&e<=57}var Am;(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"})(Am||(Am={}));var G1=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Vn=200,q1={" ":{"\n":new Array(Vn).fill(0).map((e,t)=>`
|
|
75
|
+
`+" ".repeat(t)),"\r":new Array(Vn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Vn).fill(0).map((e,t)=>`\r
|
|
76
|
+
`+" ".repeat(t))}," ":{"\n":new Array(Vn).fill(0).map((e,t)=>`
|
|
77
|
+
`+" ".repeat(t)),"\r":new Array(Vn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Vn).fill(0).map((e,t)=>`\r
|
|
78
|
+
`+" ".repeat(t))}};var Di;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Di||(Di={}));function Om(e,t=[],n=Di.DEFAULT){let r=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):r!==null&&(o[r]=u)}return Pm(e,{onObjectBegin:()=>{let u={};s(u),i.push(o),o=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let u=[];s(u),i.push(o),o=u,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},n),o[0]}function Pm(e,t,n=Di.DEFAULT){let r=bi(e,!1),o=[],i=0;function s(L){return L?()=>i===0&&L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(L){return L?Y=>i===0&&L(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(L){return L?Y=>i===0&&L(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(L){return L?()=>{i>0?i++:L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(L){return L?()=>{i>0&&i--,i===0&&L(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let d=l(t.onObjectBegin),f=u(t.onObjectProperty),m=c(t.onObjectEnd),y=l(t.onArrayBegin),k=c(t.onArrayEnd),R=u(t.onLiteralValue),T=a(t.onSeparator),W=s(t.onComment),F=a(t.onError),C=n&&n.disallowComments,V=n&&n.allowTrailingComma;function $(){for(;;){let L=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:C||_(11);break;case 2:_(12);break;case 6:_(16);break}switch(L){case 12:case 13:C?_(10):W();break;case 16:_(1);break;case 15:case 14:break;default:return L}}}function _(L,Y=[],dt=[]){if(F(L),Y.length+dt.length>0){let Xr=r.getToken();for(;Xr!==17;){if(Y.indexOf(Xr)!==-1){$();break}else if(dt.indexOf(Xr)!==-1)break;Xr=$()}}}function h(L){let Y=r.getTokenValue();return L?R(Y):(f(Y),o.push(Y)),$(),!0}function g(){switch(r.getToken()){case 11:let L=r.getTokenValue(),Y=Number(L);isNaN(Y)&&(_(2),Y=0),R(Y);break;case 7:R(null);break;case 8:R(!0);break;case 9:R(!1);break;default:return!1}return $(),!0}function P(){return r.getToken()!==10?(_(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(T(":"),$(),Ie()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function v(){d(),$();let L=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(L||_(4,[],[]),T(","),$(),r.getToken()===2&&V)break}else L&&_(6,[],[]);P()||_(4,[],[2,5]),L=!0}return m(),r.getToken()!==2?_(7,[2],[]):$(),!0}function ie(){y(),$();let L=!0,Y=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(Y||_(4,[],[]),T(","),$(),r.getToken()===4&&V)break}else Y&&_(6,[],[]);L?(o.push(0),L=!1):o[o.length-1]++,Ie()||_(4,[],[4,5]),Y=!0}return k(),L||o.pop(),r.getToken()!==4?_(8,[4],[]):$(),!0}function Ie(){switch(r.getToken()){case 3:return ie();case 1:return v();case 10:return h(!0);default:return g()}}return $(),r.getToken()===17?n.allowEmptyContent?!0:(_(4,[],[]),!1):Ie()?(r.getToken()!==17&&_(9,[],[]),!0):(_(4,[],[]),!1)}var Im;(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"})(Im||(Im={}));var jm;(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"})(jm||(jm={}));var tl=Om;var Bm;(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"})(Bm||(Bm={}));U();var Lm=H.object({name:H.string(),main:H.string(),compatibility_date:H.string(),compatibility_flags:H.array(H.string()).optional(),placement:H.object({mode:H.string()}).passthrough().optional(),assets:H.object({directory:H.string(),binding:H.string().optional()}).passthrough().optional(),d1_databases:H.array(H.object({database_name:H.string(),database_id:H.string(),binding:H.string(),migrations_dir:H.string().optional()}).passthrough()).default([]),kv_namespaces:H.array(H.object({binding:H.string(),id:H.string()}).passthrough()).default([]),r2_buckets:H.array(H.object({binding:H.string(),bucket_name:H.string()}).passthrough()).default([])}).passthrough();function Nm(e,t="wrangler.json"){let n=ye.join(e,t);if(!te.existsSync(n)){if(t.endsWith(".json"))return p.warn(`/${t} not found, checking for /${t}c`),Nm(e,t+"c");p.warn(`/${t} not found`);return}let r=te.readFileSync(n,"utf8");p.info(`reading /${t}...`);let o;try{o=tl(r)}catch(i){p.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Lm.parse(o);return p.info(`successfully loaded /${t}`),i}catch(i){p.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function Mm(e,t,n={}){if(!te.existsSync(e))return 0;te.mkdirSync(t,{recursive:!0});let r=te.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=ye.join(e,i.name),a=ye.join(t,i.name);i.isDirectory()?o+=Mm(s,a,n):(te.copyFileSync(s,a),o++)}return o}async function Rm(e,t){let n=null,r=null,o=ye.join(t,"wrangler.json"),i=ye.join(t,"wrangler.jsonc");te.existsSync(o)?(n=o,r=".json"):te.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(p.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),te.copyFileSync(n,ye.join(t,`clouduser.wrangler${r}`)));let s=n?Nm(t,ye.basename(n)):null,a=ye.join(__dirname,e.config.wrangler_template_path),u=ye.join(t,"wrangler.json");if(!te.existsSync(a))throw new Error(`Wrangler template not found at ${a}. Make sure the template is properly copied during build.`);if(p.info(`copying template /templates/${e.framework}/wrangler.${e.framework}.json to /wrangler.json`),te.copyFileSync(a,u),!s)return;let l=JSON.parse(te.readFileSync(u,"utf8"));if(s.kv_namespaces&&s.kv_namespaces.length>0&&(l.kv_namespaces=s.kv_namespaces,p.info(`merged ${s.kv_namespaces.length} KV namespace(s) into template`)),s.r2_buckets&&s.r2_buckets.length>0&&(l.r2_buckets=s.r2_buckets,p.info(`merged ${s.r2_buckets.length} R2 bucket(s) into template`)),s.d1_databases&&s.d1_databases.length>0&&(l.d1_databases=s.d1_databases,p.info(`merged ${s.d1_databases.length} D1 database(s) into template`)),te.writeFileSync(u,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let c in s.d1_databases){let d=s.d1_databases[c];if(!d.migrations_dir){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir is not defined`);continue}let f=d.migrations_dir,m=ye.join(t,f);if(!te.existsSync(m)){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=ye.join(t,"clouduser","migrations",f),k=Mm(m,y);k>0?p.info(`copied ${k} migrations to /clouduser/migrations/${f}`):p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function eF(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 $m(e){let t=null;for(let i of[".json",".jsonc"]){let s=ye.join(e,`clouduser.wrangler${i}`);if(te.existsSync(s)){t=s;break}}if(!t)return;let n=te.readFileSync(t,"utf8"),r;try{r=tl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Lm.parse(r);if(o.d1_databases&&o.d1_databases.length>0&&o.d1_databases.length>5)throw new Error(`Too many D1 databases configured: ${o.d1_databases.length}. Maximum allowed is 5.`);if(o.kv_namespaces&&o.kv_namespaces.length>0&&o.kv_namespaces.length>5)throw new Error(`Too many KV namespaces configured: ${o.kv_namespaces.length}. Maximum allowed is 5.`);if(o.r2_buckets&&o.r2_buckets.length>0){if(o.r2_buckets.length>5)throw new Error(`Too many R2 buckets configured: ${o.r2_buckets.length}. Maximum allowed is 5.`);p.info(`validating ${o.r2_buckets.length} object storage bucket name(s)...`);for(let i of o.r2_buckets)eF(i.bucket_name)}}U();tr();async function Wm(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=B.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||B.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=rl(n);await Te(t.telemetry,"cloud_build_start",!0,0,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),S.mkdirSync(o,{recursive:!0});try{p.info(Q.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
|
|
79
|
+
`)),await tF(n,e.framework,t.telemetry),p.info(Q.green(`--- \u{1F527} Setting up framework configuration ----------------------
|
|
80
|
+
`)),await nF(n,e,s,t.deployUrl,t.environmentId),p.info(Q.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
|
|
81
|
+
`)),await Rm(e,n),$m(n),p.info(Q.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
|
|
82
|
+
`)),p.info(`running ${e.config.build_command}...`),await rF(n,e.config.build_command,t.telemetry),p.info(Q.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
|
|
83
|
+
`)),await oF(n,i),p.info(Q.green(`--- \u{1F4C1} Copying assets ------------------------------------------
|
|
84
|
+
`)),await iF(n,i,e,s),p.info(Q.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
|
|
85
|
+
`));let l=await sF(i),c=Date.now()-a;return p.info(`\u2705 Build completed in ${(c/1e3).toFixed(1)}s`),await Te(t.telemetry,"cloud_build_success",!0,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),l}catch(l){let c=Date.now()-a;throw await Te(t.telemetry,"cloud_build_failure",!1,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l))),l}}function rl(e){let t=B.join(e,"wrangler.json");if(!S.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(S.readFileSync(t,"utf8")),r=n.kv_namespaces||[],o=n.d1_databases||[],i=n.r2_buckets||[],s=n.vars||{};return{hasKV:r.length>0,hasD1:o.length>0,hasR2:i.length>0,hasVars:Object.keys(s).length>0,kvCount:r.length,d1Count:o.length,r2Count:i.length,varCount:Object.keys(s).length}}catch(n){return console.debug("Failed to parse wrangler.json for bindings detection:",n),{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0}}}function Um(e){try{let t=B.dirname(e);t.includes(".tmp/webflow-build-")&&(p.info(Q.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
|
|
86
|
+
`)),S.rmSync(t,{recursive:!0,force:!0}))}catch(t){p.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function Vm(e,t){try{if(!t.config.config_template_path)return;let n=B.join(__dirname,t.config.config_template_path),r=B.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));p.info(Q.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
|
|
87
|
+
`));for(let s of["mjs","cjs","js","ts"]){let a=B.join(e,`clouduser.${o}.${s}`),u=B.join(e,`${o}.${s}`);if(S.existsSync(a)){p.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),S.existsSync(u)&&S.unlinkSync(u),S.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=B.join(e,`clouduser.wrangler${s}`);if(S.existsSync(a)){p.info(`restoring user wrangler${s} from backup...`);let u=B.join(e,"wrangler.json");S.existsSync(u)&&S.unlinkSync(u);let l=B.join(e,`wrangler${s}`);S.renameSync(a,l);break}}let i=B.join(e,"clouduser");S.existsSync(i)&&(p.info("cleaning up clouduser directory..."),S.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=B.join(e,B.basename(s));S.existsSync(a)&&(p.info(`cleaning up additional config file ${a}...`),S.unlinkSync(a))}}catch(n){p.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function tF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=B.join(e,"package.json"),u=JSON.parse(S.readFileSync(a,"utf8"));u.dependencies?.["@astrojs/react"]||u.devDependencies?.["@astrojs/react"]||(p.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,Gn.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=B.join(e,"package-lock.json");S.existsSync(i)?(p.info("Running npm ci..."),(0,Gn.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(p.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,Gn.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await Te(n,"cloud_install_dependencies_success",!0,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await Te(n,"cloud_install_dependencies_failure",!1,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json")),errorType:i instanceof Error?i.name:"unknown",errorMessage:i instanceof Error?i.message:String(i)},i instanceof Error?i:new Error(String(i))),i}}async function nF(e,t,n,r,o){if(p.info(`Framework: ${t.framework}`),p.info(`Mount path: ${n}`),p.info(`Deployment type: ${t.config.deployment_type}`),!t.config.config_template_path)return;let i=B.join(__dirname,t.config.config_template_path),s=B.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let d of["mjs","cjs","js","ts"]){let f=B.join(e,`${a}.${d}`);if(S.existsSync(f)){let m=B.join(e,`clouduser.${a}.${d}`);p.info(`renaming user base config /${a}.${d} to /clouduser.${a}.${d}...`),S.renameSync(f,m);break}}let u=B.join(e,s);p.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=S.readFileSync(i,"utf8").replace(/\$\{([^}]+)\}/g,(d,f)=>({COSMIC_MOUNT_PATH:n,COSMIC_DEPLOY_URL:r||(o?`https://${o}.wf-app-prod.cosmic.webflow.services`:"")})[f]||d);S.writeFileSync(u,c);for(let d of t.config.additional_config_files||[]){let f=B.join(__dirname,d);S.statSync(f,{throwIfNoEntry:!1})?(p.info(`copying additional config file /${d} to ${B.join(e,B.basename(d))}`),S.copyFileSync(f,B.join(e,B.basename(d)))):p.warn(`additional config file /${d} does not exist; skipping`)}}async function rF(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,Gn.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await Te(n,"cloud_build_command_success",!0,a,{buildCommand:t})}catch(o){let i=Date.now()-r;throw await Te(n,"cloud_build_command_failure",!1,i,{buildCommand:t,errorType:o instanceof Error?o.name:"unknown",errorMessage:o instanceof Error?o.message:String(o)},o instanceof Error?o:new Error(String(o))),new Error(`Build command failed: ${t}`)}}async function oF(e,t){S.mkdirSync(t,{recursive:!0});let n=B.join(e,"wrangler.json"),r=B.join(e,"wrangler.jsonc");if(!S.existsSync(n)&&!S.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,Gn.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function iF(e,t,n,r){let o=n.config.assets_path,i=n.config.assets_exclude_path,s=r.replace(/\/+$/,"").replace(/^\/+/,"");if(n.framework==="nextjs"||n.framework==="astro"){let d=B.join(e,o);if(S.existsSync(d)&&S.statSync(d).isDirectory()){let m=S.readdirSync(d,{withFileTypes:!0}).find(y=>!(!y.isDirectory()||i&&y.name===i||n.framework==="astro"&&(y.name==="_routes.json"||y.name==="_worker.js")));m&&(o=`${o}/${m.name}`)}}let a=B.join(t,"assets",s||"");S.mkdirSync(a,{recursive:!0});let u=B.join(e,o);if(S.existsSync(u)&&S.statSync(u).isDirectory()){p.info(`copying assets from /${o} to output/assets...`);try{i?(p.info(`excluding ${i}`),Gm(u,a,i)):nl(u,a)}catch(d){p.error(`Failed to copy assets: ${d}`)}}else p.info("No assets to copy or assets directory not found");let l=B.join(e,"webflow.json");S.existsSync(l)&&S.copyFileSync(l,B.join(t,"webflow.json"));let c=null;for(let d of[".json",".jsonc"]){let f=B.join(e,`clouduser.wrangler${d}`);if(S.existsSync(f)){c=f;break}}if(c){p.info("including user wrangler config in output..."),S.copyFileSync(c,B.join(t,"clouduser.wrangler.json"));let d=B.join(e,"clouduser","migrations");if(S.existsSync(d)){p.info("copying migrations from clouduser/migrations to output/migrations...");let f=B.join(t,"migrations");nl(d,f)}}}async function sF(e){let t=`${e}.tar.gz`;try{return await zm.create({gzip:!0,file:t,cwd:B.dirname(e)},[B.basename(e)]),p.info(`Tarball created: ${t}`),t}catch(n){throw p.error(`Failed to create tarball: ${n}`),new Error("Failed to create tarball")}}function nl(e,t){S.mkdirSync(t,{recursive:!0});let n=S.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=B.join(e,r.name),i=B.join(t,r.name);r.isDirectory()?nl(o,i):S.copyFileSync(o,i)}}function Gm(e,t,n){S.mkdirSync(t,{recursive:!0});let r=S.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=B.join(e,o.name),s=B.join(t,o.name);o.isDirectory()?Gm(i,s,n):S.copyFileSync(i,s)}}qe();fe();U();var aF="DUPLICATE_ENVIRONMENT_MOUNT",lF="ENVIRONMENT_MOUNT_MISMATCH",uF="DUPLICATE_ENVIRONMENT_BRANCH",cF="INVALID_MOUNT_PATH_FORMAT",dF="INVALID_PROJECT_ID",qm={[aF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[lF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[uF]:"An environment with this branch already exists for this project.",[cF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[dF]:"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 Hm(e){let t={timestamp:new Date().toISOString()};e instanceof Error?(t.code=e.name,t.msg=e.message,t.stack=e.stack):typeof e=="object"&&e!==null&&(t.code=e.code,t.msg=e.msg,t.status=e.status);let n=t.msg||"";p.error(`Error Details: ${JSON.stringify({timestamp:t.timestamp,code:t.code,message:t.msg,status:t.status,stack:t.stack},null,2)}`);for(let r in qm)if(n.includes(r))return qm[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var qn=D(require("fs")),ol=require("child_process");U();var Jm=104857600;function Zm(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 pF(){try{let e=(0,ol.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,ol.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 il(e,t){let{accessToken:n}=Me(),r=await fetch(`${Z}${e}`,{method:t.method,headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:t.body?JSON.stringify(t.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=Hm(i);throw new Error(s)}return r.json()}async function Ym(e,t,n){let{manifest:r}=ae(),o=r.cloud||{},i=o.project_id,s=o.framework;s||(p.error("Error: No framework specified in webflow.json"),p.error("Please ensure your webflow.json has a cloud.framework property"),process.exit(1));let{siteId:a,accessToken:u}=Me(),l=await fF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:n?.projectName,description:n?.description,directory:n?.directory,version:pF()});return!i&&l.project_id&&(p.info("\u{1F4DD} Updating webflow.json with project ID..."),be({cloud:{...o,project_id:l.project_id}})),l}async function fF(e){let{siteId:t,framework:n,mountPath:r,environment:o,version:i,projectId:s,projectName:a,description:u,directory:l}=e,c={framework:n,mount_path:r,environment:o,version:i};return s&&(c.project_id=s),a&&(c.project_name=a),u&&(c.description=u),l&&(c.app_path=l),il(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function Km(e){let{siteId:t}=Me();return il(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function Xm(){let{siteId:e}=Me();return il(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function Qm(e,t){if(!qn.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=qn.statSync(e);if(n.size>Jm)throw new Error(`Build output is too large (${Zm(n.size)}). Maximum allowed size is ${Zm(Jm)}.`);let r=qn.readFileSync(e),o=JSON.parse(t);if(!o.fields)throw new Error("Upload URL is missing fields property");let i=new FormData;Object.entries(o.fields).forEach(([u,l])=>{i.append(u,l)});let s=new Blob([r],{type:"application/gzip"});i.append("file",s,"output.tar.gz");let a=await fetch(o.url,{method:"POST",body:i});if(!a.ok){let u=await a.text();throw p.error(`\u274C Upload failed with response: ${u}`),new Error(`Failed to upload tarball: ${a.status} ${a.statusText}`)}}async function eh(e,t){if(!e||e==="undefined")throw new Error("Completion URL is undefined or invalid");let n=new URL(e);t&&n.searchParams.set("failed","true");let r=await fetch(n.toString(),{method:"GET"});if(!r.ok)throw new Error(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}Ne();es();U();async function th(e,t){let{siteId:n,accessToken:r}=Me(),o=fn("Validating mount path configuration...").start();try{let i=await vr(r,n),s=await ws(r,n),a=[`${i.shortName}.webflow.io`,...s.customDomains?.map(m=>m.url)||[]],u=0;o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (0/${a.length})`;let l=a.map(async m=>{try{let y=await vs(m),k=Array.isArray(y.cosmic)?y.cosmic.map(T=>T.mountPath).filter(T=>typeof T=="string"):[],R=ks(y,e,t);return{domain:m,mountPaths:k,isValid:R===!0}}catch(y){return{domain:m,mountPaths:[],isValid:!1,error:y instanceof Error?y.message:String(y)}}finally{u++,o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (${u}/${a.length})`}}),c=await Promise.all(l),d=c.some(m=>!m.isValid),f=c.every(m=>m.isValid);return o.succeed("Mount path validation completed"),{isValid:f,domains:c,needsPublishing:d}}catch(i){throw o.fail("Mount path validation failed"),i}}async function nh(e,t){let{siteId:n,accessToken:r}=Me();try{let o=await vr(r,n),i=await ws(r,n),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await vs(l),d=Array.isArray(c.cosmic)?c.cosmic.map(m=>m.mountPath).filter(m=>typeof m=="string"):[],f=ks(c,e,t);return{domain:l,isValid:f}}catch(c){return p.debug(`Could not verify mount path for ${l}: ${c}`),{domain:l,isValid:!1}}});return(await Promise.all(a)).filter(l=>l.isValid).map(l=>l.domain)}catch(o){return p.debug(`Error getting valid domains: ${o}`),[]}}function rh(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function oh(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await co({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 ih(){return await pe({message:"The mount path doesn't match on some domains. Would you like to publish the site to update the configuration?",default:!0})}async function sl(e){let{siteId:t,accessToken:n}=Me(),r=fn(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await vr(n,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await Zu(n,t,{domains:a,publishToWebflowSubdomain:s}),r.succeed(`Site published successfully to selected domains: ${e.join(", ")}`)}catch{throw r.fail("Failed to publish site"),new Error("Failed to publish site")}}qe();U();tr();fe();xe();var wi=async()=>{try{let e=await Za();return Object.keys(e)}catch(e){return p.error(`Failed to get available scaffolds: ${e}`),[]}},al=async(e,t,n=li,r)=>{let o=`./${e}`,i=await Za(),s=null,a=!1;try{let u=Date.now(),l=await vn({clientId:vo,scope:ko}),c=await Do(l);c.length===0&&(p.error("Error: No Webflow sites found in your account."),p.error("Please make sure you have at least one site in your Webflow account."),process.exit(1));let d;r?(d=c.find(m=>m.id===r),d||(p.error(`Error: Site with ID "${r}" not found in your account.`),p.info("Available sites:"),c.forEach(m=>{p.info(`- ${m.displayName} (ID: ${m.id})`)}),process.exit(1)),p.info(`Using site: ${d.displayName} (${d.id})`)):d=await wo(c),s=ci({authToken:l,siteId:d.id}),await Ja(e,t,n,i,d.id,l),process.chdir(o),await s.promptForConsentIfNeeded(),p.info("Running devlink sync to fetch your Webflow components...");try{await mF({site:d.id,apiToken:l}),a=!0}catch(m){p.error(`Failed to run devlink sync: ${m}`),p.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}let f=Date.now()-u;await s.trackProjectInit(n,!0,void 0,{devlinkSyncStatus:a,totalDuration:f,mountPath:t}),sh(e)}catch(u){p.error("Error during Webflow authentication:"),p.error(String(u)),await Ja(e,t,n,i),process.chdir(o),p.error("Project scaffold was created, but authentication failed."),p.error("To set up Webflow credentials later, run:"),p.error(" webflow auth login"),sh(e),process.exit(1)}},mF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(qa(),cm));await t(void 0,{site:e.site,apiToken:e.apiToken})},hF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=ae();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},gF=async(e,t,n)=>{p.info("\u{1F50D} Validating mount path configuration...");let r=await th(e,t);if(r.isValid)p.info("\u2705 Mount path validation passed");else if(p.info(`
|
|
88
|
+
\u{1F4CB} Mount path validation results:`),r.domains.forEach(o=>{let i=o.isValid?"\u2705":"\u274C",s=o.isValid?`(mountPath: ${o.mountPaths[0]})`:"(no matching mountPath)";p.info(`${i} ${o.domain} ${s}`),o.error&&p.debug(` Error: ${o.error}`)}),r.needsPublishing)if(n){p.info("\u{1F680} Auto-publishing site to update mount path configuration...");let o=r.domains.filter(i=>!i.isValid).map(i=>i.domain);await sl(o)}else if(await ih()&&Ge()){let i=r.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await oh(i);await sl(s)}else p.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},yF=async(e,t,n,r)=>{p.info(`
|
|
89
|
+
\u{1F3D7}\uFE0F Building project...`);let o=await Wm(e,{mountPath:n,telemetry:r?.telemetry,deployUrl:t.deploy_url,environmentId:t.environment_id});p.info("\u{1F4E4} Uploading build artifacts...");let i=Date.now();await Qm(o,t.upload_url);let s=Date.now()-i;return p.info(`\u2705 Upload completed in ${(s/1e3).toFixed(1)}s`),o},bF=async(e,t)=>{p.success(`
|
|
90
|
+
\u{1F310} Your cloud app will soon be available at:`);try{let n=await nh(e,t),r=rh(n,e);r.length>0?r.forEach(o=>{p.info(` ${o}`)}):p.warn(" No domains found with the correct mount path configuration yet.")}catch(n){p.warn(` Could not determine deployment links: ${n instanceof Error?n.message:n}`)}},DF=e=>{e.site_slug?p.success(`Visit your deployment:
|
|
91
|
+
|
|
92
|
+
${Dn}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):p.info(`
|
|
93
|
+
Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},wF=async(e,t,n)=>{try{await eh(e.completion_url,!!n),n?p.error(`
|
|
94
|
+
\u274C Deployment failed due to build error.`):(p.success(`
|
|
95
|
+
\u2705 Deployment triggered successfully!`),await bF(t,e.environment_id),DF(e))}catch(r){p.error(`Failed to trigger deployment: ${r}`),process.exit(1)}},vF=(e,t)=>{e&&Vm(process.cwd(),e),t&&Um(t)},ah=async(e,t,n)=>{let r=null,o=null,i=Date.now(),s=null,a=null,u=rl(process.cwd());await Te(n?.telemetry,"cloud_deploy_start",!0,void 0,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u});try{p.info("\u{1F527} Detecting framework..."),s=await bm(),p.info(`Framework: ${s.framework}`),p.info(`Build command: ${s.config.build_command}`),p.info("\u{1F3D7}\uFE0F Building project..."),r=await Ym(e,t,n),hF(n)?p.info("\u23ED\uFE0F Skipping mount path validation..."):await gF(t,r.environment_id,n?.autoPublish),o=await yF(s,r,t,n),p.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let l=Date.now()-i;await Te(n?.telemetry,"cloud_deploy_success",!0,l,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,framework:s.framework,buildCommand:s.config.build_command,cloudflareBindings:u})}catch(l){a=l instanceof Error?l:new Error(String(l)),p.error("Error during deployment initialization:"),p.error(a.message);let c=Date.now()-i;await Te(n?.telemetry,"cloud_deploy_failure",!1,c,{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l)))}finally{vF(s,o),r&&await wF(r,t,a),a&&process.exit(1)}},sh=e=>{p.info("--- "),p.info(Q.bold.green("Get started with the following commands:")),p.info(` cd ${e}`),p.info(" npm install"),p.info(" npm run dev"),p.info(` webflow cloud deploy
|
|
96
|
+
|
|
97
|
+
`),p.info("Run the following command to sync Webflow components when they update:"),p.info(` webflow devlink sync
|
|
98
|
+
`),p.info("--- ")};qe();Ne();U();xe();var lh=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 wi()).find(a=>a===o)){p.error(`Framework ${o} not found`);return}await al(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await wi();p.info("Available project templates:"),n.length>0?n.forEach(r=>p.info(`- ${r}`)):p.info("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").option("-n, --project-name <name>","Project name").option("-f, --framework <framework>","Framework to use (e.g., astro, nextjs)").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-s, --site-id <siteId>","Webflow site ID to connect to").action(async n=>{let r=process.stdin.isTTY,o=await wi(),i={};if(r&&Ge()){if(!n.projectName){let d=await Le({message:"What would you like to name your project?",validate:f=>f.trim()===""?"Project name cannot be empty":!0});d==null&&(console.error("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field."),process.exit(1)),i.projectName=d}n.framework||(i.scaffoldName=await Fe({message:"Which framework would you like to use?",choices:o.map(d=>({name:d,value:d})),default:"astro"})),n.mount||(i.mountPath=await Le({message:"What path do you want to use locally? (e.g., /app)",default:"/app",validate:d=>d.match(/^\/[^/].+$/)?!0:'Mount path must be "/" followed by one or more characters'}))}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,u=n.mount||i.mountPath||"/app",l=n.siteId,c=!0;(!s||s.trim()==="")&&(p.error("--project-name cannot be empty"),c=!1),(!a||!o.includes(a))&&(p.error(`--framework "${a||"undefined"}" not found`),p.error("Available frameworks:"),o.forEach(d=>p.error(`- ${d}`)),c=!1),(!u||!u.match(/^\/[^/].+$/))&&(p.error('--mount must be "/" followed by one or more characters'),c=!1),!l&&(!r||re())&&(p.error("--site-id is required"),c=!1),(!c||typeof s!="string"||typeof u!="string"||typeof a!="string")&&process.exit(1),await al(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 r;try{let{siteId:o,accessToken:i}=Me();r=ci({authToken:i,siteId:o}),await r.promptForConsentIfNeeded()}catch(o){p.debug(`Failed to initialize telemetry: ${o}`)}try{if(n.directory)try{process.chdir(n.directory),p.info(`Changed directory to: ${n.directory}`)}catch(d){p.error(`Error: Could not change to directory ${n.directory}`),p.error(d instanceof Error?d.message:String(d)),process.exit(1)}let{manifest:o}=ae(),s=(o.cloud||{}).project_id,a,u,l=n.projectName,c=n.description;if(n.environment&&n.mount)a=n.environment,u=n.mount,u.match(/^\/[^/].+$/)||(p.error('--mount must be "/" followed by one or more characters'),process.exit(1));else{let d=[];if(!s){!l&&re()&&(p.error("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field."),process.exit(1));try{let m=await Xm();if(m.projects.length>0){let y=await Fe({message:"Select a project to deploy to:",choices:[...m.projects.map(k=>({name:`${k.name} (${k.description||"No description"})`,value:k.id})),{name:"Create new project",value:null}]});y?(s=y,p.info("\u{1F4DD} Updating webflow.json with project ID..."),be({cloud:{project_id:y}})):p.info("Creating a new project will be handled during deployment.")}else p.info("No existing projects found. A new project will be created during deployment.")}catch(m){p.warn("Could not fetch existing projects. A new project will be created during deployment."),p.warn(m instanceof Error?m.message:String(m))}}if(!s&&!l&&(l=await Le({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:m=>m.trim()===""?"Project name cannot be empty":!0})),s)try{let y=(await Km(s)).environments.map(k=>({name:`${k.branch} (${k.mount})`,value:{branch:k.branch,mount:k.mount}}));d.push(...y)}catch(m){p.error("Error fetching project environments:"),p.error(m instanceof Error?m.message:String(m)),process.exit(1)}d.push({name:"Create new environment",value:null});let f=await Fe({message:"Select an environment to deploy to:",choices:d});f?(a=f.branch,u=f.mount):(n.environment?a=n.environment:a=await Le({message:"What environment would you like to deploy to?",default:"main",validate:m=>m.trim()===""?"Environment cannot be empty":!0}),n.mount?u=n.mount:u=await Le({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app",validate:m=>m.match(/^\/[^/].+$/)?!0:'Mount path must be "/" followed by one or more characters'}))}await ah(a,u,{projectName:l,description:c,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:r})}catch(o){p.error("Error during deployment setup:"),p.error(o instanceof Error?o.message:String(o)),process.exit(1)}})};var Pt=require("path"),Yr=require("@webflow/data-types");fe();var uh=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,uh.default)(o),size:r,...n||{}}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var ch=D(require("node-fetch")),dh=D(require("form-data"));async function ll(e,t){let n={...t.fields,file:e.value},r=new dh.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,ch.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});kF(o)}function kF(e){switch(e.status){case 200:case 201:return;case 403:throw new Error("Unauthorized. Please check your AWS access key");default:throw new Error(`Something went wrong when uploading the file: ${e.statusText}`)}}U();qe();hn();var ph=D(require("node-fetch"));fe();function xF({workspaceApiToken:e=process.env.WEBFLOW_WORKSPACE_API_TOKEN,siteApiToken:t=process.env.WEBFLOW_SITE_API_TOKEN,siteId:n=process.env.WEBFLOW_SITE_ID,libraryTarget:r=process.env.WEBFLOW_LIBRARY_TARGET}){if(r==="site"){if(!t)throw new Error("No API token provided");if(!n)throw new Error("No site provided");return{baseUrl:`${Z}/v2/sites/${n}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${Z}/v2/workspaces`,authToken:e}}function FF(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function _F(e){if(e.ok)return;if(e.status===401||e.status===403)throw new Error("Your API token is invalid or not authorized to perform this action. Remove the token from .env and run the command again to generate a new token.");if(e.status===404)throw new Error("Code components are rolling out in phases. Check back soon for access.");let t=await e.json();throw new Error(t.message||e.statusText)}async function Ot({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=xF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await(0,ph.default)(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:FF(n)});return await _F(a),a.json()}async function ul({options:e}){return(await Ot({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function cl({name:e,description:t,slug:n,options:r}){return(await Ot({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function dl({resourceId:e,files:t,options:n}){return(await Ot({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function pl({resourceId:e,codeModule:t,components:n,options:r}){return(await Ot({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var Nh=require("path"),Mh=D(require("webpack-merge")),ct=require("@webflow/data-types");function Vr(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,use:[{ident:"babel-loader",loader:require.resolve("babel-loader"),options:{presets:[require.resolve("@babel/preset-env"),[require.resolve("@babel/preset-react"),{runtime:"automatic"}],require.resolve("@babel/preset-typescript")]}}]}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var hh=require("webpack"),ml=D(require("mini-css-extract-plugin")),gh=D(require("tsconfig-paths-webpack-plugin")),yh=require("tsconfig-paths"),hl=require("@webflow/data-types"),bh=require("path");fe();var fh=D(require("postcss-selector-parser")),fl=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,fh.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});fl.postcss=!0;fl.postcssPlugin="CSSinShadowDOM";var mh=fl;function EF(){return(0,yh.loadConfig)(process.cwd()).resultType==="success"}function Gr({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:ml.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[mh]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new ml.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],mode:n,resolve:{plugins:[EF()?new gh.default:null].filter(Boolean)},performance:{hints:!1}};if(t===hl.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===hl.Environment.Server)return{...s,plugins:[...s.plugins,new hh.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:bo,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Dh=require("@module-federation/enhanced"),gl=require("@webflow/data-types");function wh({libraryName:e,env:t,exposes:n}){if(t===gl.Environment.Client)return{plugins:[new Dh.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===gl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}fe();U();var kh=require("memfs/lib/volume"),qr=require("@webflow/data-types");function vh(e,t){let n=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
|
|
99
|
+
`),r=e.filter(u=>u.type==="internal").map(({name:u,exportKey:l})=>`${l}: ${u}`).join(", "),o=e.filter(u=>u.type==="component").map(({name:u,exportKey:l})=>`"${l}": ${u}`).join(", "),i=`env: "${t}"`,s=r,a=o?`components: { ${o} }`:void 0;return`${n}
|
|
67
100
|
|
|
68
|
-
export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function
|
|
101
|
+
export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function xh(e,t,n){let r={},o="./tmp_entry/Client.js",i="./tmp_entry/Server.js";r[o]=vh([{name:"ClientRenderer",path:e,exportKey:"Renderer",type:"internal"}],qr.Environment.Client);let s={},a=l=>{let c=CF(l);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=vh([{name:"ServerRenderer",path:e,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l,c])=>n[l]?.options?.ssr??!0).map(([l,c])=>({name:a(l),path:c,exportKey:l,isDefaultExport:!0,type:"component"}))],qr.Environment.Server);let u={[qr.Environment.Client]:o,[qr.Environment.Server]:i};return{vol:kh.Volume.fromJSON(r),paths:u}}var CF=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 Rh=require("memfs/lib/volume");var SF=D(require("fs")),Fh=require("unionfs"),_h=require("webpack");async function Hn({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new Fh.Union().use(SF));return new Promise((s,a)=>{let u=(0,_h.webpack)(e);u.inputFileSystem=i,n&&(u.outputFileSystem=n),r&&(u.outputPath=r),u.run((l,c)=>{u.close(d=>{l||d?a(l||d):c?c.hasErrors()||o&&c.hasWarnings()?a(new Error(c.toString("errors-warnings"))):s(c):a(new Error("Webpack stats are undefined"))})})})}var Jn=D(require("webpack-merge"));U();var Ch=require("@module-federation/enhanced");function Eh(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function Hr(e,t){let n=["entry","output","target"];Object.keys(t).some(l=>n.includes(l))&&p.warn(`Cannot override blocked properties: ${n.join(", ")}`);let r=Eh(t,[...n,"ModuleFederationPlugin","module","plugins"]),o=(0,Jn.default)(e,{...r,module:Eh(t.module??{},["rules"])}),{plugins:i}=(0,Jn.mergeWithCustomize)({customizeArray:(0,Jn.unique)("plugins",["ModuleFederationPlugin","MiniCssExtractPlugin"],l=>l?.constructor?.name)})({plugins:t.plugins},{plugins:e.plugins}),s=t?.ModuleFederationPlugin?.shared,a=i?.map(l=>{if(l?.constructor?.name==="ModuleFederationPlugin"){let c=l._options;return new Ch.ModuleFederationPlugin({...c,...s?{shared:s}:{}})}return l});o.plugins=a;let u=t.module?.rules;return u&&typeof u=="function"&&(o.module={...o.module,rules:u(e.module?.rules??[])}),o}var Ph=D(require("archiver")),Zn=require("path");fe();var Jr=require("@webflow/data-types");fe();U();var Sh=2;function Th(e){let t={type:Jr.ModuleLoader.FEDERATION,version:Sh,entry:Ds,renderer:hr,components:e};return{title:mr,content:JSON.stringify(t)}}function Ah(e){let t={type:Jr.ModuleLoader.SSR,version:Sh,entry:bo,components:e};return{title:mr,content:JSON.stringify(t)}}function Oh(e){let t=`/${Jr.Environment.Client}/${Ds}`;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===hr||(i[a]={css:[]},s.assets.css.sync.forEach(u=>{i[a].css.push(`${o}${u}`)})),i},{})}}catch(n){p.error(`Failed to extract components metadata from MF manifest: ${n}`)}return{}}var vi=require("@webflow/data-types");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=`/${vi.Environment.Server}/${gr}`,a=(0,Ph.default)("tar",{gzip:!1}),u=t.createWriteStream(s);a.on("error",d=>(r=!0,i(d))),u.on("close",()=>{if(!r)try{let d={type:"asset",name:gr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Zn.resolve)((0,Zn.join)(`/${vi.Environment.Server}`,f.name));t.existsSync(m)&&t.rmSync(m)}),o([d])}catch(d){return i(d)}finally{r=!0}}),a.pipe(u);let{title:l,content:c}=Ah(n);a.append(c,{name:l}),e.forEach(d=>{try{let f=(0,Zn.resolve)((0,Zn.join)(`/${vi.Environment.Server}`,d.name)),m=t.readFileSync(f,"utf8");a.append(m,{name:d.name})}catch(f){return r=!0,i(f)}}),await a.finalize()})}var jh=require("@webflow/data-types");async function Bh(e,t,n){let{title:r,content:o}=Th(n);await t.promises.writeFile(`/${jh.Environment.Client}/${r}`,o);let i={type:"asset",name:r,info:{},size:o.length,emitted:!0,comparedForEmit:!1,cached:!1};return e.filter(s=>s.name!=="mf-stats.json").concat([i])}var Lh={[ct.Framework.React]:{generateBundlerConfig:Vr}};async function ki(e,t){p.debug("Generating entry points...");let{vol:n,paths:r}=await xh(e.renderer,t.components,t.metadata);p.debug("Generating bundles...");let o=Rh.Volume.fromJSON({"/Server":null,"/Client":null});p.debug("Generating bundling config...");let i=t.overrideConfig??{};Object.keys(i).length&&p.debug("Found config overrides. Merging...");let s=y=>{let k=Hr(TF({env:y,mode:t.dev?"development":"production",framework:e.framework,publicPath:t.publicPaths[y],components:t.components,entryPaths:r,libraryName:t.libraryIdentifier}),i);return t?.debugBundler&&(p.info(`Webpack config for env ${y}:`),p.dir(k)),k},[a,u]=await Promise.all([Hn({config:s(ct.Environment.Server),sourceVolumes:[n],outputVolume:o,outputPath:`/${ct.Environment.Server}`,failOnWarnings:t.failOnWarnings}),Hn({config:s(ct.Environment.Client),sourceVolumes:[n],outputVolume:o,outputPath:`/${ct.Environment.Client}`,failOnWarnings:t.failOnWarnings})]);p.debug(o.toTree()),p.debug(`Server Bundler Stats:
|
|
69
102
|
${a.toString("errors-warnings")}`),p.debug(`Client Bundler Stats:
|
|
70
|
-
${u.toString({colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0})}`);let l=
|
|
71
|
-
`)}function
|
|
72
|
-
`)}async function
|
|
103
|
+
${u.toString({colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0})}`);let l=Oh(o);p.debug("Packaging server bundle...");let c=await Ih(a.toJson().assets||[],o,l);p.debug("Packaging client bundle...");let d=await Bh(u.toJson().assets||[],o,l),f=y=>k=>[k,y];return{outputFiles:[...c.map(f(ct.Environment.Server)),...d.map(f(ct.Environment.Client))],outputVolume:o}}function TF({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a}){if(Lh[n]){let u=Object.entries({[hr]:i[e],...o}).reduce((f,[m,y])=>({...f,[`./${m}`]:`./${(0,Nh.relative)(process.cwd(),y)}`}),{}),l=Gr({entry:i[e],env:e,mode:t,publicPath:r,libraryName:s,outputPath:a}),c=Lh[n].generateBundlerConfig(e),d=wh({exposes:u,env:e,libraryName:s});return(0,Mh.default)(l,c,d)}else throw new Error(`Unknown framework: ${n}`)}var $h=require("@webflow/data-types"),Yn={renderer:"@webflow/react",components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:$h.Framework.React};var zh=D(require("module")),Wh=D(require("path")),yl=require("memfs/lib/volume"),bl=D(require("webpack-merge")),Uh=D(require("webpack-node-externals")),Vh=D(require("mini-css-extract-plugin")),Gh=D(require("fork-ts-checker-webpack-plugin")),Zr=require("@webflow/data-types");var AF=D(require("fs")),Kn=require("path"),Xn=require("webpack");function OF(e,t=AF){let n=(0,Kn.join)(process.cwd(),"node_modules",e);for(;n!==(0,Kn.dirname)(n)&&n!=="node_modules";){let r=(0,Kn.join)(n,"package.json");if(t.existsSync(r))try{let{name:o,version:i}=JSON.parse(t.readFileSync(r,"utf8"));return`${o}@${i}`}catch{return null}n=(0,Kn.dirname)(n)}return null}var xi=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:Xn.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE},function(){try{let r=n.getAssets(),o={};Object.values(r).forEach(({name:i,source:s})=>{if(!i.endsWith(".map"))return;let[a,u,l]=i.split("."),c=o[a]?.sources??{},d=o[a]?.dependencies??new Set;JSON.parse(s.source().toString()).sources.forEach(m=>{if(m.startsWith("external")){let y=m.match(/^external \S+ "(.+)"$/)?.[1];if(!y)throw new Error(`Could not extract package name from ${m}`);let k=OF(y,n.inputFileSystem);if(!k)throw new Error(`Could not find package information for ${y}`);k&&d.add(k)}}),o[a]={sources:{...c,[`./${a}.${l}`]:u},dependencies:d},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new Xn.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new Xn.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};function PF(e,t){let n=`/${t}.js`,r=e.readFileSync(`/${t}.js`,"utf-8"),o=new zh.default(n,module);o._compile(r,n);let i=o.exports.default||o.exports;if(i&&typeof i=="object")try{let{name:s,description:a,group:u,props:l,options:c}=(0,Zr.parseComponentData)(i);return{displayName:s,description:a,group:u,props:Object.entries(l||{}).map(([d,f])=>({...f,name:d,defaultValue:typeof f.defaultValue!="string"?JSON.stringify(f.defaultValue):f.defaultValue,settings:f.settings!==void 0?JSON.stringify(f.settings):f.settings})),options:c}}catch(s){throw new Error(`Error parsing component data for ${t}: ${s?.stack}`)}throw new Error(`Could not get declaration for ${t}`)}async function IF({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r}){let o=new yl.Volume;return await Hn({config:Hr((0,bl.default)(Gr({entry:e,env:Zr.Environment.Client,publicPath:"/",libraryName:"metadata"}),Vr(),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new Gh.default]:[]}),n),sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}async function jF({declarations:e,sources:t,overrideConfig:n={}}){let r=new yl.Volume,o=Hr((0,bl.default)(Gr({entry:e,env:Zr.Environment.Client,publicPath:"/",libraryName:"source-maps"}),Vr(),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{hashFunction:"md5",filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]"},externalsPresets:{node:!0},externals:[(0,Uh.default)()],devtool:"source-map",plugins:[new xi]}),n);return o.plugins=o.plugins?.map(i=>i?.constructor?.name==="MiniCssExtractPlugin"?new Vh.default({filename:"[name].[contenthash].css"}):i),await Hn({config:o,sourceVolumes:t?[t]:[],outputVolume:r,failOnWarnings:!1}),r}function BF(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=Wh.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function Fi({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1}){let[o,i]=await Promise.all([IF({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r}),jF({declarations:e,sources:t,overrideConfig:n})]),s=Object.keys(e).reduce((u,l)=>(u[l]=PF(o,l),u),{});return{sourceMaps:BF(i),metadata:s}}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]}]))}Ne();var Jh=D(require("md5"));U();xe();var Zh=" - ";function LF(e){return e==="added"?` ${ne.green("(Added)")}`:e==="removed"?` ${ne.yellow("(Removed)")}`:e==="changed"?` ${ne.blue("(Changed)")}`:""}function Hh(e){if(!e)return"";let t=JSON.parse(e);return(0,Jh.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function NF({metadata:e,latestVersion:t,sourceMaps:n}){let r=t.resource.codeLibraryResource.manifest.components.reduce((s,a)=>(s[a.id]=a,s),{}),o={};return Object.entries(r).forEach(([s,a])=>{if(!e[s])o[s]={component:a,status:"removed"};else{let u=e[s],l=Hh(n[s]),c=a.displayName&&u.displayName!==a.displayName,d=l&&a.hash&&l!==Hh(a.hash),f=c||d;o[s]={component:u,status:f?"changed":"unchanged",previousName:c?a.displayName:void 0}}}),Object.entries(e).forEach(([s,a])=>{r[s]||(o[s]={component:a,status:"added"})}),Object.values(o).map(({component:s,status:a,previousName:u})=>{let l=s.displayName,c=u?`${u} \u2192 ${l}`:l;return`${Zh}${c}${LF(a)}`}).sort().join(`
|
|
104
|
+
`)}function MF({metadata:e}){return Object.values(e).map(n=>`${Zh}${n.displayName}`).sort().join(`
|
|
105
|
+
`)}async function Yh({libraryManifest:e,metadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(re())return Promise.resolve(!0);let i=e.id?n.find(({profile:d})=>d.slug===e.id):null,s=i&&i.profile.status==="ACTIVE",a="Code components:",u=s?NF({metadata:t,latestVersion:i,sourceMaps:r}):MF({metadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await pe({message:`${a}
|
|
73
106
|
${u}
|
|
74
107
|
|
|
75
|
-
${l}`})}var
|
|
108
|
+
${l}`})}var Kh=D(require("fast-glob")),RF=e=>{let t=e.split("/");return t[t.length-1]},$F=e=>RF(e).split(".")[0];async function _i(e,t){return(await Kh.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=$F(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}},{})}Ne();U();qe();xe();async function zF({initialData:e}){let t=await Le({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});t==null&&(console.error("When --no-input mode is enabled please provide a name in your library manifest"),process.exit(1));let n=await Le({message:"Enter a description for your code library",default:e?.description??""});if(!await pe({message:"Is the code (including 3rd party packages) you are uploading to Webflow trusted and secure?"}))throw new Error("Code library is not trusted and secure");return{name:t,description:n}}async function WF({existingCodeLibraries:e}){return await Fe({message:"Select existing code library (or create new)",choices:[{name:"[Create new code library]",value:null},...e.map(({resource:n,profile:r})=>{let o=`${n.codeLibraryResource.manifest.name} (${r.slug})`;r.status==="ARCHIVED"&&(o+=` ${ne.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function Dl({options:e,initialData:t,existingCodeLibraries:n}){let r,o=Bt(e?.manifest),i={components:Yn.components},s=n.length>0?await WF({existingCodeLibraries:n}):null;if(s)r={...i,...s,...t,id:s.id};else{let a=await zF({initialData:t});r={...i,...t,...a}}return be({library:r},o),{libraryManifest:r,manifestPath:o}}async function Xh({options:e,existingCodeLibraries:t}){let n=p.spinner("Looking for webflow.json manifest");try{let{manifest:r,manifestPath:o}=ae(e?.manifest),i=Lt(r,"library");if(!i.id){if(Ge())return n.succeed(),Dl({options:e,initialData:i,existingCodeLibraries:t});throw new Error("Library manifest does not have an id")}let s=i.name??t.find(({profile:a})=>a.slug===i.id)?.resource.codeLibraryResource.manifest.name;return!s&&Ge()?(n.succeed(),Dl({options:e,initialData:i,existingCodeLibraries:t})):(s||(s=i.id),n.succeed(),Promise.resolve({libraryManifest:{...i,name:s},manifestPath:o}))}catch(r){if((r instanceof tt||r instanceof jt)&&Ge())return n.info(r.message),Dl({options:e,existingCodeLibraries:t});throw n.fail(),r}}U();xe();var UF="db64c798d0a5adb3c9c43b10c80f93fece223acd072246f957d9700b1bf3cab0",VF="32a6440eefa0b608b39c36164a9cf274c9c096cfe6541e9dab08ff4f372fe245",GF="fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074",qF=["code_components:read","code_components:write"];function HF(){return process.env.BUILD_ENV==="development"?UF:process.env.BUILD_ENV==="acceptance"?VF:GF}async function Qh(e){let t=e?.apiToken||process.env.WEBFLOW_WORKSPACE_API_TOKEN;if(!t&&Ge()&&(p.debug("No workspace API token found. Performing OAuth..."),t=await vn({clientId:HF(),scope:qF}),t&&wn({workspaceApiToken:t})),!t)throw new Error("Workspace API token is required.");return t}var eg=require("path"),tg=require("fs-extra");function Ei(e,t){try{let n=(0,tg.existsSync)((0,eg.join)(process.cwd(),"./tsconfig.json")),r=Object.values(e).some(i=>i.endsWith(".ts")||i.endsWith(".tsx")),o=t?.force;return r&&n&&!o}catch{return!1}}async function JF(e,t,n){let{trackPerformance:r,libraryConfig:o}=e;return await r("collect_metadata",async()=>{let i=await _i(o.components,{cwd:(0,Pt.dirname)(t)});if(p.debug(`Files: ${JSON.stringify(i,null,2)}`),!Object.keys(i).length)throw new Error("No declaration files found");let s=o.bundleConfig?require((0,Pt.resolve)(process.cwd(),o.bundleConfig)):{},{sourceMaps:a,metadata:u}=await Fi({declarations:i,overrideConfig:s,performTypeCheck:Ei(i,n)});return p.debug(`Metadata: ${JSON.stringify(u,null,2)}`),p.debug(`Source Maps:
|
|
76
109
|
|
|
77
110
|
${Object.entries(a).reduce((l,[c,d])=>(l+=`${c}: ${JSON.stringify(JSON.parse(d),null,2)}
|
|
78
111
|
|
|
79
|
-
`,l),"")}`),{files:i,sourceMaps:a,metadata:u}})}async function
|
|
112
|
+
`,l),"")}`),{files:i,sourceMaps:a,metadata:u}})}async function ZF(e,t,n,r,o,i){let{trackPerformance:s,libraryConfig:a}=e;return await s("generate_library_bundle",async()=>{let u=a.bundleConfig?require((0,Pt.resolve)(process.cwd(),a.bundleConfig)):{};return await ki(a,{libraryIdentifier:`_${r}`,publicPaths:o,components:t,metadata:n,debugBundler:i?.debugBundler,dev:i?.dev,overrideConfig:u,failOnWarnings:!i?.force})})}async function YF(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([u,l])=>{let c=(0,Pt.resolve)((0,Pt.join)(`/${l}`,`${u.name}`));return Ur(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:l})}),{signatures:a}=await dl({resourceId:r,files:s.map(({meta:u})=>u),options:i});await Promise.all(a.map(async u=>{let l=s.find(c=>c.meta.fileHash===u.hash);if(!l)throw new Error(`File not found: ${u.hash}`);await ll(l,u.value)}))})}async function KF(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let u={clientModule:{bundleUrl:o[Yr.Environment.Client]+mr,loaderType:Yr.ModuleLoader.FEDERATION},serverModule:{bundleUrl:o[Yr.Environment.Server]+gr}},l=qh(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await pl({resourceId:r,codeModule:u,components:Object.values(l),options:a});p.debug(JSON.stringify({taskId:c},null,2))})}async function wl(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;p.debug("Initializing workspace API token...");try{r=await Qh(e)}catch(a){p.error(a instanceof Error?a.message:String(a)),process.exit(1)}p.debug("Initializing telemetry service...");let o=Je.forCodeLibraries({host:Z,authToken:r}),i=mo(o),s=ho(o);try{await o.promptForConsentIfNeeded(),p.debug("Checking dependencies versions..."),new $t().run();let a={workspaceApiToken:r};t=p.spinner("Initializing");let u=await s("get_code_libraries",async()=>await ul({options:a})),{workspace:l,libraries:c}=u;t.succeed();let{libraryManifest:d,manifestPath:f}=await Xh({options:e,existingCodeLibraries:c});p.debug("Parsing library config...");let m={...Yn,...d},y={trackPerformance:s,apiOptions:a,libraryConfig:m};t=p.spinner("Collecting metadata");let{files:k,sourceMaps:R,metadata:T}=await JF(y,f,e);if(t.succeed(),!await Yh({libraryManifest:d,metadata:T,existingCodeLibraries:c,sourceMaps:R,workspaceInfo:l}))return;t=p.spinner("Creating code library");let{resourceId:F,profileSlug:C,workspace:V,s3Urls:$,cdnUrls:_}=await s("init_code_library",async()=>await cl({name:m.name,slug:m.id,description:m.description,options:a}));t.succeed(),p.debug(JSON.stringify({resourceId:F,profileSlug:C,s3Urls:$,cdnUrls:_},null,2)),await o.sendUsage("library_initialized",!0,void 0,{libraryName:m.name,framework:m.framework,resourceId:F,profileSlug:C}),m.id||be({library:{id:C}},f),t=p.spinner("Compiling code components");let{outputFiles:h,outputVolume:g}=await ZF(y,k,T,F,_,e);t.succeed(),await o.sendUsage("bundle_generated",!0,void 0,{libraryName:m.name,componentCount:Object.keys(k).length,resourceId:F,profileSlug:C}),t=p.spinner("Uploading files"),await YF(y,h,g,F),t.succeed(),await o.sendUsage("files_uploaded",!0,void 0,{libraryName:m.name,fileCount:h.length,resourceId:F,profileSlug:C}),t=p.spinner("Sharing library"),await KF(y,T,R,F,_),t.succeed(),p.success(`Code library shared successfully${V?.slug?`: ${Dn}/dashboard/workspace/${V?.slug}/shared-libraries-and-templates`:"!"}`);let P=Date.now()-n;await o.sendUsage("share_library",!0,P,{componentCount:Object.keys(k).length,libraryName:m.name,framework:m.framework,resourceId:F,profileSlug:C})}catch(a){t?.fail();let u=a instanceof Error?a.message:String(a);await i(a instanceof Error?a:new Error(String(a)),"share_library");let l=Date.now()-n;await o.sendUsage("share_library",!1,l,{error:u}),p.error(a)}}var Ci=D(require("fs")),Ve=require("path"),ng=require("@webflow/data-types");U();qe();function XF(e){return e.replace(/[-_]+/," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}async function vl(e){e.verbose&&(process.env.DEBUG="true");let t;try{p.debug("Checking dependencies versions..."),new $t().run(),p.debug("Looking for manifest...");let{manifest:n,manifestPath:r}=ae();p.debug(JSON.stringify(n,null,2)),p.debug("Parsing library config...");let o={...Yn,...Lt(n,"library")};t=p.spinner("Collecting metadata");let i=await _i(o.components,{cwd:(0,Ve.dirname)(r)});if(p.debug(`Files: ${JSON.stringify(i,null,2)}`),!Object.keys(i).length)throw new Error("No declaration files found");let s=o.bundleConfig?require((0,Ve.resolve)(process.cwd(),o.bundleConfig)):{},{sourceMaps:a,metadata:u}=await Fi({declarations:i,overrideConfig:s,performTypeCheck:Ei(i,e)});p.debug(`Metadata: ${JSON.stringify(u,null,2)}`),p.debug(`Source Maps:
|
|
80
113
|
|
|
81
114
|
${Object.entries(a).reduce((d,[f,m])=>(d+=`${f}: ${JSON.stringify(JSON.parse(m),null,2)}
|
|
82
115
|
|
|
83
|
-
`,d),"")}`),t.succeed(),t=p.spinner("Generating library bundle");let{outputFiles:l,outputVolume:c}=await
|
|
84
|
-
${
|
|
116
|
+
`,d),"")}`),t.succeed(),t=p.spinner("Generating library bundle");let{outputFiles:l,outputVolume:c}=await ki(o,{libraryIdentifier:`_${XF(o.name)}`,publicPaths:Object.values(ng.Environment).reduce((d,f)=>(d[f]=e.publicPath,d),{}),components:i,metadata:u,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:s,failOnWarnings:!e.force});t.succeed(),t=p.spinner("Writing to the disk"),l.forEach(([d,f])=>{let m=(0,Ve.resolve)((0,Ve.join)(`/${f}`,`${d.name}`)),y=Ur(c.readFileSync(m,"utf8").toString(),m,{bundleEnvironment:f}),k=(0,Ve.join)(process.cwd(),e.outputPath);Ci.default.existsSync((0,Ve.join)(k,`${f}`))||Ci.default.mkdirSync((0,Ve.join)(k,`${f}`),{recursive:!0}),Ci.default.writeFileSync((0,Ve.join)(k,f,d.name),y.value.toString())}),t.succeed(),p.success("Code Library bundled successfully!")}catch(n){t?.fail(),p.error(n)}}var Kr=D(require("fs-extra")),kl=D(require("path"));U();function QF(){try{if(!Kr.default.existsSync(_e))return null;let e=Kr.default.readdirSync(_e).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:kl.default.join(_e,t),time:Kr.default.statSync(kl.default.join(_e,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=Kr.default.readFileSync(t.path,"utf8").match(/Command: (.+)/);if(r&&!r[1].includes("library log"))return t.path}catch{continue}return null}catch{return null}}async function xl(){let e=QF();console.info(e?`
|
|
117
|
+
${ne.green("INFO:")} Latest log: ${e}
|
|
85
118
|
`:`
|
|
86
|
-
${
|
|
119
|
+
${ne.green("INFO:")} No log files found.
|
|
87
120
|
`),console.info(`
|
|
88
|
-
${re.green("INFO:")} All logs: ${ve}`)}var eh=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors.").option("--debug-bundler","Display final bundler configurations for debugging purposes.").option("--dev","Bundle in development mode for debugging purposes.").option("--verbose","Display more information for debugging purposes.");t.command("share").description("Share a library of Code Components to your Webflow Workspace.").option("--manifest <path>","Path to the webflow.json file. Default: scan current directory.").option("--api-token <token>","Workspace API token. Default: value set in WEBFLOW_WORKSPACE_API_TOKEN env variable.").option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines.").action(async(r,n)=>{let o=n.parent?.opts()||{},i={...r,...o};await el(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").requiredOption("--public-path <path>","Override the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'","dist").action(async(r,n)=>{let o=n.parent?.opts()||{},i={...r,...o};await tl(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(async()=>{await nl()})};var be=D(require("fs")),pe=D(require("path"));V();var li="astro",ol="cloud-scaffolds";var th="package.json",rh="webflow.json",nh="wf-placeholder-name",oh="CLOUD_MOUNT_PATH",ih="gitignore";var il=async(e,t,r=li,n,o,i)=>{try{let s=n[r];if(!s)throw new Error(`Scaffold "${r}" not found`);for(let a of s)try{let u=pe.join(e,a.split(pe.join(ol,r))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),d=l||c;if(a.includes(th)||a.includes(rh)){let m=(await be.promises.readFile(a,"utf8")).replace(nh,e);await ui(u,m)}else if(d){let f=await be.promises.readFile(a,"utf8");await ui(u,f.replace(oh,t))}else if(pe.basename(u).toLowerCase()===ih){let f=await be.promises.readFile(a,"utf8"),m=pe.join(pe.dirname(u),".gitignore");await ui(m,f)}else{let f=await be.promises.readFile(a);await ui(u,f)}}catch(u){p.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{jr({siteId:o,siteApiToken:i,directory:e})}catch(a){p.error(`Error creating .env file: ${a}`)}}catch(s){throw p.error(`Error applying scaffold: ${s}`),s}},sl=async()=>{try{let e={},t=pe.join(pe.resolve(__dirname),ol);if(!be.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let r=await be.promises.readdir(t);for(let n of r)try{let o=pe.join(t,n);e[n]=await sh(o)}catch(o){p.error(`Error processing scaffold ${n}: ${o}`)}return e}catch(e){throw p.error(`Error getting available scaffolds: ${e}`),e}},sh=async e=>{let t=[];try{if(!be.existsSync(e))throw new Error(`Directory not found: ${e}`);let r=await be.promises.readdir(e);for(let n of r)try{let o=pe.join(e,n);(await be.promises.stat(o)).isDirectory()?t.push(...await sh(o)):t.push(o)}catch(o){p.error(`Error processing path ${n}: ${o}`)}}catch(r){throw p.error(`Error reading directory ${e}: ${r}`),r}return t},ui=async(e,t)=>{try{await be.promises.mkdir(pe.dirname(e),{recursive:!0}),await be.promises.writeFile(e,t)}catch(r){throw p.error(`Error writing file ${e}: ${r}`),r}};cr();de();function r1(e){return ze.forCloud({host:e.host||Z,authToken:e.authToken,siteId:e.siteId,projectId:e.projectId})}function ci(e){let t=r1(e);return{service:t,handleError:so(t),trackUsage:Eu(t),trackPerformance:ao(t),async trackProjectInit(r,n,o,i){await t.sendUsage("project_init",n,o,{scaffold:r,scaffoldName:r,mountPath:i?.mountPath,devlinkSyncStatus:i?.devlinkSyncStatus,totalDuration:i?.totalDuration})},async isEnabled(){return await t.isEnabled()},async promptForConsentIfNeeded(){return await t.promptForConsentIfNeeded("Help us improve Webflow Cloud by sharing usage data and error reports?")}}}async function _e(e,t,r,n,o,i){if(e)try{await e.service.sendUsage(t,r,n,o),i&&t.includes("_failure")&&await e.service.sendError(i instanceof Error?i:new Error(String(i)),t.replace(/_success$|_failure$/,""),{...o,argv:process.argv.slice(2)})}catch(s){console.debug(`Failed to send ${t} telemetry:`,s)}}var vt=D(require("fs")),al=D(require("path"));V();var di={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"}},pi=["nextjs","astro","remix"];async function ah(e=process.cwd()){let t=al.join(e,"package.json"),r=al.join(e,"webflow.json");if(!vt.existsSync(t))throw new Error("No package.json file found");let n=null;if(vt.existsSync(r))try{let i=JSON.parse(vt.readFileSync(r,"utf8")).cloud?.framework;if(i){if(!di[i]){let s=Object.keys(di).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!pi.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${pi.join(", ")}`);n=i,p.info(`Using framework type from webflow.json: ${n}`)}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(!n)try{let o=JSON.parse(vt.readFileSync(t,"utf8"));for(let s of pi){let u=di[s].package_identifier;if(o.dependencies?.[u]||o.devDependencies?.[u]){n=s;break}}if(!n)throw new Error(`Framework not detected or not supported. Only ${pi.join(", ")} are currently supported.`);p.info(`Detected framework: ${n}`),vt.writeFileSync(r,JSON.stringify({cloud:{framework:n}},null,2))}catch(o){throw o instanceof SyntaxError?new Error("package.json contains invalid JSON"):o}return{framework:n,config:di[n]}}var S=D(require("fs")),B=D(require("path")),qr=require("child_process"),Ah=D(require("tar"));var te=D(require("fs")),he=D(require("path"));var H={};wl(H,{BRAND:()=>S1,DIRTY:()=>Wt,EMPTY_PATH:()=>s1,INVALID:()=>P,NEVER:()=>pF,OK:()=>ce,ParseStatus:()=>le,Schema:()=>$,ZodAny:()=>Ft,ZodArray:()=>ot,ZodBigInt:()=>Vt,ZodBoolean:()=>Gt,ZodBranded:()=>Un,ZodCatch:()=>rr,ZodDate:()=>qt,ZodDefault:()=>tr,ZodDiscriminatedUnion:()=>hi,ZodEffects:()=>Se,ZodEnum:()=>Qt,ZodError:()=>fe,ZodFirstPartyTypeKind:()=>j,ZodFunction:()=>yi,ZodIntersection:()=>Yt,ZodIssueCode:()=>b,ZodLazy:()=>Kt,ZodLiteral:()=>Xt,ZodMap:()=>zr,ZodNaN:()=>Ur,ZodNativeEnum:()=>er,ZodNever:()=>Ne,ZodNull:()=>Jt,ZodNullable:()=>He,ZodNumber:()=>Ut,ZodObject:()=>me,ZodOptional:()=>Ee,ZodParsedType:()=>x,ZodPipeline:()=>Vn,ZodPromise:()=>_t,ZodReadonly:()=>nr,ZodRecord:()=>gi,ZodSchema:()=>$,ZodSet:()=>Wr,ZodString:()=>xt,ZodSymbol:()=>Rr,ZodTransformer:()=>Se,ZodTuple:()=>qe,ZodType:()=>$,ZodUndefined:()=>Ht,ZodUnion:()=>Zt,ZodUnknown:()=>nt,ZodVoid:()=>$r,addIssueToContext:()=>w,any:()=>N1,array:()=>z1,bigint:()=>P1,boolean:()=>bh,coerce:()=>dF,custom:()=>hh,date:()=>I1,datetimeRegex:()=>fh,defaultErrorMap:()=>tt,discriminatedUnion:()=>G1,effect:()=>nF,enum:()=>eF,function:()=>K1,getErrorMap:()=>Lr,getParsedType:()=>Ge,instanceof:()=>A1,intersection:()=>q1,isAborted:()=>fi,isAsync:()=>Nr,isDirty:()=>mi,isValid:()=>kt,late:()=>T1,lazy:()=>X1,literal:()=>Q1,makeIssue:()=>Wn,map:()=>Z1,nan:()=>O1,nativeEnum:()=>tF,never:()=>R1,null:()=>L1,nullable:()=>iF,number:()=>yh,object:()=>W1,objectUtil:()=>ll,oboolean:()=>cF,onumber:()=>uF,optional:()=>oF,ostring:()=>lF,pipeline:()=>aF,preprocess:()=>sF,promise:()=>rF,quotelessJson:()=>n1,record:()=>J1,set:()=>Y1,setErrorMap:()=>i1,strictObject:()=>U1,string:()=>gh,symbol:()=>j1,transformer:()=>nF,tuple:()=>H1,undefined:()=>B1,union:()=>V1,unknown:()=>M1,util:()=>W,void:()=>$1});var W;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,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 n(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(W||(W={}));var ll;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(ll||(ll={}));var x=W.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ge=e=>{switch(typeof e){case"undefined":return x.undefined;case"string":return x.string;case"number":return Number.isNaN(e)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":return Array.isArray(e)?x.array:e===null?x.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?x.promise:typeof Map<"u"&&e instanceof Map?x.map:typeof Set<"u"&&e instanceof Set?x.set:typeof Date<"u"&&e instanceof Date?x.date:x.object;default:return x.unknown}};var b=W.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"]),n1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),fe=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(i){return i.message},n={_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)n._errors.push(r(s));else{let a=n,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),n}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,W.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];r[i]=r[i]||[],r[i].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};fe.create=e=>new fe(e);var o1=(e,t)=>{let r;switch(e.code){case b.invalid_type:e.received===x.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,W.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:r=`Unrecognized key(s) in object: ${W.joinValues(e.keys,", ")}`;break;case b.invalid_union:r="Invalid input";break;case b.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${W.joinValues(e.options)}`;break;case b.invalid_enum_value:r=`Invalid enum value. Expected ${W.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:r="Invalid function arguments";break;case b.invalid_return_type:r="Invalid function return type";break;case b.invalid_date:r="Invalid date";break;case b.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:W.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case b.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case b.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case b.custom:r="Invalid input";break;case b.invalid_intersection_types:r="Intersection results could not be merged";break;case b.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:r="Number must be finite";break;default:r=t.defaultError,W.assertNever(e)}return{message:r}},tt=o1;var lh=tt;function i1(e){lh=e}function Lr(){return lh}var Wn=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},s1=[];function w(e,t){let r=Lr(),n=Wn({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===tt?void 0:tt].filter(o=>!!o)});e.common.issues.push(n)}var le=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status==="aborted")return P;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let i=await o.key,s=await o.value;n.push({key:i,value:s})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return P;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(n[i.value]=s.value)}return{status:t.value,value:n}}},P=Object.freeze({status:"aborted"}),Wt=e=>({status:"dirty",value:e}),ce=e=>({status:"valid",value:e}),fi=e=>e.status==="aborted",mi=e=>e.status==="dirty",kt=e=>e.status==="valid",Nr=e=>typeof Promise<"u"&&e instanceof Promise;var E;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(E||(E={}));var Ce=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,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}},uh=(e,t)=>{if(kt(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 r=new fe(e.common.issues);return this._error=r,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??n??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:u??r??a.defaultError}},description:o}}var $=class{get description(){return this._def.description}_getType(t){return Ge(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Ge(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new le,ctx:{common:t.parent.common,data:t.data,parsedType:Ge(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Nr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ge(t)},o=this._parseSync({data:t,path:n.path,parent:n});return uh(n,o)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ge(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return kt(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>kt(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ge(t)},o=this._parse({data:t,path:n.path,parent:n}),i=await(Nr(o)?o:Promise.resolve(o));return uh(n,i)}refine(t,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:b.custom,...n(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>u?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Se({schema:this,typeName:j.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ee.create(this,this._def)}nullable(){return He.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ot.create(this)}promise(){return _t.create(this,this._def)}or(t){return Zt.create([this,t],this._def)}and(t){return Yt.create(this,t,this._def)}transform(t){return new Se({...N(this._def),schema:this,typeName:j.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new tr({...N(this._def),innerType:this,defaultValue:r,typeName:j.ZodDefault})}brand(){return new Un({typeName:j.ZodBranded,type:this,...N(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new rr({...N(this._def),innerType:this,catchValue:r,typeName:j.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Vn.create(this,t)}readonly(){return nr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},a1=/^c[^\s-]{8,}$/i,l1=/^[0-9a-z]+$/,u1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,c1=/^[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,d1=/^[a-z0-9_-]{21}$/i,p1=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,f1=/^[-+]?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)?)??$/,m1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,h1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ul,g1=/^(?:(?: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])$/,y1=/^(?:(?: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])$/,b1=/^(([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]))$/,D1=/^(([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])$/,w1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,v1=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dh="((\\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])))",k1=new RegExp(`^${dh}$`);function ph(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function x1(e){return new RegExp(`^${ph(e)}$`)}function fh(e){let t=`${dh}T${ph(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function F1(e,t){return!!((t==="v4"||!t)&&g1.test(e)||(t==="v6"||!t)&&b1.test(e))}function _1(e,t){if(!p1.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function E1(e,t){return!!((t==="v4"||!t)&&y1.test(e)||(t==="v6"||!t)&&D1.test(e))}var xt=class e extends ${_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==x.string){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.string,received:i.parsedType}),P}let n=new le,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")m1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"email",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")ul||(ul=new RegExp(h1,"u")),ul.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"emoji",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")c1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"uuid",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")d1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")a1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")l1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")u1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ulid",code:b.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),w(o,{validation:"url",code:b.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"regex",code:b.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?fh(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?k1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?x1(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?f1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?F1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ip",code:b.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?_1(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"jwt",code:b.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?E1(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cidr",code:b.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?w1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?v1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),n.dirty()):W.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(o=>t.test(o),{validation:r,code:b.invalid_string,...E.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...E.errToObj(t)})}url(t){return this._addCheck({kind:"url",...E.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...E.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...E.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...E.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...E.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...E.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...E.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...E.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...E.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...E.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...E.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...E.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,...E.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,...E.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...E.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...E.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...E.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...E.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...E.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...E.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...E.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...E.errToObj(r)})}nonempty(t){return this.min(1,E.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 r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};xt.create=e=>new xt({checks:[],typeName:j.ZodString,coerce:e?.coerce??!1,...N(e)});function C1(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Ut=class e extends ${constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==x.number){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.number,received:i.parsedType}),P}let n,o=new le;for(let i of this._def.checks)i.kind==="int"?W.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),w(n,{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)&&(n=this._getOrReturnCtx(t,n),w(n,{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)&&(n=this._getOrReturnCtx(t,n),w(n,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?C1(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),w(n,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),w(n,{code:b.not_finite,message:i.message}),o.dirty()):W.assertNever(i);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,E.toString(r))}gt(t,r){return this.setLimit("min",t,!1,E.toString(r))}lte(t,r){return this.setLimit("max",t,!0,E.toString(r))}lt(t,r){return this.setLimit("max",t,!1,E.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:E.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:E.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:E.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:E.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:E.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:E.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:E.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:E.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:E.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:E.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&W.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Ut.create=e=>new Ut({checks:[],typeName:j.ZodNumber,coerce:e?.coerce||!1,...N(e)});var Vt=class e extends ${constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==x.bigint)return this._getInvalidInput(t);let n,o=new le;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),w(n,{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)&&(n=this._getOrReturnCtx(t,n),w(n,{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)&&(n=this._getOrReturnCtx(t,n),w(n,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):W.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.bigint,received:r.parsedType}),P}gte(t,r){return this.setLimit("min",t,!0,E.toString(r))}gt(t,r){return this.setLimit("min",t,!1,E.toString(r))}lte(t,r){return this.setLimit("max",t,!0,E.toString(r))}lt(t,r){return this.setLimit("max",t,!1,E.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:E.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:E.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:E.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:E.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:E.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:E.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Vt.create=e=>new Vt({checks:[],typeName:j.ZodBigInt,coerce:e?.coerce??!1,...N(e)});var Gt=class extends ${_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==x.boolean){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.boolean,received:n.parsedType}),P}return ce(t.data)}};Gt.create=e=>new Gt({typeName:j.ZodBoolean,coerce:e?.coerce||!1,...N(e)});var qt=class e extends ${_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==x.date){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:x.date,received:i.parsedType}),P}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),P}let n=new le,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):W.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:E.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:E.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};qt.create=e=>new qt({checks:[],coerce:e?.coerce||!1,typeName:j.ZodDate,...N(e)});var Rr=class extends ${_parse(t){if(this._getType(t)!==x.symbol){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.symbol,received:n.parsedType}),P}return ce(t.data)}};Rr.create=e=>new Rr({typeName:j.ZodSymbol,...N(e)});var Ht=class extends ${_parse(t){if(this._getType(t)!==x.undefined){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.undefined,received:n.parsedType}),P}return ce(t.data)}};Ht.create=e=>new Ht({typeName:j.ZodUndefined,...N(e)});var Jt=class extends ${_parse(t){if(this._getType(t)!==x.null){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.null,received:n.parsedType}),P}return ce(t.data)}};Jt.create=e=>new Jt({typeName:j.ZodNull,...N(e)});var Ft=class extends ${constructor(){super(...arguments),this._any=!0}_parse(t){return ce(t.data)}};Ft.create=e=>new Ft({typeName:j.ZodAny,...N(e)});var nt=class extends ${constructor(){super(...arguments),this._unknown=!0}_parse(t){return ce(t.data)}};nt.create=e=>new nt({typeName:j.ZodUnknown,...N(e)});var Ne=class extends ${_parse(t){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:x.never,received:r.parsedType}),P}};Ne.create=e=>new Ne({typeName:j.ZodNever,...N(e)});var $r=class extends ${_parse(t){if(this._getType(t)!==x.undefined){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.void,received:n.parsedType}),P}return ce(t.data)}};$r.create=e=>new $r({typeName:j.ZodVoid,...N(e)});var ot=class e extends ${_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==x.array)return w(r,{code:b.invalid_type,expected:x.array,received:r.parsedType}),P;if(o.exactLength!==null){let s=r.data.length>o.exactLength.value,a=r.data.length<o.exactLength.value;(s||a)&&(w(r,{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}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(w(r,{code:b.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(w(r,{code:b.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,a)=>o.type._parseAsync(new Ce(r,s,r.path,a)))).then(s=>le.mergeArray(n,s));let i=[...r.data].map((s,a)=>o.type._parseSync(new Ce(r,s,r.path,a)));return le.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:E.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:E.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:E.toString(r)}})}nonempty(t){return this.min(1,t)}};ot.create=(e,t)=>new ot({type:e,minLength:null,maxLength:null,exactLength:null,typeName:j.ZodArray,...N(t)});function Mr(e){if(e instanceof me){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Ee.create(Mr(n))}return new me({...e._def,shape:()=>t})}else return e instanceof ot?new ot({...e._def,type:Mr(e.element)}):e instanceof Ee?Ee.create(Mr(e.unwrap())):e instanceof He?He.create(Mr(e.unwrap())):e instanceof qe?qe.create(e.items.map(t=>Mr(t))):e}var me=class e extends ${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(),r=W.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==x.object){let l=this._getOrReturnCtx(t);return w(l,{code:b.invalid_type,expected:x.object,received:l.parsedType}),P}let{status:n,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ne&&this._def.unknownKeys==="strip"))for(let l in o.data)s.includes(l)||a.push(l);let u=[];for(let l of s){let c=i[l],d=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Ce(o,d,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Ne){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(l==="strict")a.length>0&&(w(o,{code:b.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let d=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Ce(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let d=await c.key,f=await c.value;l.push({key:d,value:f,alwaysSet:c.alwaysSet})}return l}).then(l=>le.mergeObjectSync(n,l)):le.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return E.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:E.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:j.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of W.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of W.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return Mr(this)}partial(t){let r={};for(let n of W.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of W.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Ee;)i=i._def.innerType;r[n]=i}return new e({...this._def,shape:()=>r})}keyof(){return mh(W.objectKeys(this.shape))}};me.create=(e,t)=>new me({shape:()=>e,unknownKeys:"strip",catchall:Ne.create(),typeName:j.ZodObject,...N(t)});me.strictCreate=(e,t)=>new me({shape:()=>e,unknownKeys:"strict",catchall:Ne.create(),typeName:j.ZodObject,...N(t)});me.lazycreate=(e,t)=>new me({shape:e,unknownKeys:"strip",catchall:Ne.create(),typeName:j.ZodObject,...N(t)});var Zt=class extends ${_parse(t){let{ctx:r}=this._processInputParams(t),n=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 r.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new fe(a.ctx.common.issues));return w(r,{code:b.invalid_union,unionErrors:s}),P}if(r.common.async)return Promise.all(n.map(async i=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(u=>new fe(u));return w(r,{code:b.invalid_union,unionErrors:a}),P}}get options(){return this._def.options}};Zt.create=(e,t)=>new Zt({options:e,typeName:j.ZodUnion,...N(t)});var rt=e=>e instanceof Kt?rt(e.schema):e instanceof Se?rt(e.innerType()):e instanceof Xt?[e.value]:e instanceof Qt?e.options:e instanceof er?W.objectValues(e.enum):e instanceof tr?rt(e._def.innerType):e instanceof Ht?[void 0]:e instanceof Jt?[null]:e instanceof Ee?[void 0,...rt(e.unwrap())]:e instanceof He?[null,...rt(e.unwrap())]:e instanceof Un||e instanceof nr?rt(e.unwrap()):e instanceof rr?rt(e._def.innerType):[],hi=class e extends ${_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==x.object)return w(r,{code:b.invalid_type,expected:x.object,received:r.parsedType}),P;let n=this.discriminator,o=r.data[n],i=this.optionsMap.get(o);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(w(r,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),P)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let i of r){let s=rt(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new e({typeName:j.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...N(n)})}};function cl(e,t){let r=Ge(e),n=Ge(t);if(e===t)return{valid:!0,data:e};if(r===x.object&&n===x.object){let o=W.objectKeys(t),i=W.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=cl(e[a],t[a]);if(!u.valid)return{valid:!1};s[a]=u.data}return{valid:!0,data:s}}else if(r===x.array&&n===x.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],u=cl(s,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return r===x.date&&n===x.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Yt=class extends ${_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=(i,s)=>{if(fi(i)||fi(s))return P;let a=cl(i.value,s.value);return a.valid?((mi(i)||mi(s))&&r.dirty(),{status:r.value,value:a.data}):(w(n,{code:b.invalid_intersection_types}),P)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Yt.create=(e,t,r)=>new Yt({left:e,right:t,typeName:j.ZodIntersection,...N(r)});var qe=class e extends ${_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==x.array)return w(n,{code:b.invalid_type,expected:x.array,received:n.parsedType}),P;if(n.data.length<this._def.items.length)return w(n,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),P;!this._def.rest&&n.data.length>this._def.items.length&&(w(n,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((s,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Ce(n,s,n.path,a)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>le.mergeArray(r,s)):le.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};qe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qe({items:e,typeName:j.ZodTuple,rest:null,...N(t)})};var gi=class e extends ${get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==x.object)return w(n,{code:b.invalid_type,expected:x.object,received:n.parsedType}),P;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in n.data)o.push({key:i._parse(new Ce(n,a,n.path,a)),value:s._parse(new Ce(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?le.mergeObjectAsync(r,o):le.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof $?new e({keyType:t,valueType:r,typeName:j.ZodRecord,...N(n)}):new e({keyType:xt.create(),valueType:t,typeName:j.ZodRecord,...N(r)})}},zr=class extends ${get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==x.map)return w(n,{code:b.invalid_type,expected:x.map,received:n.parsedType}),P;let o=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([a,u],l)=>({key:o._parse(new Ce(n,a,n.path,[l,"key"])),value:i._parse(new Ce(n,u,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of s){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return P;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of s){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return P;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}}}};zr.create=(e,t,r)=>new zr({valueType:t,keyType:e,typeName:j.ZodMap,...N(r)});var Wr=class e extends ${_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==x.set)return w(n,{code:b.invalid_type,expected:x.set,received:n.parsedType}),P;let o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(w(n,{code:b.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(w(n,{code:b.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let i=this._def.valueType;function s(u){let l=new Set;for(let c of u){if(c.status==="aborted")return P;c.status==="dirty"&&r.dirty(),l.add(c.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((u,l)=>i._parse(new Ce(n,u,n.path,l)));return n.common.async?Promise.all(a).then(u=>s(u)):s(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:E.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:E.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Wr.create=(e,t)=>new Wr({valueType:e,minSize:null,maxSize:null,typeName:j.ZodSet,...N(t)});var yi=class e extends ${constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==x.function)return w(r,{code:b.invalid_type,expected:x.function,received:r.parsedType}),P;function n(a,u){return Wn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Lr(),tt].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return Wn({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Lr(),tt].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:u}})}let i={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof _t){let a=this;return ce(async function(...u){let l=new fe([]),c=await a._def.args.parseAsync(u,i).catch(m=>{throw l.addIssue(n(u,m)),l}),d=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(d,i).catch(m=>{throw l.addIssue(o(d,m)),l})})}else{let a=this;return ce(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new fe([n(u,l.error)]);let c=Reflect.apply(s,this,l.data),d=a._def.returns.safeParse(c,i);if(!d.success)throw new fe([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:qe.create(t).rest(nt.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,r,n){return new e({args:t||qe.create([]).rest(nt.create()),returns:r||nt.create(),typeName:j.ZodFunction,...N(n)})}},Kt=class extends ${get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Kt.create=(e,t)=>new Kt({getter:e,typeName:j.ZodLazy,...N(t)});var Xt=class extends ${_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return w(r,{received:r.data,code:b.invalid_literal,expected:this._def.value}),P}return{status:"valid",value:t.data}}get value(){return this._def.value}};Xt.create=(e,t)=>new Xt({value:e,typeName:j.ZodLiteral,...N(t)});function mh(e,t){return new Qt({values:e,typeName:j.ZodEnum,...N(t)})}var Qt=class e extends ${_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return w(r,{expected:W.joinValues(n),received:r.parsedType,code:b.invalid_type}),P}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return w(r,{received:r.data,code:b.invalid_enum_value,options:n}),P}return ce(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};Qt.create=mh;var er=class extends ${_parse(t){let r=W.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==x.string&&n.parsedType!==x.number){let o=W.objectValues(r);return w(n,{expected:W.joinValues(o),received:n.parsedType,code:b.invalid_type}),P}if(this._cache||(this._cache=new Set(W.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=W.objectValues(r);return w(n,{received:n.data,code:b.invalid_enum_value,options:o}),P}return ce(t.data)}get enum(){return this._def.values}};er.create=(e,t)=>new er({values:e,typeName:j.ZodNativeEnum,...N(t)});var _t=class extends ${unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==x.promise&&r.common.async===!1)return w(r,{code:b.invalid_type,expected:x.promise,received:r.parsedType}),P;let n=r.parsedType===x.promise?r.data:Promise.resolve(r.data);return ce(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};_t.create=(e,t)=>new _t({type:e,typeName:j.ZodPromise,...N(t)});var Se=class extends ${innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{w(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(n.data,i);if(n.common.async)return Promise.resolve(s).then(async a=>{if(r.value==="aborted")return P;let u=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return u.status==="aborted"?P:u.status==="dirty"?Wt(u.value):r.value==="dirty"?Wt(u.value):u});{if(r.value==="aborted")return P;let a=this._def.schema._parseSync({data:s,path:n.path,parent:n});return a.status==="aborted"?P:a.status==="dirty"?Wt(a.value):r.value==="dirty"?Wt(a.value):a}}if(o.type==="refinement"){let s=a=>{let u=o.refinement(a,i);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?P:(a.status==="dirty"&&r.dirty(),s(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?P:(a.status==="dirty"&&r.dirty(),s(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!kt(s))return P;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>kt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:r.value,value:a})):P);W.assertNever(o)}};Se.create=(e,t,r)=>new Se({schema:e,typeName:j.ZodEffects,effect:t,...N(r)});Se.createWithPreprocess=(e,t,r)=>new Se({schema:t,effect:{type:"preprocess",transform:e},typeName:j.ZodEffects,...N(r)});var Ee=class extends ${_parse(t){return this._getType(t)===x.undefined?ce(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ee.create=(e,t)=>new Ee({innerType:e,typeName:j.ZodOptional,...N(t)});var He=class extends ${_parse(t){return this._getType(t)===x.null?ce(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};He.create=(e,t)=>new He({innerType:e,typeName:j.ZodNullable,...N(t)});var tr=class extends ${_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===x.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};tr.create=(e,t)=>new tr({innerType:e,typeName:j.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...N(t)});var rr=class extends ${_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Nr(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fe(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fe(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};rr.create=(e,t)=>new rr({innerType:e,typeName:j.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...N(t)});var Ur=class extends ${_parse(t){if(this._getType(t)!==x.nan){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:x.nan,received:n.parsedType}),P}return{status:"valid",value:t.data}}};Ur.create=e=>new Ur({typeName:j.ZodNaN,...N(e)});var S1=Symbol("zod_brand"),Un=class extends ${_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Vn=class e extends ${_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?P:i.status==="dirty"?(r.dirty(),Wt(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?P:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:j.ZodPipeline})}},nr=class extends ${_parse(t){let r=this._def.innerType._parse(t),n=o=>(kt(o)&&(o.value=Object.freeze(o.value)),o);return Nr(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};nr.create=(e,t)=>new nr({innerType:e,typeName:j.ZodReadonly,...N(t)});function ch(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function hh(e,t={},r){return e?Ft.create().superRefine((n,o)=>{let i=e(n);if(i instanceof Promise)return i.then(s=>{if(!s){let a=ch(t,n),u=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=ch(t,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Ft.create()}var T1={object:me.lazycreate},j;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(j||(j={}));var A1=(e,t={message:`Input not instance of ${e.name}`})=>hh(r=>r instanceof e,t),gh=xt.create,yh=Ut.create,O1=Ur.create,P1=Vt.create,bh=Gt.create,I1=qt.create,j1=Rr.create,B1=Ht.create,L1=Jt.create,N1=Ft.create,M1=nt.create,R1=Ne.create,$1=$r.create,z1=ot.create,W1=me.create,U1=me.strictCreate,V1=Zt.create,G1=hi.create,q1=Yt.create,H1=qe.create,J1=gi.create,Z1=zr.create,Y1=Wr.create,K1=yi.create,X1=Kt.create,Q1=Xt.create,eF=Qt.create,tF=er.create,rF=_t.create,nF=Se.create,oF=Ee.create,iF=He.create,sF=Se.createWithPreprocess,aF=Vn.create,lF=()=>gh().optional(),uF=()=>yh().optional(),cF=()=>bh().optional(),dF={string:e=>xt.create({...e,coerce:!0}),number:e=>Ut.create({...e,coerce:!0}),boolean:e=>Gt.create({...e,coerce:!0}),bigint:e=>Vt.create({...e,coerce:!0}),date:e=>qt.create({...e,coerce:!0})};var pF=P;function bi(e,t=!1){let r=e.length,n=0,o="",i=0,s=16,a=0,u=0,l=0,c=0,d=0;function f(F,T){let U=0,R=0;for(;U<F||!T;){let _=e.charCodeAt(n);if(_>=48&&_<=57)R=R*16+_-48;else if(_>=65&&_<=70)R=R*16+_-65+10;else if(_>=97&&_<=102)R=R*16+_-97+10;else break;n++,U++}return U<F&&(R=-1),R}function m(F){n=F,o="",i=0,s=16,d=0}function y(){let F=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&Vr(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&Vr(e.charCodeAt(n)))for(n++;n<e.length&&Vr(e.charCodeAt(n));)n++;else return d=3,e.substring(F,n);let T=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&Vr(e.charCodeAt(n))){for(n++;n<e.length&&Vr(e.charCodeAt(n));)n++;T=n}else d=3;return e.substring(F,T)}function k(){let F="",T=n;for(;;){if(n>=r){F+=e.substring(T,n),d=2;break}let U=e.charCodeAt(n);if(U===34){F+=e.substring(T,n),n++;break}if(U===92){if(F+=e.substring(T,n),n++,n>=r){d=2;break}switch(e.charCodeAt(n++)){case 34:F+='"';break;case 92:F+="\\";break;case 47:F+="/";break;case 98:F+="\b";break;case 102:F+="\f";break;case 110:F+=`
|
|
89
|
-
`;break;case 114:F+="\r";break;case 116:F+=" ";break;case 117:let _=f(4,!0);_>=0?F+=String.fromCharCode(_):d=4;break;default:d=5}T=n;continue}if(U>=0&&U<=31)if(Gn(U)){F+=e.substring(T,n),d=2;break}else d=6;n++}return F}function z(){if(o="",d=0,i=n,u=a,c=l,n>=r)return i=r,s=17;let F=e.charCodeAt(n);if(dl(F)){do n++,o+=String.fromCharCode(F),F=e.charCodeAt(n);while(dl(F));return s=15}if(Gn(F))return n++,o+=String.fromCharCode(F),F===13&&e.charCodeAt(n)===10&&(n++,o+=`
|
|
90
|
-
`),a++,l=n,s=14;switch(F){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,o=k(),s=10;case 47:let T=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!Gn(e.charCodeAt(n));)n++;return o=e.substring(T,n),s=12}if(e.charCodeAt(n+1)===42){n+=2;let U=r-1,R=!1;for(;n<U;){let _=e.charCodeAt(n);if(_===42&&e.charCodeAt(n+1)===47){n+=2,R=!0;break}n++,Gn(_)&&(_===13&&e.charCodeAt(n)===10&&n++,a++,l=n)}return R||(n++,d=1),o=e.substring(T,n),s=13}return o+=String.fromCharCode(F),n++,s=16;case 45:if(o+=String.fromCharCode(F),n++,n===r||!Vr(e.charCodeAt(n)))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(;n<r&&C(F);)n++,F=e.charCodeAt(n);if(i!==n){switch(o=e.substring(i,n),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(F),n++,s=16}}function C(F){if(dl(F)||Gn(F))return!1;switch(F){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function M(){let F;do F=z();while(F>=12&&F<=15);return F}return{setPosition:m,getPosition:()=>n,scan:t?M:z,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>n-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>d}}function dl(e){return e===32||e===9}function Gn(e){return e===10||e===13}function Vr(e){return e>=48&&e<=57}var Dh;(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"})(Dh||(Dh={}));var mF=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Gr=200,hF={" ":{"\n":new Array(Gr).fill(0).map((e,t)=>`
|
|
91
|
-
`+" ".repeat(t)),"\r":new Array(Gr).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Gr).fill(0).map((e,t)=>`\r
|
|
92
|
-
`+" ".repeat(t))}," ":{"\n":new Array(Gr).fill(0).map((e,t)=>`
|
|
93
|
-
`+" ".repeat(t)),"\r":new Array(Gr).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Gr).fill(0).map((e,t)=>`\r
|
|
94
|
-
`+" ".repeat(t))}};var Di;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Di||(Di={}));function wh(e,t=[],r=Di.DEFAULT){let n=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):n!==null&&(o[n]=u)}return vh(e,{onObjectBegin:()=>{let u={};s(u),i.push(o),o=u,n=null},onObjectProperty:u=>{n=u},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let u=[];s(u),i.push(o),o=u,n=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},r),o[0]}function vh(e,t,r=Di.DEFAULT){let n=bi(e,!1),o=[],i=0;function s(L){return L?()=>i===0&&L(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function a(L){return L?Y=>i===0&&L(Y,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function u(L){return L?Y=>i===0&&L(Y,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(L){return L?()=>{i>0?i++:L(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(L){return L?()=>{i>0&&i--,i===0&&L(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}let d=l(t.onObjectBegin),f=u(t.onObjectProperty),m=c(t.onObjectEnd),y=l(t.onArrayBegin),k=c(t.onArrayEnd),z=u(t.onLiteralValue),C=a(t.onSeparator),M=s(t.onComment),F=a(t.onError),T=r&&r.disallowComments,U=r&&r.allowTrailingComma;function R(){for(;;){let L=n.scan();switch(n.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:T||_(11);break;case 2:_(12);break;case 6:_(16);break}switch(L){case 12:case 13:T?_(10):M();break;case 16:_(1);break;case 15:case 14:break;default:return L}}}function _(L,Y=[],it=[]){if(F(L),Y.length+it.length>0){let Hn=n.getToken();for(;Hn!==17;){if(Y.indexOf(Hn)!==-1){R();break}else if(it.indexOf(Hn)!==-1)break;Hn=R()}}}function h(L){let Y=n.getTokenValue();return L?z(Y):(f(Y),o.push(Y)),R(),!0}function g(){switch(n.getToken()){case 11:let L=n.getTokenValue(),Y=Number(L);isNaN(Y)&&(_(2),Y=0),z(Y);break;case 7:z(null);break;case 8:z(!0);break;case 9:z(!1);break;default:return!1}return R(),!0}function I(){return n.getToken()!==10?(_(3,[],[2,5]),!1):(h(!1),n.getToken()===6?(C(":"),R(),Te()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function v(){d(),R();let L=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(L||_(4,[],[]),C(","),R(),n.getToken()===2&&U)break}else L&&_(6,[],[]);I()||_(4,[],[2,5]),L=!0}return m(),n.getToken()!==2?_(7,[2],[]):R(),!0}function oe(){y(),R();let L=!0,Y=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(Y||_(4,[],[]),C(","),R(),n.getToken()===4&&U)break}else Y&&_(6,[],[]);L?(o.push(0),L=!1):o[o.length-1]++,Te()||_(4,[],[4,5]),Y=!0}return k(),L||o.pop(),n.getToken()!==4?_(8,[4],[]):R(),!0}function Te(){switch(n.getToken()){case 3:return oe();case 1:return v();case 10:return h(!0);default:return g()}}return R(),n.getToken()===17?r.allowEmptyContent?!0:(_(4,[],[]),!1):Te()?(n.getToken()!==17&&_(9,[],[]),!0):(_(4,[],[]),!1)}var kh;(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"})(kh||(kh={}));var xh;(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"})(xh||(xh={}));var pl=wh;var Fh;(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"})(Fh||(Fh={}));V();var _h=H.object({name:H.string(),main:H.string(),compatibility_date:H.string(),compatibility_flags:H.array(H.string()).optional(),placement:H.object({mode:H.string()}).passthrough().optional(),assets:H.object({directory:H.string(),binding:H.string().optional()}).passthrough().optional(),d1_databases:H.array(H.object({database_name:H.string(),database_id:H.string(),binding:H.string(),migrations_dir:H.string().optional()}).passthrough()).default([]),kv_namespaces:H.array(H.object({binding:H.string(),id:H.string()}).passthrough()).default([]),r2_buckets:H.array(H.object({binding:H.string(),bucket_name:H.string()}).passthrough()).default([])}).passthrough();function Eh(e,t="wrangler.json"){let r=he.join(e,t);if(!te.existsSync(r)){if(t.endsWith(".json"))return p.warn(`/${t} not found, checking for /${t}c`),Eh(e,t+"c");p.warn(`/${t} not found`);return}let n=te.readFileSync(r,"utf8");p.info(`reading /${t}...`);let o;try{o=pl(n)}catch(i){p.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=_h.parse(o);return p.info(`successfully loaded /${t}`),i}catch(i){p.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function Ch(e,t,r={}){if(!te.existsSync(e))return 0;te.mkdirSync(t,{recursive:!0});let n=te.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of n){if(r.exclude&&i.name===r.exclude)continue;let s=he.join(e,i.name),a=he.join(t,i.name);i.isDirectory()?o+=Ch(s,a,r):(te.copyFileSync(s,a),o++)}return o}async function Sh(e,t){let r=null,n=null,o=he.join(t,"wrangler.json"),i=he.join(t,"wrangler.jsonc");te.existsSync(o)?(r=o,n=".json"):te.existsSync(i)&&(r=i,n=".jsonc"),r&&n&&(p.info(`saving user-provided wrangler JSON as /clouduser.wrangler${n}...`),te.copyFileSync(r,he.join(t,`clouduser.wrangler${n}`)));let s=r?Eh(t,he.basename(r)):null,a=he.join(__dirname,e.config.wrangler_template_path),u=he.join(t,"wrangler.json");if(!te.existsSync(a))throw new Error(`Wrangler template not found at ${a}. Make sure the template is properly copied during build.`);if(p.info(`copying template /templates/${e.framework}/wrangler.${e.framework}.json to /wrangler.json`),te.copyFileSync(a,u),!s)return;let l=JSON.parse(te.readFileSync(u,"utf8"));if(s.kv_namespaces&&s.kv_namespaces.length>0&&(l.kv_namespaces=s.kv_namespaces,p.info(`merged ${s.kv_namespaces.length} KV namespace(s) into template`)),s.r2_buckets&&s.r2_buckets.length>0&&(l.r2_buckets=s.r2_buckets,p.info(`merged ${s.r2_buckets.length} R2 bucket(s) into template`)),s.d1_databases&&s.d1_databases.length>0&&(l.d1_databases=s.d1_databases,p.info(`merged ${s.d1_databases.length} D1 database(s) into template`)),te.writeFileSync(u,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let c in s.d1_databases){let d=s.d1_databases[c];if(!d.migrations_dir){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir is not defined`);continue}let f=d.migrations_dir,m=he.join(t,f);if(!te.existsSync(m)){p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=he.join(t,"clouduser","migrations",f),k=Ch(m,y);k>0?p.info(`copied ${k} migrations to /clouduser/migrations/${f}`):p.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function xF(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 Th(e){let t=null;for(let i of[".json",".jsonc"]){let s=he.join(e,`clouduser.wrangler${i}`);if(te.existsSync(s)){t=s;break}}if(!t)return;let r=te.readFileSync(t,"utf8"),n;try{n=pl(r)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=_h.parse(n);if(o.d1_databases&&o.d1_databases.length>0&&o.d1_databases.length>5)throw new Error(`Too many D1 databases configured: ${o.d1_databases.length}. Maximum allowed is 5.`);if(o.kv_namespaces&&o.kv_namespaces.length>0&&o.kv_namespaces.length>5)throw new Error(`Too many KV namespaces configured: ${o.kv_namespaces.length}. Maximum allowed is 5.`);if(o.r2_buckets&&o.r2_buckets.length>0){if(o.r2_buckets.length>5)throw new Error(`Too many R2 buckets configured: ${o.r2_buckets.length}. Maximum allowed is 5.`);p.info(`validating ${o.r2_buckets.length} object storage bucket name(s)...`);for(let i of o.r2_buckets)xF(i.bucket_name)}}V();Yr();async function Oh(e,t={}){let r=t.projectPath||process.cwd(),n=Date.now(),o=B.join(r,".tmp",`webflow-build-${n}`),i=t.outputDir||B.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=ml(r);await _e(t.telemetry,"cloud_build_start",!0,0,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),S.mkdirSync(o,{recursive:!0});try{p.info(Q.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
|
|
95
|
-
`)),await FF(r,e.framework,t.telemetry),p.info(Q.green(`--- \u{1F527} Setting up framework configuration ----------------------
|
|
96
|
-
`)),await _F(r,e,s,t.deployUrl,t.environmentId),p.info(Q.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
|
|
97
|
-
`)),await Sh(e,r),Th(r),p.info(Q.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
|
|
98
|
-
`)),p.info(`running ${e.config.build_command}...`),await EF(r,e.config.build_command,t.telemetry),p.info(Q.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
|
|
99
|
-
`)),await CF(r,i),p.info(Q.green(`--- \u{1F4C1} Copying assets ------------------------------------------
|
|
100
|
-
`)),await SF(r,i,e,s),p.info(Q.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
|
|
101
|
-
`));let l=await TF(i),c=Date.now()-a;return p.info(`\u2705 Build completed in ${(c/1e3).toFixed(1)}s`),await _e(t.telemetry,"cloud_build_success",!0,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),l}catch(l){let c=Date.now()-a;throw await _e(t.telemetry,"cloud_build_failure",!1,c,{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l))),l}}function ml(e){let t=B.join(e,"wrangler.json");if(!S.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let r=JSON.parse(S.readFileSync(t,"utf8")),n=r.kv_namespaces||[],o=r.d1_databases||[],i=r.r2_buckets||[],s=r.vars||{};return{hasKV:n.length>0,hasD1:o.length>0,hasR2:i.length>0,hasVars:Object.keys(s).length>0,kvCount:n.length,d1Count:o.length,r2Count:i.length,varCount:Object.keys(s).length}}catch(r){return console.debug("Failed to parse wrangler.json for bindings detection:",r),{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0}}}function Ph(e){try{let t=B.dirname(e);t.includes(".tmp/webflow-build-")&&(p.info(Q.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
|
|
102
|
-
`)),S.rmSync(t,{recursive:!0,force:!0}))}catch(t){p.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function Ih(e,t){try{if(!t.config.config_template_path)return;let r=B.join(__dirname,t.config.config_template_path),n=B.basename(r,".template"),o=n.slice(0,n.lastIndexOf("."));p.info(Q.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
|
|
103
|
-
`));for(let s of["mjs","cjs","js","ts"]){let a=B.join(e,`clouduser.${o}.${s}`),u=B.join(e,`${o}.${s}`);if(S.existsSync(a)){p.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),S.existsSync(u)&&S.unlinkSync(u),S.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=B.join(e,`clouduser.wrangler${s}`);if(S.existsSync(a)){p.info(`restoring user wrangler${s} from backup...`);let u=B.join(e,"wrangler.json");S.existsSync(u)&&S.unlinkSync(u);let l=B.join(e,`wrangler${s}`);S.renameSync(a,l);break}}let i=B.join(e,"clouduser");S.existsSync(i)&&(p.info("cleaning up clouduser directory..."),S.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=B.join(e,B.basename(s));S.existsSync(a)&&(p.info(`cleaning up additional config file ${a}...`),S.unlinkSync(a))}}catch(r){p.warn(`Warning: Failed to cleanup framework configuration: ${r}`)}}async function FF(e,t,r){let n=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=B.join(e,"package.json"),u=JSON.parse(S.readFileSync(a,"utf8"));u.dependencies?.["@astrojs/react"]||u.devDependencies?.["@astrojs/react"]||(p.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,qr.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=B.join(e,"package-lock.json");S.existsSync(i)?(p.info("Running npm ci..."),(0,qr.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(p.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,qr.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-n;await _e(r,"cloud_install_dependencies_success",!0,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-n;throw await _e(r,"cloud_install_dependencies_failure",!1,s,{framework:t,hasPackageLock:S.existsSync(B.join(e,"package-lock.json")),errorType:i instanceof Error?i.name:"unknown",errorMessage:i instanceof Error?i.message:String(i)},i instanceof Error?i:new Error(String(i))),i}}async function _F(e,t,r,n,o){if(p.info(`Framework: ${t.framework}`),p.info(`Mount path: ${r}`),p.info(`Deployment type: ${t.config.deployment_type}`),!t.config.config_template_path)return;let i=B.join(__dirname,t.config.config_template_path),s=B.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let d of["mjs","cjs","js","ts"]){let f=B.join(e,`${a}.${d}`);if(S.existsSync(f)){let m=B.join(e,`clouduser.${a}.${d}`);p.info(`renaming user base config /${a}.${d} to /clouduser.${a}.${d}...`),S.renameSync(f,m);break}}let u=B.join(e,s);p.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=S.readFileSync(i,"utf8").replace(/\$\{([^}]+)\}/g,(d,f)=>({COSMIC_MOUNT_PATH:r,COSMIC_DEPLOY_URL:n||(o?`https://${o}.wf-app-prod.cosmic.webflow.services`:"")})[f]||d);S.writeFileSync(u,c);for(let d of t.config.additional_config_files||[]){let f=B.join(__dirname,d);S.statSync(f,{throwIfNoEntry:!1})?(p.info(`copying additional config file /${d} to ${B.join(e,B.basename(d))}`),S.copyFileSync(f,B.join(e,B.basename(d)))):p.warn(`additional config file /${d} does not exist; skipping`)}}async function EF(e,t,r){let n=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,qr.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-n;await _e(r,"cloud_build_command_success",!0,a,{buildCommand:t})}catch(o){let i=Date.now()-n;throw await _e(r,"cloud_build_command_failure",!1,i,{buildCommand:t,errorType:o instanceof Error?o.name:"unknown",errorMessage:o instanceof Error?o.message:String(o)},o instanceof Error?o:new Error(String(o))),new Error(`Build command failed: ${t}`)}}async function CF(e,t){S.mkdirSync(t,{recursive:!0});let r=B.join(e,"wrangler.json"),n=B.join(e,"wrangler.jsonc");if(!S.existsSync(r)&&!S.existsSync(n))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,qr.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function SF(e,t,r,n){let o=r.config.assets_path,i=r.config.assets_exclude_path,s=n.replace(/\/+$/,"").replace(/^\/+/,"");if(r.framework==="nextjs"||r.framework==="astro"){let d=B.join(e,o);if(S.existsSync(d)&&S.statSync(d).isDirectory()){let m=S.readdirSync(d,{withFileTypes:!0}).find(y=>!(!y.isDirectory()||i&&y.name===i||r.framework==="astro"&&(y.name==="_routes.json"||y.name==="_worker.js")));m&&(o=`${o}/${m.name}`)}}let a=B.join(t,"assets",s||"");S.mkdirSync(a,{recursive:!0});let u=B.join(e,o);if(S.existsSync(u)&&S.statSync(u).isDirectory()){p.info(`copying assets from /${o} to output/assets...`);try{i?(p.info(`excluding ${i}`),jh(u,a,i)):fl(u,a)}catch(d){p.error(`Failed to copy assets: ${d}`)}}else p.info("No assets to copy or assets directory not found");let l=B.join(e,"webflow.json");S.existsSync(l)&&S.copyFileSync(l,B.join(t,"webflow.json"));let c=null;for(let d of[".json",".jsonc"]){let f=B.join(e,`clouduser.wrangler${d}`);if(S.existsSync(f)){c=f;break}}if(c){p.info("including user wrangler config in output..."),S.copyFileSync(c,B.join(t,"clouduser.wrangler.json"));let d=B.join(e,"clouduser","migrations");if(S.existsSync(d)){p.info("copying migrations from clouduser/migrations to output/migrations...");let f=B.join(t,"migrations");fl(d,f)}}}async function TF(e){let t=`${e}.tar.gz`;try{return await Ah.create({gzip:!0,file:t,cwd:B.dirname(e)},[B.basename(e)]),p.info(`Tarball created: ${t}`),t}catch(r){throw p.error(`Failed to create tarball: ${r}`),new Error("Failed to create tarball")}}function fl(e,t){S.mkdirSync(t,{recursive:!0});let r=S.readdirSync(e,{withFileTypes:!0});for(let n of r){let o=B.join(e,n.name),i=B.join(t,n.name);n.isDirectory()?fl(o,i):S.copyFileSync(o,i)}}function jh(e,t,r){S.mkdirSync(t,{recursive:!0});let n=S.readdirSync(e,{withFileTypes:!0});for(let o of n){if(o.name===r)continue;let i=B.join(e,o.name),s=B.join(t,o.name);o.isDirectory()?jh(i,s,r):S.copyFileSync(i,s)}}V();var wi=process.env.BUILD_ENV==="development"?"530671685bda4c7d91b2b585af9aeb3b334eda3671d2ecead5a70a3b40b9dc3b":process.env.BUILD_ENV==="acceptance"?"1523a726fdc4e2be0fd575642dfe426a778cf0b173b6db7a24c92bae78bcb555":"4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",vi=["sites:read","sites:write","authorized_user:read"];function hl(){let e=process.env.WEBFLOW_SITE_ID,t=process.env.WEBFLOW_SITE_API_TOKEN;return e&&t?{siteId:e,accessToken:t}:null}function Me(){let e=hl();return e||(p.error("Error: Missing required environment variables:"),p.error("- WEBFLOW_SITE_ID"),p.error("- WEBFLOW_SITE_API_TOKEN"),p.error(`
|
|
104
|
-
To set up your credentials, run:`),p.error(" webflow auth login"),p.error(`
|
|
105
|
-
Alternatively, you can manually set these environment variables.`),process.exit(1)),e}Re();de();V();var AF="DUPLICATE_ENVIRONMENT_MOUNT",OF="ENVIRONMENT_MOUNT_MISMATCH",PF="DUPLICATE_ENVIRONMENT_BRANCH",IF="INVALID_MOUNT_PATH_FORMAT",jF="INVALID_PROJECT_ID",Bh={[AF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[OF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[PF]:"An environment with this branch already exists for this project.",[IF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[jF]:"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 Lh(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 r=t.msg||"";p.error(`Error Details: ${JSON.stringify({timestamp:t.timestamp,code:t.code,message:t.msg,status:t.status,stack:t.stack},null,2)}`);for(let n in Bh)if(r.includes(n))return Bh[n];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var Hr=D(require("fs")),gl=require("child_process");V();var Nh=104857600;function Mh(e){if(e===0)return"0 B";let t=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,n)).toFixed(1))} ${r[n]}`}function BF(){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 yl(e,t){let{accessToken:r}=Me(),n=await fetch(`${Z}${e}`,{method:t.method,headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"},body:t.body?JSON.stringify(t.body):void 0});if(!n.ok){let o=await n.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=Lh(i);throw new Error(s)}return n.json()}async function Rh(e,t,r){let{manifest:n}=se(),o=n.cloud||{},i=o.project_id,s=o.framework;s||(p.error("Error: No framework specified in webflow.json"),p.error("Please ensure your webflow.json has a cloud.framework property"),process.exit(1));let{siteId:a,accessToken:u}=Me(),l=await LF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:r?.projectName,description:r?.description,directory:r?.directory,version:BF()});return!i&&l.project_id&&(p.info("\u{1F4DD} Updating webflow.json with project ID..."),ge({cloud:{...o,project_id:l.project_id}})),l}async function LF(e){let{siteId:t,framework:r,mountPath:n,environment:o,version:i,projectId:s,projectName:a,description:u,directory:l}=e,c={framework:r,mount_path:n,environment:o,version:i};return s&&(c.project_id=s),a&&(c.project_name=a),u&&(c.description=u),l&&(c.app_path=l),yl(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function $h(e){let{siteId:t}=Me();return yl(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function zh(){let{siteId:e}=Me();return yl(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function Wh(e,t){if(!Hr.existsSync(e))throw new Error(`Tarball not found at ${e}`);let r=Hr.statSync(e);if(r.size>Nh)throw new Error(`Build output is too large (${Mh(r.size)}). Maximum allowed size is ${Mh(Nh)}.`);let n=Hr.readFileSync(e),o=JSON.parse(t);if(!o.fields)throw new Error("Upload URL is missing fields property");let i=new FormData;Object.entries(o.fields).forEach(([u,l])=>{i.append(u,l)});let s=new Blob([n],{type:"application/gzip"});i.append("file",s,"output.tar.gz");let a=await fetch(o.url,{method:"POST",body:i});if(!a.ok){let u=await a.text();throw p.error(`\u274C Upload failed with response: ${u}`),new Error(`Failed to upload tarball: ${a.status} ${a.statusText}`)}}async function Uh(e,t){if(!e||e==="undefined")throw new Error("Completion URL is undefined or invalid");let r=new URL(e);t&&r.searchParams.set("failed","true");let n=await fetch(r.toString(),{method:"GET"});if(!n.ok)throw new Error(`Failed to trigger deployment: ${n.status} ${n.statusText}`)}var qn=require("@inquirer/prompts");Zi();V();async function Vh(e,t){let{siteId:r,accessToken:n}=Me(),o=lr("Validating mount path configuration...").start();try{let i=await $n(n,r),s=await Ya(n,r),a=[`${i.shortName}.webflow.io`,...s.customDomains?.map(m=>m.url)||[]],u=0;o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (0/${a.length})`;let l=a.map(async m=>{try{let y=await Ka(m),k=Array.isArray(y.cosmic)?y.cosmic.map(C=>C.mountPath).filter(C=>typeof C=="string"):[],z=Xa(y,e,t);return{domain:m,mountPaths:k,isValid:z===!0}}catch(y){return{domain:m,mountPaths:[],isValid:!1,error:y instanceof Error?y.message:String(y)}}finally{u++,o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (${u}/${a.length})`}}),c=await Promise.all(l),d=c.some(m=>!m.isValid),f=c.every(m=>m.isValid);return o.succeed("Mount path validation completed"),{isValid:f,domains:c,needsPublishing:d}}catch(i){throw o.fail("Mount path validation failed"),i}}async function Gh(e,t){let{siteId:r,accessToken:n}=Me();try{let o=await $n(n,r),i=await Ya(n,r),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await Ka(l),d=Array.isArray(c.cosmic)?c.cosmic.map(m=>m.mountPath).filter(m=>typeof m=="string"):[],f=Xa(c,e,t);return{domain:l,isValid:f}}catch(c){return p.debug(`Could not verify mount path for ${l}: ${c}`),{domain:l,isValid:!1}}});return(await Promise.all(a)).filter(l=>l.isValid).map(l=>l.domain)}catch(o){return p.debug(`Error getting valid domains: ${o}`),[]}}function qh(e,t){return e.map(r=>`${r.startsWith("localhost")||r.startsWith("127.0.0.1")?"http":"https"}://${r}${t}`)}async function Hh(e){let t=e.map(n=>({name:n,value:n,checked:!0})),r=await(0,qn.checkbox)({message:"Select which domains you want to publish to update the mount path configuration:",choices:t});for(;r.length===0;)p.error("Please select at least one domain to publish to."),r=await(0,qn.checkbox)({message:"Select which domains you want to publish to update the mount path configuration:",choices:t});return r}async function Jh(){return await(0,qn.confirm)({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 bl(e){let{siteId:t,accessToken:r}=Me(),n=lr(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await $n(r,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await Zm(r,t,{domains:a,publishToWebflowSubdomain:s}),n.succeed(`Site published successfully to selected domains: ${e.join(", ")}`)}catch{throw n.fail("Failed to publish site"),new Error("Failed to publish site")}}Re();V();Yr();de();var ki=async()=>{try{let e=await sl();return Object.keys(e)}catch(e){return p.error(`Failed to get available scaffolds: ${e}`),[]}},Dl=async(e,t,r=li,n)=>{let o=`./${e}`,i=await sl(),s=null,a=!1;try{let u=Date.now(),l=await Br({clientId:wi,scope:vi}),c=await oi(l);c.length===0&&(p.error("Error: No Webflow sites found in your account."),p.error("Please make sure you have at least one site in your Webflow account."),process.exit(1));let d;n?(d=c.find(m=>m.id===n),d||(p.error(`Error: Site with ID "${n}" not found in your account.`),p.info("Available sites:"),c.forEach(m=>{p.info(`- ${m.displayName} (ID: ${m.id})`)}),process.exit(1)),p.info(`Using site: ${d.displayName} (${d.id})`)):d=await ii(c),s=ci({authToken:l,siteId:d.id}),await il(e,t,r,i,d.id,l),process.chdir(o),await s.promptForConsentIfNeeded(),p.info("Running devlink sync to fetch your Webflow components...");try{await NF({site:d.id,apiToken:l}),a=!0}catch(m){p.error(`Failed to run devlink sync: ${m}`),p.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}let f=Date.now()-u;await s.trackProjectInit(r,!0,void 0,{devlinkSyncStatus:a,totalDuration:f,mountPath:t}),Zh(e)}catch(u){p.error("Error during Webflow authentication:"),p.error(String(u)),await il(e,t,r,i),process.chdir(o),p.error("Project scaffold was created, but authentication failed."),p.error("To set up Webflow credentials later, run:"),p.error(" webflow auth login"),Zh(e),process.exit(1)}},NF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(Na(),Zf));await t(void 0,{site:e.site,apiToken:e.apiToken})},MF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=se();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},RF=async(e,t,r)=>{p.info("\u{1F50D} Validating mount path configuration...");let n=await Vh(e,t);if(n.isValid)p.info("\u2705 Mount path validation passed");else if(p.info(`
|
|
106
|
-
\u{1F4CB} Mount path validation results:`),n.domains.forEach(o=>{let i=o.isValid?"\u2705":"\u274C",s=o.isValid?`(mountPath: ${o.mountPaths[0]})`:"(no matching mountPath)";p.info(`${i} ${o.domain} ${s}`),o.error&&p.debug(` Error: ${o.error}`)}),n.needsPublishing)if(r){p.info("\u{1F680} Auto-publishing site to update mount path configuration...");let o=n.domains.filter(i=>!i.isValid).map(i=>i.domain);await bl(o)}else if(await Jh()){let i=n.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await Hh(i);await bl(s)}else p.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},$F=async(e,t,r,n)=>{p.info(`
|
|
107
|
-
\u{1F3D7}\uFE0F Building project...`);let o=await Oh(e,{mountPath:r,telemetry:n?.telemetry,deployUrl:t.deploy_url,environmentId:t.environment_id});p.info("\u{1F4E4} Uploading build artifacts...");let i=Date.now();await Wh(o,t.upload_url);let s=Date.now()-i;return p.info(`\u2705 Upload completed in ${(s/1e3).toFixed(1)}s`),o},zF=async(e,t)=>{p.success(`
|
|
108
|
-
\u{1F310} Your cloud app will soon be available at:`);try{let r=await Gh(e,t),n=qh(r,e);n.length>0?n.forEach(o=>{p.info(` ${o}`)}):p.warn(" No domains found with the correct mount path configuration yet.")}catch(r){p.warn(` Could not determine deployment links: ${r instanceof Error?r.message:r}`)}},WF=e=>{e.site_slug?p.success(`Visit your deployment:
|
|
109
|
-
|
|
110
|
-
${hr}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):p.info(`
|
|
111
|
-
Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},UF=async(e,t,r)=>{try{await Uh(e.completion_url,!!r),r?p.error(`
|
|
112
|
-
\u274C Deployment failed due to build error.`):(p.success(`
|
|
113
|
-
\u2705 Deployment triggered successfully!`),await zF(t,e.environment_id),WF(e))}catch(n){p.error(`Failed to trigger deployment: ${n}`),process.exit(1)}},VF=(e,t)=>{e&&Ih(process.cwd(),e),t&&Ph(t)},Yh=async(e,t,r)=>{let n=null,o=null,i=Date.now(),s=null,a=null,u=ml(process.cwd());await _e(r?.telemetry,"cloud_deploy_start",!0,void 0,{environment:e,mountPath:t,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,cloudflareBindings:u});try{p.info("\u{1F527} Detecting framework..."),s=await ah(),p.info(`Framework: ${s.framework}`),p.info(`Build command: ${s.config.build_command}`),p.info("\u{1F3D7}\uFE0F Building project..."),n=await Rh(e,t,r),MF(r)?p.info("\u23ED\uFE0F Skipping mount path validation..."):await RF(t,n.environment_id,r?.autoPublish),o=await $F(s,n,t,r),p.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let l=Date.now()-i;await _e(r?.telemetry,"cloud_deploy_success",!0,l,{environment:e,mountPath:t,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,framework:s.framework,buildCommand:s.config.build_command,cloudflareBindings:u})}catch(l){a=l instanceof Error?l:new Error(String(l)),p.error("Error during deployment initialization:"),p.error(a.message);let c=Date.now()-i;await _e(r?.telemetry,"cloud_deploy_failure",!1,c,{environment:e,mountPath:t,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,cloudflareBindings:u,errorType:l instanceof Error?l.name:"unknown",errorMessage:l instanceof Error?l.message:String(l)},l instanceof Error?l:new Error(String(l)))}finally{VF(s,o),n&&await UF(n,t,a),a&&process.exit(1)}},Zh=e=>{p.info("--- "),p.info(Q.bold.green("Get started with the following commands:")),p.info(` cd ${e}`),p.info(" npm install"),p.info(" npm run dev"),p.info(` webflow cloud deploy
|
|
114
|
-
|
|
115
|
-
`),p.info("Run the following command to sync Webflow components when they update:"),p.info(` webflow devlink sync
|
|
116
|
-
`),p.info("--- ")};Re();var Je=require("@inquirer/prompts");V();var Kh=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","nextjs").action(async(r,n)=>{let{framework:o}=n;if(!(await ki()).find(a=>a===o)){p.error(`Framework ${o} not found`);return}await Dl(r,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let r=await ki();p.info("Available project templates:"),r.length>0?r.forEach(n=>p.info(`- ${n}`)):p.info("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").option("-n, --project-name <name>","Project name").option("-f, --framework <framework>","Framework to use (e.g., astro, nextjs)").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-s, --site-id <siteId>","Webflow site ID to connect to").action(async r=>{let n=process.stdin.isTTY,o=await ki(),i={};n&&(r.projectName||(i.projectName=await(0,Je.input)({message:"What would you like to name your project?",validate:d=>d.trim()===""?"Project name cannot be empty":!0})),r.framework||(i.scaffoldName=await(0,Je.select)({message:"Which framework would you like to use?",choices:o.map(d=>({name:d,value:d})),default:"astro"})),r.mount||(i.mountPath=await(0,Je.input)({message:"What path do you want to use locally? (e.g., /app)",default:"/app",validate:d=>d.match(/^\/[^/].+$/)?!0:'Mount path must be "/" followed by one or more characters'})));let s=r.projectName||i.projectName,a=r.framework||i.scaffoldName,u=r.mount||i.mountPath||"/app",l=r.siteId,c=!0;(!s||s.trim()==="")&&(p.error("--project-name cannot be empty"),c=!1),(!a||!o.includes(a))&&(p.error(`--framework "${a||"undefined"}" not found`),p.error("Available frameworks:"),o.forEach(d=>p.error(`- ${d}`)),c=!1),(!u||!u.match(/^\/[^/].+$/))&&(p.error('--mount must be "/" followed by one or more characters'),c=!1),!l&&!n&&(p.error("--site-id is required"),c=!1),(!c||typeof s!="string"||typeof u!="string"||typeof a!="string")&&process.exit(1),await Dl(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 r=>{let n;try{let{siteId:o,accessToken:i}=Me();n=ci({authToken:i,siteId:o}),await n.promptForConsentIfNeeded()}catch(o){p.debug(`Failed to initialize telemetry: ${o}`)}try{if(r.directory)try{process.chdir(r.directory),p.info(`Changed directory to: ${r.directory}`)}catch(d){p.error(`Error: Could not change to directory ${r.directory}`),p.error(d instanceof Error?d.message:String(d)),process.exit(1)}let{manifest:o}=se(),s=(o.cloud||{}).project_id,a,u,l=r.projectName,c=r.description;if(r.environment&&r.mount)a=r.environment,u=r.mount,u.match(/^\/[^/].+$/)||(p.error('--mount must be "/" followed by one or more characters'),process.exit(1));else{let d=[];if(!s)try{let m=await zh();if(m.projects.length>0){let y=await(0,Je.select)({message:"Select a project to deploy to:",choices:[...m.projects.map(k=>({name:`${k.name} (${k.description||"No description"})`,value:k.id})),{name:"Create new project",value:null}]});y?(s=y,p.info("\u{1F4DD} Updating webflow.json with project ID..."),ge({cloud:{project_id:y}})):p.info("Creating a new project will be handled during deployment.")}else p.info("No existing projects found. A new project will be created during deployment.")}catch(m){p.warn("Could not fetch existing projects. A new project will be created during deployment."),p.warn(m instanceof Error?m.message:String(m))}if(!s&&!l&&(l=await(0,Je.input)({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:m=>m.trim()===""?"Project name cannot be empty":!0})),s)try{let y=(await $h(s)).environments.map(k=>({name:`${k.branch} (${k.mount})`,value:{branch:k.branch,mount:k.mount}}));d.push(...y)}catch(m){p.error("Error fetching project environments:"),p.error(m instanceof Error?m.message:String(m)),process.exit(1)}d.push({name:"Create new environment",value:null});let f=await(0,Je.select)({message:"Select an environment to deploy to:",choices:d});f?(a=f.branch,u=f.mount):(r.environment?a=r.environment:a=await(0,Je.input)({message:"What environment would you like to deploy to?",default:"main",validate:m=>m.trim()===""?"Environment cannot be empty":!0}),r.mount?u=r.mount:u=await(0,Je.input)({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app",validate:m=>m.match(/^\/[^/].+$/)?!0:'Mount path must be "/" followed by one or more characters'}))}await Yh(a,u,{projectName:l,description:c,directory:r.directory,skipMountPathCheck:r.skipMountPathCheck,autoPublish:r.autoPublish,telemetry:n})}catch(o){p.error("Error during deployment setup:"),p.error(o instanceof Error?o.message:String(o)),process.exit(1)}})};var Xh=require("@inquirer/prompts");cr();var Qh=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 r=>{try{let n=hl();if(!r.force&&n){console.log("\u2705 Webflow credentials already exist in .env file:"),n.siteId&&console.log(` Site ID: ${n.siteId}`),console.log(" API Token: [hidden]"),console.log(`
|
|
117
|
-
Use --force flag to reauthenticate anyway.`);return}console.log("\u{1F510} Starting Webflow authentication...");let o=await Br({clientId:wi,scope:vi});console.log("\u2705 Authentication successful!"),console.log("\u{1F4E1} Fetching your Webflow sites...");let i=await oi(o);i.length===0&&(console.error("\u274C No Webflow sites found in your account."),console.error("Please make sure you have at least one site in your Webflow account."),process.exit(1)),console.log(`Found ${i.length} site${i.length>1?"s":""} in your account.`);let s=await ii(i);console.log("\u{1F4BE} Saving credentials..."),jr({siteId:s.id,siteApiToken:o}),console.log(`
|
|
118
|
-
\u{1F389} Authentication complete!`),console.log(`\u2705 Connected to site: ${s.displayName}`),console.log(`\u2705 Site ID: ${s.id}`),console.log("\u2705 Credentials saved to .env file"),console.log(`
|
|
119
|
-
You can now use other Webflow CLI commands like 'webflow devlink sync'`)}catch(n){console.error("\u274C Authentication failed:"),console.error(n instanceof Error?n.message:n),process.exit(1)}}),t.command("telemetry").description("Manage telemetry settings for all Webflow CLI commands").option("--enable","Enable telemetry for all commands").option("--disable","Disable telemetry for all commands").option("--status","Show current telemetry status").action(async r=>{let n=Ot.getInstance();if(r.status){let s=await n.getTelemetryStatus();console.log(`
|
|
120
|
-
\u{1F4CA} Telemetry Status:`),console.log(` Enabled: ${s.enabled?"\u2705 Yes":"\u274C No"}`),console.log(` Source: ${s.source}`),console.log(` Has Preference: ${s.hasPreference?"\u2705 Yes":"\u274C No"}`);return}if(r.enable){await n.setGlobalPreference(!0),console.log("\u2705 Telemetry enabled for all Webflow CLI commands");return}if(r.disable){await n.setGlobalPreference(!1),console.log("\u274C Telemetry disabled for all Webflow CLI commands");return}let o=await n.getTelemetryStatus();console.log(`
|
|
121
|
-
\u{1F4CA} Current Telemetry Status:`),console.log(` Enabled: ${o.enabled?"\u2705 Yes":"\u274C No"}`),console.log(` Source: ${o.source}`);let i=await(0,Xh.select)({message:"What would you like to do?",choices:[{name:"Enable telemetry for all commands",value:"enable"},{name:"Disable telemetry for all commands",value:"disable"},{name:"Cancel",value:"cancel"}]});i==="enable"?(await n.setGlobalPreference(!0),console.log("\u2705 Telemetry enabled for all Webflow CLI commands")):i==="disable"&&(await n.setGlobalPreference(!1),console.log("\u274C Telemetry disabled for all Webflow CLI commands"))})};var tg=D(ns()),or=new eg.Command,GF=tg.default.version;or.name("webflow").description("Webflow CLI").version(GF).hook("preAction",async()=>{try{await new un().prompt()}catch(e){p.debug(e)}});Qh(or);pc(or);Yf(or);Kh(or);eh(or);or.parse();
|
|
121
|
+
${ne.green("INFO:")} All logs: ${_e}`)}var rg=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors.").option("--debug-bundler","Display final bundler configurations for debugging purposes.").option("--dev","Bundle in development mode for debugging purposes.").option("--verbose","Display more information for debugging purposes.");t.command("share").description("Share a library of Code Components to your Webflow Workspace.").option("--manifest <path>","Path to the webflow.json file. Default: scan current directory.").option("--api-token <token>","Workspace API token. Default: value set in WEBFLOW_WORKSPACE_API_TOKEN env variable.").action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await wl(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").requiredOption("--public-path <path>","Override the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'","dist").action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await vl(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(async()=>{await xl()})};var og=D(us());function ig(e){e.option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines.")}function sg(e){ig(e),e.commands.forEach(t=>{sg(t)})}function ag(e){let t=og.default.version;e.name("webflow").description("Webflow CLI").version(t),ig(e),e.hook("preAction",async n=>{n.opts().input||Du(!0);try{await new fr().prompt()}catch(o){p.debug(o)}}),Yu(e),Cc(e),dm(e),lh(e),rg(e),e.commands.forEach(n=>{sg(n)})}var ug=new lg.Command;ag(ug);ug.parse();
|
|
122
122
|
//# sourceMappingURL=index.js.map
|