comp-hub 0.0.113 → 0.0.115

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.
Files changed (27) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/website/dist/assets/{atom-one-dark-BFQCq35N.js → atom-one-dark-CMFPIuLm.js} +1 -1
  3. package/dist/website/dist/assets/{index-CpR-gO1D.js → index-B4sTJbBw.js} +1 -1
  4. package/dist/website/dist/assets/{index-BvHtAQJ6.js → index-B9j-Dtc8.js} +1 -1
  5. package/dist/website/dist/assets/{index-DSitPX3c.js → index-BEav7lOm.js} +1 -1
  6. package/dist/website/dist/assets/{index-Df35dpVA.js → index-BH6NwLy-.js} +2 -2
  7. package/dist/website/dist/assets/{index-Z7-k1yyE.js → index-Bibf8zX6.js} +1 -1
  8. package/dist/website/dist/assets/{index-Jbn8LmD6.js → index-BzLvpGyb.js} +1 -1
  9. package/dist/website/dist/assets/{index-Co3pVMNN.js → index-CKjVNRgN.js} +1 -1
  10. package/dist/website/dist/assets/{index-ihzkMZPo.js → index-CQuOLxxx.js} +1 -1
  11. package/dist/website/dist/assets/{index-8UBYsfSv.js → index-CTlKpgoK.js} +1 -1
  12. package/dist/website/dist/assets/{index-BymI4fQr.js → index-CcKVOPyo.js} +10 -10
  13. package/dist/website/dist/assets/{index-lST4jsLg.js → index-CcOWLkQv.js} +1 -1
  14. package/dist/website/dist/assets/{index-ZOeEdiZ1.js → index-CnpCr086.js} +1 -1
  15. package/dist/website/dist/assets/{index-BE0u3Bab.js → index-DHkTiLFU.js} +1 -1
  16. package/dist/website/dist/assets/index-DMfBsXT1.js +1 -0
  17. package/dist/website/dist/assets/{index-FpiPNIBz.js → index-SeVeFBYm.js} +1 -1
  18. package/dist/website/dist/assets/{index-7vz6VOEt.js → index-X93VA_va.js} +1 -1
  19. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-wj7dKlz7.js → index.vue_vue_type_script_setup_true_lang-CWN6kyJn.js} +1 -1
  20. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-BxHkprFF.js → index.vue_vue_type_script_setup_true_lang-DJPU20Dv.js} +1 -1
  21. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-DM_RSm5-.js → index.vue_vue_type_script_setup_true_lang-Dm6ZgcMX.js} +1 -1
  22. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-CdnZ1p5K.js → index.vue_vue_type_script_setup_true_lang-RkJc2Cxx.js} +1 -1
  23. package/dist/website/dist/assets/{index.vue_vue_type_style_index_0_lang-26LZD4nL.js → index.vue_vue_type_style_index_0_lang-UJiIYWdS.js} +1 -1
  24. package/dist/website/dist/assets/{md5-Bt-65bnm.js → md5-_aBD2we8.js} +1 -1
  25. package/dist/website/dist/index.html +1 -1
  26. package/package.json +1 -1
  27. package/dist/website/dist/assets/index-JMXlVqZB.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-ihzkMZPo.js","assets/index-BE0u3Bab.js","assets/index-Ck4C1E7S.css","assets/index.vue_vue_type_script_setup_true_lang-wj7dKlz7.js","assets/md5-Bt-65bnm.js","assets/index-BVOHuBIX.css","assets/index-CpR-gO1D.js","assets/index-8UBYsfSv.js","assets/atom-one-dark-BFQCq35N.js","assets/atom-one-dark-ZgkIHsf0.css","assets/index-CCTatqst.css","assets/index-7vz6VOEt.js","assets/index.vue_vue_type_script_setup_true_lang-DM_RSm5-.js","assets/index-DSitPX3c.js","assets/index-BymI4fQr.js","assets/index-CWDRcuvp.css","assets/index.vue_vue_type_script_setup_true_lang-BxHkprFF.js","assets/index.vue_vue_type_script_setup_true_lang-CdnZ1p5K.js","assets/index-DYP7pi_n.css","assets/index-Cbq0L5UT.css","assets/index-uKMYdTxR.css","assets/index-FpiPNIBz.js","assets/index-Jbn8LmD6.js","assets/index-ZOeEdiZ1.js","assets/index-CjqtgB2v.css","assets/index-Co3pVMNN.js","assets/index.vue_vue_type_style_index_0_lang-26LZD4nL.js","assets/index-0g8rH4IY.css","assets/index-dExr9we_.css","assets/index-lST4jsLg.js","assets/index-DzIqUKJQ.css","assets/index-Z7-k1yyE.js","assets/index-JMXlVqZB.js","assets/index-Bg9J68nC.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CQuOLxxx.js","assets/index-DHkTiLFU.js","assets/index-Ck4C1E7S.css","assets/index.vue_vue_type_script_setup_true_lang-CWN6kyJn.js","assets/md5-_aBD2we8.js","assets/index-BVOHuBIX.css","assets/index-B4sTJbBw.js","assets/index-CTlKpgoK.js","assets/atom-one-dark-CMFPIuLm.js","assets/atom-one-dark-ZgkIHsf0.css","assets/index-CCTatqst.css","assets/index-X93VA_va.js","assets/index.vue_vue_type_script_setup_true_lang-Dm6ZgcMX.js","assets/index-BEav7lOm.js","assets/index-CcKVOPyo.js","assets/index-CWDRcuvp.css","assets/index.vue_vue_type_script_setup_true_lang-DJPU20Dv.js","assets/index.vue_vue_type_script_setup_true_lang-RkJc2Cxx.js","assets/index-DYP7pi_n.css","assets/index-Cbq0L5UT.css","assets/index-uKMYdTxR.css","assets/index-SeVeFBYm.js","assets/index-BzLvpGyb.js","assets/index-CnpCr086.js","assets/index-CjqtgB2v.css","assets/index-CKjVNRgN.js","assets/index.vue_vue_type_style_index_0_lang-UJiIYWdS.js","assets/index-0g8rH4IY.css","assets/index-dExr9we_.css","assets/index-CcOWLkQv.js","assets/index-DzIqUKJQ.css","assets/index-Bibf8zX6.js","assets/index-DMfBsXT1.js","assets/index-Bg9J68nC.css"])))=>i.map(i=>d[i]);
