1import{r as be}from"./chunk-OIYGIGL5-gwPc8tBz.js";import{t as Mg,c as Rg}from"./bundle-mjs-BWt8Cp2A.js";const yo=Fg();function me(e,...t){if(!yo)return;const n=zg(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function Dg(e,...t){yo&&console.warn(e,...t)}function zg(e,...t){return e.replace(/%[sfdO]/g,n=>{const r=t.shift();return n==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function Fg(){try{const e="nuqs-localStorage-test";if(typeof localStorage>"u")return!1;localStorage.setItem(e,e);const t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}const jg={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Dr(e){return`[nuqs] ${jg[e]} 2 See https://err.47ng.com/NUQS-${e}`}function kl(e){if(e.size===0)return"";const t=[];for(const[r,i]of e.entries()){const s=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${s}=${qg(i)}`)}return"?"+t.join("&")}function qg(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}const bn=be.createContext({useAdapter(){throw new Error(Dr(404))}});bn.displayName="NuqsAdapterContext";yo&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==bn&&console.error(Dr(303)),window.__NuqsAdapterContext=bn);function VR(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>be.createElement(bn.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function Ug(e){const t=be.useContext(bn);if(!("useAdapter"in t))throw new Error(Dr(404));return t.useAdapter(e)}const Gg=()=>be.useContext(bn).defaultOptions,Bg=()=>be.useContext(bn).processUrlSearchParams;function Vg(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{const t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}function Wg(e){return{method:"throttle",timeMs:e}}function WR(e){return{method:"debounce",timeMs:e}}const Cr=Wg(Vg());function Sh(){const e=new Map;return{all:e,on(t,n){const r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){const r=e.get(t);r&&e.set(t,r.filter(i=>i!==n))},emit(t,n){e.get(t)?.forEach(i=>i(n))}}}function Ta(e,t,n){function r(){e(),n.removeEventListener("abort",s)}const i=setTimeout(r,t);function s(){clearTimeout(i),n.removeEventListener("abort",s)}n.addEventListener("abort",s)}function Oa(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((i,s)=>{t=i,n=s}),resolve:t,reject:n}}function Hg(e,t){let n=t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i)continue;const s=n;n=()=>i(s)}n()}function Ch(){return new URLSearchParams(location.search)}var Ah=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=Cr.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;push({key:e,query:t,options:n},r=Cr.timeMs){me("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),n.history==="push"&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}
2flush({getSearchParamsSnapshot:e=Ch,rateLimitFactor:t=1,...n},r){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return me("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=Oa();const i=()=>{this.lastFlushedAt=performance.now();const[a,l]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);l===null?this.resolvers.resolve(a):this.resolvers.reject(a),this.resolvers=null};return Ta(()=>{const l=performance.now()-this.lastFlushedAt,c=this.timeMs,o=t*Math.max(0,c-l);me("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",o,c,t),o===0?i():Ta(i,o,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return me("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=Cr.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:n,getSearchParamsSnapshot:r}=e;let i=r();if(me("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];const s=Array.from(this.updateMap.entries()),a={...this.options},l=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),me("[nuqs gtq] Flushing queue %O with options %O",s,a);for(const[c,o]of s)o===null?i.delete(c):i.set(c,o);t&&(i=t(i));try{return Hg(l,()=>{n(i,a)}),[i,null]}catch(c){return console.error(Dr(429),s.map(([o])=>o).join(),c),[i,c]}}};const _a=new Ah;function Yg(e,t,n){const r=be.useCallback(()=>{const a=Object.fromEntries(e.map(c=>[c,n(c)]));return[JSON.stringify(a),a]},[e.join(","),n]),i=be.useRef(null);i.current===null&&(i.current=r());const s=be.useCallback(a=>{const l=e.map(c=>t(c,a));return()=>l.forEach(c=>c())},[e.join(","),t]);return be.useSyncExternalStore(s,()=>{const[a,l]=r();return i.current[0]===a?i.current[1]:(i.current=[a,l],l)},()=>i.current[1])}var Xg=class{callback;resolvers=Oa();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,Ta(()=>{const n=this.resolvers;try{me("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);me("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=Oa(),r.then(i=>n.resolve(i)).catch(i=>n.reject(i))}catch(r){this.queuedValue=void 0,n.reject(r)}},t,this.controller.signal),this.resolvers.promise}},Qg=class{throttleQueue;queues=new Map;queuedQuerySync=Sh();constructor(e=new Ah){this.throttleQueue=e}useQueuedQueries(e){return Yg(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const s=n.getSearchParamsSnapshot??Ch;return Promise.resolve(s())}const r=e.key;if(!this.queues.has(r)){me("[nuqs dqc] Creating debounce queue for `%s`",r);const s=new Xg(a=>(this.throttleQueue.push(a),this.throttleQueue.flush(n).finally(()=>{this.queues.get(a.key)?.queuedValue===void 0&&(me("[nuqs dqc] Cleaning up empty queue for `%s`",a.key),this.queues.delete(a.key)),this.queuedQuerySync.emit(a.key)})));this.queues.set(r,s)}me("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(r).push(e,t);return this.queuedQuerySync.emit(r),i}abort(e){const t=this.queues.get(e);return t?(me("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),n=>(n.then(t.resolvers.resolve,t.resolvers.reject),n)):n=>n}abortAll(){for(const[e,t]of this.queues.entries())me("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){const t=this.queues.get(e)?.queuedValue?.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}};const gs=new Qg(_a);function $h(e,t,n){try{return e(t)}catch(r){return Dg("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,r,n),null}}function Yt(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),$h(e.parse,r)}return{eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}const HR=Yt({parse:e=>e,serialize:String});Yt({parse:e=>{const t=parseInt(e);return t==t?t:null}
2,serialize:e=>""+Math.round(e)});Yt({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});Yt({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});Yt({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});Yt({parse:e=>e==="true",serialize:String});function ko(e,t){return e.valueOf()===t.valueOf()}Yt({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:ko});Yt({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:ko});Yt({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:ko});function YR(e,{clearOnDefault:t=!0,urlKeys:n={},processUrlSearchParams:r}={}){function i(s,a={}){let[l,c]=vl(s)?Kg(s):["",new URLSearchParams];const o=vl(s)?a:s;if(o===null){for(const u in e){const h=n[u]??u;c.delete(h)}return r&&(c=r(c)),l+kl(c)}for(const u in e){const h=e[u],p=o[u];if(!h||p===void 0)continue;const d=n[u]??u,m=h.defaultValue!==void 0&&(h.eq??((b,S)=>b===S))(p,h.defaultValue);p===null||(h.clearOnDefault??t??!0)&&m?c.delete(d):c.set(d,h.serialize(p))}return r&&(c=r(c)),l+kl(c)}return i}function vl(e){return typeof e=="string"||e instanceof URLSearchParams||e instanceof URL}function Kg(e){if(typeof e=="string"){const[t="",...n]=e.split("?");return[t,new URLSearchParams(n.join("?"))]}else return e instanceof URLSearchParams?["",new URLSearchParams(e)]:[e.origin+e.pathname,new URLSearchParams(e.searchParams)]}const bs=Sh(),Zg={};function Jg(e,t={}){const n=be.useId(),r=Gg(),i=Bg(),{history:s="replace",scroll:a=r?.scroll??!1,shallow:l=r?.shallow??!0,throttleMs:c=Cr.timeMs,limitUrlUpdates:o=r?.limitUrlUpdates,clearOnDefault:u=r?.clearOnDefault??!0,startTransition:h,urlKeys:p=Zg}=t,d=Object.keys(e).join(","),m=be.useMemo(()=>Object.fromEntries(Object.keys(e).map(v=>[v,p[v]??v])),[d,JSON.stringify(p)]),b=Ug(Object.values(m)),S=b.searchParams,w=be.useRef({}),C=be.useMemo(()=>Object.fromEntries(Object.keys(e).map(v=>[v,e[v].defaultValue??null])),[Object.values(e).map(({defaultValue:v})=>v).join(",")]),_=gs.useQueuedQueries(Object.values(m)),[E,y]=be.useState(()=>{const v=S??new URLSearchParams;return ys(e,p,v,_).state}),L=be.useRef(E);if(me("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,d,E,S),Object.keys(w.current).join("&")!==Object.values(m).join("&")){const{state:v,hasChanged:x}=ys(e,p,S,_,w.current,L.current);x&&(me("[nuq+ %s `%s`] State changed: %O",n,d,{state:v,initialSearchParams:S,queuedQueries:_,queryRef:w.current,stateRef:L.current}),L.current=v,y(v)),w.current=Object.fromEntries(Object.values(m).map(A=>[A,S?.get(A)??null]))}be.useEffect(()=>{const{state:v,hasChanged:x}=ys(e,p,S,_,w.current,L.current);x&&(me("[nuq+ %s `%s`] State changed: %O",n,d,{state:v,initialSearchParams:S,queuedQueries:_,queryRef:w.current,stateRef:L.current}),L.current=v,y(v))},[Object.values(m).map(v=>`${v}=${S?.get(v)}`).join("&"),JSON.stringify(_)]),be.useEffect(()=>{function v(A){me("[nuq+ %s `%s`] updateInternalState %O",n,d,A),L.current=A,y(A)}const x=Object.keys(e).reduce((A,M)=>(A[M]=({state:T,query:V})=>{const{defaultValue:G}=e[M],j=m[M];L.current={...L.current,[M]:T??G??null},w.current[j]=V,me("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",n,d,j,T,G,L.current),v(L.current)},A),{});for(const A of Object.keys(e)){const M=m[A];me("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,M,d),bs.on(M,x[A])}return()=>{for(const A of Object.keys(e)){const M=m[A];me("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,M,d),bs.off(M,x[A])}}},[d,m]);const N=be.useCallback((v,x={})=>{const A=Object.fromEntries(Object.keys(e).map(J=>[J,null])),M=typeof v=="function"?v(wl(L.current,C))??A:v??A;me("[nuq+ %s `%s`] setState: %O",n,d,M);let T,V=0;const G=[];for(let[J,rt]of Object.entries(M)){const Le=e[J],vn=m[J];if(!Le)continue;(x.clearOnDefault??Le.clearOnDefault??u)&&rt!==null&&Le.defaultValue!==void 0&&(Le.eq??((g,f)=>g===f))(rt,Le.defaultValue)&&(rt=null);const rr=rt===null?null:(Le.serialize??String)(rt);bs.emit(vn,{state:rt,query:rr});const ir={key:vn,query:rr,options:{history:x.history??Le.history??s,shallow:x.shallow??Le.shallow??l,scroll:x.scroll??Le.scroll??a,startTransition:x.startTransition??Le.startTransition??h}};if(x?.limitUrlUpdates?.method==="debounce"||o?.method==="debounce"||Le.limitUrlUpdates?.method==="debounce"){ir.options.shallow===!0&&console.warn(Dr(422));const g=x?.limitUrlUpdates?.timeMs??o?.timeMs??Le.limitUrlUpdates?.timeMs??Cr.timeMs,f=gs.push(ir,g,b);V<g&&(T=f,V=g)}else{const g=x?.limitUrlUpdates?.timeMs??Le?.limitUrlUpdates?.timeMs??o?.timeMs??x.throttleMs??Le.throttleMs??c;G.push(gs.abort(vn)),_a.push(ir,g)}}const j=G.reduce((J,rt)=>rt(J),_a.flush(b,i));return T??j},[d,s,l,a,c,o?.method,o?.timeMs,h,m,b.updateUrl,b.getSearchParamsSnapsh
2ot,b.rateLimitFactor,i,C]);return[be.useMemo(()=>wl(E,C),[E,C]),N]}function ys(e,t,n,r,i,s){let a=!1;const l=Object.keys(e).reduce((c,o)=>{const u=t?.[o]??o,{parse:h}=e[o],p=r[u],d=p===void 0?n?.get(u)??null:p;if(i&&s&&(i[u]??null)===d)return c[o]=s[o]??null,c;a=!0;const m=d===null?null:$h(h,d,o);return c[o]=m??null,i&&(i[u]=d),c},{});if(!a){const c=Object.keys(e),o=Object.keys(s??{});a=c.length!==o.length||c.some(u=>!o.includes(u))}return{state:l,hasChanged:a}}function wl(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function XR(e,t={}){const{parse:n=u=>u,serialize:r,eq:i,defaultValue:s,...a}=t,[{[e]:l},c]=Jg({[e]:{parse:n,serialize:r,eq:i,defaultValue:s}},a),o=be.useCallback((u,h={})=>c(p=>({[e]:typeof u=="function"?u(p[e]):u}),h),[e,c]);return[l,o]}const Wt=Symbol(),zt=(e,t,n)=>{const r=t[e.type];if(!(r?.enter&&r.enter(e,n)===Wt)){if(e.type==="root")for(const i of e.children)zt(i,t,e);if(e.type==="element"&&n.children.includes(e))for(const i of e.children)zt(i,t,e);r?.exit&&r.exit(e,n)}},Eh=(e,t,n,r,i)=>{for(const s of n){const a=r?.[s.name];if(a===!1)continue;const l={...s.params,...i,...a},c=s.fn(e,l,t);c!=null&&zt(e,c)}},eb=({name:e,plugins:t})=>({name:e,isPreset:!0,plugins:Object.freeze(t),fn:(n,r,i)=>{const{floatPrecision:s,overrides:a}=r,l={};if(s!=null&&(l.floatPrecision=s),a){const c=t.map((({name:o})=>o));for(const o of Object.keys(a))c.includes(o)||console.warn(`You are trying to configure ${o} which is not part of ${e}. 3Try to put it before or after, for example 4 5plugins: [ 6 { 7 name: '${e}', 8 }, 9 '${o}' 10] 11`)}Eh(n,i,t,a,l)}});var Se;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Se||(Se={}));function tb(e){return e.type===Se.Tag||e.type===Se.Script||e.type===Se.Style}const nb=Se.Root,rb=Se.Text,ib=Se.Directive,sb=Se.Comment,ab=Se.Script,ob=Se.Style,lb=Se.Tag,cb=Se.CDATA,ub=Se.Doctype;function ut(e){return tb(e)}function vo(e){return e.type===Se.CDATA}function Gn(e){return e.type===Se.Text}function Th(e){return e.type===Se.Comment}function hb(e){return e.type===Se.Root}function rn(e){return Object.prototype.hasOwnProperty.call(e,"children")}const xl=/["&'<>$\x80-\uFFFF]/g,pb=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),fb=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Oh(e){let t="",n=0,r;for(;(r=xl.exec(e))!==null;){const i=r.index,s=e.charCodeAt(i),a=pb.get(s);a!==void 0?(t+=e.substring(n,i)+a,n=i+1):(t+=`${e.substring(n,i)}&#x${fb(e,i).toString(16)};`,n=xl.lastIndex+=+((s&64512)===55296))}return t+e.substr(n)}function _h(e,t){return function(r){let i,s=0,a="";for(;i=e.exec(r);)s!==i.index&&(a+=r.substring(s,i.index)),a+=t.get(i[0].charCodeAt(0)),s=i.index+1;return a+r.substring(s)}}const db=_h(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),mb=_h(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),gb=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),bb=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),yb=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function kb(e){return e.replace(/"/g,""")}function vb(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?kb:t.xmlMode||t.encodeEntities!=="utf8"?Oh:db;return Object.keys(e).map((i=>{var s,a;const l=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(a=bb.get(i))!==null&&a!==void 0?a:i),!t.emptyAttrs&&!t.xmlMode&&l===""?i:`${i}="${r(l)}"`})).join(" ")}const Sl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
11img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function wo(e,t={}){const n="length"in e?e:[e];let r="";for(let i=0;i<n.length;i++)r+=wb(n[i],t);return r}function wb(e,t){switch(e.type){case nb:return wo(e.children,t);case ub:case ib:return Ab(e);case sb:return Tb(e);case cb:return Eb(e);case ab:case ob:case lb:return Cb(e,t);case rb:return $b(e,t)}}const xb=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Sb=new Set(["svg","math"]);function Cb(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=gb.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&xb.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Sb.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const i=vb(e.attribs,t);return i&&(r+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Sl.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=wo(e.children,t)),!t.xmlMode&&Sl.has(e.name)||(r+=`</${e.name}>`)),r}function Ab(e){return`<${e.data}>`}function $b(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&yb.has(e.parent.name)||(r=t.xmlMode||t.encodeEntities!=="utf8"?Oh(r):mb(r)),r}function Eb(e){return`<![CDATA[${e.children[0].data}]]>`}function Tb(e){return`<!--${e.data}-->`}function Lh(e,t){return wo(e,t)}function Ob(e,t){return rn(e)?e.children.map((n=>Lh(n,t))).join(""):""}function li(e){return Array.isArray(e)?e.map(li).join(""):ut(e)?e.name==="br"?` 12`:li(e.children):vo(e)?li(e.children):Gn(e)?e.data:""}function vi(e){return Array.isArray(e)?e.map(vi).join(""):rn(e)&&!Th(e)?vi(e.children):Gn(e)?e.data:""}function La(e){return Array.isArray(e)?e.map(La).join(""):rn(e)&&(e.type===Se.Tag||vo(e))?La(e.children):Gn(e)?e.data:""}function Ph(e){return rn(e)?e.children:[]}function Nh(e){return e.parent||null}function _b(e){const t=Nh(e);if(t!=null)return Ph(t);const n=[e];let{prev:r,next:i}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;i!=null;)n.push(i),{next:i}=i;return n}function Lb(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function Pb(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function Nb(e){return e.name}function Ib(e){let{next:t}=e;for(;t!==null&&!ut(t);)({next:t}=t);return t}function Mb(e){let{prev:t}=e;for(;t!==null&&!ut(t);)({prev:t}=t);return t}function zr(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function Rb(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const i=t.parent=e.parent;if(i){const s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}function Db(e,t){if(zr(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function zb(e,t){zr(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function Fb(e,t){if(zr(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function jb(e,t){zr(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function Ui(e,t,n=!0,r=1/0){return Ih(e,Array.isArray(t)?t:[t],n,r)}function Ih(e,t,n,r){const i=[],s=[t],a=[0];for(;;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}const l=s[0][a[0]++];if(e(l)&&(i.push(l),--r<=0))return i;n&&rn(l)&&l.children.length>0&&(a.unshift(0),s.unshift(l.children))}}function qb(e,t){return t.find(e)}function xo(e,t,n=!0){let r=null;for(let i=0;i<t.length&&!r;i++){const s=t[i];ut(s)&&(e(s)?r=s:n&&s.children.length>0&&(r=xo(e,s.children,!0)))}return r}function Mh(e,t){return t.some((n=>ut(n)&&(e(n)||Mh(e,n.children))))}function Ub(e,t){const n=[],r=[t],i=[0];for(;;){if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift();continue}const s=r[0][i[0]++];ut(s)&&(e(s)&&n.push(s),s.children.length>0&&(i.unshift(0),r.unshift(s.children)))}}const wi={tag_name(e){return typeof e=="function"?t=>ut(t)&&e(t.name):e==="*"?ut:t=>ut(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>Gn(t)&&e(t.data):t=>Gn(t)&&t.data===e}};function Rh(e,t){return typeof t=="function"?n=>ut(n)&&t(n.attribs[e]):n=>ut(n)&&n.attribs[e]===t}function Gb(e,t){return n=>e(n)||t(n)}function Dh(e){const t=Object.keys(e).map((n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(wi,n)?wi[n](r):Rh(n,r)}));return t.length===0?null:t.reduce(Gb)}function Bb(e,t){const n=Dh(e);return!n||n(t)}function Vb(e,t,n,r=1/0){const i=Dh(e);return i?Ui(i,t,n,r):[]}function Wb(e,t,n=!0){return Array.isArray(t)||(t=[t]),xo(Rh("id",e),t,n)}function tr(e,t,n=!0,r=1/0){return Ui(wi.tag_name(e),t,n,r)}function Hb(e,t,n=!0,r=1/0){return Ui(wi.tag_type(e),t,n,r)}function Yb(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var lt;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(lt||(lt={}));function zh(e,t){const n=[],r=[];if(e===t)return 0;let i=rn(e)?e:e.parent;for(;i;)n.unshift(i),i=i.parent;for(i=rn(t)?t:t.parent;i;)r.unshift(i),i=i.parent;const s=Math.min(n.length,r.length);let a=0;for(;a<s&&n[a]===r[a];)a++;if(a===0)return lt.DISCONNECTED;const l=n[a-1],c=l.children,o=n[a],u=r[a];return c.indexOf(o)>c.indexOf(u)?l===t?lt.FOLLOWING|lt.CONTAINED_BY:lt.FOLLOWING:l===e?lt.PRECEDING|lt.CONTAINS:lt.PRECEDING}function Xb(e){return e=e.filter(((t,n,r)=>!r.includes(t,n+1))),e.sort(((t,n)=>{const r=zh(t,n);return r<.PRECEDING?-1:r<.FOLLOWING?1:0})),e}function Qb(e){const t=xi(ty,e);return t?t.name==="feed"?Kb(t):Zb(t):null}function Kb(e){var t;const n=e.children,r={type:"atom",items:tr("entry",n).map((a=>{var l;const{children:c}=a,o={media:Fh(c)};Be(o,"id","id",c),Be(o,"title","title",c);const u=(l=xi("link",c))===null||l===void 0?void 0:l.attribs.href;u&&(o.link=u);const h=nn("summary",c)||nn("content",c);h&&(o.description=h);const p=nn("updated",c);return p&&(o.pubDate=new Date(p)),o}))};Be(r,"id","id",n),Be(r,"title","title",n);const i=(t=xi("link",n))===null||t===void 0?void 0:t.attribs.href;i&&(r.link=i),Be(r,"description","subtitle",n);const s=nn("updated",n);return s&&(r.updated=new Date(s)),Be(r,"author","email",n,!0),r}function Zb(e){var t,n;const r=(n=(t=xi("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],i={type:e.name.substr(0,3),id:"",items:tr("item",e.children).map((a=>{const{children:l}=a,c={media:Fh(l)};Be(c,"id","guid",l),Be(c,"title","title",l),Be(c,"link","link",l),Be(c,"description","description",l);const o=nn("pubDate",l)||nn("dc:date",l);return o&&(c.pubDate=new Date(o)),c}))};Be(i,"title","title",r),Be(i,"link","link",r),Be(i,"description","description",r);const s=nn("lastBuildDate",r);return s&&(i.updated=new Date(s)),Be(i,"author","managingEditor",r,!0),i}const Jb=["url","type","lang"],ey=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Fh(e){return tr("media:content",e).map((t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const i of Jb)n[i]&&(r[i]=n[i]);for(const i of ey)n[i]&&(r[i]=parseInt(n[i],10));return n.expression&&(r.expression=n.expression),r}))}
12function xi(e,t){return tr(e,t,!0,1)[0]}function nn(e,t,n=!1){return vi(tr(e,t,n,1)).trim()}function Be(e,t,n,r,i=!1){const s=nn(n,r,i);s&&(e[t]=s)}function ty(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}var jh=Object.freeze({__proto__:null,get DocumentPosition(){return lt},append:zb,appendChild:Db,compareDocumentPosition:zh,existsOne:Mh,filter:Ui,find:Ih,findAll:Ub,findOne:xo,findOneChild:qb,getAttributeValue:Lb,getChildren:Ph,getElementById:Wb,getElements:Vb,getElementsByTagName:tr,getElementsByTagType:Hb,getFeed:Qb,getInnerHTML:Ob,getName:Nb,getOuterHTML:Lh,getParent:Nh,getSiblings:_b,getText:li,hasAttrib:Pb,hasChildren:rn,innerText:La,isCDATA:vo,isComment:Th,isDocument:hb,isTag:ut,isText:Gn,nextElementSibling:Ib,prepend:jb,prependChild:Fb,prevElementSibling:Mb,removeElement:zr,removeSubsets:Yb,replaceElement:Rb,testElement:Bb,textContent:vi,uniqueSort:Xb});function qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ny={trueFunc:function(){return!0},falseFunc:function(){return!1}},U=qh(ny),R;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(R||(R={}));var xe;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(xe||(xe={}));const Cl=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,ry=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,iy=new Map([[126,xe.Element],[94,xe.Start],[36,xe.End],[42,xe.Any],[33,xe.Not],[124,xe.Hyphen]]),sy=new Set(["has","not","matches","is","where","host","host-context"]);function Uh(e){switch(e.type){case R.Adjacent:case R.Child:case R.Descendant:case R.Parent:case R.Sibling:case R.ColumnCombinator:return!0;default:return!1}}const ay=new Set(["contains","icontains"]);function oy(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function sr(e){return e.replace(ry,oy)}function ks(e){return e===39||e===34}function Al(e){return e===32||e===9||e===10||e===12||e===13}function Gi(e){const t=[],n=Gh(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function Gh(e,t,n){let r=[];function i(p){const d=t.slice(n+p).match(Cl);if(!d)throw new Error(`Expected name, found ${t.slice(n)}`);const[m]=d;return n+=p+m.length,sr(m)}function s(p){for(n+=p;n<t.length&&Al(t.charCodeAt(n));)n++}function a(){n+=1;const p=n;let d=1;for(;d>0&&n<t.length;n++)t.charCodeAt(n)!==40||l(n)?t.charCodeAt(n)!==41||l(n)||d--:d++;if(d)throw new Error("Parenthesis not matched");return sr(t.slice(p,n-1))}function l(p){let d=0;for(;t.charCodeAt(--p)===92;)d++;return(d&1)===1}function c(){if(r.length>0&&Uh(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function o(p){if(r.length>0&&r[r.length-1].type===R.Descendant){r[r.length-1].type=p;return}c(),r.push({type:p})}function u(p,d){r.push({type:R.Attribute,name:p,action:d,value:i(1),namespace:null,ignoreCase:"quirks"})}function h(){if(r.length&&r[r.length-1].type===R.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(s(0),t.length===n)return n;e:for(;n<t.length;){const p=t.charCodeAt(n);switch(p){case 32:case 9:case 10:case 12:case 13:(r.length===0||r[0].type!==R.Descendant)&&(c(),r.push({type:R.Descendant})),s(1);break;case 62:o(R.Child),s(1);break;case 60:o(R.Parent),s(1);break;case 126:o(R.Sibling),s(1);break;case 43:o(R.Adjacent),s(1);break;case 46:u("class",xe.Element);break;case 35:u("id",xe.Equals);break;case 91:{s(1);let d,m=null;t.charCodeAt(n)===124?d=i(1):t.startsWith("*|",n)?(m="*",d=i(2)):(d=i(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(m=d,d=i(1))),s(0);let b=xe.Exists;const S=iy.get(t.charCodeAt(n));if(S){if(b=S,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(n)===61&&(b=xe.Equals,s(1));let w="",C=null;if(b!=="exists"){if(ks(t.charCodeAt(n))){const y=t.charCodeAt(n);let L=n+1;for(;L<t.length&&(t.charCodeAt(L)!==y||l(L));)L+=1;if(t.charCodeAt(L)!==y)throw new Error("Attribute value didn't end");w=sr(t.slice(n+1,L)),n=L+1}else{const y=n;for(;n<t.length&&(!Al(t.charCodeAt(n))&&t.charCodeAt(n)!==93||l(n));)n+=1;w=sr(t.slice(y,n))}s(0);const E=t.charCodeAt(n)|32;E===115?(C=!1,s(1)):E===105&&(C=!0,s(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const _={type:R.Attribute,name:d,action:b,value:w,namespace:m,ignoreCase:C};r.push(_);break}
12case 58:{if(t.charCodeAt(n+1)===58){r.push({type:R.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(n)===40?a():null});continue}const d=i(1).toLowerCase();let m=null;if(t.charCodeAt(n)===40)if(sy.has(d)){if(ks(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${d} cannot be quoted`);if(m=[],n=Gh(m,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${d} (${t})`);n+=1}else{if(m=a(),ay.has(d)){const b=m.charCodeAt(0);b===m.charCodeAt(m.length-1)&&ks(b)&&(m=m.slice(1,-1))}m=sr(m)}r.push({type:R.Pseudo,name:d,data:m});break}case 44:h(),r=[],s(1);break;default:{if(t.startsWith("/*",n)){const b=t.indexOf("*/",n+2);if(b<0)throw new Error("Comment was not terminated");n=b+2,r.length===0&&s(0);break}let d=null,m;if(p===42)n+=1,m="*";else if(p===124){if(m="",t.charCodeAt(n+1)===124){o(R.ColumnCombinator),s(2);break}}else{if(!Cl.test(t.slice(n)))break e;m=i(0)}t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(d=m,t.charCodeAt(n+1)===42?(m="*",n+=2):m=i(1)),r.push(m==="*"?{type:R.Universal,namespace:d}:{type:R.Tag,name:m,namespace:d})}}}return h(),n}const Bh=new Map([[R.Universal,50],[R.Tag,30],[R.Attribute,1],[R.Pseudo,0]]);function So(e){return!Bh.has(e.type)}const ly=new Map([[xe.Exists,10],[xe.Equals,8],[xe.Not,7],[xe.Start,6],[xe.End,6],[xe.Any,5]]);function cy(e){const t=e.map(Vh);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let i=n-1;i>=0&&r<t[i];i--){const s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=r}}}function Vh(e){var t,n;let r=(t=Bh.get(e.type))!==null&&t!==void 0?t:-1;return e.type===R.Attribute?(r=(n=ly.get(e.action))!==null&&n!==void 0?n:4,e.action===xe.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===R.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map((i=>Math.min(...i.map(Vh))))),r<0&&(r=0)):r=2:r=3),r}const uy=/[-[\]{}()*+?.,\\^$|#\s]/g;function $l(e){return e.replace(uy,"\\$&")}const hy=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function ln(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&hy.has(e.name)}const py={equals(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;return ln(t,n)?(s=s.toLowerCase(),a=>{const l=r.getAttributeValue(a,i);return l!=null&&l.length===s.length&&l.toLowerCase()===s&&e(a)}):a=>r.getAttributeValue(a,i)===s&&e(a)},hyphen(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;const a=s.length;return ln(t,n)?(s=s.toLowerCase(),function(c){const o=r.getAttributeValue(c,i);return o!=null&&(o.length===a||o.charAt(a)==="-")&&o.substr(0,a).toLowerCase()===s&&e(c)}):function(c){const o=r.getAttributeValue(c,i);return o!=null&&(o.length===a||o.charAt(a)==="-")&&o.substr(0,a)===s&&e(c)}},element(e,t,n){const{adapter:r}=n,{name:i,value:s}=t;if(/\s/.test(s))return U.falseFunc;const a=new RegExp(`(?:^|\\s)${$l(s)}(?:$|\\s)`,ln(t,n)?"i":"");return function(c){const o=r.getAttributeValue(c,i);return o!=null&&o.length>=s.length&&a.test(o)&&e(c)}},exists:(e,{name:t},{adapter:n})=>r=>n.hasAttrib(r,t)&&e(r),start(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;const a=s.length;return a===0?U.falseFunc:ln(t,n)?(s=s.toLowerCase(),l=>{const c=r.getAttributeValue(l,i);return c!=null&&c.length>=a&&c.substr(0,a).toLowerCase()===s&&e(l)}):l=>{var c;return!!(!((c=r.getAttributeValue(l,i))===null||c===void 0)&&c.startsWith(s))&&e(l)}},end(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;const a=-s.length;return a===0?U.falseFunc:ln(t,n)?(s=s.toLowerCase(),l=>{var c;return((c=r.getAttributeValue(l,i))===null||c===void 0?void 0:c.substr(a).toLowerCase())===s&&e(l)}):l=>{var c;return!!(!((c=r.getAttributeValue(l,i))===null||c===void 0)&&c.endsWith(s))&&e(l)}},any(e,t,n){const{adapter:r}=n,{name:i,value:s}=t;if(s==="")return U.falseFunc;if(ln(t,n)){const a=new RegExp($l(s),"i");return function(c){const o=r.getAttributeValue(c,i);return o!=null&&o.length>=s.length&&a.test(o)&&e(c)}}return a=>{var l;return!!(!((l=r.getAttributeValue(a,i))===null||l===void 0)&&l.includes(s))&&e(a)}},not(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;return s===""?a=>!!r.getAttributeValue(a,i)&&e(a):ln(t,n)?(s=s.toLowerCase(),a=>{const l=r.getAttributeValue(a,i);return(l==null||l.length!==s.length||l.toLowerCase()!==s)&&e(a)}):a=>r.getAttributeValue(a,i)!==s&&e(a)}},fy=new Set([9,10,12,13,32]),El=48,dy=57;function my(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=s(),i=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(i??1),l(),t<e.length?(r=s(),l(),i=a()):r=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){const c=t;let o=0;for(;t<e.length&&e.charCodeAt(t)>=El&&e.charCodeAt(t)<=dy;)o=o*10+(e.charCodeAt(t)-El),t++;return t===c?null:o}function l(){for(;t<e.length&&fy.has(e.charCodeAt(t));)t++}}function gy(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return U.falseFunc;if(t===-1)return s=>s<=n;if(t===0)return s=>s===n;if(t===1)return n<0?U.trueFunc:s=>s>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?s=>s>=n&&s%r===i:s=>s<=n&&s%r===i}function Ur(e){return gy(my(e))}function Gr(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const Pa={contains:(e,t,{adapter:n})=>function(i){return e(i)&&n.getText(i).includes(t)},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(s){return e(s)&&n.getText(s).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const i=Ur(t);return i===U.falseFunc?U.falseFunc:i===U.trueFunc?Gr(e,n):function(a){const l=n.getSiblings(a);let c=0;for(let o=0;o<l.length&&!r(a,l[o]);o++)n.isTag(l[o])&&c++;return i(c)&&e(a)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const i=Ur(t);return i===U.falseFunc?U.falseFunc:i===U.trueFunc?Gr(e,n):function(a){const l=n.getSiblings(a);let c=0;for(let o=l.length-1;o>=0&&!r(a,l[o]);o--)n.isTag(l[o])&&c++;return i(c)&&e(a)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const i=Ur(t);return i===U.falseFunc?U.falseFunc:i===U.trueFunc?Gr(e,n):function(a){const l=n.getSiblings(a);let c=0;for(let o=0;o<l.length;o++){const u=l[o];if(r(a,u))break;n.isTag(u)&&n.getName(u)===n.getName(a)&&c++}return i(c)&&e(a)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const i=Ur(t);return i===U.falseFunc?U.falseFunc:i===U.trueFunc?Gr(e,n):function(a){const l=n.getSiblings(a);let c=0;for(let o=l.length-1;o>=0;o--){const u=l[o];if(r(a,u))break;n.isTag(u)&&n.getName(u)===n.getName(a)&&c++}return i(c)&&e(a)}},root:(e,t,{adapter:n})=>r=>{const i=n.getParent(r);return(i==null||!n.isTag(i))&&e(r)},scope(e,t,n,r){const{equals:i}=n;return!r||r.length===0?Pa.root(e,t,n):r.length===1?s=>i(r[0],s)&&e(s):s=>r.includes(s)&&e(s)},hover:vs("isHovered"),visited:vs("isVisited"),active:vs("isActive")};function vs(e){return function(n,r,{adapter:i}){const s=i[e];return typeof s!="function"?U.falseFunc:function(l){return s(l)&&n(l)}}}const Tl={empty:(e,{adapter:t})=>!t.getChildren(e).some((n=>t.isTag(n)||t.getText(n)!=="")),"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find((i=>t.isTag(i)));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let i=r.length-1;i>=0;i--){if(n(e,r[i]))return!0;
12if(t.isTag(r[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),i=t.getName(e);for(let s=0;s<r.length;s++){const a=r[s];if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),i=t.getName(e);for(let s=r.length-1;s>=0;s--){const a=r[s];if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every((i=>n(e,i)||!t.isTag(i)||t.getName(i)!==r))},"only-child":(e,{adapter:t,equals:n})=>t.getSiblings(e).every((r=>n(e,r)||!t.isTag(r)))};function Ol(e,t,n,r){if(n===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const by={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( 13 :is(button, input, select, textarea, optgroup, option)[disabled], 14 optgroup[disabled] > option, 15 fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *) 16 )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},Wh={};function Hh(e,t){return e===U.falseFunc?U.falseFunc:n=>t.isTag(n)&&e(n)}function Yh(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Na(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const ws=(e,t,n,r,i)=>{const s=i(t,Na(n),r);return s===U.trueFunc?e:s===U.falseFunc?U.falseFunc:a=>s(a)&&e(a)},xs={is:ws,matches:ws,where:ws,not(e,t,n,r,i){const s=i(t,Na(n),r);return s===U.falseFunc?e:s===U.trueFunc?U.falseFunc:a=>!s(a)&&e(a)},has(e,t,n,r,i){const{adapter:s}=n,a=Na(n);a.relativeSelector=!0;const l=t.some((u=>u.some(So)))?[Wh]:void 0,c=i(t,a,l);if(c===U.falseFunc)return U.falseFunc;const o=Hh(c,s);if(l&&c!==U.trueFunc){const{shouldTestNextSiblings:u=!1}=c;return h=>{if(!e(h))return!1;l[0]=h;const p=s.getChildren(h),d=u?[...p,...Yh(h,s)]:p;return s.existsOne(o,d)}}return u=>e(u)&&s.existsOne(o,s.getChildren(u))}};function yy(e,t,n,r,i){var s;const{name:a,data:l}=t;if(Array.isArray(l)){if(!(a in xs))throw new Error(`Unknown pseudo-class :${a}(${l})`);return xs[a](e,l,n,r,i)}const c=(s=n.pseudos)===null||s===void 0?void 0:s[a],o=typeof c=="string"?c:by[a];if(typeof o=="string"){if(l!=null)throw new Error(`Pseudo ${a} doesn't have any arguments`);const u=Gi(o);return xs.is(e,u,n,r,i)}if(typeof c=="function")return Ol(c,a,l,1),u=>c(u,l)&&e(u);if(a in Pa)return Pa[a](e,l,n,r);if(a in Tl){const u=Tl[a];return Ol(u,a,l,2),h=>u(h,n,l)&&e(h)}throw new Error(`Unknown pseudo-class :${a}`)}function Ss(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function ky(e,t,n,r,i){const{adapter:s,equals:a}=n;switch(t.type){case R.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case R.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case R.Attribute:if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),py[t.action](e,t,n);case R.Pseudo:return yy(e,t,n,r,i);case R.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return n.xmlMode&&!n.lowerCaseTags||(l=l.toLowerCase()),function(o){return s.getName(o)===l&&e(o)}}case R.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(o){let u=o;for(;
16u=Ss(u,s);)if(e(u))return!0;return!1};const l=new WeakSet;return function(o){let u=o;for(;u=Ss(u,s);)if(!l.has(u)){if(s.isTag(u)&&e(u))return!0;l.add(u)}return!1}}case"_flexibleDescendant":return function(c){let o=c;do if(e(o))return!0;while(o=Ss(o,s));return!1};case R.Parent:return function(c){return s.getChildren(c).some((o=>s.isTag(o)&&e(o)))};case R.Child:return function(c){const o=s.getParent(c);return o!=null&&s.isTag(o)&&e(o)};case R.Sibling:return function(c){const o=s.getSiblings(c);for(let u=0;u<o.length;u++){const h=o[u];if(a(c,h))break;if(s.isTag(h)&&e(h))return!0}return!1};case R.Adjacent:return s.prevElementSibling?function(c){const o=s.prevElementSibling(c);return o!=null&&e(o)}:function(c){const o=s.getSiblings(c);let u;for(let h=0;h<o.length;h++){const p=o[h];if(a(c,p))break;s.isTag(p)&&(u=p)}return!!u&&e(u)};case R.Universal:if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}function vy(e,t,n){const r=Xh(e,t,n);return Hh(r,t.adapter)}function Xh(e,t,n){const r=typeof e=="string"?Gi(e):e;return Kh(r,t,n)}function Qh(e){return e.type===R.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some((t=>t.some(Qh))))}const wy={type:R.Descendant},xy={type:"_flexibleDescendant"},Sy={type:R.Pseudo,name:"scope",data:null};function Cy(e,{adapter:t},n){const r=!!n?.every((i=>{const s=t.isTag(i)&&t.getParent(i);return i===Wh||s&&t.isTag(s)}));for(const i of e){if(!(i.length>0&&So(i[0])&&i[0].type!==R.Descendant)){if(!r||i.some(Qh))continue;i.unshift(wy)}i.unshift(Sy)}}function Kh(e,t,n){var r;e.forEach(cy),n=(r=t.context)!==null&&r!==void 0?r:n;const i=Array.isArray(n),s=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)Cy(e,t,s);else if(e.some((c=>c.length>0&&So(c[0]))))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1;const l=e.map((c=>{if(c.length>=2){const[o,u]=c;o.type!==R.Pseudo||o.name!=="scope"||(i&&u.type===R.Descendant?c[1]=xy:u.type!==R.Adjacent&&u.type!==R.Sibling||(a=!0))}return Ay(c,t,s)})).reduce($y,U.falseFunc);return l.shouldTestNextSiblings=a,l}function Ay(e,t,n){var r;return e.reduce(((i,s)=>i===U.falseFunc?U.falseFunc:ky(i,s,t,n,Kh)),(r=t.rootFunc)!==null&&r!==void 0?r:U.trueFunc)}function $y(e,t){return t===U.falseFunc||e===U.trueFunc?e:e===U.falseFunc||t===U.trueFunc?t:function(r){return e(r)||t(r)}}const Zh=(e,t)=>e===t,Ey={adapter:jh,equals:Zh};function Jh(e){var t,n,r,i;const s=e??Ey;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=jh),(n=s.equals)!==null&&n!==void 0||(s.equals=(i=(r=s.adapter)===null||r===void 0?void 0:r.equals)!==null&&i!==void 0?i:Zh),s}function ep(e){return function(n,r,i){const s=Jh(i);typeof n!="function"&&(n=Xh(n,s,r));const a=Ty(r,s.adapter,n.shouldTestNextSiblings);return e(n,a,s)}}function Ty(e,t,n=!1){return n&&(e=Oy(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function Oy(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let i=0;i<r;i++){const s=Yh(n[i],t);n.push(...s)}return n}const _y=ep(((e,t,n)=>e!==U.falseFunc&&t&&t.length!==0?n.adapter.findAll(e,t):[])),Ly=ep(((e,t,n)=>e!==U.falseFunc&&t&&t.length!==0?n.adapter.findOne(e,t):null));function Py(e,t,n){const r=Jh(n);return(typeof t=="function"?t:vy(t,r))(e)}function Ny(e){const t=new Map;for(const n of e.children)t.set(n,e),zt(n,{element:{enter:(r,i)=>{t.set(r,i)}}},e);return t}const Bi=e=>e.type==="element",tp=(e,t)=>t.some((n=>Bi(n)&&(e(n)||tp(e,Or(n))))),Iy=(e,t)=>e.attributes[t],Or=e=>e.children||[],My=e=>e.name,Ry=e=>e.children[0].type==="text"||e.children[0].type==="cdata"?e.children[0].value:"",Dy=(e,t)=>e.attributes[t]!==void 0,np=(e,t)=>{const n=[];for(const r of t)Bi(r)&&(e(r)&&n.push(r),n.push(...np(e,Or(r))));return n},rp=(e,t)=>{for(const n of t)if(Bi(n)){if(e(n))return n;const r=rp(e,Or(n));if(r)return r}return null};function zy(e,t){const n=s=>(t||(t=Ny(e)),t.get(s)||null);return{isTag:Bi,existsOne:tp,getAttributeValue:Iy,getChildren:Or,getName:My,getParent:n,getSiblings:s=>{const a=n(s);return a?Or(a):[]},getText:Ry,hasAttrib:Dy,removeSubsets:s=>{let a=s.length,l,c,o;for(;--a>-1;){for(l=c=s[a],s[a]=null,o=!0;c;){if(s.includes(c)){o=!1,s.splice(a,1);break}c=n(c)}o&&(s[a]=l)}return s},findAll:np,findOne:rp}}function Co(e,t){return{xmlMode:!0,adapter:zy(e,t)}}const _r=(e,t,n)=>_y(t,e,Co(e,n)),ip=(e,t,n)=>Ly(t,e,Co(e,n)),Fy=(e,t,n)=>Py(e,t,Co(e,n)),X=(e,t)=>{t.children=t.children.filter((n=>n!==e))},jy="removeDoctype",qy="removes doctype declaration",Uy=()=>({doctype:{enter:(e,t)=>{X(e,t)}}});var sp=Object.freeze({__proto__:null,description:qy,fn:Uy,name:jy});const Gy="removeXMLProcInst",By="removes XML processing instructions",Vy=()=>({instruction:{enter:(e,t)=>{e.name==="xml"&&X(e,t)}}});var ap=Object.freeze({__proto__:null,description:By,fn:Vy,name:Gy});
16const Wy="removeComments",Hy="removes comments",Yy=[/^!/],Xy=(e,t)=>{const{preservePatterns:n=Yy}=t;return{comment:{enter:(r,i)=>{if(n){if(!Array.isArray(n))throw Error(`Expected array in removeComments preservePatterns parameter but received ${n}`);if(n.some((a=>new RegExp(a).test(r.value))))return}X(r,i)}}}};var op=Object.freeze({__proto__:null,description:Hy,fn:Xy,name:Wy});const on={animation:new Set(["animate","animateColor","animateMotion","animateTransform","set"]),descriptive:new Set(["desc","metadata","title"]),shape:new Set(["circle","ellipse","line","path","polygon","polyline","rect"]),structural:new Set(["defs","g","svg","symbol","use"]),paintServer:new Set(["hatch","linearGradient","meshGradient","pattern","radialGradient","solidColor"]),nonRendering:new Set(["clipPath","filter","linearGradient","marker","mask","pattern","radialGradient","solidColor","symbol"]),container:new Set(["a","defs","foreignObject","g","marker","mask","missing-glyph","pattern","svg","switch","symbol"]),textContent:new Set(["a","altGlyph","altGlyphDef","altGlyphItem","glyph","glyphRef","text","textPath","tref","tspan"]),textContentChild:new Set(["altGlyph","textPath","tref","tspan"]),lightSource:new Set(["feDiffuseLighting","feDistantLight","fePointLight","feSpecularLighting","feSpotLight"]),filterPrimitive:new Set(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence"])},lp=new Set([...on.textContent,"pre","title"]),Ao=new Set(["glyph","missing-glyph","path"]),Me={animationAddition:new Set(["additive","accumulate"]),animationAttributeTarget:new Set(["attributeType","attributeName"]),animationEvent:new Set(["onbegin","onend","onrepeat","onload"]),animationTiming:new Set(["begin","dur","end","fill","max","min","repeatCount","repeatDur","restart"]),animationValue:new Set(["by","calcMode","from","keySplines","keyTimes","to","values"]),conditionalProcessing:new Set(["requiredExtensions","requiredFeatures","systemLanguage"]),core:new Set(["id","tabindex","xml:base","xml:lang","xml:space"]),graphicalEvent:new Set(["onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup"]),presentation:new Set(["alignment-baseline","baseline-shift","clip-path","clip-rule","clip","color-interpolation-filters","color-interpolation","color-profile","color-rendering","color","cursor","direction","display","dominant-baseline","enable-background","fill-opacity","fill-rule","fill","filter","flood-color","flood-opacity","font-family","font-size-adjust","font-size","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","stroke","text-anchor","text-decoration","text-overflow","text-rendering","transform-origin","transform","unicode-bidi","vector-effect","visibility","word-spacing","writing-mode"]),xlink:new Set(["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type"]),documentEvent:new Set(["onabort","onerror","onresize","onscroll","onunload","onzoom"]),documentElementEvent:new Set(["oncopy","oncut","onpaste"]),globalEvent:ne
16w Set(["oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting"]),filterPrimitive:new Set(["x","y","width","height","result"]),transferFunction:new Set(["amplitude","exponent","intercept","offset","slope","tableValues","type"])},$o={core:{"xml:space":"default"},presentation:{clip:"auto","clip-path":"none","clip-rule":"nonzero",mask:"none",opacity:"1","stop-color":"#000","stop-opacity":"1","fill-opacity":"1","fill-rule":"nonzero",fill:"#000",stroke:"none","stroke-width":"1","stroke-linecap":"butt","stroke-linejoin":"miter","stroke-miterlimit":"4","stroke-dasharray":"none","stroke-dashoffset":"0","stroke-opacity":"1","paint-order":"normal","vector-effect":"none",display:"inline",visibility:"visible","marker-start":"none","marker-mid":"none","marker-end":"none","color-interpolation":"sRGB","color-interpolation-filters":"linearRGB","color-rendering":"auto","shape-rendering":"auto","text-rendering":"auto","image-rendering":"auto","font-style":"normal","font-variant":"normal","font-weight":"normal","font-stretch":"normal","font-size":"medium","font-size-adjust":"none",kerning:"auto","letter-spacing":"normal","word-spacing":"normal","text-decoration":"none","text-anchor":"start","text-overflow":"clip","writing-mode":"lr-tb","glyph-orientation-vertical":"auto","glyph-orientation-horizontal":"0deg",direction:"ltr","unicode-bidi":"normal","dominant-baseline":"auto","alignment-baseline":"baseline","baseline-shift":"baseline"},transferFunction:{slope:"1",intercept:"0",amplitude:"1",exponent:"1",offset:"0"}},Qy={animationAttributeTarget:{unsafe:new Set(["attributeType"])},conditionalProcessing:{unsafe:new Set(["requiredFeatures"])},core:{unsafe:new Set(["xml:base","xml:lang","xml:space"])},presentation:{unsafe:new Set(["clip","color-profile","enable-background","glyph-orientation-horizontal","glyph-orientation-vertical","kerning"])}},Eo
vendor: 23,456 bytes, line 16
16={a:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","style","target","transform"]),defaults:{target:"_self"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view","tspan"])},altGlyph:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","dx","dy","externalResourcesRequired","format","glyphRef","rotate","style","x","y"])},altGlyphDef:{attrsGroups:new Set(["core"]),content:new Set(["glyphRef"])},altGlyphItem:{attrsGroups:new Set(["core"]),content:new Set(["glyphRef","altGlyphItem"])},animate:{attrsGroups:new Set(["animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","conditionalProcessing","core","presentation","xlink"]),attrs:new Set(["externalResourcesRequired"]),contentGroups:new Set(["descriptive"])},animateColor:{attrsGroups:new Set(["animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","conditionalProcessing","core","presentation","xlink"]),attrs:new Set(["externalResourcesRequired"]),contentGroups:new Set(["descriptive"])},animateMotion:{attrsGroups:new Set(["animationAddition","animationEvent","animationTiming","animationValue","conditionalProcessing","core","xlink"]),attrs:new Set(["externalResourcesRequired","keyPoints","origin","path","rotate"]),defaults:{rotate:"0"},contentGroups:new Set(["descriptive"]),content:new Set(["mpath"])},animateTransform:{attrsGroups:new Set(["animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","conditionalProcessing","core","xlink"]),attrs:new Set(["externalResourcesRequired","type"]),contentGroups:new Set(["descriptive"])},circle:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","cx","cy","externalResourcesRequired","r","style","transform"]),defaults:{cx:"0",cy:"0"},contentGroups:new Set(["animation","descriptive"])},clipPath:{attrsGroups:new Set(["conditionalProcessing","core","presentation"]),attrs:new Set(["class","clipPathUnits","externalResourcesRequired","style","transform"]),defaults:{clipPathUnits:"userSpaceOnUse"},contentGroups:new Set(["animation","descriptive","shape"]),content:new Set(["text","use"])},"color-profile":{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["local","name","rendering-intent"]),defaults:{name:"sRGB","rendering-intent":"auto"},deprecated:{unsafe:new Set(["name"])},contentGroups:new Set(["descriptive"])},cursor:{attrsGroups:new Set(["core","conditionalProcessing","xlink"]),attrs:new Set(["externalResourcesRequired","x","y"]),defaults:{x:"0",y:"0"},contentGroups:new Set(["descriptive"])},defs:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform"]),contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},desc:{attrsGroups:new Set(["core"]),attrs:new Set(["class","style"])},ellipse:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","cx","cy","externalResourcesRequired","rx","ry","style","transform"]),defaults:{cx:"0",cy:"0"},contentGroups:new Set(["animation","descriptive"])},feBlend:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","in2","mode"]),defaults:{mode:"normal"},content:new Set(["animate","set"])},feColorMatrix:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","type","values"]),defaults:{type:"matrix"},content:new Set(["animate","set"])},feComponentTransfer:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in"]),content:new Set(["feFuncA","feFuncB","feFuncG","feFuncR"])},feComposite:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","in2","k1","k2","k3","k4","operator","style"]),defaults:{operator:"over",k1:"0",k2:"0",k3:"0",k4:"0"},content:new Set(["animate","set"])},feConvolveMatrix:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","kernelMatrix","order","style","bias","divisor","edgeMode","targetX","targetY","kernelUnitLength","preserveAlpha"]),defaults:{order:"3",bias:"0",edgeMode:"duplicate",preserveAlpha:"false"},content:new Set(["animate","set"])},feDiffuseLighting:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","diffuseConstant","in","kernelUnitLength","style","surfaceScale"]),defaults:{surfaceScale:"1",diffuseConstant:"1"},contentGroups:new Set(["descriptive"]),content:new Set(["feDistantLight","fePointLight","feSpotLight"])},feDisplacementMap:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","in2","scale","style","xChannelSelector","yChannelSelector"]),defaults:{scale:"0",xChannelSelector:"A",yChannelSelector:"A"},content:new Set(["animate","set"])},feDistantLight:{attrsGroups:new Set(["core"]),attrs:new Set(["azimuth","elevation"]),defaults:{azimuth:"0",elevation:"0"},content:new Set(["animate","set"])},feFlood:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style"]),content:new Set(["animate","animateColor","set"])},feFuncA:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feFuncB:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feFuncG:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feFuncR:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feGaussianBlur:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","stdDeviation"]),defaults:{stdDeviation:"0"},content:new Set(["set","animate"])},feImage:{attrsGroups:new Set(["core","presentation","filterPrimitive","xlink"]),attrs:new Set(["class","externalResourcesRequired","href","preserveAspectRatio","style","xlink:href"]),defaults:{preserveAspectRatio:"xMidYMid meet"},content:new Set(["animate","animateTransform","set"])},feMerge:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style"]),content:new Set(["feMergeNode"])},feMergeNode:{attrsGroups:new Set(["core"]),attrs:new Set(["in"]),content:new Set(["animate","set"])},feMorphology:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","operator","radius"]),defaults:{operator:"erode",radius:"0"},content:new Set(["animate","set"])},feOffset:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","dx","dy"]),defaults:{dx:"0",dy:"0"},content:new Set(["animate","set"])},fePointLight:{attrsGroups:new Set(["core"]),attrs:new Set(["x","y","z"]),defaults:{x:"0",y:"0",z:"0"},content:new Set(["animate","set"])},feSpecularLighting:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","kernelUnitLength","specularConstant","specularExponent","style","surfaceScale"]),defaults:{surfaceScale:"1",specularConstant:"1",specularExponent:"1"},contentGroups:new Set(["descriptive","lightSource"])},feSpotLight:{attrsGroups:new Set(["core"]),attrs:new Set(["limitingConeAngle","pointsAtX","pointsAtY","pointsAtZ","specularExponent","x","y","z"]),defaults:{x:"0",y:"0",z:"0",pointsAtX:"0",pointsAtY:"0",pointsAtZ:"0",specularExponent:"1"},content:new Set(["animate","set"])},feTile:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in"]),content:new Set(["animate","set"])},feTurbulence:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["baseFrequency","class","numOctaves","seed","stitchTiles","style","type"]),defaults:{baseFrequency:"0",numOctaves:"1",seed:"0",stitchTiles:"noStitch",type:"turbulence"},content:new Set(["animate","set"])},filter:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","filterRes","filterUnits","height","href","primitiveUnits","style","width","x","xlink:href","y"]),defaults:{primitiveUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},deprecated:{unsafe:new Set(["filterRes"])},contentGroups:new Set(["descriptive","filterPrimitive"]),content:new Set(["animate","set"])},font:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","externalResourcesRequired","horiz-adv-x","horiz-origin-x","horiz-origin-y","style","vert-adv-y","vert-origin-x","vert-origin-y"]),defaults:{"horiz-origin-x":"0","horiz-origin-y":"0"},deprecated:{unsafe:new Set(["horiz-origin-x","horiz-origin-y","vert-adv-y","vert-origin-x","vert-origin-y"])},contentGroups:new Set(["descriptive"]),content:new Set(["font-face","glyph","hkern","missing-glyph","vkern"])},"font-face":{attrsGroups:new Set(["core"]),attrs:new Set(["font-family","font-style","font-variant","font-weight","font-stretch","font-size","unicode-range","units-per-em","panose-1","stemv","stemh","slope","cap-height","x-height","accent-height","ascent","descent","widths","bbox","ideographic","alphabetic","mathematical","hanging","v-ideographic","v-alphabetic","v-mathematical","v-hanging","underline-position","underline-thickness","strikethrough-position","strikethrough-thickness","overline-position","overline-thickness"]),defaults:{"font-style":"all","font-variant":"normal","font-weight":"all","font-stretch":"normal","unicode-range":"U+0-10FFFF","units-per-em":"1000","panose-1":"0 0 0 0 0 0 0 0 0 0",slope:"0"},deprecated:{unsafe:new Set(["accent-height","alphabetic","ascent","bbox","cap-height","descent","hanging","ideographic","mathematical","panose-1","slope","stemh","stemv","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","widths","x-height"])},contentGroups:new Set(["descriptive"]),content:new Set(["font-face-src"])},"font-face-format":{attrsGroups:new Set(["core"]),attrs:new Set(["string"]),deprecated:{unsafe:new Set(["string"])}},"font-face-name":{attrsGroups:new Set(["core"]),attrs:new Set(["name"]),deprecated:{unsafe:new Set(["name"])}},"font-face-src":{attrsGroups:new Set(["core"]),content:new Set(["font-face-name","font-face-uri"])},"font-face-uri":{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["href","xlink:href"]),content:new Set(["font-face-format"])},foreignObject:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","height","style","transform","width","x","y"]),defaults:{x:"0",y:"0"}},g:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform"]),contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},glyph:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["arabic-form","class","d","glyph-name","horiz-adv-x","lang","orientation","style","unicode","vert-adv-y","vert-origin-x","vert-origin-y"]),defaults:{"arabic-form":"initial"},deprecated:{unsafe:new Set(["arabic-form","glyph-name","horiz-adv-x","orientation","unicode","vert-adv-y","vert-origin-x","vert-origin-y"])},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},glyphRef:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","d","horiz-adv-x","style","vert-adv-y","vert-origin-x","vert-origin-y"]),deprecated:{unsafe:new Set(["horiz-adv-x","vert-adv-y","vert-origin-x","vert-origin-y"])},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},hatch:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","hatchContentUnits","hatchUnits","pitch","rotate","style","transform","x","y"]),defaults:{hatchUnits:"objectBoundingBox",hatchContentUnits:"userSpaceOnUse",x:"0",y:"0",pitch:"0",rotate:"0"},contentGroups:new Set(["animation","descriptive"]),content:new Set(["hatchPath"])},hatchPath:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","style","d","offset"]),defaults:{offset:"0"},contentGroups:new Set(["animation","descriptive"])},hkern:{attrsGroups:new Set(["core"]),attrs:new Set(["u1","g1","u2","g2","k"]),deprecated:{unsafe:new Set(["g1","g2","k","u1","u2"])}},image:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","height","href","preserveAspectRatio","style","transform","width","x","xlink:href","y"]),defaults:{x:"0",y:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:new Set(["animation","descriptive"])},line:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform","x1","x2","y1","y2"]),defaults:{x1:"0",y1:"0",x2:"0",y2:"0"},contentGroups:new Set(["animation","descriptive"])},linearGradient:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","gradientTransform","gradientUnits","href","spreadMethod","style","x1","x2","xlink:href","y1","y2"]),defaults:{x1:"0",y1:"0",x2:"100%",y2:"0",spreadMethod:"pad"},contentGroups:new Set(["descriptive"]),content:new Set(["animate","animateTransform","set","stop"])},marker:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","externalResourcesRequired","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","style","viewBox"]),defaults:{markerUnits:"strokeWidth",refX:"0",refY:"0",markerWidth:"3",markerHeight:"3"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},mask:{attrsGroups:new Set(["conditionalProcessing","core","presentation"]),attrs:new Set(["class","externalResourcesRequired","height","mask-type","maskContentUnits","maskUnits","style","width","x","y"]),defaults:{maskUnits:"objectBoundingBox",maskContentUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},metadata:{attrsGroups:new Set(["core"])},"missing-glyph":{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","d","horiz-adv-x","style","vert-adv-y","vert-origin-x","vert-origin-y"]),deprecated:{unsafe:new Set(["horiz-adv-x","vert-adv-y","vert-origin-x","vert-origin-y"])},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},mpath:{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["externalResourcesRequired","href","xlink:href"]),contentGroups:new Set(["descriptive"])},path:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","d","externalResourcesRequired","pathLength","style","transform"]),contentGroups:new Set(["animation","descriptive"])},pattern:{attrsGroups:new Set(["conditionalProcessing","core","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","height","href","patternContentUnits","patternTransform","patternUnits","preserveAspectRatio","style","viewBox","width","x","xlink:href","y"]),defaults:{patternUnits:"objectBoundingBox",patternContentUnits:"userSpaceOnUse",x:"0",y:"0",width:"0",height:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},polygon:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","points","style","transform"]),contentGroups:new Set(["animation","descriptive"])},polyline:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","points","style","transform"]),contentGroups:new Set(["animation","descriptive"])},radialGradient:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","cx","cy","externalResourcesRequired","fr","fx","fy","gradientTransform","gradientUnits","href","r","spreadMethod","style","xlink:href"]),defaults:{gradientUnits:"objectBoundingBox",cx:"50%",cy:"50%",r:"50%"},contentGroups:new Set(["descriptive"]),content:new Set(["animate","animateTransform","set","stop"])},meshGradient:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","style","x","y","gradientUnits","transform"]),contentGroups:new Set(["descriptive","paintServer","animation"]),content:new Set(["meshRow"])},meshRow:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style"]),contentGroups:new Set(["descriptive"]),content:new Set(["meshPatch"])},meshPatch:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style"]),contentGroups:new Set(["descriptive"]),content:new Set(["stop"])},rect:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","height","rx","ry","style","transform","width","x","y"]),defaults:{x:"0",y:"0"},contentGroups:new Set(["animation","descriptive"])},script:{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["externalResourcesRequired","type","href","xlink:href"])},set:{attrsGroups:new Set(["animation","animationAttributeTarget","animationTiming","conditionalProcessing","core","xlink"]),attrs:new Set(["externalResourcesRequired","to"]),contentGroups:new Set(["descriptive"])},solidColor:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style"]),contentGroups:new Set(["paintServer"])},stop:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style","offset","path"]),content:new Set(["animate","animateColor","set"])},style:{attrsGroups:new Set(["core"]),attrs:new Set(["type","media","title"]),defaults:{type:"text/css"}},svg:{attrsGroups:new Set(["conditionalProcessing","core","documentEvent","graphicalEvent","presentation"]),attrs:new Set(["baseProfile","class","contentScriptType","contentStyleType","height","preserveAspectRatio","style","version","viewBox","width","x","y","zoomAndPan"]),defaults:{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet",zoomAndPan:"magnify",version:"1.1",baseProfile:"none",contentScriptType:"application/ecmascript",contentStyleType:"text/css"},deprecated:{safe:new Set(["version"]),unsafe:new Set(["baseProfile","contentScriptType","contentStyleType","zoomAndPan"])},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},switch:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform"]),contentGroups:new Set(["animation","descriptive","shape"]),content:new Set(["a","foreignObject","g","image","svg","switch","text","use"])},symbol:{attrsGroups:new Set(["core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","preserveAspectRatio","refX","refY","style","viewBox"]),defaults:{refX:"0",refY:"0"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},text:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","dx","dy","externalResourcesRequired","lengthAdjust","rotate","style","textLength","transform","x","y"]),defaults:{x:"0",y:"0",lengthAdjust:"spacing"},contentGroups:new Set(["animation","descriptive","textContentChild"]),content:new Set(["a"])},textPath:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","d","externalResourcesRequired","href","method","spacing","startOffset","style","xlink:href"]),defaults:{startOffset:"0",method:"align",spacing:"exact"},contentGroups:new Set(["descriptive"]),content:new Set(["a","altGlyph","animate","animateColor","set","tref","tspan"])},title:{attrsGroups:new Set(["core"]),attrs:new Set(["class","style"])},tref:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","href","style","xlink:href"]),contentGroups:new Set(["descriptive"]),content:new Set(["animate","animateColor","set"])},tspan:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","dx","dy","externalResourcesRequired","lengthAdjust","rotate","style","textLength","x","y"]),contentGroups:new Set(["descriptive"]),content:new Set(["a","altGlyph","animate","animateColor","set","tref","tspan"])},use:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","height","href","style","transform","width","x","xlink:href","y"]),defaults:{x:"0",y:"0"},contentGroups:new Set(["animation","descriptive"])},view:{attrsGroups:new Set(["core"]),attrs:new Set(["externalResourcesRequired","preserveAspectRatio","viewBox","viewTarget","zoomAndPan"]),deprecated:{unsafe:new Set(["viewTarget","zoomAndPan"])},contentGroups:new Set(["descriptive"])},vkern:{attrsGroups:new Set(["core"]),attrs:new Set(["u1","g1","u2","g2","k"]),deprecated:{unsafe:new Set(["g1","g2","k","u1","u2"])}}}
16,_l=new Set(["http://creativecommons.org/ns#","http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd","http://krita.org/namespaces/svg/krita","http://ns.adobe.com/AdobeIllustrator/10.0/","http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/","http://ns.adobe.com/Extensibility/1.0/","http://ns.adobe.com/Flows/1.0/","http://ns.adobe.com/GenericCustomNamespace/1.0/","http://ns.adobe.com/Graphs/1.0/","http://ns.adobe.com/ImageReplacement/1.0/","http://ns.adobe.com/SaveForWeb/1.0/","http://ns.adobe.com/Variables/1.0/","http://ns.adobe.com/XPath/1.0/","http://purl.org/dc/elements/1.1/","http://schemas.microsoft.com/visio/2003/SVGExtensions/","http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","http://taptrix.com/vectorillustrator/svg_extensions","http://www.bohemiancoding.com/sketch/ns","http://www.figma.com/figma/ns","http://www.inkscape.org/namespaces/inkscape","http://www.serif.com/","http://www.vector.evaxdesign.sk","http://www.w3.org/1999/02/22-rdf-syntax-ns#","https://boxy-svg.com"]),Vi=new Set(["clip-path","color-profile","fill","filter","marker-end","marker-mid","marker-start","mask","stroke","style"]),Wi=new Set(["clip-rule","color-interpolation-filters","color-interpolation","color-profile","color-rendering","color","cursor","direction","dominant-baseline","fill-opacity","fill-rule","fill","font-family","font-size-adjust","font-size","font-stretch","font-style","font-variant","font-weight","font","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","marker-end","marker-mid","marker-start","marker","paint-order","pointer-events","shape-rendering","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","stroke","text-anchor","text-rendering","transform","visibility","word-spacing","writing-mode"]),To=new Set(["clip-path","display","filter","mask","opacity","text-decoration","transform","unicode-bidi"]),Ll={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#639",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
16almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},Pl={"#f0ffff":"azure","#f5f5dc":"beige","#ffe4c4":"bisque","#a52a2a":"brown","#ff7f50":"coral","#ffd700":"gold","#808080":"gray","#008000":"green","#4b0082":"indigo","#fffff0":"ivory","#f0e68c":"khaki","#faf0e6":"linen","#800000":"maroon","#000080":"navy","#808000":"olive","#ffa500":"orange","#da70d6":"orchid","#cd853f":"peru","#ffc0cb":"pink","#dda0dd":"plum","#800080":"purple","#f00":"red","#ff0000":"red","#fa8072":"salmon","#a0522d":"sienna","#c0c0c0":"silver","#fffafa":"snow","#d2b48c":"tan","#008080":"teal","#ff6347":"tomato","#ee82ee":"violet","#f5deb3":"wheat"},Ia=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),Nl={treeStructural:new Set(["empty","first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","root"]),functional:new Set(["is","not","where","has"])},en=0,P=1,q=2,ye=3,oe=4,Et=5,Hi=6,Ie=7,Ve=8,H=9,z=10,he=11,B=12,fe=13,Fr=14,We=15,Re=16,De=17,Ke=18,tt=19,St=20,Z=21,D=22,$e=23,ht=24,_e=25,Ky=0;function Oe(e){return e>=48&&e<=57}function sn(e){return Oe(e)||e>=65&&e<=70||e>=97&&e<=102}function Oo(e){return e>=65&&e<=90}function Zy(e){return e>=97&&e<=122}function Jy(e){return Oo(e)||Zy(e)}function e0(e){return e>=128}function Si(e){return Jy(e)||e0(e)||e===95}function cp(e){return Si(e)||Oe(e)||e===45}function t0(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ci(e){return e===10||e===13||e===12}function yn(e){return Ci(e)||e===32||e===9}function Mt(e,t){return!(e!==92||Ci(t)||t===Ky)}function ci(e,t,n){return e===45?Si(t)||t===45||Mt(t,n):Si(e)?!0:e===92?Mt(e,t):!1}function Cs(e,t,n){return e===43||e===45?Oe(t)?2:t===46&&Oe(n)?3:0:e===46?Oe(t)?2:0:Oe(e)?1:0}function up(e){return e===65279||e===65534?1:0}const Ma=new Array(128),n0=128,ui=130,hp=131,_o=132,pp=133;for(let e=0;e<Ma.length;e++)Ma[e]=yn(e)&&ui||Oe(e)&&hp||Si(e)&&_o||t0(e)&&pp||e||n0;function As(e){return e<128?Ma[e]:_o}function zn(e,t){return t<e.length?e.charCodeAt(t):0}
16function Ra(e,t,n){return n===13&&zn(e,t+1)===10?2:1}function Fn(e,t,n){let r=e.charCodeAt(t);return Oo(r)&&(r|=32),r===n}function Lr(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){const s=r.charCodeAt(i-t);let a=e.charCodeAt(i);if(Oo(a)&&(a|=32),a!==s)return!1}return!0}function r0(e,t){for(;t>=0&&yn(e.charCodeAt(t));t--);return t+1}function Br(e,t){for(;t<e.length&&yn(e.charCodeAt(t));t++);return t}function $s(e,t){for(;t<e.length&&Oe(e.charCodeAt(t));t++);return t}function Bn(e,t){if(t+=2,sn(zn(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&sn(zn(e,t));t++);const n=zn(e,t);yn(n)&&(t+=Ra(e,t,n))}return t}function Vr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!cp(n)){if(Mt(n,zn(e,t+1))){t=Bn(e,t)-1;continue}break}}return t}function Yi(e,t){let n=e.charCodeAt(t);if(n!==43&&n!==45||(n=e.charCodeAt(t+=1)),Oe(n)&&(t=$s(e,t+1),n=e.charCodeAt(t)),n===46&&Oe(e.charCodeAt(t+1))&&(t+=2,t=$s(e,t)),Fn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),Oe(n)&&(t=$s(e,t+1+r+1))}return t}function Es(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}Mt(n,zn(e,t+1))&&(t=Bn(e,t))}return t}function fp(e){if(e.length===1&&!sn(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var dp=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"];const i0=16384;function Ai(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,i0)):e}const Il=10,s0=12,Ml=13;function Rl(e){const t=e.source,n=t.length,r=t.length>0?up(t.charCodeAt(0)):0,i=Ai(e.lines,n),s=Ai(e.columns,n);let a=e.startLine,l=e.startColumn;for(let c=r;c<n;c++){const o=t.charCodeAt(c);i[c]=a,s[c]=l++,(o===Il||o===Ml||o===s0)&&(o===Ml&&c+1<n&&t.charCodeAt(c+1)===Il&&(c++,i[c]=a,s[c]=l),a++,l=1)}i[n]=a,s[n]=l,e.lines=i,e.columns=s,e.computed=!0}let a0=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(t,n=0,r=1,i=1){this.source=t,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(t,n){return this.computed||Rl(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||Rl(this),{source:r,start:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}};const it=16777215,Ot=24,o0=new Map([[q,D],[Z,D],[tt,St],[$e,ht]]);let l0=class{constructor(t,n){this.setSource(t,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(t="",n=(()=>{})){t=String(t||"");const r=t.length,i=Ai(this.offsetAndType,t.length+1),s=Ai(this.balance,t.length+1);let a=0,l=0,c=0,o=-1;for(this.offsetAndType=null,this.balance=null,n(t,((u,h,p)=>{switch(u){default:s[a]=r;break;case l:{let d=c⁢for(c=s[d],l=c>>Ot,s[a]=d,s[d++]=a;d<a;d++)s[d]===r&&(s[d]=a);break}case Z:case q:case tt:case $e:s[a]=c,l=o0.get(u),c=l<<Ot|a;break}i[a++]=u<<Ot|p,o===-1&&(o=h)})),i[a]=en<<Ot|r,s[a]=r,s[r]=r;c!==0;){const u=c⁢c=s[u],s[u]=r}this.source=t,this.firstCharOffset=o===-1?0:o,this.tokenCount=a,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t]>>Ot:en}lookupTypeNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Ot;if(r!==fe&&r!==_e&&t--===0)return r}return en}lookupOffset(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t-1]&it:this.source.length}lookupOffsetNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Ot;if(r!==fe&&r!==_e&&t--===0)return n-this.tokenIndex}return en}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?Lr(this.source,this.offsetAndType[t-1]&it,this.offsetAndType[t]&it,n):!1}getTokenStart(t){return t===this.tokenIndex?this.tokenStart:t>0?t<this.tokenCount?this.offsetAndType[t-1]&it:this.offsetAndType[this.tokenCount]&
16it:this.firstCharOffset}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBalanceEdge(t){return this.balance[this.tokenIndex]<t}isDelim(t,n){return n?this.lookupType(n)===H&&this.source.charCodeAt(this.lookupOffset(n))===t:this.tokenType===H&&this.source.charCodeAt(this.tokenStart)===t}skip(t){let n=this.tokenIndex+t;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&it,n=this.offsetAndType[n],this.tokenType=n>>Ot,this.tokenEnd=n&it):(this.tokenIndex=this.tokenCount,this.next())}next(){let t=this.tokenIndex+1;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.tokenEnd,t=this.offsetAndType[t],this.tokenType=t>>Ot,this.tokenEnd=t&it):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=en,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===fe||this.tokenType===_e;)this.next()}skipUntilBalanced(t,n){let r=t,i,s;e:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<t)break e;switch(s=r>0?this.offsetAndType[r-1]&it:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:r++;break e;default:this.balance[i]===r&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(t){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],a=s&it,l=s>>Ot;r=a,t(l,i,a,n)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken(((n,r,i,s)=>{t[s]={idx:s,type:dp[n],chunk:this.source.substring(r,i),balance:this.balance[s]}})),t}};function Xi(e,t){function n(h){return h<l?e.charCodeAt(h):0}function r(){if(o=Yi(e,o),ci(n(o),n(o+1),n(o+2))){u=B,o=Vr(e,o);return}if(n(o)===37){u=he,o++;return}u=z}function i(){const h=o;if(o=Vr(e,o),Lr(e,h,o,"url")&&n(o)===40){if(o=Br(e,o+1),n(o)===34||n(o)===39){u=q,o=h+4;return}a();return}if(n(o)===40){u=q,o++;return}u=P}function s(h){for(h||(h=n(o++)),u=Et;o<e.length;o++){const p=e.charCodeAt(o);switch(As(p)){case h:o++;return;case ui:if(Ci(p)){o+=Ra(e,o,p),u=Hi;return}break;case 92:if(o===e.length-1)break;const d=n(o+1);Ci(d)?o+=Ra(e,o+1,d):Mt(p,d)&&(o=Bn(e,o)-1);break}}}function a(){for(u=Ie,o=Br(e,o);o<e.length;o++){const h=e.charCodeAt(o);switch(As(h)){case 41:o++;return;case ui:if(o=Br(e,o),n(o)===41||o>=e.length){o<e.length&&o++;return}o=Es(e,o),u=Ve;return;case 34:case 39:case 40:case pp:o=Es(e,o),u=Ve;return;case 92:if(Mt(h,n(o+1))){o=Bn(e,o)-1;break}o=Es(e,o),u=Ve;return}}}e=String(e||"");const l=e.length;let c=up(n(0)),o=c,u;for(;o<l;){const h=e.charCodeAt(o);switch(As(h)){case ui:u=fe,o=Br(e,o+1);break;case 34:s();break;case 35:cp(n(o+1))||Mt(n(o+1),n(o+2))?(u=oe,o=Vr(e,o+1)):(u=H,o++);break;case 39:s();break;case 40:u=Z,o++;break;case 41:u=D,o++;break;case 43:Cs(h,n(o+1),n(o+2))?r():(u=H,o++);break;case 44:u=Ke,o++;break;case 45:Cs(h,n(o+1),n(o+2))?r():n(o+1)===45&&n(o+2)===62?(u=We,o+=3):ci(h,n(o+1),n(o+2))?i():(u=H,o++);break;case 46:Cs(h,n(o+1),n(o+2))?r():(u=H,o++);break;case 47:n(o+1)===42?(u=_e,o=e.indexOf("*/",o+2),o=o===-1?e.length:o+2):(u=H,o++);break;case 58:u=Re,o++;break;case 59:u=De,o++;break;case 60:n(o+1)===33&&n(o+2)===45&&n(o+3)===45?(u=Fr,o+=4):(u=H,o++);break;case 64:ci(n(o+1),n(o+2),n(o+3))?(u=ye,o=Vr(e,o+1)):(u=H,o++);break;case 91:u=tt,o++;break;case 92:Mt(h,n(o+1))?i():(u=H,o++);break;case 93:u=St,o++;break;case 123:u=$e,o++;break;case 125:u=ht,o++;break;case hp:r();break;case _o:i();break;default:u=H,o++}t(u,c,c=o)}}let xn=null,Bt=class gt{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return gt.createItem(t)}allocateCursor(t,n){let r;return xn!==null?(r=xn,xn=xn.cursor,r.prev=t,r.next=n,r.cursor=this.cursor):r={prev:t,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:t}=this;this.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=xn,xn=t}
16updateCursors(t,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===t&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let t=this.head;t!==null;t=t.next)yield t.data}get size(){let t=0;for(let n=this.head;n!==null;n=n.next)t++;return t}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const i=gt.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(t,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,t.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(t,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,t.call(n,i.data,i,this)}this.releaseCursor()}reduce(t,n,r=this){let i=this.allocateCursor(null,this.head),s=n,a;for(;i.next!==null;)a=i.next,i.next=a.next,s=t.call(r,s,a.data,a,this);return this.releaseCursor(),s}reduceRight(t,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,a;for(;i.prev!==null;)a=i.prev,i.prev=a.prev,s=t.call(r,s,a.data,a,this);return this.releaseCursor(),s}some(t,n=this){for(let r=this.head;r!==null;r=r.next)if(t.call(n,r.data,r,this))return!0;return!1}map(t,n=this){const r=new gt;for(let i=this.head;i!==null;i=i.next)r.appendData(t.call(n,i.data,i,this));return r}filter(t,n=this){const r=new gt;for(let i=this.head;i!==null;i=i.next)t.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(null,t);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(t,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new gt;for(let n of this)t.appendData(n);return t}prepend(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this}prependData(t){return this.prepend(gt.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert(gt.createItem(t))}insert(t,n=null){if(n!==null)if(this.updateCursors(n.prev,t,n,t),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=t,n.prev=t,t.next=n,this.updateCursors(null,t)}else n.prev.next=t,t.prev=n.prev,n.prev=t,t.next=n;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this}insertData(t,n){return this.insert(gt.createItem(t),n)}remove(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t}push(t){this.insert(gt.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend(gt.createItem(t))}shift(){return this.head!==null?this.remove(this.head):null}prependList(t){return this.insertList(t,this.head)}appendList(t){return this.insertList(t)}insertList(t,n){return t.head===null?this:(n!=null?(this.updateCursors(n.prev,t.tail,n,t.head),n.prev!==null?(n.prev.next=t.head,t.head.prev=n.prev):this.head=t.head,n.prev=t.tail,t.tail.next=n):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)}replace(t,n){"head"in n?this.insertList(n,t):this.insert(n,t),this.remove(t)}};function Qi(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t} 17`)}})}const Ts=100,Dl=60,zl=" ";function Fl({source:e,line:t,column:n,baseLine:r,baseColumn:i},s){function a(m,b){return o.slice(m,b).map(((S,w)=>String(m+w+1).padStart(p)+" |"+S)).join(` 18`)}const l=` 19`.repeat(Math.max(r-1,0)),c=" ".repeat(Math.max(i-1,0)),o=(l+c+e).split(/\r\n?|\n|\f/),u=Math.max(1,t-s)-1,h=Math.min(t+s,o.length+1),p=Math.max(4,String(h).length)+1;let d=0;n+=(zl.length-1)*(o[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Ts&&(d=n-Dl+3,n=Dl-2);for(let m=u;m<=h;m++)m>=0&&m<o.length&&(o[m]=o[m].replace(/\t/g,zl),o[m]=(d>0&&o[m].length>d?"â¦":"")+o[m].substr(d,Ts-2)+(o[m].length>d+Ts-1?"â¦":""));
19return[a(u,t),new Array(n+p+2).join("-")+"^",a(t,h)].filter(Boolean).join(` 20`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function jl(e,t,n,r,i,s=1,a=1){return Object.assign(Qi("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:c=>Fl({source:t,line:r,column:i,baseLine:s,baseColumn:a},isNaN(c)?0:c),get formattedMessage(){return`Parse error: ${e} 21`+Fl({source:t,line:r,column:i,baseLine:s,baseColumn:a},2)}})}function c0(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case _e:this.next();continue;case fe:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const ql=()=>{},u0=33,h0=35,Os=59,Ul=123,Gl=0;function p0(e){return function(){return this[e]()}}function _s(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function f0(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:_s(e.atrule),pseudo:_s(e.pseudo),node:_s(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=p0(r);break}return{config:t,...t,...t.node}}function d0(e){let t="",n="<unknown>",r=!1,i=ql,s=!1;const a=new a0,l=Object.assign(new l0,f0(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:c0,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:o=>o===Ul?1:0,consumeUntilLeftCurlyBracketOrSemicolon:o=>o===Ul||o===Os?1:0,consumeUntilExclamationMarkOrSemicolon:o=>o===u0||o===Os?1:0,consumeUntilSemicolonIncluded:o=>o===Os?2:0,createList:()=>new Bt,createSingleNodeList:o=>new Bt().appendData(o),getFirstListNode:o=>o&&o.first,getLastListNode:o=>o&&o.last,parseWithFallback(o,u){const h=this.tokenIndex;try{return o.call(this)}catch(p){if(s)throw p;this.skip(h-this.tokenIndex);const d=u.call(this);return s=!0,i(p,d),s=!1,d}},lookupNonWSType(o){let u;do if(u=this.lookupType(o++),u!==fe&&u!==_e)return u;while(u!==Gl);return Gl},charCodeAt:o=>o>=0&&o<t.length?t.charCodeAt(o):0,substring:(o,u)=>t.substring(o,u),substrToCursor(o){return this.source.substring(o,this.tokenStart)},cmpChar:(o,u)=>Fn(t,o,u),cmpStr:(o,u,h)=>Lr(t,o,u,h),consume(o){const u=this.tokenStart;return this.eat(o),this.substrToCursor(u)},consumeFunctionName(){const o=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(q),o},consumeNumber(o){const u=t.substring(this.tokenStart,Yi(t,this.tokenStart));return this.eat(o),u},eat(o){if(this.tokenType!==o){const u=dp[o].slice(0,-6).replace(/-/g," ").replace(/^./,(d=>d.toUpperCase()));let h=`${/[[\](){}]/.test(u)?`"${u}"`:u} is expected`,p=this.tokenStart;switch(o){case P:this.tokenType===q||this.tokenType===Ie?(p=this.tokenEnd-1,h="Identifier is expected but function found"):h="Identifier is expected";break;case oe:this.isDelim(h0)&&(this.next(),p++,h="Name is expected");break;case he:this.tokenType===z&&(p=this.tokenEnd,h="Percent sign is expected");break}this.error(h,p)}this.next()},eatIdent(o){this.tokenType===P&&this.lookupValue(0,o)!==!1||this.error(`Identifier "${o}" is expected`),this.next()},eatDelim(o){this.isDelim(o)||this.error(`Delim "${String.fromCharCode(o)}" is expected`),this.next()},getLocation(o,u){return r?a.getLocationRange(o,u,n):null},getLocationFromList(o){if(r){const u=this.getFirstListNode(o),h=this.getLastListNode(o);return a.getLocationRange(u!==null?u.loc.start.offset-a.startOffset:this.tokenStart,h!==null?h.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(o,u){const h=typeof u<"u"&&u<t.length?a.getLocation(u):this.eof?a.getLocation(r0(t,t.length-1)):a.getLocation(this.tokenStart);throw new jl(o||"Unexpected input",t,h.offset,h.line,h.column,a.startLine,a.startColumn)}});return Object.assign(function(o,u){t=o,u=u||{},l.setSource(t,Xi),a.setSource(t,u.offset,u.line,u.column),n=u.filename||"<unknown>",r=!!u.positions,i=typeof u.onParseError=="function"?u.onParseError:ql,s=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in u)||!!u.parseAtrulePrelude,l.parseRulePrelude=!("parseRulePrelude"in u)||!!u.parseRulePrelude,l.parseValue=!("parseValue"in u)||!!u.parseValue,l.parseCustomProperty="parseCustomProperty"in u&&!!u.parseCustomProperty;const{context:h="default",onComment:p}=u;if(!(h in l.context))throw new Error("Unknown context `"+h+"`");typeof p=="function"&&l.forEachToken(((m,b,S)=>{if(m===_e){const w=l.getLocation(b,S),C=Lr(t,S-2,S,"*/")?t.slice(b+2,S-2):t.slice(b+2,S);p(C,w)}}));const d=l.context[h].call(l,u);return l.eof||l.error(),d},{SyntaxError:jl,config:l.config})}var Lo={},Po={},Bl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
21+/".split("");Po.encode=function(e){if(0<=e&&e<Bl.length)return Bl[e];throw new TypeError("Must be between 0 and 63: "+e)};Po.decode=function(e){var t=65,n=90,r=97,i=122,s=48,a=57,l=43,c=47,o=26,u=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+o:s<=e&&e<=a?e-s+u:e==l?62:e==c?63:-1};var mp=Po,No=5,gp=1<<No,bp=gp-1,yp=gp;function m0(e){return e<0?1+(-e<<1):0+(e<<1)}function g0(e){var t=(e&1)===1,n=e>>1;return t?-n:n}Lo.encode=function(t){var n="",r,i=m0(t);do r=i&bp,i>>>=No,i>0&&(r|=yp),n+=mp.encode(r);while(i>0);return n};Lo.decode=function(t,n,r){var i=t.length,s=0,a=0,l,c;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=mp.decode(t.charCodeAt(n++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));l=!!(c&yp),c&=bp,s+=c<<a,a+=No}while(l);r.value=g0(s),r.rest=n};var Ki={};(function(e){function t(k,v,x){if(v in k)return k[v];if(arguments.length===3)return x;throw new Error('"'+v+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(k){var v=k.match(n);return v?{scheme:v[1],auth:v[2],host:v[3],port:v[4],path:v[5]}:null}e.urlParse=i;function s(k){var v="";return k.scheme&&(v+=k.scheme+":"),v+="//",k.auth&&(v+=k.auth+"@"),k.host&&(v+=k.host),k.port&&(v+=":"+k.port),k.path&&(v+=k.path),v}e.urlGenerate=s;var a=32;function l(k){var v=[];return function(x){for(var A=0;A<v.length;A++)if(v[A].input===x){var M=v[0];return v[0]=v[A],v[A]=M,v[0].result}var T=k(x);return v.unshift({input:x,result:T}),v.length>a&&v.pop(),T}}var c=l((function(v){var x=v,A=i(v);if(A){if(!A.path)return v;x=A.path}for(var M=e.isAbsolute(x),T=[],V=0,G=0;;){if(V=G,G=x.indexOf("/",V),G===-1){T.push(x.slice(V));break}for(T.push(x.slice(V,G));G<x.length&&x[G]==="/";)G++}for(var j,J=0,G=T.length-1;G>=0;G--)j=T[G],j==="."?T.splice(G,1):j===".."?J++:J>0&&(j===""?(T.splice(G+1,J),J=0):(T.splice(G,2),J--));return x=T.join("/"),x===""&&(x=M?"/":"."),A?(A.path=x,s(A)):x}));e.normalize=c;function o(k,v){k===""&&(k="."),v===""&&(v=".");var x=i(v),A=i(k);if(A&&(k=A.path||"/"),x&&!x.scheme)return A&&(x.scheme=A.scheme),s(x);if(x||v.match(r))return v;if(A&&!A.host&&!A.path)return A.host=v,s(A);var M=v.charAt(0)==="/"?v:c(k.replace(/\/+$/,"")+"/"+v);return A?(A.path=M,s(A)):M}e.join=o,e.isAbsolute=function(k){return k.charAt(0)==="/"||n.test(k)};function u(k,v){k===""&&(k="."),k=k.replace(/\/$/,"");for(var x=0;v.indexOf(k+"/")!==0;){var A=k.lastIndexOf("/");if(A<0||(k=k.slice(0,A),k.match(/^([^\/]+:\/)?\/*$/)))return v;++x}return Array(x+1).join("../")+v.substr(k.length+1)}e.relative=u;var h=(function(){var k=Object.create(null);return!("__proto__"in k)})();function p(k){return k}function d(k){return b(k)?"$"+k:k}e.toSetString=h?p:d;function m(k){return b(k)?k.slice(1):k}e.fromSetString=h?p:m;function b(k){if(!k)return!1;var v=k.length;if(v<9||k.charCodeAt(v-1)!==95||k.charCodeAt(v-2)!==95||k.charCodeAt(v-3)!==111||k.charCodeAt(v-4)!==116||k.charCodeAt(v-5)!==111||k.charCodeAt(v-6)!==114||k.charCodeAt(v-7)!==112||k.charCo
vendor: 4,386 bytes, line 21
21deAt(v-8)!==95||k.charCodeAt(v-9)!==95)return!1;for(var x=v-10;x>=0;x--)if(k.charCodeAt(x)!==36)return!1;return!0}function S(k,v,x){var A=E(k.source,v.source);return A!==0||(A=k.originalLine-v.originalLine,A!==0)||(A=k.originalColumn-v.originalColumn,A!==0||x)||(A=k.generatedColumn-v.generatedColumn,A!==0)||(A=k.generatedLine-v.generatedLine,A!==0)?A:E(k.name,v.name)}e.compareByOriginalPositions=S;function w(k,v,x){var A;return A=k.originalLine-v.originalLine,A!==0||(A=k.originalColumn-v.originalColumn,A!==0||x)||(A=k.generatedColumn-v.generatedColumn,A!==0)||(A=k.generatedLine-v.generatedLine,A!==0)?A:E(k.name,v.name)}e.compareByOriginalPositionsNoSource=w;function C(k,v,x){var A=k.generatedLine-v.generatedLine;return A!==0||(A=k.generatedColumn-v.generatedColumn,A!==0||x)||(A=E(k.source,v.source),A!==0)||(A=k.originalLine-v.originalLine,A!==0)||(A=k.originalColumn-v.originalColumn,A!==0)?A:E(k.name,v.name)}e.compareByGeneratedPositionsDeflated=C;function _(k,v,x){var A=k.generatedColumn-v.generatedColumn;return A!==0||x||(A=E(k.source,v.source),A!==0)||(A=k.originalLine-v.originalLine,A!==0)||(A=k.originalColumn-v.originalColumn,A!==0)?A:E(k.name,v.name)}e.compareByGeneratedPositionsDeflatedNoLine=_;function E(k,v){return k===v?0:k===null?1:v===null?-1:k>v?1:-1}function y(k,v){var x=k.generatedLine-v.generatedLine;return x!==0||(x=k.generatedColumn-v.generatedColumn,x!==0)||(x=E(k.source,v.source),x!==0)||(x=k.originalLine-v.originalLine,x!==0)||(x=k.originalColumn-v.originalColumn,x!==0)?x:E(k.name,v.name)}e.compareByGeneratedPositionsInflated=y;function L(k){return JSON.parse(k.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function N(k,v,x){if(v=v||"",k&&(k[k.length-1]!=="/"&&v[0]!=="/"&&(k+="/"),v=k+v),x){var A=i(x);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var M=A.path.lastIndexOf("/");M>=0&&(A.path=A.path.substring(0,M+1))}v=o(s(A),v)}return c(v)}e.computeSourceURL=N})(Ki);var kp={},Io=Ki,Mo=Object.prototype.hasOwnProperty,mn=typeof Map<"u";function Ht(){this._array=[],this._set=mn?new Map:Object.create(null)}Ht.fromArray=function(t,n){for(var r=new Ht,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};Ht.prototype.size=function(){return mn?this._set.size:Object.getOwnPropertyNames(this._set).length};Ht.prototype.add=function(t,n){var r=mn?t:Io.toSetString(t),i=mn?this.has(t):Mo.call(this._set,r),s=this._array.length;i&&!n||this._array.push(t),i||(mn?this._set.set(t,s):this._set[r]=s)};Ht.prototype.has=function(t){if(mn)return this._set.has(t);var n=Io.toSetString(t);return Mo.call(this._set,n)};Ht.prototype.indexOf=function(t){if(mn){var n=this._set.get(t);if(n>=0)return n}else{var r=Io.toSetString(t);if(Mo.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Ht.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Ht.prototype.toArray=function(){return this._array.slice()};kp.ArraySet=Ht;var vp={},wp=Ki;function b0(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||wp.compareByGeneratedPositionsInflated(e,t)<=0}function Zi(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Zi.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Zi.prototype.add=function(t){b0(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Zi.prototype.toArray=function(){return this._sorted||(this._array.sort(wp.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};vp.MappingList=Zi;var ar=Lo,ge=Ki,$i=kp.ArraySet,y0=vp.MappingList;function pt(e){e||(e={}),this._file=ge.getArg(e,"file",null),this._sourceRoot=ge.getArg(e,"sourceRoot",null),this._skipValidation=ge.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=ge.getArg(e,"ignoreInvalidMapping",!1),this._sources=new $i,this._names=new $i,this._mappings=new y0,this._sourcesContents=null}pt.prototype._version=3;pt.fromSourceMap=function(t,n){var r=t.sourceRoot,i=new pt(Object.assign(n||{},{file:t.file,sourceRoot:r}));return t.eachMapping((function(s){var a={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(a.source=s.source,r!=null&&(a.source=ge.relative(r,a.source)),a.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(a.name=s.name)),i.addMapping(a)}
21)),t.sources.forEach((function(s){var a=s;r!==null&&(a=ge.relative(r,s)),i._sources.has(a)||i._sources.add(a);var l=t.sourceContentFor(s);l!=null&&i.setSourceContent(s,l)})),i};pt.prototype.addMapping=function(t){var n=ge.getArg(t,"generated"),r=ge.getArg(t,"original",null),i=ge.getArg(t,"source",null),s=ge.getArg(t,"name",null);!this._skipValidation&&this._validateMapping(n,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))};pt.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=ge.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ge.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[ge.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};pt.prototype.applySourceMap=function(t,n,r){var i=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=ge.relative(s,i));var a=new $i,l=new $i;this._mappings.unsortedForEach((function(c){if(c.source===i&&c.originalLine!=null){var o=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});o.source!=null&&(c.source=o.source,r!=null&&(c.source=ge.join(r,c.source)),s!=null&&(c.source=ge.relative(s,c.source)),c.originalLine=o.line,c.originalColumn=o.column,o.name!=null&&(c.name=o.name))}var u=c.source;u==null||a.has(u)||a.add(u);var h=c.name;h==null||l.has(h)||l.add(h)}),this),this._sources=a,this._names=l,t.sources.forEach((function(c){var o=t.sourceContentFor(c);o!=null&&(r!=null&&(c=ge.join(r,c)),s!=null&&(c=ge.relative(s,c)),this.setSourceContent(c,o))}),this)};pt.prototype._validateMapping=function(t,n,r,i){if(n&&typeof n.line!="number"&&typeof n.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!r&&!i)&&!(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)){var s="Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};pt.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,a=0,l="",c,o,u,h,p=this._mappings.toArray(),d=0,m=p.length;d<m;d++){if(o=p[d],c="",o.generatedLine!==n)for(t=0;o.generatedLine!==n;)c+=";",n++;else if(d>0){if(!ge.compareByGeneratedPositionsInflated(o,p[d-1]))continue;c+=","}c+=ar.encode(o.generatedColumn-t),t=o.generatedColumn,o.source!=null&&(h=this._sources.indexOf(o.source),c+=ar.encode(h-a),a=h,c+=ar.encode(o.originalLine-1-i),i=o.originalLine-1,c+=ar.encode(o.originalColumn-r),r=o.originalColumn,o.name!=null&&(u=this._names.indexOf(o.name),c+=ar.encode(u-s),s=u)),l+=c}return l};pt.prototype._generateSourcesContent=function(t,n){return t.map((function(r){if(!this._sourcesContents)return null;n!=null&&(r=ge.relative(n,r));var i=ge.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null}),this)};pt.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};pt.prototype.toString=function(){return JSON.stringify(this.toJSON())};var xp=pt;const Vl=new Set(["Atrule","Selector","Declaration"]);function k0(e){const t=new xp,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let a=1,l=0,c=!1;const o=e.node;e.node=function(p){if(p.loc&&p.loc.start&&Vl.has(p.type)){const d=p.loc.start.line,m=p.loc.start.column-1;(r.line!==d||r.column!==m)&&(r.line=d,r.column=m,n.line=a,n.column=l,c&&(c=!1,n.line===i.line&&n.column===i.column||t.addMapping(s)),c=!0,t.addMapping({source:p.loc.source,original:r,generated:n}))}
21o.call(this,p),c&&Vl.has(p.type)&&(i.line=a,i.column=l)};const u=e.emit;e.emit=function(p,d,m){for(let b=0;b<p.length;b++)p.charCodeAt(b)===10?(a++,l=0):l++;u(p,d,m)};const h=e.result;return e.result=function(){return c&&t.addMapping(s),{css:h(),map:t}},e}const v0=43,w0=45,Ls=(e,t)=>{if(e===H&&(e=t),typeof e=="string"){const n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Sp=[[P,P],[P,q],[P,Ie],[P,Ve],[P,"-"],[P,z],[P,he],[P,B],[P,We],[P,Z],[ye,P],[ye,q],[ye,Ie],[ye,Ve],[ye,"-"],[ye,z],[ye,he],[ye,B],[ye,We],[oe,P],[oe,q],[oe,Ie],[oe,Ve],[oe,"-"],[oe,z],[oe,he],[oe,B],[oe,We],[B,P],[B,q],[B,Ie],[B,Ve],[B,"-"],[B,z],[B,he],[B,B],[B,We],["#",P],["#",q],["#",Ie],["#",Ve],["#","-"],["#",z],["#",he],["#",B],["#",We],["-",P],["-",q],["-",Ie],["-",Ve],["-","-"],["-",z],["-",he],["-",B],["-",We],[z,P],[z,q],[z,Ie],[z,Ve],[z,z],[z,he],[z,B],[z,"%"],[z,We],["@",P],["@",q],["@",Ie],["@",Ve],["@","-"],["@",We],[".",z],[".",he],[".",B],["+",z],["+",he],["+",B],["/","*"]],x0=Sp.concat([[P,oe],[B,oe],[oe,oe],[ye,Z],[ye,Et],[ye,Re],[he,he],[he,B],[he,q],[he,"-"],[D,P],[D,q],[D,he],[D,B],[D,oe],[D,"-"]]);function Cp(e){const t=new Set(e.map((([n,r])=>Ls(n)<<16|Ls(r))));return function(n,r,i){const s=Ls(r,i),a=i.charCodeAt(0);return(a===w0&&r!==P&&r!==q&&r!==We||a===v0?t.has(n<<16|a<<8):t.has(n<<16|s))&&this.emit(" ",fe,!0),s}}const S0=Cp(Sp),Ap=Cp(x0);var Wl=Object.freeze({__proto__:null,safe:Ap,spec:S0});const C0=92;function A0(e,t){if(typeof t=="function"){let n=null;e.children.forEach((r=>{n!==null&&t.call(this,n),this.node(r),n=r}));return}e.children.forEach(this.node,this)}function $0(e){Xi(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function E0(e){const t=new Map;for(let[n,r]of Object.entries(e.node))typeof(r.generate||r)=="function"&&t.set(n,r.generate||r);return function(n,r){let i="",s=0,a={node(c){if(!t.has(c.type))throw new Error("Unknown node type: "+c.type);t.get(c.type).call(l,c)},tokenBefore:Ap,token(c,o){s=this.tokenBefore(s,c,o),this.emit(o,c,!1),c===H&&o.charCodeAt(0)===C0&&this.emit(` 22`,fe,!0)},emit(c){i+=c},result:()=>i};r&&(typeof r.decorator=="function"&&(a=r.decorator(a)),r.sourceMap&&(a=k0(a)),r.mode in Wl&&(a.tokenBefore=Wl[r.mode]));const l={node:c=>a.node(c),children:A0,token:(c,o)=>a.token(c,o),tokenize:$0};return a.node(n),a.result()}}function T0(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof Bt)&&(n.children=new Bt().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof Bt&&(n.children=n.children.toArray())}}),t}}}const{hasOwnProperty:Ro}=Object.prototype,hr=function(){};function Hl(e){return typeof e=="function"?e:hr}function Yl(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function O0(e,t){const n=t.structure,r=[];for(const i in n){if(Ro.call(n,i)===!1)continue;let s=n[i];const a={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const l of s)l===null?a.nullable=!0:typeof l=="string"?a.type="node":Array.isArray(l)&&(a.type="list");a.type&&r.push(a)}return r.length?{context:t.walkContext,fields:r}:null}function _0(e){const t={};for(const n in e.node)if(Ro.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=O0(n,r)}return t}function Xl(e,t){const n=e.fields.slice(),r=e.context,i=typeof r=="string";return t&&n.reverse(),function(s,a,l,c){let o;i&&(o=a[r],a[r]=s);for(const u of n){const h=s[u.name];if(!u.nullable||h){if(u.type==="list"){if(t?h.reduceRight(c,!1):h.reduce(c,!1))return!0}else if(l(h))return!0}}i&&(a[r]=o)}}function Ql({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function L0(e){const t=_0(e),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const o in t)Ro.call(t,o)&&t[o]!==null&&(n[o]=Xl(t[o],!1),r[o]=Xl(t[o],!0));const a=Ql(n),l=Ql(r),c=function(o,u){function h(w,C,_){const E=p.call(S,w,C,_);return E===i?!0:E===s?!1:!!(m.hasOwnProperty(w.type)&&m[w.type](w,S,h,b)||d.call(S,w,C,_)===i)}let p=hr,d=hr,m=n,b=(w,C,_,E)=>w||h(C,_,E);const S={break:i,skip:s,root:o,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")p=u;else if(u&&(p=Hl(u.enter),d=Hl(u.leave),u.reverse&&(m=r),u.visit)){if(a.hasOwnProperty(u.visit))m=u.reverse?l[u.visit]:a[u.visit];else if(!t.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");p=Yl(p,u.visit),d=Yl(d,u.visit)}if(p===hr&&d===hr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(o)};return c.break=i,c.skip=s,c.find=function(o,u){let h=null;return c(o,(function(p,d,m){if(u.call(this,p,d,m))return h=p,i})),h},c.findLast=function(o,u){let h=null;return c(o,{reverse:!0,enter(p,d,m){if(u.call(this,p,d,m))return h=p,i}}),h},c.findAll=function(o,u){const h=[];return c(o,(function(p,d,m){u.call(this,p,d,m)&&h.push(p)})),h},c}function P0(e){return e}function N0(e){const{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function I0(e){switch(e.type){case"Range":return" ["+(e.min===null?"-â":e.min)+","+(e.max===null?"â":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}
22function M0(e,t,n,r){const i=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",s=e.terms.map((a=>Do(a,t,n,r))).join(i);return e.explicit||n?(r||s[0]===","?"[":"[ ")+s+(r?"]":" ]"):s}function Do(e,t,n,r){let i;switch(e.type){case"Group":i=M0(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Do(e.term,t,n,r)+t(N0(e),e);case"Type":i="<"+e.name+(e.opts?t(I0(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function zo(e,t){let n=P0,r=!1,i=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Do(e,n,r,i)}const Kl={offset:0,line:1,column:1};function R0(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,s=i!==t?i:null;let a=0,l=0,c=0,o="",u,h;for(let p=0;p<n.length;p++){const d=n[p].value;p===r&&(l=d.length,a=o.length),s!==null&&n[p].node===s&&(p<=r?c++:c=0),o+=d}return r===n.length||c>1?(u=Wr(s||t,"end")||pr(Kl,o),h=pr(u)):(u=Wr(s,"start")||pr(Wr(t,"start")||Kl,o.slice(0,a)),h=Wr(s,"end")||pr(u,o.substr(a,l))),{css:o,mismatchOffset:a,mismatchLength:l,start:u,end:h}}function Wr(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?pr(n):n:null}function pr({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const s=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=s.length-1,i.column=s.length===1?i.column+r.length:s.pop().length+1}return i}const or=function(e,t){const n=Qi("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},D0=function(e,t,n,r){const i=Qi("SyntaxMatchError",e),{css:s,mismatchOffset:a,mismatchLength:l,start:c,end:o}=R0(r,n);return i.rawMessage=e,i.syntax=t?zo(t):"<generic>",i.css=s,i.mismatchOffset=a,i.mismatchLength=l,i.message=e+` 23 syntax: `+i.syntax+` 24 value: `+(s||"<empty string>")+` 25 --------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,c),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:c,end:o},i},Hr=new Map,Sn=new Map,Ei=45,Ps=z0,Zl=F0;function Fo(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Ei&&e.charCodeAt(t+1)===Ei}function $p(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Ei&&e.charCodeAt(t+1)!==Ei){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function z0(e){if(Hr.has(e))return Hr.get(e);const t=e.toLowerCase();let n=Hr.get(t);if(n===void 0){const r=Fo(t,0),i=r?"":$p(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return Hr.set(e,n),n}function F0(e){if(Sn.has(e))return Sn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=Fo(t,n.length);if(!r&&(t=t.toLowerCase(),Sn.has(t))){const l=Sn.get(t);return Sn.set(e,l),l}const i=r?"":$p(t,n.length),s=t.substr(0,n.length+i.length),a=Object.freeze({basename:t.substr(s.length),name:t.substr(n.length),hack:n,vendor:i,prefix:s,custom:r});return Sn.set(e,a),a}const jo=["initial","inherit","unset","revert","revert-layer"],Pr=43,Lt=45,Ns=110,Cn=!0,j0=!1;function Da(e,t){return e!==null&&e.type===H&&e.value.charCodeAt(0)===t}function Ar(e,t,n){for(;e!==null&&(e.type===fe||e.type===_e);)e=n(++t);return t}function Zt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Pr||i===Lt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Oe(e.value.charCodeAt(t)))return 0;return r+1}function Is(e,t,n){let r=!1,i=Ar(e,t,n);if(e=n(i),e===null)return t;if(e.type!==z){if(!Da(e,Pr)&&!Da(e,Lt))return t;if(r=!0,i=Ar(n(++i),i,n),e=n(i),e===null||e.type!==z)return 0}if(!r){const s=e.value.charCodeAt(0);if(s!==Pr&&s!==Lt)return 0}return Zt(e,r?0:1,r,i)}function q0(e,t){let n=0;if(!e)return 0;if(e.type===z)return Zt(e,0,j0,n);if(e.type===P&&e.value.charCodeAt(0)===Lt){if(!Fn(e.value,1,Ns))return 0;switch(e.value.length){case 2:return Is(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Lt?0:(n=Ar(t(++n),n,t),e=t(n),Zt(e,0,Cn,n));default:return e.value.charCodeAt(2)!==Lt?0:Zt(e,3,Cn,n)}}else if(e.type===P||Da(e,Pr)&&t(n+1).type===P){if(e.type!==P&&(e=t(++n)),e===null||!Fn(e.value,0,Ns))return 0;switch(e.value.length){case 1:return Is(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Lt?0:(n=Ar(t(++n),n,t),e=t(n),Zt(e,0,Cn,n));default:return e.value.charCodeAt(1)!==Lt?0:Zt(e,2,Cn,n)}}else if(e.type===B){let r=e.value.charCodeAt(0),i=r===Pr||r===Lt?1:0,s=i;for(;s<e.value.length&&Oe(e.value.charCodeAt(s));s++);return s===i||!Fn(e.value,s,Ns)?0:s+1===e.value.length?Is(t(++n),n,t):e.value.charCodeAt(s+1)!==Lt?0:s+2===e.value.length?(n=Ar(t(++n),n,t),e=t(n),Zt(e,0,Cn,n)):Zt(e,s+2,Cn,n)}return 0}const U0=43,Ep=45,Tp=63,G0=117;
25function za(e,t){return e!==null&&e.type===H&&e.value.charCodeAt(0)===t}function B0(e,t){return e.value.charCodeAt(0)===t}function fr(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const s=e.value.charCodeAt(i);if(s===Ep&&n&&r!==0)return fr(e,t+r+1,!1),6;if(!sn(s)||++r>6)return 0}return r}function Yr(e,t,n){if(!e)return 0;for(;za(n(t),Tp);){if(++e>6)return 0;t++}return t}function V0(e,t){let n=0;if(e===null||e.type!==P||!Fn(e.value,0,G0)||(e=t(++n),e===null))return 0;if(za(e,U0))return e=t(++n),e===null?0:e.type===P?Yr(fr(e,0,!0),++n,t):za(e,Tp)?Yr(1,++n,t):0;if(e.type===z){const r=fr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===B||e.type===z?!B0(e,Ep)||!fr(e,1,!1)?0:n+1:Yr(r,n,t))}return e.type===B?Yr(fr(e,1,!0),++n,t):0}const W0=["calc(","-moz-calc(","-webkit-calc("],qo=new Map([[q,D],[Z,D],[tt,St],[$e,ht]]);function vt(e,t){return t<e.length?e.charCodeAt(t):0}function Op(e,t){return Lr(e,0,e.length,t)}function _p(e,t){for(let n=0;n<t.length;n++)if(Op(e,t[n]))return!0;return!1}function Lp(e,t){return t!==e.length-2?!1:vt(e,t)===92&&Oe(vt(e,t+1))}function Ji(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 H0(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case ht:case D:case St:if(e.type!==n)break e;if(n=r.pop(),r.length===0){i++;break e}break;case q:case Z:case tt:case $e:r.push(n),n=qo.get(e.type);break}i++}while(e=t(i));return i}function ot(e){return function(t,n,r){return t===null?0:t.type===q&&_p(t.value,W0)?H0(t,n):e(t,n,r)}}function ae(e){return function(t){return t===null||t.type!==e?0:1}}function Y0(e){if(e===null||e.type!==P)return 0;const t=e.value.toLowerCase();return _p(t,jo)||Op(t,"default")?0:1}function Pp(e){return e===null||e.type!==P||vt(e.value,0)!==45||vt(e.value,1)!==45?0:1}function X0(e){return!Pp(e)||e.value==="--"?0:1}function Q0(e){if(e===null||e.type!==oe)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(!sn(vt(e.value,n)))return 0;return 1}function K0(e){return e===null||e.type!==oe||!ci(vt(e.value,1),vt(e.value,2),vt(e.value,3))?0:1}function Z0(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case Hi:case Ve:break e;case ht:case D:case St:if(e.type!==n)break e;n=r.pop();break;case De:if(n===0)break e;break;case H:if(n===0&&e.value==="!")break e;break;case q:case Z:case tt:case $e:r.push(n),n=qo.get(e.type);break}i++}while(e=t(i));return i}function J0(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case Hi:case Ve:break e;case ht:case D:case St:if(e.type!==n)break e;n=r.pop();break;case q:case Z:case tt:case $e:r.push(n),n=qo.get(e.type);break}i++}while(e=t(i));return i}function qt(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==B)return 0;const i=Yi(t.value,0);if(e!==null){const s=t.value.indexOf("\\",i),a=s!==-1&&Lp(t.value,s)?t.value.substring(i,s):t.value.substr(i);if(e.has(a.toLowerCase())===!1)return 0}return Ji(r,t.value,i)?0:1}}function ek(e,t,n){return e===null||e.type!==he||Ji(n,e.value,e.value.length-1)?0:1}function Np(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===z&&Number(t.value)===0?1:e(t,n,r)}}function tk(e,t,n){if(e===null)return 0;const r=Yi(e.value,0);return!(r===e.value.length)&&!Lp(e.value,r)||Ji(n,e.value,r)?0:1}function nk(e,t,n){if(e===null||e.type!==z)return 0;let r=vt(e.value,0)===43||vt(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!Oe(vt(e.value,r)))return 0;return Ji(n,e.value,r)?0:1}const rk={"ident-token":ae(P),"function-token":ae(q),"at-keyword-token":ae(ye),"hash-token":ae(oe),"string-token":ae(Et),"bad-string-token":ae(Hi),"url-token":ae(Ie),"bad-url-token":ae(Ve),"delim-token":ae(H),"number-token":ae(z),"percentage-token":ae(he),"dimension-token":ae(B),"whitespace-token":ae(fe),"CDO-token":ae(Fr),"CDC-token":ae(We),"colon-token":ae(Re),"semicolon-token":ae(De),"comma-token":ae(Ke),"[-token":ae(tt),"]-token":ae(St),"(-token":ae(Z),")-token":ae(D),"{-token":ae($e),"}-token":ae(ht)},ik={string:ae(Et),ident:ae(P),percentage:ot(ek),zero:Np(),number:ot(tk),integer:ot(nk),"custom-ident":Y0,"dashed-ident":Pp,"custom-property-name":X0,"hex-color":Q0,"id-selector":K0,"an-plus-b":q0,urange:V0,"declaration-value":Z0,"any-value":J0};function sk(e){const{angle:t,decibel:n,frequency:r,flex:i,length:s,resolution:a,semitones:l,time:c}=e||{};return{dimension:ot(qt(null)),angle:ot(qt(t)),decibel:ot(qt(n)),frequency:ot(qt(r)),flex:ot(qt(i)),length:ot(Np(qt(s))),resolution:ot
25(qt(a)),semitones:ot(qt(l)),time:ot(qt(c))}}function ak(e){return{...rk,...ik,...sk(e)}}const ok=["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"],lk=["deg","grad","rad","turn"],ck=["s","ms"],uk=["hz","khz"],hk=["dpi","dpcm","dppx","x"],pk=["fr"],fk=["db"],dk=["st"];var Jl=Object.freeze({__proto__:null,angle:lk,decibel:fk,flex:pk,frequency:uk,length:ok,resolution:hk,semitones:dk,time:ck});function mk(e,t,n){return Object.assign(Qi("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+` 26 `+t+` 27--`+new Array((n||t.length)+1).join("-")+"^"})}const gk=9,bk=10,yk=12,kk=13,vk=32;let wk=class{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)}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!==kk&&n!==bk&&n!==yk&&n!==vk&&n!==gk)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 mk(t,this.str,this.pos)}};const xk=9,Sk=10,Ck=12,Ak=13,$k=32,Ip=33,Uo=35,ec=38,Ti=39,Mp=40,Ek=41,Rp=42,Go=43,Bo=44,tc=45,Vo=60,Dp=62,Fa=63,Tk=64,es=91,Wo=93,Oi=123,nc=124,rc=125,ic=8734,Nr=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),sc={" ":1,"&&":2,"||":3,"|":4};function _i(e){return e.substringToPos(e.findWsEnd(e.pos))}function Vn(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||Nr[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Li(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Ok(e){const t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function ac(e){let t=null,n=null;return e.eat(Oi),e.skipWs(),t=Li(e),e.skipWs(),e.charCode()===Bo?(e.pos++,e.skipWs(),e.charCode()!==rc&&(n=Li(e),e.skipWs())):n=t,e.eat(rc),{min:Number(t),max:n?Number(n):0}}function _k(e){let t=null,n=!1;switch(e.charCode()){case Rp:e.pos++,t={min:0,max:0};break;case Go:e.pos++,t={min:1,max:0};break;case Fa:e.pos++,t={min:0,max:1};break;case Uo:e.pos++,n=!0,e.charCode()===Oi?t=ac(e):e.charCode()===Fa?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Oi:t=ac(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Wn(e,t){const n=_k(e);return n!==null?(n.term=t,e.charCode()===Uo&&e.charCodeAt(e.pos-1)===Go?Wn(e,n):n):t}function Ms(e){const t=e.peek();return t===""?null:{type:"Token",value:t}}function Lk(e){let t;return e.eat(Vo),e.eat(Ti),t=Vn(e),e.eat(Ti),e.eat(Dp),Wn(e,{type:"Property",name:t})}function Pk(e){let t=null,n=null,r=1;return e.eat(es),e.charCode()===tc&&(e.peek(),r=-1),r==-1&&e.charCode()===ic?e.peek():(t=r*Number(Li(e)),Nr[e.charCode()]!==0&&(t+=Vn(e))),_i(e),e.eat(Bo),_i(e),e.charCode()===ic?e.peek():(r=1,e.charCode()===tc&&(e.peek(),r=-1),n=r*Number(Li(e)),Nr[e.charCode()]!==0&&(n+=Vn(e))),e.eat(Wo),{type:"Range",min:t,max:n}}function Nk(e){let t,n=null;return e.eat(Vo),t=Vn(e),e.charCode()===Mp&&e.nextCharCode()===Ek&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===es&&(_i(e),n=Pk(e)),e.eat(Dp),Wn(e,{type:"Type",name:t,opts:n})}function Ik(e){const t=Vn(e);return e.charCode()===Mp?(e.pos++,{type:"Function",name:t}):Wn(e,{type:"Keyword",name:t})}function Mk(e,t){function n(i,s){return{type:"Group",terms:i,combinator:s,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((i,s)=>sc[i]-sc[s]));t.length>0;){r=t.shift();let i=0,s=0;for(;i<e.length;i++){const a=e[i];a.type==="Combinator"&&(a.value===r?(s===-1&&(s=i-1),e.splice(i,1),i--):(s!==-1&&i-s>1&&(e.splice(s,i-s,n(e.slice(s,i),r)),i=s+1),s=-1))}s!==-1&&t.length&&e.splice(s,i-s,n(e.slice(s,i),r))}return r}function zp(e){const t=[],n={};
27let r,i=null,s=e.pos;for(;r=Dk(e);)r.type!=="Spaces"&&(r.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[r.value]=!0):i!==null&&i.type!=="Combinator"&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,s=e.pos);return i!==null&&i.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:Mk(t,n)||" ",disallowEmpty:!1,explicit:!1}}function Rk(e){let t;return e.eat(es),t=zp(e),e.eat(Wo),t.explicit=!0,e.charCode()===Ip&&(e.pos++,t.disallowEmpty=!0),t}function Dk(e){let t=e.charCode();if(t<128&&Nr[t]===1)return Ik(e);switch(t){case Wo:break;case es:return Wn(e,Rk(e));case Vo:return e.nextCharCode()===Ti?Lk(e):Nk(e);case nc:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===nc?2:1))};case ec:return e.pos++,e.eat(ec),{type:"Combinator",value:"&&"};case Bo:return e.pos++,{type:"Comma"};case Ti:return Wn(e,{type:"String",value:Ok(e)});case $k:case xk:case Sk:case Ak:case Ck:return{type:"Spaces",value:_i(e)};case Tk:return t=e.nextCharCode(),t<128&&Nr[t]===1?(e.pos++,{type:"AtKeyword",name:Vn(e)}):Ms(e);case Rp:case Go:case Fa:case Uo:case Ip:break;case Oi:if(t=e.nextCharCode(),t<48||t>57)return Ms(e);break;default:return Ms(e)}}function Fp(e){const t=new wk(e),n=zp(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const dr=function(){};function oc(e){return typeof e=="function"?e:dr}function zk(e,t,n){function r(a){switch(i.call(n,a),a.type){case"Group":a.terms.forEach(r);break;case"Multiplier":r(a.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: "+a.type)}s.call(n,a)}let i=dr,s=dr;if(typeof t=="function"?i=t:t&&(i=oc(t.enter),s=oc(t.leave)),i===dr&&s===dr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Fk={decorator(e){const t=[];let n=null;return{...e,node(r){const i=n;n=r,e.node.call(this,r),n=i},emit(r,i,s){t.push({type:i,value:r,node:s?null:n})},result:()=>t}}};function jk(e){const t=[];return Xi(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}function qk(e,t){return typeof e=="string"?jk(e):t.generate(e,Fk)}const ee={type:"Match"},ne={type:"Mismatch"},Ho={type:"DisallowEmpty"},Uk=40,Gk=41;function Pe(e,t,n){return t===ee&&n===ne||e===ee&&t===ee&&n===ee?e:(e.type==="If"&&e.else===ne&&t===ee&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function jp(e){return e.length>2&&e.charCodeAt(e.length-2)===Uk&&e.charCodeAt(e.length-1)===Gk}function lc(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&jp(e.name)}function ja(e,t,n){switch(e){case" ":{let r=ee;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Pe(s,r,ne)}return r}case"|":{let r=ne,i=null;for(let s=t.length-1;s>=0;s--){let a=t[s];if(lc(a)&&(i===null&&s>0&&lc(t[s-1])&&(i=Object.create(null),r=Pe({type:"Enum",map:i},ee,r)),i!==null)){const l=(jp(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(l in i)){i[l]=a;continue}}i=null,r=Pe(a,ee,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=ne;for(let i=t.length-1;i>=0;i--){const s=t[i];let a;a=t.length>1?ja(e,t.filter((function(l){return l!==s})),!1):ee,r=Pe(s,a,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?ee:ne;for(let i=t.length-1;i>=0;i--){const s=t[i];let a;a=t.length>1?ja(e,t.filter((function(l){return l!==s})),!0):ee,r=Pe(s,a,r)}return r}}}function Bk(e){let t=ee,n=Yo(e.term);if(e.max===0)n=Pe(n,Ho,ne),t=Pe(n,null,ne),t.then=Pe(ee,ee,t),e.comma&&(t.then.else=Pe({type:"Comma",syntax:e},t,ne));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ee&&(t=Pe({type:"Comma",syntax:e},t,ne)),t=Pe(n,Pe(ee,ee,t),ne);if(e.min===0)t=Pe(ee,ee,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==ee&&(t=Pe({type:"Comma",syntax:e},t,ne)),t=Pe(n,t,ne);return t}function Yo(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=ja(e.combinator,e.terms.map(Yo),!1);return e.disallowEmpty&&(t=Pe(t,Ho,ne)),t}case"Multiplier":return Bk(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};
27case"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 Xr(e,t){return typeof e=="string"&&(e=Fp(e)),{type:"MatchGraph",match:Yo(e),syntax:t||null,source:e}}const{hasOwnProperty:cc}=Object.prototype,Vk=0,Wk=1,qa=2,qp=3,uc="Match",Hk="Mismatch",Yk="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",hc=15e3;function Xk(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Rs(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function Qk(e){return e.type!==H?!1:e.value!=="?"}function pc(e){return e===null?!0:e.type===Ke||e.type===q||e.type===Z||e.type===tt||e.type===$e||Qk(e)}function fc(e){return e===null?!0:e.type===D||e.type===St||e.type===ht||e.type===H&&e.value==="/"}function Kk(e,t,n){function r(){do C++,w=C<e.length?e[C]:null;while(w!==null&&(w.type===fe||w.type===_e))}function i(y){const L=C+y;return L<e.length?e[L]:null}function s(y,L){return{nextState:y,matchStack:E,syntaxStack:h,thenStack:p,tokenIndex:C,prev:L}}function a(y){p={nextState:y,matchStack:E,syntaxStack:h,prev:p}}function l(y){d=s(y,d)}function c(){E={type:Wk,syntax:t.syntax,token:w,prev:E},r(),m=null,C>_&&(_=C)}function o(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},E={type:qa,syntax:t.syntax,token:E.token,prev:E}}function u(){E=E.type===qa?E.prev:{type:qp,syntax:h.syntax,token:E.token,prev:E},h=h.prev}let h=null,p=null,d=null,m=null,b=0,S=null,w=null,C=-1,_=0,E={type:Vk,syntax:null,token:null,prev:null};for(r();S===null&&++b<hc;)switch(t.type){case"Match":if(p===null){if(w!==null&&(C!==e.length-1||w.value!=="\\0"&&w.value!=="\\9")){t=ne;break}S=uc;break}if(t=p.nextState,t===Ho){if(p.matchStack===E){t=ne;break}t=ee}for(;p.syntaxStack!==h;)u();p=p.prev;break;case"Mismatch":if(m!==null&&m!==!1)(d===null||C>d.tokenIndex)&&(d=m,m=!1);else if(d===null){S=Hk;break}t=d.nextState,p=d.thenStack,h=d.syntaxStack,E=d.matchStack,C=d.tokenIndex,w=C<e.length?e[C]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==ne&&l(t.else),t.then!==ee&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const N=t.syntax.terms;if(t.index===N.length){if(t.mask===0||t.syntax.all){t=ne;break}t=ee;break}if(t.mask===(1<<N.length)-1){t=ee;break}for(;t.index<N.length;t.index++){const k=1<<t.index;if((t.mask&k)===0){l(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|k}),t=N[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(w!==null){let N=w.value.toLowerCase();if(N.indexOf("\\")!==-1&&(N=N.replace(/\\[09].*$/,"")),cc.call(t.map,N)){t=t.map[N];break}}t=ne;break;case"Generic":{const N=h!==null?h.opts:null,k=C+Math.floor(t.fn(w,i,N));if(!isNaN(k)&&k>C){for(;C<k;)c();t=ee}else t=ne;break}case"Type":case"Property":{const N=t.type==="Type"?"types":"properties",k=cc.call(n,N)?n[N][t.n
27ame]:null;if(!k||!k.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(m!==!1&&w!==null&&t.type==="Type"&&(t.name==="custom-ident"&&w.type===P||t.name==="length"&&w.value==="0")){m===null&&(m=s(t,d)),t=ne;break}o(),t=k.matchRef||k.match;break}case"Keyword":{const N=t.name;if(w!==null){let k=w.value;if(k.indexOf("\\")!==-1&&(k=k.replace(/\\[09].*$/,"")),Rs(k,N)){c(),t=ee;break}}t=ne;break}case"AtKeyword":case"Function":if(w!==null&&Rs(w.value,t.name)){c(),t=ee;break}t=ne;break;case"Token":if(w!==null&&w.value===t.value){c(),t=ee;break}t=ne;break;case"Comma":w!==null&&w.type===Ke?pc(E.token)?t=ne:(c(),t=fc(w)?ne:ee):t=pc(E.token)||fc(w)?ee:ne;break;case"String":let y="",L=C;for(;L<e.length&&y.length<t.value.length;L++)y+=e[L].value;if(Rs(y,t.value)){for(;C<L;)c();t=ee}else t=ne;break;default:throw new Error("Unknown node type: "+t.type)}switch(S){case null:console.warn("[csstree-match] BREAK after "+hc+" iterations"),S=Yk,E=null;break;case uc:for(;h!==null;)u();break;default:E=null}return{tokens:e,reason:S,iterations:b,match:E,longestMatch:_}}function dc(e,t,n){const r=Kk(e,t,n||{});if(r.match===null)return r;let i=r.match,s=r.match={syntax:t.syntax||null,match:[]};const a=[s];for(i=Xk(i).prev;i!==null;){switch(i.type){case qa:s.match.push(s={syntax:i.syntax,match:[]}),a.push(s);break;case qp:a.pop(),s=a[a.length-1];break;default:s.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function Up(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function n(i){if(Array.isArray(i.match)){for(let s=0;s<i.match.length;s++)if(n(i.match[s]))return t(i.syntax)&&r.unshift(i.syntax),!0}
27else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function Zk(e,t){return Xo(this,e,(n=>n.type==="Type"&&n.name===t))}function Jk(e,t){return Xo(this,e,(n=>n.type==="Property"&&n.name===t))}function ev(e){return Xo(this,e,(t=>t.type==="Keyword"))}function Xo(e,t,n){const r=Up.call(e,t);return r===null?!1:r.some(n)}var tv=Object.freeze({__proto__:null,getTrace:Up,isKeyword:ev,isProperty:Jk,isType:Zk});function Gp(e){return"node"in e?e.node:Gp(e.match[0])}function Bp(e){return"node"in e?e.node:Bp(e.match[e.match.length-1])}function mc(e,t,n,r,i){function s(l){if(l.syntax!==null&&l.syntax.type===r&&l.syntax.name===i){const c=Gp(l),o=Bp(l);e.syntax.walk(t,(function(u,h,p){if(u===c){const d=new Bt;do{if(d.appendData(h.data),h.data===o)break;h=h.next}while(h!==null);a.push({parent:p,nodes:d})}}))}Array.isArray(l.match)&&l.match.forEach(s)}const a=[];return n.matched!==null&&s(n.matched),a}const{hasOwnProperty:$r}=Object.prototype;function Ds(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function gc(e){return!!e&&Ds(e.offset)&&Ds(e.line)&&Ds(e.column)}function nv(e,t){return function(r,i){if(!r||r.constructor!==Object)return i(r,"Type of node should be an Object");for(let s in r){let a=!0;if($r.call(r,s)!==!1){if(s==="type")r.type!==e&&i(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(s==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")s+=".source";else if(gc(r.loc.start)){if(gc(r.loc.end))continue;s+=".end"}else s+=".start";a=!1}else if(t.hasOwnProperty(s)){a=!1;for(let l=0;!a&&l<t[s].length;l++){const c=t[s][l];switch(c){case String:a=typeof r[s]=="string";break;case Boolean:a=typeof r[s]=="boolean";break;case null:a=r[s]===null;break;default:typeof c=="string"?a=r[s]&&r[s].type===c:Array.isArray(c)&&(a=r[s]instanceof Bt)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");a||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)$r.call(t,s)&&$r.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function Vp(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i===String||i===Boolean)n.push(i.name.toLowerCase());else if(i===null)n.push("null");else if(typeof i=="string")n.push(i);else{if(!Array.isArray(i))throw new Error("Wrong value `"+i+"` in `"+t+"` structure definition");n.push("List<"+(Vp(i,t)||"any")+">")}}return n.join(" | ")}function rv(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if($r.call(n,s)===!1)continue;const a=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];i[s]=Vp(a,e+"."+s)}return{docs:i,check:nv(e,r)}}function iv(e){const t={};if(e.node){for(const n in e.node)if($r.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=rv(n,r)}}return t}function Ua(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:zo(e[i].syntax,{compact:t}));return r}function sv(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:zo(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&Ua(s.descriptors,t,n)};return r}function av(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function ov(e){const t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type==="Multiplier"&&t.comma===!0}function bt(e,t,n){return{matched:e,iterations:n,error:t,...tv}}function An(e,t,n,r){const i=qk(n,e.syntax);let s;return av(i)?bt(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=dc(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=dc(i,t.match,e),!s.match)?bt(null,new D0(s.reason,t.syntax,n,s),s.iterations):bt(s.match,null,s.iterations))}let bc=class{constructor(t,n,r){if(this.cssWideKeywords=jo,this.syntax=n,this.generic=!1,this.units={...Jl},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||iv(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const i of Object.keys(Jl))Array.isArray(t.units[i])&&(this.units[i]=t.units[i]);if(t.types)for(const[i,s]of Object.entries(t.types))this.addType_(i,s);if(t.generic){this.generic=!0;for(const[i,s]of Object.entries(ak(this.units)))this.addType_(i,s)}
27if(t.atrules)for(const[i,s]of Object.entries(t.atrules))this.addAtrule_(i,s);if(t.properties)for(const[i,s]of Object.entries(t.properties))this.addProperty_(i,s)}this.cssWideKeywordsSyntax=Xr(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(s,a){i.push({node:s,message:a})}const r=this.structure,i=[];return this.syntax.walk(t,(function(s){r.hasOwnProperty(s.type)?r[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")})),!!i.length&&i}createDescriptor(t,n,r,i=null){const s={type:n,name:r},a={type:n,name:r,parent:i,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null,matchRef:null};return typeof t=="function"?a.match=Xr(t,s):(typeof t=="string"?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:Fp(t)}),a.syntax}}):a.syntax=t,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:Xr(a.syntax,s)}),a.match}}),n==="Property"&&Object.defineProperty(a,"matchRef",{get(){const l=a.syntax,c=ov(l)?Xr({...l,terms:[l.terms[0].term]},s):null;return Object.defineProperty(a,"matchRef",{value:c}),c}})),a}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,i)=>(r[i]=this.createDescriptor(n.descriptors[i],"AtruleDescriptor",i,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 or("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t);if(!i.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(i.prelude&&!n&&!An(this,i.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 i=this.getAtrule(t),s=Ps(n);if(!i.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!i.descriptors[s.name]&&!i.descriptors[s.basename])return new or("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new or("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return bt(null,r);const i=this.getAtrule(t);return i.prelude?An(this,i.prelude,n||"",!1):bt(null,null)}matchAtruleDescriptor(t,n,r){const i=this.checkAtruleDescriptorName(t,n);if(i)return bt(null,i);const s=this.getAtrule(t),a=Ps(n);return An(this,s.descriptors[a.name]||s.descriptors[a.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?bt(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(Zl(t).custom)return bt(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?bt(null,r):An(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?An(this,r,n,!1):bt(null,new or("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?bt(null,new or("Bad syntax")):(typeof t!="string"&&t.match||(t=this.createDescriptor(t,"Type","anonymous")),An(this,t,n,!1))}findValueFragments(t,n,r,i){return mc(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return mc(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const i=[];return this.syntax.walk(t,{visit:"Declaration",enter:s=>{i.push.apply(i,this.findDeclarationValueFragments(s,n,r))}}),i}getAtrule(t,n=!0){const r=Ps(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=Zl(t);return(r.vendor&&n?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}
27getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(c,o){return o?`<${c}>`:`<'${c}'>`}function n(c,o,u,h){if(u.has(o))return u.get(o);u.set(o,!1),h.syntax!==null&&zk(h.syntax,(function(p){if(p.type!=="Type"&&p.type!=="Property")return;const d=p.type==="Type"?c.types:c.properties,m=p.type==="Type"?i:s;hasOwnProperty.call(d,p.name)?n(c,p.name,m,d[p.name])&&(r.push(`${t(o,u===i)} used broken syntax definition ${t(p.name,p.type==="Type")}`),u.set(o,!0)):(r.push(`${t(o,u===i)} used missed syntax definition ${t(p.name,p.type==="Type")}`),u.set(o,!0))}),this)}const r=[];let i=new Map,s=new Map;for(const c in this.types)n(this,c,i,this.types[c]);for(const c in this.properties)n(this,c,s,this.properties[c]);const a=[...i.keys()].filter((c=>i.get(c))),l=[...s.keys()].filter((c=>s.get(c)));return a.length||l.length?{errors:r,types:a,properties:l}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Ua(this.types,!n,t),properties:Ua(this.properties,!n,t),atrules:sv(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}};function zs(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function yc(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const s of Object.keys(i))t.includes(s)&&(n[r][s]=i[s])}return n}function Ga(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=!!i;break;case"cssWideKeywords":n[r]=e[r]?[...e[r],...i]:i||[];break;case"units":n[r]={...e[r]};for(const[s,a]of Object.entries(i))n[r][s]=Array.isArray(a)?a:[];break;case"atrules":n[r]={...e[r]};for(const[s,a]of Object.entries(i)){const l=n[r][s]||{},c=n[r][s]={prelude:l.prelude||null,descriptors:{...l.descriptors}};if(a){c.prelude=a.prelude?zs(c.prelude,a.prelude):c.prelude||null;for(const[o,u]of Object.entries(a.descriptors||{}))c.descriptors[o]=u?zs(c.descriptors[o],u):null;Object.keys(c.descriptors).length||(c.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[s,a]of Object.entries(i))n[r][s]=zs(n[r][s],a);break;case"scope":case"features":n[r]={...e[r]};for(const[s,a]of Object.entries(i))n[r][s]={...n[r][s],...a};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...yc(i,["parse"])};break;case"node":n[r]={...e[r],...yc(i,["name","structure","parse","generate","walkContext"])};break}return n}function Wp(e){const t=d0(e),n=L0(e),r=E0(e),{fromPlainObject:i,toPlainObject:s}=T0(n),a={lexer:null,createLexer:l=>new bc(l,a,a.lexer.structure),tokenize:Xi,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(l){const c=Ga({},e);return Wp(typeof l=="function"?l(c):Ga(c,l))}};return a.lexer=new bc({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var lv=e=>Wp(Ga({},e)),cv={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>
27]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<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
27( <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>
27#{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-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>
27]? )","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>","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>
27 [, <-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()>","system-color":"AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText","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-
27area":"[[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
vendor: 8,529 bytes, line 27
27"},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",
27"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-p
27age|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-we
27ight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|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>
27#","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>{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}
27","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>
27?]?","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"}
27,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}}};const Nt=43,Ze=45,hi=110,hn=!0,uv=!1;function pi(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===Nt||r===Ze)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Oe(this.charCodeAt(n))||this.error("Integer is expected",n)}function Mn(e){return pi.call(this,0,e)}function Xt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case hi:n="N is expected";break;case Ze:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Fs(){let e=0,t=0,n=this.tokenType;for(;n===fe||n===_e;)n=this.lookupType(++e);if(n!==z){if(!this.isDelim(Nt,e)&&!this.isDelim(Ze,e))return null;t=this.isDelim(Nt,e)?Nt:Ze;do n=this.lookupType(++e);while(n===fe||n===_e);n!==z&&(this.skip(e),Mn.call(this,hn))}return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Nt&&n!==Ze&&this.error("Number sign is expected")),Mn.
27call(this,t!==0),t===Ze?"-"+this.consume(z):this.consume(z)}const hv="AnPlusB",pv={a:[String,null],b:[String,null]};function Hp(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===z)Mn.call(this,uv),n=this.consume(z);else if(this.tokenType===P&&this.cmpChar(this.tokenStart,Ze))switch(t="-1",Xt.call(this,1,hi),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Fs.call(this);break;case 3:Xt.call(this,2,Ze),this.next(),this.skipSC(),Mn.call(this,hn),n="-"+this.consume(z);break;default:Xt.call(this,2,Ze),pi.call(this,3,hn),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===P||this.isDelim(Nt)&&this.lookupType(1)===P){let r=0;switch(t="1",this.isDelim(Nt)&&(r=1,this.next()),Xt.call(this,0,hi),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Fs.call(this);break;case 2:Xt.call(this,1,Ze),this.next(),this.skipSC(),Mn.call(this,hn),n="-"+this.consume(z);break;default:Xt.call(this,1,Ze),pi.call(this,2,hn),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===B){const r=this.charCodeAt(this.tokenStart),i=r===Nt||r===Ze;let s=this.tokenStart+i;for(;s<this.tokenEnd&&Oe(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Xt.call(this,s-this.tokenStart,hi),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=Fs.call(this)):(Xt.call(this,s-this.tokenStart+1,Ze),s+2===this.tokenEnd?(this.next(),this.skipSC(),Mn.call(this,hn),n="-"+this.consume(z)):(pi.call(this,s-this.tokenStart+2,hn),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Nt&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Nt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function fv(e){if(e.a){const t=(e.a==="+1"||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)}var dv=Object.freeze({__proto__:null,generate:fv,name:hv,parse:Hp,structure:pv});function kc(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function mv(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ht)return!0;if(t===$e||t===ye)return!1}return!1}const gv="Atrule",bv="atrule",yv={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Yp(e=!1){const t=this.tokenStart;let n,r,i=null,s=null;switch(this.eat(ye),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==$e&&this.tokenType!==De&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),kc):kc.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case De:this.next();break;case $e:s=hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?this.atrule[r].block.call(this,e):this.Block(mv.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:s}}function kv(e){this.token(ye,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(De,";")}var vv=Object.freeze({__proto__:null,generate:kv,name:gv,parse:Yp,structure:yv,walkContext:bv});const wv="AtrulePrelude",xv="atrulePrelude",Sv={children:[[]]};function Xp(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==$e&&this.tokenType!==De&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function Cv(e){this.children(e)}var Av=Object.freeze({__proto__:null,generate:Cv,name:wv,parse:Xp,structure:Sv,walkContext:xv});const $v=36,Qp=42,fi=61,Ev=94,Ba=124,Tv=126;function Ov(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(Qp)?(t=!0,this.next()):this.isDelim(Ba)||this.eat(P),this.isDelim(Ba)?this.charCodeAt(this.tokenStart+1)!==fi?(this.next(),this.eat(P)):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 _v(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==fi&&t!==Tv&&t!==Ev&&t!==$v&&t!==Qp&&t!==Ba&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==fi&&(this.isDelim(fi)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const Lv="AttributeSelector",Pv={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Kp(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(tt),this.skipSC(),t=Ov.call(this),this.skipSC(),this.tokenType!==St&&(this.tokenType!==P&&(n=_v.call(this),this.skipSC(),r=this.tokenType===Et?this.Str
27ing():this.Identifier(),this.skipSC()),this.tokenType===P&&(i=this.consume(P),this.skipSC())),this.eat(St),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function Nv(e){this.token(H,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(P,e.flags),this.token(H,"]")}var Iv=Object.freeze({__proto__:null,generate:Nv,name:Lv,parse:Kp,structure:Pv});const Mv=38;function Zp(){return this.Raw(null,!0)}function vc(){return this.parseWithFallback(this.Rule,Zp)}function wc(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Rv(){if(this.tokenType===De)return wc.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,wc);return this.tokenType===De&&this.next(),e}const Dv="Block",zv="block",Fv={children:[["Atrule","Rule","Declaration"]]};function Jp(e){const t=e?Rv:vc,n=this.tokenStart;let r=this.createList();this.eat($e);e:for(;!this.eof;)switch(this.tokenType){case ht:break e;case fe:case _e:this.next();break;case ye:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Zp));break;default:e&&this.isDelim(Mv)?r.push(vc.call(this)):r.push(t.call(this))}return this.eof||this.eat(ht),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function jv(e){this.token($e,"{"),this.children(e,(t=>{t.type==="Declaration"&&this.token(De,";")})),this.token(ht,"}")}var qv=Object.freeze({__proto__:null,generate:jv,name:Dv,parse:Jp,structure:Fv,walkContext:zv});const Uv="Brackets",Gv={children:[[]]};function ef(e,t){const n=this.tokenStart;let r=null;return this.eat(tt),r=e.call(this,t),this.eof||this.eat(St),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Bv(e){this.token(H,"["),this.children(e),this.token(H,"]")}var Vv=Object.freeze({__proto__:null,generate:Bv,name:Uv,parse:ef,structure:Gv});const Wv="CDC",Hv=[];function tf(){const e=this.tokenStart;return this.eat(We),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Yv(){this.token(We,"-->")}var Xv=Object.freeze({__proto__:null,generate:Yv,name:Wv,parse:tf,structure:Hv});const Qv="CDO",Kv=[];function nf(){const e=this.tokenStart;return this.eat(Fr),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Zv(){this.token(Fr,"<!--")}var Jv=Object.freeze({__proto__:null,generate:Zv,name:Qv,parse:nf,structure:Kv});const ew=46,tw="ClassSelector",nw={name:String};function rf(){return this.eatDelim(ew),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(P)}}function rw(e){this.token(H,"."),this.token(P,e.name)}var iw=Object.freeze({__proto__:null,generate:rw,name:tw,parse:rf,structure:nw});const sw=43,xc=47,aw=62,ow=126,lw="Combinator",cw={name:String};function sf(){const e=this.tokenStart;let t;switch(this.tokenType){case fe:t=" ";break;case H:switch(this.charCodeAt(this.tokenStart)){case aw:case sw:case ow:this.next();break;case xc:this.next(),this.eatIdent("deep"),this.eatDelim(xc);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function uw(e){this.tokenize(e.name)}var hw=Object.freeze({__proto__:null,generate:uw,name:lw,parse:sf,structure:cw});const pw=42,fw=47,dw="Comment",mw={value:String};function af(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(_e),t-e+2>=2&&this.charCodeAt(t-2)===pw&&this.charCodeAt(t-1)===fw&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function gw(e){this.token(_e,"/*"+e.value+"*/")}var bw=Object.freeze({__proto__:null,generate:gw,name:dw,parse:af,structure:mw});const yw=new Set([Re,D,en]),kw="Condition",vw={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Sc(e){return this.lookupTypeNonSC(1)===P&&yw.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const ww={media:Sc,container:Sc,supports(){return this.SupportsDeclaration()}};
27function of(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case _e:case fe:this.next();continue;case P:t.push(this.Identifier());break;case Z:{let n=this.parseWithFallback((()=>ww[e].call(this,e)),(()=>null));n||(n=this.parseWithFallback((()=>{this.eat(Z);const r=this.Condition(e);return this.eat(D),r}),(()=>this.GeneralEnclosed(e)))),t.push(n);break}case q:{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 xw(e){e.children.forEach((t=>{t.type==="Condition"?(this.token(Z,"("),this.node(t),this.token(D,")")):this.node(t)}))}var Sw=Object.freeze({__proto__:null,generate:xw,name:kw,parse:of,structure:vw});const lf=33,Cw=35,Aw=36,$w=38,Ew=42,Tw=43,Cc=47;function Ow(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function _w(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function Lw(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==De&&this.isDelim(lf)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const Pw="Declaration",Nw="declaration",Iw={important:[Boolean,String],property:String,value:["Value","Raw"]};function cf(){const e=this.tokenStart,t=this.tokenIndex,n=Rw.call(this),r=Fo(n),i=r?this.parseCustomProperty:this.parseValue,s=r?_w:Ow;let a=!1,l;this.skipSC(),this.eat(Re);const c=this.tokenIndex;if(r||this.skipSC(),l=i?this.parseWithFallback(Lw,s):s.call(this,this.tokenIndex),r&&l.type==="Value"&&l.children.isEmpty){for(let o=c-this.tokenIndex;o<=0;o++)if(this.lookupType(o)===fe){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(lf)&&(a=Dw.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==De&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:l}}function Mw(e){this.token(P,e.property),this.token(Re,":"),this.node(e.value),e.important&&(this.token(H,"!"),this.token(P,e.important===!0?"important":e.important))}function Rw(){const e=this.tokenStart;if(this.tokenType===H)switch(this.charCodeAt(this.tokenStart)){case Ew:case Aw:case Tw:case Cw:case $w:this.next();break;case Cc:this.next(),this.isDelim(Cc)&&this.next();break}return this.tokenType===oe?this.eat(oe):this.eat(P),this.substrToCursor(e)}function Dw(){this.eat(H),this.skipSC();const e=this.consume(P);return e==="important"||e}var zw=Object.freeze({__proto__:null,generate:Mw,name:Pw,parse:cf,structure:Iw,walkContext:Nw});const Fw=38;function js(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const jw="DeclarationList",qw={children:[["Declaration","Atrule","Rule"]]};
27function uf(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case fe:case _e:case De:this.next();break;case ye:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),js));break;default:this.isDelim(Fw)?e.push(this.parseWithFallback(this.Rule,js)):e.push(this.parseWithFallback(this.Declaration,js))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Uw(e){this.children(e,(t=>{t.type==="Declaration"&&this.token(De,";")}))}var Gw=Object.freeze({__proto__:null,generate:Uw,name:jw,parse:uf,structure:qw});const Bw="Dimension",Vw={value:String,unit:String};function hf(){const e=this.tokenStart,t=this.consumeNumber(B);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function Ww(e){this.token(B,e.value+e.unit)}var Hw=Object.freeze({__proto__:null,generate:Ww,name:Bw,parse:hf,structure:Vw});const Yw=47,Xw="Feature",Qw={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function pf(e){const t=this.tokenStart;let n,r=null;if(this.eat(Z),this.skipSC(),n=this.consume(P),this.skipSC(),this.tokenType!==D){switch(this.eat(Re),this.skipSC(),this.tokenType){case z:r=this.lookupNonWSType(1)===H?this.Ratio():this.Number();break;case B:r=this.Dimension();break;case P:r=this.Identifier();break;case q:r=this.parseWithFallback((()=>{const i=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Yw)&&this.error(),i}),(()=>this.Ratio()));break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(D),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function Kw(e){this.token(Z,"("),this.token(P,e.name),e.value!==null&&(this.token(Re,":"),this.node(e.value)),this.token(D,")")}var Zw=Object.freeze({__proto__:null,generate:Kw,name:Xw,parse:pf,structure:Qw});const Jw="FeatureFunction",ex={kind:String,feature:String,value:["Declaration","Selector"]};function tx(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function ff(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=tx.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback((()=>{const s=this.tokenIndex,a=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),a}),(()=>this.Raw(null,!1)));return this.eof||this.eat(D),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}}function nx(e){this.token(q,e.feature+"("),this.node(e.value),this.token(D,")")}var rx=Object.freeze({__proto__:null,generate:nx,name:Jw,parse:ff,structure:ex});const Ac=47,ix=60,$c=61,sx=62,ax="FeatureRange",ox={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 qs(){switch(this.skipSC(),this.tokenType){case z:return this.isDelim(Ac,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case B:return this.Dimension();case P:return this.Identifier();case q:return this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Ac)&&this.error(),e}),(()=>this.Ratio()));default:this.error("Number, dimension, ratio or identifier is expected")}}function Ec(e){if(this.skipSC(),this.isDelim(ix)||this.isDelim(sx)){const t=this.source[this.tokenStart];return this.next(),this.isDelim($c)?(this.next(),t+"="):t}if(this.isDelim($c))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function df(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Z);const n=qs.call(this),r=Ec.call(this,n.type==="Identifier"),i=qs.call(this);let s=null,a=null;return this.lookupNonWSType(0)!==D&&(s=Ec.call(this),a=qs.call(this)),this.skipSC(),this.eat(D),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:s,right:a}}function lx(e){this.token(Z,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(D,")")}var cx=Object.freeze({__proto__:null,generate:lx,name:ax,parse:df,structure:ox});const ux="Function",hx="function",px={name:String,children:[[]]};function mf(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(D),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function fx(e){this.token(q,e.name+"("),this.children(e),this.token(D,")")}var dx=Object.freeze({__proto__:null,generate:fx,name:ux,parse:mf,structure:px,walkContext:hx});const mx="GeneralEnclosed",gx={kind:String,function:[String,null],children:[[]]};function gf(e){const t=this.tokenStart;let n=null;this.tokenType===q?n=this.consumeFunctionName():this.eat(Z);const r=this.parseWithFallback((()=>{const i=this.tokenIndex,s=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),s}),(()=>this.createSingleNodeList(this.Raw(null,!1))));return this.eof||this.eat(D),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function bx(e){e.function?this.token(q,e.function+"("):this.token(Z,"("),this.children(e),this.token(D,")")}var yx=Object.freeze({__proto__:null,generate:bx,name:mx,parse:gf,structure:gx});const kx="XXX",vx="Hash",wx={value:String};function bf(){const e=this.tokenStart;return this.eat(oe),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function xx(e){this.token(oe,"#"+e.value)}var Sx=Object.freeze({__proto__:null,generate:xx,name:vx,parse:bf,structure:wx,xxx:kx});const Cx="Identifier",Ax={name:String};function yf(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(P)}}function $x(e){this.token(P,e.name)}var Ex=Object.freeze({__proto__:null,generate:$x,name:Cx,parse:yf,structure:Ax});const Tx="IdSelector",Ox={name:String};function kf(){const e=this.tokenStart;return this.eat(oe),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function _x(e){this.token(H,"#"+e.name)}
27var Lx=Object.freeze({__proto__:null,generate:_x,name:Tx,parse:kf,structure:Ox});const Px=46,Nx="Layer",Ix={name:String};function vf(){let e=this.consume(P);for(;this.isDelim(Px);)this.eat(H),e+="."+this.consume(P);return{type:"Layer",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:e}}function Mx(e){this.tokenize(e.name)}var Rx=Object.freeze({__proto__:null,generate:Mx,name:Nx,parse:vf,structure:Ix});const Dx="LayerList",zx={children:[["Layer"]]};function wf(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===Ke);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}}function Fx(e){this.children(e,(()=>this.token(Ke,",")))}var jx=Object.freeze({__proto__:null,generate:Fx,name:Dx,parse:wf,structure:zx});const qx="MediaQuery",Ux={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function xf(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===P&&this.lookupTypeNonSC(1)!==Z){const i=this.consume(P),s=i.toLowerCase();switch(s==="not"||s==="only"?(this.skipSC(),t=s,n=this.consume(P)):n=i,this.lookupTypeNonSC(0)){case P:this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break;case $e:case De:case Ke:case en:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case P:case Z:case q:r=this.Condition("media");break;case $e:case De:case en: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 Gx(e){e.mediaType?(e.modifier&&this.token(P,e.modifier),this.token(P,e.mediaType),e.condition&&(this.token(P,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)}var Bx=Object.freeze({__proto__:null,generate:Gx,name:qx,parse:xf,structure:Ux});const Vx="MediaQueryList",Wx={children:[["MediaQuery"]]};
27function Sf(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Ke);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function Hx(e){this.children(e,(()=>this.token(Ke,",")))}var Yx=Object.freeze({__proto__:null,generate:Hx,name:Vx,parse:Sf,structure:Wx});const Xx=38,Qx="NestingSelector",Kx={};function Cf(){const e=this.tokenStart;return this.eatDelim(Xx),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Zx(){this.token(H,"&")}var Jx=Object.freeze({__proto__:null,generate:Zx,name:Qx,parse:Cf,structure:Kx});const eS="Nth",tS={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Af(){this.skipSC();const e=this.tokenStart;let t=e,n=null,r;return r=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():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 nS(e){this.node(e.nth),e.selector!==null&&(this.token(P,"of"),this.node(e.selector))}var rS=Object.freeze({__proto__:null,generate:nS,name:eS,parse:Af,structure:tS});const iS="Number",sS={value:String};function $f(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(z)}}function aS(e){this.token(z,e.value)}var oS=Object.freeze({__proto__:null,generate:aS,name:iS,parse:$f,structure:sS});const lS="Operator",cS={value:String};function Ef(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function uS(e){this.tokenize(e.value)}var hS=Object.freeze({__proto__:null,generate:uS,name:lS,parse:Ef,structure:cS});const pS="Parentheses",fS={children:[[]]};function Tf(e,t){const n=this.tokenStart;let r=null;return this.eat(Z),r=e.call(this,t),this.eof||this.eat(D),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function dS(e){this.token(Z,"("),this.children(e),this.token(D,")")}var mS=Object.freeze({__proto__:null,generate:dS,name:pS,parse:Tf,structure:fS});const gS="Percentage",bS={value:String};function Of(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(he)}}function yS(e){this.token(he,e.value+"%")}var kS=Object.freeze({__proto__:null,generate:yS,name:gS,parse:Of,structure:bS});const vS="PseudoClassSelector",wS="function",xS={name:String,children:[["Raw"],null]};function _f(){const e=this.tokenStart;let t=null,n,r;return this.eat(Re),this.tokenType===q?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==D?t=this.createList(
27):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(D)):n=this.consume(P),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function SS(e){this.token(Re,":"),e.children===null?this.token(P,e.name):(this.token(q,e.name+"("),this.children(e),this.token(D,")"))}var CS=Object.freeze({__proto__:null,generate:SS,name:vS,parse:_f,structure:xS,walkContext:wS});const AS="PseudoElementSelector",$S="function",ES={name:String,children:[["Raw"],null]};function Lf(){const e=this.tokenStart;let t=null,n,r;return this.eat(Re),this.eat(Re),this.tokenType===q?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==D?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(D)):n=this.consume(P),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function TS(e){this.token(Re,":"),this.token(Re,":"),e.children===null?this.token(P,e.name):(this.token(q,e.name+"("),this.children(e),this.token(D,")"))}var OS=Object.freeze({__proto__:null,generate:TS,name:AS,parse:Lf,structure:ES,walkContext:$S});const Tc=47;function Oc(){switch(this.skipSC(),this.tokenType){case z:return this.Number();case q:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const _S="Ratio",LS={left:["Number","Function"],right:["Number","Function",null]};function Pf(){const e=this.tokenStart,t=Oc.call(this);let n=null;return this.skipSC(),this.isDelim(Tc)&&(this.eatDelim(Tc),n=Oc.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function PS(e){this.node(e.left),this.token(H,"/"),e.right?this.node(e.right):this.node(z,1)}var NS=Object.freeze({__proto__:null,generate:PS,name:_S,parse:Pf,structure:LS});function IS(){return this.tokenIndex>0&&this.lookupType(-1)===fe?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const MS="Raw",RS={value:String};function Nf(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?IS.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function DS(e){this.tokenize(e.value)}var zS=Object.freeze({__proto__:null,generate:DS,name:MS,parse:Nf,structure:RS});function _c(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function FS(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==$e&&this.error(),e}const jS="Rule",qS="rule",US={prelude:["SelectorList","Raw"],block:["Block"]};function If(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(FS,_c):_c.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function GS(e){this.node(e.prelude),this.node(e.block)}var BS=Object.freeze({__proto__:null,generate:GS,name:jS,parse:If,structure:US,walkContext:qS});const VS="Scope",WS={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function Mf(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===Z&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(D)),this.lookupNonWSType(0)===P&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(Z),this.skipSC(),t=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(D)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function HS(e){e.root&&(this.token(Z,"("),this.node(e.root),this.token(D,")")),e.limit&&(this.token(P,"to"),this.token(Z,"("),this.node(e.limit),this.token(D,")"))}var YS=Object.freeze({__proto__:null,generate:HS,name:VS,parse:Mf,structure:WS});const XS="Selector",QS={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Comb
27inator"]]};function Rf(){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 KS(e){this.children(e)}var ZS=Object.freeze({__proto__:null,generate:KS,name:XS,parse:Rf,structure:QS});const JS="SelectorList",e1="selector",t1={children:[["Selector","Raw"]]};function Df(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===Ke){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function n1(e){this.children(e,(()=>this.token(Ke,",")))}var r1=Object.freeze({__proto__:null,generate:n1,name:JS,parse:Df,structure:t1,walkContext:e1});const Va=92,zf=34,i1=39;function Ff(e){const t=e.length,n=e.charCodeAt(0),r=n===zf||n===i1?1:0,i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let a=r;a<=i;a++){let l=e.charCodeAt(a);if(l===Va){if(a===i){a!==t-1&&(s=e.substr(a+1));break}if(l=e.charCodeAt(++a),Mt(Va,l)){const c=a-1,o=Bn(e,c);a=o-1,s+=fp(e.substring(c+1,o))}else l===13&&e.charCodeAt(a+1)===10&&a++}else s+=e[a]}return s}function s1(e,t){const r=zf;let i="",s=!1;for(let a=0;a<e.length;a++){const l=e.charCodeAt(a);if(l===0){i+="�";continue}if(l<=31||l===127){i+="\\"+l.toString(16),s=!0;continue}l===r||l===Va?(i+="\\"+e.charAt(a),s=!1):(s&&(sn(l)||yn(l))&&(i+=" "),i+=e.charAt(a),s=!1)}return'"'+i+'"'}const a1="String",o1={value:String};function jf(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Ff(this.consume(Et))}}function l1(e){this.token(Et,s1(e.value))}var c1=Object.freeze({__proto__:null,generate:l1,name:a1,parse:jf,structure:o1});const u1=33;function Lc(){return this.Raw(null,!1)}const h1="StyleSheet",p1="stylesheet",f1={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};
27function qf(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case fe:this.next();continue;case _e:if(this.charCodeAt(this.tokenStart+2)!==u1){this.next();continue}n=this.Comment();break;case Fr:n=this.CDO();break;case We:n=this.CDC();break;case ye:n=this.parseWithFallback(this.Atrule,Lc);break;default:n=this.parseWithFallback(this.Rule,Lc)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function d1(e){this.children(e)}var m1=Object.freeze({__proto__:null,generate:d1,name:h1,parse:qf,structure:f1,walkContext:p1});const g1="SupportsDeclaration",b1={declaration:"Declaration"};function Uf(){const e=this.tokenStart;this.eat(Z),this.skipSC();const t=this.Declaration();return this.eof||this.eat(D),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}}function y1(e){this.token(Z,"("),this.node(e.declaration),this.token(D,")")}var k1=Object.freeze({__proto__:null,generate:y1,name:g1,parse:Uf,structure:b1});const v1=42,Pc=124;function Us(){this.tokenType!==P&&this.isDelim(v1)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const w1="TypeSelector",x1={name:String};function Gf(){const e=this.tokenStart;return this.isDelim(Pc)?(this.next(),Us.call(this)):(Us.call(this),this.isDelim(Pc)&&(this.next(),Us.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function S1(e){this.tokenize(e.name)}var C1=Object.freeze({__proto__:null,generate:S1,name:w1,parse:Gf,structure:x1});const Bf=43,Vf=45,Wa=63;function mr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===Vf&&t&&n!==0)return mr.call(this,e+n+1,!1),-1;sn(i)||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 Qr(e){let t=0;for(;this.isDelim(Wa);)++t>e&&this.error("Too many question marks"),this.next()}function A1(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Bf?"Plus sign":"Hyphen minus")+" is expected")}function $1(){let e=0;switch(this.tokenType){case z:if(e=mr.call(this,1,!0),this.isDelim(Wa)){Qr.call(this,6-e);break}if(this.tokenType===B||this.tokenType===z){A1.call(this,Vf),mr.call(this,1,!1);break}break;case B:e=mr.call(this,1,!0),e>0&&Qr.call(this,6-e);break;default:if(this.eatDelim(Bf),this.tokenType===P){e=mr.call(this,0,!0),e>0&&Qr.call(this,6-e);break}if(this.isDelim(Wa)){this.next(),Qr.call(this,5);break}this.error("Hex digit or question mark is expected")}}const E1="UnicodeRange",T1={value:String};function Wf(){const e=this.tokenStart;return this.eatIdent("u"),$1.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function O1(e){this.tokenize(e.value)}var _1=Object.freeze({__proto__:null,generate:O1,name:E1,parse:Wf,structure:T1});const L1=32,Ha=92,P1=34,N1=39,I1=40,Hf=41;function M1(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===Hf?t-2:t-1,i="";for(;n<r&&yn(e.charCodeAt(n));)n++;for(;n<r&&yn(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let a=e.charCodeAt(s);if(a===Ha){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),Mt(Ha,a)){const l=s-1,c=Bn(e,l);s=c-1,i+=fp(e.substring(l+1,c))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function R1(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),n=!0;continue}i===L1||i===Ha||i===P1||i===N1||i===I1||i===Hf?(t+="\\"+e.charAt(r),n=!1):(n&&sn(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const D1="Url",z1={value:String};function Yf(){const e=this.tokenStart;let t;switch(this.tokenType){case Ie:t=M1(this.consume(Ie));break;case q:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(q),this.skipSC(),t=Ff(this.consume(Et)),this.skipSC(),this.eof||this.eat(D);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function F1(e){this.token(Ie,R1(e.value))}var j1=Object.freeze({__proto__:null,generate:F1,name:D1,parse:Yf,structure:z1});const q1="Value",U1={children:[[]]};function Xf(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function G1(e){this.children(e)}var B1=Object.freeze({__proto__:null,generate:G1,name:q1,parse:Xf,structure:U1});const V1=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),W1="WhiteSpace",H1={value:String};function Qf(){return this.eat(fe),V1}function Y1(e){this.token(fe,e.value)}var X1=Object.freeze({__proto__:null,generate:Y1,name:W1,parse:Qf,structure:H1}),Kf=Object.freeze({__proto__:null,AnPlusB:dv,Atrule:vv,AtrulePrelude:Av,AttributeSelector:Iv,Block:qv,Brackets:Vv,CDC:Xv,CDO:Jv,ClassSelector:iw,Combinator:hw,Comment:bw,Condition:Sw,Declaration:zw,DeclarationList:Gw,Dimension:Hw,Feature:Zw,FeatureFunction:rx,FeatureRange:cx,Function:dx,GeneralEnclosed:yx,Hash:Sx,IdSelector:Lx,Identifier:Ex,Layer:Rx,LayerList:jx,MediaQuery:Bx,MediaQueryList:Yx,NestingSelector:Jx,Nth:rS,Number:oS,Operator:hS,Parentheses:mS,Percentage:kS,PseudoClassSelector:CS,PseudoElementSelector:OS,Ratio:NS,Raw:zS,Rule:BS,Scope:YS,Selector:ZS,SelectorList:r1,String:c1,StyleSheet:m1,SupportsDeclaration:k1,TypeSelector:C1,UnicodeRange:_1,Url:j1,Value:B1,WhiteSpace:X1}),Q1={generic:!0,cssWideKeywords:jo,...cv,node:Kf};const K1=35,Z1=42,Nc=43,J1=45,eC=47,tC=117;function Zf(e){switch(this.tokenType){case oe:return this.Hash();case Ke:return this.Operator();case Z:return this.Parentheses(this.readSequence,e.recognizer);case tt:return this.Brackets(this.readSequence,e.recognizer);
27case Et:return this.String();case B:return this.Dimension();case he:return this.Percentage();case z:return this.Number();case q:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Ie:return this.Url();case P:return this.cmpChar(this.tokenStart,tC)&&this.cmpChar(this.tokenStart+1,Nc)?this.UnicodeRange():this.Identifier();case H:{const t=this.charCodeAt(this.tokenStart);if(t===eC||t===Z1||t===Nc||t===J1)return this.Operator();t===K1&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var nC={getNode:Zf};const rC=35,iC=38,sC=42,aC=43,oC=47,Ic=46,lC=62,cC=124,uC=126;function hC(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function pC(){switch(this.tokenType){case tt:return this.AttributeSelector();case oe:return this.IdSelector();case Re:return this.lookupType(1)===Re?this.PseudoElementSelector():this.PseudoClassSelector();case P:return this.TypeSelector();case z:case he:return this.Percentage();case B:this.charCodeAt(this.tokenStart)===Ic&&this.error("Identifier is expected",this.tokenStart+1);break;case H:{switch(this.charCodeAt(this.tokenStart)){case aC:case lC:case uC:case oC:return this.Combinator();case Ic:return this.ClassSelector();case sC:case cC:return this.TypeSelector();case rC:return this.IdSelector();case iC:return this.NestingSelector()}break}}}var fC={onWhiteSpace:hC,getNode:pC};function dC(){return this.createSingleNodeList(this.Raw(null,!1))}
27function mC(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===Ke){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)===fe){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function Mc(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}var gC={getNode:Zf,onWhiteSpace(e,t){Mc(e)&&(e.value=" "+e.value),Mc(t.last)&&(t.last.value+=" ")},expression:dC,var:mC},bC=Object.freeze({__proto__:null,AtrulePrelude:nC,Selector:fC,Value:gC});const yC=new Set(["none","and","not","or"]);var kC={parse:{prelude(){const e=this.createList();if(this.tokenType===P){const t=this.substring(this.tokenStart,this.tokenEnd);yC.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},vC={parse:{prelude:null,block(){return this.Block(!0)}}};function Gs(e,t){return this.parseWithFallback((()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==D&&this.error()}}),t||(()=>this.Raw(null,!0)))}const Rc={layer(){this.skipSC();
27const e=this.createList(),t=Gs.call(this,this.Layer);return t.type==="Raw"&&t.value===""||e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=Gs.call(this,this.Declaration,(()=>Gs.call(this,(()=>this.Condition("supports")))));return t.type==="Raw"&&t.value===""||e.push(t),e}};var wC={parse:{prelude(){const e=this.createList();switch(this.tokenType){case Et:e.push(this.String());break;case Ie:case q:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===P&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===q&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,Rc)),this.skipSC(),this.tokenType===q&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,Rc)),this.lookupNonWSType(0)!==P&&this.lookupNonWSType(0)!==Z||e.push(this.MediaQueryList()),e},block:null}},xC={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},SC={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},CC={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},AC={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},$C={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},EC={parse:{prelude:null,block(e=!1){return this.Block(e)}}},TC={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}},OC={container:kC,"font-face":vC,import:wC,layer:xC,media:SC,nest:CC,page:AC,scope:$C,"starting-style":EC,supports:TC};
27function _C(){const e=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case P:e.push(this.Identifier());break;case Et:e.push(this.String());break;case Ke:e.push(this.Operator());break;case D:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return e}const cn={parse(){return this.createSingleNodeList(this.SelectorList())}},Bs={parse(){return this.createSingleNodeList(this.Selector())}},LC={parse(){return this.createSingleNodeList(this.Identifier())}},PC={parse:_C},Kr={parse(){return this.createSingleNodeList(this.Nth())}};var NC={dir:LC,has:cn,lang:PC,matches:cn,is:cn,"-moz-any":cn,"-webkit-any":cn,where:cn,not:cn,"nth-child":Kr,"nth-last-child":Kr,"nth-last-of-type":Kr,"nth-of-type":Kr,slotted:Bs,host:Bs,"host-context":Bs},IC=Object.freeze({__proto__:null,AnPlusB:Hp,Atrule:Yp,AtrulePrelude:Xp,AttributeSelector:Kp,Block:Jp,Brackets:ef,CDC:tf,CDO:nf,ClassSelector:rf,Combinator:sf,Comment:af,Condition:of,Declaration:cf,DeclarationList:uf,Dimension:hf,Feature:pf,FeatureFunction:ff,FeatureRange:df,Function:mf,GeneralEnclosed:gf,Hash:bf,IdSelector:kf,Identifier:yf,Layer:vf,LayerList:wf,MediaQuery:xf,MediaQueryList:Sf,NestingSelector:Cf,Nth:Af,Number:$f,Operator:Ef,Parentheses:Tf,Percentage:Of,PseudoClassSelector:_f,PseudoElementSelector:Lf,Ratio:Pf,Raw:Nf,Rule:If,Scope:Mf,Selector:Rf,SelectorList:Df,String:jf,StyleSheet:qf,SupportsDeclaration:Uf,TypeSelector:Gf,UnicodeRange:Wf,Url:Yf,Value:Xf,WhiteSpace:Qf}),MC={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:bC,atrule:OC,pseudo:NC,node:IC},RC={node:Kf},DC=lv({...Q1,...MC,...RC});function Ya(e){const t={};for(const n of Object.keys(e)){let r=e[n];r&&(Array.isArray(r)||r instanceof Bt?r=r.map(Ya):r.constructor===Object&&(r=Ya(r))),t[n]=r}return t}const{tokenize:eD,parse:Hn,generate:et,lexer:tD,createLexer:nD,walk:ct,find:rD,findLast:iD,findAll:sD,toPlainObject:aD,fromPlainObject:oD,fork:lD}=DC,Vs=0,I=1,Y=2,we=3,le=4,Ct=5,ts=6,Te=7,He=8,K=9,F=10,pe=11,W=12,de=13,jr=14,Ye=15,ze=16,Xe=17,Ft=18,nt=19,At=20,Ce=21,ie=22,Fe=23,ft=24,qe=25,zC=0;function Ae(e){return e>=48&&e<=57}function an(e){return Ae(e)||e>=65&&e<=70||e>=97&&e<=102}function Qo(e){return e>=65&&e<=90}function FC(e){return e>=97&&e<=122}function jC(e){return Qo(e)||FC(e)}function qC(e){return e>=128}function Pi(e){return jC(e)||qC(e)||e===95}function Jf(e){return Pi(e)||Ae(e)||e===45}function UC(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ni(e){return e===10||e===13||e===12}function kn(e){return Ni(e)||e===32||e===9}function Rt(e,t){return!(e!==92||Ni(t)||t===zC)}function di(e,t,n){return e===45?Pi(t)||t===45||Rt(t,n):Pi(e)?!0:e===92?Rt(e,t):!1}function Ws(e,t,n){return e===43||e===45?Ae(t)?2:t===46&&Ae(n)?3:0:e===46?Ae(t)?2:0:Ae(e)?1:0}function ed(e){return e===65279||e===65534?1:0}const Xa=new Array(128),GC=128,mi=130,td=131,Ko=132,nd=133;for(let e=0;e<Xa.length;e++)Xa[e]=kn(e)&&mi||Ae(e)&&td||Pi(e)&&Ko||UC(e)&&nd||e||GC;function Hs(e){return e<128?Xa[e]:Ko}function jn(e,t){return t<e.length?e.charCodeAt(t):0}function Qa(e,t,n){return n===13&&jn(e,t+1)===10?2:1}function qn(e,t,n){let r=e.charCodeAt(t);return Qo(r)&&(r|=32),r===n}function Ir(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){const s=r.charCodeAt(i-t);let a=e.charCodeAt(i);if(Qo(a)&&(a|=32),a!==s)return!1}return!0}function BC(e,t){for(;t>=0&&kn(e.charCodeAt(t));t--);return t+1}function Zr(e,t){for(;t<e.length&&kn(e.charCodeAt(t));t++);return t}function Ys(e,t){for(;t<e.length&&Ae(e.charCodeAt(t));t++);return t}function Yn(e,t){if(t+=2,an(jn(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&an(jn(e,t));t++);const n=jn(e,t);kn(n)&&(t+=Qa(e,t,n))}return t}function Jr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!Jf(n)){if(Rt(n,jn(e,t+1))){t=Yn(e,t)-1;continue}break}}return t}function ns(e,t){let n=e.charCodeAt(t);if(n!==43&&n!==45||(n=e.charCodeAt(t+=1)),Ae(n)&&(t=Ys(e,t+1),n=e.charCodeAt(t)),n===46&&Ae(e.charCodeAt(t+1))&&(t+=2,t=Ys(e,t)),qn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),Ae(n)&&(t=Ys(e,t+1+r+1))}return t}function Xs(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}
27Rt(n,jn(e,t+1))&&(t=Yn(e,t))}return t}function rd(e){if(e.length===1&&!an(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var id=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];const VC=16384;function Ii(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,VC)):e}const Dc=10,WC=12,zc=13;function Fc(e){const t=e.source,n=t.length,r=t.length>0?ed(t.charCodeAt(0)):0,i=Ii(e.lines,n),s=Ii(e.columns,n);let a=e.startLine,l=e.startColumn;for(let c=r;c<n;c++){const o=t.charCodeAt(c);i[c]=a,s[c]=l++,(o===Dc||o===zc||o===WC)&&(o===zc&&c+1<n&&t.charCodeAt(c+1)===Dc&&(c++,i[c]=a,s[c]=l),a++,l=1)}i[n]=a,s[n]=l,e.lines=i,e.columns=s,e.computed=!0}class HC{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(t,n=0,r=1,i=1){this.source=t,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(t,n){return this.computed||Fc(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||Fc(this),{source:r,start:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const st=16777215,Qt=24,YC=new Map([[Y,ie],[Ce,ie],[nt,At],[Fe,ft]]);class XC{constructor(t,n){this.setSource(t,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(t="",n=(()=>{})){t=String(t||"");const r=t.length,i=Ii(this.offsetAndType,t.length+1),s=Ii(this.balance,t.length+1);let a=0,l=0,c=0,o=-1;for(this.offsetAndType=null,this.balance=null,n(t,((u,h,p)=>{switch(u){default:s[a]=r;break;case l:{let d=c&st;for(c=s[d],l=c>>Qt,s[a]=d,s[d++]=a;d<a;d++)s[d]===r&&(s[d]=a);break}case Ce:case Y:case nt:case Fe:s[a]=c,l=YC.get(u),c=l<<Qt|a;break}i[a++]=u<<Qt|p,o===-1&&(o=h)})),i[a]=Vs<<Qt|r,s[a]=r,s[r]=r;c!==0;){const u=c&st;c=s[u],s[u]=r}this.source=t,this.firstCharOffset=o===-1?0:o,this.tokenCount=a,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t]>>Qt:Vs}lookupOffset(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t-1]&st:this.source.length}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?Ir(this.source,this.offsetAndType[t-1]&st,this.offsetAndType[t]&st,n):!1}getTokenStart(t){return t===this.tokenIndex?this.tokenStart:t>0?t<this.tokenCount?this.offsetAndType[t-1]&st:this.offsetAndType[this.tokenCount]&st:this.firstCharOffset}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBalanceEdge(t){return this.balance[this.tokenIndex]<t}isDelim(t,n){return n?this.lookupType(n)===K&&this.source.charCodeAt(this.lookupOffset(n))===t:this.tokenType===K&&this.source.charCodeAt(this.tokenStart)===t}skip(t){let n=this.tokenIndex+t;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&st,n=this.offsetAndType[n],this.tokenType=n>>Qt,this.tokenEnd=n&st):(this.tokenIndex=this.tokenCount,this.next())}next(){let t=this.tokenIndex+1;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.tokenEnd,t=this.offsetAndType[t],this.tokenType=t>>Qt,this.tokenEnd=t&st):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Vs,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===de||this.tokenType===qe;)this.next()}skipUntilBalanced(t,n){let r=t,i,s;e:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<t)break e;switch(s=r>0?this.offsetAndType[r-1]&st:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:r++;break e;default:this.balance[i]===r&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(t){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],a=s&st,l=s>>Qt;r=a,t(l,i,a,n)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken(((n,r,i,s)=>{t[s]={idx:s,type:id[n],chunk:this.source.substring(r,i),balance:this.balance[s]}})),t}}function rs(e,t){function n(h){return h<l?e.charCodeAt(h):0}function r(){if(o=ns(e,o),di(n(o),n(o+1),n(o+2))){u=W,o=Jr(e,o);return}if(n(o)===37){u=pe,o++;return}u=F}function i(){const h=o;if(o=Jr(e,o),Ir(e,h,o,"url")&&n(o)===40){if(o=Zr(e,o+1),n(o)===34||n(o)===39){u=Y,o=h+4;return}a();return}if(n(o)===40){u=Y,o++;return}u=I}function s(h){for(h||(h=n(o++)),u=Ct;o<e.length;o++){const p=e.charCodeAt(o);switch(Hs(p)){case h:o++;return;case mi:if(Ni(p)){o+=Qa(e,o,p),u=ts;return}break;case 92:if(o===e.length-1)break;const d=n(o+1);
27Ni(d)?o+=Qa(e,o+1,d):Rt(p,d)&&(o=Yn(e,o)-1);break}}}function a(){for(u=Te,o=Zr(e,o);o<e.length;o++){const h=e.charCodeAt(o);switch(Hs(h)){case 41:o++;return;case mi:if(o=Zr(e,o),n(o)===41||o>=e.length){o<e.length&&o++;return}o=Xs(e,o),u=He;return;case 34:case 39:case 40:case nd:o=Xs(e,o),u=He;return;case 92:if(Rt(h,n(o+1))){o=Yn(e,o)-1;break}o=Xs(e,o),u=He;return}}}e=String(e||"");const l=e.length;let c=ed(n(0)),o=c,u;for(;o<l;){const h=e.charCodeAt(o);switch(Hs(h)){case mi:u=de,o=Zr(e,o+1);break;case 34:s();break;case 35:Jf(n(o+1))||Rt(n(o+1),n(o+2))?(u=le,o=Jr(e,o+1)):(u=K,o++);break;case 39:s();break;case 40:u=Ce,o++;break;case 41:u=ie,o++;break;case 43:Ws(h,n(o+1),n(o+2))?r():(u=K,o++);break;case 44:u=Ft,o++;break;case 45:Ws(h,n(o+1),n(o+2))?r():n(o+1)===45&&n(o+2)===62?(u=Ye,o+=3):di(h,n(o+1),n(o+2))?i():(u=K,o++);break;case 46:Ws(h,n(o+1),n(o+2))?r():(u=K,o++);break;case 47:n(o+1)===42?(u=qe,o=e.indexOf("*/",o+2),o=o===-1?e.length:o+2):(u=K,o++);break;case 58:u=ze,o++;break;case 59:u=Xe,o++;break;case 60:n(o+1)===33&&n(o+2)===45&&n(o+3)===45?(u=jr,o+=4):(u=K,o++);break;case 64:di(n(o+1),n(o+2),n(o+3))?(u=we,o=Jr(e,o+1)):(u=K,o++);break;case 91:u=nt,o++;break;case 92:Rt(h,n(o+1))?i():(u=K,o++);break;case 93:u=At,o++;break;case 123:u=Fe,o++;break;case 125:u=ft,o++;break;case td:r();break;case Ko:i();break;default:u=K,o++}t(u,c,c=o)}}let $n=null;class Q{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return Q.createItem(t)}allocateCursor(t,n){let r;return $n!==null?(r=$n,$n=$n.cursor,r.prev=t,r.next=n,r.cursor=this.cursor):r={prev:t,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:t}=this;this.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=$n,$n=t}
27updateCursors(t,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===t&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let t=this.head;t!==null;t=t.next)yield t.data}get size(){let t=0;for(let n=this.head;n!==null;n=n.next)t++;return t}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const i=Q.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(t,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,t.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(t,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,t.call(n,i.data,i,this)}this.releaseCursor()}reduce(t,n,r=this){let i=this.allocateCursor(null,this.head),s=n,a;for(;i.next!==null;)a=i.next,i.next=a.next,s=t.call(r,s,a.data,a,this);return this.releaseCursor(),s}reduceRight(t,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,a;for(;i.prev!==null;)a=i.prev,i.prev=a.prev,s=t.call(r,s,a.data,a,this);return this.releaseCursor(),s}some(t,n=this){for(let r=this.head;r!==null;r=r.next)if(t.call(n,r.data,r,this))return!0;return!1}map(t,n=this){const r=new Q;for(let i=this.head;i!==null;i=i.next)r.appendData(t.call(n,i.data,i,this));return r}filter(t,n=this){const r=new Q;for(let i=this.head;i!==null;i=i.next)t.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(null,t);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(t,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new Q;for(let n of this)t.appendData(n);return t}prepend(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this}prependData(t){return this.prepend(Q.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert(Q.createItem(t))}insert(t,n=null){if(n!==null)if(this.updateCursors(n.prev,t,n,t),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=t,n.prev=t,t.next=n,this.updateCursors(null,t)}else n.prev.next=t,t.prev=n.prev,n.prev=t,t.next=n;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this}insertData(t,n){return this.insert(Q.createItem(t),n)}remove(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t}push(t){this.insert(Q.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend(Q.createItem(t))}shift(){return this.head!==null?this.remove(this.head):null}prependList(t){return this.insertList(t,this.head)}appendList(t){return this.insertList(t)}insertList(t,n){return t.head===null?this:(n!=null?(this.updateCursors(n.prev,t.tail,n,t.head),n.prev!==null?(n.prev.next=t.head,t.head.prev=n.prev):this.head=t.head,n.prev=t.tail,t.tail.next=n):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)}replace(t,n){"head"in n?this.insertList(n,t):this.insert(n,t),this.remove(t)}}function is(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t} 28`)}})}const Qs=100,jc=60,qc=" ";function Uc({source:e,line:t,column:n},r){function i(u,h){return s.slice(u,h).map(((p,d)=>String(u+d+1).padStart(c)+" |"+p)).join(` 29`)}const s=e.split(/\r\n?|\n|\f/),a=Math.max(1,t-r)-1,l=Math.min(t+r,s.length+1),c=Math.max(4,String(l).length)+1;let o=0;n+=(qc.length-1)*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Qs&&(o=n-jc+3,n=jc-2);for(let u=a;u<=l;u++)u>=0&&u<s.length&&(s[u]=s[u].replace(/\t/g,qc),s[u]=(o>0&&s[u].length>o?"â¦":"")+s[u].substr(o,Qs-2)+(s[u].length>o+Qs-1?"â¦":""));
29return[i(a,t),new Array(n+c+2).join("-")+"^",i(t,l)].filter(Boolean).join(` 30`)}function Gc(e,t,n,r,i){return Object.assign(is("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:a=>Uc({source:t,line:r,column:i},isNaN(a)?0:a),get formattedMessage(){return`Parse error: ${e} 31`+Uc({source:t,line:r,column:i},2)}})}function QC(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case qe:this.next();continue;case de:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const Bc=()=>{},KC=33,ZC=35,Ks=59,Vc=123,Wc=0;function JC(e){return function(){return this[e]()}}function Zs(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function eA(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Zs(e.atrule),pseudo:Zs(e.pseudo),node:Zs(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=JC(e.parseContext[n]);break}return{config:t,...t,...t.node}}function tA(e){let t="",n="<unknown>",r=!1,i=Bc,s=!1;const a=new HC,l=Object.assign(new XC,eA(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:QC,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:o=>o===Vc?1:0,consumeUntilLeftCurlyBracketOrSemicolon:o=>o===Vc||o===Ks?1:0,consumeUntilExclamationMarkOrSemicolon:o=>o===KC||o===Ks?1:0,consumeUntilSemicolonIncluded:o=>o===Ks?2:0,createList:()=>new Q,createSingleNodeList:o=>new Q().appendData(o),getFirstListNode:o=>o&&o.first,getLastListNode:o=>o&&o.last,parseWithFallback(o,u){const h=this.tokenIndex;try{return o.call(this)}catch(p){if(s)throw p;const d=u.call(this,h);return s=!0,i(p,d),s=!1,d}},lookupNonWSType(o){let u;do if(u=this.lookupType(o++),u!==de)return u;while(u!==Wc);return Wc},charCodeAt:o=>o>=0&&o<t.length?t.charCodeAt(o):0,substring:(o,u)=>t.substring(o,u),substrToCursor(o){return this.source.substring(o,this.tokenStart)},cmpChar:(o,u)=>qn(t,o,u),cmpStr:(o,u,h)=>Ir(t,o,u,h),consume(o){const u=this.tokenStart;return this.eat(o),this.substrToCursor(u)},consumeFunctionName(){const o=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(Y),o},consumeNumber(o){const u=t.substring(this.tokenStart,ns(t,this.tokenStart));return this.eat(o),u},eat(o){if(this.tokenType!==o){const u=id[o].slice(0,-6).replace(/-/g," ").replace(/^./,(d=>d.toUpperCase()));let h=`${/[[\](){}]/.test(u)?`"${u}"`:u} is expected`,p=this.tokenStart;switch(o){case I:this.tokenType===Y||this.tokenType===Te?(p=this.tokenEnd-1,h="Identifier is expected but function found"):h="Identifier is expected";break;case le:this.isDelim(ZC)&&(this.next(),p++,h="Name is expected");break;case pe:this.tokenType===F&&(p=this.tokenEnd,h="Percent sign is expected");break}this.error(h,p)}this.next()},eatIdent(o){this.tokenType===I&&this.lookupValue(0,o)!==!1||this.error(`Identifier "${o}" is expected`),this.next()},eatDelim(o){this.isDelim(o)||this.error(`Delim "${String.fromCharCode(o)}" is expected`),this.next()},getLocation(o,u){return r?a.getLocationRange(o,u,n):null},getLocationFromList(o){if(r){const u=this.getFirstListNode(o),h=this.getLastListNode(o);return a.getLocationRange(u!==null?u.loc.start.offset-a.startOffset:this.tokenStart,h!==null?h.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(o,u){const h=typeof u<"u"&&u<t.length?a.getLocation(u):this.eof?a.getLocation(BC(t,t.length-1)):a.getLocation(this.tokenStart);throw new Gc(o||"Unexpected input",t,h.offset,h.line,h.column)}});return Object.assign(function(o,u){t=o,u=u||{},l.setSource(t,rs),a.setSource(t,u.offset,u.line,u.column),n=u.filename||"<unknown>",r=!!u.positions,i=typeof u.onParseError=="function"?u.onParseError:Bc,s=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in u)||!!u.parseAtrulePrelude,l.parseRulePrelude=!("parseRulePrelude"in u)||!!u.parseRulePrelude,l.parseValue=!("parseValue"in u)||!!u.parseValue,l.parseCustomProperty="parseCustomProperty"in u&&!!u.parseCustomProperty;const{context:h="default",onComment:p}=u;if(!(h in l.context))throw new Error("Unknown context `"+h+"`");typeof p=="function"&&l.forEachToken(((m,b,S)=>{if(m===qe){const w=l.getLocation(b,S),C=Ir(t,S-2,S,"*/")?t.slice(b+2,S-2):t.slice(b+2,S);p(C,w)}}));const d=l.context[h].call(l,u);return l.eof||l.error(),d},{SyntaxError:Gc,config:l.config})}const Hc=new Set(["Atrule","Selector","Declaration"]);function nA(e){const t=new xp,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let a=1,l=0,c=!1;const o=e.node;e.node=function(p){if(p.loc&&p.loc.start&&Hc.has(p.type)){const d=p.loc.start.line,m=p.loc.start.column-1;(r.line!==d||r.column!==m)&&(r.line=d,r.column=m,n.line=a,n.column=l,c&&(c=!1,n.line===i.line&&n.column===i.column||t.addMapping(s)),c=!0,t.addMapping({source:p.loc.source,original:r,generated:n}))}o.call(this,p),c&&Hc.has(p.type)&&(i.line=a,i.column=l)};const u=e.emit;e.emit=function(p,d,m){for(let b=0;b<p.length;
31b++)p.charCodeAt(b)===10?(a++,l=0):l++;u(p,d,m)};const h=e.result;return e.result=function(){return c&&t.addMapping(s),{css:h(),map:t}},e}const rA=43,iA=45,Js=(e,t)=>{if(e===K&&(e=t),typeof e=="string"){const n=e.charCodeAt(0);return n>127?32768:n<<8}return e},sd=[[I,I],[I,Y],[I,Te],[I,He],[I,"-"],[I,F],[I,pe],[I,W],[I,Ye],[I,Ce],[we,I],[we,Y],[we,Te],[we,He],[we,"-"],[we,F],[we,pe],[we,W],[we,Ye],[le,I],[le,Y],[le,Te],[le,He],[le,"-"],[le,F],[le,pe],[le,W],[le,Ye],[W,I],[W,Y],[W,Te],[W,He],[W,"-"],[W,F],[W,pe],[W,W],[W,Ye],["#",I],["#",Y],["#",Te],["#",He],["#","-"],["#",F],["#",pe],["#",W],["#",Ye],["-",I],["-",Y],["-",Te],["-",He],["-","-"],["-",F],["-",pe],["-",W],["-",Ye],[F,I],[F,Y],[F,Te],[F,He],[F,F],[F,pe],[F,W],[F,"%"],[F,Ye],["@",I],["@",Y],["@",Te],["@",He],["@","-"],["@",Ye],[".",F],[".",pe],[".",W],["+",F],["+",pe],["+",W],["/","*"]],sA=sd.concat([[I,le],[W,le],[le,le],[we,Ce],[we,Ct],[we,ze],[pe,pe],[pe,W],[pe,Y],[pe,"-"],[ie,I],[ie,Y],[ie,pe],[ie,W],[ie,le],[ie,"-"]]);function ad(e){const t=new Set(e.map((([n,r])=>Js(n)<<16|Js(r))));return function(n,r,i){const s=Js(r,i),a=i.charCodeAt(0);return(a===iA&&r!==I&&r!==Y&&r!==Ye||a===rA?t.has(n<<16|a<<8):t.has(n<<16|s))&&this.emit(" ",de,!0),s}}const aA=ad(sd),od=ad(sA);var Yc=Object.freeze({__proto__:null,safe:od,spec:aA});const oA=92;function lA(e,t){if(typeof t=="function"){let n=null;e.children.forEach((r=>{n!==null&&t.call(this,n),this.node(r),n=r}));return}e.children.forEach(this.node,this)}function cA(e){rs(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function uA(e){const t=new Map;for(let n in e.node){const r=e.node[n];typeof(r.generate||r)=="function"&&t.set(n,r.generate||r)}return function(n,r){let i="",s=0,a={node(c){if(!t.has(c.type))throw new Error("Unknown node type: "+c.type);t.get(c.type).call(l,c)},tokenBefore:od,token(c,o){s=this.tokenBefore(s,c,o),this.emit(o,c,!1),c===K&&o.charCodeAt(0)===oA&&this.emit(` 32`,de,!0)},emit(c){i+=c},result:()=>i};r&&(typeof r.decorator=="function"&&(a=r.decorator(a)),r.sourceMap&&(a=nA(a)),r.mode in Yc&&(a.tokenBefore=Yc[r.mode]));const l={node:c=>a.node(c),children:lA,token:(c,o)=>a.token(c,o),tokenize:cA};return a.node(n),a.result()}}function hA(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof Q)&&(n.children=new Q().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof Q&&(n.children=n.children.toArray())}}),t}}}const{hasOwnProperty:Zo}=Object.prototype,gr=function(){};function Xc(e){return typeof e=="function"?e:gr}function Qc(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function pA(e,t){const n=t.structure,r=[];for(const i in n){if(Zo.call(n,i)===!1)continue;let s=n[i];const a={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const l of s)l===null?a.nullable=!0:typeof l=="string"?a.type="node":Array.isArray(l)&&(a.type="list");a.type&&r.push(a)}return r.length?{context:t.walkContext,fields:r}:null}function fA(e){const t={};for(const n in e.node)if(Zo.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=pA(n,r)}return t}function Kc(e,t){const n=e.fields.slice(),r=e.context,i=typeof r=="string";return t&&n.reverse(),function(s,a,l,c){let o;i&&(o=a[r],a[r]=s);for(const u of n){const h=s[u.name];if(!u.nullable||h){if(u.type==="list"){if(t?h.reduceRight(c,!1):h.reduce(c,!1))return!0}else if(l(h))return!0}}i&&(a[r]=o)}}function Zc({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function dA(e){const t=fA(e),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const o in t)Zo.call(t,o)&&t[o]!==null&&(n[o]=Kc(t[o],!1),r[o]=Kc(t[o],!0));const a=Zc(n),l=Zc(r),c=function(o,u){function h(w,C,_){const E=p.call(S,w,C,_);return E===i?!0:E===s?!1:!!(m.hasOwnProperty(w.type)&&m[w.type](w,S,h,b)||d.call(S,w,C,_)===i)}let p=gr,d=gr,m=n,b=(w,C,_,E)=>w||h(C,_,E);const S={break:i,skip:s,root:o,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")p=u;else if(u&&(p=Xc(u.enter),d=Xc(u.leave),u.reverse&&(m=r),u.visit)){if(a.hasOwnProperty(u.visit))m=u.reverse?l[u.visit]:a[u.visit];else if(!t.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");p=Qc(p,u.visit),d=Qc(d,u.visit)}if(p===gr&&d===gr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(o)};return c.break=i,c.skip=s,c.find=function(o,u){let h=null;return c(o,(function(p,d,m){if(u.call(this,p,d,m))return h=p,i})),h},c.findLast=function(o,u){let h=null;return c(o,{reverse:!0,enter(p,d,m){if(u.call(this,p,d,m))return h=p,i}}),h},c.findAll=function(o,u){const h=[];return c(o,(function(p,d,m){u.call(this,p,d,m)&&h.push(p)})),h},c}function mA(e){return e}function gA(e){const{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function bA(e){switch(e.type){case"Range":return" ["+(e.min===null?"-â":e.min)+","+(e.max===null?"â":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}
32function yA(e,t,n,r){const i=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",s=e.terms.map((a=>Jo(a,t,n,r))).join(i);return e.explicit||n?(r||s[0]===","?"[":"[ ")+s+(r?"]":" ]"):s}function Jo(e,t,n,r){let i;switch(e.type){case"Group":i=yA(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Jo(e.term,t,n,r)+t(gA(e),e);case"Type":i="<"+e.name+(e.opts?t(bA(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function el(e,t){let n=mA,r=!1,i=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Jo(e,n,r,i)}const Jc={offset:0,line:1,column:1};function kA(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,s=i!==t?i:null;let a=0,l=0,c=0,o="",u,h;for(let p=0;p<n.length;p++){const d=n[p].value;p===r&&(l=d.length,a=o.length),s!==null&&n[p].node===s&&(p<=r?c++:c=0),o+=d}return r===n.length||c>1?(u=ei(s||t,"end")||br(Jc,o),h=br(u)):(u=ei(s,"start")||br(ei(t,"start")||Jc,o.slice(0,a)),h=ei(s,"end")||br(u,o.substr(a,l))),{css:o,mismatchOffset:a,mismatchLength:l,start:u,end:h}}function ei(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?br(n):n:null}function br({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const s=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=s.length-1,i.column=s.length===1?i.column+r.length:s.pop().length+1}return i}const lr=function(e,t){const n=is("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},vA=function(e,t,n,r){const i=is("SyntaxMatchError",e),{css:s,mismatchOffset:a,mismatchLength:l,start:c,end:o}=kA(r,n);return i.rawMessage=e,i.syntax=t?el(t):"<generic>",i.css=s,i.mismatchOffset=a,i.mismatchLength=l,i.message=e+` 33 syntax: `+i.syntax+` 34 value: `+(s||"<empty string>")+` 35 --------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,c),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:c,end:o},i},ti=new Map,En=new Map,Mi=45,wt=wA,Xn=xA;function tl(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Mi&&e.charCodeAt(t+1)===Mi}function ld(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Mi&&e.charCodeAt(t+1)!==Mi){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function wA(e){if(ti.has(e))return ti.get(e);const t=e.toLowerCase();let n=ti.get(t);if(n===void 0){const r=tl(t,0),i=r?"":ld(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return ti.set(e,n),n}function xA(e){if(En.has(e))return En.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=tl(t,n.length);if(!r&&(t=t.toLowerCase(),En.has(t))){const l=En.get(t);return En.set(e,l),l}const i=r?"":ld(t,n.length),s=t.substr(0,n.length+i.length),a=Object.freeze({basename:t.substr(s.length),name:t.substr(n.length),hack:n,vendor:i,prefix:s,custom:r});return En.set(e,a),a}const cd=["initial","inherit","unset","revert","revert-layer"],Mr=43,Pt=45,ea=110,Tn=!0,SA=!1;function Ka(e,t){return e!==null&&e.type===K&&e.value.charCodeAt(0)===t}function Er(e,t,n){for(;e!==null&&(e.type===de||e.type===qe);)e=n(++t);return t}function Jt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Mr||i===Pt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Ae(e.value.charCodeAt(t)))return 0;return r+1}function ta(e,t,n){let r=!1,i=Er(e,t,n);if(e=n(i),e===null)return t;if(e.type!==F){if(!Ka(e,Mr)&&!Ka(e,Pt))return t;if(r=!0,i=Er(n(++i),i,n),e=n(i),e===null||e.type!==F)return 0}if(!r){const s=e.value.charCodeAt(0);if(s!==Mr&&s!==Pt)return 0}return Jt(e,r?0:1,r,i)}function CA(e,t){let n=0;if(!e)return 0;if(e.type===F)return Jt(e,0,SA,n);if(e.type===I&&e.value.charCodeAt(0)===Pt){if(!qn(e.value,1,ea))return 0;switch(e.value.length){case 2:return ta(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Pt?0:(n=Er(t(++n),n,t),e=t(n),Jt(e,0,Tn,n));default:return e.value.charCodeAt(2)!==Pt?0:Jt(e,3,Tn,n)}}
35else if(e.type===I||Ka(e,Mr)&&t(n+1).type===I){if(e.type!==I&&(e=t(++n)),e===null||!qn(e.value,0,ea))return 0;switch(e.value.length){case 1:return ta(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Pt?0:(n=Er(t(++n),n,t),e=t(n),Jt(e,0,Tn,n));default:return e.value.charCodeAt(1)!==Pt?0:Jt(e,2,Tn,n)}}else if(e.type===W){let r=e.value.charCodeAt(0),i=r===Mr||r===Pt?1:0,s=i;for(;s<e.value.length&&Ae(e.value.charCodeAt(s));s++);return s===i||!qn(e.value,s,ea)?0:s+1===e.value.length?ta(t(++n),n,t):e.value.charCodeAt(s+1)!==Pt?0:s+2===e.value.length?(n=Er(t(++n),n,t),e=t(n),Jt(e,0,Tn,n)):Jt(e,s+2,Tn,n)}return 0}const AA=43,ud=45,hd=63,$A=117;function Za(e,t){return e!==null&&e.type===K&&e.value.charCodeAt(0)===t}function EA(e,t){return e.value.charCodeAt(0)===t}function yr(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const s=e.value.charCodeAt(i);if(s===ud&&n&&r!==0)return yr(e,t+r+1,!1),6;if(!an(s)||++r>6)return 0}return r}function ni(e,t,n){if(!e)return 0;for(;Za(n(t),hd);){if(++e>6)return 0;t++}return t}function TA(e,t){let n=0;if(e===null||e.type!==I||!qn(e.value,0,$A)||(e=t(++n),e===null))return 0;if(Za(e,AA))return e=t(++n),e===null?0:e.type===I?ni(yr(e,0,!0),++n,t):Za(e,hd)?ni(1,++n,t):0;if(e.type===F){const r=yr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===W||e.type===F?!EA(e,ud)||!yr(e,1,!1)?0:n+1:ni(r,n,t))}return e.type===W?ni(yr(e,1,!0),++n,t):0}const OA=["calc(","-moz-calc(","-webkit-calc("],nl=new Map([[Y,ie],[Ce,ie],[nt,At],[Fe,ft]]),_A=["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"],LA=["deg","grad","rad","turn"],PA=["s","ms"],NA=["hz","khz"],IA=["dpi","dpcm","dppx","x"],MA=["fr"],RA=["db"],DA=["st"];function xt(e,t){return t<e.length?e.charCodeAt(t):0}function pd(e,t){return Ir(e,0,e.length,t)}function fd(e,t){for(let n=0;n<t.length;n++)if(pd(e,t[n]))return!0;return!1}function dd(e,t){return t!==e.length-2?!1:xt(e,t)===92&&Ae(xt(e,t+1))}function ss(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 zA(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case ft:case ie:case At:if(e.type!==n)break e;if(n=r.pop(),r.length===0){i++;break e}break;case Y:case Ce:case nt:case Fe:r.push(n),n=nl.get(e.type);break}i++}while(e=t(i));return i}function at(e){return function(t,n,r){return t===null?0:t.type===Y&&fd(t.value,OA)?zA(t,n):e(t,n,r)}}function se(e){return function(t){return t===null||t.type!==e?0:1}}function FA(e){if(e===null||e.type!==I)return 0;const t=e.value.toLowerCase();return fd(t,cd)||pd(t,"default")?0:1}function jA(e){return e===null||e.type!==I||xt(e.value,0)!==45||xt(e.value,1)!==45?0:1}function qA(e){if(e===null||e.type!==le)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(!an(xt(e.value,n)))return 0;return 1}function UA(e){return e===null||e.type!==le||!di(xt(e.value,1),xt(e.value,2),xt(e.value,3))?0:1}function GA(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case ts:case He:break e;case ft:case ie:case At:if(e.type!==n)break e;n=r.pop();break;case Xe:if(n===0)break e;break;case K:if(n===0&&e.value==="!")break e;break;case Y:case Ce:case nt:case Fe:r.push(n),n=nl.get(e.type);break}i++}while(e=t(i));return i}function BA(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case ts:case He:break e;case ft:case ie:case At:if(e.type!==n)break e;n=r.pop();break;case Y:case Ce:case nt:case Fe:r.push(n),n=nl.get(e.type);break}i++}while(e=t(i));return i}function Ut(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==W)return 0;const i=ns(t.value,0);if(e!==null){const s=t.value.indexOf("\\",i),a=s!==-1&&dd(t.value,s)?t.value.substring(i,s):t.value.substr(i);if(e.has(a.toLowerCase())===!1)return 0}return ss(r,t.value,i)?0:1}}function VA(e,t,n){return e===null||e.type!==pe||ss(n,e.value,e.value.length-1)?0:1}function eu(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===F&&Number(t.value)===0?1:e(t,n,r)}}function WA(e,t,n){if(e===null)return 0;const r=ns(e.value,0);return!(r===e.value.length)&&!dd(e.value,r)||ss(n,e.value,r)?0:1}
35function HA(e,t,n){if(e===null||e.type!==F)return 0;let r=xt(e.value,0)===43||xt(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!Ae(xt(e.value,r)))return 0;return ss(n,e.value,r)?0:1}var tu={"ident-token":se(I),"function-token":se(Y),"at-keyword-token":se(we),"hash-token":se(le),"string-token":se(Ct),"bad-string-token":se(ts),"url-token":se(Te),"bad-url-token":se(He),"delim-token":se(K),"number-token":se(F),"percentage-token":se(pe),"dimension-token":se(W),"whitespace-token":se(de),"CDO-token":se(jr),"CDC-token":se(Ye),"colon-token":se(ze),"semicolon-token":se(Xe),"comma-token":se(Ft),"[-token":se(nt),"]-token":se(At),"(-token":se(Ce),")-token":se(ie),"{-token":se(Fe),"}-token":se(ft),string:se(Ct),ident:se(I),"custom-ident":FA,"custom-property-name":jA,"hex-color":qA,"id-selector":UA,"an-plus-b":CA,urange:TA,"declaration-value":GA,"any-value":BA,dimension:at(Ut(null)),angle:at(Ut(LA)),decibel:at(Ut(RA)),frequency:at(Ut(NA)),flex:at(Ut(MA)),length:at(eu(Ut(_A))),resolution:at(Ut(IA)),semitones:at(Ut(DA)),time:at(Ut(PA)),percentage:at(VA),zero:eu(),number:at(WA),integer:at(HA)};function YA(e,t,n){return Object.assign(is("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+` 36 `+t+` 37--`+new Array((n||t.length)+1).join("-")+"^"})}const XA=9,QA=10,KA=12,ZA=13,JA=32;class e${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)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}findWsEnd(t){for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n!==ZA&&n!==QA&&n!==KA&&n!==JA&&n!==XA)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 YA(t,this.str,this.pos)}}const t$=9,n$=10,r$=12,i$=13,s$=32,md=33,rl=35,nu=38,Ri=39,gd=40,a$=41,bd=42,il=43,sl=44,ru=45,al=60,yd=62,Ja=63,o$=64,as=91,ol=93,Di=123,iu=124,su=125,au=8734,Rr=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),ou={" ":1,"&&":2,"||":3,"|":4};function zi(e){return e.substringToPos(e.findWsEnd(e.pos))}function Qn(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||Rr[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Fi(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function l$(e){const t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function lu(e){let t=null,n=null;return e.eat(Di),t=Fi(e),e.charCode()===sl?(e.pos++,e.charCode()!==su&&(n=Fi(e))):n=t,e.eat(su),{min:Number(t),max:n?Number(n):0}}function c$(e){let t=null,n=!1;switch(e.charCode()){case bd:e.pos++,t={min:0,max:0};break;case il:e.pos++,t={min:1,max:0};break;case Ja:e.pos++,t={min:0,max:1};break;case rl:e.pos++,n=!0,e.charCode()===Di?t=lu(e):e.charCode()===Ja?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Di:t=lu(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Kn(e,t){const n=c$(e);return n!==null?(n.term=t,e.charCode()===rl&&e.charCodeAt(e.pos-1)===il?Kn(e,n):n):t}function na(e){const t=e.peek();return t===""?null:{type:"Token",value:t}}function u$(e){let t;return e.eat(al),e.eat(Ri),t=Qn(e),e.eat(Ri),e.eat(yd),Kn(e,{type:"Property",name:t})}function h$(e){let t=null,n=null,r=1;return e.eat(as),e.charCode()===ru&&(e.peek(),r=-1),r==-1&&e.charCode()===au?e.peek():(t=r*Number(Fi(e)),Rr[e.charCode()]!==0&&(t+=Qn(e))),zi(e),e.eat(sl),zi(e),e.charCode()===au?e.peek():(r=1,e.charCode()===ru&&(e.peek(),r=-1),n=r*Number(Fi(e)),Rr[e.charCode()]!==0&&(n+=Qn(e))),e.eat(ol),{type:"Range",min:t,max:n}}function p$(e){let t,n=null;return e.eat(al),t=Qn(e),e.charCode()===gd&&e.nextCharCode()===a$&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===as&&(zi(e),n=h$(e)),e.eat(yd),Kn(e,{type:"Type",name:t,opts:n}
37)}function f$(e){const t=Qn(e);return e.charCode()===gd?(e.pos++,{type:"Function",name:t}):Kn(e,{type:"Keyword",name:t})}function d$(e,t){function n(i,s){return{type:"Group",terms:i,combinator:s,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((i,s)=>ou[i]-ou[s]));t.length>0;){r=t.shift();let i=0,s=0;for(;i<e.length;i++){const a=e[i];a.type==="Combinator"&&(a.value===r?(s===-1&&(s=i-1),e.splice(i,1),i--):(s!==-1&&i-s>1&&(e.splice(s,i-s,n(e.slice(s,i),r)),i=s+1),s=-1))}s!==-1&&t.length&&e.splice(s,i-s,n(e.slice(s,i),r))}return r}function kd(e){const t=[],n={};let r,i=null,s=e.pos;for(;r=g$(e);)r.type!=="Spaces"&&(r.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[r.value]=!0):i!==null&&i.type!=="Combinator"&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,s=e.pos);return i!==null&&i.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:d$(t,n)||" ",disallowEmpty:!1,explicit:!1}}function m$(e){let t;return e.eat(as),t=kd(e),e.eat(ol),t.explicit=!0,e.charCode()===md&&(e.pos++,t.disallowEmpty=!0),t}function g$(e){let t=e.charCode();if(t<128&&Rr[t]===1)return f$(e);switch(t){case ol:break;case as:return Kn(e,m$(e));case al:return e.nextCharCode()===Ri?u$(e):p$(e);case iu:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===iu?2:1))};case nu:return e.pos++,e.eat(nu),{type:"Combinator",value:"&&"};case sl:return e.pos++,{type:"Comma"};case Ri:return Kn(e,{type:"String",value:l$(e)});case s$:case t$:case n$:case i$:case r$:return{type:"Spaces",value:zi(e)};case o$:return t=e.nextCharCode(),t<128&&Rr[t]===1?(e.pos++,{type:"AtKeyword",name:Qn(e)}):na(e);case bd:case il:case Ja:case rl:case md:break;case Di:if(t=e.nextCharCode(),t<48||t>57)return na(e);break;default:return na(e)}}function vd(e){const t=new e$(e),n=kd(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const kr=function(){};function cu(e){return typeof e=="function"?e:kr}function b$(e,t,n){function r(a){switch(i.call(n,a),a.type){case"Group":a.terms.forEach(r);break;case"Multiplier":r(a.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: "+a.type)}s.call(n,a)}let i=kr,s=kr;if(typeof t=="function"?i=t:t&&(i=cu(t.enter),s=cu(t.leave)),i===kr&&s===kr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const y$={decorator(e){const t=[];let n=null;return{...e,node(r){const i=n;n=r,e.node.call(this,r),n=i},emit(r,i,s){t.push({type:i,value:r,node:s?null:n})},result:()=>t}}};function k$(e){const t=[];return rs(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}function v$(e,t){return typeof e=="string"?k$(e):t.generate(e,y$)}const te={type:"Match"},re={type:"Mismatch"},ll={type:"DisallowEmpty"},w$=40,x$=41;function Ne(e,t,n){return t===te&&n===re||e===te&&t===te&&n===te?e:(e.type==="If"&&e.else===re&&t===te&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function wd(e){return e.length>2&&e.charCodeAt(e.length-2)===w$&&e.charCodeAt(e.length-1)===x$}function uu(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&wd(e.name)}function eo(e,t,n){switch(e){case" ":{let r=te;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Ne(s,r,re)}return r}case"|":{let r=re,i=null;for(let s=t.length-1;s>=0;s--){let a=t[s];if(uu(a)&&(i===null&&s>0&&uu(t[s-1])&&(i=Object.create(null),r=Ne({type:"Enum",map:i},te,r)),i!==null)){const l=(wd(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(l in i)){i[l]=a;continue}}i=null,r=Ne(a,te,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=re;for(let i=t.length-1;i>=0;i--){const s=t[i];let a;a=t.length>1?eo(e,t.filter((function(l){return l!==s})),!1):te,r=Ne(s,a,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?te:re;for(let i=t.length-1;i>=0;i--){const s=t[i];let a;a=t.length>1?eo(e,t.filter((function(l){return l!==s})),!0):te,r=Ne(s,a,r)}return r}}}function S$(e){let t=te,n=cl(e.term);if(e.max===0)n=Ne(n,ll,re),t=Ne(n,null,re),t.then=Ne(te,te,t),e.comma&&(t.then.else=Ne({type:"Comma",syntax:e},t,re));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==te&&(t=Ne({type:"Comma",syntax:e},t,re)),t=Ne(n,Ne(te,te,t),re);if(e.min===0)t=Ne(te,te,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==te&&(t=Ne({type:"Comma",syntax:e},t,re)),t=Ne(n,t,re);return t}function cl(e){if(typeof e=="function")return{type:"Generic",fn:e};
37switch(e.type){case"Group":{let t=eo(e.combinator,e.terms.map(cl),!1);return e.disallowEmpty&&(t=Ne(t,ll,re)),t}case"Multiplier":return S$(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function to(e,t){return typeof e=="string"&&(e=vd(e)),{type:"MatchGraph",match:cl(e),syntax:t||null,source:e}}const{hasOwnProperty:hu}=Object.prototype,C$=0,A$=1,no=2,xd=3,pu="Match",$$="Mismatch",E$="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",fu=15e3;function T$(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function ra(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function O$(e){return e.type!==K?!1:e.value!=="?"}function du(e){return e===null?!0:e.type===Ft||e.type===Y||e.type===Ce||e.type===nt||e.type===Fe||O$(e)}function mu(e){return e===null?!0:e.type===ie||e.type===At||e.type===ft||e.type===K&&e.value==="/"}function _$(e,t,n){function r(){do C++,w=C<e.length?e[C]:null;while(w!==null&&(w.type===de||w.type===qe))}function i(y){const L=C+y;return L<e.length?e[L]:null}function s(y,L){return{nextState:y,matchStack:E,syntaxStack:h,thenStack:p,tokenIndex:C,prev:L}}function a(y){p={nextState:y,matchStack:E,syntaxStack:h,prev:p}}function l(y){d=s(y,d)}function c(){E={type:A$,syntax:t.syntax,token:w,prev:E},r(),m=null,C>_&&(_=C)}function o(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},E={type:no,syntax:t.syntax,token:E.token,prev:E}}function u(){E=E.type===no?E.prev:{type:xd,syntax:h.syntax,token:E.token,prev:E},h=h.prev}let h=null,p=null,d=null,m=null,b=0,S=null,w=null,C=-1,_=0,E={type:C$,syntax:null,token:null,prev:null};for(r();S===null&&++b<fu;)switch(t.type){case"Match":if(p===null){if(w!==null&&(C!==e.length-1||w.value!=="\\0"&&w.value!=="\\9")){t=re;break}S=pu;break}if(t=p.nextState,t===ll){if(p.matchStack===E){t=re;break}t=te}for(;p.syntaxStack!==h;)u();p=p.prev;break;case"Mismatch":if(m!==null&&m!==!1)(d===null||C>d.tokenIndex)&&(d=m,m=!1);else if(d===null){S=$$;break}t=d.nextState,p=d.thenStack,h=d.syntaxStack,E=d.matchStack,C=d.tokenIndex,w=C<e.length?e[C]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==re&&l(t.else),t.then!==te&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const N=t.syntax.terms;if(t.index===N.length){if(t.mask===0||t.syntax.all){t=re;break}t=te;break}if(t.mask===(1<<N.length)-1){t=te;break}for(;t.index<N.length;t.index++){const k=1<<t.index;if((t.mask&k)===0){l(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|k}),t=N[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(w!==null){let N=w.value.toLowerCase();if(N.indexOf("\\")!==-1&&(N=N.replace(/\\[09].*$/,"")),hu.call(t.map,N)){t=t.map[N];break}}t=re;break;case"Generic":{const N=h!==null?h.opts:null,k=C+Math.floor(t.fn(w,i,N));if(!isNaN(k)&&k>C){for(;C<k;)c();t=te}else t=re;break}case"Type":case"Property":{const N=t.type==="Type"?"types":"properties",k=hu.call(n,N)?n[N][t.n
37ame]:null;if(!k||!k.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(m!==!1&&w!==null&&t.type==="Type"&&(t.name==="custom-ident"&&w.type===I||t.name==="length"&&w.value==="0")){m===null&&(m=s(t,d)),t=re;break}o(),t=k.match;break}case"Keyword":{const N=t.name;if(w!==null){let k=w.value;if(k.indexOf("\\")!==-1&&(k=k.replace(/\\[09].*$/,"")),ra(k,N)){c(),t=te;break}}t=re;break}case"AtKeyword":case"Function":if(w!==null&&ra(w.value,t.name)){c(),t=te;break}t=re;break;case"Token":if(w!==null&&w.value===t.value){c(),t=te;break}t=re;break;case"Comma":w!==null&&w.type===Ft?du(E.token)?t=re:(c(),t=mu(w)?re:te):t=du(E.token)||mu(w)?te:re;break;case"String":let y="",L=C;for(;L<e.length&&y.length<t.value.length;L++)y+=e[L].value;if(ra(y,t.value)){for(;C<L;)c();t=te}else t=re;break;default:throw new Error("Unknown node type: "+t.type)}switch(S){case null:console.warn("[csstree-match] BREAK after "+fu+" iterations"),S=E$,E=null;break;case pu:for(;h!==null;)u();break;default:E=null}return{tokens:e,reason:S,iterations:b,match:E,longestMatch:_}}function gu(e,t,n){const r=_$(e,t,n||{});if(r.match===null)return r;let i=r.match,s=r.match={syntax:t.syntax||null,match:[]};const a=[s];for(i=T$(i).prev;i!==null;){switch(i.type){case no:s.match.push(s={syntax:i.syntax,match:[]}),a.push(s);break;case xd:a.pop(),s=a[a.length-1];break;default:s.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function Sd(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function n(i){if(Array.isArray(i.match)){for(let s=0;s<i.match.length;s++)if(n(i.match[s]))return t(i.syntax)&&r.unshift(i.syntax),!0}
37else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function L$(e,t){return ul(this,e,(n=>n.type==="Type"&&n.name===t))}function P$(e,t){return ul(this,e,(n=>n.type==="Property"&&n.name===t))}function N$(e){return ul(this,e,(t=>t.type==="Keyword"))}function ul(e,t,n){const r=Sd.call(e,t);return r===null?!1:r.some(n)}var I$=Object.freeze({__proto__:null,getTrace:Sd,isKeyword:N$,isProperty:P$,isType:L$});function Cd(e){return"node"in e?e.node:Cd(e.match[0])}function Ad(e){return"node"in e?e.node:Ad(e.match[e.match.length-1])}function bu(e,t,n,r,i){function s(l){if(l.syntax!==null&&l.syntax.type===r&&l.syntax.name===i){const c=Cd(l),o=Ad(l);e.syntax.walk(t,(function(u,h,p){if(u===c){const d=new Q;do{if(d.appendData(h.data),h.data===o)break;h=h.next}while(h!==null);a.push({parent:p,nodes:d})}}))}Array.isArray(l.match)&&l.match.forEach(s)}const a=[];return n.matched!==null&&s(n.matched),a}const{hasOwnProperty:Tr}=Object.prototype;function ia(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function yu(e){return!!e&&ia(e.offset)&&ia(e.line)&&ia(e.column)}function M$(e,t){return function(r,i){if(!r||r.constructor!==Object)return i(r,"Type of node should be an Object");for(let s in r){let a=!0;if(Tr.call(r,s)!==!1){if(s==="type")r.type!==e&&i(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(s==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")s+=".source";else if(yu(r.loc.start)){if(yu(r.loc.end))continue;s+=".end"}else s+=".start";a=!1}else if(t.hasOwnProperty(s)){a=!1;for(let l=0;!a&&l<t[s].length;l++){const c=t[s][l];switch(c){case String:a=typeof r[s]=="string";break;case Boolean:a=typeof r[s]=="boolean";break;case null:a=r[s]===null;break;default:typeof c=="string"?a=r[s]&&r[s].type===c:Array.isArray(c)&&(a=r[s]instanceof Q)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");a||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)Tr.call(t,s)&&Tr.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function R$(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if(Tr.call(n,s)===!1)continue;const a=[],l=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];for(let c=0;c<l.length;c++){const o=l[c];if(o===String||o===Boolean)a.push(o.name);else if(o===null)a.push("null");else if(typeof o=="string")a.push("<"+o+">");else{if(!Array.isArray(o))throw new Error("Wrong value `"+o+"` in `"+e+"."+s+"` structure definition");a.push("List")}}i[s]=a.join(" | ")}return{docs:i,check:M$(e,r)}}function D$(e){const t={};if(e.node){for(const n in e.node)if(Tr.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=R$(n,r)}}return t}const z$=to(cd.join(" | "));function ro(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:el(e[i].syntax,{compact:t}));return r}function F$(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:el(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&ro(s.descriptors,t,n)};return r}function j$(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function yt(e,t,n){return{matched:e,iterations:n,error:t,...I$}}function On(e,t,n,r){const i=v$(n,e.syntax);let s;return j$(i)?yt(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=gu(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=gu(i,t.match,e),!s.match)?yt(null,new vA(s.reason,t.syntax,n,s),s.iterations):yt(s.match,null,s.iterations))}class ku{constructor(t,n,r){if(this.cssWideKeywordsSyntax=z$,this.syntax=n,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||D$(t),t){if(t.types)for(const i in t.types)this.addType_(i,t.types[i]);if(t.generic){this.generic=!0;for(const i in tu)this.addType_(i,tu[i])}if(t.atrules)for(const i in t.atrules)this.addAtrule_(i,t.atrules[i]);if(t.properties)for(const i in t.properties)this.addProperty_(i,t.properties[i])}}checkStructure(t){function n(s,a){i.push({node:s,message:a})}const r=this.structure,i=[];return this.syntax.walk(t,(function(s){r.hasOwnProperty(s.type)?r[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")})),!!i.length&&i}createDescriptor(t,n,r,i=null){const s={type:n,name:r},a={type:n,name:r,parent:i,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null};return typeof t=="function"?a.match=to(t,s):(typeof t=="string"?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:vd(t)}),a.syntax}}):a.syntax=t,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:to(a.syntax,s)}),a.match}})),a}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,i)=>(r[i]=this.createDescriptor(n.descriptors[i],"AtruleDescriptor",i,t),r)),Ob
37ject.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 lr("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t);if(!i.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(i.prelude&&!n&&!On(this,i.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 i=this.getAtrule(t),s=wt(n);if(!i.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!i.descriptors[s.name]&&!i.descriptors[s.basename])return new lr("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new lr("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return yt(null,r);const i=this.getAtrule(t);return i.prelude?On(this,i.prelude,n||"",!1):yt(null,null)}matchAtruleDescriptor(t,n,r){const i=this.checkAtruleDescriptorName(t,n);if(i)return yt(null,i);const s=this.getAtrule(t),a=wt(n);return On(this,s.descriptors[a.name]||s.descriptors[a.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?yt(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(Xn(t).custom)return yt(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?yt(null,r):On(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?On(this,r,n,!1):yt(null,new lr("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?yt(null,new lr("Bad syntax")):(typeof t!="string"&&t.match||(t=this.createDescriptor(t,"Type","anonymous")),On(this,t,n,!1))}findValueFragments(t,n,r,i){return bu(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return bu(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const i=[];return this.syntax.walk(t,{visit:"Declaration",enter:s=>{i.push.apply(i,this.findDeclarationValueFragments(s,n,r))}}),i}getAtrule(t,n=!0){const r=wt(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=Xn(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(i,s,a,l){if(a.has(s))return a.get(s);a.set(s,!1),l.syntax!==null&&b$(l.syntax,(function(c){if(c.type!=="Type"&&c.type!=="Property")return;const o=c.type==="Type"?i.types:i.properties,u=c.type==="Type"?n:r;hasOwnProperty.call(o,c.name)&&!t(i,c.name,u,o[c.name])||a.set(s,!0)}),this)}let n=new Map,r=new Map;for(const i in this.types)t(this,i,n,this.types[i]);for(const i in this.properties)t(this,i,r,this.properties[i]);return n=[...n.keys()].filter((i=>n.get(i))),r=[...r.keys()].filter((i=>r.get(i))),n.length||r.length?{types:n,properties:r}:null}dump(t,n){return{generic:this.generic,types:ro(this.types,!n,t),properties:ro(this.properties,!n,t),atrules:F$(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}const{hasOwnProperty:Un}=Object.prototype,q$={generic:!0,types:io,atrules:{prelude:wu,descriptors:wu},properties:io,parseContext:U$,scope:Ed,atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function os(e){return e&&e.constructor===Object}function $d(e){return os(e)?{...e}:e}function U$(e,t){return Object.assign(e,t)}function Ed(e,t){for(const n in t)Un.call(t,n)&&(os(e[n])?Ed(e[n],t[n]):e[n]=$d(t[n]));return e}function vu(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function io(e,t){if(typeof t=="string")return vu(e,t);const n={...e};for(let r in t)Un.call(t,r)&&(n[r]=vu(Un.call(e,r)?e[r]:void 0,t[r]));return n}function wu(e,t){const n=io(e,t);return!os(n)||Object.keys(n).length?n:null}function vr(e,t,n){for(const r in n)if(Un.call(n,r)!==!1){if(n[r]===!0)Un.call(t,r)&&(e[r]=$d(t[r]));else if(n[r]){if(typeof n[r]=="function"){const i=n[r];e[r]=i({},e[r]),e[r]=i(e[r]||{},t[r])}else if(os(n[r])){const i={};for(let s in e[r])i[s]=vr({},e[r][s],n[r]);for(let s in t[r])i[s]=vr(i[s]||{},t[r][s],n[r]);e[r]=i}else if(Array.isArray(n[r])){const i={},s=n[r].reduce((function(a,l){return a[l]=!0,a}
37),{});for(const[a,l]of Object.entries(e[r]||{}))i[a]={},l&&vr(i[a],l,s);for(const a in t[r])Un.call(t[r],a)&&(i[a]||(i[a]={}),t[r]&&t[r][a]&&vr(i[a],t[r][a],s));e[r]=i}}}return e}var so=(e,t)=>vr(e,t,q$);function Td(e){const t=tA(e),n=dA(e),r=uA(e),{fromPlainObject:i,toPlainObject:s}=hA(n),a={lexer:null,createLexer:l=>new ku(l,a,a.lexer.structure),tokenize:rs,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(l){const c=so({},e);return Td(typeof l=="function"?l(c,Object.assign):so(c,l))}};return a.lexer=new ku({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var G$=e=>Td(so({},e)),B$={generic:!0
vendor: 63,767 bytes, line 37
37,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","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>",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>?","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )",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>? )","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>","fit-content()":"fit-content( [<length>|<percentage>] )","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> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )",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>","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","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] )","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|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","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> )","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>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","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]","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","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>",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,â]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",ratio:"<number [0,â]> [/ <number [0,â]>]?","reversed-counter-name":"reversed( <counter-name> )",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",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,â]>","positive-integer":"<integer [0,â]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end","caret-color":"auto|<color>",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[size||layout||style||paint]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,â]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}}}}
37;const It=43,Je=45,gi=110,pn=!0,V$=!1;function bi(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===It||r===Je)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Ae(this.charCodeAt(n))||this.error("Integer is expected",n)}function Rn(e){return bi.call(this,0,e)}function Kt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case gi:n="N is expected";break;case Je:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function sa(){let e=0,t=0,n=this.tokenType;for(;n===de||n===qe;)n=this.lookupType(++e);if(n!==F){if(!this.isDelim(It,e)&&!this.isDelim(Je,e))return null;t=this.isDelim(It,e)?It:Je;do n=this.lookupType(++e);while(n===de||n===qe);n!==F&&(this.skip(e),Rn.call(this,pn))}return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==It&&n!==Je&&this.error("Number sign is expected")),Rn.call(this,t!==0),t===Je?"-"+this.consume(F):this.consume(F)}const W$="AnPlusB",H$={a:[String,null],b:[String,null]};function Od(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===F)Rn.call(this,V$),n=this.consume(F);else if(this.tokenType===I&&this.cmpChar(this.tokenStart,Je))switch(t="-1",Kt.call(this,1,gi),this.tokenEnd-this.tokenStart){case 2:this.next(),n=sa.call(this);break;case 3:Kt.call(this,2,Je),this.next(),this.skipSC(),Rn.call(this,pn),n="-"+this.consume(F);break;default:Kt.call(this,2,Je),bi.call(this,3,pn),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===I||this.isDelim(It)&&this.lookupType(1)===I){let r=0;switch(t="1",this.isDelim(It)&&(r=1,this.next()),Kt.call(this,0,gi),this.tokenEnd-this.tokenStart){case 1:this.next(),n=sa.call(this);break;case 2:Kt.call(this,1,Je),this.next(),this.skipSC(),Rn.call(this,pn),n="-"+this.consume(F);break;default:Kt.call(this,1,Je),bi.call(this,2,pn),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===W){const r=this.charCodeAt(this.tokenStart),i=r===It||r===Je;let s=this.tokenStart+i;for(;s<this.tokenEnd&&Ae(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Kt.call(this,s-this.tokenStart,gi),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=sa.call(this)):(Kt.call(this,s-this.tokenStart+1,Je),s+2===this.tokenEnd?(this.next(),this.skipSC(),Rn.call(this,pn),n="-"+this.consume(F)):(bi.call(this,s-this.tokenStart+2,pn),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===It&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===It&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function Y$(e){if(e.a){const t=(e.a==="+1"||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)}var X$=Object.freeze({__proto__:null,generate:Y$,name:W$,parse:Od,structure:H$});function xu(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Q$(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ft)return!0;if(t===Fe||t===we)return!1}return!1}const K$="Atrule",Z$="atrule",J$={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function _d(){const e=this.tokenStart;let t,n,r=null,i=null;switch(this.eat(we),t=this.substrToCursor(e+1),n=t.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==Fe&&this.tokenType!==Xe&&(r=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,t),xu):xu.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Xe:this.next();break;case Fe:i=hasOwnProperty.call(this.atrule,n)&&typeof this.atrule[n].block=="function"?this.atrule[n].block.call(this):this.Block(Q$.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:t,prelude:r,block:i}}function eE(e){this.token(we,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Xe,";")}var tE=Object.freeze({__proto__:null,generate:eE,name:K$,parse:_d,structure:J$,walkContext:Z$});const nE="AtrulePrelude",rE="atrulePrelude",iE={children:[[]]};function Ld(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==Fe&&this.tokenType!==Xe&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function sE(e){this.children(e)}var aE=Object.freeze({__proto__:null,generate:sE,name:nE,parse:Ld,structure:iE,walkContext:rE});const oE=36,Pd=42,yi=61,lE=94,ao=124,cE=126;function uE(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;
37return this.isDelim(Pd)?(t=!0,this.next()):this.isDelim(ao)||this.eat(I),this.isDelim(ao)?this.charCodeAt(this.tokenStart+1)!==yi?(this.next(),this.eat(I)):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 hE(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==yi&&t!==cE&&t!==lE&&t!==oE&&t!==Pd&&t!==ao&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==yi&&(this.isDelim(yi)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const pE="AttributeSelector",fE={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Nd(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(nt),this.skipSC(),t=uE.call(this),this.skipSC(),this.tokenType!==At&&(this.tokenType!==I&&(n=hE.call(this),this.skipSC(),r=this.tokenType===Ct?this.String():this.Identifier(),this.skipSC()),this.tokenType===I&&(i=this.consume(I),this.skipSC())),this.eat(At),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function dE(e){this.token(K,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(I,e.flags),this.token(K,"]")}var mE=Object.freeze({__proto__:null,generate:dE,name:pE,parse:Nd,structure:fE});function Id(e){return this.Raw(e,null,!0)}function gE(){return this.parseWithFallback(this.Rule,Id)}function Su(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function bE(){if(this.tokenType===Xe)return Su.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Su);return this.tokenType===Xe&&this.next(),e}const yE="Block",kE="block",vE={children:[["Atrule","Rule","Declaration"]]};function Md(e){const t=e?bE:gE,n=this.tokenStart;
37let r=this.createList();this.eat(Fe);e:for(;!this.eof;)switch(this.tokenType){case ft:break e;case de:case qe:this.next();break;case we:r.push(this.parseWithFallback(this.Atrule,Id));break;default:r.push(t.call(this))}return this.eof||this.eat(ft),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function wE(e){this.token(Fe,"{"),this.children(e,(t=>{t.type==="Declaration"&&this.token(Xe,";")})),this.token(ft,"}")}var xE=Object.freeze({__proto__:null,generate:wE,name:yE,parse:Md,structure:vE,walkContext:kE});const SE="Brackets",CE={children:[[]]};function Rd(e,t){const n=this.tokenStart;let r=null;return this.eat(nt),r=e.call(this,t),this.eof||this.eat(At),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function AE(e){this.token(K,"["),this.children(e),this.token(K,"]")}var $E=Object.freeze({__proto__:null,generate:AE,name:SE,parse:Rd,structure:CE});const EE="CDC",TE=[];function Dd(){const e=this.tokenStart;return this.eat(Ye),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function OE(){this.token(Ye,"-->")}var _E=Object.freeze({__proto__:null,generate:OE,name:EE,parse:Dd,structure:TE});const LE="CDO",PE=[];function zd(){const e=this.tokenStart;return this.eat(jr),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function NE(){this.token(jr,"<!--")}var IE=Object.freeze({__proto__:null,generate:NE,name:LE,parse:zd,structure:PE});const ME=46,RE="ClassSelector",DE={name:String};function Fd(){return this.eatDelim(ME),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(I)}}function zE(e){this.token(K,"."),this.token(I,e.name)}var FE=Object.freeze({__proto__:null,generate:zE,name:RE,parse:Fd,structure:DE});const jE=43,Cu=47,qE=62,UE=126,GE="Combinator",BE={name:String};function jd(){const e=this.tokenStart;let t;switch(this.tokenType){case de:t=" ";break;case K:switch(this.charCodeAt(this.tokenStart)){case qE:case jE:case UE:this.next();break;case Cu:this.next(),this.eatIdent("deep"),this.eatDelim(Cu);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function VE(e){this.tokenize(e.name)}var WE=Object.freeze({__proto__:null,generate:VE,name:GE,parse:jd,structure:BE});const HE=42,YE=47,XE="Comment",QE={value:String};function qd(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(qe),t-e+2>=2&&this.charCodeAt(t-2)===HE&&this.charCodeAt(t-1)===YE&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function KE(e){this.token(qe,"/*"+e.value+"*/")}var ZE=Object.freeze({__proto__:null,generate:KE,name:XE,parse:qd,structure:QE});const Ud=33,JE=35,eT=36,tT=38,nT=42,rT=43,Au=47;function iT(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function sT(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function aT(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Xe&&this.isDelim(Ud)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const oT="Declaration",lT="declaration",cT={important:[Boolean,String],property:String,value:["Value","Raw"]};function Gd(){const e=this.tokenStart,t=this.tokenIndex,n=hT.call(this),r=tl(n),i=r?this.parseCustomProperty:this.parseValue,s=r?sT:iT;let a=!1,l;this.skipSC(),this.eat(ze);const c=this.tokenIndex;if(r||this.skipSC(),l=i?this.parseWithFallback(aT,s):s.call(this,this.tokenIndex),r&&l.type==="Value"&&l.children.isEmpty){for(let o=c-this.tokenIndex;o<=0;o++)if(this.lookupType(o)===de){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Ud)&&(a=pT.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Xe&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:l}}function uT(e){this.token(I,e.property),this.token(ze,":"),this.node(e.value),e.important&&(this.token(K,"!"),this.token(I,e.important===!0?"important":e.important))}function hT(){const e=this.tokenStart;if(this.tokenType===K)switch(this.charCodeAt(this.tokenStart)){case nT:case eT:case rT:case JE:case tT:this.next();break;case Au:this.next(),this.isDelim(Au)&&this.next();break}return this.tokenType===le?this.eat(le):this.eat(I),this.substrToCursor(e)}function pT(){this.eat(K),this.skipSC();const e=this.consume(I);return e==="important"||e}var fT=Object.freeze({__proto__:null,generate:uT,name:oT,parse:Gd,structure:cT,walkContext:lT});function dT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const mT="DeclarationList",gT={children:[["Declaration"]]};
37function Bd(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case de:case qe:case Xe:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,dT))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function bT(e){this.children(e,(t=>{t.type==="Declaration"&&this.token(Xe,";")}))}var yT=Object.freeze({__proto__:null,generate:bT,name:mT,parse:Bd,structure:gT});const kT="Dimension",vT={value:String,unit:String};function Vd(){const e=this.tokenStart,t=this.consumeNumber(W);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function wT(e){this.token(W,e.value+e.unit)}var xT=Object.freeze({__proto__:null,generate:wT,name:kT,parse:Vd,structure:vT});const ST="Function",CT="function",AT={name:String,children:[[]]};function Wd(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(ie),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function $T(e){this.token(Y,e.name+"("),this.children(e),this.token(ie,")")}var ET=Object.freeze({__proto__:null,generate:$T,name:ST,parse:Wd,structure:AT,walkContext:CT});const TT="XXX",OT="Hash",_T={value:String};function Hd(){const e=this.tokenStart;return this.eat(le),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function LT(e){this.token(le,"#"+e.value)}var PT=Object.freeze({__proto__:null,generate:LT,name:OT,parse:Hd,structure:_T,xxx:TT});const NT="Identifier",IT={name:String};function Yd(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(I)}}function MT(e){this.token(I,e.name)}var RT=Object.freeze({__proto__:null,generate:MT,name:NT,parse:Yd,structure:IT});const DT="IdSelector",zT={name:String};function Xd(){const e=this.tokenStart;return this.eat(le),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function FT(e){this.token(K,"#"+e.name)}var jT=Object.freeze({__proto__:null,generate:FT,name:DT,parse:Xd,structure:zT});const qT="MediaFeature",UT={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Qd(){const e=this.tokenStart;let t,n=null;if(this.eat(Ce),this.skipSC(),t=this.consume(I),this.skipSC(),this.tokenType!==ie){switch(this.eat(ze),this.skipSC(),this.tokenType){case F:n=this.lookupNonWSType(1)===K?this.Ratio():this.Number();break;case W:n=this.Dimension();break;case I:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(ie),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function GT(e){this.token(Ce,"("),this.token(I,e.name),e.value!==null&&(this.token(ze,":"),this.node(e.value)),this.token(ie,")")}var BT=Object.freeze({__proto__:null,generate:GT,name:qT,parse:Qd,structure:UT});const VT="MediaQuery",WT={children:[["Identifier","MediaFeature","WhiteSpace"]]};
37function Kd(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case qe:case de:this.next();continue;case I:t=this.Identifier();break;case Ce:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function HT(e){this.children(e)}var YT=Object.freeze({__proto__:null,generate:HT,name:VT,parse:Kd,structure:WT});const XT="MediaQueryList",QT={children:[["MediaQuery"]]};function Zd(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Ft);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function KT(e){this.children(e,(()=>this.token(Ft,",")))}var ZT=Object.freeze({__proto__:null,generate:KT,name:XT,parse:Zd,structure:QT});const JT="Nth",e2={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Jd(){this.skipSC();const e=this.tokenStart;let t=e,n=null,r;return r=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function t2(e){this.node(e.nth),e.selector!==null&&(this.token(I,"of"),this.node(e.selector))}var n2=Object.freeze({__proto__:null,generate:t2,name:JT,parse:Jd,structure:e2});const r2="Number",i2={value:String};function em(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(F)}}function s2(e){this.token(F,e.value)}var a2=Object.freeze({__proto__:null,generate:s2,name:r2,parse:em,structure:i2});const o2="Operator",l2={value:String};function tm(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function c2(e){this.tokenize(e.value)}var u2=Object.freeze({__proto__:null,generate:c2,name:o2,parse:tm,structure:l2});const h2="Parentheses",p2={children:[[]]};function nm(e,t){const n=this.tokenStart;let r=null;return this.eat(Ce),r=e.call(this,t),this.eof||this.eat(ie),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function f2(e){this.token(Ce,"("),this.children(e),this.token(ie,")")}var d2=Object.freeze({__proto__:null,generate:f2,name:h2,parse:nm,structure:p2});const m2="Percentage",g2={value:String};function rm(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(pe)}}function b2(e){this.token(pe,e.value+"%")}var y2=Object.freeze({__proto__:null,generate:b2,name:m2,parse:rm,structure:g2});const k2="PseudoClassSelector",v2="function",w2={name:String,children:[["Raw"],null]};function im(){const e=this.tokenStart;let t=null,n,r;return this.eat(ze),this.tokenType===Y?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(
37),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(ie)):n=this.consume(I),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function x2(e){this.token(ze,":"),e.children===null?this.token(I,e.name):(this.token(Y,e.name+"("),this.children(e),this.token(ie,")"))}var S2=Object.freeze({__proto__:null,generate:x2,name:k2,parse:im,structure:w2,walkContext:v2});const C2="PseudoElementSelector",A2="function",$2={name:String,children:[["Raw"],null]};function sm(){const e=this.tokenStart;let t=null,n,r;return this.eat(ze),this.eat(ze),this.tokenType===Y?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(ie)):n=this.consume(I),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function E2(e){this.token(ze,":"),this.token(ze,":"),e.children===null?this.token(I,e.name):(this.token(Y,e.name+"("),this.children(e),this.token(ie,")"))}var T2=Object.freeze({__proto__:null,generate:E2,name:C2,parse:sm,structure:$2,walkContext:A2});const O2=47,_2=46;function $u(){this.skipSC();const e=this.consume(F);for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);Ae(n)||n===_2||this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}const L2="Ratio",P2={left:String,right:String};function am(){const e=this.tokenStart,t=$u.call(this);let n;return this.skipSC(),this.eatDelim(O2),n=$u.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function N2(e){this.token(F,e.left),this.token(K,"/"),this.token(F,e.right)}var I2=Object.freeze({__proto__:null,generate:N2,name:L2,parse:am,structure:P2});function M2(){return this.tokenIndex>0&&this.lookupType(-1)===de?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const R2="Raw",D2={value:String};function om(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?M2.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function z2(e){this.tokenize(e.value)}var F2=Object.freeze({__proto__:null,generate:z2,name:R2,parse:om,structure:D2});function Eu(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function j2(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==Fe&&this.error(),e}const q2="Rule",U2="rule",G2={prelude:["SelectorList","Raw"],block:["Block"]};function lm(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(j2,Eu):Eu.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function B2(e){this.node(e.prelude),this.node(e.block)}var V2=Object.freeze({__proto__:null,generate:B2,name:q2,parse:lm,structure:G2,walkContext:U2});const W2="Selector",H2={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function cm(){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 Y2(e){this.children(e)}var X2=Object.freeze({__proto__:null,generate:Y2,name:W2,parse:cm,structure:H2});const Q2="SelectorList",K2="selector",Z2={children:[["Selector","Raw"]]};
37function um(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===Ft){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function J2(e){this.children(e,(()=>this.token(Ft,",")))}var eO=Object.freeze({__proto__:null,generate:J2,name:Q2,parse:um,structure:Z2,walkContext:K2});const oo=92,hm=34,pm=39;function fm(e){const t=e.length,n=e.charCodeAt(0),r=n===hm||n===pm?1:0,i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let a=r;a<=i;a++){let l=e.charCodeAt(a);if(l===oo){if(a===i){a!==t-1&&(s=e.substr(a+1));break}if(l=e.charCodeAt(++a),Rt(oo,l)){const c=a-1,o=Yn(e,c);a=o-1,s+=rd(e.substring(c+1,o))}else l===13&&e.charCodeAt(a+1)===10&&a++}else s+=e[a]}return s}function lo(e,t){const n=t?"'":'"',r=t?pm:hm;let i="",s=!1;for(let a=0;a<e.length;a++){const l=e.charCodeAt(a);if(l===0){i+="�";continue}if(l<=31||l===127){i+="\\"+l.toString(16),s=!0;continue}l===r||l===oo?(i+="\\"+e.charAt(a),s=!1):(s&&(an(l)||kn(l))&&(i+=" "),i+=e.charAt(a),s=!1)}return n+i+n}const tO="String",nO={value:String};function dm(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:fm(this.consume(Ct))}}function rO(e){this.token(Ct,lo(e.value))}var iO=Object.freeze({__proto__:null,generate:rO,name:tO,parse:dm,structure:nO});const sO=33;function Tu(e){return this.Raw(e,null,!1)}const aO="StyleSheet",oO="stylesheet",lO={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};
37function mm(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case de:this.next();continue;case qe:if(this.charCodeAt(this.tokenStart+2)!==sO){this.next();continue}n=this.Comment();break;case jr:n=this.CDO();break;case Ye:n=this.CDC();break;case we:n=this.parseWithFallback(this.Atrule,Tu);break;default:n=this.parseWithFallback(this.Rule,Tu)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function cO(e){this.children(e)}var uO=Object.freeze({__proto__:null,generate:cO,name:aO,parse:mm,structure:lO,walkContext:oO});const hO=42,Ou=124;function aa(){this.tokenType!==I&&this.isDelim(hO)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const pO="TypeSelector",fO={name:String};function gm(){const e=this.tokenStart;return this.isDelim(Ou)?(this.next(),aa.call(this)):(aa.call(this),this.isDelim(Ou)&&(this.next(),aa.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function dO(e){this.tokenize(e.name)}var mO=Object.freeze({__proto__:null,generate:dO,name:pO,parse:gm,structure:fO});const bm=43,ym=45,co=63;function wr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===ym&&t&&n!==0)return wr.call(this,e+n+1,!1),-1;an(i)||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 ri(e){let t=0;for(;this.isDelim(co);)++t>e&&this.error("Too many question marks"),this.next()}function gO(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===bm?"Plus sign":"Hyphen minus")+" is expected")}function bO(){let e=0;switch(this.tokenType){case F:if(e=wr.call(this,1,!0),this.isDelim(co)){ri.call(this,6-e);break}if(this.tokenType===W||this.tokenType===F){gO.call(this,ym),wr.call(this,1,!1);break}break;case W:e=wr.call(this,1,!0),e>0&&ri.call(this,6-e);break;default:if(this.eatDelim(bm),this.tokenType===I){e=wr.call(this,0,!0),e>0&&ri.call(this,6-e);break}if(this.isDelim(co)){this.next(),ri.call(this,5);break}this.error("Hex digit or question mark is expected")}}const yO="UnicodeRange",kO={value:String};function km(){const e=this.tokenStart;return this.eatIdent("u"),bO.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function vO(e){this.tokenize(e.value)}var wO=Object.freeze({__proto__:null,generate:vO,name:yO,parse:km,structure:kO});const xO=32,uo=92,SO=34,CO=39,AO=40,vm=41;function $O(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===vm?t-2:t-1,i="";for(;n<r&&kn(e.charCodeAt(n));)n++;for(;n<r&&kn(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let a=e.charCodeAt(s);if(a===uo){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),Rt(uo,a)){const l=s-1,c=Yn(e,l);s=c-1,i+=rd(e.substring(l+1,c))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function wm(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),n=!0;continue}i===xO||i===uo||i===SO||i===CO||i===AO||i===vm?(t+="\\"+e.charAt(r),n=!1):(n&&an(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const EO="Url",TO={value:String};function xm(){const e=this.tokenStart;let t;switch(this.tokenType){case Te:t=$O(this.consume(Te));break;case Y:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Y),this.skipSC(),t=fm(this.consume(Ct)),this.skipSC(),this.eof||this.eat(ie);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function OO(e){this.token(Te,wm(e.value))}var _O=Object.freeze({__proto__:null,generate:OO,name:EO,parse:xm,structure:TO});const LO="Value",PO={children:[[]]};function Sm(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function NO(e){this.children(e)}var IO=Object.freeze({__proto__:null,generate:NO,name:LO,parse:Sm,structure:PO});const MO=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),RO="WhiteSpace",DO={value:String};function Cm(){return this.eat(de),MO}function zO(e){this.token(de,e.value)}var FO=Object.freeze({__proto__:null,generate:zO,name:RO,parse:Cm,structure:DO}),Am=Object.freeze({__proto__:null,AnPlusB:X$,Atrule:tE,AtrulePrelude:aE,AttributeSelector:mE,Block:xE,Brackets:$E,CDC:_E,CDO:IE,ClassSelector:FE,Combinator:WE,Comment:ZE,Declaration:fT,DeclarationList:yT,Dimension:xT,Function:ET,Hash:PT,IdSelector:jT,Identifier:RT,MediaFeature:BT,MediaQuery:YT,MediaQueryList:ZT,Nth:n2,Number:a2,Operator:u2,Parentheses:d2,Percentage:y2,PseudoClassSelector:S2,PseudoElementSelector:T2,Ratio:I2,Raw:F2,Rule:V2,Selector:X2,SelectorList:eO,String:iO,StyleSheet:uO,TypeSelector:mO,UnicodeRange:wO,Url:_O,Value:IO,WhiteSpace:FO}),jO={generic:!0,...B$,node:Am};const qO=35,UO=42,_u=43,GO=45,BO=47,VO=117;function $m(e){switch(this.tokenType){case le:return this.Hash();case Ft:return this.Operator();case Ce:return this.Parentheses(this.readSequence,e.recognizer);case nt:return this.Brackets(this.readSequence,e.recognizer);
37case Ct:return this.String();case W:return this.Dimension();case pe:return this.Percentage();case F:return this.Number();case Y:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Te:return this.Url();case I:return this.cmpChar(this.tokenStart,VO)&&this.cmpChar(this.tokenStart+1,_u)?this.UnicodeRange():this.Identifier();case K:{const t=this.charCodeAt(this.tokenStart);if(t===BO||t===UO||t===_u||t===GO)return this.Operator();t===qO&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var WO={getNode:$m};const HO=35,YO=42,XO=43,QO=47,Lu=46,KO=62,ZO=124,JO=126;function e_(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function t_(){switch(this.tokenType){case nt:return this.AttributeSelector();case le:return this.IdSelector();case ze:return this.lookupType(1)===ze?this.PseudoElementSelector():this.PseudoClassSelector();case I:return this.TypeSelector();case F:case pe:return this.Percentage();case W:this.charCodeAt(this.tokenStart)===Lu&&this.error("Identifier is expected",this.tokenStart+1);break;case K:{switch(this.charCodeAt(this.tokenStart)){case XO:case KO:case JO:case QO:return this.Combinator();case Lu:return this.ClassSelector();case YO:case ZO:return this.TypeSelector();case HO:return this.IdSelector()}break}}}var n_={onWhiteSpace:e_,getNode:t_};function r_(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}
37function i_(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===Ft){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===de){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function Pu(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}var s_={getNode:$m,onWhiteSpace(e,t){Pu(e)&&(e.value=" "+e.value),Pu(t.last)&&(t.last.value+=" ")},expression:r_,var:i_},a_=Object.freeze({__proto__:null,AtrulePrelude:WO,Selector:n_,Value:s_}),o_={parse:{prelude:null,block(){return this.Block(!0)}}},l_={parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case Ct:e.push(this.String());break;case Te:case Y:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==I&&this.lookupNonWSType(0)!==Ce||e.push(this.MediaQueryList()),e},block:null}},c_={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){return this.Block(!1)}}},u_={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};function h_(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function p_(){return this.skipSC(),this.tokenType===I&&this.lookupNonWSType(1)===ze?this.createSingleNodeList(this.Declaration()):Em.call(this)}
37function Em(){const e=this.createList();let t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case qe:case de:this.next();continue;case Y:t=this.Function(h_,this.scope.AtrulePrelude);break;case I:t=this.Identifier();break;case Ce:t=this.Parentheses(p_,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}var f_={parse:{prelude(){const e=Em.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(){return this.Block(!1)}}},d_={"font-face":o_,import:l_,media:c_,page:u_,supports:f_};const un={parse(){return this.createSingleNodeList(this.SelectorList())}},m_={parse(){return this.createSingleNodeList(this.Selector())}},Nu={parse(){return this.createSingleNodeList(this.Identifier())}},ii={parse(){return this.createSingleNodeList(this.Nth())}};var g_={dir:Nu,has:un,lang:Nu,matches:un,is:un,"-moz-any":un,"-webkit-any":un,where:un,not:un,"nth-child":ii,"nth-last-child":ii,"nth-last-of-type":ii,"nth-of-type":ii,slotted:m_},b_=Object.freeze({__proto__:null,AnPlusB:Od,Atrule:_d,AtrulePrelude:Ld,AttributeSelector:Nd,Block:Md,Brackets:Rd,CDC:Dd,CDO:zd,ClassSelector:Fd,Combinator:jd,Comment:qd,Declaration:Gd,DeclarationList:Bd,Dimension:Vd,Function:Wd,Hash:Hd,IdSelector:Xd,Identifier:Yd,MediaFeature:Qd,MediaQuery:Kd,MediaQueryList:Zd,Nth:Jd,Number:em,Operator:tm,Parentheses:nm,Percentage:rm,PseudoClassSelector:im,PseudoElementSelector:sm,Ratio:am,Raw:om,Rule:lm,Selector:cm,SelectorList:um,String:dm,StyleSheet:mm,TypeSelector:gm,UnicodeRange:km,Url:xm,Value:Sm,WhiteSpace:Cm}),y_={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:a_,atrule:d_,pseudo:g_,node:b_},k_={node:Am},v_=G$({...jO,...y_,...k_});function ho(e){const t={};for(const n in e){let r=e[n];r&&(Array.isArray(r)||r instanceof Q?r=r.map(ho):r.constructor===Object&&(r=ho(r))),t[n]=r}return t}const{tokenize:cD,parse:w_,generate:Dt,lexer:Tm,createLexer:uD,walk:Qe,find:hD,findLast:pD,findAll:fD,toPlainObject:dD,fromPlainObject:mD,fork:x_}=v_,{hasOwnProperty:S_}=Object.prototype;function oa(e,t){const n=Object.create(null);if(!Array.isArray(e))return null;for(let r of e)t&&(r=r.toLowerCase()),n[r]=!0;return n}function Iu(e){if(!e)return null;const t=oa(e.tags,!0),n=oa(e.ids),r=oa(e.classes);return t===null&&n===null&&r===null?null:{tags:t,ids:n,classes:r}}function C_(e){let t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(let n=0;n<e.scopes.length;n++){const r=e.scopes[n];if(!r||!Array.isArray(r))throw new Error("Wrong usage format");for(const i of r){if(S_.call(t,i))throw new Error(`Class can't be used for several scopes: ${i}`);t[i]=n+1}}}return{whitelist:Iu(e),blacklist:Iu(e.blacklist),scopes:t}}function dn(e){return!e||!e.children||e.children.isEmpty}function Mu(e,t){return e!==null&&e.children===t}function A_(e,t,n){if(e.block&&(this.stylesheet!==null&&(this.stylesheet.firstAtrulesAllowed=!1),dn(e.block))){n.remove(t);return}switch(e.name){case"charset":if(dn(e.prelude)){n.remove(t);return}if(t.prev){n.remove(t);return}break;case"import":if(this.stylesheet===null||!this.stylesheet.firstAtrulesAllowed){n.remove(t);return}n.prevUntil(t.prev,(function(r){if(!(r.type==="Atrule"&&(r.name==="import"||r.name==="charset")))return this.root.firstAtrulesAllowed=!1,n.remove(t),!0}),this);break;default:{const r=wt(e.name).basename;r!=="keyframes"&&r!=="media"&&r!=="supports"||(dn(e.prelude)||dn(e.block))&&n.remove(t)}}}function $_(e,t,n){n.remove(t)}function E_(e,t,n){if(e.value.children&&e.value.children.isEmpty){n.remove(t);return}Xn(e.property).custom&&/\S/.test(e.value.value)&&(e.value.value=e.value.value.trim())}function T_(e,t,n){(Mu(this.stylesheet,n)||Mu(this.block,n))&&n.remove(t)}const{hasOwnProperty:_n}=Object.prototype,O_=new Set(["keyframes"]);
37function Om(e,t){return e.children.forEach(((n,r,i)=>{let s=!1;Qe(n,(function(a){if(this.selector===null||this.selector===e)switch(a.type){case"SelectorList":this.function!==null&&this.function.name.toLowerCase()==="not"||Om(a,t)&&(s=!0);break;case"ClassSelector":t.whitelist===null||t.whitelist.classes===null||_n.call(t.whitelist.classes,a.name)||(s=!0),t.blacklist!==null&&t.blacklist.classes!==null&&_n.call(t.blacklist.classes,a.name)&&(s=!0);break;case"IdSelector":t.whitelist===null||t.whitelist.ids===null||_n.call(t.whitelist.ids,a.name)||(s=!0),t.blacklist!==null&&t.blacklist.ids!==null&&_n.call(t.blacklist.ids,a.name)&&(s=!0);break;case"TypeSelector":a.name.charAt(a.name.length-1)!=="*"&&(t.whitelist===null||t.whitelist.tags===null||_n.call(t.whitelist.tags,a.name.toLowerCase())||(s=!0),t.blacklist!==null&&t.blacklist.tags!==null&&_n.call(t.blacklist.tags,a.name.toLowerCase())&&(s=!0));break}})),s&&i.remove(r)})),e.children.isEmpty}function __(e,t,n,r){if(dn(e.prelude)||dn(e.block)){n.remove(t);return}if(this.atrule&&O_.has(wt(this.atrule.name).basename))return;const{usage:i}=r;if(i&&(i.whitelist!==null||i.blacklist!==null)&&(Om(e.prelude,i),dn(e.prelude))){n.remove(t);return}}function L_(e,t,n){if(t.data.name!=="*")return;const i=t.next&&t.next.data.type;i!=="IdSelector"&&i!=="ClassSelector"&&i!=="AttributeSelector"&&i!=="PseudoClassSelector"&&i!=="PseudoElementSelector"||n.remove(t)}function P_(e,t,n){n.remove(t)}const Ru={Atrule:A_,Comment:$_,Declaration:E_,Raw:T_,Rule:__,TypeSelector:L_,WhiteSpace:P_};function N_(e,t){Qe(e,{leave(n,r,i){Ru.hasOwnProperty(n.type)&&Ru[n.type].call(this,n,r,i,t)}})}function I_(e){e.block.children.forEach((t=>{t.prelude.children.forEach((n=>{n.children.forEach(((r,i)=>{r.type==="Percentage"&&r.value==="100"?i.data={type:"TypeSelector",loc:r.loc,name:"to"}:r.type==="TypeSelector"&&r.name==="from"&&(i.data={type:"Percentage",loc:r.loc,value:"0"})}))}))}))}function M_(e){wt(e.name).basename==="keyframes"&&I_(e)}const R_=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;function D_(e){return e===""||e==="-"?!1:!R_.test(e)}function z_(e){const t=e.value;!t||t.type!=="String"||D_(t.value)&&(e.value={type:"Identifier",loc:t.loc,name:t.value})}function F_(e){const t=e.children;t.forEachRight((function(n,r){if(n.type==="Identifier"){if(n.name==="bold")r.data={type:"Number",loc:n.loc,value:"700"};else if(n.name==="normal"){const i=r.prev;i&&i.data.type==="Operator"&&i.data.value==="/"&&this.remove(i),this.remove(r)}}})),t.isEmpty&&t.insert(t.createItem({type:"Identifier",name:"normal"}))}function j_(e){const t=e.children.head.data;if(t.type==="Identifier")switch(t.name){case"normal":e.children.head.data={type:"Number",loc:t.loc,value:"400"};break;case"bold":e.children.head.data={type:"Number",loc:t.loc,value:"700"};break}}function q_(e){function t(){r.length||r.unshift({type:"Number",loc:null,value:"0"},{type:"Number",loc:null,value:"0"}),n.push.apply(n,r),r=[]}let n=[],r=[];e.children.forEach((i=>{if(i.type==="Operator"&&i.value===","){t(),n.push(i);return}i.type==="Identifier"&&(i.name==="transparent"||i.name==="none"||i.name==="repeat"||i.name==="scroll")||r.push(i)})),t(),e.children=new Q().fromArray(n)}function Du(e){e.children.forEach(((t,n,r)=>{t.type==="Identifier"&&t.name.toLowerCase()==="none"&&(r.head===r.tail?n.data={type:"Number",loc:t.loc,value:"0"}:r.remove(n))}))}const zu={font:F_,"font-weight":j_,background:q_,border:Du,outline:Du};function U_(e){if(!this.declaration)return;const t=Xn(this.declaration.property);zu.hasOwnProperty(t.basename)&&zu[t.basename](e)}const G_=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/;function ls(e,t){const n=G_;return e=String(e).replace(n,"$1$2$3"),e!==""&&e!=="-"||(e="0"),e}function B_(e){e.value=ls(e.value)}const V_=new Set(["calc","min","max","clamp"]),W_=new Set(["px","mm","cm","in","pt","pc","em","ex","ch","rem","vh","vw","vmin","vmax","vm"]);function H_(e,t){const n=ls(e.value);if(e.value=n,n==="0"&&this.declaration!==null&&this.atrulePrelude===null){const r=e.unit.toLowerCase();if(!W_.has(r)||this.declaration.property==="-ms-flex"||this.declaration.property==="flex"||this.function&&V_.has(this.function.name))return;t.data={type:"Number",loc:e.loc,value:n}}}const Y_=new Set(["width","min-width","max-width","height","min-height","max-height","flex","-ms-flex"]);function X_(e,t){e.value=ls(e.value),e.value==="0"&&this.declaration&&!Y_.has(this.declaration.property)&&(t.data={type:"Number",loc:e.loc,value:e.value}
37,Tm.matchDeclaration(this.declaration).isType(t.data,"length")||(t.data=e))}function Q_(e){e.value=e.value.replace(/\\/g,"/")}const Fu={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee9
370",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ju={8e5:"maroon",800080:"purple",808e3:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};function la(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qu(e,t,n,r){let i,s,a;if(t===0)i=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=la(c,l,e+1/3),s=la(c,l,e),a=la(c,l,e-1/3)}return[Math.round(i*255),Math.round(s*255),Math.round(a*255),r]}function ca(e){return e=e.toString(16),e.length===1?"0"+e:e}function ua(e,t,n){let r=e.head,i=[],s=!1;for(;r!==null;){const{type:a,value:l}=r.data;switch(a){case"Number":case"Percentage":if(s)return;s=!0,i.push({type:a,value:Number(l)});break;case"Operator":if(l===","){if(!s)return;s=!1}else if(s||l!=="+")return;break;default:return}r=r.next}if(i.length===t){if(i.length===4){if(i[3].type!=="Number")return;i[3].type="Alpha"}if(n){if(i[0].type!==i[1].type||i[0].type!==i[2].type)return}else{if(i[0].type!=="Number"||i[1].type!=="Percentage"||i[2].type!=="Percentage")return;i[0].type="Angle"}return i.map((function(a){let l=Math.max(0,a.value);switch(a.type){case"Number":l=Math.min(l,255);break;case"Percentage":if(l=Math.min(l,100)/100,!n)return l;l*=255;break;case"Angle":return(l%360+360)%360/360;case"Alpha":return Math.min(l,1)}return Math.round(l)}))}}function K_(e,t){let n=e.name,r;if(n==="rgba"||n==="hsla"){if(r=ua(e.children,4,n==="rgba"),!r)return;if(n==="hsla"&&(r=qu(...r),e.name="rgba"),r[3]===0){const i=this.function&&this.function.name;if(r[0]===0&&r[1]===0&&r[2]===0||!/^(?:to|from|color-stop)$|gradient$/i.test(i)){t.data={type:"Identifier",loc:e.loc,name:"transparent"};return}}if(r[3]!==1){e.children.forEach(((i,s,a)=>{if(i.type==="Operator"){i.value!==","&&a.remove(s);return}s.data={type:"Number",loc:i.loc,value:ls(r.shift())}}));return}n="rgb"}if(n==="hsl"){if(r=r||ua(e.children,3,!1),!r)return;r=qu(...r),n="rgb"}if(n==="rgb"){if(r=r||ua(e.children,3,!0),!r)return;t.data={type:"Hash",loc:e.loc,value:ca(r[0])+ca(r[1])+ca(r[2])},_m(t.data,t)}}function Z_(e,t){if(this.declaration===null)return;let n=e.name.toLowerCase();if(Fu.hasOwnProperty(n)&&Tm.matchDeclaration(this.declaration).isType(e,"color")){const r=Fu[n];r.length+1<=n.length?t.data={type:"Hash",loc:e.loc,value:r}:(n==="grey"&&(n="gray"),e.name=n)}}function _m(e,t){let n=e.value.toLowerCase();n.length===6&&n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&(n=n[0]+n[2]+n[4]),ju[n]?t.data={type:"Identifier",loc:e.loc,name:ju[n]}:e.value=n}const Uu={Atrule:M_,AttributeSelector:z_,Value:U_,Dimension:H_,Percentage:X_,Number:B_,Url:Q_,Hash:_m,Identifier:Z_,Function:K_};function J_(e){Qe(e,{leave(t,n,r){Uu.hasOwnProperty(t.type)&&Uu[t.type].call(this,t,n,r)}})}class eL{constructor(){this.map=new Map}resolve(t){let n=this.map.get(t);return n===void 0&&(n=this.map.size+1,this.map.set(t,n)),n}}function tL(){const e=new eL;return function(n){const r=Dt(n);return n.id=e.resolve(r),n.length=r.length,n.fingerprint=null,n}}function nL(e){return e.type==="Raw"?w_(e.value,{context:"selectorList"}):e}function rL(e,t){for(let n=0;n<3;n++)if(e[n]!==t[n])return e[n]>t[n]?e:t;return e}function Gu(e){return nL(e).children.reduce(((t,n)=>rL(Zn(n),t)),[0,0,0])}function Zn(e){let t=0,n=0,r=0;
37return e.children.forEach((i=>{switch(i.type){case"IdSelector":t++;break;case"ClassSelector":case"AttributeSelector":n++;break;case"PseudoClassSelector":switch(i.name.toLowerCase()){case"not":case"has":case"is":case"matches":case"-webkit-any":case"-moz-any":{const[s,a,l]=Gu(i.children.first);t+=s,n+=a,r+=l;break}case"nth-child":case"nth-last-child":{const s=i.children.first;if(s.type==="Nth"&&s.selector){const[a,l,c]=Gu(s.selector);t+=a,n+=l+1,r+=c}else n++;break}case"where":break;case"before":case"after":case"first-line":case"first-letter":r++;break;default:n++}break;case"TypeSelector":i.name.endsWith("*")||r++;break;case"PseudoElementSelector":r++;break}})),[t,n,r]}const iL=new Set(["first-letter","first-line","after","before"]),sL=new Set(["link","visited","hover","active","first-letter","first-line","after","before"]);function aL(e,t){const n=new Set;e.prelude.children.forEach((function(r){let i="*",s=0;r.children.forEach((function(a){switch(a.type){case"ClassSelector":if(t&&t.scopes){const l=t.scopes[a.name]||0;if(s!==0&&l!==s)throw new Error("Selector can't has classes from different scopes: "+Dt(r));s=l}break;case"PseudoClassSelector":{const l=a.name.toLowerCase();sL.has(l)||n.add(`:${l}`);break}case"PseudoElementSelector":{const l=a.name.toLowerCase();iL.has(l)||n.add(`::${l}`);break}case"TypeSelector":i=a.name.toLowerCase();break;case"AttributeSelector":a.flags&&n.add(`[${a.flags.toLowerCase()}]`);break;case"Combinator":i="*";break}})),r.compareMarker=Zn(r).toString(),r.id=null,r.id=Dt(r),s&&(r.compareMarker+=":"+s),i!=="*"&&(r.compareMarker+=","+i)})),e.pseudoSignature=n.size>0&&[...n].sort().join(",")}function oL(e,t){const n=tL();return Qe(e,{visit:"Rule",enter(r){r.block.children.forEach(n),aL(r,t.usage)}}),Qe(e,{visit:"Atrule",enter(r){r.prelude&&(r.prelude.id=null,r.prelude.id=Dt(r.prelude)),wt(r.name).basename==="keyframes"&&(r.block.avoidRulesMerge=!0,r.block.children.forEach((function(i){i.prelude.children.forEach((function(s){s.compareMarker=s.id}))})))}}),{declaration:n}}const{hasOwnProperty:Bu}=Object.prototype;function Vu(e,t,n,r){const i=t.data,s=wt(i.name).basename,a=i.name.toLowerCase()+"/"+(i.prelude?i.prelude.id:null);Bu.call(e,s)||(e[s]=Object.create(null)),r&&delete e[s][a],Bu.call(e[s],a)||(e[s][a]=new Q),e[s][a].append(n.remove(t))}function lL(e,t){const n=Object.create(null);let r=null;e.children.forEach((function(i,s,a){if(i.type==="Atrule"){const l=wt(i.name).basename;switch(l){case"keyframes":Vu(n,s,a,!0);return;
37case"media":if(t.forceMediaMerge){Vu(n,s,a,!1);return}break}r===null&&l!=="charset"&&l!=="import"&&(r=s)}else r===null&&(r=s)}));for(const i in n)for(const s in n[i])e.children.insertList(n[i][s],i==="media"?null:r)}function Wu(e){return e.type==="Atrule"&&e.name==="media"}function cL(e,t,n){if(!Wu(e))return;const r=t.prev&&t.prev.data;!r||!Wu(r)||e.prelude&&r.prelude&&e.prelude.id===r.prelude.id&&(r.block.children.appendList(e.block.children),n.remove(t))}function uL(e,t){lL(e,t),Qe(e,{visit:"Atrule",reverse:!0,enter:cL})}const{hasOwnProperty:hL}=Object.prototype;function Lm(e,t){let n=e.head,r=t.head;for(;n!==null&&r!==null&&n.data.id===r.data.id;)n=n.next,r=r.next;return n===null&&r===null}function Pm(e,t){let n=e.head,r=t.head;for(;n!==null&&r!==null&&n.data.id===r.data.id;)n=n.next,r=r.next;return n===null&&r===null}function pL(e,t){const n={eq:[],ne1:[],ne2:[],ne2overrided:[]},r=Object.create(null),i=Object.create(null);for(let s=t.head;s;s=s.next)i[s.data.id]=!0;for(let s=e.head;s;s=s.next){const a=s.data;a.fingerprint&&(r[a.fingerprint]=a.important),i[a.id]?(i[a.id]=!1,n.eq.push(a)):n.ne1.push(a)}for(let s=t.head;s;s=s.next){const a=s.data;i[a.id]&&((!hL.call(r,a.fingerprint)||!r[a.fingerprint]&&a.important)&&n.ne2.push(a),n.ne2overrided.push(a))}return n}function xr(e,t){return t.forEach((n=>{const r=n.id;let i=e.head;for(;i;){const s=i.data.id;if(s===r)return;if(s>r)break;i=i.next}e.insert(e.createItem(n),i)})),e}function Nm(e,t){let n=e.head;for(;n!==null;){let r=t.head;for(;r!==null;){if(n.data.compareMarker===r.data.compareMarker)return!0;r=r.next}n=n.next}return!1}function cs(e){switch(e.type){case"Rule":return Nm(e.prelude.children,this);case"Atrule":if(e.block)return e.block.children.some(cs,this);break;case"Declaration":return!1}return!0}function fL(e,t,n){const r=e.prelude.children,i=e.block.children;n.prevUntil(t.prev,(function(s){if(s.type!=="Rule")return cs.call(r,s);const a=s.prelude.children,l=s.block.children;if(e.pseudoSignature===s.pseudoSignature){if(Lm(a,r))return l.appendList(i),n.remove(t),!0;if(Pm(i,l))return xr(a,r),n.remove(t),!0}return Nm(r,a)}))}function dL(e){Qe(e,{visit:"Rule",enter:fL})}function mL(e,t,n){const r=e.prelude.children;for(;r.head!==r.tail;){const i=new Q;i.insert(r.remove(r.head)),n.insert(n.createItem({type:"Rule",loc:e.loc,prelude:{type:"SelectorList",loc:e.prelude.loc,children:i},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}function gL(e){Qe(e,{visit:"Rule",reverse:!0,enter:mL})}const Im=1,bL=2,Ln=0,cr=1,ha=2,si=3,Hu=["top","right","bottom","left"],yL={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},Yu={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"};class kL{constructor(t){this.name=t,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}getValueSequence(t,n){const r=[];let i="";return t.value.type!=="Value"||t.value.children.some((function(a){let l=!1;switch(a.type){case"Identifier":switch(a.name){case"\\0":case"\\9":i=a.name;return;case"inherit":case"initial":case"unset":case"revert":l=a.name;break}break;case"Dimension":switch(a.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":l=
37a.unit;break}break;case"Hash":case"Number":case"Percentage":break;case"Function":if(a.name==="var")return!0;l=a.name;break;default:return!0}r.push({node:a,special:l,important:t.important})}))||r.length>n||typeof this.iehack=="string"&&this.iehack!==i?!1:(this.iehack=i,r)}canOverride(t,n){const r=this.sides[t];return!r||n.important&&!r.important}add(t,n){function r(){const i=this.sides,s=yL[t];if(s){if(!(s in i))return!1;const a=this.getValueSequence(n,1);if(!a||!a.length)return!1;for(const l in i)if(i[l]!==null&&i[l].special!==a[0].special)return!1;return this.canOverride(s,a[0])&&(i[s]=a[0]),!0}if(t===this.name){const a=this.getValueSequence(n,4);if(!a||!a.length)return!1;switch(a.length){case 1:a[cr]=a[Ln],a[ha]=a[Ln],a[si]=a[Ln];break;case 2:a[ha]=a[Ln],a[si]=a[cr];break;case 3:a[si]=a[cr];break}for(let l=0;l<4;l++)for(const c in i)if(i[c]!==null&&i[c].special!==a[l].special)return!1;for(let l=0;l<4;l++)this.canOverride(Hu[l],a[l])&&(i[Hu[l]]=a[l]);return!0}}return r.call(this)?(this.loc||(this.loc=n.loc),!0):!1}isOkToMinimize(){const t=this.sides.top,n=this.sides.right,r=this.sides.bottom,i=this.sides.left;if(t&&n&&r&&i){const s=t.important+n.important+r.important+i.important;return s===0||s===4}return!1}getValue(){const t=new Q,n=this.sides,r=[n.top,n.right,n.bottom,n.left],i=[Dt(n.top.node),Dt(n.right.node),Dt(n.bottom.node),Dt(n.left.node)
37];i[si]===i[cr]&&(r.pop(),i[ha]===i[Ln]&&(r.pop(),i[cr]===i[Ln]&&r.pop()));for(let s=0;s<r.length;s++)t.appendData(r[s].node);return this.iehack&&t.appendData({type:"Identifier",loc:null,name:this.iehack}),{type:"Value",loc:null,children:t}}getDeclaration(){return{type:"Declaration",loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}}}function vL(e,t,n,r){const i=e.block.children,s=e.prelude.children.first.id;return e.block.children.forEachRight((function(a,l){const c=a.property;if(!Yu.hasOwnProperty(c))return;const o=Yu[c];let u,h;if((!r||s===r)&&o in t&&(h=bL,u=t[o]),(!u||!u.add(c,a))&&(h=Im,u=new kL(o),!u.add(c,a))){r=null;return}t[o]=u,n.push({operation:h,block:i,item:l,shorthand:u}),r=s})),r}function wL(e,t){e.forEach((function(n){const r=n.shorthand;r.isOkToMinimize()&&(n.operation===Im?n.item.data=t(r.getDeclaration()):n.block.remove(n.item))}))}function xL(e,t){const n={},r=[];Qe(e,{visit:"Rule",reverse:!0,enter(i){const s=this.block||this.stylesheet,a=(i.pseudoSignature||"")+"|"+i.prelude.children.first.id;let l,c;n.hasOwnProperty(s.id)?l=n[s.id]:(l={lastShortSelector:null},n[s.id]=l),l.hasOwnProperty(a)?c=l[a]:(c={},l[a]=c),l.lastShortSelector=vL.call(this,i,c,r,l.lastShortSelector)}}),wL(r,t.declaration)}let SL=1;const CL=new Set(["src"]),Xu={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},Qu={cursor:["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],overflow:["hidden","visible","scroll","auto"],position:["static","relative","absolute","fixed"]},Ku={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};function Mm(e,t,n){const r=Xn(e).basename;if(r==="background")return e+":"+Dt(t.value);const i=t.id;let s=n[i];if(!s){switch(t.value.type){case"Value":const a={};let l="",c="",o=!1;t.value.children.forEach((function u(h){switch(h.type){case"Value":case"Brackets":case"Parentheses":h.children.forEach(u);break;case"Raw":o=!0;break;case"Identifier":{const{name:p}=h;l||(l=wt(p).vendor),/\\[09]/.test(p)&&(c=RegExp.lastMatch),Qu.hasOwnProperty(r)?Qu[r].indexOf(p)===-1&&(a[p]=!0):Xu.hasOwnProperty(r)&&Xu[r].test(p)&&(a[p]=!0);break}case"Function":{let{name:p}=h;l||(l=wt(p).vendor),p==="rect"&&(h.children.some((m=>m.type==="Operator"&&m.value===","))||(p="rect-backward")),a[p+"()"]=!0,h.children.forEach(u);break}case"Dimension":{const{unit:p}=h;switch(/\\[09]/.test(p)&&(c=RegExp.lastMatch),p){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":a[p]=!0;break}break}}})),s=o?"!"+SL++:"!"+Object.keys(a).sort()+"|"+c+l;break;case"Raw":s="!"+t.value.value;break;default:s=Dt(t.value)}n[i]=s}return e+s}
37function AL(e,t,n){const r=Xn(t.property);if(Ku.hasOwnProperty(r.basename)){const i=Ku[r.basename];for(const s of i){const a=Mm(r.prefix+s,t,n),l=e.hasOwnProperty(a)?e[a]:null;if(l&&(!t.important||l.item.data.important))return l}}}function $L(e,t,n,r,i){const s=e.block.children;s.forEachRight((function(a,l){const{property:c}=a,o=Mm(c,a,i),u=r[o];u&&!CL.has(c)?a.important&&!u.item.data.important?(r[o]={block:s,item:l},u.block.remove(u.item)):s.remove(l):AL(r,a,i)?s.remove(l):(a.fingerprint=o,r[o]={block:s,item:l})})),s.isEmpty&&n.remove(t)}function EL(e){const t={},n=Object.create(null);Qe(e,{visit:"Rule",reverse:!0,enter(r,i,s){const a=this.block||this.stylesheet,l=(r.pseudoSignature||"")+"|"+r.prelude.children.first.id;let c,o;t.hasOwnProperty(a.id)?c=t[a.id]:(c={},t[a.id]=c),c.hasOwnProperty(l)?o=c[l]:(o={},c[l]=o),$L.call(this,r,i,s,o,n)}})}function TL(e,t,n){const r=e.prelude.children,i=e.block.children,s=r.first.compareMarker,a={};n.nextUntil(t.next,(function(l,c){if(l.type!=="Rule")return cs.call(r,l);if(e.pseudoSignature!==l.pseudoSignature)return!0;const o=l.prelude.children.head,u=l.block.children,h=o.data.compareMarker;if(h in a)return!0;if(r.head===r.tail&&r.first.id===o.data.id){i.appendList(u),n.remove(c);return}if(Pm(i,u)){const p=o.data.id;r.some(((d,m)=>{const b=d.id;if(p<b)return r.insert(o,m),!0;if(!m.next)return r.insert(o),!0})),n.remove(c);return}if(h===s)return!0;a[h]=!0}))}function OL(e){Qe(e,{visit:"Rule",enter:TL})}function pa(e){return e.reduce(((t,n)=>t+n.id.length+1),0)-1}function fa(e){let t=0;for(const n of e)t+=n.length;return t+e.length-1}
37function _L(e,t,n){const r=this.block!==null&&this.block.avoidRulesMerge,i=e.prelude.children,s=e.block,a=Object.create(null);let l=!0,c=!0;n.prevUntil(t.prev,(function(o,u){const h=o.block,p=o.type;if(p!=="Rule"){const b=cs.call(i,o);return!b&&p==="Atrule"&&h&&Qe(h,{visit:"Rule",enter(S){S.prelude.children.forEach((w=>{a[w.compareMarker]=!0}))}}),b}if(e.pseudoSignature!==o.pseudoSignature)return!0;const d=o.prelude.children;if(c=!d.some((b=>b.compareMarker in a)),!c&&!l)return!0;if(l&&Lm(d,i))return h.children.appendList(s.children),n.remove(t),!0;const m=pL(s.children,h.children);if(m.eq.length){if(!m.ne1.length&&!m.ne2.length)return c&&(xr(i,d),n.remove(u)),!0;if(!r)if(m.ne1.length&&!m.ne2.length){const b=pa(i),S=fa(m.eq);l&&b<S&&(xr(d,i),s.children.fromArray(m.ne1))}else if(!m.ne1.length&&m.ne2.length){const b=pa(d),S=fa(m.eq);c&&b<S&&(xr(i,d),h.children.fromArray(m.ne2))}else{const b={type:"SelectorList",loc:null,children:xr(d.copy(),i)},S=pa(b.children)+2;if(fa(m.eq)>=S){const C=n.createItem({type:"Rule",loc:null,prelude:b,block:{type:"Block",loc:null,children:new Q().fromArray(m.eq)},pseudoSignature:e.pseudoSignature});return s.children.fromArray(m.ne1),h.children.fromArray(m.ne2overrided),l?n.insert(C,u):n.insert(C,t),!0}}}l&&(l=!d.some((b=>i.some((S=>S.compareMarker===b.compareMarker))))),d.forEach((b=>{a[b.compareMarker]=!0}))}))}function LL(e){Qe(e,{visit:"Rule",reverse:!0,enter:_L})}function PL(e,t){const n=oL(e,t);t.logger("prepare",e),uL(e,t),t.logger("mergeAtrule",e),dL(e),t.logger("initialMergeRuleset",e),gL(e),t.logger("disjoinRuleset",e),xL(e,n),t.logger("restructShorthand",e),EL(e),t.logger("restructBlock",e),OL(e),t.logger("mergeRuleset",e),LL(e),t.logger("restructRuleset",e)}function NL(e,t){const n=new Q;let r=!1,i;return e.nextUntil(e.head,((s,a,l)=>{if(s.type==="Comment"){if(!t||s.value.charAt(0)!=="!"){l.remove(a);return}if(r||i)return!0;l.remove(a),i=s;return}s.type!=="WhiteSpace"&&(r=!0),n.insert(l.remove(a))})),{comment:i,stylesheet:{type:"StyleSheet",loc:null,children:n}}}function IL(e,t,n,r){r.logger(`Compress block #${n}`,null,!0);let i=1;return e.type==="StyleSheet"&&(e.firstAtrulesAllowed=t,e.id=i++),Qe(e,{visit:"Atrule",enter(s){s.block!==null&&(s.block.id=i++)}}),r.logger("init",e),N_(e,r),r.logger("clean",e),J_(e),r.logger("replace",e),r.restructuring&&PL(e,r),e}function ML(e){let t="comments"in e?e.comments:"exclamation";return typeof t=="boolean"?t=!!t&&"exclamation":t!=="exclamation"&&t!=="first-exclamation"&&(t=!1),t}function RL(e){return"restructure"in e?e.restructure:!("restructuring"in e)||e.restructuring}function DL(e){return new Q().appendData({type:"Rule",loc:null,prelude:{type:"SelectorList",loc:null,children:new Q().appendData({type:"Selector",loc:null,children:new Q().appendData({type:"TypeSelector",loc:null,name:"x"})})},block:e})}function zL(e,t){e=e||{type:"StyleSheet",loc:null,children:new Q},t=t||{};const n={logger:typeof t.logger=="function"?t.logger:function(){}
37,restructuring:RL(t),forceMediaMerge:!!t.forceMediaMerge,usage:!!t.usage&&C_(t.usage)},r=new Q;let i=ML(t),s=!0,a,l,c=1,o;t.clone&&(e=ho(e)),e.type==="StyleSheet"?(a=e.children,e.children=r):a=DL(e);do{if(l=NL(a,!!i),IL(l.stylesheet,s,c++,n),o=l.stylesheet.children,l.comment&&(r.isEmpty||r.insert(Q.createItem({type:"Raw",value:` 38`})),r.insert(Q.createItem(l.comment)),o.isEmpty||r.insert(Q.createItem({type:"Raw",value:` 39`}))),s&&!o.isEmpty){const u=o.last;(u.type!=="Atrule"||u.name!=="import"&&u.name!=="charset")&&(s=!1)}i!=="exclamation"&&(i=!1),r.appendList(o)}while(!a.isEmpty);return{ast:e}}function Zu(e){const t=lo(e,!0),n=lo(e);return t.length<n.length?t:n}const{lexer:FL,tokenize:jL,parse:qL,generate:UL,walk:GL,find:BL,findLast:VL,findAll:WL,fromPlainObject:HL,toPlainObject:YL}=x_({node:{String:{generate(e){this.token(Ct,Zu(e.value))}},Url:{generate(e){const t=wm(e.value),n=Zu(e.value);this.token(Te,t.length<=n.length+5?t:"url("+n+")")}}}});var XL=Object.freeze({__proto__:null,compress:zL,find:BL,findAll:WL,findLast:VL,fromPlainObject:HL,generate:UL,lexer:FL,parse:qL,specificity:Zn,toPlainObject:YL,tokenize:jL,walk:GL});const{parse:QL,generate:po,compress:KL}=XL;function Pn(e,t,n,r){return t.debug&&console.error(`## ${e} done in %d ms 40`,Date.now()-n),r}function ZL(e){let t;return function(r,i){let s=r;if(i&&(s=`[${((Date.now()-t)/1e3).toFixed(3)}s] ${s}`),e>1&&i){let a=po(i);e===2&&a.length>256&&(a=a.substr(0,256)+"..."),s+=` 41 ${a} 42`}console.error(s),t=Date.now()}}function JL(e){return e={...e},typeof e.logger!="function"&&e.debug&&(e.logger=ZL(e.debug)),e}function Ju(e,t,n){Array.isArray(n)||(n=[n]),n.forEach((r=>r(e,t)))}function Rm(e,t,n){n=n||{};const r=n.filename||"<unknown>";let i;const s=Pn("parsing",n,Date.now(),QL(t,{context:e,filename:r,positions:!!n.sourceMap}));n.beforeCompress&&Pn("beforeCompress",n,Date.now(),Ju(s,n,n.beforeCompress));const a=Pn("compress",n,Date.now(),KL(s,JL(n)));return n.afterCompress&&Pn("afterCompress",n,Date.now(),Ju(a,n,n.afterCompress)),i=n.sourceMap?Pn("generate(sourceMap: true)",n,Date.now(),(()=>{const l=po(a.ast,{sourceMap:!0});return l.map._file=r,l.map.setSourceContent(r,t),l})()):Pn("generate",n,Date.now(),{css:po(a.ast),map:null}),i}function eP(e,t){return Rm("stylesheet",e,t)}function tP(e,t){return Rm("declarationList",e,t)}const ai=ct.skip,eh=(e,t)=>{const n=[];e.block.children.forEach((i=>{i.type==="Declaration"&&n.push({name:i.property,value:et(i.value),important:i.important===!0})}));const r=[];return ct(e.prelude,(i=>{if(i.type==="Selector"){const s=Ya(i);let a=!1;ct(s,((l,c,o)=>{l.type==="PseudoClassSelector"&&(a=!0,o.remove(c))})),r.push({specificity:Zn(i),dynamic:a||t,selector:et(s),declarations:n})}})),r},nP=(e,t)=>{const n=[],r=Hn(e,{parseValue:!1,parseAtrulePrelude:!1});return ct(r,(i=>{if(i.type==="Rule")return n.push(...eh(i,t||!1)),ai;if(i.type==="Atrule")return["keyframes","-webkit-keyframes","-o-keyframes","-moz-keyframes"].includes(i.name)||ct(i,(s=>{if(s.type==="Rule")return n.push(...eh(s,t||!0)),ai})),ai})),n},rP=e=>{const t=[],n=Hn(e,{context:"declarationList",parseValue:!1});return ct(n,(r=>{r.type==="Declaration"&&t.push({name:r.property,value:et(r.value),important:r.important===!0})})),t},th=(e,t,n)=>{const r={},i=new Map;for(const[a,l]of Object.entries(t.attributes))Me.presentation.has(a)&&(r[a]={type:"static",inherited:!1,value:l},i.set(a,!1));for(const{selector:a,declarations:l,dynamic:c}of e.rules)if(Fy(t,a,n))for(const{name:o,value:u,important:h}of l){const p=r[o];if(!(p&&p.type==="dynamic")){if(c){r[o]={type:"dynamic",inherited:!1};continue}(p==null||h===!0||i.get(o)===!1)&&(r[o]={type:"static",inherited:!1,value:u},i.set(o,h))}}const s=t.attributes.style==null?[]:rP(t.attributes.style);for(const{name:a,value:l,important:c}of s){const o=r[a];o&&o.type==="dynamic"||(o==null||c===!0||i.get(a)===!1)&&(r[a]={type:"static",inherited:!1,value:l},i.set(a,c))}return r},Dm=(e,t)=>{for(let n=0;n<4;n+=1){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},Tt=e=>{const t=[],n=new Map;return zt(e,{element:{enter:(r,i)=>{if(n.set(r,i),r.name==="style"&&(r.attributes.type==null||r.attributes.type===""||r.attributes.type==="text/css")){const s=r.attributes.media!=null&&r.attributes.media!=="all";for(const a of r.children)a.type!=="text"&&a.type!=="cdata"||t.push(...nP(a.value,s))}}}}),t.sort(((r,i)=>Dm(r.specificity,i.specificity))),{rules:t,parents:n}},$t=(e,t)=>{const{parents:n}=e,r=th(e,t,n);let i=n.get(t);for(;i!=null&&i.type!=="root";){const s=th(e,i,n);for(const[a,l]of Object.entries(s))r[a]==null&&Wi.has(a)&&!To.has(a)&&(r[a]={...l,inherited:!0});i=n.get(i)}return r},da=(e,t,n=null,r=!1)=>{const i=Gi(typeof e=="string"?e:et(e.data));for(const s of i)if(s.some(((l,c)=>r&&(c===s.length-1||!Uh(s[c+1]))||l.type!=="attribute"||l.name!==t?!1:n==null||l.value===n)))return!0;return!1},iP="removeDeprecatedAttrs",sP="removes deprecated attributes";function aP(e){const t=new Set;
42return e.rules.forEach((n=>{Gi(n.selector).forEach((i=>{i.forEach((s=>{s.type==="attribute"&&t.add(s.name)}))}))})),t}function nh(e,t,n,r){t&&(t.safe&&t.safe.forEach((i=>{r.has(i)||delete e.attributes[i]})),n.removeUnsafe&&t.unsafe&&t.unsafe.forEach((i=>{r.has(i)||delete e.attributes[i]})))}function oP(e,t){const n=Tt(e),r=aP(n);return{element:{enter:i=>{const s=Eo[i.name];s&&(s.attrsGroups.has("core")&&i.attributes["xml:lang"]&&!r.has("xml:lang")&&i.attributes.lang&&delete i.attributes["xml:lang"],s.attrsGroups.forEach((a=>{nh(i,Qy[a],t,r)})),nh(i,s.deprecated,t,r))}}}}var zm=Object.freeze({__proto__:null,description:sP,fn:oP,name:iP});const lP="removeMetadata",cP="removes <metadata>",uP=()=>({element:{enter:(e,t)=>{e.name==="metadata"&&X(e,t)}}});var Fm=Object.freeze({__proto__:null,description:cP,fn:uP,name:lP});const hP="removeEditorsNSData",pP="removes editors namespaces, elements and attributes",fP=(e,t)=>{let n=[..._l];Array.isArray(t.additionalNamespaces)&&(n=[..._l,...t.additionalNamespaces]);const r=[];return{element:{enter:(i,s)=>{if(i.name==="svg")for(const[a,l]of Object.entries(i.attributes))a.startsWith("xmlns:")&&n.includes(l)&&(r.push(a.slice(6)),delete i.attributes[a]);for(const a of Object.keys(i.attributes))if(a.includes(":")){const[l]=a.split(":");r.includes(l)&&delete i.attributes[a]}if(i.name.includes(":")){const[a]=i.name.split(":");r.includes(a)&&X(i,s)}}}}};var jm=Object.freeze({__proto__:null,description:pP,fn:fP,name:hP});const dP="cleanupAttrs",mP="cleanups attributes from newlines, trailing and repeating spaces",gP=/(\S)\r?\n(\S)/g,bP=/\r?\n/g,yP=/\s{2,}/g,kP=(e,t)=>{const{newlines:n=!0,trim:r=!0,spaces:i=!0}=t;return{element:{enter:s=>{for(const a of Object.keys(s.attributes))n&&(s.attributes[a]=s.attributes[a].replace(gP,((l,c,o)=>c+" "+o)),s.attributes[a]=s.attributes[a].replace(bP,"")),r&&(s.attributes[a]=s.attributes[a].trim()),i&&(s.attributes[a]=s.attributes[a].replace(yP," "))}}}};var qm=Object.freeze({__proto__:null,description:mP,fn:kP,name:dP});const vP="mergeStyles",wP="merge multiple style elements into one",xP=()=>{let e=null,t="",n="text";return{element:{enter:(r,i)=>{if(r.name==="foreignObject")return Wt;if(r.name!=="style"||r.attributes.type!=null&&r.attributes.type!==""&&r.attributes.type!=="text/css")return;let s="";for(const a of r.children)a.type==="text"&&(s+=a.value),a.type==="cdata"&&(n="cdata",s+=a.value);if(s.trim().length===0){X(r,i);return}if(r.attributes.media==null?t+=s:(t+=`@media ${r.attributes.media}{${s}}`,delete r.attributes.media),e==null)e=r;else{X(r,i);const a={type:n,value:t};e.children=[a]}}}}};var Um=Object.freeze({__proto__:null,description:wP,fn:xP,name:vP});const SP="inlineStyles",CP="inline styles (additional options)",AP=[...Nl.functional,...Nl.treeStructural],$P=(e,t)=>{const{onlyMatchedOnce:n=!0,removeMatchedSelectors:r=!0,useMqs:i=["","screen"],usePseudos:s=[""]}=t,a=[],l=[];return{element:{enter:(c,o)=>{if(c.name==="foreignObject")return Wt;if(c.name!=="style"||c.children.length===0||c.attributes.type!=null&&c.attributes.type!==""&&c.attributes.type!=="text/css")return;const u=c.children.filter((p=>p.type==="text"||p.type==="cdata")).map((p=>p.value)).join("");let h=null;try{h=Hn(u,{parseValue:!1,parseCustomProperty:!1})}catch{return}h.type==="StyleSheet"&&a.push({node:c,parentNode:o,cssAst:h}),ct(h,{visit:"Rule",enter(p){const d=this.atrule;let m="";d!=null&&(m=d.name,d.prelude!=null&&(m+=` ${et(d.prelude)}`)),i.includes(m)&&p.prelude.type==="SelectorList"&&p.prelude.children.forEach(((b,S)=>{if(b.type==="Selector"){const w=[];b.children.forEach(((_,E,y)=>{(_.type==="PseudoClassSelector"||_.type==="PseudoElementSelector")&&!AP.includes(_.name)&&w.push({item:E,list:y})}));const C=et({type:"Selector",children:new Bt().fromArray(w.map((_=>_.item.data)))});if(s.includes(C))for(const _ of w)_.list.remove(_.item);l.push({node:b,rule:p,item:S})}}))}})}},root:{exit:()=>{if(a.length===0)return;const c=l.slice().sort(((o,u)=>{const h=Zn(o.item.data),p=Zn(u.item.data);return Dm(h,p)})).reverse();for(const o of c){const u=et(o.item.data),h=[];try{for(const p of _r(e,u))p.type==="element"&&h.push(p)}catch{continue}if(h.length!==0&&!(n&&h.length>1)){for(const p of h){const d=Hn(p.attributes.style??"",{context:"declarationList",parseValue:!1});if(d.type!=="DeclarationList")continue;const m=new Map;let b;ct(d,{visit:"Declaration",enter(w,C){b==null&&(b=C),m.set(w.property.toLowerCase(),C)}}),ct(o.rule,{visit:"Declaration",enter(w){const C=w.property;Me.presentation.has(C)&&!l.some((y=>da(y.item,C)))&&delete p.attributes[C];const _=m.get(C),E=d.children.createItem(w);_==null?d.children.insert(E,b):_.data.important!==!0&&w.important===!0&&(d.children.replace(_,E),m.set(C,E))}});const S=et(d);S.length!==0&&(p.attributes.style=S)}r&&h.length!==0&&o.rule.prelude.type==="SelectorList"&&o.rule.prelude.children.remove(o.item),o.matchedElements=h}}if(r){for(const o of c)if(o.matchedElements!=null&&!(n&&o.matchedElements.length>1))for(const u of o.matchedElements){const h=new Set(u.attributes.class==null?null:u.attributes.class.split(" "));for(const d of o.node.children)d.type!=="ClassSelector"||l.some((m=>
42da(m.item,"class",d.name,!0)))||h.delete(d.name);h.size===0?delete u.attributes.class:u.attributes.class=Array.from(h).join(" ");const p=o.node.children.first;p?.type!=="IdSelector"||u.attributes.id!==p.name||l.some((d=>da(d.item,"id",p.name,!0)))||delete u.attributes.id}for(const o of a)if(ct(o.cssAst,{visit:"Rule",enter:function(u,h,p){u.type==="Rule"&&u.prelude.type==="SelectorList"&&u.prelude.children.isEmpty&&p.remove(h)}}),o.cssAst.children.isEmpty)X(o.node,o.parentNode);else{const u=o.node.children[0];u.type!=="text"&&u.type!=="cdata"||(u.value=et(o.cssAst))}}}}}};var Gm=Object.freeze({__proto__:null,description:CP,fn:$P,name:SP});const Bm=/\burl\((["'])?#(.+?)\1\)/g,EP=/^#(.+?)$/,TP=/(\w+)\.[a-zA-Z]/,OP=(e,t)=>{let n="data:image/svg+xml";return t&&t!=="base64"?t==="enc"?e=n+","+encodeURIComponent(e):t==="unenc"&&(e=n+","+e):(n+=";base64,",e=n+Buffer.from(e).toString("base64")),e},Jn=(e,t,n)=>{let r="",i,s;return e.forEach(((a,l)=>{i=" ",l==0&&(i=""),t.noSpaceAfterFlags&&n=="a";const c=t.leadingZero?gn(a):a.toString();t.negativeExtraSpace&&i!=""&&(a<0||c.charAt(0)==="."&&s%1!==0)&&(i=""),s=a,r+=i+c})),r},gn=e=>{const t=e.toString();return 0<e&&e<1&&t.startsWith("0")?t.slice(1):-1<e&&e<0&&t[1]==="0"?t[0]+t.slice(2):t},us=e=>e.name==="script"&&e.children.length!==0||e.name==="a"&&Object.entries(e.attributes).some((([r,i])=>(r==="href"||r.endsWith(":href"))&&i!=null&&i.trimStart().startsWith("javascript:")))?!0:[...Me.animationEvent,...Me.documentEvent,...Me.documentElementEvent,...Me.globalEvent,...Me.graphicalEvent].some((n=>e.attributes[n]!=null)),hs=e=>new RegExp(Bm).test(e),Vm=(e,t)=>{const n=[];if(Vi.has(e)){const r=t.matchAll(Bm);for(const i of r)n.push(i[2])}if(e==="href"||e.endsWith(":href")){const r=EP.exec(t);r!=null&&n.push(r[1])}if(e==="begin"){const r=TP.exec(t);r!=null&&n.push(r[1])}return n.map((r=>decodeURI(r)))},Vt=(e,t)=>{const n=10**t;return Math.round(e*n)/n},_P="minifyStyles",LP="minifies styles and removes unused styles",PP=(e,{usage:t,...n})=>{const r=new Map,i=[],s=new Set,a=new Set,l=new Set;let c=!0,o=!0,u=!0,h=!1;typeof t=="boolean"?(c=t,o=t,u=t):t&&(c=t.tags==null||t.tags,o=t.ids==null||t.ids,u=t.classes==null||t.classes,h=t.force!=null&&t.force);let p=!1;return{element:{enter:(d,m)=>{if(us(d)&&(p=!0),s.add(d.name),d.attributes.id!=null&&a.add(d.attributes.id),d.attributes.class!=null)for(const b of d.attributes.class.split(/\s+/))l.add(b);d.name==="style"&&d.children.length!==0?r.set(d,m):d.attributes.style!=null&&i.push(d)}},root:{exit:()=>{const d={};(!p||h)&&(c&&(d.tags=Array.from(s)),o&&(d.ids=Array.from(a)),u&&(d.classes=Array.from(l)));for(const[m,b]of r.entries())if(m.children[0].type==="text"||m.children[0].type==="cdata"){const S=m.children[0].value,w=eP(S,{...n,usage:d}).css;if(w.length===0){X(m,b);continue}S.indexOf(">")>=0||S.indexOf("<")>=0?(m.children[0].type="cdata",m.children[0].value=w):(m.children[0].type="text",m.children[0].value=w)}for(const m of i){const b=m.attributes.style;m.attributes.style=tP(b,{...n}).css}}}}};var Wm=Object.freeze({__proto__:null,description:LP,fn:PP,name:_P});const NP="cleanupIds",IP="removes unused IDs and minifies used",Hm=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],rh=Hm.length-1,MP=(e,t)=>
42{for(const n of t)if(e.startsWith(n))return!0;return!1},RP=e=>{if(e==null)return[0];e[e.length-1]+=1;for(let t=e.length-1;t>0;t--)e[t]>rh&&(e[t]=0,e[t-1]!==void 0&&e[t-1]++);return e[0]>rh&&(e[0]=0,e.unshift(0)),e},DP=e=>e.map((t=>Hm[t])).join(""),zP=(e,t)=>{const{remove:n=!0,minify:r=!0,preserve:i=[],preservePrefixes:s=[],force:a=!1}=t,l=new Set(Array.isArray(i)?i:i?[i]:[]),c=Array.isArray(s)?s:s?[s]:[],o=new Map,u=new Map;let h=!1;return{element:{enter:p=>{if(!a){if(p.name==="style"&&p.children.length!==0||us(p)){h=!0;return}if(p.name==="svg"){let d=!0;for(const m of p.children)if(m.type!=="element"||m.name!=="defs"){d=!1;break}if(d)return Wt}}for(const[d,m]of Object.entries(p.attributes))if(d==="id"){const b=m;o.has(b)?delete p.attributes.id:o.set(b,p)}else{const b=Vm(d,m);for(const S of b){let w=u.get(S);w==null&&(w=[],u.set(S,w)),w.push({element:p,name:d})}}}},root:{exit:()=>{if(h)return;const p=m=>l.has(m)||MP(m,c);let d=null;for(const[m,b]of u){const S=o.get(m);if(S!=null){if(r&&p(m)===!1){let w;do d=RP(d),w=DP(d);while(p(w)||u.has(w)&&o.get(w)==null);S.attributes.id=w;for(const{element:C,name:_}of b){const E=C.attributes[_];E.includes("#")?C.attributes[_]=E.replace(`#${encodeURI(m)}`,`#${w}`).replace(`#${m}`,`#${w}`):C.attributes[_]=E.replace(`${m}.`,`${w}.`)}}o.delete(m)}}if(n)for(const[m,b]of o)p(m)===!1&&delete b.attributes.id}}}};var Ym=Object.freeze({__proto__:null,description:IP,fn:zP,name:NP});const FP="removeUselessDefs",jP="removes elements in <defs> without id",qP=()=>({element:{enter:(e,t)=>{if(e.name==="defs"||on.nonRendering.has(e.name)&&e.attributes.id==null){const n=[];Xm(e,n),n.length===0&&X(e,t),e.children=n}}}}),Xm=(e,t)=>{for(const n of e.children)n.type==="element"&&(n.attributes.id!=null||n.name==="style"?t.push(n):Xm(n,t))};var Qm=Object.freeze({__proto__:null,description:jP,fn:qP,name:FP});const UP="cleanupNumericValues",GP='rounds numeric values to the fixed precision, removes default "px" units',BP=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,ih={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1},VP=(e,t)=>{const{floatPrecision:n=3,leadingZero:r=!0,defaultPx:i=!0,convertToPx:s=!0}=t;return{element:{enter:a=>{if(a.attributes.viewBox!=null){const l=a.attributes.viewBox.trim().split(/(?:\s,?|,)\s*/g);a.attributes.viewBox=l.map((c=>{const o=Number(c);return Number.isNaN(o)?c:Number(o.toFixed(n))})).join(" ")}for(const[l,c]of Object.entries(a.attributes)){if(l==="version")continue;const o=BP.exec(c);if(o){let u=Number(Number(o[1]).toFixed(n)),p=o[3]||"";if(s&&p!==""&&p in ih){const m=Number((ih[p]*Number(o[1])).toFixed(n));m.toString().length<o[0].length&&(u=m,p="px")}let d;d=r?gn(u):u.toString(),i&&p==="px"&&(p=""),a.attributes[l]=d+p}}}}}};var Km=Object.freeze({__proto__:null,description:GP,fn:VP,name:UP});const WP="convertColors",HP="converts colors: rgb() to #rrggbb and #rrggbb to #rgb",ma="([+-]?(?:\\d*\\.\\d+|\\d+\\.?)%?)",sh="(?:\\s*,\\s*|\\s+)",YP=new RegExp("^rgb\\(\\s*"+ma+sh+ma+sh+ma+"\\s*\\)$"),XP=/^#(([a-fA-F0-9])\2){3}$/,QP=([e,t,n])=>"#"+((256+e<<8|t)<<8|n).toString(16).slice(1).toUpperCase(),KP=(e,t)=>{const{currentColor:n=!1,names2hex:r=!0,rgb2hex:i=!0,convertCase:s="lower",shorthex:a=!0,shortname:l=!0}=t;let c=0;return{element:{enter:o=>{o.name==="mask"&&c++;for(const[u,h]of Object.entries(o.attributes))if(Ia.has(u)){let p=h;if(n&&c===0){let d;d=typeof n=="string"?p===n:n instanceof RegExp?n.exec(p)!=null:p!=="none",d&&(p="currentColor")}if(r){const d=p.toLowerCase();Ll[d]!=null&&(p=Ll[d])}if(i){const d=p.match(YP);if(d!=null){const m=d.slice(1,4).map((b=>{let S;return S=b.indexOf("%")>-1?Math.round(parseFloat(b)*2.55):Number(b),Math.max(0,Math.min(S,255))}));p=QP(m)}}if(s&&!hs(p)&&p!=="currentColor"&&(s==="lower"?p=p.toLowerCase():s==="upper"&&(p=p.toUpperCase())),a){const d=XP.exec(p);d!=null&&(p="#"+d[0][1]+d[0][3]+d[0][5])}if(l){const d=p.toLowerCase();Pl[d]!=null&&(p=Pl[d])}o.attributes[u]=p}},exit:o=>{o.name==="mask"&&c--}}}};var Zm=Object.freeze({__proto__:null,description:HP,fn:KP,name:WP});const ZP="removeUnknownsAndDefaults",JP="removes unknown elements content and attributes, removes attrs with default values",fo=new Map,Jm=new Map,eg=new Map;for(const[e,t]of Object.entries(Eo)){const n=new Set;if(t.content)for(const s of t.content)n.add(s);if(t.contentGroups)for(const s of t.contentGroups){const a=on[s];if(a)for(const l of a)n.add(l)}const r=new Set;if(t.attrs)for(const s of t.attrs)r.add(s);const i=new Map;if(t.defaults)for(const[s,a]of Object.entries(t.defaults))i.set(s,a);for(const s of t.attrsGroups){const a=Me[s];if(a)for(const c of a)r.add(c);const l=$o[s];if(l)for(const[c,o]of Object.entries(l))i.set(c,o)}fo.set(e,n),Jm.set(e,r),eg.set(e,i)}const eN=(e,t)=>{const{unknownContent:n=!0,unknownAttrs:r=!0,defaultAttrs:i=!0,defaultMarkupDeclarations:s=!0,uselessOverrides:a=!0,keepDataAttrs:l=!0,keepAriaAttrs:c=!0,keepRoleAttr:o=!1}=t,u=Tt(e);return{instruction:{enter:h=>{s&&(h.value=h.value.replace(/\s*standalone\s*=\s*(["'])no\1/,""))}},element:{enter:(h,p)=>{if(h.name.includes(":"))return;if(h.name==="foreignObject")return Wt;if(n&&p.type==="element"){const S=fo.get(p.name);if(S==null||S.size===0){if(fo.get(h.name)==null){X(h,p);return}}else if(S.has(h.name)===!1){X(h,p);return}}const d=Jm.get(h.name),m=eg.get(h.name),b=p.type==="element"?$t(u,p):null;for(const[S,w]of Object.entries(h.attributes))if(!(l&&S.startsWith("data-"))&&!(c&&S.startsWith("aria-"))&&!(o&&S==="role")&&S!=="xmlns"){if(S.includes(":")){const[C]=S.split(":");if(C!=="xml"&&C!=="xlink")continue}if(r&&d&&d.has(S)===!1&&delete h.attributes[S],i&&h.attributes.id==null&&m&&m.get(S)===w&&b?.[S]==null&&delete h.attributes[S],a&&h.attributes.id==null){const C=b?.[S];To.has(S)===!1&&C!=null&&C.type==="static"&&C.value===w&&delete h.attributes[S]}}}}}};var tg=Object.freeze({__proto__:null,description:JP,fn:eN,name:ZP});const tN="removeNonInheritableGroupAttrs",nN="removes non-inheritable group's presentational attributes",rN=()=>({element:{enter:e=>{if(e.name==="g")for(const t of Object.keys(e.attributes))!Me.presentation.has(t)||Wi.has(t)||To.has(t)||delete e.attributes[t]}}});var ng=Object.freeze({__proto__:null,description:nN,fn:rN,name:tN});const iN="removeUselessStrokeAndFill",sN="removes useless stroke and fill attributes",aN=(e,t)=>{const{stroke:n=!0,fill:r=!0,removeNone:i=!1}=t;let s=!1;if(zt(e,{element:{enter:l=>{(l.name==="style"||us(l))&&(s=!0)}}}),s)return null;const a=Tt(e);return{element:{enter:(l,c)=>{if(l.attributes.id!=null)return Wt;if(!on.shape.has(l.name))return;const o=$t(a,l),u=o.stroke,h=o["stroke-opacity"],p=o["stroke-width"],d=o["marker-end"],m=o.fill,b=o["fill-opacity"],S=c.type==="element"?$t(a,c):null,w=S==null?null:S.stroke;if(n&&(u==null||u.type==="static"&&u.value=="none"||h!=null&&h.type==="static"&&h.value==="0"||p!=null&&p.type==="static"&&p.value==="0")&&(p!=null&&p.type==="static"&&p.value==="0"||d==null)){for(const C of Object.keys(l.attributes))C.startsWith("stroke")&&delete l.attributes[C];w!=null&&w.type==="static"&&w.value!=="none"&&(l.attributes.stroke="none")}if(r&&(m!=null&&m.type==="static"&&m.value==="none"||b!=null&&b.type==="static"&&b.value==="0")){for(const C of Object.keys(l.attributes))C.startsWith("fill-")&&delete l.attributes[C];(m==null||m.type==="static"&&m.value!=="none")&&(l.attributes.fill="none")}i&&(u!=null&&l.attributes.stroke!=="none"||(m==null||m.type!=="static"||m.value!=="none")&&l.attributes.fill!=="none"||X(l,c))}}}};var rg=Object.freeze({__proto__:null,description:sN,fn:aN,name:iN});
42const oN="cleanupEnableBackground",lN="remove or cleanup enable-background attribute when possible",cN=/^new\s0\s0\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)$/,uN=e=>{let t=!1;return zt(e,{element:{enter:n=>{n.name==="filter"&&(t=!0)}}}),{element:{enter:n=>{let r=null,i=null;if(n.attributes.style!=null&&(r=Hn(n.attributes.style,{context:"declarationList"}),r.type==="DeclarationList")){const a=[];ct(r,((l,c)=>{l.type==="Declaration"&&l.property==="enable-background"&&(a.push(c),i=c)}));for(let l=0;l<a.length-1;l++)r.children.remove(a[l])}if(!t){delete n.attributes["enable-background"],r?.type==="DeclarationList"&&(i&&r.children.remove(i),r.children.isEmpty?delete n.attributes.style:n.attributes.style=et(r));return}const s=n.attributes.width!=null&&n.attributes.height!=null;if((n.name==="svg"||n.name==="mask"||n.name==="pattern")&&s){const a=n.attributes["enable-background"],l=ah(a,n.name,n.attributes.width,n.attributes.height);if(l?n.attributes["enable-background"]=l:delete n.attributes["enable-background"],r?.type==="DeclarationList"&&i){const c=et(i.data.value),o=ah(c,n.name,n.attributes.width,n.attributes.height);o?i.data.value={type:"Raw",value:o}:r.children.remove(i)}}r?.type==="DeclarationList"&&(r.children.isEmpty?delete n.attributes.style:n.attributes.style=et(r))}}}},ah=(e,t,n,r)=>{const i=cN.exec(e);return i!=null&&n===i[1]&&r===i[3]?t==="svg"?void 0:"new":e};var ig=Object.freeze({__proto__:null,description:lN,fn:uN,name:oN});const sg={M:2,m:2,Z:0,z:0,L:2,l:2,H:1,h:1,V:1,v:1,C:6,c:6,S:4,s:4,Q:4,q:4,T:2,t:2,A:7,a:7},hN=e=>e in sg,pN=e=>e===" "||e===" "||e==="\r"||e===` 43`,ag=e=>{const t=e.codePointAt(0);return t==null?!1:48<=t&&t<=57},ga=(e,t)=>{let n=t,r="",i="none";for(;n<e.length;n+=1){const a=e[n];if(a==="+"||a==="-"){if(i==="none"){i="sign",r+=a;continue}if(i==="e"){i="exponent_sign",r+=a;continue}}if(ag(a)){if(i==="none"||i==="sign"||i==="whole"){i="whole",r+=a;continue}if(i==="decimal_point"||i==="decimal"){i="decimal",r+=a;continue}if(i==="e"||i==="exponent_sign"||i==="exponent"){i="exponent",r+=a;continue}}if(a==="."&&(i==="none"||i==="sign"||i==="whole")){i="decimal_point",r+=a;continue}if((a==="E"||a=="e")&&(i==="whole"||i==="decimal_point"||i==="decimal")){i="e",r+=a;continue}break}const s=Number.parseFloat(r);return Number.isNaN(s)?[t,null]:[n-1,s]},hl=e=>{const t=[];let n=null,r=[],i=0,s=!1,a=!1;for(let l=0;l<e.length;l+=1){const c=e.charAt(l);if(pN(c))continue;if(s&&c===","){if(a)break;a=!0;continue}if(hN(c)){if(a)return t;if(n==null){if(c!=="M"&&c!=="m")return t}else if(r.length!==0)return t;n=c,r=[],i=sg[n],s=!1,i===0&&t.push({command:n,args:r});continue}if(n==null)return t;let o=l,u=null;if(n==="A"||n==="a"){const h=r.length;h!==0&&h!==1||c!=="+"&&c!=="-"&&([o,u]=ga(e,l)),h!==2&&h!==5&&h!==6||([o,u]=ga(e,l)),(h===3||h===4)&&(c==="0"&&(u=0),c==="1"&&(u=1))}else[o,u]=ga(e,l);if(u==null)return t;r.push(u),s=!0,a=!1,l=o,r.length===i&&(t.push({command:n,args:r}),n==="M"&&(n="L"),n==="m"&&(n="l"),r=[])}return t},fN=(e,t)=>(t!=null&&(e=Vt(e,t)),{roundedStr:gn(e),rounded:e}),oi=(e,t,n,r)=>{let i="",s;for(let a=0;a<t.length;a++){const{roundedStr:l,rounded:c}=fN(t[a],n);!r||e!=="A"&&e!=="a"||a%7!==4&&a%7!==5?a===0||c<0?i+=l:Number.isInteger(s)||ag(l[0])?i+=` ${l}`:i+=l:i+=l,s=c}return i},In=({pathData:e,precision:t,disableSpaceAfterFlags:n})=>{if(e.length===1){const{command:s,args:a}=e[0];return s+oi(s,a,t,n)}let r="",i={...e[0]};e[1].command==="L"?i.command="M":e[1].command==="l"&&(i.command="m");for(let s=1;s<e.length;s++){const{command:a,args:l}=e[s];i.command===a&&i.command!=="M"&&i.command!=="m"||i.command==="M"&&a==="L"||i.command==="m"&&a==="l"?(i.args=[...i.args,...l],s===e.length-1&&(r+=i.command+oi(i.command,i.args,t,n))):(r+=i.command+oi(i.command,i.args,t,n),s===e.length-1?r+=a+oi(a,l,t,n):i={command:a,args:l})}return r},dN=on.nonRendering,mN="removeHiddenElems",gN="removes hidden elements (zero sized, with absent attributes)",bN=(e,t)=>{const{isHidden:n=!0,displayNone:r=!0,opacity0:i=!0,circleR0:s=!0,ellipseRX0:a=!0,ellipseRY0:l=!0,rectWidth0:c=!0,rectHeight0:o=!0,patternWidth0:u=!0,patternHeight0:h=!0,imageWidth0:p=!0,imageHeight0:d=!0,pathEmptyD:m=!0,polylineEmptyPoints:b=!0,polygonEmptyPoints:S=!0}=t,w=Tt(e),C=new Map,_=new Set,E=new Map,y=new Set,L=new Map;let N=!1;
43function k(x){if(y.has(x.attributes.id))return!1;for(const A of x.children)if(A.type==="element"&&!k(A))return!1;return!0}function v(x,A){x.type==="element"&&x.attributes.id!=null&&A.type==="element"&&A.name==="defs"&&_.add(x.attributes.id),X(x,A)}return zt(e,{element:{enter:(x,A)=>{if(dN.has(x.name))return C.set(x,A),Wt;const M=$t(w,x);if(i&&M.opacity&&M.opacity.type==="static"&&M.opacity.value==="0"){if(x.name==="path")return C.set(x,A),Wt;v(x,A)}}}}),{element:{enter:(x,A)=>{if(x.name==="style"&&x.children.length!==0||us(x)){N=!0;return}if(x.name==="defs"&&E.set(x,A),x.name==="use")for(const T of Object.keys(x.attributes)){if(T!=="href"&&!T.endsWith(":href"))continue;const G=x.attributes[T].slice(1);let j=L.get(G);j||(j=[],L.set(G,j)),j.push({node:x,parentNode:A})}const M=$t(w,x);if(n&&M.visibility&&M.visibility.type==="static"&&M.visibility.value==="hidden"&&ip(x,"[visibility=visible]")==null){v(x,A);return}if(r&&M.display&&M.display.type==="static"&&M.display.value==="none"&&x.name!=="marker"){v(x,A);return}if(s&&x.name==="circle"&&x.children.length===0&&x.attributes.r==="0"){v(x,A);return}if(a&&x.name==="ellipse"&&x.children.length===0&&x.attributes.rx==="0"){v(x,A);return}if(l&&x.name==="ellipse"&&x.children.length===0&&x.attributes.ry==="0"){v(x,A);return}if(c&&x.name==="rect"&&x.children.length===0&&x.attributes.width==="0"){v(x,A);return}if(o&&c&&x.name==="rect"&&x.children.length===0&&x.attributes.height==="0"){v(x,A);return}if(u&&x.name==="pattern"&&x.attributes.width==="0"){v(x,A);return}if(h&&x.name==="pattern"&&x.attributes.height==="0"){v(x,A);return}if(p&&x.name==="image"&&x.attributes.width==="0"){v(x,A);return}if(d&&x.name==="image"&&x.attributes.height==="0"){v(x,A);return}if(m&&x.name==="path"){if(x.attributes.d==null){v(x,A);return}const T=hl(x.attributes.d);if(T.length===0){v(x,A);return}if(T.length===1&&M["marker-start"]==null&&M["marker-end"]==null){v(x,A);return}}if(b&&x.name==="polyline"&&x.attributes.points==null){v(x,A);return}if(S&&x.name==="polygon"&&x.attributes.points==null){v(x,A);return}for(const[T,V]of Object.entries(x.attributes)){const G=Vm(T,V);for(const j of G)y.add(j)}}},root:{exit:()=>{for(const x of _){const A=L.get(x);if(A)for(const{node:M,parentNode:T}of A)X(M,T)}if(!N)for(const[x,A]of C.entries())k(x)&&X(x,A);for(const[x,A]of E.entries())x.children.length===0&&X(x,A)}}}};var og=Object.freeze({__proto__:null,description:gN,fn:bN,name:mN});const yN="removeEmptyText",kN="removes empty <text> elements",vN=(e,t)=>{const{text:n=!0,tspan:r=!0,tref:i=!0}=t;return{element:{enter:(s,a)=>{n&&s.name==="text"&&s.children.length===0&&X(s,a),r&&s.name==="tspan"&&s.children.length===0&&X(s,a),i&&s.name==="tref"&&s.attributes["xlink:href"]==null&&X(s,a)}}}};var lg=Object.freeze({__proto__:null,description:kN,fn:vN,name:yN});const wN="convertShapeToPath",xN="converts basic shapes to more compact path form",SN=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,CN=(e,t)=>{const{convertArcs:n=!1,floatPrecision:r}=t;return{element:{enter:(i,s)=>{if(i.name==="rect"&&i.attributes.width!=null&&i.attributes.height!=null&&i.attributes.rx==null&&i.attributes.ry==null){const a=Number(i.attributes.x||"0"),l=Number(i.attributes.y||"0"),c=Number(i.attributes.width),o=Number(i.attributes.height);if(Number.isNaN(a-l+c-o))return;const u=[{command:"M",args:[a,l]},{command:"H",args:[a+c]},{command:"V",args:[l+o]},{command:"H",args:[a]},{command:"z",args:[]}];i.name="path",i.attributes.d=In({pathData:u,precision:r}),delete i.attributes.x,delete i.attributes.y,delete i.attributes.width,delete i.attributes.height}if(i.name==="line"){const a=Number(i.attributes.x1||"0"),l=Number(i.attributes.y1||"0"),c=Number(i.attributes.x2||"0"),o=Number(i.attributes.y2||"0");if(Number.isNaN(a-l+c-o))return;const u=[{command:"M",args:[a,l]},{command:"L",args:[c,o]}];i.name="path",i.attributes.d=In({pathData:u,precision:r}),delete i.attributes.x1,delete i.attributes.y1,delete i.attributes.x2,delete i.attributes.y2}if((i.name==="polyline"||i.name==="polygon")&&i.attributes.points!=null){const a=(i.attributes.points.match(SN)||[]).map(Number);if(a.length<4){X(i,s);return}const l=[];for(let c=0;c<a.length;c+=2)l.push({command:c===0?"M":"L",args:a.slice(c,c+2)});i.name==="polygon"&&l.push({command:"z",args:[]}),i.name="path",i.attributes.d=In({pathData:l,precision:r}),delete i.attributes.points}if(i.name==="circle"&&n){const a=Number(i.attributes.cx||"0"),l=Number(i.attributes.cy||"0"),c=Number(i.attributes.r||"0");if(Number.isNaN(a-l+c))return;const o=[{command:"M",args:[a,l-c]},{command:"A",args:[c,c,0,1,0,a,l+c]},{command:"A",args:[c,c,0,1,0,a,l-c]},{command:"z",args:[]}];i.name="path",i.attributes.d=In({pathData:o,precision:r}),delete i.attributes.cx,delete i.attributes.cy,delete i.attributes.r}if(i.name==="ellipse"&&n){const a=Number(i.attributes.cx||"0"),l=Number(i.attributes.cy||"0"),c=Number(i.attributes.rx||"0"),o=Number(i.attributes.ry||"0");if(Number.isNaN(a-l+c-o))return;const u=[{command:"M",args:[a,l-o]},{command:"A",args:[c,o,0,1,0,a,l+o]},{command:"A",args:[c,o,0,1,0,a,l-o]},{command:"z",args:[]}];i.name="path",i.attributes.d=In({pathData:u,precision:r}),delete i.attributes.cx,delete i.attributes.cy,delete i.attributes.rx,delete i.attributes.ry}}}}};var cg=Object.freeze({__proto__:null,description:xN,fn:CN,name:wN});const AN="convertEllipseToCircle",$N="converts non-eccentric <ellipse>s to <circle>s",EN=()=>({element:{enter:e=>{if(e.name==="ellipse"){const t=e.attributes.rx||"0",n=e.attributes.ry||"0";if(t===n||t==="auto"||n==="auto"){e.name="circle";const r=t==="auto"?n:t;delete e.attributes.rx,delete e.attributes.ry,e.attributes.r=r}}}}});var ug=Object.freeze({__proto__:null,description:$N,fn:EN,name:A
43N});const TN="moveElemsAttrsToGroup",ON="Move common attributes of group children to the group",_N=e=>{let t=!1;return zt(e,{element:{enter:n=>{n.name==="style"&&(t=!0)}}}),{element:{exit:n=>{if(n.name!=="g"||n.children.length<=1||t)return;const r=new Map;let i=!0,s=!0;for(const a of n.children)if(a.type==="element")if(Ao.has(a.name)||(s=!1),i){i=!1;for(const[l,c]of Object.entries(a.attributes))Wi.has(l)&&r.set(l,c)}else for(const[l,c]of r)a.attributes[l]!==c&&r.delete(l);n.attributes.filter==null&&n.attributes["clip-path"]==null&&n.attributes.mask==null||r.delete("transform"),s&&r.delete("transform");for(const[a,l]of r)a==="transform"?n.attributes.transform!=null?n.attributes.transform=`${n.attributes.transform} ${l}`:n.attributes.transform=l:n.attributes[a]=l;for(const a of n.children)if(a.type==="element")for(const[l]of r)delete a.attributes[l]}}}};var hg=Object.freeze({__proto__:null,description:ON,fn:_N,name:TN});const LN="moveGroupAttrsToElems",PN="moves some group attributes to the content elements",NN=[...Ao,"g","text"],IN=()=>({element:{enter:e=>{if(e.name==="g"&&e.children.length!==0&&e.attributes.transform!=null&&Object.entries(e.attributes).some((([t,n])=>Vi.has(t)&&hs(n)))===!1&&e.children.every((t=>t.type==="element"&&NN.includes(t.name)&&t.attributes.id==null))){for(const t of e.children){const n=e.attributes.transform;t.type==="element"&&(t.attributes.transform!=null?t.attributes.transform=`${n} ${t.attributes.transform}`:t.attributes.transform=n)}delete e.attributes.transform}}}});var pg=Object.freeze({__proto__:null,description:PN,fn:IN,name:LN});const MN="collapseGroups",RN="collapses useless groups",fg=(e,t)=>{if(e.type==="element"){if(on.animation.has(e.name)&&e.attributes.attributeName===t)return!0;for(const n of e.children)if(fg(n,t))return!0}return!1},DN=e=>{const t=Tt(e);return{element:{exit:(n,r)=>{if(!(r.type==="root"||r.name==="switch")&&!(n.name!=="g"||n.children.length===0)){if(Object.keys(n.attributes).length!==0&&n.children.length===1){const i=n.children[0],s=!!(n.attributes.filter||$t(t,n).filter);if(i.type==="element"&&i.attributes.id==null&&!s&&(n.attributes.class==null||i.attributes.class==null)&&(n.attributes["clip-path"]==null&&n.attributes.mask==null||i.name==="g"&&n.attributes.transform==null&&i.attributes.transform==null)){const a={...i.attributes};for(const[l,c]of Object.entries(n.attributes)){if(fg(i,l))return;if(a[l]==null)a[l]=c;else if(l==="transform")a[l]=c+" "+a[l];else if(a[l]==="inherit")a[l]=c;else if(!Wi.has(l)&&a[l]!==c)return}n.attributes={},i.attributes=a}}if(Object.keys(n.attributes).length===0){for(const s of n.children)if(s.type==="element"&&on.animation.has(s.name))return;const i=r.children.indexOf(n);r.children.splice(i,1,...n.children)}}}}}};var dg=Object.freeze({__proto__:null,description:RN,fn:DN,name:MN});let _t;const ji=e=>{if(e.pathJS)return e.pathJS;const t=[],n=hl(e.attributes.d);for(const{command:r,args:i}of n)t.push({command:r,args:i});return t.length&&t[0].command=="m"&&(t[0].command="M"),e.pathJS=t,t},oh=e=>{const t=[],n=[0,0],r=[0,0];for(let{command:i,args:s}of e)s=s.slice(),i==="m"&&(s[0]+=r[0],s[1]+=r[1],i="M"),i==="M"&&(r[0]=s[0],r[1]=s[1],n[0]=r[0],n[1]=r[1]),i==="h"&&(s[0]+=r[0],i="H"),i==="H"&&(r[0]=s[0]),i==="v"&&(s[0]+=r[1],i="V"),i==="V"&&(r[1]=s[0]),i==="l"&&(s[0]+=r[0],s[1]+=r[1],i="L"),i==="L"&&(r[0]=s[0],r[1]=s[1]),i==="c"&&(s[0]+=r[0],s[1]+=r[1],s[2]+=r[0],s[3]+=r[1],s[4]+=r[0],s[5]+=r[1],i="C"),i==="C"&&(r[0]=s[4],r[1]=s[5]),i==="s"&&(s[0]+=r[0],s[1]+=r[1],s[2]+=r[0],s[3]+=r[1],i="S"),i==="S"&&(r[0]=s[2],r[1]=s[3]),i==="q"&&(s[0]+=r[0],s[1]+=r[1],s[2]+=r[0],s[3]+=r[1],i="Q"),i==="Q"&&(r[0]=s[2],r[1]=s[3]),i==="t"&&(s[0]+=r[0],s[1]+=r[1],i="T"),i==="T"&&(r[0]=s[0],r[1]=s[1]),i==="a"&&(s[5]+=r[0],s[6]+=r[1],i="A"),i==="A"&&(r[0]=s[5],r[1]=s[6]),(i==="z"||i==="Z")&&(r[0]=n[0],r[1]=n[1],i="z"),t.push({command:i,args:s});return t},mg=function(e,t,n){e.pathJS=t;const r=[];for(const i of t){if(r.length!==0&&(i.command==="M"||i.command==="m")){const s=r[r.length-1];s.command!=="M"&&s.command!=="m"||r.pop()}r.push({command:i.command,args:i.args})}e.attributes.d=In({pathData:r,precision:n.floatPrecision,disableSpaceAfterFlags:n.noSpaceAfterFlags})};function Nn(e,t){return e[0]=t[t.length-2],e[1]=t[t.length-1],e}const gg=function(e,t){const n=lh(oh(e)),r=lh(oh(t));if(n.maxX<=r.minX||r.maxX<=n.minX||n.maxY<=r.minY||r.maxY<=n.minY||n.list.every((c=>r.list.every((o=>c.list[c.maxX][0]<=o.list[o.minX][0]||o.list[o.maxX][0]<=c.list[c.minX][0]||c.list[c.maxY][1]<=o.list[o.minY][1]||o.list[o.maxY][1]<=c.list[c.minY][1])))))return!1;const i=n.list.map(ch),s=r.list.map(ch);return i.some((function(c){return c.list.length<3?!1:s.some((function(o){if
43(o.list.length<3)return!1;const u=[a(c,o,[1,0])],h=er(u[0]);let p=1e4;for(;;){if(p--==0)return console.error("Error: infinite loop while processing mergePaths plugin."),!0;if(u.push(a(c,o,h)),tn(h,u[u.length-1])<=0)return!1;if(zN(u,h))return!0}}))}));function a(c,o,u){return ki(l(c,u),l(o,er(u)))}function l(c,o){let u=o[1]>=0?o[0]<0?c.maxY:c.maxX:o[0]<0?c.minX:c.minY,h=-1/0,p;for(;(p=tn(c.list[u],o))>h;)h=p,u=++u%c.list.length;return c.list[(u||c.list.length)-1]}};function zN(e,t){if(e.length==2){const n=e[1],r=e[0],i=er(e[1]),s=ki(r,n);tn(i,s)>0?Nn(t,ba(s,n)):(Nn(t,i),e.shift())}else{const n=e[2],r=e[1],i=e[0],s=ki(r,n),a=ki(i,n),l=er(n),c=ba(s,a),o=ba(a,s);if(tn(c,l)>0)tn(s,l)>0?(Nn(t,c),e.shift()):(Nn(t,l),e.splice(0,2));else{if(!(tn(o,l)>0))return!0;tn(a,l)>0?(Nn(t,o),e.splice(1,1)):(Nn(t,l),e.splice(0,2))}}return!1}function er(e){return[-e[0],-e[1]]}function ki(e,t){return[e[0]-t[0],e[1]-t[1]]}function tn(e,t){return e[0]*t[0]+e[1]*t[1]}function ba(e,t){const n=[-e[1],e[0]];return tn(n,er(t))<0?er(n):n}function lh(e){const t={list:[],minX:0,minY:0,maxX:0,maxY:0},n=(i,s)=>{(!i.list.length||s[1]>i.list[i.maxY][1])&&(i.maxY=i.list.length,t.maxY=t.list.length?Math.max(s[1],t.maxY):s[1]),(!i.list.length||s[0]>i.list[i.maxX][0])&&(i.maxX=i.list.length,t.maxX=t.list.length?Math.max(s[0],t.maxX):s[0]),(!i.list.length||s[1]<i.list[i.minY][1])&&(i.minY=i.list.length,t.minY=t.list.length?Math.min(s[1],t.minY):s[1]),(!i.list.length||s[0]<i.list[i.minX][0])&&(i.minX=i.list.length,t.minX=t.list.length?Math.min(s[0],t.minX):s[0]),i.list.push(s)};for(let i=0;i<e.length;i+=1){const s=e[i];let a=t.list.length===0?{list:[],minX:0,minY:0,maxX:0,maxY:0}:t.list[t.list.length-1];const l=i===0?null:e[i-1];let c=a.list.length===0?null:a.list[a.list.length-1];const o=s.args;let u=c;const h=(p,d)=>p+(c==null?0:c[d%2]);switch(s.command){case"M":a={list:[],minX:0,minY:0,maxX:0,maxY:0},t.list.push(a);break;case"H":c!=null&&n(a,[o[0],c[1]]);break;case"V":c!=null&&n(a,[c[0],o[0]]);break;case"Q":n(a,o.slice(0,2)),_t=[o[2]-o[0],o[3]-o[1]];break;case"T":c!=null&&l!=null&&(l.command=="Q"||l.command=="T")&&(u=[c[0]+_t[0],c[1]+_t[1]],n(a,u),_t=[o[0]-u[0],o[1]-u[1]]);break;case"C":c!=null&&n(a,[.5*(c[0]+o[0]),.5*(c[1]+o[1])]),n(a,[.5*(o[0]+o[2]),.5*(o[1]+o[3])]),n(a,[.5*(o[2]+o[4]),.5*(o[3]+o[5])]),_t=[o[4]-o[2],o[5]-o[3]];break;case"S":c!=null&&l!=null&&(l.command=="C"||l.command=="S")&&(n(a,[c[0]+.5*_t[0],c[1]+.5*_t[1]]),u=[c[0]+_t[0],c[1]+_t[1]]),u!=null&&n(a,[.5*(u[0]+o[0]),.5*(u[1]+o[1])]),n(a,[.5*(o[0]+o[2]),.5*(o[1]+o[3])]),_t=[o[2]-o[0],o[3]-o[1]];break;case"A":if(c!=null){const p=bg.apply(0,c.concat(o));for(var r;(r=p.splice(0,6).map(h)).length;)c!=null&&n(a,[.5*(c[0]+r[0]),.5*(c[1]+r[1])]),n(a,[.5*(r[0]+r[2]),.5*(r[1]+r[3])]),n(a,[.5*(r[2]+r[4]),.5*(r[3]+r[5])]),p.length&&n(a,c=r.slice(-2))}break}o.length>=2&&n(a,o.slice(-2))}return t}function ch(e){e.list.sort((function(o,u){return o[0]==u[0]?o[1]-u[1]:o[0]-u[0]}));const t=[];let n=0,r=0;for(let o=0;o<e.list.length;o++){for(;t.length>=2&&uh(t[t.length-2],t[t.length-1],e.list[o])<=0;)t.pop();e.list[o][1]<e.list[n][1]&&(n=o,r=t.length),t.push(e.list[o])}const i=[];let s=e.list.length-1,a=0;for(let o=e.list.length;o--;){for(;i.length>=2&&uh(i[i.length-2],i[i.length-1],e.list[o])<=0;)i.pop();e.list[o][1]>e.list[s][1]&&(s=o,a=i.length),i.push(e.list[o])}i.pop(),t.pop();const l=t.concat(i);return{list:l,minX:0,maxX:t.length,minY:r,maxY:(t.length+a)%l.length}}function uh(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}const bg=(e,t,n,r,i,s,a,l,c,o)=>{const u=Math.PI*120/180,h=Math.PI/180*(+i||0);let p=[];const d=(M,T,V)=>M*Math.cos(V)-T*Math.sin(V),m=(M,T,V)=>M*Math.sin(V)+T*Math.cos(V);if(o)w=o[0],C=o[1],b=o[2],S=o[3];else{e=d(e,t,-h),t=m(e,t,-h),l=d(l,c,-h),c=m(l,c,-h);const M=(e-l)/2,T=(t-c)/2;let V=M*M/(n*n)+T*T/(r*r);V>1&&(V=Math.sqrt(V),n*=V,r*=V);const G=n*n,j=r*r,J=(s==a?-1:1)*Math.sqrt(Math.abs((G*j-G*T*T-j*M*M)/(G*T*T+j*M*M)));var b=J*n*T/r+(e+l)/2,S=J*-r*M/n+(t+c)/2,w=Math.asin(Number(((t-S)/r).toFixed(9))),C=Math.asin(Number(((c-S)/r).toFixed(9)));w=e<b?Math.PI-w:w,C=l<b?Math.PI-C:C,w<0&&(w=Math.PI*2+w),C<0&&(C=Math.PI*2+C),a&&w>C&&(w-=Math.PI*2),!a&&C>w&&(C-=Math.PI*2)}let _=C-w;if(Math.abs(_)>u){const M=C,T=l,V=c;C=w+u*(a&&C>w?1:-1),l=b+n*Math.cos(C),c=S+r*Math.sin(C),p=bg(l,c,n,r,i,0,a,T,V,[C,M,b,S])}_=C-w;const E=Math.cos(w),y=Math.sin(w),L=Math.cos(C),N=Math.sin(C),k=Math.tan(_/4),v=4/3*n*k,x=4/3*r*k,A=[-v*y,x*E,l+v*N-e,c-x*L-t,l-e,c-t];if(o)return A.concat(p);{p=A.concat(p);const M=[];for(let T=0,V=p.length;T<V;T++)M[T]=T%2?m(p[T-1],p[T],h):d(p[T],p[T+1],h);return M}},FN=new Set(["matrix","rotate","scale","skewX","skewY","translate"]),jN=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,qN=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,yg=e=>{const t=[];let n=null;for(const r of e.split(jN))if(r)if(FN.has(r))n={name:r,data:[]},t.push(n);else{let i;for(;i=qN.exec(r);)i=Number(i),n?.data.push(i)}return n==null||n.data.length==0?[]:t},kg=e=>{const t=e.map((r=>r.name==="matrix"?r.data:XN(r)));return{name:"matrix",data:t.length>0?t.reduce(vg):[]}},je={rad:e=>e*Math.PI/180,deg:e=>e*180/Math.PI,cos:e=>Math.cos(je.rad(e)),acos:(e,t)=>Vt(je.deg(Math.acos(e)),t),sin:e=>Math.sin(je.rad(e)),asin:(e,t)=>Vt(je.deg(Math.asin(e)),t),tan:e=>Math.tan(je.rad(e)),atan:(e,t)=>Vt(je.deg(Math.atan(e)),t)},UN=e=>{const t=[],n=GN(e),r=BN(e);
43return n&&t.push(n),r&&t.push(r),t},GN=e=>{const t=e.data,[n,r,i,s,a,l]=t,c=n*s-r*i;if(c===0)return;const o=Math.hypot(n,r);if(o===0)return;const u=[],h=n/o;if((a||l)&&u.push({name:"translate",data:[a,l]}),h!==1){const b=Math.acos(h);u.push({name:"rotate",data:[je.deg(r<0?-b:b),0,0]})}const p=o,d=c/p;p===1&&d===1||u.push({name:"scale",data:[p,d]});const m=n*i+r*s;return m&&u.push({name:"skewX",data:[je.deg(Math.atan(m/(n*n+r*r)))]}),u},BN=e=>{const t=e.data,[n,r,i,s,a,l]=t,c=n*s-r*i;if(c===0)return;const o=Math.hypot(i,s);if(o===0)return;const u=[];(a||l)&&u.push({name:"translate",data:[a,l]});const h=Math.PI/2-(s<0?-1:1)*Math.acos(-i/o);u.push({name:"rotate",data:[je.deg(h),0,0]});const p=c/o,d=o;p===1&&d===1||u.push({name:"scale",data:[p,d]});const m=n*i+r*s;return m&&u.push({name:"skewY",data:[je.deg(Math.atan(m/(i*i+s*s)))]}),u},VN=(e,t,n)=>{const r=je.rad(n),i=1-Math.cos(r),s=Math.sin(r),a=(i*t+s*e)/(i*i+s*s),l=(e-s*a)/i;return{name:"rotate",data:[n,l,a]}},WN=e=>{switch(e.name){case"rotate":case"skewX":case"skewY":return e.data[0]===0;case"scale":return e.data[0]===1&&e.data[1]===1;case"translate":return e.data[0]===0&&e.data[1]===0}return!1},HN=(e,t)=>{const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(WN(i))continue;const s=i.data;switch(i.name){case"rotate":switch(s[0]){case 180:case-180:{const a=e[r+1];a&&a.name==="scale"?(n.push(hh(a.data.map((l=>-l)))),r++):n.push({name:"scale",data:[-1]})}continue}n.push({name:"rotate",data:s.slice(0,s[1]||s[2]?3:1)});break;case"scale":n.push(hh(s));break;case"skewX":case"skewY":n.push({name:i.name,data:[s[0]]});break;case"translate":{const a=e[r+1];if(a&&a.name==="rotate"&&a.data[0]!==180&&a.data[0]!==-180&&a.data[0]!==0&&a.data[1]===0&&a.data[2]===0){const l=t[r].data;n.push(VN(l[0],l[1],t[r+1].data[0])),r++;continue}}n.push({name:"translate",data:s.slice(0,s[1]?2:1)});break}}return n.length?n:[{name:"scale",data:[1]}]},hh=e=>({name:"scale",data:e.slice(0,e[0]===e[1]?1:2)}),YN=(e,t)=>{const n=UN(e);let r,i=Number.MAX_VALUE;for(const s of n){const a=s.map((o=>{const u={name:o.name,data:[...o.data]};return ps(u,t)})),l=HN(a,s),c=qi(l,t).length;c<i&&(r=l,i=c)}return r??[e]},XN=e=>{if(e.name==="matrix")return e.data;switch(e.name){case"translate":return[1,0,0,1,e.data[0],e.data[1]||0];case"scale":return[e.data[0],0,0,e.data[1]??e.data[0],0,0];case"rotate":var t=je.cos(e.data[0]),n=je.sin(e.data[0]),r=e.data[1]||0,i=e.data[2]||0;return[t,n,-n,t,(1-t)*r+n*i,(1-t)*i-n*r];case"skewX":return[1,0,je.tan(e.data[0]),1,0,0];case"skewY":return[1,je.tan(e.data[0]),0,1,0,0];default:throw Error(`Unknown transform ${e.name}`)}},ph=(e,t,n)=>{const r=t[5]-e[0],i=t[6]-e[1];let s=t[0],a=t[1];const l=t[2]*Math.PI/180,c=Math.cos(l),o=Math.sin(l);if(s>0&&a>0){let b=Math.pow(r*c+i*o,2)/(4*s*s)+Math.pow(i*c-r*o,2)/(4*a*a);b>1&&(b=Math.sqrt(b),s*=b,a*=b)}const u=[s*c,s*o,-a*o,a*c,0,0],h=vg(n,u),p=h[2]*h[2]+h[3]*h[3],d=h[0]*h[0]+h[1]*h[1]+p,m=Math.hypot(h[0]-h[3],h[1]+h[2])*Math.hypot(h[0]+h[3],h[1]-h[2]);if(m){const b=(d+m)/2,S=(d-m)/2,w=Math.abs(b-p)>1e-6,C=(w?b:S)-p,_=h[0]*h[2]+h[1]*h[3],E=h[0]*C+h[2]*_,y=h[1]*C+h[3]*_;t[0]=Math.sqrt(b),t[1]=Math.sqrt(S),t[2]=((w?y<0:E>0)?-1:1)*Math.acos((w?E:y)/Math.hypot(E,y))*180/Math.PI}else t[0]=t[1]=Math.sqrt(d/2),t[2]=0;return n[0]<0!=n[3]<0&&(t[4]=1-t[4]),t},vg=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],ps=(e,t)=>{switch(e.name){case"translate":e.data=ya(e.data,t);break;case"rotate":e.data=[...fh(e.data.slice(0,1),t),...ya(e.data.slice(1),t)];break;case"skewX":case"skewY":e.data=fh(e.data,t);break;case"scale":e.data=dh(e.data,t);break;case"matrix":e.data=[...dh(e.data.slice(0,4),t),...ya(e.data.slice(4),t)];break}return e},fh=(e,t)=>t.degPrecision!=null&&t.degPrecision>=1&&t.floatPrecision<20?fl(t.degPrecision,e):pl(e),ya=(e,t)=>t.floatPrecision>=1&&t.floatPrecision<20?fl(t.floatPrecision,e):pl(e),dh=(e,t)=>t.transformPrecision>=1&&t.floatPrecision<20?fl(t.transformPrecision,e):pl(e),pl=e=>e.map(Math.round),fl=(e,t)=>{for(let n=t.length,r=+Math.pow(.1,e).toFixed(e);n--;)if(Vt(t[n],e)!==t[n]){const i=+t[n].toFixed(e-1);t[n]=+Math.abs(i-t[n]).toFixed(e+1)>=r?+t[n].toFixed(e):i}return t},qi=(e,t)=>e.map((r=>(ps(r,t),`${r.name}(${Jn(r.data,t)})`))).join(""),ka=/[-+]?(\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,QN=(e,t)=>{const n=Tt(e);return{element:{enter:r=>{if(r.attributes.d==null||r.attributes.id!=null||r.attributes.transform==null||r.attributes.transform===""||r.attributes.style!=null||Object.entries(r.attributes).some((([p,d])=>Vi.has(p)&&hs(d))))return;const i=$t(n,r),s=i.transform;if(s.type==="static"&&s.value!==r.attributes.transform)return;const a=kg(yg(r.attributes.transform)),l=i.stroke?.type==="static"?i.stroke.value:null,c=i["stroke-width"]?.type==="static"?i["stroke-width"].value:null,o=t.transformPrecision;if(i.stroke?.type==="dynamic"||i["stroke-width"]?.type==="dynamic")return;const u=Number(Math.hypot(a.data[0],a.data[1]).toFixed(o));if(l&&l!="none"){if(!t.applyTransformsStroked||(a.data[0]!==a.data[3]||a.data[1]!==-a.data[2])&&(a.data[0]!==-a.data[3]||a.data[1]!==a.data[2]))return;u!==1&&r.attributes["vector-effect"]!=="non-scaling-stroke"&&(r.attributes["stroke-width"]=(c||$o.presentation["stroke-width"]).trim().replace(ka,(p=>gn(Number(p)*u))),r.attributes["stroke-dashoffset"]!=null&&(r.attributes["stroke-dashoffset"]=r.attributes["stroke-dashoffset"].trim().replace(ka,(p=>gn(Number(p)*u)))),r.attributes["stroke-dasharray"]!=null&&(r.attributes["stroke-dasharray"]=r.attributes["stroke-dasharray"].trim().replace(ka,(p=>gn(Number(p)*u)))))}const h=ji(r);KN(h,a.data),delete r.attributes.transform}}}}
43,dt=(e,t,n)=>{const r=e[0]*t+e[2]*n+e[4],i=e[1]*t+e[3]*n+e[5];return[r,i]},mt=(e,t,n)=>{const r=e[0]*t+e[2]*n,i=e[1]*t+e[3]*n;return[r,i]},KN=(e,t)=>{const n=[0,0],r=[0,0];for(const i of e){let{command:s,args:a}=i;if(s==="M"){r[0]=a[0],r[1]=a[1],n[0]=r[0],n[1]=r[1];const[l,c]=dt(t,a[0],a[1]);a[0]=l,a[1]=c}if(s==="m"){r[0]+=a[0],r[1]+=a[1],n[0]=r[0],n[1]=r[1];const[l,c]=mt(t,a[0],a[1]);a[0]=l,a[1]=c}if(s==="H"&&(s="L",a=[a[0],r[1]]),s==="h"&&(s="l",a=[a[0],0]),s==="V"&&(s="L",a=[r[0],a[0]]),s==="v"&&(s="l",a=[0,a[0]]),s==="L"){r[0]=a[0],r[1]=a[1];const[l,c]=dt(t,a[0],a[1]);a[0]=l,a[1]=c}if(s==="l"){r[0]+=a[0],r[1]+=a[1];const[l,c]=mt(t,a[0],a[1]);a[0]=l,a[1]=c}if(s==="C"){r[0]=a[4],r[1]=a[5];const[l,c]=dt(t,a[0],a[1]),[o,u]=dt(t,a[2],a[3]),[h,p]=dt(t,a[4],a[5]);a[0]=l,a[1]=c,a[2]=o,a[3]=u,a[4]=h,a[5]=p}if(s==="c"){r[0]+=a[4],r[1]+=a[5];const[l,c]=mt(t,a[0],a[1]),[o,u]=mt(t,a[2],a[3]),[h,p]=mt(t,a[4],a[5]);a[0]=l,a[1]=c,a[2]=o,a[3]=u,a[4]=h,a[5]=p}if(s==="S"){r[0]=a[2],r[1]=a[3];const[l,c]=dt(t,a[0],a[1]),[o,u]=dt(t,a[2],a[3]);a[0]=l,a[1]=c,a[2]=o,a[3]=u}if(s==="s"){r[0]+=a[2],r[1]+=a[3];const[l,c]=mt(t,a[0],a[1]),[o,u]=mt(t,a[2],a[3]);a[0]=l,a[1]=c,a[2]=o,a[3]=u}if(s==="Q"){r[0]=a[2],r[1]=a[3];const[l,c]=dt(t,a[0],a[1]),[o,u]=dt(t,a[2],a[3]);a[0]=l,a[1]=c,a[2]=o,a[3]=u}if(s==="q"){r[0]+=a[2],r[1]+=a[3];const[l,c]=mt(t,a[0],a[1]),[o,u]=mt(t,a[2],a[3]);a[0]=l,a[1]=c,a[2]=o,a[3]=u}if(s==="T"){r[0]=a[0],r[1]=a[1];const[l,c]=dt(t,a[0],a[1]);a[0]=l,a[1]=c}if(s==="t"){r[0]+=a[0],r[1]+=a[1];const[l,c]=mt(t,a[0],a[1]);a[0]=l,a[1]=c}if(s==="A"){if(ph(r,a,t),r[0]=a[5],r[1]=a[6],Math.abs(a[2])>80){const o=a[0],u=a[2];a[0]=a[1],a[1]=o,a[2]=u+(u>0?-90:90)}const[l,c]=dt(t,a[5],a[6]);a[5]=l,a[6]=c}if(s==="a"){if(ph([0,0],a,t),r[0]+=a[5],r[1]+=a[6],Math.abs(a[2])>80){const o=a[0],u=a[2];a[0]=a[1],a[1]=o,a[2]=u+(u>0?-90:90)}const[l,c]=mt(t,a[5],a[6]);a[5]=l,a[6]=c}(s==="z"||s==="Z")&&(r[0]=n[0],r[1]=n[1]),i.command=s,i.args=a}},ZN="convertPathData",JN="optimizes path data: writes in shorter form, applies transformations";let Gt,kt,ue,dl,ml;const eI=(e,t)=>{const{applyTransforms:n=!0,applyTransformsStroked:r=!0,makeArcs:i={threshold:2.5,tolerance:.5},straightCurves:s=!0,convertToQ:a=!0,lineShorthands:l=!0,convertToZ:c=!0,curveSmoothShorthands:o=!0,floatPrecision:u=3,transformPrecision:h=5,smartArcRounding:p=!0,removeUseless:d=!0,collapseRepeated:m=!0,utilizeAbsolute:b=!0,leadingZero:S=!0,negativeExtraSpace:w=!0,noSpaceAfterFlags:C=!1,forceAbsolutePath:_=!1}=t,E={applyTransforms:n,applyTransformsStroked:r,makeArcs:i,straightCurves:s,convertToQ:a,lineShorthands:l,convertToZ:c,curveSmoothShorthands:o,floatPrecision:u,transformPrecision:h,smartArcRounding:p,removeUseless:d,collapseRepeated:m,utilizeAbsolute:b,leadingZero:S,negativeExtraSpace:w,noSpaceAfterFlags:C,forceAbsolutePath:_};n&&zt(e,QN(e,{transformPrecision:h,applyTransformsStroked:r}));const y=Tt(e);return{element:{enter:L=>{if(Ao.has(L.name)&&L.attributes.d!=null){const N=$t(y,L);kt=u,ue=kt!==!1?+Math.pow(.1,kt).toFixed(kt):.01,Gt=kt&&kt>0&&kt<20?iI:sI,i&&(dl=i.threshold,ml=i.tolerance);const k=N["marker-mid"]!=null,v=N.stroke&&(N.stroke.type==="dynamic"||N.stroke.value!=="none"),x=N["stroke-linecap"]&&(N["stroke-linecap"].type==="dynamic"||N["stroke-linecap"].value!=="butt"),A=v&&x,M=!v||N["stroke-linecap"]?.type==="static"&&N["stroke-linecap"].value==="round"&&N["stroke-linejoin"]?.type==="static"&&N["stroke-linejoin"].value==="round";let T=ji(L);if(T.length){const V=T.some((J=>J.command!=="m"&&J.command!=="M"));tI(T),T=nI(T,E,{isSafeToUseZ:M,maybeHasStrokeAndLinecap:A,hasMarkerMid:k}),b&&(T=rI(T,E)),(L.attributes["marker-start"]!=null||L.attributes["marker-end"]!=null)&&V&&T.every((J=>J.command==="m"||J.command==="M"))&&T.push({command:"z",args:[]}),mg(L,T,E)}}}}}},tI=e=>{const t=[0,0],n=[0,0];let r=[0,0];for(let i=0;i<e.length;i+=1){const s=e[i];let{command:a,args:l}=s;a==="m"&&(n[0]+=l[0],n[1]+=l[1],t[0]=n[0],t[1]=n[1]),a==="M"&&(i!==0&&(a="m"),l[0]-=n[0],l[1]-=n[1],n[0]+=l[0],n[1]+=l[1],t[0]=n[0],t[1]=n[1]),a==="l"&&(n[0]+=l[0],n[1]+=l[1]),a==="L"&&(a="l",l[0]-=n[0],l[1]-=n[1],n[0]+=l[0],n[1]+=l[1]),a==="h"&&(n[0]+=l[0]),a==="H"&&(a="h",l[0]-=n[0],n[0]+=l[0]),a==="v"&&(n[1]+=l[0]),a==="V"&&(a="v",l[0]-=n[1],n[1]+=l[0]),a==="c"&&(n[0]+=l[4],n[1]+=l[5]),a==="C"&&(a="c",l[0]-=n[0],l[1]-=n[1],l[2]-=n[0],l[3]-=n[1],l[4]-=n[0],l[5]-=n[1],n[0]+=l[4],n[1]+=l[5]),a==="s"&&(n[0]+=l[2],n[1]+=l[3]),a==="S"&&(a="s",l[0]-=n[0],l[1]-=n[1],l[2]-=n[0],l[3]-=n[1],n[0]+=l[2],n[1]+=l[3]),a==="q"&&(n[0]+=l[2],n[1]+=l[3]),a==="Q"&&(a="q",l[0]-=n[0],l[1]-=n[1],l[2]-=n[0],l[3]-=n[1],n[0]+=l[2],n[1]+=l[3]),a==="t"&&(n[0]+=l[0],n[1]+=l[1]),a==="T"&&(a="t",l[0]-=n[0],l[1]-=n[1],n[0]+=l[0],n[1]+=l[1]),a==="a"&&(n[0]+=l[5],n[1]+=l[6]),a==="A"&&(a="a",l[5]-=n[0],l[6]-=n[1],n[0]+=l[5],n[1]+=l[6]),(a==="Z"||a==="z")&&(n[0]=t[0],n[1]=t[1]),s.command=a,s.args=l,s.base=r,s.coords=[n[0],n[1]],r=s.coords}return e};function nI(e,t,{isSafeToUseZ:n,maybeHasStrokeAndLinecap:r,hasMarkerMid:i}){const s=oI.bind(null,t),a=[0,0],l=[0,0];let c={},o;return e=e.filter((function(u,h,p){const d=o;let m=u.command,b=u.args,S=p[h+1];if(m!=="Z"&&m!=="z"){let C=b,_;if(m==="s"){C=[0,0].concat(b);const y=c.args,L=y.length;C[0]=y[L-2]-y[L-4],C[1]=y[L-1]-y[L-3]}if(t.makeArcs&&(m=="c"||m=="s")&&va(C)&&(_=aI(C))){const y=Gt([_.radius])[0];let L=xa(C,_);const N=C[5]*C[0]-C[4]*C[1]>0?1:0;let k={command:"a",args:[y,y,0,0,N,C[4],C[5]],coords:u.coords.slice(),base:u.base};const v=[k],x=[_.center[0]-C[4],_.center[1]-C[5]],A={center:x,radius:_.radius},M=[u];let T=0,V="",G;
43if(c.command=="c"&&va(c.args)&&bh(c.args,_)||c.command=="a"&&c.sdata&&bh(c.sdata,_)){M.unshift(c),k.base=c.base,k.args[5]=k.coords[0]-k.base[0],k.args[6]=k.coords[1]-k.base[1];const j=c.command=="a"?c.sdata:c.args,J=xa(j,{center:[j[4]+_.center[0],j[5]+_.center[1]],radius:_.radius});L+=J,L>Math.PI&&(k.args[3]=1),T=1}for(var w=h;(S=p[++w])&&(S.command==="c"||S.command==="s");){let j=S.args;if(S.command=="s"&&(G=ur({command:"s",args:S.args.slice()},p[w-1].args),j=G.args,G.args=j.slice(0,2),V=s([G])),!va(j)||!xg(j,A)||(L+=xa(j,A),L-2*Math.PI>.001))break;if(L>Math.PI&&(k.args[3]=1),M.push(S),!(2*Math.PI-L>.001)){k.args[5]=2*(A.center[0]-j[4]),k.args[6]=2*(A.center[1]-j[5]),k.coords=[k.base[0]+k.args[5],k.base[1]+k.args[6]],k={command:"a",args:[y,y,0,0,N,S.coords[0]-k.coords[0],S.coords[1]-k.coords[1]],coords:S.coords,base:k.coords},v.push(k),w++;break}k.coords=S.coords,k.args[5]=k.coords[0]-k.base[0],k.args[6]=k.coords[1]-k.base[1],x[0]-=j[4],x[1]-=j[5]}if((s(v)+V).length<s(M).length){if(p[w]&&p[w].command=="s"&&ur(p[w],p[w-1].args),T){const j=v.shift();Gt(j.args),a[0]+=j.args[5]-c.args[c.args.length-2],a[1]+=j.args[6]-c.args[c.args.length-1],c.command="a",c.args=j.args,u.base=c.coords=j.coords}if(k=v.shift(),M.length==1?u.sdata=C.slice():M.length-1-T>0&&p.splice(h+1,M.length-1-T,...v),!k)return!1;m="a",b=k.args,u.coords=k.coords}}if(kt!==!1){if(m==="m"||m==="l"||m==="t"||m==="q"||m==="s"||m==="c")for(let y=b.length;y--;)b[y]+=u.base[y%2]-a[y%2];else m=="h"?b[0]+=u.base[0]-a[0]:m=="v"?b[0]+=u.base[1]-a[1]:m=="a"&&(b[5]+=u.base[0]-a[0],b[6]+=u.base[1]-a[1]);Gt(b),m=="h"?a[0]+=b[0]:m=="v"?a[1]+=b[0]:(a[0]+=b[b.length-2],a[1]+=b[b.length-1]),Gt(a),(m==="M"||m==="m")&&(l[0]=a[0],l[1]=a[1])}const E=m==="a"?mh(b):void 0;if(t.smartArcRounding&&E!==void 0&&kt)for(let y=kt;y>=0;y--){const L=Vt(b[0],y),N=mh([L,L,...b.slice(2)]);if(!(Math.abs(E-N)<ue))break;b[0]=L,b[1]=L}if(t.straightCurves&&(m==="c"&&wa(b)||m==="s"&&wa(C)?(S&&S.command=="s"&&ur(S,b),m="l",b=b.slice(-2)):m==="q"&&wa(b)?(S&&S.command=="t"&&ur(S,b),m="l",b=b.slice(-2)):(m==="t"&&c.command!=="q"&&c.command!=="t"||m==="a"&&(b[0]===0||b[1]===0||E!==void 0&&E<ue))&&(m="l",b=b.slice(-2))),t.convertToQ&&m=="c"){const y=.75*(u.base[0]+b[0])-.25*u.base[0],L=.75*(u.base[0]+b[2])-.25*(u.base[0]+b[4]);if(Math.abs(y-L)<ue*2){const N=.75*(u.base[1]+b[1])-.25*u.base[1],k=.75*(u.base[1]+b[3])-.25*(u.base[1]+b[5]);if(Math.abs(N-k)<ue*2){const v=b.slice();v.splice(0,4,y+L-u.base[0],N+k-u.base[1]),Gt(v);const x=Jn(b,t).length;Jn(v,t).length<x&&(m="q",b=v,S&&S.command=="s"&&ur(S,b))}}}if(t.lineShorthands&&m==="l"&&(b[1]===0?(m="h",b.pop()):b[0]===0&&(m="v",b.shift())),t.collapseRepeated&&i===!1&&(m==="m"||m==="h"||m==="v")&&c.command&&m==c.command.toLowerCase()&&(m!="h"&&m!="v"||c.args[0]>=0==b[0]>=0))return c.args[0]+=b[0],m!="h"&&m!="v"&&(c.args[1]+=b[1]),c.coords=u.coords,p[h]=c,!1;if(t.curveSmoothShorthands&&c.command){if(m==="c")(c.command==="c"&&Math.abs(b[0]- -(c.args[2]-c.args[4]))<ue&&Math.abs(b[1]- -(c.args[3]-c.args[5]))<ue||c.command==="s"&&Math.abs(b[0]- -(c.args[0]-c.args[2]))<ue&&Math.abs(b[1]- -(c.args[1]-c.args[3]))<ue||c.command!=="c"&&c.command!=="s"&&Math.abs(b[0])<ue&&Math.abs(b[1])<ue)&&(m="s",b=b.slice(2));else if(m==="q"){if(c.command==="q"&&Math.abs(b[0]-(c.args[2]-c.args[0]))<ue&&Math.abs(b[1]-(c.args[3]-c.args[1]))<ue)m="t",b=b.slice(2);else if(c.command==="t"){const y=gh(d,u.base),L=[b[0]+u.base[0],b[1]+u.base[1]];Math.abs(y[0]-L[0])<ue&&Math.abs(y[1]-L[1])<ue&&(m="t",b=b.slice(2))}}}if(t.removeUseless&&!r&&((m==="l"||m==="h"||m==="v"||m==="q"||m==="t"||m==="c"||m==="s")&&b.every((function(y){return y===0}))||m==="a"&&b[5]===0&&b[6]===0))return p[h]=c,!1;t.convertToZ&&(n||S?.command==="Z"||S?.command==="z")&&(m==="l"||m==="h"||m==="v")&&Math.abs(l[0]-u.coords[0])<ue&&Math.abs(l[1]-u.coords[1])<ue&&(m="z",b=[]),u.command=m,u.args=b}else if(a[0]=l[0],a[1]=l[1],c.command==="Z"||c.command==="z")return!1;return(m==="Z"||m==="z")&&t.removeUseless&&n&&Math.abs(u.base[0]-u.coords[0])<ue/10&&Math.abs(u.base[1]-u.coords[1])<ue/10?!1:(o=m==="q"?[b[0]+u.base[0],b[1]+u.base[1]]:m==="t"?d?gh(d,u.base):u.coords:void 0,c=u,!0)})),e}function rI(e,t){let n=e[0];return e=e.filter((function(r,i){if(i==0)return!0;
43if(r.command==="Z"||r.command==="z")return n=r,!0;const s=r.command,a=r.args,l=a.slice(),c=a.slice();if(s==="m"||s==="l"||s==="t"||s==="q"||s==="s"||s==="c")for(let h=l.length;h--;)l[h]+=r.base[h%2];else s=="h"?l[0]+=r.base[0]:s=="v"?l[0]+=r.base[1]:s=="a"&&(l[5]+=r.base[0],l[6]+=r.base[1]);Gt(l),Gt(c);const o=Jn(l,t),u=Jn(c,t);return(t.forceAbsolutePath||o.length<u.length&&!(t.negativeExtraSpace&&s==n.command&&n.command.charCodeAt(0)>96&&o.length==u.length-1&&(a[0]<0||Math.floor(a[0])===0&&!Number.isInteger(a[0])&&n.args[n.args.length-1]%1)))&&(r.command=s.toUpperCase(),r.args=l),n=r,!0})),e}function va(e){const t=wg([0,0,e[2],e[3],e[0],e[1],e[4],e[5]]);return t!=null&&e[2]<t[0]==t[0]<0&&e[3]<t[1]==t[1]<0&&e[4]<t[0]==t[0]<e[0]&&e[5]<t[1]==t[1]<e[1]}function wg(e){const t=e[1]-e[3],n=e[2]-e[0],r=e[0]*e[3]-e[2]*e[1],i=e[5]-e[7],s=e[6]-e[4],a=e[4]*e[7]-e[5]*e[6],l=t*s-i*n;if(!l)return;const c=[(n*a-s*r)/l,(t*a-i*r)/-l];if(!isNaN(c[0])&&!isNaN(c[1])&&isFinite(c[0])&&isFinite(c[1]))return c}function iI(e){const t=kt||0;for(let n=e.length;n-- >0;){const r=Vt(e[n],t);if(r!==e[n]){const i=Vt(e[n],t-1);e[n]=Vt(Math.abs(i-e[n]),t+1)>=ue?r:i}}return e}function sI(e){for(let t=e.length;t-- >0;)e[t]=Math.round(e[t]);return e}function wa(e){let t=e.length-2;const n=-e[t+1],r=e[t],i=1/(n*n+r*r);if(t<=1||!isFinite(i))return!1;for(;(t-=2)>=0;)if(Math.sqrt(Math.pow(n*e[t]+r*e[t+1],2)*i)>ue)return!1;return!0}function mh(e){if(e[3]===1)return;const[t,n]=e;if(Math.abs(t-n)>ue)return;const r=Math.hypot(e[5],e[6]);if(!(r>t*2))return t-Math.sqrt(t**2-.25*r**2)}function ur(e,t){switch(e.command){case"s":e.command="c";break;case"t":e.command="q";break}return e.args.unshift(t[t.length-2]-t[t.length-4],t[t.length-1]-t[t.length-3]),e}function mo(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function gh(e,t){return[2*t[0]-e[0],2*t[1]-e[1]]}function go(e,t){const n=t*t,r=n*t,i=1-t,s=i*i;return[3*s*t*e[0]+3*i*n*e[2]+r*e[4],3*s*t*e[1]+3*i*n*e[3]+r*e[5]]}function aI(e){const t=go(e,.5),n=[t[0]/2,t[1]/2],r=[(t[0]+e[4])/2,(t[1]+e[5])/2],i=wg([n[0],n[1],n[0]+n[1],n[1]-n[0],r[0],r[1],r[0]+(r[1]-t[1]),r[1]-(r[0]-t[0])]),s=i&&mo([0,0],i),a=Math.min(dl*ue,ml*s/100);if(i&&s<1e15&&[1/4,3/4].every((function(l){return Math.abs(mo(go(e,l),i)-s)<=a})))return{center:i,radius:s}}function xg(e,t){const n=Math.min(dl*ue,ml*t.radius/100);return[0,1/4,.5,3/4,1].every((function(r){return Math.abs(mo(go(e,r),t.center)-t.radius)<=n}))}function bh(e,t){return xg(e,{center:[t.center[0]+e[4],t.center[1]+e[5]],radius:t.radius})}function xa(e,t){const n=-t.center[0],r=-t.center[1],i=e[4]-t.center[0],s=e[5]-t.center[1];return Math.acos((n*i+r*s)/Math.sqrt((n*n+r*r)*(i*i+s*s)))}function oI(e,t){return t.reduce((function(n,r){let i="";return r.args&&(i=Jn(Gt(r.args.slice()),e)),n+r.command+i}),"")}var Sg=Object.freeze({__proto__:null,description:JN,fn:eI,name:ZN});const lI="convertTransform",cI="collapses multiple transformations and optimizes it",uI=(e,t)=>{const{convertToShorts:n=!0,degPrecision:r,floatPrecision:i=3,transformPrecision:s=5,matrixToTransform:a=!0,shortTranslate:l=!0,shortScale:c=!0,shortRotate:o=!0,removeUseless:u=!0,collapseIntoOne:h=!0,leadingZero:p=!0,negativeExtraSpace:d=!1}=t,m={convertToShorts:n,degPrecision:r,floatPrecision:i,transformPrecision:s,matrixToTransform:a,shortTranslate:l,shortScale:c,shortRotate:o,removeUseless:u,collapseIntoOne:h,leadingZero:p,negativeExtraSpace:d};return{element:{enter:b=>{b.attributes.transform!=null&&Sa(b,"transform",m),b.attributes.gradientTransform!=null&&Sa(b,"gradientTransform",m),b.attributes.patternTransform!=null&&Sa(b,"patternTransform",m)}}}},Sa=(e,t,n)=>{let r=yg(e.attributes[t]);n=hI(r,n),n.collapseIntoOne&&r.length>1&&(r=[kg(r)]),n.convertToShorts?r=fI(r,n):r.forEach((i=>ps(i,n))),n.removeUseless&&(r=dI(r)),r.length?e.attributes[t]=qi(r,n):delete e.attributes[t]},hI=(e,{...t})=>{const n=[];for(const i of e)i.name=="matrix"&&n.push(...i.data.slice(0,4));let r=t.transformPrecision;return n.length&&(t.transformPrecision=Math.min(t.transformPrecision,Math.max.apply(Math,n.map(pI))||t.transformPrecision),r=Math.max.apply(Math,n.map((i=>i.toString().replace(/\D+/g,"").length)))),t.degPrecision==null&&(t.degPrecision=Math.max(0,Math.min(t.floatPrecision,r-2))),t},pI=e=>{const t=e.toString();return t.slice(t.indexOf(".")).length-1},fI=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];if(t.matrixToTransform&&r.name==="matrix"){const i=YN(r,t);qi(i,t).length<=qi([r],t).length&&e.splice(n,1,...i),r=e[n]}ps(r,t),t.shortTranslate&&r.name==="translate"&&r.data.length===2&&!r.data[1]&&r.data.pop(),t.shortScale&&r.name==="scale"&&r.data.length===2&&r.data[0]===r.data[1]&&r.data.pop(),t.shortRotate&&e[n-2]?.name==="translate"&&e[n-1].name==="rotate"&&e[n].name==="translate"&&e[n-2].data[0]===-e[n].data[0]&&e[n-2].data[1]===-e[n].data[1]&&(e.splice(n-2,3,{name:"rotate",data:[e[n-1].data[0],e[n-2].data[0],e[n-2].data[1]]}),n-=2)}return e},dI=e=>e.filter((t=>!(["translate","rotate","skewX","skewY"].indexOf(t.name)>-1&&(t.data.length==1||t.name=="rotate")&&!t.data[0]||t.name=="translate"&&!t.data[0]&&!t.data[1]||t.name=="scale"&&t.data[0]==1&&(t.data.length<2||t.data[1]==1)||t.name=="matrix"&&t.data[0]==1&&t.data[3]==1&&!(t.data[1]||t.data[2]||t.data[4]||t.data[5]))));var Cg=Object.freeze({__proto__:null,description:cI,fn:uI,name:lI});const mI="removeEmptyAttrs",gI="removes empty attributes",bI=()=>({element:{enter:e=>{for(const[t,n]of Object.entries(e.attributes))n!==""||Me.conditionalProcessing.has(t)||delete e.attributes[t]}}});var Ag=Object.freeze({__proto__:null,description:gI,fn:bI,name:mI});const yI="removeEmptyContainers",kI="removes empty container elements",vI=e=>{const t=Tt(e);return{element:{exit:(n,r)=>{n.name==="svg"||!on.container.has(n.name)||n.children.length!==0||n.name==="pattern"&&Object.keys(n.attributes).length!==0||n.name==="mask"&&n.attributes.id!=null||r.type==="element"&&r.name==="switch"||n.name==="g"&&(n.attributes.filter!=null||$t(t,n).filter)||X(n,r)}}}};var $g=Object.freeze({__proto__:null,description:kI,fn:vI,name:yI});const wI="mergePaths",xI="merges multiple paths in one if possible";function SI(e,t){const n=e[t];return n?.type==="static"?hs(n.value):!1}const CI=(e,t)=>{const{force:n=!1,floatPrecision:r=3,noSpaceAfterFlags:i=!1}=t,s=Tt(e);return{element:{enter:a=>{if(a.children.length<=1)return;const l=[];let c=a.children[0],o=null;const u=(h,p)=>{mg(h,p,{floatPrecision:r,noSpaceAfterFlags:i}),o=null};for(let h=1;h<a.children.length;h++){const p=a.children[h];if(c.type!=="element"||c.name!=="path"||c.children.length!==0||c.attributes.d==null){o&&c.type==="element"&&u(c,o),c=p;continue}if(p.type!=="element"||p.name!=="path"||p.children.length!==0||p.attributes.d==null){o&&u(c,o),c=p;continue}const d=$t(s,p);if(d["marker-start"]||d["marker-mid"]||d["marker-end"]||d["clip-path"]||d.mask||d["mask-image"]||["fill","filter","stroke"].some((C=>SI(d,C)))){o&&u(c,o),c=p;continue}const m=Object.keys(p.attributes);if(m.length!==Object.keys(c.attributes).length){o&&u(c,o),c=p;continue}if(m.some((C=>C!=="d"&&c.type==="element"&&c.attributes[C]!==p.attributes[C]))){o&&u(c,o),c=p;continue}const S=o!=null,w=ji(p);if(o=o??ji(c),n||!gg(o,w)){o.push(...w),l.push(p);continue}S&&u(c,o),c=p,o=null}o&&c.type==="element"&&u(c,o),a.children=a.children.filter((h=>!l.includes(h)))}}}};var Eg=Object.freeze({__proto__:null,description:xI,fn:CI,name:wI});const AI="removeUnusedNS",$I="removes unused namespaces declaration",EI=()=>{const e=new Set;return{element:{enter:(t,n)=>{if(t.name==="svg"&&n.type==="root"){for(const r of Object.keys(t.attributes))if(r.startsWith("xmlns:")){const i=r.slice(6);e.add(i)}}if(e.size!==0){if(t.name.includes(":")){const[r]=t.name.split(":");e.has(r)&&e.delete(r)}for(const r of Object.keys(t.attributes))if(r.includes(":")){const[i]=r.split(":");e.delete(i)}}}
43,exit:(t,n)=>{if(t.name==="svg"&&n.type==="root")for(const r of e)delete t.attributes[`xmlns:${r}`]}}}};var Tg=Object.freeze({__proto__:null,description:$I,fn:EI,name:AI});const TI="sortAttrs",OI="Sort element attributes for better compression",_I=(e,t)=>{const{order:n=["id","width","height","x","x1","x2","y","y1","y2","cx","cy","r","fill","stroke","marker","d","points"],xmlnsOrder:r="front"}=t,i=a=>{if(r==="front"){if(a==="xmlns")return 3;if(a.startsWith("xmlns:"))return 2}return a.includes(":")?1:0},s=([a],[l])=>{const c=i(a),u=i(l)-c;if(u!==0)return u;const[h]=a.split("-"),[p]=l.split("-");if(h!==p){const d=n.includes(h)?1:0,m=n.includes(p)?1:0;if(d===1&&m===1)return n.indexOf(h)-n.indexOf(p);const b=m-d;if(b!==0)return b}return a<l?-1:1};return{element:{enter:a=>{const l=Object.entries(a.attributes);l.sort(s);const c={};for(const[o,u]of l)c[o]=u;a.attributes=c}}}};var Og=Object.freeze({__proto__:null,description:OI,fn:_I,name:TI});const LI="sortDefsChildren",PI="Sorts children of <defs> to improve compression",NI=()=>({element:{enter:e=>{if(e.name==="defs"){const t=new Map;for(const n of e.children)if(n.type==="element"){const r=t.get(n.name);r==null?t.set(n.name,1):t.set(n.name,r+1)}e.children.sort(((n,r)=>{if(n.type!=="element"||r.type!=="element")return 0;const i=t.get(n.name),s=t.get(r.name);if(i!=null&&s!=null){const l=s-i;if(l!==0)return l}const a=r.name.length-n.name.length;return a!==0?a:n.name!==r.name?n.name>r.name?-1:1:0}))}}}});var _g=Object.freeze({__proto__:null,description:PI,fn:NI,name:LI});const II="removeDesc",MI="removes <desc>",RI=/^(Created with|Created using)/,DI=(e,t)=>{const{removeAny:n=!1}=t;return{element:{enter:(r,i)=>{r.name==="desc"&&(n||r.children.length===0||r.children[0].type==="text"&&RI.test(r.children[0].value))&&X(r,i)}}}};var Lg=Object.freeze({__proto__:null,description:MI,fn:DI,name:II});const zI=eb({name:"preset-default",plugins:[sp,ap,op,zm,Fm,jm,qm,Um,Gm,Wm,Ym,Qm,Km,Zm,tg,ng,rg,ig,og,lg,cg,ug,hg,pg,dg,Sg,Cg,Ag,$g,Eg,Tg,Og,_g,Lg]}),FI="addAttributesToSVGElement",jI="adds attributes to an outer <svg> element",qI=`Error in plugin "addAttributesToSVGElement": absent parameters. 44It should have a list of "attributes" or one "attribute". 45Config example: 46 47plugins: [ 48 { 49 name: 'addAttributesToSVGElement', 50 params: { 51 attribute: "mySvg" 52 } 53 } 54] 55 56plugins: [ 57 { 58 name: 'addAttributesToSVGElement', 59 params: { 60 attributes: ["mySvg", "size-big"] 61 } 62 } 63] 64 65plugins: [ 66 { 67 name: 'addAttributesToSVGElement', 68 params: { 69 attributes: [ 70 { 71 focusable: false 72 }, 73 { 74 'data-image': icon 75 } 76 ] 77 } 78 } 79] 80`,UI=(e,t)=>{if(!Array.isArray(t.attributes)&&!t.attribute)return console.error(qI),null;const n=t.attributes||[t.attribute];return{element:{enter:(r,i)=>{if(r.name==="svg"&&i.type==="root"){for(const s of n)if(typeof s=="string"&&r.attributes[s]==null&&(r.attributes[s]=void 0),typeof s=="object")for(const a of Object.keys(s))r.attributes[a]==null&&(r.attributes[a]=s[a])}}}}};var GI=Object.freeze({__proto__:null,description:jI,fn:UI,name:FI});const BI="addClassesToSVGElement",VI="adds classnames to an outer <svg> element",WI=`Error in plugin "addClassesToSVGElement": absent parameters. 81It should have a list of classes in "classNames" or one "className". 82Config example: 83 84plugins: [ 85 { 86 name: "addClassesToSVGElement", 87 params: { 88 className: "mySvg" 89 } 90 } 91] 92 93plugins: [ 94 { 95 name: "addClassesToSVGElement", 96 params: { 97 classNames: ["mySvg", "size-big"] 98 } 99 } 100] 101`,HI=(e,t,n)=>{if(!(Array.isArray(t.classNames)&&t.classNames.length!==0)&&!t.className)return console.error(WI),null;const r=t.classNames||[t.className];return{element:{enter:(i,s)=>{if(i.name==="svg"&&s.type==="root"){const a=new Set(i.attributes.class==null?null:i.attributes.class.split(" "));for(const l of r)if(l!=null){const c=typeof l=="string"?l:l(i,n);a.add(c)}i.attributes.class=Array.from(a).join(" ")}}}}};var YI=Object.freeze({__proto__:null,description:VI,fn:HI,name:BI});const XI="cleanupListOfValues",QI="rounds list of values to the fixed precision",KI=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,ZI=/\s+,?\s*|,\s*/,yh={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1},JI=(e,t)=>{const{floatPrecision:n=3,leadingZero:r=!0,defaultPx:i=!0,convertToPx:s=!0}=t,a=l=>{const c=[];for(const o of l.split(ZI)){const u=o.match(KI),h=o.match(/new/);if(u){let p=Number(Number(u[1]).toFixed(n)),m=u[3]||"";if(s&&m&&m in yh){const S=Number((yh[m]*Number(u[1])).toFixed(n));S.toString().length<u[0].length&&(p=S,m="px")}let b;b=r?gn(p):p.toString(),i&&m==="px"&&(m=""),c.push(b+m)}else h?c.push("new"):o&&c.push(o)}return c.join(" ")};return{element:{enter:l=>{l.attributes.points!=null&&(l.attributes.points=a(l.attributes.points)),l.attributes["enable-background"]!=null&&(l.attributes["enable-background"]=a(l.attributes["enable-background"])),l.attributes.viewBox!=null&&(l.attributes.viewBox=a(l.attributes.viewBox)),l.attributes["stroke-dasharray"]!=null&&(l.attributes["stroke-dasharray"]=a(l.attributes["stroke-dasharray"])),l.attributes.dx!=null&&(l.attributes.dx=a(l.attributes.dx)
101),l.attributes.dy!=null&&(l.attributes.dy=a(l.attributes.dy)),l.attributes.x!=null&&(l.attributes.x=a(l.attributes.x)),l.attributes.y!=null&&(l.attributes.y=a(l.attributes.y))}}}};var eM=Object.freeze({__proto__:null,description:QI,fn:JI,name:XI});const tM="convertOneStopGradients",nM="converts one-stop (single color) gradients to a plain color",rM=e=>{const t=Tt(e),n=new Set,r=new Map,i=new Map;let s=0;return{element:{enter:(a,l)=>{if(a.attributes["xlink:href"]!=null&&s++,a.name==="defs"){r.set(a,l);return}if(a.name!=="linearGradient"&&a.name!=="radialGradient")return;const c=a.children.filter((C=>C.type==="element"&&C.name==="stop")),o=a.attributes["xlink:href"]||a.attributes.href,u=c.length===0&&o!=null&&o.startsWith("#")?ip(e,o):a;if(u==null||u.type!=="element"){i.set(a,l);return}const h=u.children.filter((C=>C.type==="element"&&C.name==="stop"));if(h.length!==1||h[0].type!=="element")return;l.type==="element"&&l.name==="defs"&&n.add(l),i.set(a,l);let p;const d=$t(t,h[0])["stop-color"];d!=null&&d.type==="static"&&(p=d.value);const m=`url(#${a.attributes.id})`,b=[...Ia].map((C=>`[${C}="${m}"]`)).join(","),S=_r(e,b);for(const C of S)if(C.type==="element")for(const _ of Ia)C.attributes[_]===m&&(p!=null?C.attributes[_]=p:delete C.attributes[_]);const w=_r(e,`[style*=${m}]`);for(const C of w)C.type==="element"&&(C.attributes.style=C.attributes.style.replace(m,p||$o.presentation["stop-color"]))},exit:a=>{if(a.name==="svg"){for(const[l,c]of i.entries())l.attributes["xlink:href"]!=null&&s--,X(l,c);s===0&&delete a.attributes["xmlns:xlink"];for(const[l,c]of r.entries())n.has(l)&&l.children.length===0&&X(l,c)}}}}};var iM=Object.freeze({__proto__:null,description:nM,fn:rM,name:tM});const sM="convertStyleToAttrs",aM="converts style to attributes",qr=(...e)=>"(?:"+e.join("|")+")",oM=Me.presentation,nr="\\\\(?:[0-9a-f]{1,6}\\s?|\\r\\n|.)",lM="\\s*("+qr("[^:;\\\\]",nr)+"*?)\\s*",fs="'(?:[^'\\n\\r\\\\]|"+nr+")*?(?:'|$)",ds='"(?:[^"\\n\\r\\\\]|'+nr+')*?(?:"|$)',cM=new RegExp("^"+qr(fs,ds)+"$"),uM="\\("+qr(`[^'"()\\\\]+`,nr,fs,ds)+"*?\\)",hM="\\s*("+qr(`[^!'"();\\\\]+?`,nr,fs,ds,uM,"[^;]*?")+"*?)",pM="\\s*(?:;\\s*|$)",fM="(\\s*!important(?![-(\\w]))?",kh=new RegExp(lM+":"+hM+fM+pM,"ig"),dM=new RegExp(qr(nr,fs,ds,"/\\*[^]*?\\*/"),"ig"),mM=(e,t)=>{const{keepImportant:n=!1}=t;return{element:{enter:r=>{if(r.attributes.style!=null){let s=[];const a={},l=r.attributes.style.replace(dM,(c=>c[0]=="/"?"":c[0]=="\\"&&/[-g-z]/i.test(c[1])?c[1]:c));kh.lastIndex=0;for(var i;i=kh.exec(l);)n&&i[3]||s.push([i[1],i[2]]);s.length&&(s=s.filter((function(c){if(c[0]){const o=c[0].toLowerCase();let u=c[1];if(cM.test(u)&&(u=u.slice(1,-1)),oM.has(o))return a[o]=u,!1}return!0})),Object.assign(r.attributes,a),s.length?r.attributes.style=s.map((c=>c.join(":"))).join(";"):delete r.attributes.style)}}}}};var gM=Object.freeze({__proto__:null,description:aM,fn:mM,name:sM});const bM="prefixIds",yM="prefix IDs",kM=e=>{const t=/[/\\]?([^/\\]+)$/.exec(e);return t?t[1]:""},vM=e=>e.replace(/[. ]/g,"_"),wM=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e,Sr=(e,t)=>{const n=e(t);return t.startsWith(n)?t:n+t},Ca=(e,t)=>t.startsWith("#")?"#"+Sr(e,t.slice(1)):null,xM=(e,t,n,r,i,s)=>{if(typeof r=="function"){let a=s.get(e);return a!=null||(a=r(t,n)+i,s.set(e,a)),a}return typeof r=="string"?r+i:r===!1?"":n.path!=null&&n.path.length>0?vM(kM(n.path))+i:"prefix"+i},SM=(e,t,n)=>{const{delim:r="__",prefix:i,prefixIds:s=!0,prefixClassNames:a=!0}=t,l=new Map;return{element:{enter:c=>{const o=u=>xM(u,c,n,i,r,l);if(c.name==="style"){if(c.children.length===0)return;for(const u of c.children){if(u.type!=="text"&&u.type!=="cdata")continue;const h=u.value;let p;try{p=Hn(h,{parseValue:!0,parseCustomProperty:!1})}catch{return}ct(p,(d=>{if(s&&d.type==="IdSelector"||a&&d.type==="ClassSelector"){d.name=Sr(o,d.name);return}if(d.type==="Url"&&d.value.length>0){const m=Ca(o,wM(d.value));m!=null&&(d.value=m)}})),u.value=et(p)}}s&&c.attributes.id!=null&&c.attributes.id.length!==0&&(c.attributes.id=Sr(o,c.attributes.id)),a&&c.attributes.class!=null&&c.attributes.class.length!==0&&(c.attributes.class=c.attributes.class.split(/\s+/).map((u=>Sr(o,u))).join(" "));for(const u of["href","xlink:href"])if(c.attributes[u]!=null&&c.attributes[u].length!==0){const h=Ca(o,c.attributes[u]);h!=null&&(c.attributes[u]=h)}for(const u of Vi)c.attributes[u]!=null&&c.attributes[u].length!==0&&(c.attributes[u]=c.attributes[u].replace(/\burl\((["'])?(#.+?)\1\)/gi,((h,p,d)=>{const m=Ca(o,d);return m==null?h:`url(${m})`})));for(const u of["begin","end"])if(c.attributes[u]!=null&&c.attributes[u].length!==0){const h=c.attributes[u].split(/\s*;\s+/).map((p=>{if(p.endsWith(".end")||p.endsWith(".start")){const[d,m]=p.split(".");return`${Sr(o,d)}.${m}`}return p}));c.attributes[u]=h.join("; ")}}}}};var CM=Object.freeze({__proto__:null,description:yM,fn:SM,name:bM});const AM="removeAttributesBySelector",$M="removes attributes of elements that match a css selector",EM=(e,t)=>{const n=Array.isArray(t.selectors)?t.selectors:[t];for(const{selector:r,attributes:i}of n){const s=_r(e,r);for(const a of s)if(a.type==="element")if(Array.isArray(i))for(const l of i)delete a.attributes[l];else delete a.attributes[i]}return{}};var TM=Object.freeze({__proto__:null,description:$M,fn:EM,name:AM});const OM="removeAttrs",_M="removes specified attributes",LM=":",PM=`Warning: The plugin "removeAttrs" requires the "attrs" parameter. 102It should have a pattern to remove, otherwise the plugin is a noop. 103Config example: 104 105plugins: [ 106 { 107 name: "removeAttrs", 108 params: { 109 attrs: "(fill|stroke)" 110 } 111 } 112] 113`,NM=(e,t)=>{if(typeof t.attrs>"u")return console.warn(PM),null;const n=typeof t.elemSeparator=="string"?t.elemSeparator:LM,r=typeof t.preserveCurrentColor=="boolean"&&t.preserveCurrentColor,i=Array.isArray(t.attrs)?t.attrs:[t.attrs];return{element:{enter:s=>{for(let a of i){a.includes(n)?a.split(n).length<3&&(a=[a,".*"].join(n)):a=[".*",a,".*"].join(n);const l=a.split(n).map((c=>(c==="*"&&(c=".*"),new RegExp(["^",c,"$"].join(""),"i"))));if(l[0].test(s.name))for(const[c,o]of Object.entries(s.attributes)){const u=o.toLowerCase()==="currentcolor",h=r&&c=="fill"&&u,p=r&&c=="stroke"&&u;!h&&!p&&l[1].test(c)&&l[2].test(o)&&delete s.attributes[c]}}}}}};var IM=Object.freeze({__proto__:null,description:_M,fn:NM,name:OM});const MM="removeDimensions",RM="removes width and height in presence of viewB
113ox (opposite to removeViewBox)",DM=()=>({element:{enter:e=>{if(e.name==="svg"){if(e.attributes.viewBox!=null)delete e.attributes.width,delete e.attributes.height;else if(e.attributes.width!=null&&e.attributes.height!=null&&Number.isNaN(Number(e.attributes.width))===!1&&Number.isNaN(Number(e.attributes.height))===!1){const t=Number(e.attributes.width),n=Number(e.attributes.height);e.attributes.viewBox=`0 0 ${t} ${n}`,delete e.attributes.width,delete e.attributes.height}}}}});var zM=Object.freeze({__proto__:null,description:RM,fn:DM,name:MM});const FM="removeElementsByAttr",jM="removes arbitrary elements by ID or className (disabled by default)",qM=(e,t)=>{const n=t.id==null?[]:Array.isArray(t.id)?t.id:[t.id],r=t.class==null?[]:Array.isArray(t.class)?t.class:[t.class];return{element:{enter:(i,s)=>{if(i.attributes.id!=null&&n.length!==0&&n.includes(i.attributes.id)&&X(i,s),i.attributes.class&&r.length!==0){const a=i.attributes.class.split(" ");for(const l of r)if(a.includes(l)){X(i,s);break}}}}}};var UM=Object.freeze({__proto__:null,description:jM,fn:qM,name:FM});const GM="removeOffCanvasPaths",BM="removes elements that are drawn outside of the viewBox (disabled by default)",VM=()=>{let e=null;return{element:{enter:(t,n)=>{if(t.name==="svg"&&n.type==="root"){let r="";t.attributes.viewBox!=null?r=t.attributes.viewBox:t.attributes.height!=null&&t.attributes.width!=null&&(r=`0 0 ${t.attributes.width} ${t.attributes.height}`),r=r.replace(/[,+]|px/g," ").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"");const i=/^(-?\d*\.?\d+) (-?\d*\.?\d+) (\d*\.?\d+) (\d*\.?\d+)$/.exec(r);if(i==null)return;const s=Number.parseFloat(i[1]),a=Number.parseFloat(i[2]),l=Number.parseFloat(i[3]),c=Number.parseFloat(i[4]);e={left:s,top:a,right:s+l,bottom:a+c,width:l,height:c}}if(t.attributes.transform!=null)return Wt;if(t.name==="path"&&t.attributes.d!=null&&e!=null){const r=hl(t.attributes.d);let i=!1;for(const u of r)if(u.command==="M"){const[h,p]=u.args;h>=e.left&&h<=e.right&&p>=e.top&&p<=e.bottom&&(i=!0)}if(i)return;r.length===2&&r.push({command:"z",args:[]});const{left:s,top:a,width:l,height:c}=e;gg([{command:"M",args:[s,a]},{command:"h",args:[l]},{command:"v",args:[c]},{command:"H",args:[s]},{command:"z",args:[]}],r)===!1&&X(t,n)}}}}};var WM=Object.freeze({__proto__:null,description:BM,fn:VM,name:GM});const HM="removeRasterImages",YM="removes raster images (disabled by default)",XM=()=>({element:{enter:(e,t)=>{e.name==="image"&&e.attributes["xlink:href"]!=null&&/(\.|image\/)(jpe?g|png|gif)/.test(e.attributes["xlink:href"])&&X(e,t)}}});var QM=Object.freeze({__proto__:null,description:YM,fn:XM,name:HM});const KM="removeScripts",ZM="removes scripts (disabled by default)",JM=[...Me.animationEvent,...Me.documentEvent,...Me.documentElementEvent,...Me.globalEvent,...Me.graphicalEvent],eR=()=>({element:{enter:(e,t)=>{if(e.name==="script"){X(e,t);return}for(const n of JM)e.attributes[n]!=null&&delete e.attributes[n]},exit:(e,t)=>{if(e.name==="a"){for(const n of Object.keys(e.attributes))if(n==="href"||n.endsWith(":href")){if(e.attributes[n]==null||!e.attributes[n].trimStart().startsWith("javascript:"))continue;const r=t.children.indexOf(e),i=e.children.filter((s=>s.type!=="text"));t.children.splice(r,1,...i)}}}}});var tR=Object.freeze({__proto__:null,description:ZM,fn:eR,name:KM});const nR="removeStyleElement",rR="removes <style> element (disabled by default)",iR=()=>({element:{enter:(e,t)=>{e.name==="style"&&X(e,t)}}});var sR=Object.freeze({__proto__:null,description:rR,fn:iR,name:nR});const aR="removeTitle",oR="removes <title>",lR=()=>({element:{enter:(e,t)=>{e.name==="title"&&X(e,t)}}});var cR=Object.freeze({__proto__:null,description:oR,fn:lR,name:aR});const uR="removeViewBox",hR="removes viewBox attribute when possible",pR=new Set(["pattern","svg","symbol"]),fR=()=>({element:{enter:(e,t)=>{if(pR.has(e.name)&&e.attributes.viewBox!=null&&e.attributes.width!=null&&e.attributes.height!=null){if(e.name==="svg"&&t.type!=="root")return;const n=e.attributes.viewBox.split(/[ ,]+/g);n[0]==="0"&&n[1]==="0"&&e.attributes.width.replace(/px$/,"")===n[2]&&e.attributes.height.replace(/px$/,"")===n[3]&&delete e.attributes.viewBox}}}});var dR=Object.freeze({__proto__:null,description:hR,fn:fR,name:uR});const mR="removeXlink",gR="remove xlink namespace and replaces attributes with the SVG 2 equivalent where applicable",vh="http://www.w3.org/1999/xlink",bR={new:"_blank",replace:"_self"},yR=new Set(["cursor","filter","font-face-uri","glyphRef","tref"]),Aa=(e,t,n)=>t.map((r=>`${r}:${n}`)).filter((r=>e.attributes[r]!=null)),kR=(e,t)=>{const{includeLegacy:n}=t,r=[],i=[],s=[];return{element:{enter:a=>{for(const[h,p]of Object.entries(a.attributes))if(h.startsWith("xmlns:")){const d=h.split(":",2)[1];if(p===vh){r.push(d);continue}r.includes(d)&&i.push(d)}if(i.some((h=>r.includes(h))))return;const l=Aa(a,r,"show");let c=a.attributes.target!=null;for(let h=l.length-1;h>=0;h--){const p=l[h],d=a.attributes[p],m=bR[d];if(c||m==null){delete a.attributes[p];continue}m!==Eo[a.name]?.defaults?.target&&(a.attributes.target=m),delete a.attributes[p],c=!0}const o=Aa(a,r,"title");for(let h=o.length-1;h>=0;h--){const p=o[h],d=a.attributes[p];if(a.children.filter((S=>S.type==="element"&&S.name==="title")).length>0){delete a.attributes[p];continue}const b={type:"element",name:"title",attributes:{},children:[{type:"text",value:d}]};Object.defineProperty(b,"parentNode",{writable:!0,value:a}),a.children.unshift(b),delete a.attributes[p]}const u=Aa(a,r,"href");if(u.length>0&&yR.has(a.name)&&!n){u.map((h=>
113h.split(":",1)[0])).forEach((h=>s.push(h)));return}for(let h=u.length-1;h>=0;h--){const p=u[h],d=a.attributes[p];if(a.attributes.href!=null){delete a.attributes[p];continue}a.attributes.href=d,delete a.attributes[p]}},exit:a=>{for(const[l,c]of Object.entries(a.attributes)){const[o,u]=l.split(":",2);if(r.includes(o)&&!i.includes(o)&&!s.includes(o)&&!n){delete a.attributes[l];continue}if(l.startsWith("xmlns:")&&!s.includes(u)){if(c===vh){const h=r.indexOf(u);r.splice(h,1),delete a.attributes[l];continue}if(i.includes(o)){const h=i.indexOf(u);i.splice(h,1)}}}}}}};var vR=Object.freeze({__proto__:null,description:gR,fn:kR,name:mR});const wR="removeXMLNS",xR="removes xmlns attribute (for inline svg, disabled by default)",SR=()=>({element:{enter:e=>{e.name==="svg"&&delete e.attributes.xmlns}}});var CR=Object.freeze({__proto__:null,description:xR,fn:SR,name:wR});const AR="reusePaths",$R="Finds <path> elements with the same d, fill, and stroke, and converts them to <use> elements referencing a single <path> def.",ER=e=>{const t=Tt(e),n=new Map;let r;const i=new Set;return{element:{enter:(s,a)=>{if(s.name==="path"&&s.attributes.d!=null){const l=s.attributes.d,c=s.attributes.fill||"",o=s.attributes.stroke||"",u=l+";s:"+o+";f:"+c;let h=n.get(u);h==null&&(h=[],n.set(u,h)),h.push(s)}if(r==null&&s.name==="defs"&&a.type==="element"&&a.name==="svg"&&(r=s),s.name==="use")for(const l of["href","xlink:href"]){const c=s.attributes[l];c!=null&&c.startsWith("#")&&c.length>1&&i.add(c.slice(1))}},exit:(s,a)=>{if(s.name==="svg"&&a.type==="root"){let l=r;l==null&&(l={type:"element",name:"defs",attributes:{},children:[]});let c=0;for(const o of n.values())if(o.length>1){const u={type:"element",name:"path",attributes:{},children:[]};for(const p of["fill","stroke","d"])o[0].attributes[p]!=null&&(u.attributes[p]=o[0].attributes[p]);const h=o[0].attributes.id;h==null||i.has(h)||t.rules.some((p=>p.selector===`#${h}`))?u.attributes.id="reuse-"+c++:(u.attributes.id=h,delete o[0].attributes.id),l.children.push(u);for(const p of o){if(delete p.attributes.d,delete p.attributes.stroke,delete p.attributes.fill,l.children.includes(p)&&p.children.length===0){if(Object.keys(p.attributes).length===0){X(p,l);continue}if(Object.keys(p.attributes).length===1&&p.attributes.id!=null){X(p,l);const d=`[xlink\\:href=#${p.attributes.id}], [href=#${p.attributes.id}]`;for(const m of _r(s,d))if(m.type==="element")for(const b of["href","xlink:href"])m.attributes[b]!=null&&(m.attributes[b]="#"+u.attributes.id);continue}}p.name="use",p.attributes["xlink:href"]="#"+u.attributes.id}}l.children.length!==0&&(s.attributes["xmlns:xlink"]==null&&(s.attributes["xmlns:xlink"]="http://www.w3.org/1999/xlink"),r==null&&s.children.unshift(l))}}}}};var TR=Object.freeze({__proto__:null,description:$R,fn:ER,name:AR});const OR=Object.freeze([zI,GI,YI,qm,ig,Ym,eM,Km,dg,Zm,ug,iM,Sg,cg,gM,Cg,Gm,Eg,Um,Wm,hg,pg,CM,TM,IM,op,zm,Lg,zM,sp,jm,UM,Ag,$g,lg,og,Fm,ng,WM,QM,tR,sR,cR,tg,Tg,Qm,rg,dR,vR,CR,ap,TR,Og,_g]);var Pg={};(function(e){(function(t){t.parser=function(g,f){return new r(g,f)},t.SAXParser=r,t.MAX_BUFFER_LENGTH=65536;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(g,f){if(!(this instanceof r))return new r(g,f);var O=this;s(O),O.q=O.c="",O.bufferCheckPosition=t.MAX_BUFFER_LENGTH,O.opt=f||{},O.opt.lowercase=O.opt.lowercase||O.opt.lowercasetags,O.looseCase=O.opt.lowercase?"toLowerCase":"toUpperCase",O.tags=[],O.closed=O.closedRoot=O.sawRoot=!1,O.tag=O.error=null,O.strict=!!g,O.noscript=!!(g||O.opt.noscript),O.state=y.BEGIN,O.strictEntities=O.opt.strictEntities,O.ENTITIES=O.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),O.attribList=[],O.opt.xmlns&&(O.ns=Object.create(h)),O.opt.unquotedAttributeValues===void 0&&(O.opt.unquotedAttributeValues=!g),O.trackPosition=O.opt.position!==!1,O.trackPosition&&(O.position=O.line=O.column=0),N(O,"onready")}Object.create||(Object.create=function(g){function f(){}f.prototype=g;var O=new f;return O}),Object.keys||(Object.keys=function(g){var f=[];for(var O in g)g.hasOwnProperty(O)&&f.push(O);return f});function i(g){for(var f=Math.max(t.MAX_BUFFER_LENGTH,10),O=0,$=0,ce=n.length;$<ce;$++){var ke=g[n[$]].length;if(ke>f)switch(n[$]){case"textNode":v(g);break;
vendor: 7,150 bytes, lines 113-119
113case"cdata":k(g,"oncdata",g.cdata),g.cdata="";break;case"script":k(g,"onscript",g.script),g.script="";break;default:A(g,"Max buffer length exceeded: "+n[$])}O=Math.max(O,ke)}var ve=t.MAX_BUFFER_LENGTH-O;g.bufferCheckPosition=ve+g.position}function s(g){for(var f=0,O=n.length;f<O;f++)g[n[f]]=""}function a(g){v(g),g.cdata!==""&&(k(g,"oncdata",g.cdata),g.cdata=""),g.script!==""&&(k(g,"onscript",g.script),g.script="")}r.prototype={end:function(){M(this)},write:ir,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var l="[CDATA[",c="DOCTYPE",o="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",h={xml:o,xmlns:u},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function S(g){return g===" "||g===` 114`||g==="\r"||g===" "}function w(g){return g==='"'||g==="'"}function C(g){return g===">"||S(g)}function _(g,f){return g.test(f)}function E(g,f){return!_(g,f)}var y=0;t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(g){var f=t.ENTITIES[g],O=typeof f=="number"?String.fromCharCode(f):f;t.ENTITIES[g]=O}));for(var L in t.STATE)t.STATE[t.STATE[L]]=L;y=t.STATE;function N(g,f,O){g[f]&&g[f](O)}function k(g,f,O){g.textNode&&v(g),N(g,f,O)}function v(g){g.textNode=x(g.opt,g.textNode),g.textNode&&N(g,"ontext",g.textNode),g.textNode=""}function x(g,f){return g.trim&&(f=f.trim()),g.normalize&&(f=f.replace(/\s+/g," ")),f}function A(g,f){return v(g),g.trackPosition&&(f+=` 115Line: `+g.line+` 116Column: `+g.column+` 117Char: `+g.c),f=new Error(f),g.error=f,N(g,"onerror",f),g}function M(g){return g.sawRoot&&!g.closedRoot&&T(g,"Unclosed root tag"),g.state!==y.BEGIN&&g.state!==y.BEGIN_WHITESPACE&&g.state!==y.TEXT&&A(g,"Unexpected end"),v(g),g.c="",g.closed=!0,N(g,"onend"),r.call(g,g.strict,g.opt),g}function T(g,f){if(typeof g!="object"||!(g instanceof r))throw new Error("bad call to strictFail");g.strict&&A(g,f)}function V(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var f=g.tags[g.tags.length-1]||g,O=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(O.ns=f.ns),g.attribList.length=0,k(g,"onopentagstart",O)}function G(g,f){var O=g.indexOf(":"),$=O<0?["",g]:g.split(":"),ce=$[0],ke=$[1];return f&&g==="xmlns"&&(ce="xmlns",ke=""),{prefix:ce,local:ke}}function j(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName)){g.attribName=g.attribValue="";return}if(g.opt.xmlns){var f=G(g.attribName,!0),O=f.prefix,$=f.local;if(O==="xmlns")if($==="xml"&&g.attribValue!==o)T(g,"xml: prefix must be bound to "+o+` 118Actual: `+g.attribValue);else if($==="xmlns"&&g.attribValue!==u)T(g,"xmlns: prefix must be bound to "+u+` 119Actual: `+g.attribValue);else{var ce=g.tag,ke=g.tags[g.tags.length-1]||g;ce.ns===ke.ns&&(ce.ns=Object.create(ke.ns)),ce.ns[$]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,k(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function J(g,f){if(g.opt.xmlns){var O=g.tag,$=G(g.tagName);O.prefix=$.prefix,O.local=$.local,O.uri=O.ns[$.prefix]||"",O.prefix&&!O.uri&&(T(g,"Unbound namespace prefix: "+JSON.stringify(g.tagName)),O.uri=$.prefix);var ce=g.tags[g.tags.length-1]||g;
vendor: 8,391 bytes, lines 119-121
119O.ns&&ce.ns!==O.ns&&Object.keys(O.ns).forEach((function(yl){k(g,"onopennamespace",{prefix:yl,uri:O.ns[yl]})}));for(var ke=0,ve=g.attribList.length;ke<ve;ke++){var Ue=g.attribList[ke],Ge=Ue[0],wn=Ue[1],Ee=G(Ge,!0),jt=Ee.prefix,Ig=Ee.local,bl=jt===""?"":O.ns[jt]||"",ms={name:Ge,value:wn,prefix:jt,local:Ig,uri:bl};jt&&jt!=="xmlns"&&!bl&&(T(g,"Unbound namespace prefix: "+JSON.stringify(jt)),ms.uri=jt),g.tag.attributes[Ge]=ms,k(g,"onattribute",ms)}g.attribList.length=0}g.tag.isSelfClosing=!!f,g.sawRoot=!0,g.tags.push(g.tag),k(g,"onopentag",g.tag),f||(g.noscript||g.tagName.toLowerCase()!=="script"?g.state=y.TEXT:g.state=y.SCRIPT,g.tag=null,g.tagName=""),g.attribName=g.attribValue="",g.attribList.length=0}function rt(g){if(!g.tagName){T(g,"Weird empty close tag."),g.textNode+="</>",g.state=y.TEXT;return}if(g.script){if(g.tagName!=="script"){g.script+="</"+g.tagName+">",g.tagName="",g.state=y.SCRIPT;return}k(g,"onscript",g.script),g.script=""}var f=g.tags.length,O=g.tagName;g.strict||(O=O[g.looseCase]());for(var $=O;f--;){var ce=g.tags[f];if(ce.name===$)break;T(g,"Unexpected close tag")}if(f<0){T(g,"Unmatched closing tag: "+g.tagName),g.textNode+="</"+g.tagName+">",g.state=y.TEXT;return}g.tagName=O;for(var ke=g.tags.length;ke-- >f;){var ve=g.tag=g.tags.pop();g.tagName=g.tag.name,k(g,"onclosetag",g.tagName);var Ue={};for(var Ge in ve.ns)Ue[Ge]=ve.ns[Ge];var wn=g.tags[g.tags.length-1]||g;g.opt.xmlns&&ve.ns!==wn.ns&&Object.keys(ve.ns).forEach((function(Ee){var jt=ve.ns[Ee];k(g,"onclosenamespace",{prefix:Ee,uri:jt})}))}f===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=y.TEXT}function Le(g){var f=g.entity,O=f.toLowerCase(),$,ce="";return g.ENTITIES[f]?g.ENTITIES[f]:g.ENTITIES[O]?g.ENTITIES[O]:(f=O,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),$=parseInt(f,16),ce=$.toString(16)):(f=f.slice(1),$=parseInt(f,10),ce=$.toString(10))),f=f.replace(/^0+/,""),isNaN($)||ce.toLowerCase()!==f?(T(g,"Invalid character entity"),"&"+g.entity+";"):String.fromCodePoint($))}function vn(g,f){f==="<"?(g.state=y.OPEN_WAKA,g.startTagPosition=g.position):S(f)||(T(g,"Non-whitespace before first tag."),g.textNode=f,g.state=y.TEXT)}function rr(g,f){var O="";return f<g.length&&(O=g.charAt(f)),O}function ir(g){var f=this;if(this.error)throw this.error;if(f.closed)return A(f,"Cannot write after close. Assign an onready handler.");if(g===null)return M(f);typeof g=="object"&&(g=g.toString());for(var O=0,$="";$=rr(g,O++),f.c=$,!!$;)switch(f.trackPosition&&(f.position++,$===` 120`?(f.line++,f.column=0):f.column++),f.state){case y.BEGIN:if(f.state=y.BEGIN_WHITESPACE,$==="\uFEFF")continue;vn(f,$);continue;case y.BEGIN_WHITESPACE:vn(f,$);continue;case y.TEXT:if(f.sawRoot&&!f.closedRoot){for(var ce=O-1;$&&$!=="<"&&$!=="&";)$=rr(g,O++),$&&f.trackPosition&&(f.position++,$===` 121`?(f.line++,f.column=0):f.column++);f.textNode+=g.substring(ce,O-1)}$!=="<"||f.sawRoot&&f.closedRoot&&!f.strict?(S($)||f.sawRoot&&!f.closedRoot||T(f,"Text data outside of root node."),$==="&"?f.state=y.TEXT_ENTITY:f.textNode+=$):(f.state=y.OPEN_WAKA,f.startTagPosition=f.position);continue;case y.SCRIPT:$==="<"?f.state=y.SCRIPT_ENDING:f.script+=$;continue;case y.SCRIPT_ENDING:$==="/"?f.state=y.CLOSE_TAG:(f.script+="<"+$,f.state=y.SCRIPT);continue;case y.OPEN_WAKA:if($==="!")f.state=y.SGML_DECL,f.sgmlDecl="";else if(!S($))if(_(p,$))f.state=y.OPEN_TAG,f.tagName=$;else if($==="/")f.state=y.CLOSE_TAG,f.tagName="";else if($==="?")f.state=y.PROC_INST,f.procInstName=f.procInstBody="";else{if(T(f,"Unencoded <"),f.startTagPosition+1<f.position){var ke=f.position-f.startTagPosition;$=new Array(ke).join(" ")+$}f.textNode+="<"+$,f.state=y.TEXT}continue;case y.SGML_DECL:if(f.sgmlDecl+$==="--"){f.state=y.COMMENT,f.comment="",f.sgmlDecl="";continue}f.doctype&&f.doctype!==!0&&f.sgmlDecl?(f.state=y.DOCTYPE_DTD,f.doctype+="<!"+f.sgmlDecl+$,f.sgmlDecl=""):(f.sgmlDecl+$).toUpperCase()===l?(k(f,"onopencdata"),f.state=y.CDATA,f.sgmlDecl="",f.cdata=""):(f.sgmlDecl+$).toUpperCase()===c?(f.state=y.DOCTYPE,(f.doctype||f.sawRoot)&&T(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):$===">"?(k(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=y.TEXT):(w($)&&(f.state=y.SGML_DECL_QUOTED),f.sgmlDecl+=$);continue;case y.SGML_DECL_QUOTED:$===f.q&&(f.state=y.SGML_DECL,f.q=""),f.sgmlDecl+=$;continue;case y.DOCTYPE:$===">"?(f.state=y.TEXT,k(f,"ondoctype",f.doctype),f.doctype=!0):(f.doctype+=$,$==="["?f.state=y.DOCTYPE_DTD:w($)&&(f.state=y.DOCTYPE_QUOTED,f.q=$));continue;case y.DOCTYPE_QUOTED:f.doctype+=$,$===f.q&&(f.q="",f.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:$==="]"?(f.doctype+=$,f.state=y.DOCTYPE):$==="<"?(f.state=y.OPEN_WAKA,f.startTagPosition=f.position):w($)?(f.doctype+=$,f.state=y.DOCTYPE_DTD_QUOTED,f.q=$):f.doctype+=$;continue;case y.DOCTYPE_DTD_QUOTED:f.doctype+=$,$===f.q&&(f.state=y.DOCTYPE_DTD,f.q="");continue;case y.COMMENT:$==="-"?f.state=y.COMMENT_ENDING:f.comment+=$;continue;case y.COMMENT_ENDING:$==="-"?(f.state=y.COMMENT_ENDED,f.comment=x(f.opt,f.comment),f.comment&&k(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+$,f.state=y.COMMENT);continue;case y.COMMENT_ENDED:$!==">"?(T(f,"Malformed comment"),f.comment+="--"+$,f.state=y.COMMENT):f.doctype&&f.doctype!==!0?f.state=y.DOCTYPE_DTD:f.state=y.TEXT;continue;case y.CDATA:$==="]"?f.state=y.CDATA_ENDING:f.cdata+=$;continue;case y.CDATA_ENDING:$==="]"?f.state=y.CDATA_ENDING_2:(f.cdata+="]"+$,f.state=y.CDATA);continue;case y.CDATA_ENDING_2:$===">"?(f.cdata&&k(f,"oncdata",f.cdata),k(f,"onclosecdata"),f.cdata="",f.state=y.TEXT):$==="]"?f.cdata+="]":(f.cdata+="]]"+$,f.state=y.CDATA);continue;case y.PROC_INST:$==="?"?f.state=y.PROC_INST_ENDING:S($)?f.state=y.PROC_INST_BODY:f.procInstName+=$;continue;case y.PROC_INST_BODY:if(!f.procInstBody&&S($))continue;$==="?"?f.state=y.PROC_INST_ENDING:f.procInstBody+=$;continue;case y.PROC_INST_ENDING:$===">"?(k(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=y.TEXT):(f.procInstBody+="?"+$,f.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:_(d,$)?f.tagName+=$:(V(f),$===">"?J(f):$==="/"?f.state=y.OPEN_TAG_SLASH:(S($)||T(f,"Invalid character in tag name"),f.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:$===">"?(J(f,!0),rt(f)):(T(f,"Forward-slash in opening tag not followed by >"),f.state=y.ATTRIB);continue;case y.ATTRIB:if(S($))continue;$===">"?J(f):$==="/"?f.state=y.OPEN_TAG_SLASH:_(p,$)?(f.attribName=$,f.attribValue="",f.state=y.ATTRIB_NAME):T(f,"Invalid attribute name");continue;case y.ATTRIB_NAME:$==="="?f.state=y.ATTRIB_VALUE:$===">"?(T(f,"Attribute without value"),f.attribValue=f.attribName,j(f),J(f)):S($)?f.state=y.ATTRIB_NAME_SAW_WHITE:_(d,$)?f.attribName+=$:T(f,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if($==="=")f.state=y.ATTRIB_VALUE;else{if(S($))continue;T(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",k(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",$===">"?J(f):_(p,$)?(f.attribName=$,f.state=y.ATTRIB_NAME):(T(f,"Invalid attribute name"),f.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(S($))continue;w($)?(f.q=$,f.state=y.ATTRIB_VALUE_QUOTED):(f.opt.unquotedAttributeValues||A(f,"Unquoted attribute value"),f.state=y.ATTRIB_VALUE_UNQUOTED,f.attribValue=$);continue;case y.ATTRIB_VALUE_QUOTED:if($!==f.q){$==="&"?f.state=y.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=$;continue}j(f),f.q="",f.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:S($)?f.state=y.ATTRIB:$===">"?J(f):$==="/"?f.state=y.OPEN_TAG_SLASH:_(p,$)?(T(f,"No whitespace between attributes"),f.attribName=$,f.attribValue="",f.state=y.ATTRIB_NAME):T(f,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!C($)){$==="&"?f.state=y.ATTRIB_VALUE_ENTITY_U:f.attribValue+=$;continue}j(f),$===">"?J(f):f.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(f.tagName)$===">"?rt(f):_(d,$)?f.tagName+=$:f.script?(f.script+="</"+f.tagName,f.tagName="",f.state=y.SCRIPT):(S($)||T(f,"Invalid tagname in closing tag"),f.state=y.CLOSE_TAG_SAW_WHITE);else{if(S($))continue;E(p,$)?f.script?(f.script+="</"+$,f.state=y.SCRIPT):T(f,"Invalid tagname in closing tag."):f.tagName=$}continue;case y.CLOSE_TAG_SAW_WHITE:if(S($))continue;$===">"?rt(f):T(f,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var ve,Ue;
121switch(f.state){case y.TEXT_ENTITY:ve=y.TEXT,Ue="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:ve=y.ATTRIB_VALUE_QUOTED,Ue="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:ve=y.ATTRIB_VALUE_UNQUOTED,Ue="attribValue";break}if($===";"){var Ge=Le(f);f.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(Ge)?(f.entity="",f.state=ve,f.write(Ge)):(f[Ue]+=Ge,f.entity="",f.state=ve)}else _(f.entity.length?b:m,$)?f.entity+=$:(T(f,"Invalid character in entity name"),f[Ue]+="&"+f.entity+$,f.entity="",f.state=ve);continue;default:throw new Error(f,"Unknown state: "+f.state)}return f.position>=f.bufferCheckPosition&&i(f),f}String.fromCodePoint||(function(){var g=String.fromCharCode,f=Math.floor,O=function(){var $=16384,ce=[],ke,ve,Ue=-1,Ge=arguments.length;if(!Ge)return"";for(var wn="";++Ue<Ge;){var Ee=Number(arguments[Ue]);if(!isFinite(Ee)||Ee<0||Ee>1114111||f(Ee)!==Ee)throw RangeError("Invalid code point: "+Ee);Ee<=65535?ce.push(Ee):(Ee-=65536,ke=55296+(Ee>>10),ve=Ee%1024+56320,ce.push(ke,ve)),(Ue+1===Ge||ce.length>$)&&(wn+=g.apply(null,ce),ce.length=0)}return wn};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:O,configurable:!0,writable:!0}):String.fromCodePoint=O})()})(e)})(Pg);var _R=qh(Pg);class gl extends Error{constructor(t,n,r,i,s){super(t),this.name="SvgoParserError",this.message=`${s||"<input>"}:${n}:${r}: ${t}`,this.reason=t,this.line=n,this.column=r,this.source=i,Error.captureStackTrace&&Error.captureStackTrace(this,gl)}toString(){const t=this.source.split(/\r?\n/),n=Math.max(this.line-3,0),r=Math.min(this.line+2,t.length),i=String(r).length,s=Math.max(this.column-54,0),a=Math.max(this.column+20,80),l=t.slice(n,r).map(((c,o)=>{const u=c.slice(s,a);let h="",p="";s!==0&&(h=s>c.length-1?" ":"â¦"),a<c.length-1&&(p="â¦");const d=n+1+o,m=` ${d.toString().padStart(i)} | `;if(d===this.line){const b=m.replace(/[^|]/g," "),S=(h+c.slice(s,this.column-1)).replace(/[^\t]/g," "),w=b+S;return`>${m}${h}${u}${p} 122 ${w}^`}return` ${m}${h}${u}${p}`})).join(` 123`);return`${this.name}: ${this.message} 124 125${l} 126`}}const $a=/<!ENTITY\s+(\S+)\s+(?:'([^']+)'|"([^"]+)")\s*>/g,wh={strict:!0,trim:!1,normalize:!1,lowercase:!0,xmlns:!0,position:!0,unparsedEntities:!0},LR=(e,t)=>{const n=_R.parser(wh.strict,wh),r={type:"root",children:[]};let i=r;const s=[r],a=l=>{i.children.push(l)};return n.ondoctype=l=>{a({type:"doctype",name:"svg",data:{doctype:l}});const o=l.indexOf("[");if(o>=0){$a.lastIndex=o;let u=$a.exec(e);for(;u!=null;)n.ENTITIES[u[1]]=u[2]||u[3],u=$a.exec(e)}},n.onprocessinginstruction=l=>{const c={type:"instruction",name:l.name,value:l.body};a(c)},n.oncomment=l=>{const c={type:"comment",value:l.trim()};a(c)},n.oncdata=l=>{a({type:"cdata",value:l})},n.onopentag=l=>{const c={type:"element",name:l.name,attributes:{},children:[]};for(const[o,u]of Object.entries(l.attributes))c.attributes[o]=u.value;a(c),i=c,s.push(c)},n.ontext=l=>{if(i.type==="element")if(lp.has(i.name))a({type:"text",value:l});else{const c=l.trim();c!==""&&a({type:"text",value:c})}},n.onclosetag=()=>{s.pop(),i=s[s.length-1]},n.onerror=l=>{const c=l.message.split(` 127`)[0],o=new gl(c,n.line+1,n.column,e,t);if(l.message.indexOf("Unexpected end")===-1)throw o},n.write(e).close(),r},PR=e=>NR[e],fn={doctypeStart:"<!DOCTYPE",doctypeEnd:">",procInstStart:"<?",procInstEnd:"?>",tagOpenStart:"<",tagOpenEnd:">",tagCloseStart:"</",tagCloseEnd:">",tagShortStart:"<",tagShortEnd:"/>",attrStart:'="',attrEnd:'"',commentStart:"<!--",commentEnd:"-->",cdataStart:"<![CDATA[",cdataEnd:"]]>",textStart:"",textEnd:"",indent:4,regEntities:/[&'"<>]/g,regValEntities:/[&"<>]/g,encodeEntity:PR,pretty:!1,useShortTags:!0,eol:"lf",finalNewline:!1},NR={"&":"&","'":"'",'"':""",">":">","<":"<"},IR=(e,t={})=>{const n={...fn,...t},r=n.indent;let i=" ";typeof r=="number"&&Number.isNaN(r)===!1?i=r<0?" ":" ".repeat(r):typeof r=="string"&&(i=r);const s={indent:i,textContext:null,indentLevel:0},a=n.eol==="crlf"?`\r 128`:` 129`;n.pretty&&(n.doctypeEnd+=a,n.procInstEnd+=a,n.commentEnd+=a,n.cdataEnd+=a,n.tagShortEnd+=a,n.tagOpenEnd+=a,n.tagCloseEnd+=a,n.textEnd+=a);let l=Ng(e,n,s);return n.finalNewline&&l.length>0&&!l.endsWith(` 130`)&&(l+=a),l}
130,Ng=(e,t,n)=>{let r="";n.indentLevel++;for(const i of e.children)switch(i.type){case"element":r+=FR(i,t,n);break;case"text":r+=jR(i,t,n);break;case"doctype":r+=MR(i,t);break;case"instruction":r+=RR(i,t);break;case"comment":r+=DR(i,t);break;case"cdata":r+=zR(i,t,n)}return n.indentLevel--,r},Dn=(e,t)=>{let n="";return e.pretty&&t.textContext==null&&(n=t.indent.repeat(t.indentLevel-1)),n},MR=(e,t)=>t.doctypeStart+e.data.doctype+t.doctypeEnd,RR=(e,t)=>t.procInstStart+e.name+" "+e.value+t.procInstEnd,DR=(e,t)=>t.commentStart+e.value+t.commentEnd,zR=(e,t,n)=>Dn(t,n)+t.cdataStart+e.value+t.cdataEnd,FR=(e,t,n)=>{if(e.children.length===0)return t.useShortTags?Dn(t,n)+t.tagShortStart+e.name+Ea(e,t)+t.tagShortEnd:Dn(t,n)+t.tagShortStart+e.name+Ea(e,t)+t.tagOpenEnd+t.tagCloseStart+e.name+t.tagCloseEnd;let r=t.tagOpenStart,i=t.tagOpenEnd,s=t.tagCloseStart,a=t.tagCloseEnd,l=Dn(t,n),c=Dn(t,n);n.textContext?(r=fn.tagOpenStart,i=fn.tagOpenEnd,s=fn.tagCloseStart,a=fn.tagCloseEnd,l=""):lp.has(e.name)&&(i=fn.tagOpenEnd,s=fn.tagCloseStart,c="",n.textContext=e);const o=Ng(e,t,n);return n.textContext===e&&(n.textContext=null),l+r+e.name+Ea(e,t)+i+o+c+s+e.name+a},Ea=(e,t)=>{let n="";for(const[r,i]of Object.entries(e.attributes))if(n+=" "+r,i!==void 0){const s=i.toString().replace(t.regValEntities,t.encodeEntity);n+=t.attrStart+s+t.attrEnd}return n},jR=(e,t,n)=>Dn(t,n)+t.textStart+e.value.replace(t.regEntities,t.encodeEntity)+(n.textContext?"":t.textEnd),bo=new Map;for(const e of OR)bo.set(e.name,e);function xh(e){return e==="removeScriptElement"?(console.warn("Warning: removeScriptElement has been renamed to removeScripts, please update your SVGO config"),bo.get("removeScripts")):bo.get(e)}const qR=e=>{if(typeof e=="string"){const t=xh(e);if(t==null)throw Error(`Unknown builtin plugin "${e}" specified.`);return{name:e,params:{},fn:t.fn}}if(typeof e=="object"&&e!=null){if(e.name==null)throw Error("Plugin name must be specified");let t=e.fn;if(t==null){const n=xh(e.name);if(n==null)throw Error(`Unknown builtin plugin "${e.name}" specified.`);t=n.fn}return{name:e.name,params:e.params,fn:t}}return null},UR=(e,t)=>{if(t==null&&(t={}),typeof t!="object")throw Error("Config should be an object");const n=t.multipass?10:1;let r=Number.POSITIVE_INFINITY,i="";const s={};t.path!=null&&(s.path=t.path);for(let a=0;a<n;a+=1){s.multipassCount=a;const l=LR(e,t.path),c=t.plugins||["preset-default"];if(!Array.isArray(c))throw Error("malformed config, `plugins` property must be an array.\nSee more info here: https://github.com/svg/svgo#configuration");const o=c.filter((h=>h!=null)).map(qR);o.length<c.length&&console.warn("Warning: plugins list includes null or undefined elements, these will be ignored.");const u={};if(t.floatPrecision!=null&&(u.floatPrecision=t.floatPrecision),Eh(l,s,o,null,u),i=IR(l,t.js2svg),!(i.length<r))break;e=i,r=i.length}return t.datauri&&(i=OP(i,t.datauri)),{data:i}};function gD(...e){return Mg(Rg(e))}function bD(e,t="currentColor",n=1.5){const r=e.match(/<svg[^>]*>/)?.[0];if(!r)throw new Error("invalid svg");if(e.includes("<style>"))try{const{data:h}=UR(e,{multipass:!0,plugins:[{name:"inlineStyles",params:{onlyMatchedOnce:!1}},{name:"convertStyleToAttrs"}]});e=h}catch(h){console.error(h)}const i=r.match(/width="([^"]*)"/)?.[1],s=r.match(/height="([^"]*)"/)?.[1],a=r.match(/viewBox="([^"]*)"/)?.[1]?.split(" "),l=a?.[2],c=a?.[3];let o=null;i&&s?o=parseInt(i):l&&c?o=parseInt(l):o=24,o&&(o=Math.max(Math.min(o,24),16)),i&&s?(e=e.replace(/width="([^"]*)"/,'width="100%"'),e=e.replace(/height="([^"]*)"/,'height="100%"')):e=e.replace(/<svg/,'<svg width="100%" height="100%"');let u=!1;return(e.includes('fill="')||e.includes('stroke="'))&&(e=e.replace(/(fill|stroke)="([^"]+)"/g,(h,p,d)=>d==="none"||d==="transparent"?h:d==="white"?"":(u=!0,`${p}="${t}"`))),u||(e=e.replace(/<(path|circle|rect|line|polygon|polyline) /g,h=>`<${h.slice(1)} fill="${t}" `)),e=e.replace(/stroke-width="([^"]+)"/g,(h,p)=>p==="0"?h:`stroke-width="${n}"`),{size:o,svg:e}}const yD=({path:e,name:t})=>e?`${e}/${t}`:t,kD=250,vD="hsb(252, 59%, 76%)",wD=1.5,xD="hex",SD="false",CD=16,AD=20,$D=146,ED=18,TD=8,OD=48;function _D(e){return new Intl.NumberFormat("en-US").format(e)}function LD(e){if(!e)return!1;const t=e.reduce((r,i)=>r+i.icons.length,0),n=e.reduce((r,i)=>r+i.actualIconCount,0);return t<n}export{TD as A,LD as B,kD as D,CD as I,gs as a,Sh as b,VR as c,me as d,Dr as e,_D as f,_a as g,gD as h,WR as i,Yt as j,YR as k,wD as l,SD as m,xD as n,vD as o,HR as p,XR as q,kl as r,UR as s,bD as t,Jg as u,yD as v,OD as w,$D as x,AD as y,ED as z}; 131//# sourceMappingURL=misc-abrRjE04.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.