2
2
  var cX=Object.defineProperty;var uX=(e,t,n)=>t in e?cX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>uX(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/**
3
3
  * @vue/shared v3.5.21
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -132,4 +132,4 @@ function print() { __p += __j.call(arguments, '') }
132
132
  value: `+(a||"<empty string>")+`
133
133
  --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,l),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:u},o},dg=new Map,tf=new Map,y1=45,Y3=Jqe,oM=Qqe;function f5(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===y1&&e.charCodeAt(t+1)===y1}function CV(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===y1&&e.charCodeAt(t+1)!==y1){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Jqe(e){if(dg.has(e))return dg.get(e);const t=e.toLowerCase();let n=dg.get(t);if(n===void 0){const r=f5(t,0),o=r?"":CV(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return dg.set(e,n),n}function Qqe(e){if(tf.has(e))return tf.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=f5(t,n.length);if(!r&&(t=t.toLowerCase(),tf.has(t))){const i=tf.get(t);return tf.set(e,i),i}const o=r?"":CV(t,n.length),a=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(a.length),name:t.substr(n.length),hack:n,vendor:o,prefix:a,custom:r});return tf.set(e,s),s}const h5=["initial","inherit","unset","revert","revert-layer"],Q0=43,vi=45,X3=110,nf=!0,eGe=!1;function Aw(e,t){return e!==null&&e.type===Nn&&e.value.charCodeAt(0)===t}function i0(e,t,n){for(;e!==null&&(e.type===Sr||e.type===po);)e=n(++t);return t}function _c(e,t,n,r){if(!e)return 0;const o=e.value.charCodeAt(t);if(o===Q0||o===vi){if(n)return 0;t++}for(;t<e.value.length;t++)if(!uo(e.value.charCodeAt(t)))return 0;return r+1}function Z3(e,t,n){let r=!1,o=i0(e,t,n);if(e=n(o),e===null)return t;if(e.type!==an)if(Aw(e,Q0)||Aw(e,vi)){if(r=!0,o=i0(n(++o),o,n),e=n(o),e===null||e.type!==an)return 0}else return t;if(!r){const a=e.value.charCodeAt(0);if(a!==Q0&&a!==vi)return 0}return _c(e,r?0:1,r,o)}function tGe(e,t){let n=0;if(!e)return 0;if(e.type===an)return _c(e,0,eGe,n);if(e.type===St&&e.value.charCodeAt(0)===vi){if(!Nf(e.value,1,X3))return 0;switch(e.value.length){case 2:return Z3(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==vi?0:(n=i0(t(++n),n,t),e=t(n),_c(e,0,nf,n));default:return e.value.charCodeAt(2)!==vi?0:_c(e,3,nf,n)}}else if(e.type===St||Aw(e,Q0)&&t(n+1).type===St){if(e.type!==St&&(e=t(++n)),e===null||!Nf(e.value,0,X3))return 0;switch(e.value.length){case 1:return Z3(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==vi?0:(n=i0(t(++n),n,t),e=t(n),_c(e,0,nf,n));default:return e.value.charCodeAt(1)!==vi?0:_c(e,2,nf,n)}}else if(e.type===Pn){let r=e.value.charCodeAt(0),o=r===Q0||r===vi?1:0,a=o;for(;a<e.value.length&&uo(e.value.charCodeAt(a));a++);return a===o||!Nf(e.value,a,X3)?0:a+1===e.value.length?Z3(t(++n),n,t):e.value.charCodeAt(a+1)!==vi?0:a+2===e.value.length?(n=i0(t(++n),n,t),e=t(n),_c(e,0,nf,n)):_c(e,a+2,nf,n)}return 0}const nGe=43,kV=45,xV=63,rGe=117;function Ow(e,t){return e!==null&&e.type===Nn&&e.value.charCodeAt(0)===t}function oGe(e,t){return e.value.charCodeAt(0)===t}function Dp(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){const a=e.value.charCodeAt(o);if(a===kV&&n&&r!==0)return Dp(e,t+r+1,!1),6;if(!Zc(a)||++r>6)return 0}return r}function fg(e,t,n){if(!e)return 0;for(;Ow(n(t),xV);){if(++e>6)return 0;t++}return t}function aGe(e,t){let n=0;if(e===null||e.type!==St||!Nf(e.value,0,rGe)||(e=t(++n),e===null))return 0;if(Ow(e,nGe))return e=t(++n),e===null?0:e.type===St?fg(Dp(e,0,!0),++n,t):Ow(e,xV)?fg(1,++n,t):0;if(e.type===an){const r=Dp(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===Pn||e.type===an?!oGe(e,kV)||!Dp(e,1,!1)?0:n+1:fg(r,n,t))}return e.type===Pn?fg(Dp(e,1,!0),++n,t):0}const sGe=["calc(","-moz-calc(","-webkit-calc("],p5=new Map([[bn,rn],[Un,rn],[Cs,Js],[mo,ws]]);function Hs(e,t){return t<e.length?e.charCodeAt(t):0}function EV(e,t){return J0(e,0,e.length,t)}function TV(e,t){for(let n=0;n<t.length;n++)if(EV(e,t[n]))return!0;return!1}function AV(e,t){return t!==e.length-2?!1:Hs(e,t)===92&&uo(Hs(e,t+1))}function Hb(e,t,n){if(e&&e.type==="Range"){const 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 iGe(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case ws:case rn:case Js:if(e.type!==n)break e;if(n=r.pop(),r.length===0){o++;break e}break;case bn:case Un:case Cs:case mo:r.push(n),n=p5.get(e.type);break}o++}while(e=t(o));return o}function is(e){return function(t,n,r){return t===null?0:t.type===bn&&TV(t.value,sGe)?iGe(t,n):e(t,n,r)}}function tr(e){return function(t){return t===null||t.type!==e?0:1}}function lGe(e){if(e===null||e.type!==St)return 0;const t=e.value.toLowerCase();return TV(t,h5)||EV(t,"default")?0:1}function OV(e){return e===null||e.type!==St||Hs(e.value,0)!==45||Hs(e.value,1)!==45?0:1}function cGe(e){return!OV(e)||e.value==="--"?0:1}function uGe(e){if(e===null||e.type!==or)return 0;const t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Zc(Hs(e.value,n)))return 0;return 1}function dGe(e){return e===null||e.type!==or||!a2(Hs(e.value,1),Hs(e.value,2),Hs(e.value,3))?0:1}function fGe(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case Bb:case na:break e;case ws:case rn:case Js:if(e.type!==n)break e;n=r.pop();break;case Lo:if(n===0)break e;break;case Nn:if(n===0&&e.value==="!")break e;break;case bn:case Un:case Cs:case mo:r.push(n),n=p5.get(e.type);break}o++}while(e=t(o));return o}function hGe(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case Bb:case na:break e;case ws:case rn:case Js:if(e.type!==n)break e;n=r.pop();break;case bn:case Un:case Cs:case mo:r.push(n),n=p5.get(e.type);break}o++}while(e=t(o));return o}function ml(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==Pn)return 0;const o=zb(t.value,0);if(e!==null){const a=t.value.indexOf("\\",o),s=a===-1||!AV(t.value,a)?t.value.substr(o):t.value.substring(o,a);if(e.has(s.toLowerCase())===!1)return 0}return Hb(r,t.value,o)?0:1}}function pGe(e,t,n){return e===null||e.type!==yr||Hb(n,e.value,e.value.length-1)?0:1}function MV(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===an&&Number(t.value)===0?1:e(t,n,r)}}function mGe(e,t,n){if(e===null)return 0;const r=zb(e.value,0);return!(r===e.value.length)&&!AV(e.value,r)||Hb(n,e.value,r)?0:1}function vGe(e,t,n){if(e===null||e.type!==an)return 0;let r=Hs(e.value,0)===43||Hs(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!uo(Hs(e.value,r)))return 0;return Hb(n,e.value,r)?0:1}const gGe={"ident-token":tr(St),"function-token":tr(bn),"at-keyword-token":tr(Nr),"hash-token":tr(or),"string-token":tr(ai),"bad-string-token":tr(Bb),"url-token":tr(Eo),"bad-url-token":tr(na),"delim-token":tr(Nn),"number-token":tr(an),"percentage-token":tr(yr),"dimension-token":tr(Pn),"whitespace-token":tr(Sr),"CDO-token":tr(Dm),"CDC-token":tr(ra),"colon-token":tr(Io),"semicolon-token":tr(Lo),"comma-token":tr(_a),"[-token":tr(Cs),"]-token":tr(Js),"(-token":tr(Un),")-token":tr(rn),"{-token":tr(mo),"}-token":tr(ws)},bGe={string:tr(ai),ident:tr(St),percentage:is(pGe),zero:MV(),number:is(mGe),integer:is(vGe),"custom-ident":lGe,"dashed-ident":OV,"custom-property-name":cGe,"hex-color":uGe,"id-selector":dGe,"an-plus-b":tGe,urange:aGe,"declaration-value":fGe,"any-value":hGe};function yGe(e){const{angle:t,decibel:n,frequency:r,flex:o,length:a,resolution:s,semitones:i,time:l}=e||{};return{dimension:is(ml(null)),angle:is(ml(t)),decibel:is(ml(n)),frequency:is(ml(r)),flex:is(ml(o)),length:is(MV(ml(a))),resolution:is(ml(s)),semitones:is(ml(i)),time:is(ml(l))}}function _Ge(e){return{...gGe,...bGe,...yGe(e)}}const wGe=["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"],SGe=["deg","grad","rad","turn"],CGe=["s","ms"],kGe=["hz","khz"],xGe=["dpi","dpcm","dppx","x"],EGe=["fr"],TGe=["db"],AGe=["st"],aM=Object.freeze(Object.defineProperty({__proto__:null,angle:SGe,decibel:TGe,flex:EGe,frequency:kGe,length:wGe,resolution:xGe,semitones:AGe,time:CGe},Symbol.toStringTag,{value:"Module"}));function OGe(e,t,n){return Object.assign(Vb("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
134
134
  `+t+`
135
- --`+new Array((n||t.length)+1).join("-")+"^"})}const MGe=9,PGe=10,$Ge=12,IGe=13,LGe=32,sM=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class RGe{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}isNameCharCode(t=this.charCode()){return t<128&&sM[t]===1}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(t){for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n!==IGe&&n!==PGe&&n!==$Ge&&n!==LGe&&n!==MGe)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new OGe(t,this.str,this.pos)}scanSpaces(){return this.substringToPos(this.findWsEnd(this.pos))}scanWord(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n>=128||sM[n]===0)break}return this.pos===t&&this.error("Expect a keyword"),this.substringToPos(t)}scanNumber(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n<48||n>57)break}return this.pos===t&&this.error("Expect a number"),this.substringToPos(t)}scanString(){const t=this.str.indexOf("'",this.pos+1);return t===-1&&(this.pos=this.str.length,this.error("Expect an apostrophe")),this.substringToPos(t+1)}}const NGe=9,DGe=10,BGe=12,zGe=13,FGe=32,PV=33,m5=35,iM=38,_1=39,$V=40,VGe=41,IV=42,v5=43,g5=44,lM=45,b5=60,Mw=62,Pw=63,HGe=64,em=91,tm=93,w1=123,cM=124,uM=125,dM=8734,fM={" ":1,"&&":2,"||":3,"|":4};function hM(e){let t=null,n=null;return e.eat(w1),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===g5?(e.pos++,e.skipWs(),e.charCode()!==uM&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(uM),{min:Number(t),max:n?Number(n):0}}function UGe(e){let t=null,n=!1;switch(e.charCode()){case IV:e.pos++,t={min:0,max:0};break;case v5:e.pos++,t={min:1,max:0};break;case Pw:e.pos++,t={min:0,max:1};break;case m5:e.pos++,n=!0,e.charCode()===w1?t=hM(e):e.charCode()===Pw?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case w1:t=hM(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Jc(e,t){const n=UGe(e);return n!==null?(n.term=t,e.charCode()===m5&&e.charCodeAt(e.pos-1)===v5?Jc(e,n):n):t}function J3(e){const t=e.peek();return t===""?null:Jc(e,{type:"Token",value:t})}function jGe(e){let t;return e.eat(b5),e.eat(_1),t=e.scanWord(),e.eat(_1),e.eat(Mw),Jc(e,{type:"Property",name:t})}function WGe(e){let t=null,n=null,r=1;return e.eat(em),e.charCode()===lM&&(e.peek(),r=-1),r==-1&&e.charCode()===dM?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(g5),e.skipWs(),e.charCode()===dM?e.peek():(r=1,e.charCode()===lM&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(tm),{type:"Range",min:t,max:n}}function KGe(e){let t,n=null;if(e.eat(b5),t=e.scanWord(),t==="boolean-expr"){e.eat(em);const r=y5(e,tm);return e.eat(tm),e.eat(Mw),Jc(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===$V&&e.nextCharCode()===VGe&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===em&&(e.skipWs(),n=WGe(e)),e.eat(Mw),Jc(e,{type:"Type",name:t,opts:n})}function qGe(e){const t=e.scanWord();return e.charCode()===$V?(e.pos++,{type:"Function",name:t}):Jc(e,{type:"Keyword",name:t})}function GGe(e,t){function n(o,a){return{type:"Group",terms:o,combinator:a,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((o,a)=>fM[o]-fM[a]);t.length>0;){r=t.shift();let o=0,a=0;for(;o<e.length;o++){const s=e[o];s.type==="Combinator"&&(s.value===r?(a===-1&&(a=o-1),e.splice(o,1),o--):(a!==-1&&o-a>1&&(e.splice(a,o-a,n(e.slice(a,o),r)),o=a+1),a=-1))}a!==-1&&t.length&&e.splice(a,o-a,n(e.slice(a,o),r))}return r}function y5(e,t){const n=Object.create(null),r=[];let o,a=null,s=e.pos;for(;e.charCode()!==t&&(o=XGe(e,t));)o.type!=="Spaces"&&(o.type==="Combinator"?((a===null||a.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[o.value]=!0):a!==null&&a.type!=="Combinator"&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(o),a=o,s=e.pos);return a!==null&&a.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:GGe(r,n)||" ",disallowEmpty:!1,explicit:!1}}function YGe(e,t){let n;return e.eat(em),n=y5(e,t),e.eat(tm),n.explicit=!0,e.charCode()===PV&&(e.pos++,n.disallowEmpty=!0),n}function XGe(e,t){let n=e.charCode();switch(n){case tm:break;case em:return Jc(e,YGe(e,t));case b5:return e.nextCharCode()===_1?jGe(e):KGe(e);case cM:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===cM?2:1))};case iM:return e.pos++,e.eat(iM),{type:"Combinator",value:"&&"};case g5:return e.pos++,{type:"Comma"};case _1:return Jc(e,{type:"String",value:e.scanString()});case FGe:case NGe:case DGe:case zGe:case BGe:return{type:"Spaces",value:e.scanSpaces()};case HGe:return n=e.nextCharCode(),e.isNameCharCode(n)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):J3(e);case IV:case v5:case Pw:case m5:case PV:break;case w1:if(n=e.nextCharCode(),n<48||n>57)return J3(e);break;default:return e.isNameCharCode(n)?qGe(e):J3(e)}}function LV(e){const t=new RGe(e),n=y5(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const Bp=function(){};function pM(e){return typeof e=="function"?e:Bp}function ZGe(e,t,n){function r(s){switch(o.call(n,s),s.type){case"Group":s.terms.forEach(r);break;case"Multiplier":case"Boolean":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)}a.call(n,s)}let o=Bp,a=Bp;if(typeof t=="function"?o=t:t&&(o=pM(t.enter),a=pM(t.leave)),o===Bp&&a===Bp)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const JGe={decorator(e){const t=[];let n=null;return{...e,node(r){const o=n;n=r,e.node.call(this,r),n=o},emit(r,o,a){t.push({type:o,value:r,node:a?null:n})},result(){return t}}}};function QGe(e){const t=[];return Fb(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function eYe(e,t){return typeof e=="string"?QGe(e):t.generate(e,JGe)}const Vn={type:"Match"},Xn={type:"Mismatch"},_5={type:"DisallowEmpty"},tYe=40,nYe=41;function xo(e,t,n){return t===Vn&&n===Xn||e===Vn&&t===Vn&&n===Vn?e:(e.type==="If"&&e.else===Xn&&t===Vn&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function RV(e){return e.length>2&&e.charCodeAt(e.length-2)===tYe&&e.charCodeAt(e.length-1)===nYe}function mM(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&RV(e.name)}function pc(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function l0(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=l0(e.match,t,n),e.then=l0(e.then,t,n),e.else=l0(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function $w(e,t,n){switch(e){case" ":{let r=Vn;for(let o=t.length-1;o>=0;o--){const a=t[o];r=xo(a,r,Xn)}return r}case"|":{let r=Xn,o=null;for(let a=t.length-1;a>=0;a--){let s=t[a];if(mM(s)&&(o===null&&a>0&&mM(t[a-1])&&(o=Object.create(null),r=xo({type:"Enum",map:o},Vn,r)),o!==null)){const i=(RV(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(i in o)){o[i]=s;continue}}o=null,r=xo(s,Vn,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Xn;for(let o=t.length-1;o>=0;o--){const a=t[o];let s;t.length>1?s=$w(e,t.filter(function(i){return i!==a}),!1):s=Vn,r=xo(a,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?Vn:Xn;for(let o=t.length-1;o>=0;o--){const a=t[o];let s;t.length>1?s=$w(e,t.filter(function(i){return i!==a}),!0):s=Vn,r=xo(a,s,r)}return r}}}function rYe(e){let t=Vn,n=gf(e.term);if(e.max===0)n=xo(n,_5,Xn),t=xo(n,null,Xn),t.then=xo(Vn,Vn,t),e.comma&&(t.then.else=xo({type:"Comma",syntax:e},t,Xn));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==Vn&&(t=xo({type:"Comma",syntax:e},t,Xn)),t=xo(n,xo(Vn,Vn,t),Xn);if(e.min===0)t=xo(Vn,Vn,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==Vn&&(t=xo({type:"Comma",syntax:e},t,Xn)),t=xo(n,t,Xn);return t}function gf(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=$w(e.combinator,e.terms.map(gf),!1);return e.disallowEmpty&&(t=xo(t,_5,Xn)),t}case"Multiplier":return rYe(e);case"Boolean":{const t=gf(e.term),n=gf(pc([pc([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),pc([{type:"Type",name:"!boolean-group"},pc([{type:"Multiplier",comma:!1,min:0,max:0,term:pc([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:pc([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=gf(pc([{type:"Type",name:"!term"},pc([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return l0(r,{"!term":t,"!self":n}),l0(n,{"!boolean-group":r}),n}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 hg(e,t){return typeof e=="string"&&(e=LV(e)),{type:"MatchGraph",match:gf(e),syntax:t||null,source:e}}const{hasOwnProperty:vM}=Object.prototype,oYe=0,aYe=1,Iw=2,NV=3,gM="Match",sYe="Mismatch",iYe="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",bM=15e3;function lYe(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Q3(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let o=e.charCodeAt(n);if(o>=65&&o<=90&&(o=o|32),o!==r)return!1}return!0}function cYe(e){return e.type!==Nn?!1:e.value!=="?"}function yM(e){return e===null?!0:e.type===_a||e.type===bn||e.type===Un||e.type===Cs||e.type===mo||cYe(e)}function _M(e){return e===null?!0:e.type===rn||e.type===Js||e.type===ws||e.type===Nn&&e.value==="/"}function uYe(e,t,n){function r(){do C++,_=C<e.length?e[C]:null;while(_!==null&&(_.type===Sr||_.type===po))}function o(E){const T=C+E;return T<e.length?e[T]:null}function a(E,T){return{nextState:E,matchStack:k,syntaxStack:f,thenStack:m,tokenIndex:C,prev:T}}function s(E){m={nextState:E,matchStack:k,syntaxStack:f,prev:m}}function i(E){h=a(E,h)}function l(){k={type:aYe,syntax:t.syntax,token:_,prev:k},r(),v=null,C>S&&(S=C)}function u(){f={syntax:t.syntax,opts:t.syntax.opts||f!==null&&f.opts||null,prev:f},k={type:Iw,syntax:t.syntax,token:k.token,prev:k}}function d(){k.type===Iw?k=k.prev:k={type:NV,syntax:f.syntax,token:k.token,prev:k},f=f.prev}let f=null,m=null,h=null,v=null,g=0,y=null,_=null,C=-1,S=0,k={type:oYe,syntax:null,token:null,prev:null};for(r();y===null&&++g<bM;)switch(t.type){case"Match":if(m===null){if(_!==null&&(C!==e.length-1||_.value!=="\\0"&&_.value!=="\\9")){t=Xn;break}y=gM;break}if(t=m.nextState,t===_5)if(m.matchStack===k){t=Xn;break}else t=Vn;for(;m.syntaxStack!==f;)d();m=m.prev;break;case"Mismatch":if(v!==null&&v!==!1)(h===null||C>h.tokenIndex)&&(h=v,v=!1);else if(h===null){y=sYe;break}t=h.nextState,m=h.thenStack,f=h.syntaxStack,k=h.matchStack,C=h.tokenIndex,_=C<e.length?e[C]:null,h=h.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Xn&&i(t.else),t.then!==Vn&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const R=t.syntax.terms;if(t.index===R.length){if(t.mask===0||t.syntax.all){t=Xn;break}t=Vn;break}if(t.mask===(1<<R.length)-1){t=Vn;break}for(;t.index<R.length;t.index++){const P=1<<t.index;if((t.mask&P)===0){i(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|P}),t=R[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(_!==null){let R=_.value.toLowerCase();if(R.indexOf("\\")!==-1&&(R=R.replace(/\\[09].*$/,"")),vM.call(t.map,R)){t=t.map[R];break}}t=Xn;break;case"Generic":{const R=f!==null?f.opts:null,P=C+Math.floor(t.fn(_,o,R));if(!isNaN(P)&&P>C){for(;C<P;)l();t=Vn}else t=Xn;break}case"Type":case"Property":{const R=t.type==="Type"?"types":"properties",P=vM.call(n,R)?n[R][t.name]:null;if(!P||!P.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(v!==!1&&_!==null&&t.type==="Type"&&(t.name==="custom-ident"&&_.type===St||t.name==="length"&&_.value==="0")){v===null&&(v=a(t,h)),t=Xn;break}u(),t=P.matchRef||P.match;break}case"Keyword":{const R=t.name;if(_!==null){let P=_.value;if(P.indexOf("\\")!==-1&&(P=P.replace(/\\[09].*$/,"")),Q3(P,R)){l(),t=Vn;break}}t=Xn;break}case"AtKeyword":case"Function":if(_!==null&&Q3(_.value,t.name)){l(),t=Vn;break}t=Xn;break;case"Token":if(_!==null&&_.value===t.value){l(),t=Vn;break}t=Xn;break;case"Comma":_!==null&&_.type===_a?yM(k.token)?t=Xn:(l(),t=_M(_)?Xn:Vn):t=yM(k.token)||_M(_)?Vn:Xn;break;case"String":let E="",T=C;for(;T<e.length&&E.length<t.value.length;T++)E+=e[T].value;if(Q3(E,t.value)){for(;C<T;)l();t=Vn}else t=Xn;break;default:throw new Error("Unknown node type: "+t.type)}switch(y){case null:console.warn("[csstree-match] BREAK after "+bM+" iterations"),y=iYe,k=null;break;case gM:for(;f!==null;)d();break;default:k=null}return{tokens:e,reason:y,iterations:g,match:k,longestMatch:S}}function wM(e,t,n){const r=uYe(e,t,n||{});if(r.match===null)return r;let o=r.match,a=r.match={syntax:t.syntax||null,match:[]};const s=[a];for(o=lYe(o).prev;o!==null;){switch(o.type){case Iw:a.match.push(a={syntax:o.syntax,match:[]}),s.push(a);break;case NV:s.pop(),a=s[s.length-1];break;default:a.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r}function DV(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 a=0;a<o.match.length;a++)if(n(o.match[a]))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 dYe(e,t){return w5(this,e,n=>n.type==="Type"&&n.name===t)}function fYe(e,t){return w5(this,e,n=>n.type==="Property"&&n.name===t)}function hYe(e){return w5(this,e,t=>t.type==="Keyword")}function w5(e,t,n){const r=DV.call(e,t);return r===null?!1:r.some(n)}const pYe=Object.freeze(Object.defineProperty({__proto__:null,getTrace:DV,isKeyword:hYe,isProperty:fYe,isType:dYe},Symbol.toStringTag,{value:"Module"}));function BV(e){return"node"in e?e.node:BV(e.match[0])}function zV(e){return"node"in e?e.node:zV(e.match[e.match.length-1])}function SM(e,t,n,r,o){function a(i){if(i.syntax!==null&&i.syntax.type===r&&i.syntax.name===o){const l=BV(i),u=zV(i);e.syntax.walk(t,function(d,f,m){if(d===l){const h=new Jr;do{if(h.appendData(f.data),f.data===u)break;f=f.next}while(f!==null);s.push({parent:m,nodes:h})}})}Array.isArray(i.match)&&i.match.forEach(a)}const s=[];return n.matched!==null&&a(n.matched),s}const{hasOwnProperty:c0}=Object.prototype;function e6(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function CM(e){return!!e&&e6(e.offset)&&e6(e.line)&&e6(e.column)}function mYe(e,t){return function(r,o){if(!r||r.constructor!==Object)return o(r,"Type of node should be an Object");for(let a in r){let s=!0;if(c0.call(r,a)!==!1){if(a==="type")r.type!==e&&o(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(a==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")a+=".source";else if(!CM(r.loc.start))a+=".start";else if(!CM(r.loc.end))a+=".end";else continue;s=!1}else if(t.hasOwnProperty(a)){s=!1;for(let i=0;!s&&i<t[a].length;i++){const l=t[a][i];switch(l){case String:s=typeof r[a]=="string";break;case Boolean:s=typeof r[a]=="boolean";break;case null:s=r[a]===null;break;default:typeof l=="string"?s=r[a]&&r[a].type===l:Array.isArray(l)&&(s=r[a]instanceof Jr)}}}else o(r,"Unknown field `"+a+"` for "+e+" node type");s||o(r,"Bad value for `"+e+"."+a+"`")}}for(const a in t)c0.call(t,a)&&c0.call(r,a)===!1&&o(r,"Field `"+e+"."+a+"` is missed")}}function FV(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o===String||o===Boolean)n.push(o.name.toLowerCase());else if(o===null)n.push("null");else if(typeof o=="string")n.push(o);else if(Array.isArray(o))n.push("List<"+(FV(o,t)||"any")+">");else throw new Error("Wrong value `"+o+"` in `"+t+"` structure definition")}return n.join(" | ")}function vYe(e,t){const n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(const a in n){if(c0.call(n,a)===!1)continue;const s=r[a]=Array.isArray(n[a])?n[a].slice():[n[a]];o[a]=FV(s,e+"."+a)}return{docs:o,check:mYe(e,r)}}function gYe(e){const t={};if(e.node){for(const n in e.node)if(c0.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=vYe(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Lw(e,t,n){const r={};for(const o in e)e[o].syntax&&(r[o]=n?e[o].syntax:d5(e[o].syntax,{compact:t}));return r}function bYe(e,t,n){const r={};for(const[o,a]of Object.entries(e))r[o]={prelude:a.prelude&&(n?a.prelude.syntax:d5(a.prelude.syntax,{compact:t})),descriptors:a.descriptors&&Lw(a.descriptors,t,n)};return r}function yYe(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function _Ye(e){const t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type==="Multiplier"&&t.comma===!0}function Is(e,t,n){return{matched:e,iterations:n,error:t,...pYe}}function rf(e,t,n,r){const o=eYe(n,e.syntax);let a;return yYe(o)?Is(null,new Error("Matching for a tree with var() is not supported")):(r&&(a=wM(o,e.cssWideKeywordsSyntax,e)),(!r||!a.match)&&(a=wM(o,t.match,e),!a.match)?Is(null,new Zqe(a.reason,t.syntax,n,a),a.iterations):Is(a.match,null,a.iterations))}class kM{constructor(t,n,r){if(this.cssWideKeywords=h5,this.syntax=n,this.generic=!1,this.units={...aM},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||gYe(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const o of Object.keys(aM))Array.isArray(t.units[o])&&(this.units[o]=t.units[o]);if(t.types)for(const[o,a]of Object.entries(t.types))this.addType_(o,a);if(t.generic){this.generic=!0;for(const[o,a]of Object.entries(_Ge(this.units)))this.addType_(o,a)}if(t.atrules)for(const[o,a]of Object.entries(t.atrules))this.addAtrule_(o,a);if(t.properties)for(const[o,a]of Object.entries(t.properties))this.addProperty_(o,a)}this.cssWideKeywordsSyntax=hg(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(a,s){o.push({node:a,message:s})}const r=this.structure,o=[];return this.syntax.walk(t,function(a){r.hasOwnProperty(a.type)?r[a.type].check(a,n):n(a,"Unknown node type `"+a.type+"`")}),o.length?o:!1}createDescriptor(t,n,r,o=null){const a={type:n,name:r},s={type:n,name:r,parent:o,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null,matchRef:null};return typeof t=="function"?s.match=hg(t,a):(typeof t=="string"?Object.defineProperty(s,"syntax",{get(){return Object.defineProperty(s,"syntax",{value:LV(t)}),s.syntax}}):s.syntax=t,Object.defineProperty(s,"match",{get(){return Object.defineProperty(s,"match",{value:hg(s.syntax,a)}),s.match}}),n==="Property"&&Object.defineProperty(s,"matchRef",{get(){const i=s.syntax,l=_Ye(i)?hg({...i,terms:[i.terms[0].term]},a):null;return Object.defineProperty(s,"matchRef",{value:l}),l}})),s}addAtrule_(t,n){n&&(this.atrules[t]={type:"Atrule",name:t,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce((r,o)=>(r[o]=this.createDescriptor(n.descriptors[o],"AtruleDescriptor",o,t),r),Object.create(null)):null})}addProperty_(t,n){n&&(this.properties[t]=this.createDescriptor(n,"Property",t))}addType_(t,n){n&&(this.types[t]=this.createDescriptor(n,"Type",t))}checkAtruleName(t){if(!this.getAtrule(t))return new xp("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const o=this.getAtrule(t);if(!o.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(o.prelude&&!n&&!rf(this,o.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+t+"` should contain a prelude")}checkAtruleDescriptorName(t,n){const r=this.checkAtruleName(t);if(r)return r;const o=this.getAtrule(t),a=Y3(n);if(!o.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!o.descriptors[a.name]&&!o.descriptors[a.basename])return new xp("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new xp("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return Is(null,r);const o=this.getAtrule(t);return o.prelude?rf(this,o.prelude,n||"",!1):Is(null,null)}matchAtruleDescriptor(t,n,r){const o=this.checkAtruleDescriptorName(t,n);if(o)return Is(null,o);const a=this.getAtrule(t),s=Y3(n);return rf(this,a.descriptors[s.name]||a.descriptors[s.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?Is(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(oM(t).custom)return Is(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?Is(null,r):rf(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?rf(this,r,n,!1):Is(null,new xp("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?Is(null,new xp("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),rf(this,t,n,!1))}findValueFragments(t,n,r,o){return SM(this,n,this.matchProperty(t,n),r,o)}findDeclarationValueFragments(t,n,r){return SM(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const o=[];return this.syntax.walk(t,{visit:"Declaration",enter:a=>{o.push.apply(o,this.findDeclarationValueFragments(a,n,r))}}),o}getAtrule(t,n=!0){const r=Y3(t);return(r.vendor&&n?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(t,n=!0){const r=this.getAtrule(t,n);return r&&r.prelude||null}getAtruleDescriptor(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null}getProperty(t,n=!0){const r=oM(t);return(r.vendor&&n?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(l,u){return u?`<${l}>`:`<'${l}'>`}function n(l,u,d,f){if(d.has(u))return d.get(u);d.set(u,!1),f.syntax!==null&&ZGe(f.syntax,function(m){if(m.type!=="Type"&&m.type!=="Property")return;const h=m.type==="Type"?l.types:l.properties,v=m.type==="Type"?o:a;hasOwnProperty.call(h,m.name)?n(l,m.name,v,h[m.name])&&(r.push(`${t(u,d===o)} used broken syntax definition ${t(m.name,m.type==="Type")}`),d.set(u,!0)):(r.push(`${t(u,d===o)} used missed syntax definition ${t(m.name,m.type==="Type")}`),d.set(u,!0))},this)}const r=[];let o=new Map,a=new Map;for(const l in this.types)n(this,l,o,this.types[l]);for(const l in this.properties)n(this,l,a,this.properties[l]);const s=[...o.keys()].filter(l=>o.get(l)),i=[...a.keys()].filter(l=>a.get(l));return s.length||i.length?{errors:r,types:s,properties:i}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Lw(this.types,!n,t),properties:Lw(this.properties,!n,t),atrules:bYe(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function t6(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function xM(e,t){const n=Object.create(null);for(const[r,o]of Object.entries(e))if(o){n[r]={};for(const a of Object.keys(o))t.includes(a)&&(n[r][a]=o[a])}return n}function Rw(e,t){const n={...e};for(const[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"cssWideKeywords":n[r]=e[r]?[...e[r],...o]:o||[];break;case"units":n[r]={...e[r]};for(const[a,s]of Object.entries(o))n[r][a]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(const[a,s]of Object.entries(o)){const i=n[r][a]||{},l=n[r][a]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(s){l.prelude=s.prelude?t6(l.prelude,s.prelude):l.prelude||null;for(const[u,d]of Object.entries(s.descriptors||{}))l.descriptors[u]=d?t6(l.descriptors[u],d):null;Object.keys(l.descriptors).length||(l.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[a,s]of Object.entries(o))n[r][a]=t6(n[r][a],s);break;case"scope":case"features":n[r]={...e[r]};for(const[a,s]of Object.entries(o))n[r][a]={...n[r][a],...s};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...xM(o,["parse"])};break;case"node":n[r]={...e[r],...xM(o,["name","structure","parse","generate","walkContext"])};break}return n}function VV(e){const t=Eqe(e),n=Wqe(e),r=Vqe(e),{fromPlainObject:o,toPlainObject:a}=Hqe(n),s={lexer:null,createLexer:i=>new kM(i,s,s.lexer.structure),tokenize:Fb,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:a,fork(i){const l=Rw({},e);return VV(typeof i=="function"?i(l):Rw(l,i))}};return s.lexer=new kM({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const wYe=e=>VV(Rw({},e)),SYe={generic:!0,cssWideKeywords:["initial","inherit","unset","revert","revert-layer"],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|x|y","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<xywh()>|<rect()>|<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:"<color-base>|currentColor|<system-color>|<device-cmyk()>|<light-dark()>|<-non-standard-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>","color-interpolation-method":"in [<rectangular-color-space>|<polar-color-space> <hue-interpolation-method>?|<custom-color-space>]",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>*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","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,∞]>] , [<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>? )]|[( <any-value>? )]","generic-family":"<generic-script-specific>|<generic-complete>|<generic-incomplete>|<-non-standard-generic-family>","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> )","hue-interpolation-method":"[shorter|longer|increasing|decreasing] hue","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>|<timeline-range-name> <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>","light-dark()":"light-dark( <color> , <color> )","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-interpolation-method>]? , <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,∞]>|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","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,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )","polar-color-space":"hsl|hwb|lch|oklch",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>|<legacy-pseudo-element-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,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","rectangular-color-space":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65","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>] )","scroll()":"scroll( [<axis>||<scroller>]? )",scroller:"root|nearest|self","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":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","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|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>||<transition-behavior-value>","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>","system-color":"AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText","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-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","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,∞]>] , [<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>+","transition-behavior-value":"normal|allow-discrete","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>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","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":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-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","-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>? )","absolute-color-base":"<hex-color>|<absolute-color-function>|<named-color>|transparent","absolute-color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>",age:"child|young|old","anchor-name":"<dashed-ident>","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>]*]","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","generic-script-specific":"generic( kai )|generic( fangsong )|generic( nastaliq )","generic-complete":"serif|sans-serif|system-ui|cursive|fantasy|math|monospace","generic-incomplete":"ui-serif|ui-sans-serif|ui-monospace|ui-rounded","-non-standard-generic-family":"-apple-system|BlinkMacSystemFont",left:"<length>|auto","color-base":"<hex-color>|<color-function>|<named-color>|<color-mix()>|transparent","color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>","device-cmyk()":"<legacy-device-cmyk-syntax>|<modern-device-cmyk-syntax>","legacy-device-cmyk-syntax":"device-cmyk( <number>#{4} )","modern-device-cmyk-syntax":"device-cmyk( <cmyk-component>{4} [/ [<alpha-value>|none]]? )","cmyk-component":"<number>|<percentage>|none","color-mix()":"color-mix( <color-interpolation-method> , [<color>&&<percentage [0,100]>?]#{2} )","color-space":"<rectangular-color-space>|<polar-color-space>|<custom-color-space>","custom-color-space":"<dashed-ident>",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","palette-identifier":"<dashed-ident>",right:"<length>|auto","scope-start":"<forgiving-selector-list>","scope-end":"<forgiving-selector-list>","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","selector-list":"<complex-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","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,∞]>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","predefined-rgb":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","xyz-space":"xyz|xyz-d50|xyz-d65","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","offset-path":"<ray()>|<url>|<basic-shape>","rect()":"rect( [<length-percentage>|auto]{4} [round <'border-radius'>]? )","xywh()":"xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [round <'border-radius'>]? )","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","inset-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","position-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|center|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|center|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","anchor()":"anchor( <anchor-element>?&&<anchor-side> , <length-percentage>? )","anchor-side":"inside|outside|top|left|right|bottom|start|end|self-start|self-end|<percentage>|center","anchor-size()":"anchor-size( [<anchor-element>||<anchor-size>]? , <length-percentage>? )","anchor-size":"width|height|block|inline|self-block|self-inline","anchor-element":"<dashed-ident>","try-size":"most-width|most-height|most-block-size|most-inline-size","try-tactic":"flip-block||flip-inline||flip-start","font-variant-css2":"normal|small-caps","font-width-css3":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","system-family-name":"caption|icon|menu|message-box|small-caption|status-bar"},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","anchor-name":"none|<dashed-ident>#","anchor-scope":"none|all|<dashed-ident>#",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-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","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-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","clip-rule":"nonzero|evenodd",color:"<color>","color-interpolation-filters":"auto|sRGB|linearRGB","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance","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":"[auto? [none|<length>]]{1,2}","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",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]]",d:"none|path( <string> )",cx:"<length>|<percentage>",cy:"<length>|<percentage>",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge","empty-cells":"show|hide","field-sizing":"content|fixed",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd",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-css2>||<'font-weight'>||<font-width-css3>]? <'font-size'> [/ <'line-height'>]? <'font-family'>#]|<system-family-name>|<-non-standard-font>","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-palette":"normal|light|dark|<palette-identifier>","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||position]","font-synthesis-position":"auto|none","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","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-emoji":"normal|text|emoji|unicode","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|preserve-parent-color",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> )|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",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'>","interpolate-size":"numeric-only|allow-keywords",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",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",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> )|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","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|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-width'>||<'outline-style'>||<'outline-color'>]","outline-color":"auto|<color>","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,∞]>","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",overlay:"none|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:"auto|<custom-ident>","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","position-anchor":"auto|<anchor-name>","position-area":"none|<position-area>","position-try":"<'position-try-order'>? <'position-try-fallbacks'>","position-try-fallbacks":"none|[[<dashed-ident>||<try-tactic>]|<'position-area'>]#","position-try-order":"normal|<try-size>","position-visibility":"always|[anchors-valid||anchors-visible||no-overflow]","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",r:"<length>|<percentage>",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",rx:"<length>|<percentage>",ry:"<length>|<percentage>",scale:"none|[<number>|<percentage>]{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|x|y]#","scroll-timeline-name":"[none|<dashed-ident>]#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",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":"<'opacity'>","stroke-width":"<svg-length>","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-anchor":"start|middle|end","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":"auto|[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-spacing-trim":"space-all|normal|space-first|trim-start|trim-both|trim-all|auto","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]]","text-wrap":"<'text-wrap-mode'>||<'text-wrap-style'>","text-wrap-mode":"auto|wrap|nowrap","text-wrap-style":"auto|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#",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-behavior":"<transition-behavior-value>#","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","vector-effect":"none|non-scaling-stroke|non-scaling-size|non-rotation|fixed-position","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> <'view-timeline-axis'>?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"none|<dashed-ident>#","view-transition-name":"none|<custom-ident>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]","white-space-collapse":"collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word|auto-phrase","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>",x:"<length>|<percentage>",y:"<length>|<percentage>","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>+",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",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",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|never|always","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]","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>]","white-space-trim":"none|discard-before||discard-after||discard-inner"},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-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <absolute-color-base>]#"}},"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}","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]","page-orientation":"upright|rotate-left|rotate-right",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},"position-try":{prelude:"<dashed-ident>",descriptors:{top:"<'top'>",left:"<'left'>",bottom:"<'bottom'>",right:"<'right'>","inset-block-start":"<'inset-block-start'>","inset-block-end":"<'inset-block-end'>","inset-inline-start":"<'inset-inline-start'>","inset-inline-end":"<'inset-inline-end'>","inset-block":"<'inset-block'>","inset-inline":"<'inset-inline'>",inset:"<'inset'>","margin-top":"<'margin-top'>","margin-left":"<'margin-left'>","margin-bottom":"<'margin-bottom'>","margin-right":"<'margin-right'>","margin-block-start":"<'margin-block-start'>","margin-block-end":"<'margin-block-end'>","margin-inline-start":"<'margin-inline-start'>","margin-inline-end":"<'margin-inline-end'>",margin:"<'margin'>","margin-block":"<'margin-block'>","margin-inline":"<'margin-inline'>",width:"<'width'>",height:"<'height'>","min-width":"<'min-width'>","min-height":"<'min-height'>","max-width":"<'max-width'>","max-height":"<'max-height'>","block-size":"<'block-size'>","inline-size":"<'inline-size'>","min-block-size":"<'min-block-size'>","min-inline-size":"<'min-inline-size'>","max-block-size":"<'max-block-size'>","max-inline-size":"<'max-inline-size'>","align-self":"<'align-self'>|anchor-center","justify-self":"<'justify-self'>|anchor-center"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<declaration-value>?"}},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null},"starting-style":{prelude:null,descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null}}},yi=43,La=45,i2=110,Tu=!0,CYe=!1;function l2(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===yi||r===La)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)uo(this.charCodeAt(n))||this.error("Integer is expected",n)}function bf(e){return l2.call(this,0,e)}function mc(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case i2:n="N is expected";break;case La:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function n6(){let e=0,t=0,n=this.tokenType;for(;n===Sr||n===po;)n=this.lookupType(++e);if(n!==an)if(this.isDelim(yi,e)||this.isDelim(La,e)){t=this.isDelim(yi,e)?yi:La;do n=this.lookupType(++e);while(n===Sr||n===po);n!==an&&(this.skip(e),bf.call(this,Tu))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==yi&&n!==La&&this.error("Number sign is expected")),bf.call(this,t!==0),t===La?"-"+this.consume(an):this.consume(an)}const kYe="AnPlusB",xYe={a:[String,null],b:[String,null]};function HV(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===an)bf.call(this,CYe),n=this.consume(an);else if(this.tokenType===St&&this.cmpChar(this.tokenStart,La))switch(t="-1",mc.call(this,1,i2),this.tokenEnd-this.tokenStart){case 2:this.next(),n=n6.call(this);break;case 3:mc.call(this,2,La),this.next(),this.skipSC(),bf.call(this,Tu),n="-"+this.consume(an);break;default:mc.call(this,2,La),l2.call(this,3,Tu),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===St||this.isDelim(yi)&&this.lookupType(1)===St){let r=0;switch(t="1",this.isDelim(yi)&&(r=1,this.next()),mc.call(this,0,i2),this.tokenEnd-this.tokenStart){case 1:this.next(),n=n6.call(this);break;case 2:mc.call(this,1,La),this.next(),this.skipSC(),bf.call(this,Tu),n="-"+this.consume(an);break;default:mc.call(this,1,La),l2.call(this,2,Tu),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Pn){const r=this.charCodeAt(this.tokenStart),o=r===yi||r===La;let a=this.tokenStart+o;for(;a<this.tokenEnd&&uo(this.charCodeAt(a));a++);a===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),mc.call(this,a-this.tokenStart,i2),t=this.substring(e,a),a+1===this.tokenEnd?(this.next(),n=n6.call(this)):(mc.call(this,a-this.tokenStart+1,La),a+2===this.tokenEnd?(this.next(),this.skipSC(),bf.call(this,Tu),n="-"+this.consume(an)):(l2.call(this,a-this.tokenStart+2,Tu),this.next(),n=this.substrToCursor(a+1)))}else this.error();return t!==null&&t.charCodeAt(0)===yi&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===yi&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function EYe(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}const TYe=Object.freeze(Object.defineProperty({__proto__:null,generate:EYe,name:kYe,parse:HV,structure:xYe},Symbol.toStringTag,{value:"Module"}));function EM(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function AYe(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ws)return!0;if(t===mo||t===Nr)return!1}return!1}const OYe="Atrule",MYe="atrule",PYe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function UV(e=!1){const t=this.tokenStart;let n,r,o=null,a=null;switch(this.eat(Nr),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==mo&&this.tokenType!==Lo&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),EM):o=EM.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Lo:this.next();break;case mo:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this,e):a=this.Block(AYe.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:a}}function $Ye(e){this.token(Nr,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Lo,";")}const IYe=Object.freeze(Object.defineProperty({__proto__:null,generate:$Ye,name:OYe,parse:UV,structure:PYe,walkContext:MYe},Symbol.toStringTag,{value:"Module"})),LYe="AtrulePrelude",RYe="atrulePrelude",NYe={children:[[]]};function jV(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!==mo&&this.tokenType!==Lo&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function DYe(e){this.children(e)}const BYe=Object.freeze(Object.defineProperty({__proto__:null,generate:DYe,name:LYe,parse:jV,structure:NYe,walkContext:RYe},Symbol.toStringTag,{value:"Module"})),zYe=36,WV=42,c2=61,FYe=94,Nw=124,VYe=126;function HYe(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(WV)?(t=!0,this.next()):this.isDelim(Nw)||this.eat(St),this.isDelim(Nw)?this.charCodeAt(this.tokenStart+1)!==c2?(this.next(),this.eat(St)):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 UYe(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==c2&&t!==VYe&&t!==FYe&&t!==zYe&&t!==WV&&t!==Nw&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==c2&&(this.isDelim(c2)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const jYe="AttributeSelector",WYe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function KV(){const e=this.tokenStart;let t,n=null,r=null,o=null;return this.eat(Cs),this.skipSC(),t=HYe.call(this),this.skipSC(),this.tokenType!==Js&&(this.tokenType!==St&&(n=UYe.call(this),this.skipSC(),r=this.tokenType===ai?this.String():this.Identifier(),this.skipSC()),this.tokenType===St&&(o=this.consume(St),this.skipSC())),this.eat(Js),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}}function KYe(e){this.token(Nn,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(St,e.flags),this.token(Nn,"]")}const qYe=Object.freeze(Object.defineProperty({__proto__:null,generate:KYe,name:jYe,parse:KV,structure:WYe},Symbol.toStringTag,{value:"Module"})),GYe=38;function qV(){return this.Raw(null,!0)}function TM(){return this.parseWithFallback(this.Rule,qV)}function AM(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function YYe(){if(this.tokenType===Lo)return AM.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,AM);return this.tokenType===Lo&&this.next(),e}const XYe="Block",ZYe="block",JYe={children:[["Atrule","Rule","Declaration"]]};function GV(e){const t=e?YYe:TM,n=this.tokenStart;let r=this.createList();this.eat(mo);e:for(;!this.eof;)switch(this.tokenType){case ws:break e;case Sr:case po:this.next();break;case Nr:r.push(this.parseWithFallback(this.Atrule.bind(this,e),qV));break;default:e&&this.isDelim(GYe)?r.push(TM.call(this)):r.push(t.call(this))}return this.eof||this.eat(ws),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function QYe(e){this.token(mo,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Lo,";")}),this.token(ws,"}")}const eXe=Object.freeze(Object.defineProperty({__proto__:null,generate:QYe,name:XYe,parse:GV,structure:JYe,walkContext:ZYe},Symbol.toStringTag,{value:"Module"})),tXe="Brackets",nXe={children:[[]]};function YV(e,t){const n=this.tokenStart;let r=null;return this.eat(Cs),r=e.call(this,t),this.eof||this.eat(Js),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function rXe(e){this.token(Nn,"["),this.children(e),this.token(Nn,"]")}const oXe=Object.freeze(Object.defineProperty({__proto__:null,generate:rXe,name:tXe,parse:YV,structure:nXe},Symbol.toStringTag,{value:"Module"})),aXe="CDC",sXe=[];function XV(){const e=this.tokenStart;return this.eat(ra),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function iXe(){this.token(ra,"-->")}const lXe=Object.freeze(Object.defineProperty({__proto__:null,generate:iXe,name:aXe,parse:XV,structure:sXe},Symbol.toStringTag,{value:"Module"})),cXe="CDO",uXe=[];function ZV(){const e=this.tokenStart;return this.eat(Dm),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function dXe(){this.token(Dm,"<!--")}const fXe=Object.freeze(Object.defineProperty({__proto__:null,generate:dXe,name:cXe,parse:ZV,structure:uXe},Symbol.toStringTag,{value:"Module"})),hXe=46,pXe="ClassSelector",mXe={name:String};function JV(){return this.eatDelim(hXe),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(St)}}function vXe(e){this.token(Nn,"."),this.token(St,e.name)}const gXe=Object.freeze(Object.defineProperty({__proto__:null,generate:vXe,name:pXe,parse:JV,structure:mXe},Symbol.toStringTag,{value:"Module"})),bXe=43,OM=47,yXe=62,_Xe=126,wXe="Combinator",SXe={name:String};function QV(){const e=this.tokenStart;let t;switch(this.tokenType){case Sr:t=" ";break;case Nn:switch(this.charCodeAt(this.tokenStart)){case yXe:case bXe:case _Xe:this.next();break;case OM:this.next(),this.eatIdent("deep"),this.eatDelim(OM);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function CXe(e){this.tokenize(e.name)}const kXe=Object.freeze(Object.defineProperty({__proto__:null,generate:CXe,name:wXe,parse:QV,structure:SXe},Symbol.toStringTag,{value:"Module"})),xXe=42,EXe=47,TXe="Comment",AXe={value:String};function eH(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(po),t-e+2>=2&&this.charCodeAt(t-2)===xXe&&this.charCodeAt(t-1)===EXe&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function OXe(e){this.token(po,"/*"+e.value+"*/")}const MXe=Object.freeze(Object.defineProperty({__proto__:null,generate:OXe,name:TXe,parse:eH,structure:AXe},Symbol.toStringTag,{value:"Module"})),PXe=new Set([Io,rn,Ac]),$Xe="Condition",IXe={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function MM(e){return this.lookupTypeNonSC(1)===St&&PXe.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const LXe={media:MM,container:MM,supports(){return this.SupportsDeclaration()}};function tH(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case po:case Sr:this.next();continue;case St:t.push(this.Identifier());break;case Un:{let n=this.parseWithFallback(()=>LXe[e].call(this,e),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(Un);const r=this.Condition(e);return this.eat(rn),r},()=>this.GeneralEnclosed(e))),t.push(n);break}case bn:{let n=this.parseWithFallback(()=>this.FeatureFunction(e),()=>null);n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}}function RXe(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(Un,"("),this.node(t),this.token(rn,")")):this.node(t)})}const NXe=Object.freeze(Object.defineProperty({__proto__:null,generate:RXe,name:$Xe,parse:tH,structure:IXe},Symbol.toStringTag,{value:"Module"})),nH=33,DXe=35,BXe=36,zXe=38,FXe=42,VXe=43,PM=47;function HXe(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function UXe(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function jXe(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Lo&&this.isDelim(nH)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const WXe="Declaration",KXe="declaration",qXe={important:[Boolean,String],property:String,value:["Value","Raw"]};function rH(){const e=this.tokenStart,t=this.tokenIndex,n=YXe.call(this),r=f5(n),o=r?this.parseCustomProperty:this.parseValue,a=r?UXe:HXe;let s=!1,i;this.skipSC(),this.eat(Io);const l=this.tokenIndex;if(r||this.skipSC(),o?i=this.parseWithFallback(jXe,a):i=a.call(this,this.tokenIndex),r&&i.type==="Value"&&i.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===Sr){i.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(nH)&&(s=XXe.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Lo&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:i}}function GXe(e){this.token(St,e.property),this.token(Io,":"),this.node(e.value),e.important&&(this.token(Nn,"!"),this.token(St,e.important===!0?"important":e.important))}function YXe(){const e=this.tokenStart;if(this.tokenType===Nn)switch(this.charCodeAt(this.tokenStart)){case FXe:case BXe:case VXe:case DXe:case zXe:this.next();break;case PM:this.next(),this.isDelim(PM)&&this.next();break}return this.tokenType===or?this.eat(or):this.eat(St),this.substrToCursor(e)}function XXe(){this.eat(Nn),this.skipSC();const e=this.consume(St);return e==="important"?!0:e}const ZXe=Object.freeze(Object.defineProperty({__proto__:null,generate:GXe,name:WXe,parse:rH,structure:qXe,walkContext:KXe},Symbol.toStringTag,{value:"Module"})),JXe=38;function r6(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const QXe="DeclarationList",eZe={children:[["Declaration","Atrule","Rule"]]};function oH(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Sr:case po:case Lo:this.next();break;case Nr:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),r6));break;default:this.isDelim(JXe)?e.push(this.parseWithFallback(this.Rule,r6)):e.push(this.parseWithFallback(this.Declaration,r6))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function tZe(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Lo,";")})}const nZe=Object.freeze(Object.defineProperty({__proto__:null,generate:tZe,name:QXe,parse:oH,structure:eZe},Symbol.toStringTag,{value:"Module"})),rZe="Dimension",oZe={value:String,unit:String};function aH(){const e=this.tokenStart,t=this.consumeNumber(Pn);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function aZe(e){this.token(Pn,e.value+e.unit)}const sZe=Object.freeze(Object.defineProperty({__proto__:null,generate:aZe,name:rZe,parse:aH,structure:oZe},Symbol.toStringTag,{value:"Module"})),iZe=47,lZe="Feature",cZe={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function sH(e){const t=this.tokenStart;let n,r=null;if(this.eat(Un),this.skipSC(),n=this.consume(St),this.skipSC(),this.tokenType!==rn){switch(this.eat(Io),this.skipSC(),this.tokenType){case an:this.lookupNonWSType(1)===Nn?r=this.Ratio():r=this.Number();break;case Pn:r=this.Dimension();break;case St:r=this.Identifier();break;case bn:r=this.parseWithFallback(()=>{const o=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(iZe)&&this.error(),o},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(rn),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function uZe(e){this.token(Un,"("),this.token(St,e.name),e.value!==null&&(this.token(Io,":"),this.node(e.value)),this.token(rn,")")}const dZe=Object.freeze(Object.defineProperty({__proto__:null,generate:uZe,name:lZe,parse:sH,structure:cZe},Symbol.toStringTag,{value:"Module"})),fZe="FeatureFunction",hZe={kind:String,feature:String,value:["Declaration","Selector"]};function pZe(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function iH(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=pZe.call(this,e,n.toLowerCase());this.skipSC();const o=this.parseWithFallback(()=>{const a=this.tokenIndex,s=r.call(this);return this.eof===!1&&this.isBalanceEdge(a)===!1&&this.error(),s},()=>this.Raw(null,!1));return this.eof||this.eat(rn),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:o}}function mZe(e){this.token(bn,e.feature+"("),this.node(e.value),this.token(rn,")")}const vZe=Object.freeze(Object.defineProperty({__proto__:null,generate:mZe,name:fZe,parse:iH,structure:hZe},Symbol.toStringTag,{value:"Module"})),$M=47,gZe=60,IM=61,bZe=62,yZe="FeatureRange",_Ze={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function o6(){switch(this.skipSC(),this.tokenType){case an:return this.isDelim($M,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Pn:return this.Dimension();case St:return this.Identifier();case bn:return this.parseWithFallback(()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim($M)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function LM(e){if(this.skipSC(),this.isDelim(gZe)||this.isDelim(bZe)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(IM)?(this.next(),t+"="):t}if(this.isDelim(IM))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function lH(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Un);const n=o6.call(this),r=LM.call(this,n.type==="Identifier"),o=o6.call(this);let a=null,s=null;return this.lookupNonWSType(0)!==rn&&(a=LM.call(this),s=o6.call(this)),this.skipSC(),this.eat(rn),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:o,rightComparison:a,right:s}}function wZe(e){this.token(Un,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(rn,")")}const SZe=Object.freeze(Object.defineProperty({__proto__:null,generate:wZe,name:yZe,parse:lH,structure:_Ze},Symbol.toStringTag,{value:"Module"})),CZe="Function",kZe="function",xZe={name:String,children:[[]]};function cH(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase();let a;return a=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(rn),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:a}}function EZe(e){this.token(bn,e.name+"("),this.children(e),this.token(rn,")")}const TZe=Object.freeze(Object.defineProperty({__proto__:null,generate:EZe,name:CZe,parse:cH,structure:xZe,walkContext:kZe},Symbol.toStringTag,{value:"Module"})),AZe="GeneralEnclosed",OZe={kind:String,function:[String,null],children:[[]]};function uH(e){const t=this.tokenStart;let n=null;this.tokenType===bn?n=this.consumeFunctionName():this.eat(Un);const r=this.parseWithFallback(()=>{const o=this.tokenIndex,a=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(o)===!1&&this.error(),a},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(rn),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function MZe(e){e.function?this.token(bn,e.function+"("):this.token(Un,"("),this.children(e),this.token(rn,")")}const PZe=Object.freeze(Object.defineProperty({__proto__:null,generate:MZe,name:AZe,parse:uH,structure:OZe},Symbol.toStringTag,{value:"Module"})),$Ze="XXX",IZe="Hash",LZe={value:String};function dH(){const e=this.tokenStart;return this.eat(or),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function RZe(e){this.token(or,"#"+e.value)}const NZe=Object.freeze(Object.defineProperty({__proto__:null,generate:RZe,name:IZe,parse:dH,structure:LZe,xxx:$Ze},Symbol.toStringTag,{value:"Module"})),DZe="Identifier",BZe={name:String};function fH(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(St)}}function zZe(e){this.token(St,e.name)}const FZe=Object.freeze(Object.defineProperty({__proto__:null,generate:zZe,name:DZe,parse:fH,structure:BZe},Symbol.toStringTag,{value:"Module"})),VZe="IdSelector",HZe={name:String};function hH(){const e=this.tokenStart;return this.eat(or),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function UZe(e){this.token(Nn,"#"+e.name)}const jZe=Object.freeze(Object.defineProperty({__proto__:null,generate:UZe,name:VZe,parse:hH,structure:HZe},Symbol.toStringTag,{value:"Module"})),WZe=46,KZe="Layer",qZe={name:String};function pH(){let e=this.tokenStart,t=this.consume(St);for(;this.isDelim(WZe);)this.eat(Nn),t+="."+this.consume(St);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function GZe(e){this.tokenize(e.name)}const YZe=Object.freeze(Object.defineProperty({__proto__:null,generate:GZe,name:KZe,parse:pH,structure:qZe},Symbol.toStringTag,{value:"Module"})),XZe="LayerList",ZZe={children:[["Layer"]]};function mH(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===_a);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}}function JZe(e){this.children(e,()=>this.token(_a,","))}const QZe=Object.freeze(Object.defineProperty({__proto__:null,generate:JZe,name:XZe,parse:mH,structure:ZZe},Symbol.toStringTag,{value:"Module"})),eJe="MediaQuery",tJe={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function vH(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===St&&this.lookupTypeNonSC(1)!==Un){const o=this.consume(St),a=o.toLowerCase();switch(a==="not"||a==="only"?(this.skipSC(),t=a,n=this.consume(St)):n=o,this.lookupTypeNonSC(0)){case St:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case mo:case Lo:case _a:case Ac:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case St:case Un:case bn:{r=this.Condition("media");break}case mo:case Lo:case Ac:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function nJe(e){e.mediaType?(e.modifier&&this.token(St,e.modifier),this.token(St,e.mediaType),e.condition&&(this.token(St,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)}const rJe=Object.freeze(Object.defineProperty({__proto__:null,generate:nJe,name:eJe,parse:vH,structure:tJe},Symbol.toStringTag,{value:"Module"})),oJe="MediaQueryList",aJe={children:[["MediaQuery"]]};function gH(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===_a);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function sJe(e){this.children(e,()=>this.token(_a,","))}const iJe=Object.freeze(Object.defineProperty({__proto__:null,generate:sJe,name:oJe,parse:gH,structure:aJe},Symbol.toStringTag,{value:"Module"})),lJe=38,cJe="NestingSelector",uJe={};function bH(){const e=this.tokenStart;return this.eatDelim(lJe),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function dJe(){this.token(Nn,"&")}const fJe=Object.freeze(Object.defineProperty({__proto__:null,generate:dJe,name:cJe,parse:bH,structure:uJe},Symbol.toStringTag,{value:"Module"})),hJe="Nth",pJe={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function yH(){this.skipSC();const e=this.tokenStart;let 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 mJe(e){this.node(e.nth),e.selector!==null&&(this.token(St,"of"),this.node(e.selector))}const vJe=Object.freeze(Object.defineProperty({__proto__:null,generate:mJe,name:hJe,parse:yH,structure:pJe},Symbol.toStringTag,{value:"Module"})),gJe="Number",bJe={value:String};function _H(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(an)}}function yJe(e){this.token(an,e.value)}const _Je=Object.freeze(Object.defineProperty({__proto__:null,generate:yJe,name:gJe,parse:_H,structure:bJe},Symbol.toStringTag,{value:"Module"})),wJe="Operator",SJe={value:String};function wH(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function CJe(e){this.tokenize(e.value)}const kJe=Object.freeze(Object.defineProperty({__proto__:null,generate:CJe,name:wJe,parse:wH,structure:SJe},Symbol.toStringTag,{value:"Module"})),xJe="Parentheses",EJe={children:[[]]};function SH(e,t){const n=this.tokenStart;let r=null;return this.eat(Un),r=e.call(this,t),this.eof||this.eat(rn),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function TJe(e){this.token(Un,"("),this.children(e),this.token(rn,")")}const AJe=Object.freeze(Object.defineProperty({__proto__:null,generate:TJe,name:xJe,parse:SH,structure:EJe},Symbol.toStringTag,{value:"Module"})),OJe="Percentage",MJe={value:String};function CH(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(yr)}}function PJe(e){this.token(yr,e.value+"%")}const $Je=Object.freeze(Object.defineProperty({__proto__:null,generate:PJe,name:OJe,parse:CH,structure:MJe},Symbol.toStringTag,{value:"Module"})),IJe="PseudoClassSelector",LJe="function",RJe={name:String,children:[["Raw"],null]};function kH(){const e=this.tokenStart;let t=null,n,r;return this.eat(Io),this.tokenType===bn?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==rn?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(rn)):n=this.consume(St),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function NJe(e){this.token(Io,":"),e.children===null?this.token(St,e.name):(this.token(bn,e.name+"("),this.children(e),this.token(rn,")"))}const DJe=Object.freeze(Object.defineProperty({__proto__:null,generate:NJe,name:IJe,parse:kH,structure:RJe,walkContext:LJe},Symbol.toStringTag,{value:"Module"})),BJe="PseudoElementSelector",zJe="function",FJe={name:String,children:[["Raw"],null]};function xH(){const e=this.tokenStart;let t=null,n,r;return this.eat(Io),this.eat(Io),this.tokenType===bn?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==rn?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(rn)):n=this.consume(St),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function VJe(e){this.token(Io,":"),this.token(Io,":"),e.children===null?this.token(St,e.name):(this.token(bn,e.name+"("),this.children(e),this.token(rn,")"))}const HJe=Object.freeze(Object.defineProperty({__proto__:null,generate:VJe,name:BJe,parse:xH,structure:FJe,walkContext:zJe},Symbol.toStringTag,{value:"Module"})),RM=47;function NM(){switch(this.skipSC(),this.tokenType){case an:return this.Number();case bn:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const UJe="Ratio",jJe={left:["Number","Function"],right:["Number","Function",null]};function EH(){const e=this.tokenStart,t=NM.call(this);let n=null;return this.skipSC(),this.isDelim(RM)&&(this.eatDelim(RM),n=NM.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function WJe(e){this.node(e.left),this.token(Nn,"/"),e.right?this.node(e.right):this.node(an,1)}const KJe=Object.freeze(Object.defineProperty({__proto__:null,generate:WJe,name:UJe,parse:EH,structure:jJe},Symbol.toStringTag,{value:"Module"}));function qJe(){return this.tokenIndex>0&&this.lookupType(-1)===Sr?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const GJe="Raw",YJe={value:String};function TH(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=qJe.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function XJe(e){this.tokenize(e.value)}const ZJe=Object.freeze(Object.defineProperty({__proto__:null,generate:XJe,name:GJe,parse:TH,structure:YJe},Symbol.toStringTag,{value:"Module"}));function DM(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function JJe(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==mo&&this.error(),e}const QJe="Rule",eQe="rule",tQe={prelude:["SelectorList","Raw"],block:["Block"]};function AH(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(JJe,DM):n=DM.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function nQe(e){this.node(e.prelude),this.node(e.block)}const rQe=Object.freeze(Object.defineProperty({__proto__:null,generate:nQe,name:QJe,parse:AH,structure:tQe,walkContext:eQe},Symbol.toStringTag,{value:"Module"})),oQe="Scope",aQe={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function OH(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===Un&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(rn)),this.lookupNonWSType(0)===St&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(Un),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(rn)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function sQe(e){e.root&&(this.token(Un,"("),this.node(e.root),this.token(rn,")")),e.limit&&(this.token(St,"to"),this.token(Un,"("),this.node(e.limit),this.token(rn,")"))}const iQe=Object.freeze(Object.defineProperty({__proto__:null,generate:sQe,name:oQe,parse:OH,structure:aQe},Symbol.toStringTag,{value:"Module"})),lQe="Selector",cQe={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function MH(){const 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 uQe(e){this.children(e)}const dQe=Object.freeze(Object.defineProperty({__proto__:null,generate:uQe,name:lQe,parse:MH,structure:cQe},Symbol.toStringTag,{value:"Module"})),fQe="SelectorList",hQe="selector",pQe={children:[["Selector","Raw"]]};function PH(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===_a){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function mQe(e){this.children(e,()=>this.token(_a,","))}const vQe=Object.freeze(Object.defineProperty({__proto__:null,generate:mQe,name:fQe,parse:PH,structure:pQe,walkContext:hQe},Symbol.toStringTag,{value:"Module"})),Dw=92,$H=34,gQe=39;function IH(e){const t=e.length,n=e.charCodeAt(0),r=n===$H||n===gQe?1:0,o=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let a="";for(let s=r;s<=o;s++){let i=e.charCodeAt(s);if(i===Dw){if(s===o){s!==t-1&&(a=e.substr(s+1));break}if(i=e.charCodeAt(++s),Ci(Dw,i)){const l=s-1,u=uh(e,l);s=u-1,a+=bV(e.substring(l+1,u))}else i===13&&e.charCodeAt(s+1)===10&&s++}else a+=e[s]}return a}function bQe(e,t){const r=$H;let o="",a=!1;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);if(i===0){o+="�";continue}if(i<=31||i===127){o+="\\"+i.toString(16),a=!0;continue}i===r||i===Dw?(o+="\\"+e.charAt(s),a=!1):(a&&(Zc(i)||bd(i))&&(o+=" "),o+=e.charAt(s),a=!1)}return'"'+o+'"'}const yQe="String",_Qe={value:String};function LH(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:IH(this.consume(ai))}}function wQe(e){this.token(ai,bQe(e.value))}const SQe=Object.freeze(Object.defineProperty({__proto__:null,generate:wQe,name:yQe,parse:LH,structure:_Qe},Symbol.toStringTag,{value:"Module"})),CQe=33;function BM(){return this.Raw(null,!1)}const kQe="StyleSheet",xQe="stylesheet",EQe={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function RH(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Sr:this.next();continue;case po:if(this.charCodeAt(this.tokenStart+2)!==CQe){this.next();continue}n=this.Comment();break;case Dm:n=this.CDO();break;case ra:n=this.CDC();break;case Nr:n=this.parseWithFallback(this.Atrule,BM);break;default:n=this.parseWithFallback(this.Rule,BM)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function TQe(e){this.children(e)}const AQe=Object.freeze(Object.defineProperty({__proto__:null,generate:TQe,name:kQe,parse:RH,structure:EQe,walkContext:xQe},Symbol.toStringTag,{value:"Module"})),OQe="SupportsDeclaration",MQe={declaration:"Declaration"};function NH(){const e=this.tokenStart;this.eat(Un),this.skipSC();const t=this.Declaration();return this.eof||this.eat(rn),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}}function PQe(e){this.token(Un,"("),this.node(e.declaration),this.token(rn,")")}const $Qe=Object.freeze(Object.defineProperty({__proto__:null,generate:PQe,name:OQe,parse:NH,structure:MQe},Symbol.toStringTag,{value:"Module"})),IQe=42,zM=124;function a6(){this.tokenType!==St&&this.isDelim(IQe)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const LQe="TypeSelector",RQe={name:String};function DH(){const e=this.tokenStart;return this.isDelim(zM)?(this.next(),a6.call(this)):(a6.call(this),this.isDelim(zM)&&(this.next(),a6.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function NQe(e){this.tokenize(e.name)}const DQe=Object.freeze(Object.defineProperty({__proto__:null,generate:NQe,name:LQe,parse:DH,structure:RQe},Symbol.toStringTag,{value:"Module"})),BH=43,zH=45,Bw=63;function zp(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const o=this.charCodeAt(r);if(o===zH&&t&&n!==0)return zp.call(this,e+n+1,!1),-1;Zc(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 pg(e){let t=0;for(;this.isDelim(Bw);)++t>e&&this.error("Too many question marks"),this.next()}function BQe(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===BH?"Plus sign":"Hyphen minus")+" is expected")}function zQe(){let e=0;switch(this.tokenType){case an:if(e=zp.call(this,1,!0),this.isDelim(Bw)){pg.call(this,6-e);break}if(this.tokenType===Pn||this.tokenType===an){BQe.call(this,zH),zp.call(this,1,!1);break}break;case Pn:e=zp.call(this,1,!0),e>0&&pg.call(this,6-e);break;default:if(this.eatDelim(BH),this.tokenType===St){e=zp.call(this,0,!0),e>0&&pg.call(this,6-e);break}if(this.isDelim(Bw)){this.next(),pg.call(this,5);break}this.error("Hex digit or question mark is expected")}}const FQe="UnicodeRange",VQe={value:String};function FH(){const e=this.tokenStart;return this.eatIdent("u"),zQe.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function HQe(e){this.tokenize(e.value)}const UQe=Object.freeze(Object.defineProperty({__proto__:null,generate:HQe,name:FQe,parse:FH,structure:VQe},Symbol.toStringTag,{value:"Module"})),jQe=32,zw=92,WQe=34,KQe=39,qQe=40,VH=41;function GQe(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===VH?t-2:t-1,o="";for(;n<r&&bd(e.charCodeAt(n));)n++;for(;n<r&&bd(e.charCodeAt(r));)r--;for(let a=n;a<=r;a++){let s=e.charCodeAt(a);if(s===zw){if(a===r){a!==t-1&&(o=e.substr(a+1));break}if(s=e.charCodeAt(++a),Ci(zw,s)){const i=a-1,l=uh(e,i);a=l-1,o+=bV(e.substring(i+1,l))}else s===13&&e.charCodeAt(a+1)===10&&a++}else o+=e[a]}return o}function YQe(e){let t="",n=!1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o===0){t+="�";continue}if(o<=31||o===127){t+="\\"+o.toString(16),n=!0;continue}o===jQe||o===zw||o===WQe||o===KQe||o===qQe||o===VH?(t+="\\"+e.charAt(r),n=!1):(n&&Zc(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const XQe="Url",ZQe={value:String};function HH(){const e=this.tokenStart;let t;switch(this.tokenType){case Eo:t=GQe(this.consume(Eo));break;case bn:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(bn),this.skipSC(),t=IH(this.consume(ai)),this.skipSC(),this.eof||this.eat(rn);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function JQe(e){this.token(Eo,YQe(e.value))}const QQe=Object.freeze(Object.defineProperty({__proto__:null,generate:JQe,name:XQe,parse:HH,structure:ZQe},Symbol.toStringTag,{value:"Module"})),eet="Value",tet={children:[[]]};function UH(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function net(e){this.children(e)}const ret=Object.freeze(Object.defineProperty({__proto__:null,generate:net,name:eet,parse:UH,structure:tet},Symbol.toStringTag,{value:"Module"})),oet=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),aet="WhiteSpace",set={value:String};function jH(){return this.eat(Sr),oet}function iet(e){this.token(Sr,e.value)}const cet=Object.freeze(Object.defineProperty({__proto__:null,generate:iet,name:aet,parse:jH,structure:set},Symbol.toStringTag,{value:"Module"})),WH=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:TYe,Atrule:IYe,AtrulePrelude:BYe,AttributeSelector:qYe,Block:eXe,Brackets:oXe,CDC:lXe,CDO:fXe,ClassSelector:gXe,Combinator:kXe,Comment:MXe,Condition:NXe,Declaration:ZXe,DeclarationList:nZe,Dimension:sZe,Feature:dZe,FeatureFunction:vZe,FeatureRange:SZe,Function:TZe,GeneralEnclosed:PZe,Hash:NZe,IdSelector:jZe,Identifier:FZe,Layer:YZe,LayerList:QZe,MediaQuery:rJe,MediaQueryList:iJe,NestingSelector:fJe,Nth:vJe,Number:_Je,Operator:kJe,Parentheses:AJe,Percentage:$Je,PseudoClassSelector:DJe,PseudoElementSelector:HJe,Ratio:KJe,Raw:ZJe,Rule:rQe,Scope:iQe,Selector:dQe,SelectorList:vQe,String:SQe,StyleSheet:AQe,SupportsDeclaration:$Qe,TypeSelector:DQe,UnicodeRange:UQe,Url:QQe,Value:ret,WhiteSpace:cet},Symbol.toStringTag,{value:"Module"})),uet={generic:!0,cssWideKeywords:h5,...SYe,node:WH},det=35,fet=42,FM=43,het=45,pet=47,met=117;function KH(e){switch(this.tokenType){case or:return this.Hash();case _a:return this.Operator();case Un:return this.Parentheses(this.readSequence,e.recognizer);case Cs:return this.Brackets(this.readSequence,e.recognizer);case ai:return this.String();case Pn:return this.Dimension();case yr:return this.Percentage();case an:return this.Number();case bn:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Eo:return this.Url();case St:return this.cmpChar(this.tokenStart,met)&&this.cmpChar(this.tokenStart+1,FM)?this.UnicodeRange():this.Identifier();case Nn:{const t=this.charCodeAt(this.tokenStart);if(t===pet||t===fet||t===FM||t===het)return this.Operator();t===det&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const vet={getNode:KH},get=35,bet=38,yet=42,_et=43,wet=47,VM=46,Cet=62,ket=124,xet=126;function Eet(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function Tet(){switch(this.tokenType){case Cs:return this.AttributeSelector();case or:return this.IdSelector();case Io:return this.lookupType(1)===Io?this.PseudoElementSelector():this.PseudoClassSelector();case St:return this.TypeSelector();case an:case yr:return this.Percentage();case Pn:this.charCodeAt(this.tokenStart)===VM&&this.error("Identifier is expected",this.tokenStart+1);break;case Nn:{switch(this.charCodeAt(this.tokenStart)){case _et:case Cet:case xet:case wet:return this.Combinator();case VM:return this.ClassSelector();case yet:case ket:return this.TypeSelector();case get:return this.IdSelector();case bet:return this.NestingSelector()}break}}}const Aet={onWhiteSpace:Eet,getNode:Tet};function Oet(){return this.createSingleNodeList(this.Raw(null,!1))}function Met(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===_a){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===Sr){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function HM(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const Pet={getNode:KH,onWhiteSpace(e,t){HM(e)&&(e.value=" "+e.value),HM(t.last)&&(t.last.value+=" ")},expression:Oet,var:Met},$et=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:vet,Selector:Aet,Value:Pet},Symbol.toStringTag,{value:"Module"})),Iet=new Set(["none","and","not","or"]),Let={parse:{prelude(){const e=this.createList();if(this.tokenType===St){const t=this.substring(this.tokenStart,this.tokenEnd);Iet.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},Ret={parse:{prelude:null,block(){return this.Block(!0)}}};function s6(e,t){return this.parseWithFallback(()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==rn&&this.error()}},t||(()=>this.Raw(null,!0)))}const UM={layer(){this.skipSC();const e=this.createList(),t=s6.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=s6.call(this,this.Declaration,()=>s6.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},Net={parse:{prelude(){const e=this.createList();switch(this.tokenType){case ai:e.push(this.String());break;case Eo:case bn:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===St&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===bn&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,UM)),this.skipSC(),this.tokenType===bn&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,UM)),(this.lookupNonWSType(0)===St||this.lookupNonWSType(0)===Un)&&e.push(this.MediaQueryList()),e},block:null}},Det={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},Bet={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},zet={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Fet={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Vet={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},Het={parse:{prelude:null,block(e=!1){return this.Block(e)}}},Uet={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}},jet={container:Let,"font-face":Ret,import:Net,layer:Det,media:Bet,nest:zet,page:Fet,scope:Vet,"starting-style":Het,supports:Uet};function Wet(){const e=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case St:e.push(this.Identifier());break;case ai:e.push(this.String());break;case _a:e.push(this.Operator());break;case rn:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return e}const ku={parse(){return this.createSingleNodeList(this.SelectorList())}},i6={parse(){return this.createSingleNodeList(this.Selector())}},Ket={parse(){return this.createSingleNodeList(this.Identifier())}},qet={parse:Wet},mg={parse(){return this.createSingleNodeList(this.Nth())}},Get={dir:Ket,has:ku,lang:qet,matches:ku,is:ku,"-moz-any":ku,"-webkit-any":ku,where:ku,not:ku,"nth-child":mg,"nth-last-child":mg,"nth-last-of-type":mg,"nth-of-type":mg,slotted:i6,host:i6,"host-context":i6},Yet=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:HV,Atrule:UV,AtrulePrelude:jV,AttributeSelector:KV,Block:GV,Brackets:YV,CDC:XV,CDO:ZV,ClassSelector:JV,Combinator:QV,Comment:eH,Condition:tH,Declaration:rH,DeclarationList:oH,Dimension:aH,Feature:sH,FeatureFunction:iH,FeatureRange:lH,Function:cH,GeneralEnclosed:uH,Hash:dH,IdSelector:hH,Identifier:fH,Layer:pH,LayerList:mH,MediaQuery:vH,MediaQueryList:gH,NestingSelector:bH,Nth:yH,Number:_H,Operator:wH,Parentheses:SH,Percentage:CH,PseudoClassSelector:kH,PseudoElementSelector:xH,Ratio:EH,Raw:TH,Rule:AH,Scope:OH,Selector:MH,SelectorList:PH,String:LH,StyleSheet:RH,SupportsDeclaration:NH,TypeSelector:DH,UnicodeRange:FH,Url:HH,Value:UH,WhiteSpace:jH},Symbol.toStringTag,{value:"Module"})),Xet={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:$et,atrule:jet,pseudo:Get,node:Yet},Zet={node:WH},Jet=wYe({...uet,...Xet,...Zet}),{tokenize:sot,parse:Qet,generate:ett,lexer:iot,createLexer:lot,walk:ttt,find:cot,findLast:uot,findAll:dot,toPlainObject:fot,fromPlainObject:hot,fork:pot}=Jet,mot=(e,t)=>Math.floor(Math.random()*(t+1-e)+e),vot=()=>`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}`,got=e=>/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test(e),bot=e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),yot=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{return await navigator.clipboard.writeText(e),"复制成功"}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},ntt=e=>e.replace(/[-_]([a-z])/g,(t,n)=>n.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),jM=e=>{if(Array.isArray(e))return e.map(n=>jM(n));if(e===null||typeof e!="object")return e;const t={};for(const n in e)if(e.hasOwnProperty(n)){const r=ntt(n);t[r]=jM(e[n])}return t};function _ot(e,t){if(!e||!t.length)return"";let n=t[t.length-1];return n=n.replace(/[/\\]/g,"/"),`${e.replace(rWe.dirname,"")}${n}`}function wot(e){var o,a,s,i;const n=new DOMParser().parseFromString(e,"text/xml");return{code:((o=n.querySelector("Code"))==null?void 0:o.textContent)||"",message:((a=n.querySelector("Message"))==null?void 0:a.textContent)||"",maxSize:((s=n.querySelector("MaxSizeAllowed"))==null?void 0:s.textContent)||"",proposedSize:((i=n.querySelector("ProposedSize"))==null?void 0:i.textContent)||""}}function rtt(e,t){const n=t({...e});return n.children&&n.children.length>0&&(n.children=n.children.map(r=>rtt(r,t))),n}function Sot(e){if(e.startsWith("2")||e.startsWith("~2")||e.startsWith("^2"))return 2;if(e.startsWith("3")||e.startsWith("~3")||e.startsWith("^3"))return 3;throw new Error("vue版本错误")}function Cot(e,t){const n=Qet(e,{positions:!1});return ttt(n,r=>{if(r.type==="Url"&&r.value&&r.value.startsWith(".")){const o=r.value.replace(/["']/g,"");r.value=new URL(o,t).href}}),ett(n)}function ott(e,t){const n=r=>{const o=r.replace(/^[\^~>=<]+/,""),[a=0,s=0,i=0]=o.split(".").map(Number);return{major:a,minor:s,patch:i}};return t.filter(r=>{const{name:o,version:a,match:s}=r;if(!(o in e))return!1;const i=e[o];switch(s){case ju.ONLY_INSTALL:return!0;case ju.MAJOR_VERSION:{const l=n(i),u=n(a);return l.major===u.major}case ju.MINOR_VERSION:{const l=n(i),u=n(a);return l.major===u.major&&l.minor===u.minor}case ju.EXACT_VERSION:{const l=n(i),u=n(a);return l.major===u.major&&l.minor===u.minor&&l.patch===u.patch}default:throw new Error(`unknown match rule: ${s}`)}})}const nm=ql("setting",{state:()=>({dependencies:[],devDependencies:[],packageJson:{}}),getters:{vueVersion:e=>{var t;return((t=e.dependencies.find(n=>n.name==="vue"))==null?void 0:t.version)||""},deps:e=>[...e.dependencies,...e.devDependencies],compHubVersion:e=>{var n,r;return{...((n=e.packageJson)==null?void 0:n.dependencies)||{},...((r=e.packageJson)==null?void 0:r.devDependencies)||{}}["comp-hub"]||""}},actions:{setDependencies(e){this.$patch(t=>{t.dependencies=e})},setDevDependencies(e){this.$patch(t=>{t.devDependencies=e})},setPackageJson(e){this.$patch(t=>{t.packageJson=e})},async initSetting(){await this.fetchPackageJson(),await this.initPreviewSetting()},async fetchPackageJson(){await XKe().then(e=>{this.setPackageJson(e.data||{})})},async initPreviewSetting(){var a,s;const e=Gje(),{dependencies:t=[],devDependencies:n=[]}=e;let r=[],o=[];r=Object.entries(((a=this.packageJson)==null?void 0:a.dependencies)||{}).map(([i,l])=>{const u=t.find(d=>d.name===i);return{name:i,version:l,match:(u==null?void 0:u.match)||(i==="vue"?ju.ONLY_INSTALL:ju.MAJOR_VERSION)}}),o=Object.entries(((s=this.packageJson)==null?void 0:s.devDependencies)||{}).map(([i,l])=>{const u=n.find(d=>d.name===i);return{name:i,version:l,match:(u==null?void 0:u.match)||ju.MAJOR_VERSION}}),this.setDependencies(r),this.setDevDependencies(o)}}}),att=()=>{var r;const e=Uje(),t=bw.find(o=>o.value===e),n=(r=bw.find(o=>o.checked))==null?void 0:r.value;return t?e:n},l6=e=>ql(`compListStore_${e}`,{state:()=>({scopeId:e,list:[],loading:!1,query:{keyword:""},pagination:{total:0,pageSize:Number(Fje())||10,page:1},operate:[],tagGroup:[...bw],selectTag:att(),onePageEntryNameToFile:{}}),getters:{queryParams(t){return{...t.query,page:t.pagination.page,pageSize:t.pagination.pageSize,deps:"",tag:t.selectTag}}},actions:{setOnePageEntryNameToFile(t){this.$patch(n=>{n.onePageEntryNameToFile=t})},setSelectTag(t){this.$patch(n=>{n.selectTag=t})},setOperate(t){this.$patch(n=>{n.operate=t})},setQuery(t){this.$patch(n=>{n.query=t})},setPagination(t){this.$patch(n=>{n.pagination=t})},setLoading(t){this.$patch(n=>{n.loading=t})},setList(t){this.$patch(n=>{n.list=t})},delCompListById(t){this.$patch(n=>{n.list=n.list.filter(r=>r.id!==t)})},updateCompListItemById(t,n){this.$patch(r=>{r.list=r.list.map(o=>o.id===t?{...o,...n}:o)})},async getQueryParams(){const t=nm(),n={...this.queryParams};return n.tag==="XTTJ"&&(n.deps=JSON.stringify((t==null?void 0:t.deps)||[])),n},async setCompListItemEntryNameToFile(t){const n=nm(),o=t.map(i=>i.dep).map(i=>{const l=Object.keys(i).reduce((d,f)=>({...d,[f]:i[f].version}),{});return ott(l,[...n.dependencies,...n.devDependencies])}).reduce((i,l)=>[...i,...l],[]).map(i=>i.name),a=await ZKe({deps:[...new Set(o)]}),{entryNameToFile:s={}}=a.data;this.setOnePageEntryNameToFile(s)},async getCompList(){this.scopeId===Uu.SHARE?await this.getComps():this.scopeId===Uu.MINE?await this.getMyComps():this.scopeId===Uu.COLLECT?await this.getMyCollectComps():this.scopeId.startsWith(Uu.SIMILAR)&&await this.getSimilarComps()},async getComps(){this.setLoading(!0);const t=await this.getQueryParams(),n=await oqe(t),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getMyComps(){this.setLoading(!0);const t=await this.getQueryParams(),n=await sqe(t),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getMyCollectComps(){this.setLoading(!0);const t=await this.getQueryParams(),n=await rqe(t),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getSimilarComps(){const t=this.scopeId.split("_")[1];this.setLoading(!0);const n=await iqe({compId:t}),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getCompDetail(t){const n=this.list.find(o=>o.id===t);return n||(await aqe({compId:t})).data}}});async function stt(e){return hn("/__remote__/api/v1/csrf/csrf",{method:"GET"})}const S5=ql("userStore",{state:()=>({userInfo:{},avatarSignUrl:"",guestUserInfo:{avatar:"",nickname:"游客",account:""},logoutDialogOpen:!1}),getters:{displayName(e){return vO()==="1"?e.guestUserInfo.nickname:e.userInfo.nickname||e.userInfo.account||"未登录"},displayAvatar(e){return e.avatarSignUrl||UKe}},actions:{async fetchCsrfToken(){hV.get("csrfToken")||await stt()},updateAvatar(e){this.$patch(t=>{t.userInfo&&(t.userInfo.avatar=e)})},updateAvatarSignUrl(e){this.$patch(t=>{t.avatarSignUrl=e})},updateNickname(e){this.$patch(t=>{t.userInfo&&(t.userInfo.nickname=e)})},setLogoutDialogOpen(e){this.$patch(t=>{t.logoutDialogOpen=e})},setUserInfo(e){this.$patch(t=>{t.userInfo=e})},setGuestLogin(){Vje("1")},async login(e){await zKe({...e})},async fetchWhoAmI(){const e=await HKe();e.data&&this.setUserInfo(e.data)},logout(){this.clearLocalStorage(),C5.push("/login").then(()=>{this.resetAll(),this.$reset()})},resetAll(){const e=$m(),t=eqe(),n=tqe(),r=nqe(),o=r5(),a=l6(Uu.COLLECT)(),s=l6(Uu.SHARE)(),i=l6(Uu.MINE)();e==null||e.$reset(),t==null||t.$reset(),n==null||n.$reset(),r==null||r.$reset(),o==null||o.$reset(),a==null||a.$reset(),s==null||s.$reset(),i==null||i.$reset()},clearLocalStorage(){Rje(),Bje(),zje(),Hje()},isRealUserLogin(){const e=Object.keys(this.userInfo),t=gw();return e.length>0&&t!==null},isAccessTokenExist(){return gw()!==null},isGuestLogin(){return vO()!==null},isLogin(){const e=this.isRealUserLogin(),t=this.isGuestLogin();return e||t},logoutDialog(){if(this.logoutDialogOpen)return;this.setLogoutDialogOpen(!0);const e={confirmButtonText:"去登录",showClose:!0,callback:t=>{this.setLogoutDialogOpen(!1),t==="confirm"&&this.logout()}};qD.alert("请先登录","提示",e)}}});async function itt(e,t){return hn("/api/v1/oss/fileSignUrl",{method:"POST",headers:{"Content-Type":"application/json"},data:e})}const ltt={class:"user-info text-[#1b1919]"},ctt={class:"user-nickname"},utt=H({__name:"index",setup(e){const t=S5(),n=$h(),r=o=>{o==="logout"?t.logout():o==="info"&&n.push({name:"userInfo"})};return zr(async()=>{var o,a;if((o=t.userInfo)!=null&&o.avatar){const s=await itt({objectId:t.userInfo.avatar});t.updateAvatarSignUrl(((a=s==null?void 0:s.data)==null?void 0:a.signUrl)||"")}}),(o,a)=>{const s=xt("el-avatar"),i=xt("el-dropdown-item"),l=xt("el-dropdown-menu"),u=xt("el-dropdown");return w(),fe(u,{onCommand:r},{dropdown:ne(()=>[X(l,null,{default:ne(()=>[X(i,{command:"info"},{default:ne(()=>[...a[0]||(a[0]=[it("用户信息",-1)])]),_:1}),X(i,{command:"logout"},{default:ne(()=>[...a[1]||(a[1]=[it("退出登录",-1)])]),_:1})]),_:1})]),default:ne(()=>[x("div",ltt,[x("span",ctt,pe(c(t).displayName),1),X(s,{size:32,src:c(t).displayAvatar,class:"user-avatar"},null,8,["src"])])]),_:1})}}}),dtt=_d(utt,[["__scopeId","data-v-b2159cd3"]]),ftt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPcAAAA5CAYAAADqbr2XAAAACXBIWXMAABcRAAAXEQHKJvM/AAAL+UlEQVR4nO2dz28bxxXH3y50py48S2enpQjk6phrM1ZRW6rpomjStKhoFAgsoAAZ6NKTRQfoUTAFFEHSJqFYOP0RN7GEKmojhdYysYCiQFFK/QMinXWI+Bds8ci31HI5MzuzpCT+eB/AsGlyucud/c578+bNG8vzPLgIFvcKswAw/ffb6404X7+wuzK7Pb92fCEXxzATwNQgf+LiXiEHAPjHAYAZ8Ow6/duIhd2VPABUFnZX1rfn14r8IDKMOX2Lmyw0ChAFmei84dnggW38fb6w6WVhYXdlent+Lc9tyzBmxBY3iboEAEs9b/rC9iyj71zYXUkHhO2ztLC7AixwhjHD3LS2hY2ibkQLW//rSdiu5G0U+Aa3LcPoY2S5F/cKKEAU2ZzwAy1hW+fC1rTcAWEnFB9jC84wBmib1sW9Qp4EGCFsuyNsnTG3prB92IIzjCZa4iZhV6QClAk7wnIbCtunJXAMtHEjM4ycSHEHhC1GKWy5uGMK22dJMT5nmIkHosRtJmyrV9ie8uvzMYXtEys5hmEmBWlAbXGv4JgJ2+4RtqcQNyankGvdG3GPpsqBNWbUSaay6L0Kh5enR7W+PVOhuBf3CnjCTelR2sJWj7lRoBgBNxQ4C5sZF8oAkJH8FrMkEQEy07qpFzyTCBs6/450nUmoVc3rPWRhM4wePZabxtni3kQobCss7CZ4dhn/7Cw8OtO5Ck0LfhgnT50ZDchFLUsuduP0qKY9BZpMZfEZlhmB4ulRbSLiNV3iJndcfIOlwu56vQ6eXdq5W9ISdZAIgbeEvT2/Zvy9zMgwrXBRTcefmBot+66JmUINW+6i0B2PFnbTAyu3c+fdvoIAEoGzsBkmBuExd+/ySuF0V4+wnX6F7UNj6gf0koXNMDHpiJvG2iGrHRayP4/dI+yBjmG259dwfHWfhc0w8Qm65aEAhNWezpILG4VfHLSwfbbn1+RTcQzDRNKy3BRICwQgtIS9tXPnXV7EwTBDim+5c+eXJxO2FQ6mjWz5o2Qqi51ZOjS1hu5/YxCZQRrnduj8Puj9uKdHNeUQJJnKztKxs4Frdi9iakdynS7dIx4qXSwnwW+P+8z44qaHXCVsOyjs6s7d0sgVL0ymsg4FDe8pPtOkJJ7S6VFN+zcmU1lRpcnHp0e1Epw3EP67oPiOdTrvWej/06pspmQqiw9DXqdjklzn1ulRLQfnHYi4wg7AKn2mSvPFYyVyyb1B6qdHNWWOheLYzjNgwDF0t0VOllRGbSF8Vv2AWroj7E52mVTY+L4s2WAoQWElU1kU7L5K2ESCHuxvk6msaaOEmYVzcTZUwibwfZc6AqBjsTP6r2LeFlrFKAH2KXkjDmk6F/7ebzXSgfH9Y/pdzAVA7e5XO1IWMcHPidqexG3NeYHxdISwT3buro5Mhg89gK6GqEWsJlPZLrEZMks33SUB6jBHvTVeO8Y0nhicsky9vSkz+Dt9y6xJgjoiFvjgyVC7666axM9VkqlsLvif9uJeMW0gbPx7ZNZRkyg3pdVj9Mj0sXY8oyxyIadAnobpirmE3zHEvFZT8HybfXR+zGDZCHbuNnjWtFzYPQkr+HqUxtqbBhZTxVwylb3soUgcTwNZumSxzQiTn5iroKtznwpOcfUKu2f6S2ul1zBA7rDKGuGGCeXTo1prPp1cmpLCyqM1LZsE2QQcUofjUpAkagzu06RjNilCXoz4bapKsjqs0/Eu5WLnI1z2Yh8egw44PDIZMowT1UBbAD03JYU3iJ17K8A21RG2pyVsfD0qEVLVw1Y9Pap1BSBQ5DTulBeBbH9n3KDVg9DKJpfO9zziuEOKhAc7Vf9aZQJ3YoobOxEndC5s7xKdb19yXAI7R7+jZAZCk9o9fE/LgedUJnDsAMq2vrC1SicNBWSFZe74icyNpKmdnOg9Io7Li410X7RkkRruRHxYiy2B2HwGPUzA65iVzZnTNJtq3b3qvjHmOLLOktpI1f6taTtbLOxwwkpXcC1ONPayUc1JbqjmZ8nt3lIcb/oQlyMsmmqYU1Zcq8oyx1n3fqwxb636HaPwXIwMGolJquzQtrjb89qqKHlP1HwUGlE1PaPjOqo+M+ipn1gxjKtIIInopOJE25mYkBFqSo5uuetTrQCZvrDx/0ahGopUgJqpmqqg2aTP654MaAbC9JwmgUw0QJd9jVdBQ5G1mJ764oe/Pbuz80ghbCsobHTXMz94Xp7+8n5xmANr/ZRMbo0vk6ns4K5mvDi+AuFsmKRwUqbdpEbXfabb0THPqncLWRJc66So2qMaPKkPwTUwzKVAoW/bFSewhBaRnO8qMqpJC1rjQs64YsYB33K7esLuLCiZm//svWG23rJAgy6TPq5WwYGz4UFqhHBo2RL3zsIjtNxN8XRYUNhde2+X5//2wbBaOGnQTHOhg2pGYGL3KIu4d4eXeCkTD3mXsmSrlnELZKTYm0LXXCxs/HvGA3tYl36qIuI6HofqMyO3jn2AqO7LONQCl3l8SiN2RcO4yLY4F7dnlYWuuVjYfuBt6fazjy8ypzguqgn+oqoxaFWNatHGRKZY0j1TxVrGwaORdVBzEQK+imdCpbvW9XTE/Y8f/abRHTUnMaumxtqvV1//tDpwgWcqbi7z8dexxr40ly1L60zIUvcCS0RlVMe4xFA6ojjFhmKKsTkBnV5PxxYoAjLwOAS2haxDoXX+qunIVluENiWwS+BZ+73CtmXC9juB1df/+jQNnpX/6s2f9/3wZypuCTx7FbcmuvHRS+frX12P4/KVFLuULpGFLtOCkenAahvVTRtGL2VQJGj1VY46v2NaNJKne6O6L6o02VFCtRhnlZ6ZTYrJOH0sy9UB5+nztNS4YdAWVX/lYtcqkH/eW8Goed1Q2H7g7Z4HdiP757/E3qgvU3nhZCquS8LG70zgNN2ND/9lbMFpoYZqXhsb8TnVvvqOOgLVTXvc53LPUWGO7sU+lXcqRNyX5gUsYrkqoryPJVrF9+SChe0zQ+cyaYuOAepd4uVZ+VYNB6mwZRVR20E2AKty60/Pjm998ln+1iefawUaMhu1XKbywgWw98GzM6FhQMIDy33tD/+O46LnBhTFrccocjcp5MdlqBIxnItiGGYLikED1LPL55f3C8fzn//uMVpPyfZBMmEHq6e2RA6eXbn5dOsQ59EB7DMs0UTCTQPY0+DZjgdWmiy0ZHxvdyz4a7//j/PN269qu+j40FHFU9Ua7SjqvJxRyoMxXMNd1FhjH6ZKMQnZendTDmM8r9XwsmLh4uzdH/+6BGDV9fbiDgkbepaLzgHYBXK193FMD2A/odeZc2HLUl87bn/CA9u9/kHDyIKTVXEM9gAPgq64MyF1uusG6blNQfGJsYA6K5NnBZ8RrbLSmqCXmKZqOLq8Ey4+AiLL3cGzc+gOg2fPKTfZDws7VPdcvRhFttxU6vYnACz3+vv/c14+/L6RBafgxAYFJVSFB2PVLVcII+o7jhXHRnUqsuPiLiN1qDyVKrAorZPdJ2d93EPR5+PeU7wP+Kw0IsoZ1QV7fYvOqbp2UTtt0jUUKRJfUgT5lG1heZ6sljrA7WcfYj1zFHhCY2/uLmF7WsI1EnZog3/LOVh+JXbiBLnr6UCCwjEVLBjrDDTdwvuUjeYE7s9E7jYieE4adB8uLbgq2GlGa4capbiR259W0mTBE0MibP9182D5Gi/wMKSfXTWY0SKyINreTx80MPAFYB1GbsI/cGFbUmFzOV2GUaNV7fCrN37ZoMh2XemaD1zYwiKNOFXhHCxf4x1GGUaBdilTzDyrvfkWWvB3aNP9AQpbZKGDc+qd97FwYfpg+do4LFJgmAvFuE5x7WdvlNtz03Y9nrBleeoyYbc+dwJg3TxYvpY7WL7G28cyjAbyqTAFL976CUYKnVtPt9BVLwHYGTMhawv7BDyrdLD8CrvgDGNILHH7vPjFPZwecW7+8Yu0B3aeUlcTaiFrCXvLA3vj4OH3eAcLholJ5FSYKc7GHk6d5doRdjtNueFRwq639yDDKTfLffkwxa73BcFTYZPDwMUt4sZHLzEZZloQBW988/arLORLhJIyRJxp1nRnRoRLETfDMJcMAPwfo8te03czlJEAAAAASUVORK5CYII=",htt=H({__name:"index",props:{logoClass:{type:String,default:"h-[40px]"}},setup(e){return(t,n)=>(w(),M("div",null,[x("img",{src:ftt,alt:"logo",class:z(e.logoClass)},null,2)]))}});async function ptt(e,t){return hn("/__remote__/api/v1/upgrade/check",{method:"POST",headers:{"Content-Type":"application/json"},data:e})}const qH=ql("upgrade",{state:()=>({upgradeInfo:{}}),getters:{isForceUpgrade:e=>e.upgradeInfo.hasUpgrade&&e.upgradeInfo.isForce,isUpgrade:e=>e.upgradeInfo.hasUpgrade,upgradeDesc:e=>e.upgradeInfo.desc,latestVersion:e=>e.upgradeInfo.latestVersion,hasUpgrade:e=>e.upgradeInfo.hasUpgrade},actions:{setUpgradeInfo(e){this.$patch(t=>{t.upgradeInfo=e})},async getUpgradeInfo(){if(Object.keys(this.upgradeInfo).length>0)return;const e=nm(),t=await ptt({compHubVersion:e.compHubVersion});this.setUpgradeInfo(t.data)}}}),mtt=H({__name:"index",setup(e){const t=nm(),n=qH(),r=$h(),o=O(()=>n.isUpgrade?"有更新":"内测版");function a(){r.push({name:"upgrade"})}return(s,i)=>{const l=xt("el-tag");return w(),fe(l,{onClick:a,type:"primary",round:"",size:"small",class:"cursor-pointer"},{default:ne(()=>[x("span",{class:z({"is-upgrade":c(n).isUpgrade})},pe(o.value),3),it(" "+pe(c(t).compHubVersion),1)]),_:1})}}}),vtt=_d(mtt,[["__scopeId","data-v-ec4705d1"]]),gtt={class:"sites-header"},btt={class:"flex items-center"},ytt=H({__name:"index",setup(e){const t="https://docs.comphub.cn/";return zr(()=>{document.title=oWe}),(n,r)=>{const o=xt("el-link");return w(),M("div",gtt,[x("div",btt,[X(htt,{logoClass:"h-[30px]"}),X(vtt,{class:"ml-[10px]"}),X(o,{href:c(t),class:"ml-[30px]",type:"primary",underline:"always",target:"_blank"},{default:ne(()=>[...r[0]||(r[0]=[it("文档教程",-1)])]),_:1},8,["href"])]),X(dtt)])}}}),_tt=_d(ytt,[["__scopeId","data-v-2ec1e959"]]),wtt=H({__name:"index",props:{resize:{type:Function}},setup(e){const t=F(null);let n=null;const r=e;return pt(()=>{const o=t.value;n=new ResizeObserver(r.resize),n.observe(o)}),on(()=>{console.log("取消元素大小变化监听"),n==null||n.disconnect()}),(o,a)=>(w(),M("div",{ref_key:"elRef",ref:t},[me(o.$slots,"default")],512))}}),Stt={class:"measure-row"},Ctt=H({__name:"index",props:{list:{},moreWidth:{default:70},gap:{default:5},getKey:{}},setup(e){const t=e,n=F(0),r=F({});function o(d,f){Xe().then(()=>{const m=t.getKey(f);d?r.value[m]=d.offsetWidth:delete r.value[m]})}function a(d){n.value=d[0].contentRect.width}const s=O(()=>n.value-t.moreWidth),i=O(()=>{let d=0;const f=[];for(const m in r.value){if(d+=r.value[m]+t.gap,d>s.value)break;f.push({key:m,value:r.value[m]})}return f}),l=O(()=>{const d=i.value.map(f=>f.key);return t.list.filter(f=>d.includes(t.getKey(f)))}),u=O(()=>t.list.length-i.value.length);return(d,f)=>(w(),fe(wtt,{resize:a},{default:ne(()=>[me(d.$slots,"display",{visibleList:l.value,overflow:u.value},void 0,!0),x("div",Stt,[(w(!0),M(je,null,yt(d.list,(m,h)=>(w(),M("div",{key:d.getKey(m),class:"measure-item",ref_for:!0,ref:v=>o(v,m)},[me(d.$slots,"measure",{item:m,index:h},void 0,!0)]))),128))])]),_:3}))}}),ktt=_d(Ctt,[["__scopeId","data-v-63d3b066"]]),xtt={class:"flex gap-[20px] items-center pl-[10px] pr-[10px]"},Ett={class:"flex items-center gap-[10px]"},Ttt=H({__name:"index",setup(e){const t=$m(),n=$h(),r=e5(),o=F(t.maxCache),a=()=>{n.back()},s=()=>{const l=UD.service({fullscreen:!0});n.replace({path:r.path,query:{...r.query,v:Date.now()}}).then(()=>{l.close()})};function i(l){l&&t.setMaxCache(l)}return zr(()=>{qje(t.maxCache.toString())}),(l,u)=>{const d=xt("Back"),f=xt("el-icon"),m=xt("RefreshRight"),h=xt("Operation"),v=xt("el-input-number"),g=xt("el-popover");return w(),M("div",xtt,[X(f,{style:{"font-size":"20px"},class:"cursor-pointer",title:"返回",onClick:a},{default:ne(()=>[X(d)]),_:1}),X(f,{style:{"font-size":"20px"},class:"cursor-pointer",title:"刷新",onClick:s},{default:ne(()=>[X(m)]),_:1}),X(g,{placement:"bottom",trigger:"hover",width:"220px"},{reference:ne(()=>[X(f,{style:{"font-size":"20px"},class:"cursor-pointer",title:"更多操作"},{default:ne(()=>[X(h)]),_:1})]),default:ne(()=>[x("div",Ett,[u[1]||(u[1]=x("div",null,"最大标签数量:",-1)),x("div",null,[X(v,{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=y=>o.value=y),min:1,style:{width:"90px"},"controls-position":"right",onChange:i},null,8,["modelValue"])])])]),_:1})])}}}),Att={class:"flex"},Ott={key:0,class:"more"},Mtt=H({__name:"index",setup(e){const t=$h(),n=e5(),r=$m();Se(()=>n,()=>{r.addView({...n})},{immediate:!0,deep:!0});const o=O(()=>r.visitedViews),a=O(()=>o.value.length===1);function s(d){if(r.delViewByPath(d.path),i(d)){const f=o.value[0];f?t.push(f.path):t.push("/")}}function i(d){return d.path===n.path}function l(d){t.push(d.fullPath)}function u(d){var h;const f=((h=d==null?void 0:d.meta)==null?void 0:h.title)||"未知标签",m=r.getPayLoad(d.path);return(m==null?void 0:m.name)||f}return(d,f)=>{const m=xt("CloseBold"),h=xt("el-icon"),v=xt("el-button");return w(),M("div",Att,[X(Ttt),X(ktt,{class:"flex-1",list:o.value,getKey:g=>g.path},{display:ne(({visibleList:g,overflow:y})=>[X(B1,{tag:"ul",name:"fade",class:"flex gap-[5px] p-[2px] items-center"},{default:ne(()=>[(w(!0),M(je,null,yt(g,_=>(w(),M("div",{key:_.path},[X(v,{type:i(_)?"primary":"default",onClick:C=>l(_)},{default:ne(()=>[it(pe(u(_))+" ",1),a.value?ie("",!0):(w(),fe(h,{key:0,onClick:lt(C=>s(_),["stop"]),style:{"font-size":"16px"},class:"ml-[5px]"},{default:ne(()=>[X(m)]),_:1},8,["onClick"]))]),_:2},1032,["type","onClick"])]))),128)),y>0?(w(),M("span",Ott,"+"+pe(y)+" more",1)):ie("",!0)]),_:2},1024)]),measure:ne(({item:g})=>[X(v,null,{default:ne(()=>[it(pe(u(g))+" ",1),X(h,{style:{"font-size":"16px"},class:"ml-[5px]"},{default:ne(()=>[X(m)]),_:1})]),_:2},1024)]),_:1},8,["list","getKey"])])}}}),Ptt=_d(Mtt,[["__scopeId","data-v-81d31135"]]),$tt={class:"size-full flex flex-col min-w-[600px] overflow-hidden"},Itt={class:"h-[60px]"},Ltt={class:"flex-1 overflow-hidden"},Rtt={class:"size-full overflow-hidden bg-[#f9fafb] flex flex-col"},Ntt={class:"size-full flex flex-col"},Dtt={class:""},Btt={class:"flex-1 overflow-auto bg-[#f2f3f5]"},ztt=H({__name:"index",setup(e){const t=F(200),n=F(Number(jje()||t.value)),r=F(68),o=r5(),a=async()=>{(n.value===r.value||n.value===0)&&(n.value=t.value)};return zr(()=>{o.setSideBarCollapse(n.value<=80),Wje(n.value.toString())}),(s,i)=>{const l=xt("el-splitter-panel"),u=xt("el-splitter");return w(),M("div",$tt,[x("div",Itt,[X(_tt)]),x("div",Ltt,[X(u,{onCollapse:a},{default:ne(()=>[X(l,{min:r.value,max:300,size:n.value,"onUpdate:size":i[0]||(i[0]=d=>n.value=d),collapsible:""},{default:ne(()=>[x("div",Rtt,[X(nWe)])]),_:1},8,["min","size"]),X(l,{min:400},{default:ne(()=>[x("div",Ntt,[x("div",Dtt,[X(Ptt)]),x("div",Btt,[X(Xje)])])]),_:1})]),_:1})])])}}}),C5=Pje({history:sje("/dist/"),routes:[{path:"/login",name:"login",component:()=>ci(()=>import("./index-ihzkMZPo.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{hidden:!0,noAuth:!0}},{path:"/upgrade",name:"upgrade",component:()=>ci(()=>import("./index-CpR-gO1D.js"),__vite__mapDeps([6,7,8,9,10,1,2])),meta:{hidden:!0,noAuth:!0}},{path:"/",component:ztt,redirect:"/share",meta:{hideParent:!0},children:[{path:"/share",name:"share",meta:{title:"组件市场",icon:"HomeFilled",noAuth:!0},component:()=>ci(()=>import("./index-7vz6VOEt.js"),__vite__mapDeps([11,12,13,14,15,16,17,18,19,20]))},{path:"/collect",name:"collect",meta:{title:"收藏组件",icon:"StarFilled"},component:()=>ci(()=>import("./index-FpiPNIBz.js"),__vite__mapDeps([21,12,13,14,15,16,17,18,19]))},{path:"/mine",name:"mine",meta:{title:"我的组件",icon:"UserFilled"},component:()=>ci(()=>import("./index-Jbn8LmD6.js"),__vite__mapDeps([22,12,13,14,15,16,17,18,19,23,7,8,9,10,3,24]))},{path:"/upload",name:"upload",meta:{title:"上传组件",icon:"UploadFilled",noAuth:!0},component:()=>ci(()=>import("./index-Co3pVMNN.js"),__vite__mapDeps([25,14,15,23,7,8,9,10,3,24,16,26,27,28]))},{path:"/userInfo",name:"userInfo",meta:{title:"用户信息",hidden:!0},component:()=>ci(()=>import("./index-lST4jsLg.js"),__vite__mapDeps([29,16,3,4,30]))},{path:"/preview/:id",meta:{title:"组件预览",noAuth:!0,hidden:!0},component:()=>ci(()=>import("./index-Z7-k1yyE.js"),__vite__mapDeps([31,14,15,13,16,17,18,19,26,8,9,27]))},{path:"/terminal",name:"terminal",meta:{title:"终端",icon:"ArrowRightBold",noAuth:!0},component:()=>ci(()=>import("./index-JMXlVqZB.js"),__vite__mapDeps([32,17,18,33]))},{path:"/setting",name:"setting",meta:{title:"设置",icon:"Tools",noAuth:!0},component:()=>ci(()=>import("./index-BvHtAQJ6.js"),[])}]}]});function Ftt(e){e.use(C5)}const Vtt={key:0,class:"error-overlay"},Htt={class:"errors-container"},Utt=H({__name:"index",props:{errors:{}},setup(e){const t=F(!1),n=e,r=()=>{t.value=!1};return Se(()=>n.errors,o=>{t.value=o.length>0},{immediate:!0,deep:!0}),(o,a)=>t.value?(w(),M("div",Vtt,[x("button",{class:"close-btn",onClick:r},"×"),x("div",Htt,[(w(!0),M(je,null,yt(o.errors,(s,i)=>(w(),M("div",{key:i,class:"error-item"},[x("pre",null,pe(s),1)]))),128))])])):ie("",!0)}}),jtt=_d(Utt,[["__scopeId","data-v-0c34a046"]]),Wtt=F([]);function Ktt(e){const t=m8(jtt,{errors:Wtt.value}),n=document.createElement("div");n.id="error-container",t.mount(n),document.body.appendChild(n)}const Bi=Object.create(null);Bi.open="0";Bi.close="1";Bi.ping="2";Bi.pong="3";Bi.message="4";Bi.upgrade="5";Bi.noop="6";const u2=Object.create(null);Object.keys(Bi).forEach(e=>{u2[Bi[e]]=e});const Fw={type:"error",data:"parser error"},GH=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",YH=typeof ArrayBuffer=="function",XH=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,k5=({type:e,data:t},n,r)=>GH&&t instanceof Blob?n?r(t):WM(t,r):YH&&(t instanceof ArrayBuffer||XH(t))?n?r(t):WM(new Blob([t]),r):r(Bi[e]+(t||"")),WM=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function KM(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c6;function qtt(e,t){if(GH&&e.data instanceof Blob)return e.data.arrayBuffer().then(KM).then(t);if(YH&&(e.data instanceof ArrayBuffer||XH(e.data)))return t(KM(e.data));k5(e,!1,n=>{c6||(c6=new TextEncoder),t(c6.encode(n))})}const qM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fp=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<qM.length;e++)Fp[qM.charCodeAt(e)]=e;const Gtt=e=>{let t=e.length*.75,n=e.length,r,o=0,a,s,i,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)a=Fp[e.charCodeAt(r)],s=Fp[e.charCodeAt(r+1)],i=Fp[e.charCodeAt(r+2)],l=Fp[e.charCodeAt(r+3)],d[o++]=a<<2|s>>4,d[o++]=(s&15)<<4|i>>2,d[o++]=(i&3)<<6|l&63;return u},Ytt=typeof ArrayBuffer=="function",x5=(e,t)=>{if(typeof e!="string")return{type:"message",data:ZH(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Xtt(e.substring(1),t)}:u2[n]?e.length>1?{type:u2[n],data:e.substring(1)}:{type:u2[n]}:Fw},Xtt=(e,t)=>{if(Ytt){const n=Gtt(e);return ZH(n,t)}else return{base64:!0,data:e}},ZH=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},JH="",Ztt=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,s)=>{k5(a,!1,i=>{r[s]=i,++o===n&&t(r.join(JH))})})},Jtt=(e,t)=>{const n=e.split(JH),r=[];for(let o=0;o<n.length;o++){const a=x5(n[o],t);if(r.push(a),a.type==="error")break}return r};function Qtt(){return new TransformStream({transform(e,t){qtt(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let u6;function vg(e){return e.reduce((t,n)=>t+n.length,0)}function gg(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ent(e,t){u6||(u6=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(s,i){for(n.push(s);;){if(r===0){if(vg(n)<1)break;const l=gg(n,1);a=(l[0]&128)===128,o=l[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(vg(n)<2)break;const l=gg(n,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(vg(n)<8)break;const l=gg(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){i.enqueue(Fw);break}o=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(vg(n)<o)break;const l=gg(n,o);i.enqueue(x5(a?l:u6.decode(l),t)),r=0}if(o===0||o>e){i.enqueue(Fw);break}}}})}const QH=4;function Br(e){if(e)return tnt(e)}function tnt(e){for(var t in Br.prototype)e[t]=Br.prototype[t];return e}Br.prototype.on=Br.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Br.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Br.prototype.off=Br.prototype.removeListener=Br.prototype.removeAllListeners=Br.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Br.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};Br.prototype.emitReserved=Br.prototype.emit;Br.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Br.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ub=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),us=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),nnt="arraybuffer";function eU(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const rnt=us.setTimeout,ont=us.clearTimeout;function jb(e,t){t.useNativeTimers?(e.setTimeoutFn=rnt.bind(us),e.clearTimeoutFn=ont.bind(us)):(e.setTimeoutFn=us.setTimeout.bind(us),e.clearTimeoutFn=us.clearTimeout.bind(us))}const ant=1.33;function snt(e){return typeof e=="string"?int(e):Math.ceil((e.byteLength||e.size)*ant)}function int(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function tU(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lnt(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function cnt(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class unt extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class E5 extends Br{constructor(t){super(),this.writable=!1,jb(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new unt(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=x5(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=lnt(t);return n.length?"?"+n:""}}class dnt extends E5{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Jtt(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ztt(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=tU()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let nU=!1;try{nU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const fnt=nU;function hnt(){}class pnt extends dnt{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Df=class d2 extends Br{constructor(t,n,r){super(),this.createRequest=t,jb(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=eU(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=d2.requestsCount++,d2.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=hnt,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete d2.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Df.requestsCount=0;Df.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",GM);else if(typeof addEventListener=="function"){const e="onpagehide"in us?"pagehide":"unload";addEventListener(e,GM,!1)}}function GM(){for(let e in Df.requests)Df.requests.hasOwnProperty(e)&&Df.requests[e].abort()}const mnt=(function(){const e=rU({xdomain:!1});return e&&e.responseType!==null})();class vnt extends pnt{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=mnt&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Df(rU,this.uri(),t)}}function rU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||fnt))return new XMLHttpRequest}catch{}if(!t)try{return new us[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const oU=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class gnt extends E5{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=oU?{}:eU(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;k5(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}o&&Ub(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=tU()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const d6=us.WebSocket||us.MozWebSocket;class bnt extends gnt{createSocket(t,n,r){return oU?new d6(t,n,r):n?new d6(t,n):new d6(t)}doWrite(t,n){this.ws.send(n)}}class ynt extends E5{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ent(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Qtt();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:i,value:l})=>{i||(this.onPacket(l),a())}).catch(i=>{})};a();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Ub(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const _nt={websocket:bnt,webtransport:ynt,polling:vnt},wnt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Snt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vw(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=wnt.exec(e||""),a={},s=14;for(;s--;)a[Snt[s]]=o[s]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=Cnt(a,a.path),a.queryKey=knt(a,a.query),a}function Cnt(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function knt(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const Hw=typeof addEventListener=="function"&&typeof removeEventListener=="function",f2=[];Hw&&addEventListener("offline",()=>{f2.forEach(e=>e())},!1);class Vc extends Br{constructor(t,n){if(super(),this.binaryType=nnt,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Vw(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Vw(n.host).host);jb(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cnt(this.opts.query)),Hw&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f2.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=QH,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Vc.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Vc.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=snt(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ub(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Vc.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Hw&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=f2.indexOf(this._offlineEventListener);r!==-1&&f2.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Vc.protocol=QH;class xnt extends Vc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Vc.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Vc.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,d(),n.close(),n=null)}const s=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function i(){s("transport closed")}function l(){s("socket closed")}function u(f){n&&f.name!==n.name&&a()}const d=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",i),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",i),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Ent=class extends xnt{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>_nt[o]).filter(o=>!!o)),super(t,r)}};function Tnt(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Vw(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const Ant=typeof ArrayBuffer=="function",Ont=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,aU=Object.prototype.toString,Mnt=typeof Blob=="function"||typeof Blob<"u"&&aU.call(Blob)==="[object BlobConstructor]",Pnt=typeof File=="function"||typeof File<"u"&&aU.call(File)==="[object FileConstructor]";function T5(e){return Ant&&(e instanceof ArrayBuffer||Ont(e))||Mnt&&e instanceof Blob||Pnt&&e instanceof File}function h2(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(h2(e[n]))return!0;return!1}if(T5(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return h2(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&h2(e[n]))return!0;return!1}function $nt(e){const t=[],n=e.data,r=e;return r.data=Uw(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Uw(e,t){if(!e)return e;if(T5(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Uw(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Uw(e[r],t));return n}return e}function Int(e,t){return e.data=jw(e.data,t),delete e.attachments,e}function jw(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=jw(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jw(e[n],t));return e}const Lnt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Rnt=5;var Rn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Rn||(Rn={}));class Nnt{constructor(t){this.replacer=t}encode(t){return(t.type===Rn.EVENT||t.type===Rn.ACK)&&h2(t)?this.encodeAsBinary({type:t.type===Rn.EVENT?Rn.BINARY_EVENT:Rn.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Rn.BINARY_EVENT||t.type===Rn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=$nt(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function YM(e){return Object.prototype.toString.call(e)==="[object Object]"}class A5 extends Br{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Rn.BINARY_EVENT;r||n.type===Rn.BINARY_ACK?(n.type=r?Rn.EVENT:Rn.ACK,this.reconstructor=new Dnt(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(T5(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Rn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Rn.BINARY_EVENT||r.type===Rn.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(a,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(A5.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Rn.CONNECT:return YM(n);case Rn.DISCONNECT:return n===void 0;case Rn.CONNECT_ERROR:return typeof n=="string"||YM(n);case Rn.EVENT:case Rn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Lnt.indexOf(n[0])===-1);case Rn.ACK:case Rn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Dnt{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Int(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Bnt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:A5,Encoder:Nnt,get PacketType(){return Rn},protocol:Rnt},Symbol.toStringTag,{value:"Module"}));function Rs(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const znt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sU extends Br{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Rs(t,"open",this.onopen.bind(this)),Rs(t,"packet",this.onpacket.bind(this)),Rs(t,"error",this.onerror.bind(this)),Rs(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(znt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:Rn.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,f=n.pop();this._registerAckCallback(d,f),s.id=d}const i=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!i||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===t&&this.sendBuffer.splice(i,1);n.call(this,new Error("operation has timed out"))},o),s=(...i)=>{this.io.clearTimeoutFn(a),n.apply(this,i)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(s,i)=>s?o(s):r(i);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Rn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Rn.EVENT:case Rn.BINARY_EVENT:this.onevent(t);break;case Rn.ACK:case Rn.BINARY_ACK:this.onack(t);break;case Rn.DISCONNECT:this.ondisconnect();break;case Rn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Rn.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Rn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Rh(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Rh.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Rh.prototype.reset=function(){this.attempts=0};Rh.prototype.setMin=function(e){this.ms=e};Rh.prototype.setMax=function(e){this.max=e};Rh.prototype.setJitter=function(e){this.jitter=e};class Ww extends Br{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,jb(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Rh({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Bnt;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Ent(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Rs(n,"open",function(){r.onopen(),t&&t()}),a=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),t?t(i):this.maybeReconnectOnOpen()},s=Rs(n,"error",a);if(this._timeout!==!1){const i=this._timeout,l=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Rs(t,"ping",this.onping.bind(this)),Rs(t,"data",this.ondata.bind(this)),Rs(t,"error",this.onerror.bind(this)),Rs(t,"close",this.onclose.bind(this)),Rs(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ub(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new sU(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ep={};function p2(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Tnt(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,s=Ep[o]&&a in Ep[o].nsps,i=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return i?l=new Ww(r,t):(Ep[o]||(Ep[o]=new Ww(r,t)),l=Ep[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(p2,{Manager:Ww,Socket:sU,io:p2,connect:p2});const Fnt="/terminal",iU=p2(Fnt,{autoConnect:!1});iU.on("connect",()=>{console.log("手动连接成功")});iU.on("disconnect",()=>{console.log("连接已断开")});function Vnt(e){fOe(e),Ftt(e),oOe(e),TUe(e),Ktt()}C5.beforeEach(async e=>{const t=$m(),n=S5(),r=nm(),o=qH();if(await r.initSetting(),await n.fetchCsrfToken(),await o.getUpgradeInfo(),o.isForceUpgrade&&!e.path.startsWith("/upgrade"))return{path:"/upgrade"};const a=t.visitedViews.find(i=>i.path===e.path);if(a){const{hash:i="",query:l={}}=e,{query:u={},hash:d=""}=a;if(!e.redirectedFrom){const f={query:{...u,...l},hash:i||d};return{path:e.path,...f}}}if(n.isGuestLogin()||!n.isAccessTokenExist()){if(!e.meta.noAuth)return n.logoutDialog(),!1}else{if(e.meta.noAuth){if(e.path.startsWith("/login")){if(n.isAccessTokenExist())return"/"}else n.isRealUserLogin()||await n.fetchWhoAmI();return}if(n.isRealUserLogin()||await n.fetchWhoAmI(),!n.isRealUserLogin())return n.logoutDialog(),!1}});const lU=m8(NJ);Vnt(lU);lU.mount("#app");export{Se as $,fe as A,aot as B,Qnt as C,pt as D,Gg as E,je as F,Fi as G,mot as H,Vje as I,vot as J,l6 as K,Znt as L,Uu as M,Nt as N,grt as O,eqe as P,Hl as Q,trt as R,vrt as S,nrt as T,sa as U,Ai as V,rt as W,aqe as X,M1 as Y,NP as Z,htt as _,x as a,Wrt as a$,lt as a0,fn as a1,Be as a2,lrt as a3,yt as a4,srt as a5,irt as a6,wtt as a7,Hf as a8,crt as a9,H_e as aA,sZ as aB,Et as aC,on as aD,kn as aE,It as aF,tqe as aG,Frt as aH,Vrt as aI,zrt as aJ,Brt as aK,kr as aL,jM as aM,M_ as aN,dt as aO,WTe as aP,Ot as aQ,hn as aR,F8 as aS,wot as aT,Drt as aU,ba as aV,e5 as aW,$m as aX,Wnt as aY,brt as aZ,Grt as a_,urt as aa,UD as ab,qD as ac,qrt as ad,Yrt as ae,Qrt as af,eot as ag,Urt as ah,Krt as ai,Zrt as aj,rWe as ak,rtt as al,me as am,Sh as an,ft as ao,L1 as ap,Xrt as aq,Hrt as ar,Jrt as as,mrt as at,z as au,Xe as av,_ot as aw,hrt as ax,GKe as ay,prt as az,X as b,oot as b0,itt as b1,tot as b2,rot as b3,jrt as b4,not as b5,Jw as b6,Qw as b7,yn as b8,jnt as b9,Tn as ba,rrt as bb,yot as bc,ja as bd,Zae as be,RI as bf,DI as bg,nqe as bh,Sot as bi,frt as bj,Cot as bk,o1e as bl,ott as bm,ZKe as bn,Knt as bo,X1 as bp,A3e as bq,iU as br,Qje as bs,ort as bt,art as bu,ju as bv,Gje as bw,drt as bx,M as c,H as d,vtt as e,it as f,S5 as g,F as h,Ht as i,O as j,zr as k,ert as l,Jnt as m,ie as n,w as o,$h as p,Hje as q,xt as r,got as s,pe as t,c as u,bot as v,ne as w,_d as x,nm as y,qH as z};
135
+ --`+new Array((n||t.length)+1).join("-")+"^"})}const MGe=9,PGe=10,$Ge=12,IGe=13,LGe=32,sM=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class RGe{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}isNameCharCode(t=this.charCode()){return t<128&&sM[t]===1}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(t){for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n!==IGe&&n!==PGe&&n!==$Ge&&n!==LGe&&n!==MGe)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new OGe(t,this.str,this.pos)}scanSpaces(){return this.substringToPos(this.findWsEnd(this.pos))}scanWord(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n>=128||sM[n]===0)break}return this.pos===t&&this.error("Expect a keyword"),this.substringToPos(t)}scanNumber(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n<48||n>57)break}return this.pos===t&&this.error("Expect a number"),this.substringToPos(t)}scanString(){const t=this.str.indexOf("'",this.pos+1);return t===-1&&(this.pos=this.str.length,this.error("Expect an apostrophe")),this.substringToPos(t+1)}}const NGe=9,DGe=10,BGe=12,zGe=13,FGe=32,PV=33,m5=35,iM=38,_1=39,$V=40,VGe=41,IV=42,v5=43,g5=44,lM=45,b5=60,Mw=62,Pw=63,HGe=64,em=91,tm=93,w1=123,cM=124,uM=125,dM=8734,fM={" ":1,"&&":2,"||":3,"|":4};function hM(e){let t=null,n=null;return e.eat(w1),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===g5?(e.pos++,e.skipWs(),e.charCode()!==uM&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(uM),{min:Number(t),max:n?Number(n):0}}function UGe(e){let t=null,n=!1;switch(e.charCode()){case IV:e.pos++,t={min:0,max:0};break;case v5:e.pos++,t={min:1,max:0};break;case Pw:e.pos++,t={min:0,max:1};break;case m5:e.pos++,n=!0,e.charCode()===w1?t=hM(e):e.charCode()===Pw?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case w1:t=hM(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Jc(e,t){const n=UGe(e);return n!==null?(n.term=t,e.charCode()===m5&&e.charCodeAt(e.pos-1)===v5?Jc(e,n):n):t}function J3(e){const t=e.peek();return t===""?null:Jc(e,{type:"Token",value:t})}function jGe(e){let t;return e.eat(b5),e.eat(_1),t=e.scanWord(),e.eat(_1),e.eat(Mw),Jc(e,{type:"Property",name:t})}function WGe(e){let t=null,n=null,r=1;return e.eat(em),e.charCode()===lM&&(e.peek(),r=-1),r==-1&&e.charCode()===dM?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(g5),e.skipWs(),e.charCode()===dM?e.peek():(r=1,e.charCode()===lM&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(tm),{type:"Range",min:t,max:n}}function KGe(e){let t,n=null;if(e.eat(b5),t=e.scanWord(),t==="boolean-expr"){e.eat(em);const r=y5(e,tm);return e.eat(tm),e.eat(Mw),Jc(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===$V&&e.nextCharCode()===VGe&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===em&&(e.skipWs(),n=WGe(e)),e.eat(Mw),Jc(e,{type:"Type",name:t,opts:n})}function qGe(e){const t=e.scanWord();return e.charCode()===$V?(e.pos++,{type:"Function",name:t}):Jc(e,{type:"Keyword",name:t})}function GGe(e,t){function n(o,a){return{type:"Group",terms:o,combinator:a,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((o,a)=>fM[o]-fM[a]);t.length>0;){r=t.shift();let o=0,a=0;for(;o<e.length;o++){const s=e[o];s.type==="Combinator"&&(s.value===r?(a===-1&&(a=o-1),e.splice(o,1),o--):(a!==-1&&o-a>1&&(e.splice(a,o-a,n(e.slice(a,o),r)),o=a+1),a=-1))}a!==-1&&t.length&&e.splice(a,o-a,n(e.slice(a,o),r))}return r}function y5(e,t){const n=Object.create(null),r=[];let o,a=null,s=e.pos;for(;e.charCode()!==t&&(o=XGe(e,t));)o.type!=="Spaces"&&(o.type==="Combinator"?((a===null||a.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[o.value]=!0):a!==null&&a.type!=="Combinator"&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(o),a=o,s=e.pos);return a!==null&&a.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:GGe(r,n)||" ",disallowEmpty:!1,explicit:!1}}function YGe(e,t){let n;return e.eat(em),n=y5(e,t),e.eat(tm),n.explicit=!0,e.charCode()===PV&&(e.pos++,n.disallowEmpty=!0),n}function XGe(e,t){let n=e.charCode();switch(n){case tm:break;case em:return Jc(e,YGe(e,t));case b5:return e.nextCharCode()===_1?jGe(e):KGe(e);case cM:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===cM?2:1))};case iM:return e.pos++,e.eat(iM),{type:"Combinator",value:"&&"};case g5:return e.pos++,{type:"Comma"};case _1:return Jc(e,{type:"String",value:e.scanString()});case FGe:case NGe:case DGe:case zGe:case BGe:return{type:"Spaces",value:e.scanSpaces()};case HGe:return n=e.nextCharCode(),e.isNameCharCode(n)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):J3(e);case IV:case v5:case Pw:case m5:case PV:break;case w1:if(n=e.nextCharCode(),n<48||n>57)return J3(e);break;default:return e.isNameCharCode(n)?qGe(e):J3(e)}}function LV(e){const t=new RGe(e),n=y5(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const Bp=function(){};function pM(e){return typeof e=="function"?e:Bp}function ZGe(e,t,n){function r(s){switch(o.call(n,s),s.type){case"Group":s.terms.forEach(r);break;case"Multiplier":case"Boolean":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)}a.call(n,s)}let o=Bp,a=Bp;if(typeof t=="function"?o=t:t&&(o=pM(t.enter),a=pM(t.leave)),o===Bp&&a===Bp)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const JGe={decorator(e){const t=[];let n=null;return{...e,node(r){const o=n;n=r,e.node.call(this,r),n=o},emit(r,o,a){t.push({type:o,value:r,node:a?null:n})},result(){return t}}}};function QGe(e){const t=[];return Fb(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function eYe(e,t){return typeof e=="string"?QGe(e):t.generate(e,JGe)}const Vn={type:"Match"},Xn={type:"Mismatch"},_5={type:"DisallowEmpty"},tYe=40,nYe=41;function xo(e,t,n){return t===Vn&&n===Xn||e===Vn&&t===Vn&&n===Vn?e:(e.type==="If"&&e.else===Xn&&t===Vn&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function RV(e){return e.length>2&&e.charCodeAt(e.length-2)===tYe&&e.charCodeAt(e.length-1)===nYe}function mM(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&RV(e.name)}function pc(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function l0(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=l0(e.match,t,n),e.then=l0(e.then,t,n),e.else=l0(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function $w(e,t,n){switch(e){case" ":{let r=Vn;for(let o=t.length-1;o>=0;o--){const a=t[o];r=xo(a,r,Xn)}return r}case"|":{let r=Xn,o=null;for(let a=t.length-1;a>=0;a--){let s=t[a];if(mM(s)&&(o===null&&a>0&&mM(t[a-1])&&(o=Object.create(null),r=xo({type:"Enum",map:o},Vn,r)),o!==null)){const i=(RV(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(i in o)){o[i]=s;continue}}o=null,r=xo(s,Vn,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Xn;for(let o=t.length-1;o>=0;o--){const a=t[o];let s;t.length>1?s=$w(e,t.filter(function(i){return i!==a}),!1):s=Vn,r=xo(a,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?Vn:Xn;for(let o=t.length-1;o>=0;o--){const a=t[o];let s;t.length>1?s=$w(e,t.filter(function(i){return i!==a}),!0):s=Vn,r=xo(a,s,r)}return r}}}function rYe(e){let t=Vn,n=gf(e.term);if(e.max===0)n=xo(n,_5,Xn),t=xo(n,null,Xn),t.then=xo(Vn,Vn,t),e.comma&&(t.then.else=xo({type:"Comma",syntax:e},t,Xn));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==Vn&&(t=xo({type:"Comma",syntax:e},t,Xn)),t=xo(n,xo(Vn,Vn,t),Xn);if(e.min===0)t=xo(Vn,Vn,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==Vn&&(t=xo({type:"Comma",syntax:e},t,Xn)),t=xo(n,t,Xn);return t}function gf(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=$w(e.combinator,e.terms.map(gf),!1);return e.disallowEmpty&&(t=xo(t,_5,Xn)),t}case"Multiplier":return rYe(e);case"Boolean":{const t=gf(e.term),n=gf(pc([pc([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),pc([{type:"Type",name:"!boolean-group"},pc([{type:"Multiplier",comma:!1,min:0,max:0,term:pc([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:pc([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=gf(pc([{type:"Type",name:"!term"},pc([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return l0(r,{"!term":t,"!self":n}),l0(n,{"!boolean-group":r}),n}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 hg(e,t){return typeof e=="string"&&(e=LV(e)),{type:"MatchGraph",match:gf(e),syntax:t||null,source:e}}const{hasOwnProperty:vM}=Object.prototype,oYe=0,aYe=1,Iw=2,NV=3,gM="Match",sYe="Mismatch",iYe="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",bM=15e3;function lYe(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Q3(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let o=e.charCodeAt(n);if(o>=65&&o<=90&&(o=o|32),o!==r)return!1}return!0}function cYe(e){return e.type!==Nn?!1:e.value!=="?"}function yM(e){return e===null?!0:e.type===_a||e.type===bn||e.type===Un||e.type===Cs||e.type===mo||cYe(e)}function _M(e){return e===null?!0:e.type===rn||e.type===Js||e.type===ws||e.type===Nn&&e.value==="/"}function uYe(e,t,n){function r(){do C++,_=C<e.length?e[C]:null;while(_!==null&&(_.type===Sr||_.type===po))}function o(E){const T=C+E;return T<e.length?e[T]:null}function a(E,T){return{nextState:E,matchStack:k,syntaxStack:f,thenStack:m,tokenIndex:C,prev:T}}function s(E){m={nextState:E,matchStack:k,syntaxStack:f,prev:m}}function i(E){h=a(E,h)}function l(){k={type:aYe,syntax:t.syntax,token:_,prev:k},r(),v=null,C>S&&(S=C)}function u(){f={syntax:t.syntax,opts:t.syntax.opts||f!==null&&f.opts||null,prev:f},k={type:Iw,syntax:t.syntax,token:k.token,prev:k}}function d(){k.type===Iw?k=k.prev:k={type:NV,syntax:f.syntax,token:k.token,prev:k},f=f.prev}let f=null,m=null,h=null,v=null,g=0,y=null,_=null,C=-1,S=0,k={type:oYe,syntax:null,token:null,prev:null};for(r();y===null&&++g<bM;)switch(t.type){case"Match":if(m===null){if(_!==null&&(C!==e.length-1||_.value!=="\\0"&&_.value!=="\\9")){t=Xn;break}y=gM;break}if(t=m.nextState,t===_5)if(m.matchStack===k){t=Xn;break}else t=Vn;for(;m.syntaxStack!==f;)d();m=m.prev;break;case"Mismatch":if(v!==null&&v!==!1)(h===null||C>h.tokenIndex)&&(h=v,v=!1);else if(h===null){y=sYe;break}t=h.nextState,m=h.thenStack,f=h.syntaxStack,k=h.matchStack,C=h.tokenIndex,_=C<e.length?e[C]:null,h=h.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Xn&&i(t.else),t.then!==Vn&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const R=t.syntax.terms;if(t.index===R.length){if(t.mask===0||t.syntax.all){t=Xn;break}t=Vn;break}if(t.mask===(1<<R.length)-1){t=Vn;break}for(;t.index<R.length;t.index++){const P=1<<t.index;if((t.mask&P)===0){i(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|P}),t=R[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(_!==null){let R=_.value.toLowerCase();if(R.indexOf("\\")!==-1&&(R=R.replace(/\\[09].*$/,"")),vM.call(t.map,R)){t=t.map[R];break}}t=Xn;break;case"Generic":{const R=f!==null?f.opts:null,P=C+Math.floor(t.fn(_,o,R));if(!isNaN(P)&&P>C){for(;C<P;)l();t=Vn}else t=Xn;break}case"Type":case"Property":{const R=t.type==="Type"?"types":"properties",P=vM.call(n,R)?n[R][t.name]:null;if(!P||!P.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(v!==!1&&_!==null&&t.type==="Type"&&(t.name==="custom-ident"&&_.type===St||t.name==="length"&&_.value==="0")){v===null&&(v=a(t,h)),t=Xn;break}u(),t=P.matchRef||P.match;break}case"Keyword":{const R=t.name;if(_!==null){let P=_.value;if(P.indexOf("\\")!==-1&&(P=P.replace(/\\[09].*$/,"")),Q3(P,R)){l(),t=Vn;break}}t=Xn;break}case"AtKeyword":case"Function":if(_!==null&&Q3(_.value,t.name)){l(),t=Vn;break}t=Xn;break;case"Token":if(_!==null&&_.value===t.value){l(),t=Vn;break}t=Xn;break;case"Comma":_!==null&&_.type===_a?yM(k.token)?t=Xn:(l(),t=_M(_)?Xn:Vn):t=yM(k.token)||_M(_)?Vn:Xn;break;case"String":let E="",T=C;for(;T<e.length&&E.length<t.value.length;T++)E+=e[T].value;if(Q3(E,t.value)){for(;C<T;)l();t=Vn}else t=Xn;break;default:throw new Error("Unknown node type: "+t.type)}switch(y){case null:console.warn("[csstree-match] BREAK after "+bM+" iterations"),y=iYe,k=null;break;case gM:for(;f!==null;)d();break;default:k=null}return{tokens:e,reason:y,iterations:g,match:k,longestMatch:S}}function wM(e,t,n){const r=uYe(e,t,n||{});if(r.match===null)return r;let o=r.match,a=r.match={syntax:t.syntax||null,match:[]};const s=[a];for(o=lYe(o).prev;o!==null;){switch(o.type){case Iw:a.match.push(a={syntax:o.syntax,match:[]}),s.push(a);break;case NV:s.pop(),a=s[s.length-1];break;default:a.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r}function DV(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 a=0;a<o.match.length;a++)if(n(o.match[a]))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 dYe(e,t){return w5(this,e,n=>n.type==="Type"&&n.name===t)}function fYe(e,t){return w5(this,e,n=>n.type==="Property"&&n.name===t)}function hYe(e){return w5(this,e,t=>t.type==="Keyword")}function w5(e,t,n){const r=DV.call(e,t);return r===null?!1:r.some(n)}const pYe=Object.freeze(Object.defineProperty({__proto__:null,getTrace:DV,isKeyword:hYe,isProperty:fYe,isType:dYe},Symbol.toStringTag,{value:"Module"}));function BV(e){return"node"in e?e.node:BV(e.match[0])}function zV(e){return"node"in e?e.node:zV(e.match[e.match.length-1])}function SM(e,t,n,r,o){function a(i){if(i.syntax!==null&&i.syntax.type===r&&i.syntax.name===o){const l=BV(i),u=zV(i);e.syntax.walk(t,function(d,f,m){if(d===l){const h=new Jr;do{if(h.appendData(f.data),f.data===u)break;f=f.next}while(f!==null);s.push({parent:m,nodes:h})}})}Array.isArray(i.match)&&i.match.forEach(a)}const s=[];return n.matched!==null&&a(n.matched),s}const{hasOwnProperty:c0}=Object.prototype;function e6(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function CM(e){return!!e&&e6(e.offset)&&e6(e.line)&&e6(e.column)}function mYe(e,t){return function(r,o){if(!r||r.constructor!==Object)return o(r,"Type of node should be an Object");for(let a in r){let s=!0;if(c0.call(r,a)!==!1){if(a==="type")r.type!==e&&o(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(a==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")a+=".source";else if(!CM(r.loc.start))a+=".start";else if(!CM(r.loc.end))a+=".end";else continue;s=!1}else if(t.hasOwnProperty(a)){s=!1;for(let i=0;!s&&i<t[a].length;i++){const l=t[a][i];switch(l){case String:s=typeof r[a]=="string";break;case Boolean:s=typeof r[a]=="boolean";break;case null:s=r[a]===null;break;default:typeof l=="string"?s=r[a]&&r[a].type===l:Array.isArray(l)&&(s=r[a]instanceof Jr)}}}else o(r,"Unknown field `"+a+"` for "+e+" node type");s||o(r,"Bad value for `"+e+"."+a+"`")}}for(const a in t)c0.call(t,a)&&c0.call(r,a)===!1&&o(r,"Field `"+e+"."+a+"` is missed")}}function FV(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o===String||o===Boolean)n.push(o.name.toLowerCase());else if(o===null)n.push("null");else if(typeof o=="string")n.push(o);else if(Array.isArray(o))n.push("List<"+(FV(o,t)||"any")+">");else throw new Error("Wrong value `"+o+"` in `"+t+"` structure definition")}return n.join(" | ")}function vYe(e,t){const n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(const a in n){if(c0.call(n,a)===!1)continue;const s=r[a]=Array.isArray(n[a])?n[a].slice():[n[a]];o[a]=FV(s,e+"."+a)}return{docs:o,check:mYe(e,r)}}function gYe(e){const t={};if(e.node){for(const n in e.node)if(c0.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=vYe(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Lw(e,t,n){const r={};for(const o in e)e[o].syntax&&(r[o]=n?e[o].syntax:d5(e[o].syntax,{compact:t}));return r}function bYe(e,t,n){const r={};for(const[o,a]of Object.entries(e))r[o]={prelude:a.prelude&&(n?a.prelude.syntax:d5(a.prelude.syntax,{compact:t})),descriptors:a.descriptors&&Lw(a.descriptors,t,n)};return r}function yYe(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function _Ye(e){const t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type==="Multiplier"&&t.comma===!0}function Is(e,t,n){return{matched:e,iterations:n,error:t,...pYe}}function rf(e,t,n,r){const o=eYe(n,e.syntax);let a;return yYe(o)?Is(null,new Error("Matching for a tree with var() is not supported")):(r&&(a=wM(o,e.cssWideKeywordsSyntax,e)),(!r||!a.match)&&(a=wM(o,t.match,e),!a.match)?Is(null,new Zqe(a.reason,t.syntax,n,a),a.iterations):Is(a.match,null,a.iterations))}class kM{constructor(t,n,r){if(this.cssWideKeywords=h5,this.syntax=n,this.generic=!1,this.units={...aM},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||gYe(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const o of Object.keys(aM))Array.isArray(t.units[o])&&(this.units[o]=t.units[o]);if(t.types)for(const[o,a]of Object.entries(t.types))this.addType_(o,a);if(t.generic){this.generic=!0;for(const[o,a]of Object.entries(_Ge(this.units)))this.addType_(o,a)}if(t.atrules)for(const[o,a]of Object.entries(t.atrules))this.addAtrule_(o,a);if(t.properties)for(const[o,a]of Object.entries(t.properties))this.addProperty_(o,a)}this.cssWideKeywordsSyntax=hg(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(a,s){o.push({node:a,message:s})}const r=this.structure,o=[];return this.syntax.walk(t,function(a){r.hasOwnProperty(a.type)?r[a.type].check(a,n):n(a,"Unknown node type `"+a.type+"`")}),o.length?o:!1}createDescriptor(t,n,r,o=null){const a={type:n,name:r},s={type:n,name:r,parent:o,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null,matchRef:null};return typeof t=="function"?s.match=hg(t,a):(typeof t=="string"?Object.defineProperty(s,"syntax",{get(){return Object.defineProperty(s,"syntax",{value:LV(t)}),s.syntax}}):s.syntax=t,Object.defineProperty(s,"match",{get(){return Object.defineProperty(s,"match",{value:hg(s.syntax,a)}),s.match}}),n==="Property"&&Object.defineProperty(s,"matchRef",{get(){const i=s.syntax,l=_Ye(i)?hg({...i,terms:[i.terms[0].term]},a):null;return Object.defineProperty(s,"matchRef",{value:l}),l}})),s}addAtrule_(t,n){n&&(this.atrules[t]={type:"Atrule",name:t,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce((r,o)=>(r[o]=this.createDescriptor(n.descriptors[o],"AtruleDescriptor",o,t),r),Object.create(null)):null})}addProperty_(t,n){n&&(this.properties[t]=this.createDescriptor(n,"Property",t))}addType_(t,n){n&&(this.types[t]=this.createDescriptor(n,"Type",t))}checkAtruleName(t){if(!this.getAtrule(t))return new xp("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const o=this.getAtrule(t);if(!o.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(o.prelude&&!n&&!rf(this,o.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+t+"` should contain a prelude")}checkAtruleDescriptorName(t,n){const r=this.checkAtruleName(t);if(r)return r;const o=this.getAtrule(t),a=Y3(n);if(!o.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!o.descriptors[a.name]&&!o.descriptors[a.basename])return new xp("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new xp("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return Is(null,r);const o=this.getAtrule(t);return o.prelude?rf(this,o.prelude,n||"",!1):Is(null,null)}matchAtruleDescriptor(t,n,r){const o=this.checkAtruleDescriptorName(t,n);if(o)return Is(null,o);const a=this.getAtrule(t),s=Y3(n);return rf(this,a.descriptors[s.name]||a.descriptors[s.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?Is(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(oM(t).custom)return Is(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?Is(null,r):rf(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?rf(this,r,n,!1):Is(null,new xp("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?Is(null,new xp("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),rf(this,t,n,!1))}findValueFragments(t,n,r,o){return SM(this,n,this.matchProperty(t,n),r,o)}findDeclarationValueFragments(t,n,r){return SM(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const o=[];return this.syntax.walk(t,{visit:"Declaration",enter:a=>{o.push.apply(o,this.findDeclarationValueFragments(a,n,r))}}),o}getAtrule(t,n=!0){const r=Y3(t);return(r.vendor&&n?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(t,n=!0){const r=this.getAtrule(t,n);return r&&r.prelude||null}getAtruleDescriptor(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null}getProperty(t,n=!0){const r=oM(t);return(r.vendor&&n?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(l,u){return u?`<${l}>`:`<'${l}'>`}function n(l,u,d,f){if(d.has(u))return d.get(u);d.set(u,!1),f.syntax!==null&&ZGe(f.syntax,function(m){if(m.type!=="Type"&&m.type!=="Property")return;const h=m.type==="Type"?l.types:l.properties,v=m.type==="Type"?o:a;hasOwnProperty.call(h,m.name)?n(l,m.name,v,h[m.name])&&(r.push(`${t(u,d===o)} used broken syntax definition ${t(m.name,m.type==="Type")}`),d.set(u,!0)):(r.push(`${t(u,d===o)} used missed syntax definition ${t(m.name,m.type==="Type")}`),d.set(u,!0))},this)}const r=[];let o=new Map,a=new Map;for(const l in this.types)n(this,l,o,this.types[l]);for(const l in this.properties)n(this,l,a,this.properties[l]);const s=[...o.keys()].filter(l=>o.get(l)),i=[...a.keys()].filter(l=>a.get(l));return s.length||i.length?{errors:r,types:s,properties:i}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Lw(this.types,!n,t),properties:Lw(this.properties,!n,t),atrules:bYe(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function t6(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function xM(e,t){const n=Object.create(null);for(const[r,o]of Object.entries(e))if(o){n[r]={};for(const a of Object.keys(o))t.includes(a)&&(n[r][a]=o[a])}return n}function Rw(e,t){const n={...e};for(const[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"cssWideKeywords":n[r]=e[r]?[...e[r],...o]:o||[];break;case"units":n[r]={...e[r]};for(const[a,s]of Object.entries(o))n[r][a]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(const[a,s]of Object.entries(o)){const i=n[r][a]||{},l=n[r][a]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(s){l.prelude=s.prelude?t6(l.prelude,s.prelude):l.prelude||null;for(const[u,d]of Object.entries(s.descriptors||{}))l.descriptors[u]=d?t6(l.descriptors[u],d):null;Object.keys(l.descriptors).length||(l.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[a,s]of Object.entries(o))n[r][a]=t6(n[r][a],s);break;case"scope":case"features":n[r]={...e[r]};for(const[a,s]of Object.entries(o))n[r][a]={...n[r][a],...s};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...xM(o,["parse"])};break;case"node":n[r]={...e[r],...xM(o,["name","structure","parse","generate","walkContext"])};break}return n}function VV(e){const t=Eqe(e),n=Wqe(e),r=Vqe(e),{fromPlainObject:o,toPlainObject:a}=Hqe(n),s={lexer:null,createLexer:i=>new kM(i,s,s.lexer.structure),tokenize:Fb,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:a,fork(i){const l=Rw({},e);return VV(typeof i=="function"?i(l):Rw(l,i))}};return s.lexer=new kM({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const wYe=e=>VV(Rw({},e)),SYe={generic:!0,cssWideKeywords:["initial","inherit","unset","revert","revert-layer"],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|x|y","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<xywh()>|<rect()>|<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:"<color-base>|currentColor|<system-color>|<device-cmyk()>|<light-dark()>|<-non-standard-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>","color-interpolation-method":"in [<rectangular-color-space>|<polar-color-space> <hue-interpolation-method>?|<custom-color-space>]",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>*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","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,∞]>] , [<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>? )]|[( <any-value>? )]","generic-family":"<generic-script-specific>|<generic-complete>|<generic-incomplete>|<-non-standard-generic-family>","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> )","hue-interpolation-method":"[shorter|longer|increasing|decreasing] hue","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>|<timeline-range-name> <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>","light-dark()":"light-dark( <color> , <color> )","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-interpolation-method>]? , <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,∞]>|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","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,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )","polar-color-space":"hsl|hwb|lch|oklch",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>|<legacy-pseudo-element-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,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","rectangular-color-space":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65","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>] )","scroll()":"scroll( [<axis>||<scroller>]? )",scroller:"root|nearest|self","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":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","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|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>||<transition-behavior-value>","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>","system-color":"AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText","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-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","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,∞]>] , [<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>+","transition-behavior-value":"normal|allow-discrete","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>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","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":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-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","-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>? )","absolute-color-base":"<hex-color>|<absolute-color-function>|<named-color>|transparent","absolute-color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>",age:"child|young|old","anchor-name":"<dashed-ident>","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>]*]","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","generic-script-specific":"generic( kai )|generic( fangsong )|generic( nastaliq )","generic-complete":"serif|sans-serif|system-ui|cursive|fantasy|math|monospace","generic-incomplete":"ui-serif|ui-sans-serif|ui-monospace|ui-rounded","-non-standard-generic-family":"-apple-system|BlinkMacSystemFont",left:"<length>|auto","color-base":"<hex-color>|<color-function>|<named-color>|<color-mix()>|transparent","color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>","device-cmyk()":"<legacy-device-cmyk-syntax>|<modern-device-cmyk-syntax>","legacy-device-cmyk-syntax":"device-cmyk( <number>#{4} )","modern-device-cmyk-syntax":"device-cmyk( <cmyk-component>{4} [/ [<alpha-value>|none]]? )","cmyk-component":"<number>|<percentage>|none","color-mix()":"color-mix( <color-interpolation-method> , [<color>&&<percentage [0,100]>?]#{2} )","color-space":"<rectangular-color-space>|<polar-color-space>|<custom-color-space>","custom-color-space":"<dashed-ident>",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","palette-identifier":"<dashed-ident>",right:"<length>|auto","scope-start":"<forgiving-selector-list>","scope-end":"<forgiving-selector-list>","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","selector-list":"<complex-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","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,∞]>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","predefined-rgb":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","xyz-space":"xyz|xyz-d50|xyz-d65","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","offset-path":"<ray()>|<url>|<basic-shape>","rect()":"rect( [<length-percentage>|auto]{4} [round <'border-radius'>]? )","xywh()":"xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [round <'border-radius'>]? )","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","inset-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","position-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|center|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|center|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","anchor()":"anchor( <anchor-element>?&&<anchor-side> , <length-percentage>? )","anchor-side":"inside|outside|top|left|right|bottom|start|end|self-start|self-end|<percentage>|center","anchor-size()":"anchor-size( [<anchor-element>||<anchor-size>]? , <length-percentage>? )","anchor-size":"width|height|block|inline|self-block|self-inline","anchor-element":"<dashed-ident>","try-size":"most-width|most-height|most-block-size|most-inline-size","try-tactic":"flip-block||flip-inline||flip-start","font-variant-css2":"normal|small-caps","font-width-css3":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","system-family-name":"caption|icon|menu|message-box|small-caption|status-bar"},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","anchor-name":"none|<dashed-ident>#","anchor-scope":"none|all|<dashed-ident>#",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-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","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-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","clip-rule":"nonzero|evenodd",color:"<color>","color-interpolation-filters":"auto|sRGB|linearRGB","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance","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":"[auto? [none|<length>]]{1,2}","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",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]]",d:"none|path( <string> )",cx:"<length>|<percentage>",cy:"<length>|<percentage>",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge","empty-cells":"show|hide","field-sizing":"content|fixed",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd",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-css2>||<'font-weight'>||<font-width-css3>]? <'font-size'> [/ <'line-height'>]? <'font-family'>#]|<system-family-name>|<-non-standard-font>","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-palette":"normal|light|dark|<palette-identifier>","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||position]","font-synthesis-position":"auto|none","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","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-emoji":"normal|text|emoji|unicode","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|preserve-parent-color",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> )|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",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'>","interpolate-size":"numeric-only|allow-keywords",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",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",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> )|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","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|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-width'>||<'outline-style'>||<'outline-color'>]","outline-color":"auto|<color>","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,∞]>","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",overlay:"none|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:"auto|<custom-ident>","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","position-anchor":"auto|<anchor-name>","position-area":"none|<position-area>","position-try":"<'position-try-order'>? <'position-try-fallbacks'>","position-try-fallbacks":"none|[[<dashed-ident>||<try-tactic>]|<'position-area'>]#","position-try-order":"normal|<try-size>","position-visibility":"always|[anchors-valid||anchors-visible||no-overflow]","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",r:"<length>|<percentage>",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",rx:"<length>|<percentage>",ry:"<length>|<percentage>",scale:"none|[<number>|<percentage>]{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|x|y]#","scroll-timeline-name":"[none|<dashed-ident>]#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",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":"<'opacity'>","stroke-width":"<svg-length>","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-anchor":"start|middle|end","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":"auto|[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-spacing-trim":"space-all|normal|space-first|trim-start|trim-both|trim-all|auto","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]]","text-wrap":"<'text-wrap-mode'>||<'text-wrap-style'>","text-wrap-mode":"auto|wrap|nowrap","text-wrap-style":"auto|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#",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-behavior":"<transition-behavior-value>#","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","vector-effect":"none|non-scaling-stroke|non-scaling-size|non-rotation|fixed-position","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> <'view-timeline-axis'>?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"none|<dashed-ident>#","view-transition-name":"none|<custom-ident>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]","white-space-collapse":"collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word|auto-phrase","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>",x:"<length>|<percentage>",y:"<length>|<percentage>","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>+",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",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",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|never|always","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]","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>]","white-space-trim":"none|discard-before||discard-after||discard-inner"},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-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <absolute-color-base>]#"}},"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}","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]","page-orientation":"upright|rotate-left|rotate-right",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},"position-try":{prelude:"<dashed-ident>",descriptors:{top:"<'top'>",left:"<'left'>",bottom:"<'bottom'>",right:"<'right'>","inset-block-start":"<'inset-block-start'>","inset-block-end":"<'inset-block-end'>","inset-inline-start":"<'inset-inline-start'>","inset-inline-end":"<'inset-inline-end'>","inset-block":"<'inset-block'>","inset-inline":"<'inset-inline'>",inset:"<'inset'>","margin-top":"<'margin-top'>","margin-left":"<'margin-left'>","margin-bottom":"<'margin-bottom'>","margin-right":"<'margin-right'>","margin-block-start":"<'margin-block-start'>","margin-block-end":"<'margin-block-end'>","margin-inline-start":"<'margin-inline-start'>","margin-inline-end":"<'margin-inline-end'>",margin:"<'margin'>","margin-block":"<'margin-block'>","margin-inline":"<'margin-inline'>",width:"<'width'>",height:"<'height'>","min-width":"<'min-width'>","min-height":"<'min-height'>","max-width":"<'max-width'>","max-height":"<'max-height'>","block-size":"<'block-size'>","inline-size":"<'inline-size'>","min-block-size":"<'min-block-size'>","min-inline-size":"<'min-inline-size'>","max-block-size":"<'max-block-size'>","max-inline-size":"<'max-inline-size'>","align-self":"<'align-self'>|anchor-center","justify-self":"<'justify-self'>|anchor-center"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<declaration-value>?"}},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null},"starting-style":{prelude:null,descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null}}},yi=43,La=45,i2=110,Tu=!0,CYe=!1;function l2(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===yi||r===La)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)uo(this.charCodeAt(n))||this.error("Integer is expected",n)}function bf(e){return l2.call(this,0,e)}function mc(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case i2:n="N is expected";break;case La:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function n6(){let e=0,t=0,n=this.tokenType;for(;n===Sr||n===po;)n=this.lookupType(++e);if(n!==an)if(this.isDelim(yi,e)||this.isDelim(La,e)){t=this.isDelim(yi,e)?yi:La;do n=this.lookupType(++e);while(n===Sr||n===po);n!==an&&(this.skip(e),bf.call(this,Tu))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==yi&&n!==La&&this.error("Number sign is expected")),bf.call(this,t!==0),t===La?"-"+this.consume(an):this.consume(an)}const kYe="AnPlusB",xYe={a:[String,null],b:[String,null]};function HV(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===an)bf.call(this,CYe),n=this.consume(an);else if(this.tokenType===St&&this.cmpChar(this.tokenStart,La))switch(t="-1",mc.call(this,1,i2),this.tokenEnd-this.tokenStart){case 2:this.next(),n=n6.call(this);break;case 3:mc.call(this,2,La),this.next(),this.skipSC(),bf.call(this,Tu),n="-"+this.consume(an);break;default:mc.call(this,2,La),l2.call(this,3,Tu),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===St||this.isDelim(yi)&&this.lookupType(1)===St){let r=0;switch(t="1",this.isDelim(yi)&&(r=1,this.next()),mc.call(this,0,i2),this.tokenEnd-this.tokenStart){case 1:this.next(),n=n6.call(this);break;case 2:mc.call(this,1,La),this.next(),this.skipSC(),bf.call(this,Tu),n="-"+this.consume(an);break;default:mc.call(this,1,La),l2.call(this,2,Tu),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Pn){const r=this.charCodeAt(this.tokenStart),o=r===yi||r===La;let a=this.tokenStart+o;for(;a<this.tokenEnd&&uo(this.charCodeAt(a));a++);a===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),mc.call(this,a-this.tokenStart,i2),t=this.substring(e,a),a+1===this.tokenEnd?(this.next(),n=n6.call(this)):(mc.call(this,a-this.tokenStart+1,La),a+2===this.tokenEnd?(this.next(),this.skipSC(),bf.call(this,Tu),n="-"+this.consume(an)):(l2.call(this,a-this.tokenStart+2,Tu),this.next(),n=this.substrToCursor(a+1)))}else this.error();return t!==null&&t.charCodeAt(0)===yi&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===yi&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function EYe(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}const TYe=Object.freeze(Object.defineProperty({__proto__:null,generate:EYe,name:kYe,parse:HV,structure:xYe},Symbol.toStringTag,{value:"Module"}));function EM(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function AYe(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ws)return!0;if(t===mo||t===Nr)return!1}return!1}const OYe="Atrule",MYe="atrule",PYe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function UV(e=!1){const t=this.tokenStart;let n,r,o=null,a=null;switch(this.eat(Nr),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==mo&&this.tokenType!==Lo&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),EM):o=EM.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Lo:this.next();break;case mo:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this,e):a=this.Block(AYe.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:a}}function $Ye(e){this.token(Nr,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Lo,";")}const IYe=Object.freeze(Object.defineProperty({__proto__:null,generate:$Ye,name:OYe,parse:UV,structure:PYe,walkContext:MYe},Symbol.toStringTag,{value:"Module"})),LYe="AtrulePrelude",RYe="atrulePrelude",NYe={children:[[]]};function jV(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!==mo&&this.tokenType!==Lo&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function DYe(e){this.children(e)}const BYe=Object.freeze(Object.defineProperty({__proto__:null,generate:DYe,name:LYe,parse:jV,structure:NYe,walkContext:RYe},Symbol.toStringTag,{value:"Module"})),zYe=36,WV=42,c2=61,FYe=94,Nw=124,VYe=126;function HYe(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(WV)?(t=!0,this.next()):this.isDelim(Nw)||this.eat(St),this.isDelim(Nw)?this.charCodeAt(this.tokenStart+1)!==c2?(this.next(),this.eat(St)):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 UYe(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==c2&&t!==VYe&&t!==FYe&&t!==zYe&&t!==WV&&t!==Nw&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==c2&&(this.isDelim(c2)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const jYe="AttributeSelector",WYe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function KV(){const e=this.tokenStart;let t,n=null,r=null,o=null;return this.eat(Cs),this.skipSC(),t=HYe.call(this),this.skipSC(),this.tokenType!==Js&&(this.tokenType!==St&&(n=UYe.call(this),this.skipSC(),r=this.tokenType===ai?this.String():this.Identifier(),this.skipSC()),this.tokenType===St&&(o=this.consume(St),this.skipSC())),this.eat(Js),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}}function KYe(e){this.token(Nn,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(St,e.flags),this.token(Nn,"]")}const qYe=Object.freeze(Object.defineProperty({__proto__:null,generate:KYe,name:jYe,parse:KV,structure:WYe},Symbol.toStringTag,{value:"Module"})),GYe=38;function qV(){return this.Raw(null,!0)}function TM(){return this.parseWithFallback(this.Rule,qV)}function AM(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function YYe(){if(this.tokenType===Lo)return AM.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,AM);return this.tokenType===Lo&&this.next(),e}const XYe="Block",ZYe="block",JYe={children:[["Atrule","Rule","Declaration"]]};function GV(e){const t=e?YYe:TM,n=this.tokenStart;let r=this.createList();this.eat(mo);e:for(;!this.eof;)switch(this.tokenType){case ws:break e;case Sr:case po:this.next();break;case Nr:r.push(this.parseWithFallback(this.Atrule.bind(this,e),qV));break;default:e&&this.isDelim(GYe)?r.push(TM.call(this)):r.push(t.call(this))}return this.eof||this.eat(ws),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function QYe(e){this.token(mo,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Lo,";")}),this.token(ws,"}")}const eXe=Object.freeze(Object.defineProperty({__proto__:null,generate:QYe,name:XYe,parse:GV,structure:JYe,walkContext:ZYe},Symbol.toStringTag,{value:"Module"})),tXe="Brackets",nXe={children:[[]]};function YV(e,t){const n=this.tokenStart;let r=null;return this.eat(Cs),r=e.call(this,t),this.eof||this.eat(Js),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function rXe(e){this.token(Nn,"["),this.children(e),this.token(Nn,"]")}const oXe=Object.freeze(Object.defineProperty({__proto__:null,generate:rXe,name:tXe,parse:YV,structure:nXe},Symbol.toStringTag,{value:"Module"})),aXe="CDC",sXe=[];function XV(){const e=this.tokenStart;return this.eat(ra),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function iXe(){this.token(ra,"-->")}const lXe=Object.freeze(Object.defineProperty({__proto__:null,generate:iXe,name:aXe,parse:XV,structure:sXe},Symbol.toStringTag,{value:"Module"})),cXe="CDO",uXe=[];function ZV(){const e=this.tokenStart;return this.eat(Dm),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function dXe(){this.token(Dm,"<!--")}const fXe=Object.freeze(Object.defineProperty({__proto__:null,generate:dXe,name:cXe,parse:ZV,structure:uXe},Symbol.toStringTag,{value:"Module"})),hXe=46,pXe="ClassSelector",mXe={name:String};function JV(){return this.eatDelim(hXe),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(St)}}function vXe(e){this.token(Nn,"."),this.token(St,e.name)}const gXe=Object.freeze(Object.defineProperty({__proto__:null,generate:vXe,name:pXe,parse:JV,structure:mXe},Symbol.toStringTag,{value:"Module"})),bXe=43,OM=47,yXe=62,_Xe=126,wXe="Combinator",SXe={name:String};function QV(){const e=this.tokenStart;let t;switch(this.tokenType){case Sr:t=" ";break;case Nn:switch(this.charCodeAt(this.tokenStart)){case yXe:case bXe:case _Xe:this.next();break;case OM:this.next(),this.eatIdent("deep"),this.eatDelim(OM);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function CXe(e){this.tokenize(e.name)}const kXe=Object.freeze(Object.defineProperty({__proto__:null,generate:CXe,name:wXe,parse:QV,structure:SXe},Symbol.toStringTag,{value:"Module"})),xXe=42,EXe=47,TXe="Comment",AXe={value:String};function eH(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(po),t-e+2>=2&&this.charCodeAt(t-2)===xXe&&this.charCodeAt(t-1)===EXe&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function OXe(e){this.token(po,"/*"+e.value+"*/")}const MXe=Object.freeze(Object.defineProperty({__proto__:null,generate:OXe,name:TXe,parse:eH,structure:AXe},Symbol.toStringTag,{value:"Module"})),PXe=new Set([Io,rn,Ac]),$Xe="Condition",IXe={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function MM(e){return this.lookupTypeNonSC(1)===St&&PXe.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const LXe={media:MM,container:MM,supports(){return this.SupportsDeclaration()}};function tH(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case po:case Sr:this.next();continue;case St:t.push(this.Identifier());break;case Un:{let n=this.parseWithFallback(()=>LXe[e].call(this,e),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(Un);const r=this.Condition(e);return this.eat(rn),r},()=>this.GeneralEnclosed(e))),t.push(n);break}case bn:{let n=this.parseWithFallback(()=>this.FeatureFunction(e),()=>null);n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}}function RXe(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(Un,"("),this.node(t),this.token(rn,")")):this.node(t)})}const NXe=Object.freeze(Object.defineProperty({__proto__:null,generate:RXe,name:$Xe,parse:tH,structure:IXe},Symbol.toStringTag,{value:"Module"})),nH=33,DXe=35,BXe=36,zXe=38,FXe=42,VXe=43,PM=47;function HXe(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function UXe(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function jXe(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Lo&&this.isDelim(nH)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const WXe="Declaration",KXe="declaration",qXe={important:[Boolean,String],property:String,value:["Value","Raw"]};function rH(){const e=this.tokenStart,t=this.tokenIndex,n=YXe.call(this),r=f5(n),o=r?this.parseCustomProperty:this.parseValue,a=r?UXe:HXe;let s=!1,i;this.skipSC(),this.eat(Io);const l=this.tokenIndex;if(r||this.skipSC(),o?i=this.parseWithFallback(jXe,a):i=a.call(this,this.tokenIndex),r&&i.type==="Value"&&i.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===Sr){i.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(nH)&&(s=XXe.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Lo&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:i}}function GXe(e){this.token(St,e.property),this.token(Io,":"),this.node(e.value),e.important&&(this.token(Nn,"!"),this.token(St,e.important===!0?"important":e.important))}function YXe(){const e=this.tokenStart;if(this.tokenType===Nn)switch(this.charCodeAt(this.tokenStart)){case FXe:case BXe:case VXe:case DXe:case zXe:this.next();break;case PM:this.next(),this.isDelim(PM)&&this.next();break}return this.tokenType===or?this.eat(or):this.eat(St),this.substrToCursor(e)}function XXe(){this.eat(Nn),this.skipSC();const e=this.consume(St);return e==="important"?!0:e}const ZXe=Object.freeze(Object.defineProperty({__proto__:null,generate:GXe,name:WXe,parse:rH,structure:qXe,walkContext:KXe},Symbol.toStringTag,{value:"Module"})),JXe=38;function r6(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const QXe="DeclarationList",eZe={children:[["Declaration","Atrule","Rule"]]};function oH(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Sr:case po:case Lo:this.next();break;case Nr:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),r6));break;default:this.isDelim(JXe)?e.push(this.parseWithFallback(this.Rule,r6)):e.push(this.parseWithFallback(this.Declaration,r6))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function tZe(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Lo,";")})}const nZe=Object.freeze(Object.defineProperty({__proto__:null,generate:tZe,name:QXe,parse:oH,structure:eZe},Symbol.toStringTag,{value:"Module"})),rZe="Dimension",oZe={value:String,unit:String};function aH(){const e=this.tokenStart,t=this.consumeNumber(Pn);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function aZe(e){this.token(Pn,e.value+e.unit)}const sZe=Object.freeze(Object.defineProperty({__proto__:null,generate:aZe,name:rZe,parse:aH,structure:oZe},Symbol.toStringTag,{value:"Module"})),iZe=47,lZe="Feature",cZe={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function sH(e){const t=this.tokenStart;let n,r=null;if(this.eat(Un),this.skipSC(),n=this.consume(St),this.skipSC(),this.tokenType!==rn){switch(this.eat(Io),this.skipSC(),this.tokenType){case an:this.lookupNonWSType(1)===Nn?r=this.Ratio():r=this.Number();break;case Pn:r=this.Dimension();break;case St:r=this.Identifier();break;case bn:r=this.parseWithFallback(()=>{const o=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(iZe)&&this.error(),o},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(rn),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function uZe(e){this.token(Un,"("),this.token(St,e.name),e.value!==null&&(this.token(Io,":"),this.node(e.value)),this.token(rn,")")}const dZe=Object.freeze(Object.defineProperty({__proto__:null,generate:uZe,name:lZe,parse:sH,structure:cZe},Symbol.toStringTag,{value:"Module"})),fZe="FeatureFunction",hZe={kind:String,feature:String,value:["Declaration","Selector"]};function pZe(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function iH(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=pZe.call(this,e,n.toLowerCase());this.skipSC();const o=this.parseWithFallback(()=>{const a=this.tokenIndex,s=r.call(this);return this.eof===!1&&this.isBalanceEdge(a)===!1&&this.error(),s},()=>this.Raw(null,!1));return this.eof||this.eat(rn),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:o}}function mZe(e){this.token(bn,e.feature+"("),this.node(e.value),this.token(rn,")")}const vZe=Object.freeze(Object.defineProperty({__proto__:null,generate:mZe,name:fZe,parse:iH,structure:hZe},Symbol.toStringTag,{value:"Module"})),$M=47,gZe=60,IM=61,bZe=62,yZe="FeatureRange",_Ze={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function o6(){switch(this.skipSC(),this.tokenType){case an:return this.isDelim($M,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Pn:return this.Dimension();case St:return this.Identifier();case bn:return this.parseWithFallback(()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim($M)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function LM(e){if(this.skipSC(),this.isDelim(gZe)||this.isDelim(bZe)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(IM)?(this.next(),t+"="):t}if(this.isDelim(IM))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function lH(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Un);const n=o6.call(this),r=LM.call(this,n.type==="Identifier"),o=o6.call(this);let a=null,s=null;return this.lookupNonWSType(0)!==rn&&(a=LM.call(this),s=o6.call(this)),this.skipSC(),this.eat(rn),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:o,rightComparison:a,right:s}}function wZe(e){this.token(Un,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(rn,")")}const SZe=Object.freeze(Object.defineProperty({__proto__:null,generate:wZe,name:yZe,parse:lH,structure:_Ze},Symbol.toStringTag,{value:"Module"})),CZe="Function",kZe="function",xZe={name:String,children:[[]]};function cH(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase();let a;return a=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(rn),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:a}}function EZe(e){this.token(bn,e.name+"("),this.children(e),this.token(rn,")")}const TZe=Object.freeze(Object.defineProperty({__proto__:null,generate:EZe,name:CZe,parse:cH,structure:xZe,walkContext:kZe},Symbol.toStringTag,{value:"Module"})),AZe="GeneralEnclosed",OZe={kind:String,function:[String,null],children:[[]]};function uH(e){const t=this.tokenStart;let n=null;this.tokenType===bn?n=this.consumeFunctionName():this.eat(Un);const r=this.parseWithFallback(()=>{const o=this.tokenIndex,a=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(o)===!1&&this.error(),a},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(rn),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function MZe(e){e.function?this.token(bn,e.function+"("):this.token(Un,"("),this.children(e),this.token(rn,")")}const PZe=Object.freeze(Object.defineProperty({__proto__:null,generate:MZe,name:AZe,parse:uH,structure:OZe},Symbol.toStringTag,{value:"Module"})),$Ze="XXX",IZe="Hash",LZe={value:String};function dH(){const e=this.tokenStart;return this.eat(or),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function RZe(e){this.token(or,"#"+e.value)}const NZe=Object.freeze(Object.defineProperty({__proto__:null,generate:RZe,name:IZe,parse:dH,structure:LZe,xxx:$Ze},Symbol.toStringTag,{value:"Module"})),DZe="Identifier",BZe={name:String};function fH(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(St)}}function zZe(e){this.token(St,e.name)}const FZe=Object.freeze(Object.defineProperty({__proto__:null,generate:zZe,name:DZe,parse:fH,structure:BZe},Symbol.toStringTag,{value:"Module"})),VZe="IdSelector",HZe={name:String};function hH(){const e=this.tokenStart;return this.eat(or),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function UZe(e){this.token(Nn,"#"+e.name)}const jZe=Object.freeze(Object.defineProperty({__proto__:null,generate:UZe,name:VZe,parse:hH,structure:HZe},Symbol.toStringTag,{value:"Module"})),WZe=46,KZe="Layer",qZe={name:String};function pH(){let e=this.tokenStart,t=this.consume(St);for(;this.isDelim(WZe);)this.eat(Nn),t+="."+this.consume(St);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function GZe(e){this.tokenize(e.name)}const YZe=Object.freeze(Object.defineProperty({__proto__:null,generate:GZe,name:KZe,parse:pH,structure:qZe},Symbol.toStringTag,{value:"Module"})),XZe="LayerList",ZZe={children:[["Layer"]]};function mH(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===_a);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}}function JZe(e){this.children(e,()=>this.token(_a,","))}const QZe=Object.freeze(Object.defineProperty({__proto__:null,generate:JZe,name:XZe,parse:mH,structure:ZZe},Symbol.toStringTag,{value:"Module"})),eJe="MediaQuery",tJe={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function vH(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===St&&this.lookupTypeNonSC(1)!==Un){const o=this.consume(St),a=o.toLowerCase();switch(a==="not"||a==="only"?(this.skipSC(),t=a,n=this.consume(St)):n=o,this.lookupTypeNonSC(0)){case St:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case mo:case Lo:case _a:case Ac:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case St:case Un:case bn:{r=this.Condition("media");break}case mo:case Lo:case Ac:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function nJe(e){e.mediaType?(e.modifier&&this.token(St,e.modifier),this.token(St,e.mediaType),e.condition&&(this.token(St,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)}const rJe=Object.freeze(Object.defineProperty({__proto__:null,generate:nJe,name:eJe,parse:vH,structure:tJe},Symbol.toStringTag,{value:"Module"})),oJe="MediaQueryList",aJe={children:[["MediaQuery"]]};function gH(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===_a);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function sJe(e){this.children(e,()=>this.token(_a,","))}const iJe=Object.freeze(Object.defineProperty({__proto__:null,generate:sJe,name:oJe,parse:gH,structure:aJe},Symbol.toStringTag,{value:"Module"})),lJe=38,cJe="NestingSelector",uJe={};function bH(){const e=this.tokenStart;return this.eatDelim(lJe),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function dJe(){this.token(Nn,"&")}const fJe=Object.freeze(Object.defineProperty({__proto__:null,generate:dJe,name:cJe,parse:bH,structure:uJe},Symbol.toStringTag,{value:"Module"})),hJe="Nth",pJe={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function yH(){this.skipSC();const e=this.tokenStart;let 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 mJe(e){this.node(e.nth),e.selector!==null&&(this.token(St,"of"),this.node(e.selector))}const vJe=Object.freeze(Object.defineProperty({__proto__:null,generate:mJe,name:hJe,parse:yH,structure:pJe},Symbol.toStringTag,{value:"Module"})),gJe="Number",bJe={value:String};function _H(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(an)}}function yJe(e){this.token(an,e.value)}const _Je=Object.freeze(Object.defineProperty({__proto__:null,generate:yJe,name:gJe,parse:_H,structure:bJe},Symbol.toStringTag,{value:"Module"})),wJe="Operator",SJe={value:String};function wH(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function CJe(e){this.tokenize(e.value)}const kJe=Object.freeze(Object.defineProperty({__proto__:null,generate:CJe,name:wJe,parse:wH,structure:SJe},Symbol.toStringTag,{value:"Module"})),xJe="Parentheses",EJe={children:[[]]};function SH(e,t){const n=this.tokenStart;let r=null;return this.eat(Un),r=e.call(this,t),this.eof||this.eat(rn),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function TJe(e){this.token(Un,"("),this.children(e),this.token(rn,")")}const AJe=Object.freeze(Object.defineProperty({__proto__:null,generate:TJe,name:xJe,parse:SH,structure:EJe},Symbol.toStringTag,{value:"Module"})),OJe="Percentage",MJe={value:String};function CH(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(yr)}}function PJe(e){this.token(yr,e.value+"%")}const $Je=Object.freeze(Object.defineProperty({__proto__:null,generate:PJe,name:OJe,parse:CH,structure:MJe},Symbol.toStringTag,{value:"Module"})),IJe="PseudoClassSelector",LJe="function",RJe={name:String,children:[["Raw"],null]};function kH(){const e=this.tokenStart;let t=null,n,r;return this.eat(Io),this.tokenType===bn?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==rn?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(rn)):n=this.consume(St),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function NJe(e){this.token(Io,":"),e.children===null?this.token(St,e.name):(this.token(bn,e.name+"("),this.children(e),this.token(rn,")"))}const DJe=Object.freeze(Object.defineProperty({__proto__:null,generate:NJe,name:IJe,parse:kH,structure:RJe,walkContext:LJe},Symbol.toStringTag,{value:"Module"})),BJe="PseudoElementSelector",zJe="function",FJe={name:String,children:[["Raw"],null]};function xH(){const e=this.tokenStart;let t=null,n,r;return this.eat(Io),this.eat(Io),this.tokenType===bn?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==rn?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(rn)):n=this.consume(St),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function VJe(e){this.token(Io,":"),this.token(Io,":"),e.children===null?this.token(St,e.name):(this.token(bn,e.name+"("),this.children(e),this.token(rn,")"))}const HJe=Object.freeze(Object.defineProperty({__proto__:null,generate:VJe,name:BJe,parse:xH,structure:FJe,walkContext:zJe},Symbol.toStringTag,{value:"Module"})),RM=47;function NM(){switch(this.skipSC(),this.tokenType){case an:return this.Number();case bn:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const UJe="Ratio",jJe={left:["Number","Function"],right:["Number","Function",null]};function EH(){const e=this.tokenStart,t=NM.call(this);let n=null;return this.skipSC(),this.isDelim(RM)&&(this.eatDelim(RM),n=NM.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function WJe(e){this.node(e.left),this.token(Nn,"/"),e.right?this.node(e.right):this.node(an,1)}const KJe=Object.freeze(Object.defineProperty({__proto__:null,generate:WJe,name:UJe,parse:EH,structure:jJe},Symbol.toStringTag,{value:"Module"}));function qJe(){return this.tokenIndex>0&&this.lookupType(-1)===Sr?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const GJe="Raw",YJe={value:String};function TH(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=qJe.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function XJe(e){this.tokenize(e.value)}const ZJe=Object.freeze(Object.defineProperty({__proto__:null,generate:XJe,name:GJe,parse:TH,structure:YJe},Symbol.toStringTag,{value:"Module"}));function DM(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function JJe(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==mo&&this.error(),e}const QJe="Rule",eQe="rule",tQe={prelude:["SelectorList","Raw"],block:["Block"]};function AH(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(JJe,DM):n=DM.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function nQe(e){this.node(e.prelude),this.node(e.block)}const rQe=Object.freeze(Object.defineProperty({__proto__:null,generate:nQe,name:QJe,parse:AH,structure:tQe,walkContext:eQe},Symbol.toStringTag,{value:"Module"})),oQe="Scope",aQe={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function OH(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===Un&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(rn)),this.lookupNonWSType(0)===St&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(Un),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(rn)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function sQe(e){e.root&&(this.token(Un,"("),this.node(e.root),this.token(rn,")")),e.limit&&(this.token(St,"to"),this.token(Un,"("),this.node(e.limit),this.token(rn,")"))}const iQe=Object.freeze(Object.defineProperty({__proto__:null,generate:sQe,name:oQe,parse:OH,structure:aQe},Symbol.toStringTag,{value:"Module"})),lQe="Selector",cQe={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function MH(){const 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 uQe(e){this.children(e)}const dQe=Object.freeze(Object.defineProperty({__proto__:null,generate:uQe,name:lQe,parse:MH,structure:cQe},Symbol.toStringTag,{value:"Module"})),fQe="SelectorList",hQe="selector",pQe={children:[["Selector","Raw"]]};function PH(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===_a){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function mQe(e){this.children(e,()=>this.token(_a,","))}const vQe=Object.freeze(Object.defineProperty({__proto__:null,generate:mQe,name:fQe,parse:PH,structure:pQe,walkContext:hQe},Symbol.toStringTag,{value:"Module"})),Dw=92,$H=34,gQe=39;function IH(e){const t=e.length,n=e.charCodeAt(0),r=n===$H||n===gQe?1:0,o=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let a="";for(let s=r;s<=o;s++){let i=e.charCodeAt(s);if(i===Dw){if(s===o){s!==t-1&&(a=e.substr(s+1));break}if(i=e.charCodeAt(++s),Ci(Dw,i)){const l=s-1,u=uh(e,l);s=u-1,a+=bV(e.substring(l+1,u))}else i===13&&e.charCodeAt(s+1)===10&&s++}else a+=e[s]}return a}function bQe(e,t){const r=$H;let o="",a=!1;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);if(i===0){o+="�";continue}if(i<=31||i===127){o+="\\"+i.toString(16),a=!0;continue}i===r||i===Dw?(o+="\\"+e.charAt(s),a=!1):(a&&(Zc(i)||bd(i))&&(o+=" "),o+=e.charAt(s),a=!1)}return'"'+o+'"'}const yQe="String",_Qe={value:String};function LH(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:IH(this.consume(ai))}}function wQe(e){this.token(ai,bQe(e.value))}const SQe=Object.freeze(Object.defineProperty({__proto__:null,generate:wQe,name:yQe,parse:LH,structure:_Qe},Symbol.toStringTag,{value:"Module"})),CQe=33;function BM(){return this.Raw(null,!1)}const kQe="StyleSheet",xQe="stylesheet",EQe={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function RH(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Sr:this.next();continue;case po:if(this.charCodeAt(this.tokenStart+2)!==CQe){this.next();continue}n=this.Comment();break;case Dm:n=this.CDO();break;case ra:n=this.CDC();break;case Nr:n=this.parseWithFallback(this.Atrule,BM);break;default:n=this.parseWithFallback(this.Rule,BM)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function TQe(e){this.children(e)}const AQe=Object.freeze(Object.defineProperty({__proto__:null,generate:TQe,name:kQe,parse:RH,structure:EQe,walkContext:xQe},Symbol.toStringTag,{value:"Module"})),OQe="SupportsDeclaration",MQe={declaration:"Declaration"};function NH(){const e=this.tokenStart;this.eat(Un),this.skipSC();const t=this.Declaration();return this.eof||this.eat(rn),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}}function PQe(e){this.token(Un,"("),this.node(e.declaration),this.token(rn,")")}const $Qe=Object.freeze(Object.defineProperty({__proto__:null,generate:PQe,name:OQe,parse:NH,structure:MQe},Symbol.toStringTag,{value:"Module"})),IQe=42,zM=124;function a6(){this.tokenType!==St&&this.isDelim(IQe)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const LQe="TypeSelector",RQe={name:String};function DH(){const e=this.tokenStart;return this.isDelim(zM)?(this.next(),a6.call(this)):(a6.call(this),this.isDelim(zM)&&(this.next(),a6.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function NQe(e){this.tokenize(e.name)}const DQe=Object.freeze(Object.defineProperty({__proto__:null,generate:NQe,name:LQe,parse:DH,structure:RQe},Symbol.toStringTag,{value:"Module"})),BH=43,zH=45,Bw=63;function zp(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const o=this.charCodeAt(r);if(o===zH&&t&&n!==0)return zp.call(this,e+n+1,!1),-1;Zc(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 pg(e){let t=0;for(;this.isDelim(Bw);)++t>e&&this.error("Too many question marks"),this.next()}function BQe(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===BH?"Plus sign":"Hyphen minus")+" is expected")}function zQe(){let e=0;switch(this.tokenType){case an:if(e=zp.call(this,1,!0),this.isDelim(Bw)){pg.call(this,6-e);break}if(this.tokenType===Pn||this.tokenType===an){BQe.call(this,zH),zp.call(this,1,!1);break}break;case Pn:e=zp.call(this,1,!0),e>0&&pg.call(this,6-e);break;default:if(this.eatDelim(BH),this.tokenType===St){e=zp.call(this,0,!0),e>0&&pg.call(this,6-e);break}if(this.isDelim(Bw)){this.next(),pg.call(this,5);break}this.error("Hex digit or question mark is expected")}}const FQe="UnicodeRange",VQe={value:String};function FH(){const e=this.tokenStart;return this.eatIdent("u"),zQe.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function HQe(e){this.tokenize(e.value)}const UQe=Object.freeze(Object.defineProperty({__proto__:null,generate:HQe,name:FQe,parse:FH,structure:VQe},Symbol.toStringTag,{value:"Module"})),jQe=32,zw=92,WQe=34,KQe=39,qQe=40,VH=41;function GQe(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===VH?t-2:t-1,o="";for(;n<r&&bd(e.charCodeAt(n));)n++;for(;n<r&&bd(e.charCodeAt(r));)r--;for(let a=n;a<=r;a++){let s=e.charCodeAt(a);if(s===zw){if(a===r){a!==t-1&&(o=e.substr(a+1));break}if(s=e.charCodeAt(++a),Ci(zw,s)){const i=a-1,l=uh(e,i);a=l-1,o+=bV(e.substring(i+1,l))}else s===13&&e.charCodeAt(a+1)===10&&a++}else o+=e[a]}return o}function YQe(e){let t="",n=!1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o===0){t+="�";continue}if(o<=31||o===127){t+="\\"+o.toString(16),n=!0;continue}o===jQe||o===zw||o===WQe||o===KQe||o===qQe||o===VH?(t+="\\"+e.charAt(r),n=!1):(n&&Zc(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const XQe="Url",ZQe={value:String};function HH(){const e=this.tokenStart;let t;switch(this.tokenType){case Eo:t=GQe(this.consume(Eo));break;case bn:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(bn),this.skipSC(),t=IH(this.consume(ai)),this.skipSC(),this.eof||this.eat(rn);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function JQe(e){this.token(Eo,YQe(e.value))}const QQe=Object.freeze(Object.defineProperty({__proto__:null,generate:JQe,name:XQe,parse:HH,structure:ZQe},Symbol.toStringTag,{value:"Module"})),eet="Value",tet={children:[[]]};function UH(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function net(e){this.children(e)}const ret=Object.freeze(Object.defineProperty({__proto__:null,generate:net,name:eet,parse:UH,structure:tet},Symbol.toStringTag,{value:"Module"})),oet=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),aet="WhiteSpace",set={value:String};function jH(){return this.eat(Sr),oet}function iet(e){this.token(Sr,e.value)}const cet=Object.freeze(Object.defineProperty({__proto__:null,generate:iet,name:aet,parse:jH,structure:set},Symbol.toStringTag,{value:"Module"})),WH=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:TYe,Atrule:IYe,AtrulePrelude:BYe,AttributeSelector:qYe,Block:eXe,Brackets:oXe,CDC:lXe,CDO:fXe,ClassSelector:gXe,Combinator:kXe,Comment:MXe,Condition:NXe,Declaration:ZXe,DeclarationList:nZe,Dimension:sZe,Feature:dZe,FeatureFunction:vZe,FeatureRange:SZe,Function:TZe,GeneralEnclosed:PZe,Hash:NZe,IdSelector:jZe,Identifier:FZe,Layer:YZe,LayerList:QZe,MediaQuery:rJe,MediaQueryList:iJe,NestingSelector:fJe,Nth:vJe,Number:_Je,Operator:kJe,Parentheses:AJe,Percentage:$Je,PseudoClassSelector:DJe,PseudoElementSelector:HJe,Ratio:KJe,Raw:ZJe,Rule:rQe,Scope:iQe,Selector:dQe,SelectorList:vQe,String:SQe,StyleSheet:AQe,SupportsDeclaration:$Qe,TypeSelector:DQe,UnicodeRange:UQe,Url:QQe,Value:ret,WhiteSpace:cet},Symbol.toStringTag,{value:"Module"})),uet={generic:!0,cssWideKeywords:h5,...SYe,node:WH},det=35,fet=42,FM=43,het=45,pet=47,met=117;function KH(e){switch(this.tokenType){case or:return this.Hash();case _a:return this.Operator();case Un:return this.Parentheses(this.readSequence,e.recognizer);case Cs:return this.Brackets(this.readSequence,e.recognizer);case ai:return this.String();case Pn:return this.Dimension();case yr:return this.Percentage();case an:return this.Number();case bn:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Eo:return this.Url();case St:return this.cmpChar(this.tokenStart,met)&&this.cmpChar(this.tokenStart+1,FM)?this.UnicodeRange():this.Identifier();case Nn:{const t=this.charCodeAt(this.tokenStart);if(t===pet||t===fet||t===FM||t===het)return this.Operator();t===det&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const vet={getNode:KH},get=35,bet=38,yet=42,_et=43,wet=47,VM=46,Cet=62,ket=124,xet=126;function Eet(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function Tet(){switch(this.tokenType){case Cs:return this.AttributeSelector();case or:return this.IdSelector();case Io:return this.lookupType(1)===Io?this.PseudoElementSelector():this.PseudoClassSelector();case St:return this.TypeSelector();case an:case yr:return this.Percentage();case Pn:this.charCodeAt(this.tokenStart)===VM&&this.error("Identifier is expected",this.tokenStart+1);break;case Nn:{switch(this.charCodeAt(this.tokenStart)){case _et:case Cet:case xet:case wet:return this.Combinator();case VM:return this.ClassSelector();case yet:case ket:return this.TypeSelector();case get:return this.IdSelector();case bet:return this.NestingSelector()}break}}}const Aet={onWhiteSpace:Eet,getNode:Tet};function Oet(){return this.createSingleNodeList(this.Raw(null,!1))}function Met(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===_a){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===Sr){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function HM(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const Pet={getNode:KH,onWhiteSpace(e,t){HM(e)&&(e.value=" "+e.value),HM(t.last)&&(t.last.value+=" ")},expression:Oet,var:Met},$et=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:vet,Selector:Aet,Value:Pet},Symbol.toStringTag,{value:"Module"})),Iet=new Set(["none","and","not","or"]),Let={parse:{prelude(){const e=this.createList();if(this.tokenType===St){const t=this.substring(this.tokenStart,this.tokenEnd);Iet.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},Ret={parse:{prelude:null,block(){return this.Block(!0)}}};function s6(e,t){return this.parseWithFallback(()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==rn&&this.error()}},t||(()=>this.Raw(null,!0)))}const UM={layer(){this.skipSC();const e=this.createList(),t=s6.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=s6.call(this,this.Declaration,()=>s6.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},Net={parse:{prelude(){const e=this.createList();switch(this.tokenType){case ai:e.push(this.String());break;case Eo:case bn:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===St&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===bn&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,UM)),this.skipSC(),this.tokenType===bn&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,UM)),(this.lookupNonWSType(0)===St||this.lookupNonWSType(0)===Un)&&e.push(this.MediaQueryList()),e},block:null}},Det={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},Bet={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},zet={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Fet={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Vet={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},Het={parse:{prelude:null,block(e=!1){return this.Block(e)}}},Uet={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}},jet={container:Let,"font-face":Ret,import:Net,layer:Det,media:Bet,nest:zet,page:Fet,scope:Vet,"starting-style":Het,supports:Uet};function Wet(){const e=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case St:e.push(this.Identifier());break;case ai:e.push(this.String());break;case _a:e.push(this.Operator());break;case rn:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return e}const ku={parse(){return this.createSingleNodeList(this.SelectorList())}},i6={parse(){return this.createSingleNodeList(this.Selector())}},Ket={parse(){return this.createSingleNodeList(this.Identifier())}},qet={parse:Wet},mg={parse(){return this.createSingleNodeList(this.Nth())}},Get={dir:Ket,has:ku,lang:qet,matches:ku,is:ku,"-moz-any":ku,"-webkit-any":ku,where:ku,not:ku,"nth-child":mg,"nth-last-child":mg,"nth-last-of-type":mg,"nth-of-type":mg,slotted:i6,host:i6,"host-context":i6},Yet=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:HV,Atrule:UV,AtrulePrelude:jV,AttributeSelector:KV,Block:GV,Brackets:YV,CDC:XV,CDO:ZV,ClassSelector:JV,Combinator:QV,Comment:eH,Condition:tH,Declaration:rH,DeclarationList:oH,Dimension:aH,Feature:sH,FeatureFunction:iH,FeatureRange:lH,Function:cH,GeneralEnclosed:uH,Hash:dH,IdSelector:hH,Identifier:fH,Layer:pH,LayerList:mH,MediaQuery:vH,MediaQueryList:gH,NestingSelector:bH,Nth:yH,Number:_H,Operator:wH,Parentheses:SH,Percentage:CH,PseudoClassSelector:kH,PseudoElementSelector:xH,Ratio:EH,Raw:TH,Rule:AH,Scope:OH,Selector:MH,SelectorList:PH,String:LH,StyleSheet:RH,SupportsDeclaration:NH,TypeSelector:DH,UnicodeRange:FH,Url:HH,Value:UH,WhiteSpace:jH},Symbol.toStringTag,{value:"Module"})),Xet={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:$et,atrule:jet,pseudo:Get,node:Yet},Zet={node:WH},Jet=wYe({...uet,...Xet,...Zet}),{tokenize:sot,parse:Qet,generate:ett,lexer:iot,createLexer:lot,walk:ttt,find:cot,findLast:uot,findAll:dot,toPlainObject:fot,fromPlainObject:hot,fork:pot}=Jet,mot=(e,t)=>Math.floor(Math.random()*(t+1-e)+e),vot=()=>`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}`,got=e=>/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test(e),bot=e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),yot=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{return await navigator.clipboard.writeText(e),"复制成功"}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},ntt=e=>e.replace(/[-_]([a-z])/g,(t,n)=>n.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),jM=e=>{if(Array.isArray(e))return e.map(n=>jM(n));if(e===null||typeof e!="object")return e;const t={};for(const n in e)if(e.hasOwnProperty(n)){const r=ntt(n);t[r]=jM(e[n])}return t};function _ot(e,t){if(!e||!t.length)return"";let n=t[t.length-1];return n=n.replace(/[/\\]/g,"/"),`${e.replace(rWe.dirname,"")}${n}`}function wot(e){var o,a,s,i;const n=new DOMParser().parseFromString(e,"text/xml");return{code:((o=n.querySelector("Code"))==null?void 0:o.textContent)||"",message:((a=n.querySelector("Message"))==null?void 0:a.textContent)||"",maxSize:((s=n.querySelector("MaxSizeAllowed"))==null?void 0:s.textContent)||"",proposedSize:((i=n.querySelector("ProposedSize"))==null?void 0:i.textContent)||""}}function rtt(e,t){const n=t({...e});return n.children&&n.children.length>0&&(n.children=n.children.map(r=>rtt(r,t))),n}function Sot(e){if(e.startsWith("2")||e.startsWith("~2")||e.startsWith("^2"))return 2;if(e.startsWith("3")||e.startsWith("~3")||e.startsWith("^3"))return 3;throw new Error("vue版本错误")}function Cot(e,t,n){const r=Qet(e,{positions:!1});return ttt(r,o=>{if(o.type==="Url"&&o.value&&o.value.startsWith(".")){const a=o.value.replace(/["']/g,""),s=new URL(a,t),i=n==null?void 0:n.find(l=>s.href.endsWith(l.path));i?o.value=i.signedUrl:o.value=new URL(a,t).href}}),ett(r)}function ott(e,t){const n=r=>{const o=r.replace(/^[\^~>=<]+/,""),[a=0,s=0,i=0]=o.split(".").map(Number);return{major:a,minor:s,patch:i}};return t.filter(r=>{const{name:o,version:a,match:s}=r;if(!(o in e))return!1;const i=e[o];switch(s){case ju.ONLY_INSTALL:return!0;case ju.MAJOR_VERSION:{const l=n(i),u=n(a);return l.major===u.major}case ju.MINOR_VERSION:{const l=n(i),u=n(a);return l.major===u.major&&l.minor===u.minor}case ju.EXACT_VERSION:{const l=n(i),u=n(a);return l.major===u.major&&l.minor===u.minor&&l.patch===u.patch}default:throw new Error(`unknown match rule: ${s}`)}})}const nm=ql("setting",{state:()=>({dependencies:[],devDependencies:[],packageJson:{}}),getters:{vueVersion:e=>{var t;return((t=e.dependencies.find(n=>n.name==="vue"))==null?void 0:t.version)||""},deps:e=>[...e.dependencies,...e.devDependencies],compHubVersion:e=>{var n,r;return{...((n=e.packageJson)==null?void 0:n.dependencies)||{},...((r=e.packageJson)==null?void 0:r.devDependencies)||{}}["comp-hub"]||""}},actions:{setDependencies(e){this.$patch(t=>{t.dependencies=e})},setDevDependencies(e){this.$patch(t=>{t.devDependencies=e})},setPackageJson(e){this.$patch(t=>{t.packageJson=e})},async initSetting(){await this.fetchPackageJson(),await this.initPreviewSetting()},async fetchPackageJson(){await XKe().then(e=>{this.setPackageJson(e.data||{})})},async initPreviewSetting(){var a,s;const e=Gje(),{dependencies:t=[],devDependencies:n=[]}=e;let r=[],o=[];r=Object.entries(((a=this.packageJson)==null?void 0:a.dependencies)||{}).map(([i,l])=>{const u=t.find(d=>d.name===i);return{name:i,version:l,match:(u==null?void 0:u.match)||(i==="vue"?ju.ONLY_INSTALL:ju.MAJOR_VERSION)}}),o=Object.entries(((s=this.packageJson)==null?void 0:s.devDependencies)||{}).map(([i,l])=>{const u=n.find(d=>d.name===i);return{name:i,version:l,match:(u==null?void 0:u.match)||ju.MAJOR_VERSION}}),this.setDependencies(r),this.setDevDependencies(o)}}}),att=()=>{var r;const e=Uje(),t=bw.find(o=>o.value===e),n=(r=bw.find(o=>o.checked))==null?void 0:r.value;return t?e:n},l6=e=>ql(`compListStore_${e}`,{state:()=>({scopeId:e,list:[],loading:!1,query:{keyword:""},pagination:{total:0,pageSize:Number(Fje())||10,page:1},operate:[],tagGroup:[...bw],selectTag:att(),onePageEntryNameToFile:{}}),getters:{queryParams(t){return{...t.query,page:t.pagination.page,pageSize:t.pagination.pageSize,deps:"",tag:t.selectTag}}},actions:{setOnePageEntryNameToFile(t){this.$patch(n=>{n.onePageEntryNameToFile=t})},setSelectTag(t){this.$patch(n=>{n.selectTag=t})},setOperate(t){this.$patch(n=>{n.operate=t})},setQuery(t){this.$patch(n=>{n.query=t})},setPagination(t){this.$patch(n=>{n.pagination=t})},setLoading(t){this.$patch(n=>{n.loading=t})},setList(t){this.$patch(n=>{n.list=t})},delCompListById(t){this.$patch(n=>{n.list=n.list.filter(r=>r.id!==t)})},updateCompListItemById(t,n){this.$patch(r=>{r.list=r.list.map(o=>o.id===t?{...o,...n}:o)})},async getQueryParams(){const t=nm(),n={...this.queryParams};return n.tag==="XTTJ"&&(n.deps=JSON.stringify((t==null?void 0:t.deps)||[])),n},async setCompListItemEntryNameToFile(t){const n=nm(),o=t.map(i=>i.dep).map(i=>{const l=Object.keys(i).reduce((d,f)=>({...d,[f]:i[f].version}),{});return ott(l,[...n.dependencies,...n.devDependencies])}).reduce((i,l)=>[...i,...l],[]).map(i=>i.name),a=await ZKe({deps:[...new Set(o)]}),{entryNameToFile:s={}}=a.data;this.setOnePageEntryNameToFile(s)},async getCompList(){this.scopeId===Uu.SHARE?await this.getComps():this.scopeId===Uu.MINE?await this.getMyComps():this.scopeId===Uu.COLLECT?await this.getMyCollectComps():this.scopeId.startsWith(Uu.SIMILAR)&&await this.getSimilarComps()},async getComps(){this.setLoading(!0);const t=await this.getQueryParams(),n=await oqe(t),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getMyComps(){this.setLoading(!0);const t=await this.getQueryParams(),n=await sqe(t),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getMyCollectComps(){this.setLoading(!0);const t=await this.getQueryParams(),n=await rqe(t),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getSimilarComps(){const t=this.scopeId.split("_")[1];this.setLoading(!0);const n=await iqe({compId:t}),{rows:r,total:o}=n.data;await this.setCompListItemEntryNameToFile(r),this.setLoading(!1),this.setList(r),this.setPagination({...this.pagination,total:o})},async getCompDetail(t){const n=this.list.find(o=>o.id===t);return n||(await aqe({compId:t})).data}}});async function stt(e){return hn("/__remote__/api/v1/csrf/csrf",{method:"GET"})}const S5=ql("userStore",{state:()=>({userInfo:{},avatarSignUrl:"",guestUserInfo:{avatar:"",nickname:"游客",account:""},logoutDialogOpen:!1}),getters:{displayName(e){return vO()==="1"?e.guestUserInfo.nickname:e.userInfo.nickname||e.userInfo.account||"未登录"},displayAvatar(e){return e.avatarSignUrl||UKe}},actions:{async fetchCsrfToken(){hV.get("csrfToken")||await stt()},updateAvatar(e){this.$patch(t=>{t.userInfo&&(t.userInfo.avatar=e)})},updateAvatarSignUrl(e){this.$patch(t=>{t.avatarSignUrl=e})},updateNickname(e){this.$patch(t=>{t.userInfo&&(t.userInfo.nickname=e)})},setLogoutDialogOpen(e){this.$patch(t=>{t.logoutDialogOpen=e})},setUserInfo(e){this.$patch(t=>{t.userInfo=e})},setGuestLogin(){Vje("1")},async login(e){await zKe({...e})},async fetchWhoAmI(){const e=await HKe();e.data&&this.setUserInfo(e.data)},logout(){this.clearLocalStorage(),C5.push("/login").then(()=>{this.resetAll(),this.$reset()})},resetAll(){const e=$m(),t=eqe(),n=tqe(),r=nqe(),o=r5(),a=l6(Uu.COLLECT)(),s=l6(Uu.SHARE)(),i=l6(Uu.MINE)();e==null||e.$reset(),t==null||t.$reset(),n==null||n.$reset(),r==null||r.$reset(),o==null||o.$reset(),a==null||a.$reset(),s==null||s.$reset(),i==null||i.$reset()},clearLocalStorage(){Rje(),Bje(),zje(),Hje()},isRealUserLogin(){const e=Object.keys(this.userInfo),t=gw();return e.length>0&&t!==null},isAccessTokenExist(){return gw()!==null},isGuestLogin(){return vO()!==null},isLogin(){const e=this.isRealUserLogin(),t=this.isGuestLogin();return e||t},logoutDialog(){if(this.logoutDialogOpen)return;this.setLogoutDialogOpen(!0);const e={confirmButtonText:"去登录",showClose:!0,callback:t=>{this.setLogoutDialogOpen(!1),t==="confirm"&&this.logout()}};qD.alert("请先登录","提示",e)}}});async function itt(e,t){return hn("/api/v1/oss/fileSignUrl",{method:"POST",headers:{"Content-Type":"application/json"},data:e})}const ltt={class:"user-info text-[#1b1919]"},ctt={class:"user-nickname"},utt=H({__name:"index",setup(e){const t=S5(),n=$h(),r=o=>{o==="logout"?t.logout():o==="info"&&n.push({name:"userInfo"})};return zr(async()=>{var o,a;if((o=t.userInfo)!=null&&o.avatar){const s=await itt({objectId:t.userInfo.avatar});t.updateAvatarSignUrl(((a=s==null?void 0:s.data)==null?void 0:a.signUrl)||"")}}),(o,a)=>{const s=xt("el-avatar"),i=xt("el-dropdown-item"),l=xt("el-dropdown-menu"),u=xt("el-dropdown");return w(),fe(u,{onCommand:r},{dropdown:ne(()=>[X(l,null,{default:ne(()=>[X(i,{command:"info"},{default:ne(()=>[...a[0]||(a[0]=[it("用户信息",-1)])]),_:1}),X(i,{command:"logout"},{default:ne(()=>[...a[1]||(a[1]=[it("退出登录",-1)])]),_:1})]),_:1})]),default:ne(()=>[x("div",ltt,[x("span",ctt,pe(c(t).displayName),1),X(s,{size:32,src:c(t).displayAvatar,class:"user-avatar"},null,8,["src"])])]),_:1})}}}),dtt=_d(utt,[["__scopeId","data-v-b2159cd3"]]),ftt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPcAAAA5CAYAAADqbr2XAAAACXBIWXMAABcRAAAXEQHKJvM/AAAL+UlEQVR4nO2dz28bxxXH3y50py48S2enpQjk6phrM1ZRW6rpomjStKhoFAgsoAAZ6NKTRQfoUTAFFEHSJqFYOP0RN7GEKmojhdYysYCiQFFK/QMinXWI+Bds8ci31HI5MzuzpCT+eB/AsGlyucud/c578+bNG8vzPLgIFvcKswAw/ffb6404X7+wuzK7Pb92fCEXxzATwNQgf+LiXiEHAPjHAYAZ8Ow6/duIhd2VPABUFnZX1rfn14r8IDKMOX2Lmyw0ChAFmei84dnggW38fb6w6WVhYXdlent+Lc9tyzBmxBY3iboEAEs9b/rC9iyj71zYXUkHhO2ztLC7AixwhjHD3LS2hY2ibkQLW//rSdiu5G0U+Aa3LcPoY2S5F/cKKEAU2ZzwAy1hW+fC1rTcAWEnFB9jC84wBmib1sW9Qp4EGCFsuyNsnTG3prB92IIzjCZa4iZhV6QClAk7wnIbCtunJXAMtHEjM4ycSHEHhC1GKWy5uGMK22dJMT5nmIkHosRtJmyrV9ie8uvzMYXtEys5hmEmBWlAbXGv4JgJ2+4RtqcQNyankGvdG3GPpsqBNWbUSaay6L0Kh5enR7W+PVOhuBf3CnjCTelR2sJWj7lRoBgBNxQ4C5sZF8oAkJH8FrMkEQEy07qpFzyTCBs6/450nUmoVc3rPWRhM4wePZabxtni3kQobCss7CZ4dhn/7Cw8OtO5Ck0LfhgnT50ZDchFLUsuduP0qKY9BZpMZfEZlhmB4ulRbSLiNV3iJndcfIOlwu56vQ6eXdq5W9ISdZAIgbeEvT2/Zvy9zMgwrXBRTcefmBot+66JmUINW+6i0B2PFnbTAyu3c+fdvoIAEoGzsBkmBuExd+/ySuF0V4+wnX6F7UNj6gf0koXNMDHpiJvG2iGrHRayP4/dI+yBjmG259dwfHWfhc0w8Qm65aEAhNWezpILG4VfHLSwfbbn1+RTcQzDRNKy3BRICwQgtIS9tXPnXV7EwTBDim+5c+eXJxO2FQ6mjWz5o2Qqi51ZOjS1hu5/YxCZQRrnduj8Puj9uKdHNeUQJJnKztKxs4Frdi9iakdynS7dIx4qXSwnwW+P+8z44qaHXCVsOyjs6s7d0sgVL0ymsg4FDe8pPtOkJJ7S6VFN+zcmU1lRpcnHp0e1Epw3EP67oPiOdTrvWej/06pspmQqiw9DXqdjklzn1ulRLQfnHYi4wg7AKn2mSvPFYyVyyb1B6qdHNWWOheLYzjNgwDF0t0VOllRGbSF8Vv2AWroj7E52mVTY+L4s2WAoQWElU1kU7L5K2ESCHuxvk6msaaOEmYVzcTZUwibwfZc6AqBjsTP6r2LeFlrFKAH2KXkjDmk6F/7ebzXSgfH9Y/pdzAVA7e5XO1IWMcHPidqexG3NeYHxdISwT3buro5Mhg89gK6GqEWsJlPZLrEZMks33SUB6jBHvTVeO8Y0nhicsky9vSkz+Dt9y6xJgjoiFvjgyVC7666axM9VkqlsLvif9uJeMW0gbPx7ZNZRkyg3pdVj9Mj0sXY8oyxyIadAnobpirmE3zHEvFZT8HybfXR+zGDZCHbuNnjWtFzYPQkr+HqUxtqbBhZTxVwylb3soUgcTwNZumSxzQiTn5iroKtznwpOcfUKu2f6S2ul1zBA7rDKGuGGCeXTo1prPp1cmpLCyqM1LZsE2QQcUofjUpAkagzu06RjNilCXoz4bapKsjqs0/Eu5WLnI1z2Yh8egw44PDIZMowT1UBbAD03JYU3iJ17K8A21RG2pyVsfD0qEVLVw1Y9Pap1BSBQ5DTulBeBbH9n3KDVg9DKJpfO9zziuEOKhAc7Vf9aZQJ3YoobOxEndC5s7xKdb19yXAI7R7+jZAZCk9o9fE/LgedUJnDsAMq2vrC1SicNBWSFZe74icyNpKmdnOg9Io7Li410X7RkkRruRHxYiy2B2HwGPUzA65iVzZnTNJtq3b3qvjHmOLLOktpI1f6taTtbLOxwwkpXcC1ONPayUc1JbqjmZ8nt3lIcb/oQlyMsmmqYU1Zcq8oyx1n3fqwxb636HaPwXIwMGolJquzQtrjb89qqKHlP1HwUGlE1PaPjOqo+M+ipn1gxjKtIIInopOJE25mYkBFqSo5uuetTrQCZvrDx/0ahGopUgJqpmqqg2aTP654MaAbC9JwmgUw0QJd9jVdBQ5G1mJ764oe/Pbuz80ghbCsobHTXMz94Xp7+8n5xmANr/ZRMbo0vk6ns4K5mvDi+AuFsmKRwUqbdpEbXfabb0THPqncLWRJc66So2qMaPKkPwTUwzKVAoW/bFSewhBaRnO8qMqpJC1rjQs64YsYB33K7esLuLCiZm//svWG23rJAgy6TPq5WwYGz4UFqhHBo2RL3zsIjtNxN8XRYUNhde2+X5//2wbBaOGnQTHOhg2pGYGL3KIu4d4eXeCkTD3mXsmSrlnELZKTYm0LXXCxs/HvGA3tYl36qIuI6HofqMyO3jn2AqO7LONQCl3l8SiN2RcO4yLY4F7dnlYWuuVjYfuBt6fazjy8ypzguqgn+oqoxaFWNatHGRKZY0j1TxVrGwaORdVBzEQK+imdCpbvW9XTE/Y8f/abRHTUnMaumxtqvV1//tDpwgWcqbi7z8dexxr40ly1L60zIUvcCS0RlVMe4xFA6ojjFhmKKsTkBnV5PxxYoAjLwOAS2haxDoXX+qunIVluENiWwS+BZ+73CtmXC9juB1df/+jQNnpX/6s2f9/3wZypuCTx7FbcmuvHRS+frX12P4/KVFLuULpGFLtOCkenAahvVTRtGL2VQJGj1VY46v2NaNJKne6O6L6o02VFCtRhnlZ6ZTYrJOH0sy9UB5+nztNS4YdAWVX/lYtcqkH/eW8Goed1Q2H7g7Z4HdiP757/E3qgvU3nhZCquS8LG70zgNN2ND/9lbMFpoYZqXhsb8TnVvvqOOgLVTXvc53LPUWGO7sU+lXcqRNyX5gUsYrkqoryPJVrF9+SChe0zQ+cyaYuOAepd4uVZ+VYNB6mwZRVR20E2AKty60/Pjm998ln+1iefawUaMhu1XKbywgWw98GzM6FhQMIDy33tD/+O46LnBhTFrccocjcp5MdlqBIxnItiGGYLikED1LPL55f3C8fzn//uMVpPyfZBMmEHq6e2RA6eXbn5dOsQ59EB7DMs0UTCTQPY0+DZjgdWmiy0ZHxvdyz4a7//j/PN269qu+j40FHFU9Ua7SjqvJxRyoMxXMNd1FhjH6ZKMQnZendTDmM8r9XwsmLh4uzdH/+6BGDV9fbiDgkbepaLzgHYBXK193FMD2A/odeZc2HLUl87bn/CA9u9/kHDyIKTVXEM9gAPgq64MyF1uusG6blNQfGJsYA6K5NnBZ8RrbLSmqCXmKZqOLq8Ey4+AiLL3cGzc+gOg2fPKTfZDws7VPdcvRhFttxU6vYnACz3+vv/c14+/L6RBafgxAYFJVSFB2PVLVcII+o7jhXHRnUqsuPiLiN1qDyVKrAorZPdJ2d93EPR5+PeU7wP+Kw0IsoZ1QV7fYvOqbp2UTtt0jUUKRJfUgT5lG1heZ6sljrA7WcfYj1zFHhCY2/uLmF7WsI1EnZog3/LOVh+JXbiBLnr6UCCwjEVLBjrDDTdwvuUjeYE7s9E7jYieE4adB8uLbgq2GlGa4capbiR259W0mTBE0MibP9182D5Gi/wMKSfXTWY0SKyINreTx80MPAFYB1GbsI/cGFbUmFzOV2GUaNV7fCrN37ZoMh2XemaD1zYwiKNOFXhHCxf4x1GGUaBdilTzDyrvfkWWvB3aNP9AQpbZKGDc+qd97FwYfpg+do4LFJgmAvFuE5x7WdvlNtz03Y9nrBleeoyYbc+dwJg3TxYvpY7WL7G28cyjAbyqTAFL976CUYKnVtPt9BVLwHYGTMhawv7BDyrdLD8CrvgDGNILHH7vPjFPZwecW7+8Yu0B3aeUlcTaiFrCXvLA3vj4OH3eAcLholJ5FSYKc7GHk6d5doRdjtNueFRwq639yDDKTfLffkwxa73BcFTYZPDwMUt4sZHLzEZZloQBW988/arLORLhJIyRJxp1nRnRoRLETfDMJcMAPwfo8te03czlJEAAAAASUVORK5CYII=",htt=H({__name:"index",props:{logoClass:{type:String,default:"h-[40px]"}},setup(e){return(t,n)=>(w(),M("div",null,[x("img",{src:ftt,alt:"logo",class:z(e.logoClass)},null,2)]))}});async function ptt(e,t){return hn("/__remote__/api/v1/upgrade/check",{method:"POST",headers:{"Content-Type":"application/json"},data:e})}const qH=ql("upgrade",{state:()=>({upgradeInfo:{}}),getters:{isForceUpgrade:e=>e.upgradeInfo.hasUpgrade&&e.upgradeInfo.isForce,isUpgrade:e=>e.upgradeInfo.hasUpgrade,upgradeDesc:e=>e.upgradeInfo.desc,latestVersion:e=>e.upgradeInfo.latestVersion,hasUpgrade:e=>e.upgradeInfo.hasUpgrade},actions:{setUpgradeInfo(e){this.$patch(t=>{t.upgradeInfo=e})},async getUpgradeInfo(){if(Object.keys(this.upgradeInfo).length>0)return;const e=nm(),t=await ptt({compHubVersion:e.compHubVersion});this.setUpgradeInfo(t.data)}}}),mtt=H({__name:"index",setup(e){const t=nm(),n=qH(),r=$h(),o=O(()=>n.isUpgrade?"有更新":"内测版");function a(){r.push({name:"upgrade"})}return(s,i)=>{const l=xt("el-tag");return w(),fe(l,{onClick:a,type:"primary",round:"",size:"small",class:"cursor-pointer"},{default:ne(()=>[x("span",{class:z({"is-upgrade":c(n).isUpgrade})},pe(o.value),3),it(" "+pe(c(t).compHubVersion),1)]),_:1})}}}),vtt=_d(mtt,[["__scopeId","data-v-ec4705d1"]]),gtt={class:"sites-header"},btt={class:"flex items-center"},ytt=H({__name:"index",setup(e){const t="https://docs.comphub.cn/";return zr(()=>{document.title=oWe}),(n,r)=>{const o=xt("el-link");return w(),M("div",gtt,[x("div",btt,[X(htt,{logoClass:"h-[30px]"}),X(vtt,{class:"ml-[10px]"}),X(o,{href:c(t),class:"ml-[30px]",type:"primary",underline:"always",target:"_blank"},{default:ne(()=>[...r[0]||(r[0]=[it("文档教程",-1)])]),_:1},8,["href"])]),X(dtt)])}}}),_tt=_d(ytt,[["__scopeId","data-v-2ec1e959"]]),wtt=H({__name:"index",props:{resize:{type:Function}},setup(e){const t=F(null);let n=null;const r=e;return pt(()=>{const o=t.value;n=new ResizeObserver(r.resize),n.observe(o)}),on(()=>{console.log("取消元素大小变化监听"),n==null||n.disconnect()}),(o,a)=>(w(),M("div",{ref_key:"elRef",ref:t},[me(o.$slots,"default")],512))}}),Stt={class:"measure-row"},Ctt=H({__name:"index",props:{list:{},moreWidth:{default:70},gap:{default:5},getKey:{}},setup(e){const t=e,n=F(0),r=F({});function o(d,f){Xe().then(()=>{const m=t.getKey(f);d?r.value[m]=d.offsetWidth:delete r.value[m]})}function a(d){n.value=d[0].contentRect.width}const s=O(()=>n.value-t.moreWidth),i=O(()=>{let d=0;const f=[];for(const m in r.value){if(d+=r.value[m]+t.gap,d>s.value)break;f.push({key:m,value:r.value[m]})}return f}),l=O(()=>{const d=i.value.map(f=>f.key);return t.list.filter(f=>d.includes(t.getKey(f)))}),u=O(()=>t.list.length-i.value.length);return(d,f)=>(w(),fe(wtt,{resize:a},{default:ne(()=>[me(d.$slots,"display",{visibleList:l.value,overflow:u.value},void 0,!0),x("div",Stt,[(w(!0),M(je,null,yt(d.list,(m,h)=>(w(),M("div",{key:d.getKey(m),class:"measure-item",ref_for:!0,ref:v=>o(v,m)},[me(d.$slots,"measure",{item:m,index:h},void 0,!0)]))),128))])]),_:3}))}}),ktt=_d(Ctt,[["__scopeId","data-v-63d3b066"]]),xtt={class:"flex gap-[20px] items-center pl-[10px] pr-[10px]"},Ett={class:"flex items-center gap-[10px]"},Ttt=H({__name:"index",setup(e){const t=$m(),n=$h(),r=e5(),o=F(t.maxCache),a=()=>{n.back()},s=()=>{const l=UD.service({fullscreen:!0});n.replace({path:r.path,query:{...r.query,v:Date.now()}}).then(()=>{l.close()})};function i(l){l&&t.setMaxCache(l)}return zr(()=>{qje(t.maxCache.toString())}),(l,u)=>{const d=xt("Back"),f=xt("el-icon"),m=xt("RefreshRight"),h=xt("Operation"),v=xt("el-input-number"),g=xt("el-popover");return w(),M("div",xtt,[X(f,{style:{"font-size":"20px"},class:"cursor-pointer",title:"返回",onClick:a},{default:ne(()=>[X(d)]),_:1}),X(f,{style:{"font-size":"20px"},class:"cursor-pointer",title:"刷新",onClick:s},{default:ne(()=>[X(m)]),_:1}),X(g,{placement:"bottom",trigger:"hover",width:"220px"},{reference:ne(()=>[X(f,{style:{"font-size":"20px"},class:"cursor-pointer",title:"更多操作"},{default:ne(()=>[X(h)]),_:1})]),default:ne(()=>[x("div",Ett,[u[1]||(u[1]=x("div",null,"最大标签数量:",-1)),x("div",null,[X(v,{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=y=>o.value=y),min:1,style:{width:"90px"},"controls-position":"right",onChange:i},null,8,["modelValue"])])])]),_:1})])}}}),Att={class:"flex"},Ott={key:0,class:"more"},Mtt=H({__name:"index",setup(e){const t=$h(),n=e5(),r=$m();Se(()=>n,()=>{r.addView({...n})},{immediate:!0,deep:!0});const o=O(()=>r.visitedViews),a=O(()=>o.value.length===1);function s(d){if(r.delViewByPath(d.path),i(d)){const f=o.value[0];f?t.push(f.path):t.push("/")}}function i(d){return d.path===n.path}function l(d){t.push(d.fullPath)}function u(d){var h;const f=((h=d==null?void 0:d.meta)==null?void 0:h.title)||"未知标签",m=r.getPayLoad(d.path);return(m==null?void 0:m.name)||f}return(d,f)=>{const m=xt("CloseBold"),h=xt("el-icon"),v=xt("el-button");return w(),M("div",Att,[X(Ttt),X(ktt,{class:"flex-1",list:o.value,getKey:g=>g.path},{display:ne(({visibleList:g,overflow:y})=>[X(B1,{tag:"ul",name:"fade",class:"flex gap-[5px] p-[2px] items-center"},{default:ne(()=>[(w(!0),M(je,null,yt(g,_=>(w(),M("div",{key:_.path},[X(v,{type:i(_)?"primary":"default",onClick:C=>l(_)},{default:ne(()=>[it(pe(u(_))+" ",1),a.value?ie("",!0):(w(),fe(h,{key:0,onClick:lt(C=>s(_),["stop"]),style:{"font-size":"16px"},class:"ml-[5px]"},{default:ne(()=>[X(m)]),_:1},8,["onClick"]))]),_:2},1032,["type","onClick"])]))),128)),y>0?(w(),M("span",Ott,"+"+pe(y)+" more",1)):ie("",!0)]),_:2},1024)]),measure:ne(({item:g})=>[X(v,null,{default:ne(()=>[it(pe(u(g))+" ",1),X(h,{style:{"font-size":"16px"},class:"ml-[5px]"},{default:ne(()=>[X(m)]),_:1})]),_:2},1024)]),_:1},8,["list","getKey"])])}}}),Ptt=_d(Mtt,[["__scopeId","data-v-81d31135"]]),$tt={class:"size-full flex flex-col min-w-[600px] overflow-hidden"},Itt={class:"h-[60px]"},Ltt={class:"flex-1 overflow-hidden"},Rtt={class:"size-full overflow-hidden bg-[#f9fafb] flex flex-col"},Ntt={class:"size-full flex flex-col"},Dtt={class:""},Btt={class:"flex-1 overflow-auto bg-[#f2f3f5]"},ztt=H({__name:"index",setup(e){const t=F(200),n=F(Number(jje()||t.value)),r=F(68),o=r5(),a=async()=>{(n.value===r.value||n.value===0)&&(n.value=t.value)};return zr(()=>{o.setSideBarCollapse(n.value<=80),Wje(n.value.toString())}),(s,i)=>{const l=xt("el-splitter-panel"),u=xt("el-splitter");return w(),M("div",$tt,[x("div",Itt,[X(_tt)]),x("div",Ltt,[X(u,{onCollapse:a},{default:ne(()=>[X(l,{min:r.value,max:300,size:n.value,"onUpdate:size":i[0]||(i[0]=d=>n.value=d),collapsible:""},{default:ne(()=>[x("div",Rtt,[X(nWe)])]),_:1},8,["min","size"]),X(l,{min:400},{default:ne(()=>[x("div",Ntt,[x("div",Dtt,[X(Ptt)]),x("div",Btt,[X(Xje)])])]),_:1})]),_:1})])])}}}),C5=Pje({history:sje("/dist/"),routes:[{path:"/login",name:"login",component:()=>ci(()=>import("./index-CQuOLxxx.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{hidden:!0,noAuth:!0}},{path:"/upgrade",name:"upgrade",component:()=>ci(()=>import("./index-B4sTJbBw.js"),__vite__mapDeps([6,7,8,9,10,1,2])),meta:{hidden:!0,noAuth:!0}},{path:"/",component:ztt,redirect:"/share",meta:{hideParent:!0},children:[{path:"/share",name:"share",meta:{title:"组件市场",icon:"HomeFilled",noAuth:!0},component:()=>ci(()=>import("./index-X93VA_va.js"),__vite__mapDeps([11,12,13,14,15,16,17,18,19,20]))},{path:"/collect",name:"collect",meta:{title:"收藏组件",icon:"StarFilled"},component:()=>ci(()=>import("./index-SeVeFBYm.js"),__vite__mapDeps([21,12,13,14,15,16,17,18,19]))},{path:"/mine",name:"mine",meta:{title:"我的组件",icon:"UserFilled"},component:()=>ci(()=>import("./index-BzLvpGyb.js"),__vite__mapDeps([22,12,13,14,15,16,17,18,19,23,7,8,9,10,3,24]))},{path:"/upload",name:"upload",meta:{title:"上传组件",icon:"UploadFilled",noAuth:!0},component:()=>ci(()=>import("./index-CKjVNRgN.js"),__vite__mapDeps([25,14,15,23,7,8,9,10,3,24,16,26,27,28]))},{path:"/userInfo",name:"userInfo",meta:{title:"用户信息",hidden:!0},component:()=>ci(()=>import("./index-CcOWLkQv.js"),__vite__mapDeps([29,16,3,4,30]))},{path:"/preview/:id",meta:{title:"组件预览",noAuth:!0,hidden:!0},component:()=>ci(()=>import("./index-Bibf8zX6.js"),__vite__mapDeps([31,14,15,13,16,17,18,19,26,8,9,27]))},{path:"/terminal",name:"terminal",meta:{title:"终端",icon:"ArrowRightBold",noAuth:!0},component:()=>ci(()=>import("./index-DMfBsXT1.js"),__vite__mapDeps([32,17,18,33]))},{path:"/setting",name:"setting",meta:{title:"设置",icon:"Tools",noAuth:!0},component:()=>ci(()=>import("./index-B9j-Dtc8.js"),[])}]}]});function Ftt(e){e.use(C5)}const Vtt={key:0,class:"error-overlay"},Htt={class:"errors-container"},Utt=H({__name:"index",props:{errors:{}},setup(e){const t=F(!1),n=e,r=()=>{t.value=!1};return Se(()=>n.errors,o=>{t.value=o.length>0},{immediate:!0,deep:!0}),(o,a)=>t.value?(w(),M("div",Vtt,[x("button",{class:"close-btn",onClick:r},"×"),x("div",Htt,[(w(!0),M(je,null,yt(o.errors,(s,i)=>(w(),M("div",{key:i,class:"error-item"},[x("pre",null,pe(s),1)]))),128))])])):ie("",!0)}}),jtt=_d(Utt,[["__scopeId","data-v-0c34a046"]]),Wtt=F([]);function Ktt(e){const t=m8(jtt,{errors:Wtt.value}),n=document.createElement("div");n.id="error-container",t.mount(n),document.body.appendChild(n)}const Bi=Object.create(null);Bi.open="0";Bi.close="1";Bi.ping="2";Bi.pong="3";Bi.message="4";Bi.upgrade="5";Bi.noop="6";const u2=Object.create(null);Object.keys(Bi).forEach(e=>{u2[Bi[e]]=e});const Fw={type:"error",data:"parser error"},GH=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",YH=typeof ArrayBuffer=="function",XH=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,k5=({type:e,data:t},n,r)=>GH&&t instanceof Blob?n?r(t):WM(t,r):YH&&(t instanceof ArrayBuffer||XH(t))?n?r(t):WM(new Blob([t]),r):r(Bi[e]+(t||"")),WM=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function KM(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c6;function qtt(e,t){if(GH&&e.data instanceof Blob)return e.data.arrayBuffer().then(KM).then(t);if(YH&&(e.data instanceof ArrayBuffer||XH(e.data)))return t(KM(e.data));k5(e,!1,n=>{c6||(c6=new TextEncoder),t(c6.encode(n))})}const qM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fp=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<qM.length;e++)Fp[qM.charCodeAt(e)]=e;const Gtt=e=>{let t=e.length*.75,n=e.length,r,o=0,a,s,i,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)a=Fp[e.charCodeAt(r)],s=Fp[e.charCodeAt(r+1)],i=Fp[e.charCodeAt(r+2)],l=Fp[e.charCodeAt(r+3)],d[o++]=a<<2|s>>4,d[o++]=(s&15)<<4|i>>2,d[o++]=(i&3)<<6|l&63;return u},Ytt=typeof ArrayBuffer=="function",x5=(e,t)=>{if(typeof e!="string")return{type:"message",data:ZH(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Xtt(e.substring(1),t)}:u2[n]?e.length>1?{type:u2[n],data:e.substring(1)}:{type:u2[n]}:Fw},Xtt=(e,t)=>{if(Ytt){const n=Gtt(e);return ZH(n,t)}else return{base64:!0,data:e}},ZH=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},JH="",Ztt=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,s)=>{k5(a,!1,i=>{r[s]=i,++o===n&&t(r.join(JH))})})},Jtt=(e,t)=>{const n=e.split(JH),r=[];for(let o=0;o<n.length;o++){const a=x5(n[o],t);if(r.push(a),a.type==="error")break}return r};function Qtt(){return new TransformStream({transform(e,t){qtt(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let u6;function vg(e){return e.reduce((t,n)=>t+n.length,0)}function gg(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ent(e,t){u6||(u6=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(s,i){for(n.push(s);;){if(r===0){if(vg(n)<1)break;const l=gg(n,1);a=(l[0]&128)===128,o=l[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(vg(n)<2)break;const l=gg(n,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(vg(n)<8)break;const l=gg(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){i.enqueue(Fw);break}o=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(vg(n)<o)break;const l=gg(n,o);i.enqueue(x5(a?l:u6.decode(l),t)),r=0}if(o===0||o>e){i.enqueue(Fw);break}}}})}const QH=4;function Br(e){if(e)return tnt(e)}function tnt(e){for(var t in Br.prototype)e[t]=Br.prototype[t];return e}Br.prototype.on=Br.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Br.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Br.prototype.off=Br.prototype.removeListener=Br.prototype.removeAllListeners=Br.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Br.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};Br.prototype.emitReserved=Br.prototype.emit;Br.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Br.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ub=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),us=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),nnt="arraybuffer";function eU(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const rnt=us.setTimeout,ont=us.clearTimeout;function jb(e,t){t.useNativeTimers?(e.setTimeoutFn=rnt.bind(us),e.clearTimeoutFn=ont.bind(us)):(e.setTimeoutFn=us.setTimeout.bind(us),e.clearTimeoutFn=us.clearTimeout.bind(us))}const ant=1.33;function snt(e){return typeof e=="string"?int(e):Math.ceil((e.byteLength||e.size)*ant)}function int(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function tU(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lnt(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function cnt(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class unt extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class E5 extends Br{constructor(t){super(),this.writable=!1,jb(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new unt(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=x5(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=lnt(t);return n.length?"?"+n:""}}class dnt extends E5{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Jtt(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ztt(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=tU()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let nU=!1;try{nU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const fnt=nU;function hnt(){}class pnt extends dnt{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let Df=class d2 extends Br{constructor(t,n,r){super(),this.createRequest=t,jb(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=eU(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=d2.requestsCount++,d2.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=hnt,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete d2.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Df.requestsCount=0;Df.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",GM);else if(typeof addEventListener=="function"){const e="onpagehide"in us?"pagehide":"unload";addEventListener(e,GM,!1)}}function GM(){for(let e in Df.requests)Df.requests.hasOwnProperty(e)&&Df.requests[e].abort()}const mnt=(function(){const e=rU({xdomain:!1});return e&&e.responseType!==null})();class vnt extends pnt{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=mnt&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Df(rU,this.uri(),t)}}function rU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||fnt))return new XMLHttpRequest}catch{}if(!t)try{return new us[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const oU=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class gnt extends E5{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=oU?{}:eU(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;k5(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}o&&Ub(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=tU()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const d6=us.WebSocket||us.MozWebSocket;class bnt extends gnt{createSocket(t,n,r){return oU?new d6(t,n,r):n?new d6(t,n):new d6(t)}doWrite(t,n){this.ws.send(n)}}class ynt extends E5{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ent(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Qtt();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:i,value:l})=>{i||(this.onPacket(l),a())}).catch(i=>{})};a();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Ub(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const _nt={websocket:bnt,webtransport:ynt,polling:vnt},wnt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Snt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vw(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=wnt.exec(e||""),a={},s=14;for(;s--;)a[Snt[s]]=o[s]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=Cnt(a,a.path),a.queryKey=knt(a,a.query),a}function Cnt(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function knt(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const Hw=typeof addEventListener=="function"&&typeof removeEventListener=="function",f2=[];Hw&&addEventListener("offline",()=>{f2.forEach(e=>e())},!1);class Vc extends Br{constructor(t,n){if(super(),this.binaryType=nnt,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Vw(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Vw(n.host).host);jb(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cnt(this.opts.query)),Hw&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f2.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=QH,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Vc.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Vc.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=snt(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ub(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Vc.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Hw&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=f2.indexOf(this._offlineEventListener);r!==-1&&f2.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Vc.protocol=QH;class xnt extends Vc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Vc.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Vc.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function a(){r||(r=!0,d(),n.close(),n=null)}const s=f=>{const m=new Error("probe error: "+f);m.transport=n.name,a(),this.emitReserved("upgradeError",m)};function i(){s("transport closed")}function l(){s("socket closed")}function u(f){n&&f.name!==n.name&&a()}const d=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",i),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",i),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Ent=class extends xnt{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>_nt[o]).filter(o=>!!o)),super(t,r)}};function Tnt(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Vw(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const Ant=typeof ArrayBuffer=="function",Ont=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,aU=Object.prototype.toString,Mnt=typeof Blob=="function"||typeof Blob<"u"&&aU.call(Blob)==="[object BlobConstructor]",Pnt=typeof File=="function"||typeof File<"u"&&aU.call(File)==="[object FileConstructor]";function T5(e){return Ant&&(e instanceof ArrayBuffer||Ont(e))||Mnt&&e instanceof Blob||Pnt&&e instanceof File}function h2(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(h2(e[n]))return!0;return!1}if(T5(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return h2(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&h2(e[n]))return!0;return!1}function $nt(e){const t=[],n=e.data,r=e;return r.data=Uw(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Uw(e,t){if(!e)return e;if(T5(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Uw(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Uw(e[r],t));return n}return e}function Int(e,t){return e.data=jw(e.data,t),delete e.attachments,e}function jw(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=jw(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jw(e[n],t));return e}const Lnt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Rnt=5;var Rn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Rn||(Rn={}));class Nnt{constructor(t){this.replacer=t}encode(t){return(t.type===Rn.EVENT||t.type===Rn.ACK)&&h2(t)?this.encodeAsBinary({type:t.type===Rn.EVENT?Rn.BINARY_EVENT:Rn.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Rn.BINARY_EVENT||t.type===Rn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=$nt(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function YM(e){return Object.prototype.toString.call(e)==="[object Object]"}class A5 extends Br{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Rn.BINARY_EVENT;r||n.type===Rn.BINARY_ACK?(n.type=r?Rn.EVENT:Rn.ACK,this.reconstructor=new Dnt(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(T5(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Rn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Rn.BINARY_EVENT||r.type===Rn.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(a,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(A5.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Rn.CONNECT:return YM(n);case Rn.DISCONNECT:return n===void 0;case Rn.CONNECT_ERROR:return typeof n=="string"||YM(n);case Rn.EVENT:case Rn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Lnt.indexOf(n[0])===-1);case Rn.ACK:case Rn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Dnt{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Int(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Bnt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:A5,Encoder:Nnt,get PacketType(){return Rn},protocol:Rnt},Symbol.toStringTag,{value:"Module"}));function Rs(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const znt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sU extends Br{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Rs(t,"open",this.onopen.bind(this)),Rs(t,"packet",this.onpacket.bind(this)),Rs(t,"error",this.onerror.bind(this)),Rs(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(znt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:Rn.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,f=n.pop();this._registerAckCallback(d,f),s.id=d}const i=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!i||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===t&&this.sendBuffer.splice(i,1);n.call(this,new Error("operation has timed out"))},o),s=(...i)=>{this.io.clearTimeoutFn(a),n.apply(this,i)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(s,i)=>s?o(s):r(i);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Rn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Rn.EVENT:case Rn.BINARY_EVENT:this.onevent(t);break;case Rn.ACK:case Rn.BINARY_ACK:this.onack(t);break;case Rn.DISCONNECT:this.ondisconnect();break;case Rn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Rn.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Rn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Rh(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Rh.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Rh.prototype.reset=function(){this.attempts=0};Rh.prototype.setMin=function(e){this.ms=e};Rh.prototype.setMax=function(e){this.max=e};Rh.prototype.setJitter=function(e){this.jitter=e};class Ww extends Br{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,jb(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Rh({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Bnt;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Ent(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Rs(n,"open",function(){r.onopen(),t&&t()}),a=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),t?t(i):this.maybeReconnectOnOpen()},s=Rs(n,"error",a);if(this._timeout!==!1){const i=this._timeout,l=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Rs(t,"ping",this.onping.bind(this)),Rs(t,"data",this.ondata.bind(this)),Rs(t,"error",this.onerror.bind(this)),Rs(t,"close",this.onclose.bind(this)),Rs(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ub(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new sU(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ep={};function p2(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Tnt(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,s=Ep[o]&&a in Ep[o].nsps,i=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return i?l=new Ww(r,t):(Ep[o]||(Ep[o]=new Ww(r,t)),l=Ep[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(p2,{Manager:Ww,Socket:sU,io:p2,connect:p2});const Fnt="/terminal",iU=p2(Fnt,{autoConnect:!1});iU.on("connect",()=>{console.log("手动连接成功")});iU.on("disconnect",()=>{console.log("连接已断开")});function Vnt(e){fOe(e),Ftt(e),oOe(e),TUe(e),Ktt()}C5.beforeEach(async e=>{const t=$m(),n=S5(),r=nm(),o=qH();if(await r.initSetting(),await n.fetchCsrfToken(),await o.getUpgradeInfo(),o.isForceUpgrade&&!e.path.startsWith("/upgrade"))return{path:"/upgrade"};const a=t.visitedViews.find(i=>i.path===e.path);if(a){const{hash:i="",query:l={}}=e,{query:u={},hash:d=""}=a;if(!e.redirectedFrom){const f={query:{...u,...l},hash:i||d};return{path:e.path,...f}}}if(n.isGuestLogin()||!n.isAccessTokenExist()){if(!e.meta.noAuth)return n.logoutDialog(),!1}else{if(e.meta.noAuth){if(e.path.startsWith("/login")){if(n.isAccessTokenExist())return"/"}else n.isRealUserLogin()||await n.fetchWhoAmI();return}if(n.isRealUserLogin()||await n.fetchWhoAmI(),!n.isRealUserLogin())return n.logoutDialog(),!1}});const lU=m8(NJ);Vnt(lU);lU.mount("#app");export{Se as $,fe as A,aot as B,Qnt as C,pt as D,Gg as E,je as F,Fi as G,mot as H,Vje as I,vot as J,l6 as K,Znt as L,Uu as M,Nt as N,grt as O,eqe as P,Hl as Q,trt as R,vrt as S,nrt as T,sa as U,Ai as V,rt as W,aqe as X,M1 as Y,NP as Z,htt as _,x as a,Wrt as a$,lt as a0,fn as a1,Be as a2,lrt as a3,yt as a4,srt as a5,irt as a6,wtt as a7,Hf as a8,crt as a9,H_e as aA,sZ as aB,Et as aC,on as aD,kn as aE,It as aF,tqe as aG,Frt as aH,Vrt as aI,zrt as aJ,Brt as aK,kr as aL,jM as aM,M_ as aN,dt as aO,WTe as aP,Ot as aQ,hn as aR,F8 as aS,wot as aT,Drt as aU,ba as aV,e5 as aW,$m as aX,Wnt as aY,brt as aZ,Grt as a_,urt as aa,UD as ab,qD as ac,qrt as ad,Yrt as ae,Qrt as af,eot as ag,Urt as ah,Krt as ai,Zrt as aj,rWe as ak,rtt as al,me as am,Sh as an,ft as ao,L1 as ap,Xrt as aq,Hrt as ar,Jrt as as,mrt as at,z as au,Xe as av,_ot as aw,hrt as ax,GKe as ay,prt as az,X as b,oot as b0,itt as b1,tot as b2,rot as b3,jrt as b4,not as b5,Jw as b6,Qw as b7,yn as b8,jnt as b9,Tn as ba,rrt as bb,yot as bc,ja as bd,Zae as be,RI as bf,DI as bg,nqe as bh,Sot as bi,frt as bj,Cot as bk,o1e as bl,ott as bm,ZKe as bn,Knt as bo,X1 as bp,A3e as bq,iU as br,Qje as bs,ort as bt,art as bu,ju as bv,Gje as bw,drt as bx,M as c,H as d,vtt as e,it as f,S5 as g,F as h,Ht as i,O as j,zr as k,ert as l,Jnt as m,ie as n,w as o,$h as p,Hje as q,xt as r,got as s,pe as t,c as u,bot as v,ne as w,_d as x,nm as y,qH as z};