wrec 0.20.13 → 0.20.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wrec.umd.js CHANGED
@@ -1,5 +1,29 @@
1
- (function(T,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(T=typeof globalThis<"u"?globalThis:T||self,E(T.wrec={}))})(this,(function(T){"use strict";var ln=T=>{throw TypeError(T)};var ge=(T,E,C)=>E.has(T)||ln("Cannot "+C);var w=(T,E,C)=>(ge(T,E,"read from private field"),C?C.call(T):E.get(T)),q=(T,E,C)=>E.has(T)?ln("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(T):E.set(T,C),at=(T,E,C,St)=>(ge(T,E,"write to private field"),St?St.call(T,C):E.set(T,C),C),fn=(T,E,C)=>(ge(T,E,"access private method"),C);var K,Lt,H,Tt,gt,Y,Dt,un;const{entries:E,setPrototypeOf:C,isFrozen:St,getPrototypeOf:pn,getOwnPropertyDescriptor:hn}=Object;let{freeze:N,seal:P,create:zt}=Object,{apply:$t,construct:Wt}=typeof Reflect<"u"&&Reflect;N||(N=function(t){return t}),P||(P=function(t){return t}),$t||($t=function(t,e){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];return t.apply(e,s)}),Wt||(Wt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return new t(...n)});const yt=D(Array.prototype.forEach),mn=D(Array.prototype.lastIndexOf),Ee=D(Array.prototype.pop),ct=D(Array.prototype.push),dn=D(Array.prototype.splice),Rt=D(String.prototype.toLowerCase),Gt=D(String.prototype.toString),jt=D(String.prototype.match),lt=D(String.prototype.replace),Tn=D(String.prototype.indexOf),gn=D(String.prototype.trim),k=D(Object.prototype.hasOwnProperty),L=D(RegExp.prototype.test),ft=En(TypeError);function D(r){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return $t(r,t,n)}}function En(r){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Wt(r,e)}}function d(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rt;C&&C(r,null);let n=t.length;for(;n--;){let s=t[n];if(typeof s=="string"){const i=e(s);i!==s&&(St(t)||(t[n]=i),s=i)}r[s]=!0}return r}function An(r){for(let t=0;t<r.length;t++)k(r,t)||(r[t]=null);return r}function U(r){const t=zt(null);for(const[e,n]of E(r))k(r,e)&&(Array.isArray(n)?t[e]=An(n):n&&typeof n=="object"&&n.constructor===Object?t[e]=U(n):t[e]=n);return t}function ut(r,t){for(;r!==null;){const n=hn(r,t);if(n){if(n.get)return D(n.get);if(typeof n.value=="function")return D(n.value)}r=pn(r)}function e(){return null}return e}const Ae=N(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bt=N(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yt=N(["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"]),_n=N(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vt=N(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bn=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_e=N(["#text"]),be=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Xt=N(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Se=N(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ot=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sn=P(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yn=P(/<%[\w\W]*|[\w\W]*%>/gm),Rn=P(/\$\{[\w\W]*/gm),On=P(/^data-[\-\w.\u00B7-\uFFFF]+$/),wn=P(/^aria-[\-\w]+$/),ye=P(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mn=P(/^(?:\w+script|data):/i),Cn=P(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Re=P(/^html$/i),Nn=P(/^[a-z][.\w]*(-[.\w]+)+$/i);var Oe=Object.freeze({__proto__:null,ARIA_ATTR:wn,ATTR_WHITESPACE:Cn,CUSTOM_ELEMENT:Nn,DATA_ATTR:On,DOCTYPE_NAME:Re,ERB_EXPR:yn,IS_ALLOWED_URI:ye,IS_SCRIPT_OR_DATA:Mn,MUSTACHE_EXPR:Sn,TMPLIT_EXPR:Rn});const pt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ln=function(){return typeof window>"u"?null:window},Dn=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";e&&e.hasAttribute(s)&&(n=e.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},we=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Me(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ln();const t=u=>Me(u);if(t.version="3.3.1",t.removed=[],!r||!r.document||r.document.nodeType!==pt.document||!r.Element)return t.isSupported=!1,t;let{document:e}=r;const n=e,s=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:l,Element:p,NodeFilter:h,NamedNodeMap:m=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:b,DOMParser:V,trustedTypes:W}=r,X=p.prototype,Xn=ut(X,"cloneNode"),qn=ut(X,"remove"),Kn=ut(X,"nextSibling"),Zn=ut(X,"childNodes"),xt=ut(X,"parentNode");if(typeof a=="function"){const u=e.createElement("template");u.content&&u.content.ownerDocument&&(e=u.content.ownerDocument)}let x,Et="";const{implementation:ee,createNodeIterator:Jn,createDocumentFragment:Qn,getElementsByTagName:to}=e,{importNode:eo}=n;let v=we();t.isSupported=typeof E=="function"&&typeof xt=="function"&&ee&&ee.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:oe,TMPLIT_EXPR:se,DATA_ATTR:no,ARIA_ATTR:oo,IS_SCRIPT_OR_DATA:so,ATTR_WHITESPACE:Ue,CUSTOM_ELEMENT:io}=Oe;let{IS_ALLOWED_URI:He}=Oe,y=null;const ze=d({},[...Ae,...Bt,...Yt,...Vt,..._e]);let R=null;const $e=d({},[...be,...Xt,...Se,...Ot]);let A=Object.seal(zt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),At=null,ie=null;const tt=Object.seal(zt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let We=!0,re=!0,Ge=!1,je=!0,et=!1,vt=!0,Z=!1,ae=!1,ce=!1,nt=!1,It=!1,Pt=!1,Be=!0,Ye=!1;const ro="user-content-";let le=!0,_t=!1,ot={},z=null;const fe=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Xe=d({},["audio","video","img","source","image","track"]);let ue=null;const qe=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kt="http://www.w3.org/1998/Math/MathML",Ft="http://www.w3.org/2000/svg",G="http://www.w3.org/1999/xhtml";let st=G,pe=!1,he=null;const ao=d({},[kt,Ft,G],Gt);let Ut=d({},["mi","mo","mn","ms","mtext"]),Ht=d({},["annotation-xml"]);const co=d({},["title","style","font","a","script"]);let bt=null;const lo=["application/xhtml+xml","text/html"],fo="text/html";let S=null,it=null;const uo=e.createElement("form"),Ke=function(o){return o instanceof RegExp||o instanceof Function},me=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(it&&it===o)){if((!o||typeof o!="object")&&(o={}),o=U(o),bt=lo.indexOf(o.PARSER_MEDIA_TYPE)===-1?fo:o.PARSER_MEDIA_TYPE,S=bt==="application/xhtml+xml"?Gt:Rt,y=k(o,"ALLOWED_TAGS")?d({},o.ALLOWED_TAGS,S):ze,R=k(o,"ALLOWED_ATTR")?d({},o.ALLOWED_ATTR,S):$e,he=k(o,"ALLOWED_NAMESPACES")?d({},o.ALLOWED_NAMESPACES,Gt):ao,ue=k(o,"ADD_URI_SAFE_ATTR")?d(U(qe),o.ADD_URI_SAFE_ATTR,S):qe,Ve=k(o,"ADD_DATA_URI_TAGS")?d(U(Xe),o.ADD_DATA_URI_TAGS,S):Xe,z=k(o,"FORBID_CONTENTS")?d({},o.FORBID_CONTENTS,S):fe,At=k(o,"FORBID_TAGS")?d({},o.FORBID_TAGS,S):U({}),ie=k(o,"FORBID_ATTR")?d({},o.FORBID_ATTR,S):U({}),ot=k(o,"USE_PROFILES")?o.USE_PROFILES:!1,We=o.ALLOW_ARIA_ATTR!==!1,re=o.ALLOW_DATA_ATTR!==!1,Ge=o.ALLOW_UNKNOWN_PROTOCOLS||!1,je=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=o.SAFE_FOR_TEMPLATES||!1,vt=o.SAFE_FOR_XML!==!1,Z=o.WHOLE_DOCUMENT||!1,nt=o.RETURN_DOM||!1,It=o.RETURN_DOM_FRAGMENT||!1,Pt=o.RETURN_TRUSTED_TYPE||!1,ce=o.FORCE_BODY||!1,Be=o.SANITIZE_DOM!==!1,Ye=o.SANITIZE_NAMED_PROPS||!1,le=o.KEEP_CONTENT!==!1,_t=o.IN_PLACE||!1,He=o.ALLOWED_URI_REGEXP||ye,st=o.NAMESPACE||G,Ut=o.MATHML_TEXT_INTEGRATION_POINTS||Ut,Ht=o.HTML_INTEGRATION_POINTS||Ht,A=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&Ke(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&Ke(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(re=!1),It&&(nt=!0),ot&&(y=d({},_e),R=[],ot.html===!0&&(d(y,Ae),d(R,be)),ot.svg===!0&&(d(y,Bt),d(R,Xt),d(R,Ot)),ot.svgFilters===!0&&(d(y,Yt),d(R,Xt),d(R,Ot)),ot.mathMl===!0&&(d(y,Vt),d(R,Se),d(R,Ot))),o.ADD_TAGS&&(typeof o.ADD_TAGS=="function"?tt.tagCheck=o.ADD_TAGS:(y===ze&&(y=U(y)),d(y,o.ADD_TAGS,S))),o.ADD_ATTR&&(typeof o.ADD_ATTR=="function"?tt.attributeCheck=o.ADD_ATTR:(R===$e&&(R=U(R)),d(R,o.ADD_ATTR,S))),o.ADD_URI_SAFE_ATTR&&d(ue,o.ADD_URI_SAFE_ATTR,S),o.FORBID_CONTENTS&&(z===fe&&(z=U(z)),d(z,o.FORBID_CONTENTS,S)),o.ADD_FORBID_CONTENTS&&(z===fe&&(z=U(z)),d(z,o.ADD_FORBID_CONTENTS,S)),le&&(y["#text"]=!0),Z&&d(y,["html","head","body"]),y.table&&(d(y,["tbody"]),delete At.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=o.TRUSTED_TYPES_POLICY,Et=x.createHTML("")}else x===void 0&&(x=Dn(W,s)),x!==null&&typeof Et=="string"&&(Et=x.createHTML(""));N&&N(o),it=o}},Ze=d({},[...Bt,...Yt,..._n]),Je=d({},[...Vt,...bn]),po=function(o){let c=xt(o);(!c||!c.tagName)&&(c={namespaceURI:st,tagName:"template"});const f=Rt(o.tagName),g=Rt(c.tagName);return he[o.namespaceURI]?o.namespaceURI===Ft?c.namespaceURI===G?f==="svg":c.namespaceURI===kt?f==="svg"&&(g==="annotation-xml"||Ut[g]):!!Ze[f]:o.namespaceURI===kt?c.namespaceURI===G?f==="math":c.namespaceURI===Ft?f==="math"&&Ht[g]:!!Je[f]:o.namespaceURI===G?c.namespaceURI===Ft&&!Ht[g]||c.namespaceURI===kt&&!Ut[g]?!1:!Je[f]&&(co[f]||!Ze[f]):!!(bt==="application/xhtml+xml"&&he[o.namespaceURI]):!1},$=function(o){ct(t.removed,{element:o});try{xt(o).removeChild(o)}catch{qn(o)}},J=function(o,c){try{ct(t.removed,{attribute:c.getAttributeNode(o),from:c})}catch{ct(t.removed,{attribute:null,from:c})}if(c.removeAttribute(o),o==="is")if(nt||It)try{$(c)}catch{}else try{c.setAttribute(o,"")}catch{}},Qe=function(o){let c=null,f=null;if(ce)o="<remove></remove>"+o;else{const _=jt(o,/^[\r\n\t ]+/);f=_&&_[0]}bt==="application/xhtml+xml"&&st===G&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const g=x?x.createHTML(o):o;if(st===G)try{c=new V().parseFromString(g,bt)}catch{}if(!c||!c.documentElement){c=ee.createDocument(st,"template",null);try{c.documentElement.innerHTML=pe?Et:g}catch{}}const M=c.body||c.documentElement;return o&&f&&M.insertBefore(e.createTextNode(f),M.childNodes[0]||null),st===G?to.call(c,Z?"html":"body")[0]:Z?c.documentElement:M},tn=function(o){return Jn.call(o.ownerDocument||o,o,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},de=function(o){return o instanceof b&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof m)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},en=function(o){return typeof l=="function"&&o instanceof l};function j(u,o,c){yt(u,f=>{f.call(t,o,c,it)})}const nn=function(o){let c=null;if(j(v.beforeSanitizeElements,o,null),de(o))return $(o),!0;const f=S(o.nodeName);if(j(v.uponSanitizeElement,o,{tagName:f,allowedTags:y}),vt&&o.hasChildNodes()&&!en(o.firstElementChild)&&L(/<[/\w!]/g,o.innerHTML)&&L(/<[/\w!]/g,o.textContent)||o.nodeType===pt.progressingInstruction||vt&&o.nodeType===pt.comment&&L(/<[/\w]/g,o.data))return $(o),!0;if(!(tt.tagCheck instanceof Function&&tt.tagCheck(f))&&(!y[f]||At[f])){if(!At[f]&&sn(f)&&(A.tagNameCheck instanceof RegExp&&L(A.tagNameCheck,f)||A.tagNameCheck instanceof Function&&A.tagNameCheck(f)))return!1;if(le&&!z[f]){const g=xt(o)||o.parentNode,M=Zn(o)||o.childNodes;if(M&&g){const _=M.length;for(let I=_-1;I>=0;--I){const B=Xn(M[I],!0);B.__removalCount=(o.__removalCount||0)+1,g.insertBefore(B,Kn(o))}}}return $(o),!0}return o instanceof p&&!po(o)||(f==="noscript"||f==="noembed"||f==="noframes")&&L(/<\/no(script|embed|frames)/i,o.innerHTML)?($(o),!0):(et&&o.nodeType===pt.text&&(c=o.textContent,yt([ne,oe,se],g=>{c=lt(c,g," ")}),o.textContent!==c&&(ct(t.removed,{element:o.cloneNode()}),o.textContent=c)),j(v.afterSanitizeElements,o,null),!1)},on=function(o,c,f){if(Be&&(c==="id"||c==="name")&&(f in e||f in uo))return!1;if(!(re&&!ie[c]&&L(no,c))){if(!(We&&L(oo,c))){if(!(tt.attributeCheck instanceof Function&&tt.attributeCheck(c,o))){if(!R[c]||ie[c]){if(!(sn(o)&&(A.tagNameCheck instanceof RegExp&&L(A.tagNameCheck,o)||A.tagNameCheck instanceof Function&&A.tagNameCheck(o))&&(A.attributeNameCheck instanceof RegExp&&L(A.attributeNameCheck,c)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(c,o))||c==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&L(A.tagNameCheck,f)||A.tagNameCheck instanceof Function&&A.tagNameCheck(f))))return!1}else if(!ue[c]){if(!L(He,lt(f,Ue,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&o!=="script"&&Tn(f,"data:")===0&&Ve[o])){if(!(Ge&&!L(so,lt(f,Ue,"")))){if(f)return!1}}}}}}}return!0},sn=function(o){return o!=="annotation-xml"&&jt(o,io)},rn=function(o){j(v.beforeSanitizeAttributes,o,null);const{attributes:c}=o;if(!c||de(o))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let g=c.length;for(;g--;){const M=c[g],{name:_,namespaceURI:I,value:B}=M,rt=S(_),Te=B;let O=_==="value"?Te:gn(Te);if(f.attrName=rt,f.attrValue=O,f.keepAttr=!0,f.forceKeepAttr=void 0,j(v.uponSanitizeAttribute,o,f),O=f.attrValue,Ye&&(rt==="id"||rt==="name")&&(J(_,o),O=ro+O),vt&&L(/((--!?|])>)|<\/(style|title|textarea)/i,O)){J(_,o);continue}if(rt==="attributename"&&jt(O,"href")){J(_,o);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){J(_,o);continue}if(!je&&L(/\/>/i,O)){J(_,o);continue}et&&yt([ne,oe,se],cn=>{O=lt(O,cn," ")});const an=S(o.nodeName);if(!on(an,rt,O)){J(_,o);continue}if(x&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!I)switch(W.getAttributeType(an,rt)){case"TrustedHTML":{O=x.createHTML(O);break}case"TrustedScriptURL":{O=x.createScriptURL(O);break}}if(O!==Te)try{I?o.setAttributeNS(I,_,O):o.setAttribute(_,O),de(o)?$(o):Ee(t.removed)}catch{J(_,o)}}j(v.afterSanitizeAttributes,o,null)},ho=function u(o){let c=null;const f=tn(o);for(j(v.beforeSanitizeShadowDOM,o,null);c=f.nextNode();)j(v.uponSanitizeShadowNode,c,null),nn(c),rn(c),c.content instanceof i&&u(c.content);j(v.afterSanitizeShadowDOM,o,null)};return t.sanitize=function(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,g=null,M=null;if(pe=!u,pe&&(u="<!-->"),typeof u!="string"&&!en(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw ft("dirty is not a string, aborting")}else throw ft("toString is not a function");if(!t.isSupported)return u;if(ae||me(o),t.removed=[],typeof u=="string"&&(_t=!1),_t){if(u.nodeName){const B=S(u.nodeName);if(!y[B]||At[B])throw ft("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof l)c=Qe("<!---->"),f=c.ownerDocument.importNode(u,!0),f.nodeType===pt.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!nt&&!et&&!Z&&u.indexOf("<")===-1)return x&&Pt?x.createHTML(u):u;if(c=Qe(u),!c)return nt?null:Pt?Et:""}c&&ce&&$(c.firstChild);const _=tn(_t?u:c);for(;g=_.nextNode();)nn(g),rn(g),g.content instanceof i&&ho(g.content);if(_t)return u;if(nt){if(It)for(M=Qn.call(c.ownerDocument);c.firstChild;)M.appendChild(c.firstChild);else M=c;return(R.shadowroot||R.shadowrootmode)&&(M=eo.call(n,M,!0)),M}let I=Z?c.outerHTML:c.innerHTML;return Z&&y["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&L(Re,c.ownerDocument.doctype.name)&&(I="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
2
- `+I),et&&yt([ne,oe,se],B=>{I=lt(I,B," ")}),x&&Pt?x.createHTML(I):I},t.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};me(u),ae=!0},t.clearConfig=function(){it=null,ae=!1},t.isValidAttribute=function(u,o,c){it||me({});const f=S(u),g=S(o);return on(f,g,c)},t.addHook=function(u,o){typeof o=="function"&&ct(v[u],o)},t.removeHook=function(u,o){if(o!==void 0){const c=mn(v[u],o);return c===-1?void 0:dn(v[u],c,1)[0]}return Ee(v[u])},t.removeHooks=function(u){v[u]=[]},t.removeAllHooks=function(){v=we()},t}var Ce=Me();function Ne(r,t,e=""){const n=new WeakMap,s={get(i,a){const l=Reflect.get(i,a);if(l===null||typeof l!="object")return l;const p=n.get(l);if(p)return p;const h=e?`${e}.${a}`:a,m=Ne(l,t,h);return n.set(l,m),m},set(i,a,l){const p=Reflect.get(i,a);if(p!==l){Reflect.set(i,a,l);const h=e?`${e}.${a}`:a;t(h,p,l)}return!0}};return new Proxy(r,s)}function Le(r){const t={};for(const[e,n]of Object.entries(r)){const s=typeof n=="object"&&n!==null;t[e]=s?Le(n):n}return t}const wt=typeof window<"u"&&typeof window.document<"u";let De=class extends Error{};const Q=class Q{constructor(t,e,n){q(this,Dt);q(this,Lt,Symbol("objectId"));q(this,H,[]);q(this,Tt);q(this,gt);q(this,Y);if(!t)throw new De("name cannot be empty");if(w(Q,K).has(t))throw new De(`WrecState with name "${t}" already exists`);if(at(this,Tt,t),at(this,gt,e),at(this,Y,Ne({},fn(this,Dt,un).bind(this))),e&&wt){const s=sessionStorage.getItem("wrec-state-"+t),i=s?JSON.parse(s):void 0;i&&(n=i)}if(n)for(const[s,i]of Object.entries(n))this.addProperty(s,i);w(Q,K).set(t,this)}static get(t){return w(this,K).get(t)}addListener(t,e={}){const n=w(this,H).find(s=>s.listenerRef.deref()===t);if(n){const{propertyMap:s}=n;for(const[i,a]of Object.entries(e))s[i]=a}else w(this,H).push({listenerRef:new WeakRef(t),propertyMap:e})}addProperty(t,e){Object.defineProperty(this,t,{enumerable:!0,get(){return w(this,Y)[t]},set(n){w(this,Y)[t]=n}}),w(this,Y)[t]=e}get id(){return w(this,Lt)}log(){console.log("WrecState:",w(this,Tt));for(const[t,e]of Object.entries(w(this,Y)))console.log(` ${t} = ${JSON.stringify(e)}`)}removeListener(t){at(this,H,w(this,H).filter(e=>e.listenerRef.deref()!==t))}};K=new WeakMap,Lt=new WeakMap,H=new WeakMap,Tt=new WeakMap,gt=new WeakMap,Y=new WeakMap,Dt=new WeakSet,un=function(t,e,n){const s=new Set;for(const i of w(this,H)){const a=i.listenerRef.deref();if(!a)s.add(i);else if(wt&&a instanceof HTMLElement&&!a.isConnected)s.add(i);else{const{propertyMap:l}=i,p=Object.keys(l);(p.length===0||p.includes(t))&&a.changed(t,l[t],n,e,this)}}at(this,H,w(this,H).filter(i=>!s.has(i)))},q(Q,K,new Map),wt&&window.addEventListener("beforeunload",()=>{for(const[t,e]of w(Q,K).entries())if(w(e,gt)){const n=Le(e);sessionStorage.setItem("wrec-state-"+t,JSON.stringify(n))}});let Mt=Q;wt&&process.env.NODE_ENV==="development"&&(window.WrecState=Mt);function xe(r,t){let e=r;for(const n of t.split("."))e=e[n];return e}function xn(r,t,e){const n=t.split("."),s=n.length-1;let i=r;n.forEach((a,l)=>{l===s?i[a]=e:i=i[a]})}const vn=new Set(["class","disabled","hidden","id","tabindex","title"]),In=new Set(["onblur","onchange","onclick","onfocus","oninput","onkeydown","onreset","onsubmit"]);Ce.addHook("uponSanitizeAttribute",(r,t)=>{const{attrName:e}=t,n=e.toLowerCase();In.has(n)&&(t.forceKeepAttr=!0)});class Ct extends Error{}const Pn=/([a-zA-Z-]+)\s*:\s*([^;}]+)/g,ve="a-zA-Z_$",kn=ve+"0-9",ht=`[${ve}][${kn}]*`,Fn=/<!--\s*(.*?)\s*-->/,Un=/<(\w+)(?:\s[^>]*)?>((?:[^<]|<(?!\w))*?)<\/\1>/g,qt=new RegExp(`^this\\.${ht}$`),Kt=new RegExp(`this\\.${ht}(\\.${ht})*`,"g"),Ie=new RegExp(`this\\.${ht}(\\.${ht})*`),Hn=5;function zn(r){return r instanceof HTMLButtonElement||r instanceof HTMLFieldSetElement||r instanceof HTMLInputElement||r instanceof HTMLSelectElement||r instanceof HTMLTextAreaElement||r instanceof F}function $n(r,t,e){const n=document.createElement(r);if(t)for(const[s,i]of Object.entries(t))n.setAttribute(s,i);return e&&(n.innerHTML=e),n}const Wn=r=>r===String?"":r===Number?0:r===Boolean?!1:r===Array?[]:r===Object?{}:void 0;function Nt(r){const t=[];let e=r.firstElementChild;for(;e;)t.push(e),e.shadowRoot&&t.push(...Nt(e.shadowRoot)),e.firstElementChild&&t.push(...Nt(e)),e=e.nextElementSibling;return t}const mt=r=>r.substring(Hn).split(".")[0];function Pe(r,t){let e=r[0];return t.forEach((n,s)=>{e+=n+r[s+1]}),e}function Zt(r){const t=typeof r;return t==="string"||t==="number"||t==="boolean"}function dt(r){return r.localName==="textarea"}function Jt(r){const{localName:t}=r;return t==="input"||t==="select"}const Gn=r=>r.replace(/<!--[\s\S]*?-->/g,"");function ke(r,t,e,n){return r.slice(0,t)+n+r.slice(t+e)}function jn(r){let t=r.trim(),e=null;/^\s*<tr[\s>]/i.test(t)?(t=`<table><tbody>${t}</tbody></table>`,e="tbody"):/^\s*<(td|th)[\s>]/i.test(t)?(t=`<table><tbody><tr>${t}</tr></tbody></table>`,e="tr"):/^\s*<option[\s>]/i.test(t)?(t=`<select>${t}</select>`,e="select"):/^\s*<col[\s>]/i.test(t)&&(t=`<table><colgroup>${t}</colgroup></table>`,e="colgroup");const n=Ce.sanitize(t,{ADD_TAGS:["#comment"],ALLOW_UNKNOWN_PROTOCOLS:!0,RETURN_DOM_FRAGMENT:!0});if(e){const s=n.querySelector(e);if(s)return s.childNodes}return n.childNodes}function Qt(r){const t=Number(r);if(isNaN(t))throw new Ct(`can't convert "${r}" to a number`);return t}function Fe(r,t,e){const[n,s]=t.split(":");if(Zt(e))if(typeof e=="boolean"){e?r.setAttribute(n,n):r.removeAttribute(n);const i=F.getPropName(n);r[i]=e}else{const i=r.getAttribute(t),a=String(e);i!==a&&(r.setAttribute(n,a),n==="value"&&Jt(r)&&(r.value=a))}else{const i=F.getPropName(t);r[i]=e}}function te(r,t,e){const[n,s]=t.split(":");r instanceof CSSStyleRule?r.style.setProperty(n,e):(Fe(r,n,e),n==="value"&&Jt(r)&&(r.value=e))}async function Bn(r){const t=new Set;for(const n of Nt(r.content)){const{localName:s}=n;s.includes("-")&&t.add(s)}function e(n){return new Promise((s,i)=>{setTimeout(()=>{const a=`custom element <${n}> not defined`;i(new Error(a))},1e3)})}return Promise.all([...t].map(async n=>Promise.race([customElements.whenDefined(n),e(n)])))}class F extends HTMLElement{static attrToPropMap=new Map;static propToAttrMap=new Map;static context={};static css="";static elementName="";static formAssociated=!1;static html="";static properties;static propToComputedMap;static propToExprsMap;static template=null;#c=!1;#t=this.constructor;#o=new Map;#l={};#s;#f={};#u=null;#p=new Map;static define(t){if(this.elementName=t,customElements.get(t))throw new Ct(`custom element ${t} is already defined`);customElements.define(t,this)}constructor(){super(),this.attachShadow({mode:"open"});const t=this.#t;t.attrToPropMap||(t.attrToPropMap=new Map),t.properties||(t.properties={}),t.propToAttrMap||(t.propToExprsMap=new Map),t.propToComputedMap||(t.propToComputedMap=new Map),t.propToExprsMap||(t.propToExprsMap=new Map)}attributeChangedCallback(t,e,n){t==="disabled"&&this.#d();const s=F.getPropName(t);if(this.#i(s)){const i=this.#S(s,String(n));this[s]=i;const a=this.#l[s];a&&this.setFormValue(a,String(i)),this.propertyChangedCallback(s,e,n)}}batchSet(t){this.#c=!0;const e=this.#t.propToExprsMap,n=new Set;for(const[l,p]of Object.entries(t)){this[l]=p;const h=e.get(l)??[];for(const m of h)n.add(m)}const s=this.#t.propToComputedMap,i=new Set,a={};for(const l of Object.keys(t)){const p=s.get(l)||[];for(const[h,m]of p)i.add(h),a[h]=m}for(const l of i){const p=a[l];this[l]=this.#n(p);const h=e.get(l)??[];for(const m of h)n.add(m)}for(;;){let l=!1;for(const p of i){const h=a[p],m=this.#n(h),b=this[p];JSON.stringify(m)!==JSON.stringify(b)&&(this[p]=m,l=!0)}if(!l)break}this.#T([...n]),this.#c=!1}async#O(){const t=this.#t;let{template:e}=t;if(!e){e=t.template=document.createElement("template");let n=`<style>
3
- :host([hidden]) { display: none; }`;t.css&&(n+=t.css),n+=`</style>
4
- `;let s=t.html.trim();s||this.#e(this,void 0,"static property html must be set"),s.startsWith("<")||(s=`<span><!--${s}--></span>`),e.innerHTML=n+s}await Bn(e),this.shadowRoot.replaceChildren(e.content.cloneNode(!0))}changed(t,e,n){this[e]=n}connectedCallback(){this.#P(),this.#M(),this.#O().then(()=>{this.hasAttribute("disabled")&&this.#d(),this.#R(this.shadowRoot),this.#g(this.shadowRoot),this.#w()})}#w(){const t=this.#t,{properties:e}=t;for(const[n,{computed:s}]of Object.entries(e))s&&(this[n]=this.#n(s))}#M(){const t=this.#t,{observedAttributes:e,properties:n}=t;for(const[s,i]of Object.entries(n))i.computed||this.#m(s,i,e);for(const[s,i]of Object.entries(n))i.computed&&this.#m(s,i,e)}#m(t,e,n){if(t==="class"||t==="style")throw new Ct(`"${t}" is a reserved property`);const s=F.getAttrName(t),i=this.hasAttribute(s);e.required&&!i&&this.#e(this,s,"is a required attribute");let a=e.value;this.hasOwnProperty(t)&&(a=this[t],delete this[t]);const{type:l}=e,p=l===Boolean?a||i:n.includes(s)&&i?this.#b(t,s):a||Wn(l),h="#"+t;this[h]=p,e.computed&&this.#D(t,e),Object.defineProperty(this,t,{enumerable:!0,get(){return this[h]},set(m){l===Number&&typeof m=="string"&&(m=Qt(m));const b=this[h];if(m===b)return;this.#F(t,l,m),this[h]=m;const{state:V,stateProp:W}=this.#t.properties[t];W&&xn(V,W,m),this.#x(t,l,m,s),this.#c||(this.#v(t),this.#_(t)),this.#I(t,m);const X=this.#l[t];X&&this.setFormValue(X,String(m)),this.propertyChangedCallback(t,b,m),e.dispatch&&this.dispatch("change",{tagName:this.localName,property:t,oldValue:b,value:m})}})}#d(){const t=this.hasAttribute("disabled"),e=Nt(this.shadowRoot);for(const n of e)zn(n)&&(n.disabled=t)}disconnectedCallback(){this.#o.clear(),this.#f.clear(),this.#p.clear()}dispatch(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}displayIfSet(t,e="block"){return`display: ${t?e:"none"}`}#C(t){const e=t instanceof F;for(const n of t.getAttributeNames()){const s=t.getAttribute(n),i=this.#A(t,s);if(i){const a=this[i];a===void 0&&this.#a(t,n,i),t[i]=a;let[l,p]=n.split(":");l==="value"&&(p?(t["on"+p]===void 0&&this.#e(t,n,"refers to an unsupported event name"),t.setAttribute(l,this[i])):p="change"),e&&t.#p.set(F.getPropName(l),i)}this.#r(s,t,n)}}#T(t){for(const e of t){const n=this.#n(e),s=this.#o.get(e)??[];for(const i of s)if(i instanceof HTMLElement)this.#y(i,n);else if(!(i instanceof CSSStyleRule)){const{element:a,attrName:l}=i;a instanceof CSSStyleRule?a.style.setProperty(l,n):te(a,l,n)}}}#n(t){const{context:e}=this.#t;return new Function("context",`const {${Object.keys(e).join(",")}} = context; return ${t};`).call(this,e)}#N(t){const{localName:e}=t;if(e==="style"){const{sheet:n}=t,s=n?.cssRules??[],i=Array.from(s);for(const a of i)if(a.constructor===CSSStyleRule){const l=Array.from(a.style);for(const p of l)if(p.startsWith("--")){const h=a.style.getPropertyValue(p);this.#r(h,a,p)}}}else{let n="";if(dt(t)){this.#r(t.textContent,t);const s=t.textContent?.match(Fn);s&&(n=s[1])}else{const s=Array.from(t.childNodes).find(i=>i.nodeType===Node.COMMENT_NODE);s&&(n=s.textContent?.trim()??"")}if(n){const s=this.#A(t,n);s&&dt(t)?t.textContent=this[s]:this.#r(n,t)}}}formAssociatedCallback(){let t=this.getAttribute("form-assoc");if(!t){const a=this.getAttribute("name");if(a)if(this.#i("value"))t=`value:${a}`;else return;else return}const e={},n=t.split(",");for(const a of n){const[l,p]=a.split(":");e[l.trim()]=p.trim()}this.#l=e,this.#s=new FormData,this.#u=this.attachInternals(),this.#u.setFormValue(this.#s);const s=Object.keys(this.#t.properties),i=this.#f;for(const a of s)i[a]=this[a]}formResetCallback(){const t=this.#f;for(const e of Object.keys(t)){let n=t[e];qt.test(n)&&(n=this.#n(n)),this[e]=n}}static getAttrName(t){let e=this.propToAttrMap.get(t);return e||(e=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),this.propToAttrMap.set(t,e)),e}static getPropName(t){let e=this.attrToPropMap.get(t);return e||(e=t.replace(/-([a-z])/g,(n,s)=>s.toUpperCase()),this.attrToPropMap.set(t,e)),e}#L(t,e,n){if(n.length!==1)return;const[s]=n;if(!qt.test(s))return;const i=Jt(t)||dt(t);let[a,l]=(e??"").split(":");if(!(i&&a==="value"||dt(t)))return;l?t["on"+l]===void 0&&this.#e(t,e,"refers to an unsupported event name"):l="change";const h=mt(s);t.addEventListener(l,m=>{const{target:b}=m;if(!b)return;const V=b.value,{type:W}=this.#t.properties[h];this[h]=W===Number?Qt(V):V,this.#_(h)})}#i(t){return!!this.#t.properties[t]}#g(t){const e=Array.from(t.querySelectorAll("*"));for(const n of e)this.#C(n),n.firstElementChild||this.#N(n)}#E(){if(this.#t.formAssociated||this.closest("form")===null)return;const t=this.#t.name;this.#e(this,void 0,`inside form, class ${t} requires "static formAssociated = true;"`)}static get observedAttributes(){const t=Object.keys(this.properties||{}).map(e=>F.getAttrName(e));return t.includes("disabled")||t.push("disabled"),t}propertyChangedCallback(t,e,n){}#A(t,e){if(!e||!qt.test(e))return;const n=mt(e);return this[n]===void 0&&this.#a(t,"",n),n}#_(t){const e=this.#t.propToExprsMap.get(t)||[];this.#T(e)}#D(t,e){const{computed:n,uses:s}=e,i=this.#t.propToComputedMap;function a(p,h){let m=i.get(p);m||(m=[],i.set(p,m)),m.push([t,h])}const l=n.match(Kt)||[];for(const p of l){const h=mt(p);this[h]===void 0&&this.#a(null,t,h),typeof this[h]!="function"&&a(h,n)}if(s)for(const p of s.split(","))a(p.trim(),n)}#r(t,e,n=void 0){if(!t)return;const s=this.#h(e,n,t);if(!s){const p=t.replaceAll("this..","this.");n?te(e,n,p):"textContent"in e&&(e.textContent=p);return}const i=this.#t;s.forEach(p=>{const h=mt(p);if(typeof this[h]=="function")return;const m=i.propToExprsMap;let b=m.get(h);b||(b=[],m.set(h,b)),b.includes(t)||b.push(t)});for(const[p,h]of this.#o.entries())for(const m of h){const b=m instanceof HTMLElement||m instanceof CSSStyleRule?m:m.element;b instanceof CSSStyleRule||b.isConnected||this.#o.set(p,h.filter(V=>V!==m))}let a=this.#o.get(t);a||(a=[],this.#o.set(t,a)),a.push(n?{element:e,attrName:n}:e),e instanceof HTMLElement&&this.#L(e,n,s);const l=this.#n(t);n?te(e,n,l):this.#y(e,l)}setAttributeSafe(t,e){this.hasAttribute(t)||this.setAttribute(t,e)}setFormValue(t,e){!this.#s||!Zt(e)||(this.#s.set(t,e),this.#u?.setFormValue(this.#s))}#e(t,e,n){const s=t instanceof HTMLElement?t.localName:"CSS rule";throw new Ct(`component ${this.#t.elementName}`+(t?`, element "${s}"`:"")+(e?`, attribute "${e}"`:"")+` ${n}`)}#a(t,e,n){this.#e(t,e,`refers to missing property "${n}"`)}#b(t,e){return this.#S(t,this.getAttribute(e))}#S(t,e){if(e?.match(Kt))return e;const n=this.#t,{type:s}=n.properties[t];if(s||this.#e(null,t,"does not specify its type"),s===String)return e;if(s===Number)return Qt(e);if(s===Boolean)return e==="true"?!0:e==="false"||e==="null"?!1:(e&&e!==t&&this.#e(null,t,"is a Boolean attribute, so its value must match attribute name or be missing"),e===t)}#x(t,e,n,s){if(Zt(n)){const i=e===Boolean?this.hasAttribute(s):this.#b(t,s);n!==i&&Fe(this,s||t,n)}}#v(t){const n=this.#t.propToComputedMap.get(t)||[];for(const[s,i]of n)this[s]=this.#n(i)}#y(t,e){if(e===void 0)return;const n=t instanceof HTMLElement;Array.isArray(e)&&(e=e.join(""));const s=typeof e;s!=="string"&&s!=="number"&&this.#e(t,void 0," computed content is not a string or number");const i=String(e);if(t instanceof HTMLElement&&dt(t))t.value=i;else if(n&&s==="string"&&i.trim().startsWith("<")){const a=jn(i);t.replaceChildren(...a),this.#R(t),this.#g(t)}else n&&(t.textContent=i)}#I(t,e){const n=this.#p.get(t);if(!n)return;const s=this.getRootNode();if(!(s instanceof ShadowRoot))return;const{host:i}=s;if(!i)return;const a=i;a[n]=e}useState(t,e){if(!e){e={};for(const n of Object.keys(t))e[n]=n}this.#k(t,e);for(const[n,s]of Object.entries(e))if(this.#i(s)){const i=xe(t,n);i!==void 0&&(this[s]=i);const a=this.#t.properties[s];a.state=t,a.stateProp=n}t.addListener(this,e)}#P(){const t=new Set(Object.keys(this.#t.properties));for(const e of this.getAttributeNames())if(!vn.has(e)&&!e.startsWith("on")){if(e==="form-assoc"){this.#E();continue}if(!t.has(F.getPropName(e))){if(e==="name"){this.#E();continue}this.#e(null,e,"is not a supported attribute")}}}#h(t,e,n){const s=n.match(Kt);if(s)return s.forEach(i=>{const a=mt(i);this[a]===void 0&&this.#a(t,e,a)}),s}#k(t,e){for(const[n,s]of Object.entries(e)){let i=xe(t,n);i===void 0&&this.#e(this,void 0,`invalid state path "${n}"`),i=this[s],this.#i(s)||this.#e(null,s,"refers to missing property in useState map")}}#F(t,e,n){if(n instanceof e)return;let s=typeof n;if(s==="object"){const{constructor:i}=n;s=i.name,i!==e&&this.#e(null,t,`was set to a ${s}, but must be a ${e.name}`)}s!==e.name.toLowerCase()&&this.#e(null,t,`was set to a ${s}, but must be a ${e.name}`)}#R(t){const e=Array.from(t.querySelectorAll("*"));for(const n of e){const s=[];for(const i of Array.from(n.attributes)){const a=i.name;if(a.startsWith("on")){let l=a.slice(2);l=l[0].toLowerCase()+l.slice(1).toLowerCase();const p=i.value;this.#h(n,a,p);let h;typeof this[p]=="function"?h=m=>this[p](m):(this.#h(n,a,p),h=()=>this.#n(p)),n.addEventListener(l,h),s.push(a)}}for(const i of s)n.removeAttribute(i)}}}function Yn(r,...t){let e=Pe(r,t);for(;;){const n=Pn.exec(e);if(!n)break;const s=n[2];if(Ie.test(s)){const i=n[1];if(!i.startsWith("--")){const a=`--${i}: ${s};
5
- ${i}: var(--${i})`;e=ke(e,n.index,n[0].length,a)}}}return e}function Vn(r,...t){let e=Pe(r,t);for(;;){const n=Un.exec(e);if(!n||n[1]==="style")break;const s=Gn(n[2]);if(Ie.test(s)){const i=`<!-- ${s.trim()} -->`,a=n.index+n[0].indexOf(">")+1;e=ke(e,a,s.length,i)}}return e}T.Wrec=F,T.WrecState=Mt,T.createElement=$n,T.css=Yn,T.html=Vn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(F,K){typeof exports=="object"&&typeof module<"u"?K(exports):typeof define=="function"&&define.amd?define(["exports"],K):(F=typeof globalThis<"u"?globalThis:F||self,K(F.wrec={}))})(this,(function(F){"use strict";var qa=F=>{throw TypeError(F)};var hr=(F,K,At)=>K.has(F)||qa("Cannot "+At);var et=(F,K,At)=>(hr(F,K,"read from private field"),At?At.call(F):K.get(F)),se=(F,K,At)=>K.has(F)?qa("Cannot add the same private member more than once"):K instanceof WeakSet?K.add(F):K.set(F,At),Ge=(F,K,At,ds)=>(hr(F,K,"write to private field"),ds?ds.call(F,At):K.set(F,At),At),za=(F,K,At)=>(hr(F,K,"access private method"),At);var ge,zs,Ot,as,cs,qt,$s,ic;const{entries:K,setPrototypeOf:At,isFrozen:ds,getPrototypeOf:rc,getOwnPropertyDescriptor:oc}=Object;let{freeze:at,seal:bt,create:fs}=Object,{apply:gn,construct:dn}=typeof Reflect<"u"&&Reflect;at||(at=function(t){return t}),bt||(bt=function(t){return t}),gn||(gn=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return t.apply(e,i)}),dn||(dn=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return new t(...n)});const ps=lt(Array.prototype.forEach),Ac=lt(Array.prototype.lastIndexOf),gr=lt(Array.prototype.pop),Le=lt(Array.prototype.push),ac=lt(Array.prototype.splice),ms=lt(String.prototype.toLowerCase),fn=lt(String.prototype.toString),pn=lt(String.prototype.match),Ke=lt(String.prototype.replace),cc=lt(String.prototype.indexOf),lc=lt(String.prototype.trim),mt=lt(Object.prototype.hasOwnProperty),ct=lt(RegExp.prototype.test),He=uc(TypeError);function lt(s){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return gn(s,t,n)}}function uc(s){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return dn(s,e)}}function T(s,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ms;At&&At(s,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const r=e(i);r!==i&&(ds(t)||(t[n]=r),i=r)}s[i]=!0}return s}function hc(s){for(let t=0;t<s.length;t++)mt(s,t)||(s[t]=null);return s}function vt(s){const t=fs(null);for(const[e,n]of K(s))mt(s,e)&&(Array.isArray(n)?t[e]=hc(n):n&&typeof n=="object"&&n.constructor===Object?t[e]=vt(n):t[e]=n);return t}function We(s,t){for(;s!==null;){const n=oc(s,t);if(n){if(n.get)return lt(n.get);if(typeof n.value=="function")return lt(n.value)}s=rc(s)}function e(){return null}return e}const dr=at(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),mn=at(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sn=at(["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"]),gc=at(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Cn=at(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),dc=at(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fr=at(["#text"]),pr=at(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),bn=at(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mr=at(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ss=at(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fc=bt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pc=bt(/<%[\w\W]*|[\w\W]*%>/gm),mc=bt(/\$\{[\w\W]*/gm),Sc=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Cc=bt(/^aria-[\-\w]+$/),Sr=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bc=bt(/^(?:\w+script|data):/i),yc=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cr=bt(/^html$/i),Ec=bt(/^[a-z][.\w]*(-[.\w]+)+$/i);var br=Object.freeze({__proto__:null,ARIA_ATTR:Cc,ATTR_WHITESPACE:yc,CUSTOM_ELEMENT:Ec,DATA_ATTR:Sc,DOCTYPE_NAME:Cr,ERB_EXPR:pc,IS_ALLOWED_URI:Sr,IS_SCRIPT_OR_DATA:bc,MUSTACHE_EXPR:fc,TMPLIT_EXPR:mc});const Ye={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ic=function(){return typeof window>"u"?null:window},wc=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},yr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Er(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ic();const t=E=>Er(E);if(t.version="3.3.2",t.removed=[],!s||!s.document||s.document.nodeType!==Ye.document||!s.Element)return t.isSupported=!1,t;let{document:e}=s;const n=e,i=n.currentScript,{DocumentFragment:r,HTMLTemplateElement:o,Node:A,Element:c,NodeFilter:a,NamedNodeMap:u=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:g,DOMParser:C,trustedTypes:b}=s,B=c.prototype,it=We(B,"cloneNode"),Qt=We(B,"remove"),Y=We(B,"nextSibling"),Nt=We(B,"childNodes"),It=We(B,"parentNode");if(typeof o=="function"){const E=e.createElement("template");E.content&&E.content.ownerDocument&&(e=E.content.ownerDocument)}let O,rt="";const{implementation:Z,createNodeIterator:zt,createDocumentFragment:Ne,getElementsByTagName:tn}=e,{importNode:de}=n;let v=yr();t.isSupported=typeof K=="function"&&typeof It=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$t,ERB_EXPR:te,TMPLIT_EXPR:ls,DATA_ATTR:en,ARIA_ATTR:sn,IS_SCRIPT_OR_DATA:nn,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Pg}=br;let{IS_ALLOWED_URI:Da}=br,q=null;const xa=T({},[...dr,...mn,...Sn,...Cn,...fr]);let $=null;const Na=T({},[...pr,...bn,...mr,...Ss]);let H=Object.seal(fs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),us=null,rn=null;const ee=Object.seal(fs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let va=!0,er=!0,Fa=!1,Ma=!0,ve=!1,on=!0,pe=!1,sr=!1,nr=!1,Fe=!1,An=!1,an=!1,ka=!0,Oa=!1;const Zg="user-content-";let ir=!0,hs=!1,Me={},Gt=null;const rr=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qa=null;const Ga=T({},["audio","video","img","source","image","track"]);let or=null;const La=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",ln="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let ke=Yt,Ar=!1,ar=null;const Vg=T({},[cn,ln,Yt],fn);let un=T({},["mi","mo","mn","ms","mtext"]),hn=T({},["annotation-xml"]);const Xg=T({},["title","style","font","a","script"]);let gs=null;const jg=["application/xhtml+xml","text/html"],qg="text/html";let V=null,Oe=null;const zg=e.createElement("form"),Ka=function(l){return l instanceof RegExp||l instanceof Function},cr=function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===l)){if((!l||typeof l!="object")&&(l={}),l=vt(l),gs=jg.indexOf(l.PARSER_MEDIA_TYPE)===-1?qg:l.PARSER_MEDIA_TYPE,V=gs==="application/xhtml+xml"?fn:ms,q=mt(l,"ALLOWED_TAGS")?T({},l.ALLOWED_TAGS,V):xa,$=mt(l,"ALLOWED_ATTR")?T({},l.ALLOWED_ATTR,V):Na,ar=mt(l,"ALLOWED_NAMESPACES")?T({},l.ALLOWED_NAMESPACES,fn):Vg,or=mt(l,"ADD_URI_SAFE_ATTR")?T(vt(La),l.ADD_URI_SAFE_ATTR,V):La,Qa=mt(l,"ADD_DATA_URI_TAGS")?T(vt(Ga),l.ADD_DATA_URI_TAGS,V):Ga,Gt=mt(l,"FORBID_CONTENTS")?T({},l.FORBID_CONTENTS,V):rr,us=mt(l,"FORBID_TAGS")?T({},l.FORBID_TAGS,V):vt({}),rn=mt(l,"FORBID_ATTR")?T({},l.FORBID_ATTR,V):vt({}),Me=mt(l,"USE_PROFILES")?l.USE_PROFILES:!1,va=l.ALLOW_ARIA_ATTR!==!1,er=l.ALLOW_DATA_ATTR!==!1,Fa=l.ALLOW_UNKNOWN_PROTOCOLS||!1,Ma=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=l.SAFE_FOR_TEMPLATES||!1,on=l.SAFE_FOR_XML!==!1,pe=l.WHOLE_DOCUMENT||!1,Fe=l.RETURN_DOM||!1,An=l.RETURN_DOM_FRAGMENT||!1,an=l.RETURN_TRUSTED_TYPE||!1,nr=l.FORCE_BODY||!1,ka=l.SANITIZE_DOM!==!1,Oa=l.SANITIZE_NAMED_PROPS||!1,ir=l.KEEP_CONTENT!==!1,hs=l.IN_PLACE||!1,Da=l.ALLOWED_URI_REGEXP||Sr,ke=l.NAMESPACE||Yt,un=l.MATHML_TEXT_INTEGRATION_POINTS||un,hn=l.HTML_INTEGRATION_POINTS||hn,H=l.CUSTOM_ELEMENT_HANDLING||{},l.CUSTOM_ELEMENT_HANDLING&&Ka(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=l.CUSTOM_ELEMENT_HANDLING.tagNameCheck),l.CUSTOM_ELEMENT_HANDLING&&Ka(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),l.CUSTOM_ELEMENT_HANDLING&&typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(er=!1),An&&(Fe=!0),Me&&(q=T({},fr),$=fs(null),Me.html===!0&&(T(q,dr),T($,pr)),Me.svg===!0&&(T(q,mn),T($,bn),T($,Ss)),Me.svgFilters===!0&&(T(q,Sn),T($,bn),T($,Ss)),Me.mathMl===!0&&(T(q,Cn),T($,mr),T($,Ss))),mt(l,"ADD_TAGS")||(ee.tagCheck=null),mt(l,"ADD_ATTR")||(ee.attributeCheck=null),l.ADD_TAGS&&(typeof l.ADD_TAGS=="function"?ee.tagCheck=l.ADD_TAGS:(q===xa&&(q=vt(q)),T(q,l.ADD_TAGS,V))),l.ADD_ATTR&&(typeof l.ADD_ATTR=="function"?ee.attributeCheck=l.ADD_ATTR:($===Na&&($=vt($)),T($,l.ADD_ATTR,V))),l.ADD_URI_SAFE_ATTR&&T(or,l.ADD_URI_SAFE_ATTR,V),l.FORBID_CONTENTS&&(Gt===rr&&(Gt=vt(Gt)),T(Gt,l.FORBID_CONTENTS,V)),l.ADD_FORBID_CONTENTS&&(Gt===rr&&(Gt=vt(Gt)),T(Gt,l.ADD_FORBID_CONTENTS,V)),ir&&(q["#text"]=!0),pe&&T(q,["html","head","body"]),q.table&&(T(q,["tbody"]),delete us.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=l.TRUSTED_TYPES_POLICY,rt=O.createHTML("")}else O===void 0&&(O=wc(b,i)),O!==null&&typeof rt=="string"&&(rt=O.createHTML(""));at&&at(l),Oe=l}},Ha=T({},[...mn,...Sn,...gc]),Wa=T({},[...Cn,...dc]),$g=function(l){let f=It(l);(!f||!f.tagName)&&(f={namespaceURI:ke,tagName:"template"});const y=ms(l.tagName),Q=ms(f.tagName);return ar[l.namespaceURI]?l.namespaceURI===ln?f.namespaceURI===Yt?y==="svg":f.namespaceURI===cn?y==="svg"&&(Q==="annotation-xml"||un[Q]):!!Ha[y]:l.namespaceURI===cn?f.namespaceURI===Yt?y==="math":f.namespaceURI===ln?y==="math"&&hn[Q]:!!Wa[y]:l.namespaceURI===Yt?f.namespaceURI===ln&&!hn[Q]||f.namespaceURI===cn&&!un[Q]?!1:!Wa[y]&&(Xg[y]||!Ha[y]):!!(gs==="application/xhtml+xml"&&ar[l.namespaceURI]):!1},Lt=function(l){Le(t.removed,{element:l});try{It(l).removeChild(l)}catch{Qt(l)}},me=function(l,f){try{Le(t.removed,{attribute:f.getAttributeNode(l),from:f})}catch{Le(t.removed,{attribute:null,from:f})}if(f.removeAttribute(l),l==="is")if(Fe||An)try{Lt(f)}catch{}else try{f.setAttribute(l,"")}catch{}},Ya=function(l){let f=null,y=null;if(nr)l="<remove></remove>"+l;else{const U=pn(l,/^[\r\n\t ]+/);y=U&&U[0]}gs==="application/xhtml+xml"&&ke===Yt&&(l='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+l+"</body></html>");const Q=O?O.createHTML(l):l;if(ke===Yt)try{f=new C().parseFromString(Q,gs)}catch{}if(!f||!f.documentElement){f=Z.createDocument(ke,"template",null);try{f.documentElement.innerHTML=Ar?rt:Q}catch{}}const ot=f.body||f.documentElement;return l&&y&&ot.insertBefore(e.createTextNode(y),ot.childNodes[0]||null),ke===Yt?tn.call(f,pe?"html":"body")[0]:pe?f.documentElement:ot},Ua=function(l){return zt.call(l.ownerDocument||l,l,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},lr=function(l){return l instanceof g&&(typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||!(l.attributes instanceof u)||typeof l.removeAttribute!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function")},_a=function(l){return typeof A=="function"&&l instanceof A};function Ut(E,l,f){ps(E,y=>{y.call(t,l,f,Oe)})}const Ja=function(l){let f=null;if(Ut(v.beforeSanitizeElements,l,null),lr(l))return Lt(l),!0;const y=V(l.nodeName);if(Ut(v.uponSanitizeElement,l,{tagName:y,allowedTags:q}),on&&l.hasChildNodes()&&!_a(l.firstElementChild)&&ct(/<[/\w!]/g,l.innerHTML)&&ct(/<[/\w!]/g,l.textContent)||l.nodeType===Ye.progressingInstruction||on&&l.nodeType===Ye.comment&&ct(/<[/\w]/g,l.data))return Lt(l),!0;if(!(ee.tagCheck instanceof Function&&ee.tagCheck(y))&&(!q[y]||us[y])){if(!us[y]&&Za(y)&&(H.tagNameCheck instanceof RegExp&&ct(H.tagNameCheck,y)||H.tagNameCheck instanceof Function&&H.tagNameCheck(y)))return!1;if(ir&&!Gt[y]){const Q=It(l)||l.parentNode,ot=Nt(l)||l.childNodes;if(ot&&Q){const U=ot.length;for(let pt=U-1;pt>=0;--pt){const _t=it(ot[pt],!0);_t.__removalCount=(l.__removalCount||0)+1,Q.insertBefore(_t,Y(l))}}}return Lt(l),!0}return l instanceof c&&!$g(l)||(y==="noscript"||y==="noembed"||y==="noframes")&&ct(/<\/no(script|embed|frames)/i,l.innerHTML)?(Lt(l),!0):(ve&&l.nodeType===Ye.text&&(f=l.textContent,ps([$t,te,ls],Q=>{f=Ke(f,Q," ")}),l.textContent!==f&&(Le(t.removed,{element:l.cloneNode()}),l.textContent=f)),Ut(v.afterSanitizeElements,l,null),!1)},Pa=function(l,f,y){if(rn[f]||ka&&(f==="id"||f==="name")&&(y in e||y in zg))return!1;if(!(er&&!rn[f]&&ct(en,f))){if(!(va&&ct(sn,f))){if(!(ee.attributeCheck instanceof Function&&ee.attributeCheck(f,l))){if(!$[f]||rn[f]){if(!(Za(l)&&(H.tagNameCheck instanceof RegExp&&ct(H.tagNameCheck,l)||H.tagNameCheck instanceof Function&&H.tagNameCheck(l))&&(H.attributeNameCheck instanceof RegExp&&ct(H.attributeNameCheck,f)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(f,l))||f==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ct(H.tagNameCheck,y)||H.tagNameCheck instanceof Function&&H.tagNameCheck(y))))return!1}else if(!or[f]){if(!ct(Da,Ke(y,fe,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&l!=="script"&&cc(y,"data:")===0&&Qa[l])){if(!(Fa&&!ct(nn,Ke(y,fe,"")))){if(y)return!1}}}}}}}return!0},Za=function(l){return l!=="annotation-xml"&&pn(l,Pg)},Va=function(l){Ut(v.beforeSanitizeAttributes,l,null);const{attributes:f}=l;if(!f||lr(l))return;const y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let Q=f.length;for(;Q--;){const ot=f[Q],{name:U,namespaceURI:pt,value:_t}=ot,Qe=V(U),ur=_t;let tt=U==="value"?ur:lc(ur);if(y.attrName=Qe,y.attrValue=tt,y.keepAttr=!0,y.forceKeepAttr=void 0,Ut(v.uponSanitizeAttribute,l,y),tt=y.attrValue,Oa&&(Qe==="id"||Qe==="name")&&(me(U,l),tt=Zg+tt),on&&ct(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tt)){me(U,l);continue}if(Qe==="attributename"&&pn(tt,"href")){me(U,l);continue}if(y.forceKeepAttr)continue;if(!y.keepAttr){me(U,l);continue}if(!Ma&&ct(/\/>/i,tt)){me(U,l);continue}ve&&ps([$t,te,ls],ja=>{tt=Ke(tt,ja," ")});const Xa=V(l.nodeName);if(!Pa(Xa,Qe,tt)){me(U,l);continue}if(O&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!pt)switch(b.getAttributeType(Xa,Qe)){case"TrustedHTML":{tt=O.createHTML(tt);break}case"TrustedScriptURL":{tt=O.createScriptURL(tt);break}}if(tt!==ur)try{pt?l.setAttributeNS(pt,U,tt):l.setAttribute(U,tt),lr(l)?Lt(l):gr(t.removed)}catch{me(U,l)}}Ut(v.afterSanitizeAttributes,l,null)},td=function E(l){let f=null;const y=Ua(l);for(Ut(v.beforeSanitizeShadowDOM,l,null);f=y.nextNode();)Ut(v.uponSanitizeShadowNode,f,null),Ja(f),Va(f),f.content instanceof r&&E(f.content);Ut(v.afterSanitizeShadowDOM,l,null)};return t.sanitize=function(E){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,y=null,Q=null,ot=null;if(Ar=!E,Ar&&(E="<!-->"),typeof E!="string"&&!_a(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw He("dirty is not a string, aborting")}else throw He("toString is not a function");if(!t.isSupported)return E;if(sr||cr(l),t.removed=[],typeof E=="string"&&(hs=!1),hs){if(E.nodeName){const _t=V(E.nodeName);if(!q[_t]||us[_t])throw He("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof A)f=Ya("<!---->"),y=f.ownerDocument.importNode(E,!0),y.nodeType===Ye.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?f=y:f.appendChild(y);else{if(!Fe&&!ve&&!pe&&E.indexOf("<")===-1)return O&&an?O.createHTML(E):E;if(f=Ya(E),!f)return Fe?null:an?rt:""}f&&nr&&Lt(f.firstChild);const U=Ua(hs?E:f);for(;Q=U.nextNode();)Ja(Q),Va(Q),Q.content instanceof r&&td(Q.content);if(hs)return E;if(Fe){if(An)for(ot=Ne.call(f.ownerDocument);f.firstChild;)ot.appendChild(f.firstChild);else ot=f;return($.shadowroot||$.shadowrootmode)&&(ot=de.call(n,ot,!0)),ot}let pt=pe?f.outerHTML:f.innerHTML;return pe&&q["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&ct(Cr,f.ownerDocument.doctype.name)&&(pt="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
2
+ `+pt),ve&&ps([$t,te,ls],_t=>{pt=Ke(pt,_t," ")}),O&&an?O.createHTML(pt):pt},t.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cr(E),sr=!0},t.clearConfig=function(){Oe=null,sr=!1},t.isValidAttribute=function(E,l,f){Oe||cr({});const y=V(E),Q=V(l);return Pa(y,Q,f)},t.addHook=function(E,l){typeof l=="function"&&Le(v[E],l)},t.removeHook=function(E,l){if(l!==void 0){const f=Ac(v[E],l);return f===-1?void 0:ac(v[E],f,1)[0]}return gr(v[E])},t.removeHooks=function(E){v[E]=[]},t.removeAllHooks=function(){v=yr()},t}var Ir=Er();const Cs=Symbol("changed"),Se=Symbol("classList"),wt=Symbol("CustomElements"),bs=Symbol("content"),yn=Symbol("dataset"),ne=Symbol("doctype"),En=Symbol("DOMParser"),I=Symbol("end"),Ue=Symbol("EventTarget"),ys=Symbol("globals"),Rt=Symbol("image"),Ce=Symbol("mime"),Jt=Symbol("MutationObserver"),m=Symbol("next"),wr=Symbol("ownerElement"),X=Symbol("prev"),st=Symbol("private"),be=Symbol("sheet"),gt=Symbol("start"),In=Symbol("style"),_e=Symbol("upgrade"),k=Symbol("value");var wn;const Rc=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Rr=(wn=String.fromCodePoint)!==null&&wn!==void 0?wn:(s=>{let t="";return s>65535&&(s-=65536,t+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),t+=String.fromCharCode(s),t});function Bc(s){var t;return s>=55296&&s<=57343||s>1114111?65533:(t=Rc.get(s))!==null&&t!==void 0?t:s}function Br(s){const t=typeof atob=="function"?atob(s):typeof Buffer.from=="function"?Buffer.from(s,"base64").toString("binary"):new Buffer(s,"base64").toString("binary"),e=t.length&-2,n=new Uint16Array(e/2);for(let i=0,r=0;i<e;i+=2){const o=t.charCodeAt(i),A=t.charCodeAt(i+1);n[r++]=o|A<<8}return n}const Tc=Br("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0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AoAwg"),Dc=Br("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var ut;(function(s){s[s.VALUE_LENGTH=49152]="VALUE_LENGTH",s[s.FLAG13=8192]="FLAG13",s[s.BRANCH_LENGTH=8064]="BRANCH_LENGTH",s[s.JUMP_TABLE=127]="JUMP_TABLE"})(ut||(ut={}));var G;(function(s){s[s.NUM=35]="NUM",s[s.SEMI=59]="SEMI",s[s.EQUALS=61]="EQUALS",s[s.ZERO=48]="ZERO",s[s.NINE=57]="NINE",s[s.LOWER_A=97]="LOWER_A",s[s.LOWER_F=102]="LOWER_F",s[s.LOWER_X=120]="LOWER_X",s[s.LOWER_Z=122]="LOWER_Z",s[s.UPPER_A=65]="UPPER_A",s[s.UPPER_F=70]="UPPER_F",s[s.UPPER_Z=90]="UPPER_Z"})(G||(G={}));const Tr=32;function Rn(s){return s>=G.ZERO&&s<=G.NINE}function xc(s){return s>=G.UPPER_A&&s<=G.UPPER_F||s>=G.LOWER_A&&s<=G.LOWER_F}function Nc(s){return s>=G.UPPER_A&&s<=G.UPPER_Z||s>=G.LOWER_A&&s<=G.LOWER_Z||Rn(s)}function vc(s){return s===G.EQUALS||Nc(s)}var j;(function(s){s[s.EntityStart=0]="EntityStart",s[s.NumericStart=1]="NumericStart",s[s.NumericDecimal=2]="NumericDecimal",s[s.NumericHex=3]="NumericHex",s[s.NamedEntity=4]="NamedEntity"})(j||(j={}));var Ft;(function(s){s[s.Legacy=0]="Legacy",s[s.Strict=1]="Strict",s[s.Attribute=2]="Attribute"})(Ft||(Ft={}));class Fc{constructor(t,e,n){this.decodeTree=t,this.emitCodePoint=e,this.errors=n,this.state=j.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ft.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=j.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,e){switch(this.state){case j.EntityStart:return t.charCodeAt(e)===G.NUM?(this.state=j.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=j.NamedEntity,this.stateNamedEntity(t,e));case j.NumericStart:return this.stateNumericStart(t,e);case j.NumericDecimal:return this.stateNumericDecimal(t,e);case j.NumericHex:return this.stateNumericHex(t,e);case j.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(t.charCodeAt(e)|Tr)===G.LOWER_X?(this.state=j.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=j.NumericDecimal,this.stateNumericDecimal(t,e))}stateNumericHex(t,e){for(;e<t.length;){const n=t.charCodeAt(e);if(Rn(n)||xc(n)){const i=n<=G.NINE?n-G.ZERO:(n|Tr)-G.LOWER_A+10;this.result=this.result*16+i,this.consumed++,e++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(t,e){for(;e<t.length;){const n=t.charCodeAt(e);if(Rn(n))this.result=this.result*10+(n-G.ZERO),this.consumed++,e++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(t,e){var n;if(this.consumed<=e)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===G.SEMI)this.consumed+=1;else if(this.decodeMode===Ft.Strict)return 0;return this.emitCodePoint(Bc(this.result),this.consumed),this.errors&&(t!==G.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14;for(;e<t.length;){if(r===0&&(i&ut.FLAG13)!==0){const A=(i&ut.BRANCH_LENGTH)>>7;if(this.runConsumed===0){const c=i&ut.JUMP_TABLE;if(t.charCodeAt(e)!==c)return this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}for(;this.runConsumed<A;){if(e>=t.length)return-1;const c=this.runConsumed-1,a=n[this.treeIndex+1+(c>>1)],u=c%2===0?a&255:a>>8&255;if(t.charCodeAt(e)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(A>>1),i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14}if(e>=t.length)break;const o=t.charCodeAt(e);if(o===G.SEMI&&r!==0&&(i&ut.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);if(this.treeIndex=Mc(n,i,this.treeIndex+Math.max(1,r),o),this.treeIndex<0)return this.result===0||this.decodeMode===Ft.Attribute&&(r===0||vc(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14,r!==0){if(o===G.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Ft.Strict&&(i&ut.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}e++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;const{result:e,decodeTree:n}=this,i=(n[e]&ut.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,n){const{decodeTree:i}=this;return this.emitCodePoint(e===1?i[t]&~(ut.VALUE_LENGTH|ut.FLAG13):i[t+1],n),e===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case j.NamedEntity:return this.result!==0&&(this.decodeMode!==Ft.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case j.NumericDecimal:return this.emitNumericEntity(0,2);case j.NumericHex:return this.emitNumericEntity(0,3);case j.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case j.EntityStart:return 0}}}function Mc(s,t,e,n){const i=(t&ut.BRANCH_LENGTH)>>7,r=t&ut.JUMP_TABLE;if(i===0)return r!==0&&n===r?e:-1;if(r){const a=n-r;return a<0||a>=i?-1:s[e+a]-1}const o=i+1>>1;let A=0,c=i-1;for(;A<=c;){const a=A+c>>>1,u=a>>1,C=s[e+u]>>(a&1)*8&255;if(C<n)A=a+1;else if(C>n)c=a-1;else return s[e+o+a]}return-1}var w;(function(s){s[s.Tab=9]="Tab",s[s.NewLine=10]="NewLine",s[s.FormFeed=12]="FormFeed",s[s.CarriageReturn=13]="CarriageReturn",s[s.Space=32]="Space",s[s.ExclamationMark=33]="ExclamationMark",s[s.Number=35]="Number",s[s.Amp=38]="Amp",s[s.SingleQuote=39]="SingleQuote",s[s.DoubleQuote=34]="DoubleQuote",s[s.Dash=45]="Dash",s[s.Slash=47]="Slash",s[s.Zero=48]="Zero",s[s.Nine=57]="Nine",s[s.Semi=59]="Semi",s[s.Lt=60]="Lt",s[s.Eq=61]="Eq",s[s.Gt=62]="Gt",s[s.Questionmark=63]="Questionmark",s[s.UpperA=65]="UpperA",s[s.LowerA=97]="LowerA",s[s.UpperF=70]="UpperF",s[s.LowerF=102]="LowerF",s[s.UpperZ=90]="UpperZ",s[s.LowerZ=122]="LowerZ",s[s.LowerX=120]="LowerX",s[s.OpeningSquareBracket=91]="OpeningSquareBracket"})(w||(w={}));var d;(function(s){s[s.Text=1]="Text",s[s.BeforeTagName=2]="BeforeTagName",s[s.InTagName=3]="InTagName",s[s.InSelfClosingTag=4]="InSelfClosingTag",s[s.BeforeClosingTagName=5]="BeforeClosingTagName",s[s.InClosingTagName=6]="InClosingTagName",s[s.AfterClosingTagName=7]="AfterClosingTagName",s[s.BeforeAttributeName=8]="BeforeAttributeName",s[s.InAttributeName=9]="InAttributeName",s[s.AfterAttributeName=10]="AfterAttributeName",s[s.BeforeAttributeValue=11]="BeforeAttributeValue",s[s.InAttributeValueDq=12]="InAttributeValueDq",s[s.InAttributeValueSq=13]="InAttributeValueSq",s[s.InAttributeValueNq=14]="InAttributeValueNq",s[s.BeforeDeclaration=15]="BeforeDeclaration",s[s.InDeclaration=16]="InDeclaration",s[s.InProcessingInstruction=17]="InProcessingInstruction",s[s.BeforeComment=18]="BeforeComment",s[s.CDATASequence=19]="CDATASequence",s[s.InSpecialComment=20]="InSpecialComment",s[s.InCommentLike=21]="InCommentLike",s[s.BeforeSpecialS=22]="BeforeSpecialS",s[s.BeforeSpecialT=23]="BeforeSpecialT",s[s.SpecialStartSequence=24]="SpecialStartSequence",s[s.InSpecialTag=25]="InSpecialTag",s[s.InEntity=26]="InEntity"})(d||(d={}));function Kt(s){return s===w.Space||s===w.NewLine||s===w.Tab||s===w.FormFeed||s===w.CarriageReturn}function Es(s){return s===w.Slash||s===w.Gt||Kt(s)}function kc(s){return s>=w.LowerA&&s<=w.LowerZ||s>=w.UpperA&&s<=w.UpperZ}var Bt;(function(s){s[s.NoValue=0]="NoValue",s[s.Unquoted=1]="Unquoted",s[s.Single=2]="Single",s[s.Double=3]="Double"})(Bt||(Bt={}));const W={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};class Dr{constructor({xmlMode:t=!1,decodeEntities:e=!0},n){this.cbs=n,this.state=d.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=d.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=e,this.entityDecoder=new Fc(t?Dc:Tc,(i,r)=>this.emitCodePoint(i,r))}reset(){this.state=d.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=d.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===w.Lt||!this.decodeEntities&&this.fastForwardTo(w.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=d.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===w.Amp&&this.startEntity()}stateSpecialStartSequence(t){const e=this.sequenceIndex===this.currentSequence.length;if(!(e?Es(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!e){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=d.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===w.Gt||Kt(t)){const e=this.index-this.currentSequence.length;if(this.sectionStart<e){const n=this.index;this.index=e,this.cbs.ontext(this.sectionStart,e),this.index=n}this.isSpecial=!1,this.sectionStart=e+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===W.TitleEnd?this.decodeEntities&&t===w.Amp&&this.startEntity():this.fastForwardTo(w.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===w.Lt)}stateCDATASequence(t){t===W.Cdata[this.sequenceIndex]?++this.sequenceIndex===W.Cdata.length&&(this.state=d.InCommentLike,this.currentSequence=W.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=d.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===W.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=d.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Es(t):kc(t)}startSpecial(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=d.SpecialStartSequence}stateBeforeTagName(t){if(t===w.ExclamationMark)this.state=d.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===w.Questionmark)this.state=d.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const e=t|32;this.sectionStart=this.index,this.xmlMode?this.state=d.InTagName:e===W.ScriptEnd[2]?this.state=d.BeforeSpecialS:e===W.TitleEnd[2]||e===W.XmpEnd[2]?this.state=d.BeforeSpecialT:this.state=d.InTagName}else t===w.Slash?this.state=d.BeforeClosingTagName:(this.state=d.Text,this.stateText(t))}stateInTagName(t){Es(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Kt(t)||(t===w.Gt?this.state=d.Text:(this.state=this.isTagStartChar(t)?d.InClosingTagName:d.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===w.Gt||Kt(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=d.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.state=d.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===w.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=d.InSpecialTag,this.sequenceIndex=0):this.state=d.Text,this.sectionStart=this.index+1):t===w.Slash?this.state=d.InSelfClosingTag:Kt(t)||(this.state=d.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===w.Gt?(this.cbs.onselfclosingtag(this.index),this.state=d.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Kt(t)||(this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===w.Eq||Es(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=d.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===w.Eq?this.state=d.BeforeAttributeValue:t===w.Slash||t===w.Gt?(this.cbs.onattribend(Bt.NoValue,this.sectionStart),this.sectionStart=-1,this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(t)):Kt(t)||(this.cbs.onattribend(Bt.NoValue,this.sectionStart),this.state=d.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===w.DoubleQuote?(this.state=d.InAttributeValueDq,this.sectionStart=this.index+1):t===w.SingleQuote?(this.state=d.InAttributeValueSq,this.sectionStart=this.index+1):Kt(t)||(this.sectionStart=this.index,this.state=d.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===w.DoubleQuote?Bt.Double:Bt.Single,this.index+1),this.state=d.BeforeAttributeName):this.decodeEntities&&t===w.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,w.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,w.SingleQuote)}stateInAttributeValueNoQuotes(t){Kt(t)||t===w.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Bt.Unquoted,this.index),this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===w.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===w.OpeningSquareBracket?(this.state=d.CDATASequence,this.sequenceIndex=0):this.state=t===w.Dash?d.BeforeComment:d.InDeclaration}stateInDeclaration(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=d.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=d.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===w.Dash?(this.state=d.InCommentLike,this.currentSequence=W.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=d.InDeclaration}stateInSpecialComment(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=d.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const e=t|32;e===W.ScriptEnd[3]?this.startSpecial(W.ScriptEnd,4):e===W.StyleEnd[3]?this.startSpecial(W.StyleEnd,4):(this.state=d.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case W.TitleEnd[3]:{this.startSpecial(W.TitleEnd,4);break}case W.TextareaEnd[3]:{this.startSpecial(W.TextareaEnd,4);break}case W.XmpEnd[3]:{this.startSpecial(W.XmpEnd,4);break}default:this.state=d.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=d.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Ft.Strict:this.baseState===d.Text||this.baseState===d.InSpecialTag?Ft.Legacy:Ft.Attribute)}stateInEntity(){const t=this.index-this.offset,e=this.entityDecoder.write(this.buffer,t);if(e>=0)this.state=this.baseState,e===0&&(this.index-=1);else{if(t<this.buffer.length&&this.buffer.charCodeAt(t)===w.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===d.Text||this.state===d.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===d.InAttributeValueDq||this.state===d.InAttributeValueSq||this.state===d.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case d.Text:{this.stateText(t);break}case d.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case d.InSpecialTag:{this.stateInSpecialTag(t);break}case d.CDATASequence:{this.stateCDATASequence(t);break}case d.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case d.InAttributeName:{this.stateInAttributeName(t);break}case d.InCommentLike:{this.stateInCommentLike(t);break}case d.InSpecialComment:{this.stateInSpecialComment(t);break}case d.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case d.InTagName:{this.stateInTagName(t);break}case d.InClosingTagName:{this.stateInClosingTagName(t);break}case d.BeforeTagName:{this.stateBeforeTagName(t);break}case d.AfterAttributeName:{this.stateAfterAttributeName(t);break}case d.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case d.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case d.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case d.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case d.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case d.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case d.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case d.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case d.InDeclaration:{this.stateInDeclaration(t);break}case d.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case d.BeforeComment:{this.stateBeforeComment(t);break}case d.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case d.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===d.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===d.InCommentLike?this.currentSequence===W.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===d.InTagName||this.state===d.BeforeAttributeName||this.state===d.BeforeAttributeValue||this.state===d.AfterAttributeName||this.state===d.InAttributeName||this.state===d.InAttributeValueSq||this.state===d.InAttributeValueDq||this.state===d.InAttributeValueNq||this.state===d.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,e){this.baseState!==d.Text&&this.baseState!==d.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+e,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+e,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}const ye=new Set(["input","option","optgroup","select","button","datalist","textarea"]),M=new Set(["p"]),xr=new Set(["thead","tbody"]),Nr=new Set(["dd","dt"]),vr=new Set(["rt","rp"]),Oc=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",M],["h1",M],["h2",M],["h3",M],["h4",M],["h5",M],["h6",M],["select",ye],["input",ye],["output",ye],["button",ye],["datalist",ye],["textarea",ye],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Nr],["dt",Nr],["address",M],["article",M],["aside",M],["blockquote",M],["details",M],["div",M],["dl",M],["fieldset",M],["figcaption",M],["figure",M],["footer",M],["form",M],["header",M],["hr",M],["main",M],["nav",M],["ol",M],["pre",M],["section",M],["table",M],["ul",M],["rt",vr],["rp",vr],["tbody",xr],["tfoot",xr]]),Qc=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Fr=new Set(["math","svg"]),Mr=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Gc=/\s|\//;let Lc=class{constructor(t,e={}){var n,i,r,o,A,c;this.options=e,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(n=e.lowerCaseTags)!==null&&n!==void 0?n:this.htmlMode,this.lowerCaseAttributeNames=(i=e.lowerCaseAttributeNames)!==null&&i!==void 0?i:this.htmlMode,this.recognizeSelfClosing=(r=e.recognizeSelfClosing)!==null&&r!==void 0?r:!this.htmlMode,this.tokenizer=new((o=e.Tokenizer)!==null&&o!==void 0?o:Dr)(this.options,this),this.foreignContext=[!this.htmlMode],(c=(A=this.cbs).onparserinit)===null||c===void 0||c.call(A,this)}ontext(t,e){var n,i;const r=this.getSlice(t,e);this.endIndex=e-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,r),this.startIndex=e}ontextentity(t,e){var n,i;this.endIndex=e-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,Rr(t)),this.startIndex=e}isVoidElement(t){return this.htmlMode&&Qc.has(t)}onopentagname(t,e){this.endIndex=e;let n=this.getSlice(t,e);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var e,n,i,r;this.openTagStart=this.startIndex,this.tagname=t;const o=this.htmlMode&&Oc.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){const A=this.stack.shift();(n=(e=this.cbs).onclosetag)===null||n===void 0||n.call(e,A,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(Fr.has(t)?this.foreignContext.unshift(!0):Mr.has(t)&&this.foreignContext.unshift(!1))),(r=(i=this.cbs).onopentagname)===null||r===void 0||r.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var e,n;this.startIndex=this.openTagStart,this.attribs&&((n=(e=this.cbs).onopentag)===null||n===void 0||n.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,e){var n,i,r,o,A,c,a,u;this.endIndex=e;let g=this.getSlice(t,e);if(this.lowerCaseTagNames&&(g=g.toLowerCase()),this.htmlMode&&(Fr.has(g)||Mr.has(g))&&this.foreignContext.shift(),this.isVoidElement(g))this.htmlMode&&g==="br"&&((o=(r=this.cbs).onopentagname)===null||o===void 0||o.call(r,"br"),(c=(A=this.cbs).onopentag)===null||c===void 0||c.call(A,"br",{},!0),(u=(a=this.cbs).onclosetag)===null||u===void 0||u.call(a,"br",!1));else{const C=this.stack.indexOf(g);if(C!==-1)for(let b=0;b<=C;b++){const B=this.stack.shift();(i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,B,b!==C)}else this.htmlMode&&g==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var e,n;const i=this.tagname;this.endOpenTag(t),this.stack[0]===i&&((n=(e=this.cbs).onclosetag)===null||n===void 0||n.call(e,i,!t),this.stack.shift())}onattribname(t,e){this.startIndex=t;const n=this.getSlice(t,e);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,e){this.attribvalue+=this.getSlice(t,e)}onattribentity(t){this.attribvalue+=Rr(t)}onattribend(t,e){var n,i;this.endIndex=e,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,t===Bt.Double?'"':t===Bt.Single?"'":t===Bt.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const e=t.search(Gc);let n=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,e){this.endIndex=e;const n=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${i}`,`!${n}`)}this.startIndex=e+1}onprocessinginstruction(t,e){this.endIndex=e;const n=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${i}`,`?${n}`)}this.startIndex=e+1}oncomment(t,e,n){var i,r,o,A;this.endIndex=e,(r=(i=this.cbs).oncomment)===null||r===void 0||r.call(i,this.getSlice(t,e-n)),(A=(o=this.cbs).oncommentend)===null||A===void 0||A.call(o),this.startIndex=e+1}oncdata(t,e,n){var i,r,o,A,c,a,u,g,C,b;this.endIndex=e;const B=this.getSlice(t,e-n);!this.htmlMode||this.options.recognizeCDATA?((r=(i=this.cbs).oncdatastart)===null||r===void 0||r.call(i),(A=(o=this.cbs).ontext)===null||A===void 0||A.call(o,B),(a=(c=this.cbs).oncdataend)===null||a===void 0||a.call(c)):((g=(u=this.cbs).oncomment)===null||g===void 0||g.call(u,`[CDATA[${B}]]`),(b=(C=this.cbs).oncommentend)===null||b===void 0||b.call(C)),this.startIndex=e+1}onend(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let n=0;n<this.stack.length;n++)this.cbs.onclosetag(this.stack[n],!0)}(e=(t=this.cbs).onend)===null||e===void 0||e.call(t)}reset(){var t,e,n,i;(e=(t=this.cbs).onreset)===null||e===void 0||e.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);for(;e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,e-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var e,n;if(this.ended){(n=(e=this.cbs).onerror)===null||n===void 0||n.call(e,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var e,n;if(this.ended){(n=(e=this.cbs).onerror)===null||n===void 0||n.call(e,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};var _;(function(s){s.Root="root",s.Text="text",s.Directive="directive",s.Comment="comment",s.Script="script",s.Style="style",s.Tag="tag",s.CDATA="cdata",s.Doctype="doctype"})(_||(_={}));function Kc(s){return s.type===_.Tag||s.type===_.Script||s.type===_.Style}const Hc=_.Root,Wc=_.Text,Yc=_.Directive,Uc=_.Comment,_c=_.Script,Jc=_.Style,Pc=_.Tag,Zc=_.CDATA,Vc=_.Doctype;function yt(s){return Kc(s)}function Bn(s){return s.type===_.CDATA}function Ee(s){return s.type===_.Text}function kr(s){return s.type===_.Comment}function Xc(s){return s.type===_.Root}function Tt(s){return Object.prototype.hasOwnProperty.call(s,"children")}const Or=/["&'<>$\x80-\uFFFF]/g,jc=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),qc=String.prototype.codePointAt!=null?(s,t)=>s.codePointAt(t):(s,t)=>(s.charCodeAt(t)&64512)===55296?(s.charCodeAt(t)-55296)*1024+s.charCodeAt(t+1)-56320+65536:s.charCodeAt(t);function Qr(s){let t="",e=0,n;for(;(n=Or.exec(s))!==null;){const i=n.index,r=s.charCodeAt(i),o=jc.get(r);o!==void 0?(t+=s.substring(e,i)+o,e=i+1):(t+=`${s.substring(e,i)}&#x${qc(s,i).toString(16)};`,e=Or.lastIndex+=+((r&64512)===55296))}return t+s.substr(e)}function Gr(s,t){return function(n){let i,r=0,o="";for(;i=s.exec(n);)r!==i.index&&(o+=n.substring(r,i.index)),o+=t.get(i[0].charCodeAt(0)),r=i.index+1;return o+n.substring(r)}}const zc=Gr(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),$c=Gr(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),tl=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(s=>[s.toLowerCase(),s])),el=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(s=>[s.toLowerCase(),s])),sl=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function nl(s){return s.replace(/"/g,"&quot;")}function il(s,t){var e;if(!s)return;const n=((e=t.encodeEntities)!==null&&e!==void 0?e:t.decodeEntities)===!1?nl:t.xmlMode||t.encodeEntities!=="utf8"?Qr:zc;return Object.keys(s).map(i=>{var r,o;const A=(r=s[i])!==null&&r!==void 0?r:"";return t.xmlMode==="foreign"&&(i=(o=el.get(i))!==null&&o!==void 0?o:i),!t.emptyAttrs&&!t.xmlMode&&A===""?i:`${i}="${n(A)}"`}).join(" ")}const Lr=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Tn(s,t={}){const e="length"in s?s:[s];let n="";for(let i=0;i<e.length;i++)n+=rl(e[i],t);return n}function rl(s,t){switch(s.type){case Hc:return Tn(s.children,t);case Vc:case Yc:return cl(s);case Uc:return hl(s);case Zc:return ul(s);case _c:case Jc:case Pc:return al(s,t);case Wc:return ll(s,t)}}const ol=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Al=new Set(["svg","math"]);function al(s,t){var e;t.xmlMode==="foreign"&&(s.name=(e=tl.get(s.name))!==null&&e!==void 0?e:s.name,s.parent&&ol.has(s.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Al.has(s.name)&&(t={...t,xmlMode:"foreign"});let n=`<${s.name}`;const i=il(s.attribs,t);return i&&(n+=` ${i}`),s.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Lr.has(s.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",s.children.length>0&&(n+=Tn(s.children,t)),(t.xmlMode||!Lr.has(s.name))&&(n+=`</${s.name}>`)),n}function cl(s){return`<${s.data}>`}function ll(s,t){var e;let n=s.data||"";return((e=t.encodeEntities)!==null&&e!==void 0?e:t.decodeEntities)!==!1&&!(!t.xmlMode&&s.parent&&sl.has(s.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?Qr(n):$c(n)),n}function ul(s){return`<![CDATA[${s.children[0].data}]]>`}function hl(s){return`<!--${s.data}-->`}function Kr(s,t){return Tn(s,t)}function gl(s,t){return Tt(s)?s.children.map(e=>Kr(e,t)).join(""):""}function Is(s){return Array.isArray(s)?s.map(Is).join(""):yt(s)?s.name==="br"?`
3
+ `:Is(s.children):Bn(s)?Is(s.children):Ee(s)?s.data:""}function ws(s){return Array.isArray(s)?s.map(ws).join(""):Tt(s)&&!kr(s)?ws(s.children):Ee(s)?s.data:""}function Dn(s){return Array.isArray(s)?s.map(Dn).join(""):Tt(s)&&(s.type===_.Tag||Bn(s))?Dn(s.children):Ee(s)?s.data:""}function Hr(s){return Tt(s)?s.children:[]}function Wr(s){return s.parent||null}function dl(s){const t=Wr(s);if(t!=null)return Hr(t);const e=[s];let{prev:n,next:i}=s;for(;n!=null;)e.unshift(n),{prev:n}=n;for(;i!=null;)e.push(i),{next:i}=i;return e}function fl(s,t){var e;return(e=s.attribs)===null||e===void 0?void 0:e[t]}function pl(s,t){return s.attribs!=null&&Object.prototype.hasOwnProperty.call(s.attribs,t)&&s.attribs[t]!=null}function ml(s){return s.name}function Sl(s){let{next:t}=s;for(;t!==null&&!yt(t);)({next:t}=t);return t}function Cl(s){let{prev:t}=s;for(;t!==null&&!yt(t);)({prev:t}=t);return t}function Je(s){if(s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),s.parent){const t=s.parent.children,e=t.lastIndexOf(s);e>=0&&t.splice(e,1)}s.next=null,s.prev=null,s.parent=null}function bl(s,t){const e=t.prev=s.prev;e&&(e.next=t);const n=t.next=s.next;n&&(n.prev=t);const i=t.parent=s.parent;if(i){const r=i.children;r[r.lastIndexOf(s)]=t,s.parent=null}}function yl(s,t){if(Je(t),t.next=null,t.parent=s,s.children.push(t)>1){const e=s.children[s.children.length-2];e.next=t,t.prev=e}else t.prev=null}function El(s,t){Je(t);const{parent:e}=s,n=s.next;if(t.next=n,t.prev=s,s.next=t,t.parent=e,n){if(n.prev=t,e){const i=e.children;i.splice(i.lastIndexOf(n),0,t)}}else e&&e.children.push(t)}function Il(s,t){if(Je(t),t.parent=s,t.prev=null,s.children.unshift(t)!==1){const e=s.children[1];e.prev=t,t.next=e}else t.next=null}function wl(s,t){Je(t);const{parent:e}=s;if(e){const n=e.children;n.splice(n.indexOf(s),0,t)}s.prev&&(s.prev.next=t),t.parent=e,t.prev=s.prev,t.next=s,s.prev=t}function Pe(s,t,e=!0,n=1/0){return Yr(s,Array.isArray(t)?t:[t],e,n)}function Yr(s,t,e,n){const i=[],r=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=r[0].length){if(o.length===1)return i;r.shift(),o.shift();continue}const A=r[0][o[0]++];if(s(A)&&(i.push(A),--n<=0))return i;e&&Tt(A)&&A.children.length>0&&(o.unshift(0),r.unshift(A.children))}}function Rl(s,t){return t.find(s)}function xn(s,t,e=!0){const n=Array.isArray(t)?t:[t];for(let i=0;i<n.length;i++){const r=n[i];if(yt(r)&&s(r))return r;if(e&&Tt(r)&&r.children.length>0){const o=xn(s,r.children,!0);if(o)return o}}return null}function Ur(s,t){return(Array.isArray(t)?t:[t]).some(e=>yt(e)&&s(e)||Tt(e)&&Ur(s,e.children))}function Bl(s,t){const e=[],n=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return e;n.shift(),i.shift();continue}const r=n[0][i[0]++];yt(r)&&s(r)&&e.push(r),Tt(r)&&r.children.length>0&&(i.unshift(0),n.unshift(r.children))}}const Rs={tag_name(s){return typeof s=="function"?t=>yt(t)&&s(t.name):s==="*"?yt:t=>yt(t)&&t.name===s},tag_type(s){return typeof s=="function"?t=>s(t.type):t=>t.type===s},tag_contains(s){return typeof s=="function"?t=>Ee(t)&&s(t.data):t=>Ee(t)&&t.data===s}};function Nn(s,t){return typeof t=="function"?e=>yt(e)&&t(e.attribs[s]):e=>yt(e)&&e.attribs[s]===t}function Tl(s,t){return e=>s(e)||t(e)}function _r(s){const t=Object.keys(s).map(e=>{const n=s[e];return Object.prototype.hasOwnProperty.call(Rs,e)?Rs[e](n):Nn(e,n)});return t.length===0?null:t.reduce(Tl)}function Dl(s,t){const e=_r(s);return e?e(t):!0}function xl(s,t,e,n=1/0){const i=_r(s);return i?Pe(i,t,e,n):[]}function Nl(s,t,e=!0){return Array.isArray(t)||(t=[t]),xn(Nn("id",s),t,e)}function Ie(s,t,e=!0,n=1/0){return Pe(Rs.tag_name(s),t,e,n)}function vl(s,t,e=!0,n=1/0){return Pe(Nn("class",s),t,e,n)}function Fl(s,t,e=!0,n=1/0){return Pe(Rs.tag_type(s),t,e,n)}function Ml(s){let t=s.length;for(;--t>=0;){const e=s[t];if(t>0&&s.lastIndexOf(e,t-1)>=0){s.splice(t,1);continue}for(let n=e.parent;n;n=n.parent)if(s.includes(n)){s.splice(t,1);break}}return s}var Et;(function(s){s[s.DISCONNECTED=1]="DISCONNECTED",s[s.PRECEDING=2]="PRECEDING",s[s.FOLLOWING=4]="FOLLOWING",s[s.CONTAINS=8]="CONTAINS",s[s.CONTAINED_BY=16]="CONTAINED_BY"})(Et||(Et={}));function Jr(s,t){const e=[],n=[];if(s===t)return 0;let i=Tt(s)?s:s.parent;for(;i;)e.unshift(i),i=i.parent;for(i=Tt(t)?t:t.parent;i;)n.unshift(i),i=i.parent;const r=Math.min(e.length,n.length);let o=0;for(;o<r&&e[o]===n[o];)o++;if(o===0)return Et.DISCONNECTED;const A=e[o-1],c=A.children,a=e[o],u=n[o];return c.indexOf(a)>c.indexOf(u)?A===t?Et.FOLLOWING|Et.CONTAINED_BY:Et.FOLLOWING:A===s?Et.PRECEDING|Et.CONTAINS:Et.PRECEDING}function kl(s){return s=s.filter((t,e,n)=>!n.includes(t,e+1)),s.sort((t,e)=>{const n=Jr(t,e);return n&Et.PRECEDING?-1:n&Et.FOLLOWING?1:0}),s}function Pr(s){const t=Bs(Kl,s);return t?t.name==="feed"?Ol(t):Ql(t):null}function Ol(s){var t;const e=s.children,n={type:"atom",items:Ie("entry",e).map(o=>{var A;const{children:c}=o,a={media:Zr(c)};dt(a,"id","id",c),dt(a,"title","title",c);const u=(A=Bs("link",c))===null||A===void 0?void 0:A.attribs.href;u&&(a.link=u);const g=Pt("summary",c)||Pt("content",c);g&&(a.description=g);const C=Pt("updated",c);return C&&(a.pubDate=new Date(C)),a})};dt(n,"id","id",e),dt(n,"title","title",e);const i=(t=Bs("link",e))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),dt(n,"description","subtitle",e);const r=Pt("updated",e);return r&&(n.updated=new Date(r)),dt(n,"author","email",e,!0),n}function Ql(s){var t,e;const n=(e=(t=Bs("channel",s.children))===null||t===void 0?void 0:t.children)!==null&&e!==void 0?e:[],i={type:s.name.substr(0,3),id:"",items:Ie("item",s.children).map(o=>{const{children:A}=o,c={media:Zr(A)};dt(c,"id","guid",A),dt(c,"title","title",A),dt(c,"link","link",A),dt(c,"description","description",A);const a=Pt("pubDate",A)||Pt("dc:date",A);return a&&(c.pubDate=new Date(a)),c})};dt(i,"title","title",n),dt(i,"link","link",n),dt(i,"description","description",n);const r=Pt("lastBuildDate",n);return r&&(i.updated=new Date(r)),dt(i,"author","managingEditor",n,!0),i}const Gl=["url","type","lang"],Ll=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Zr(s){return Ie("media:content",s).map(t=>{const{attribs:e}=t,n={medium:e.medium,isDefault:!!e.isDefault};for(const i of Gl)e[i]&&(n[i]=e[i]);for(const i of Ll)e[i]&&(n[i]=parseInt(e[i],10));return e.expression&&(n.expression=e.expression),n})}function Bs(s,t){return Ie(s,t,!0,1)[0]}function Pt(s,t,e=!1){return ws(Ie(s,t,e,1)).trim()}function dt(s,t,e,n,i=!1){const r=Pt(e,n,i);r&&(s[t]=r)}function Kl(s){return s==="rss"||s==="feed"||s==="rdf:RDF"}const vn=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Et},append:El,appendChild:yl,compareDocumentPosition:Jr,existsOne:Ur,filter:Pe,find:Yr,findAll:Bl,findOne:xn,findOneChild:Rl,getAttributeValue:fl,getChildren:Hr,getElementById:Nl,getElements:xl,getElementsByClassName:vl,getElementsByTagName:Ie,getElementsByTagType:Fl,getFeed:Pr,getInnerHTML:gl,getName:ml,getOuterHTML:Kr,getParent:Wr,getSiblings:dl,getText:Is,hasAttrib:pl,hasChildren:Tt,innerText:Dn,isCDATA:Bn,isComment:kr,isDocument:Xc,isTag:yt,isText:Ee,nextElementSibling:Sl,prepend:wl,prependChild:Il,prevElementSibling:Cl,removeElement:Je,removeSubsets:Ml,replaceElement:bl,testElement:Dl,textContent:ws,uniqueSort:kl},Symbol.toStringTag,{value:"Module"})),Hl=Object.freeze(Object.defineProperty({__proto__:null,DomUtils:vn,Parser:Lc,get QuoteType(){return Bt},Tokenizer:Dr,getFeed:Pr},Symbol.toStringTag,{value:"Module"})),Zt=-1,x=1,z=2,nt=3,Mt=4,Ht=8,ie=9,we=10,Wt=11,Wl=new Set(["ARTICLE","ASIDE","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","COL","COLGROUP","DD","DIV","DL","DT","EMBED","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","LI","UL","OL","P"]),Yl=-1,Ul=1,_l=4,Jl=8,Pl=128,Zl=1,Vr=2,Xr=4,Vl=8,Xl=16,jl=32,Ts="http://www.w3.org/2000/svg",{assign:ql,create:zl,defineProperties:$l,entries:tu,keys:eu,setPrototypeOf:ht}=Object,re=String,ft=s=>s.nodeType===x?s[I]:s,Vt=({ownerDocument:s})=>s[Ce].ignoreCase,Dt=(s,t)=>{s[m]=t,t[X]=s},jr=(s,t,e)=>{Dt(s,t),Dt(ft(t),e)},qr=(s,t,e,n)=>{Dt(s,t),Dt(ft(e),n)},Ds=(s,t,e)=>{Dt(s,t),Dt(t,e)},Fn=({localName:s,ownerDocument:t})=>t[Ce].ignoreCase?s.toUpperCase():s,zr=(s,t)=>{s&&(s[m]=t),t&&(t[X]=s)},$r=(s,t)=>{const e=s.createDocumentFragment(),n=s.createElement("");n.innerHTML=t;const{firstChild:i,lastChild:r}=n;if(i){qr(e,i,r,e[I]);let o=i;do o.parentNode=e;while(o!==r&&(o=ft(o)[m]))}return e},Xt=new WeakMap;let xs=!1;const Re=new WeakMap,oe=new WeakMap,Ns=(s,t,e,n)=>{xs&&oe.has(s)&&s.attributeChangedCallback&&s.constructor.observedAttributes.includes(t)&&s.attributeChangedCallback(t,e,n)},to=(s,t)=>e=>{if(oe.has(e)){const n=oe.get(e);n.connected!==t&&e.isConnected===t&&(n.connected=t,s in e&&e[s]())}},eo=to("connectedCallback",!0),Mn=s=>{if(xs){eo(s),Xt.has(s)&&(s=Xt.get(s).shadowRoot);let{[m]:t,[I]:e}=s;for(;t!==e;)t.nodeType===x&&eo(t),t=t[m]}},so=to("disconnectedCallback",!1),su=s=>{if(xs){so(s),Xt.has(s)&&(s=Xt.get(s).shadowRoot);let{[m]:t,[I]:e}=s;for(;t!==e;)t.nodeType===x&&so(t),t=t[m]}};class nu{constructor(t){this.ownerDocument=t,this.registry=new Map,this.waiting=new Map,this.active=!1}define(t,e,n={}){const{ownerDocument:i,registry:r,waiting:o}=this;if(r.has(t))throw new Error("unable to redefine "+t);if(Re.has(e))throw new Error("unable to redefine the same class: "+e);this.active=xs=!0;const{extends:A}=n;Re.set(e,{ownerDocument:i,options:{is:A?t:""},localName:A||t});const c=A?a=>a.localName===A&&a.getAttribute("is")===t:a=>a.localName===t;if(r.set(t,{Class:e,check:c}),o.has(t)){for(const a of o.get(t))a(e);o.delete(t)}i.querySelectorAll(A?`${A}[is="${t}"]`:t).forEach(this.upgrade,this)}upgrade(t){if(oe.has(t))return;const{ownerDocument:e,registry:n}=this,i=t.getAttribute("is")||t.localName;if(n.has(i)){const{Class:r,check:o}=n.get(i);if(o(t)){const{attributes:A,isConnected:c}=t;for(const u of A)t.removeAttributeNode(u);const a=tu(t);for(const[u]of a)delete t[u];ht(t,r.prototype),e[_e]={element:t,values:a},new r(e,i),oe.set(t,{connected:c});for(const u of A)t.setAttributeNode(u);c&&t.connectedCallback&&t.connectedCallback()}}}whenDefined(t){const{registry:e,waiting:n}=this;return new Promise(i=>{e.has(t)?i(e.get(t).Class):(n.has(t)||n.set(t,[]),n.get(t).push(i))})}get(t){const e=this.registry.get(t);return e&&e.Class}getName(t){if(Re.has(t)){const{localName:e}=Re.get(t);return e}return null}}const{Parser:iu}=Hl,Ae=(s,t,e)=>{const n=s[I];return t.parentNode=s,jr(n[X],t,n),e&&t.nodeType===x&&Mn(t),t},ru=(s,t,e,n,i)=>{e[k]=n,e.ownerElement=s,Ds(t[X],e,t),e.name==="class"&&(s.className=n),i&&Ns(s,e.name,null,n)},no=(s,t,e)=>{const{active:n,registry:i}=s[wt];let r=s,o=null,A=!1;const c=new iu({onprocessinginstruction(a,u){a.toLowerCase()==="!doctype"&&(s.doctype=u.slice(a.length).trim())},onopentag(a,u){let g=!0;if(t){if(o)r=Ae(r,s.createElementNS(Ts,a),n),r.ownerSVGElement=o,g=!1;else if(a==="svg"||a==="SVG")o=s.createElementNS(Ts,a),r=Ae(r,o,n),g=!1;else if(n){const b=a.includes("-")?a:u.is||"";if(b&&i.has(b)){const{Class:B}=i.get(b);r=Ae(r,new B,n),delete u.is,g=!1}}}g&&(r=Ae(r,s.createElement(a),!1));let C=r[I];for(const b of eu(u))ru(r,C,s.createAttribute(b),u[b],n)},oncomment(a){Ae(r,s.createComment(a),n)},ontext(a){A?Ae(r,s.createCDATASection(a),n):Ae(r,s.createTextNode(a),n)},oncdatastart(){A=!0},oncdataend(){A=!1},onclosetag(){t&&r===o&&(o=null),r=r.parentNode}},{lowerCaseAttributeNames:!1,decodeEntities:!0,xmlMode:!t});return c.write(e),c.end(),s},vs=new Map,J=(s,t)=>{for(const e of[].concat(s))vs.set(e,t),vs.set(e.toUpperCase(),t)},io=({[m]:s,[I]:t},e)=>{for(;s!==t;){switch(s.nodeType){case z:ro(s,e);break;case nt:case Ht:case Mt:oo(s,e);break;case x:ao(s,e),s=ft(s);break;case we:Ao(s,e);break}s=s[m]}const n=e.length-1,i=e[n];typeof i=="number"&&i<0?e[n]+=Zt:e.push(Zt)},ro=(s,t)=>{t.push(z,s.name);const e=s[k].trim();e&&t.push(e)},oo=(s,t)=>{const e=s[k];e.trim()&&t.push(s.nodeType,e)},ou=(s,t)=>{t.push(s.nodeType),io(s,t)},Ao=({name:s,publicId:t,systemId:e},n)=>{n.push(we,s),t&&n.push(t),e&&n.push(e)},ao=(s,t)=>{t.push(x,s.localName),io(s,t)},co=(s,t,e,n,i,r,o)=>({type:s,target:t,addedNodes:n,removedNodes:i,attributeName:r,oldValue:o,previousSibling:e?.previousSibling||null,nextSibling:e?.nextSibling||null}),lo=(s,t,e,n,i,r)=>{if(!n||n.includes(e)){const{callback:o,records:A,scheduled:c}=s;A.push(co("attributes",t,null,[],[],e,i?r:void 0)),c||(s.scheduled=!0,Promise.resolve().then(()=>{s.scheduled=!1,o(A.splice(0),s)}))}},kn=(s,t,e)=>{const{ownerDocument:n}=s,{active:i,observers:r}=n[Jt];if(i){for(const o of r)for(const[A,{childList:c,subtree:a,attributes:u,attributeFilter:g,attributeOldValue:C}]of o.nodes)if(c){if(a&&(A===n||A.contains(s))||!a&&A.children.includes(s)){lo(o,s,t,g,C,e);break}}else if(u&&A===s){lo(o,s,t,g,C,e);break}}},Ze=(s,t)=>{const{ownerDocument:e}=s,{active:n,observers:i}=e[Jt];if(n){for(const r of i)for(const[o,{subtree:A,childList:c,characterData:a}]of r.nodes)if(c&&(t&&(o===t||A&&o.contains(t))||!t&&(A&&(o===e||o.contains(s))||!A&&o[a?"childNodes":"children"].includes(s)))){const{callback:u,records:g,scheduled:C}=r;g.push(co("childList",o,s,t?[]:[s],t?[s]:[])),C||(r.scheduled=!0,Promise.resolve().then(()=>{r.scheduled=!1,u(g.splice(0),r)}));break}}};class Au{constructor(t){const e=new Set;this.observers=e,this.active=!1,this.class=class{constructor(i){this.callback=i,this.nodes=new Map,this.records=[],this.scheduled=!1}disconnect(){this.records.splice(0),this.nodes.clear(),e.delete(this),t[Jt].active=!!e.size}observe(i,r={subtree:!1,childList:!1,attributes:!1,attributeFilter:null,attributeOldValue:!1,characterData:!1}){("attributeOldValue"in r||"attributeFilter"in r)&&(r.attributes=!0),r.childList=!!r.childList,r.subtree=!!r.subtree,this.nodes.set(i,r),e.add(this),t[Jt].active=!0}takeRecords(){return this.records.splice(0)}}}}const au=new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","class","contenteditable","controls","default","defer","disabled","draggable","formnovalidate","hidden","id","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","style","truespeed"]),On=(s,t)=>{const{[k]:e,name:n}=t;t.ownerElement=s,Ds(s,t,s[m]),n==="class"&&(s.className=e),kn(s,n,null),Ns(s,n,null,e)},uo=(s,t)=>{const{[k]:e,name:n}=t;Dt(t[X],t[m]),t.ownerElement=t[X]=t[m]=null,n==="class"&&(s[Se]=null),kn(s,n,e),Ns(s,n,e,null)},N={get(s,t){return s.hasAttribute(t)},set(s,t,e){e?s.setAttribute(t,""):s.removeAttribute(t)}},jt={get(s,t){return parseFloat(s.getAttribute(t)||0)},set(s,t,e){s.setAttribute(t,e)}},p={get(s,t){return s.getAttribute(t)||""},set(s,t,e){s.setAttribute(t,e)}},Fs=new WeakMap;function cu(s,t){return typeof t=="function"?t.call(s.target,s):t.handleEvent(s),s._stopImmediatePropagationFlag}function lu({currentTarget:s,target:t}){const e=Fs.get(s);if(e&&e.has(this.type)){const n=e.get(this.type);s===t?this.eventPhase=this.AT_TARGET:this.eventPhase=this.BUBBLING_PHASE,this.currentTarget=s,this.target=t;for(const[i,r]of n)if(r&&r.once&&n.delete(i),cu(this,i))break;return delete this.currentTarget,delete this.target,this.cancelBubble}}class Qn{constructor(){Fs.set(this,new Map)}_getParent(){return null}addEventListener(t,e,n){const i=Fs.get(this);i.has(t)||i.set(t,new Map),i.get(t).set(e,n)}removeEventListener(t,e){const n=Fs.get(this);if(n.has(t)){const i=n.get(t);i.delete(e)&&!i.size&&n.delete(t)}}dispatchEvent(t){let e=this;for(t.eventPhase=t.CAPTURING_PHASE;e;)e.dispatchEvent&&t._path.push({currentTarget:e,target:this}),e=t.bubbles&&e._getParent&&e._getParent();return t._path.some(lu,t),t._path=[],t.eventPhase=t.NONE,!t.defaultPrevented}}class kt extends Array{item(t){return t<this.length?this[t]:null}}const ho=({parentNode:s})=>{let t=0;for(;s;)t++,s=s.parentNode;return t};let ae=class extends Qn{static get ELEMENT_NODE(){return x}static get ATTRIBUTE_NODE(){return z}static get TEXT_NODE(){return nt}static get CDATA_SECTION_NODE(){return Mt}static get COMMENT_NODE(){return Ht}static get DOCUMENT_NODE(){return ie}static get DOCUMENT_FRAGMENT_NODE(){return Wt}static get DOCUMENT_TYPE_NODE(){return we}constructor(t,e,n){super(),this.ownerDocument=t,this.localName=e,this.nodeType=n,this.parentNode=null,this[m]=null,this[X]=null}get ELEMENT_NODE(){return x}get ATTRIBUTE_NODE(){return z}get TEXT_NODE(){return nt}get CDATA_SECTION_NODE(){return Mt}get COMMENT_NODE(){return Ht}get DOCUMENT_NODE(){return ie}get DOCUMENT_FRAGMENT_NODE(){return Wt}get DOCUMENT_TYPE_NODE(){return we}get baseURI(){const t=this.nodeType===ie?this:this.ownerDocument;if(t){const e=t.querySelector("base");if(e)return e.getAttribute("href");const{location:n}=t.defaultView;if(n)return n.href}return null}get isConnected(){return!1}get nodeName(){return this.localName}get parentElement(){return null}get previousSibling(){return null}get previousElementSibling(){return null}get nextSibling(){return null}get nextElementSibling(){return null}get childNodes(){return new kt}get firstChild(){return null}get lastChild(){return null}get nodeValue(){return null}set nodeValue(t){}get textContent(){return null}set textContent(t){}normalize(){}cloneNode(){return null}contains(){return!1}insertBefore(t,e){return t}appendChild(t){return t}replaceChild(t,e){return e}removeChild(t){return t}toString(){return""}hasChildNodes(){return!!this.lastChild}isSameNode(t){return this===t}compareDocumentPosition(t){let e=0;if(this!==t){let n=ho(this),i=ho(t);if(n<i)e+=Xr,this.contains(t)&&(e+=Xl);else if(i<n)e+=Vr,t.contains(this)&&(e+=Vl);else if(n&&i){const{childNodes:r}=this.parentNode;r.indexOf(this)<r.indexOf(t)?e+=Xr:e+=Vr}(!n||!i)&&(e+=jl,e+=Zl)}return e}isEqualNode(t){if(this===t)return!0;if(this.nodeType===t.nodeType){switch(this.nodeType){case ie:case Wt:{const e=this.childNodes,n=t.childNodes;return e.length===n.length&&e.every((i,r)=>i.isEqualNode(n[r]))}}return this.toString()===t.toString()}return!1}_getParent(){return this.parentNode}getRootNode(){let t=this;for(;t.parentNode;)t=t.parentNode;return t}};const{replace:uu}="",hu=/[<>&\xA0]/g,gu={" ":"&#160;","&":"&amp;","<":"&lt;",">":"&gt;"},du=s=>gu[s],Gn=s=>uu.call(s,hu,du),fu=/"/g;let Ve=class $a extends ae{constructor(t,e,n=""){super(t,e,z),this.ownerElement=null,this.name=re(e),this[k]=re(n),this[Cs]=!1}get value(){return this[k]}set value(t){const{[k]:e,name:n,ownerElement:i}=this;this[k]=re(t),this[Cs]=!0,i&&(kn(i,n,e),Ns(i,n,e,this[k]))}cloneNode(){const{ownerDocument:t,name:e,[k]:n}=this;return new $a(t,e,n)}toString(){const{name:t,[k]:e}=this;if(au.has(t)&&!e)return Vt(this)?t:`${t}=""`;const n=(Vt(this)?e:Gn(e)).replace(fu,"&quot;");return`${t}="${n}"`}toJSON(){const t=[];return ro(this,t),t}};const go=({ownerDocument:s,parentNode:t})=>{for(;t;){if(t===s)return!0;t=t.parentNode||t.host}return!1},fo=({parentNode:s})=>{if(s)switch(s.nodeType){case ie:case Wt:return null}return s},Xe=({[X]:s})=>{switch(s?s.nodeType:0){case Zt:return s[gt];case nt:case Ht:case Mt:return s}return null},ce=s=>{const t=ft(s)[m];return t&&(t.nodeType===Zt?null:t)},Ln=s=>{let t=ce(s);for(;t&&t.nodeType!==x;)t=ce(t);return t},po=s=>{let t=Xe(s);for(;t&&t.nodeType!==x;)t=Xe(t);return t},Kn=(s,t)=>{const e=s.createDocumentFragment();return e.append(...t),e},mo=(s,t)=>{const{ownerDocument:e,parentNode:n}=s;n&&n.insertBefore(Kn(e,t),s)},So=(s,t)=>{const{ownerDocument:e,parentNode:n}=s;n&&n.insertBefore(Kn(e,t),ft(s)[m])},Hn=(s,t)=>{const{ownerDocument:e,parentNode:n}=s;n&&(t.includes(s)&&Hn(s,[s=s.cloneNode()]),n.insertBefore(Kn(e,t),s),s.remove())},Co=(s,t,e)=>{const{parentNode:n,nodeType:i}=t;(s||e)&&(zr(s,e),t[X]=null,ft(t)[m]=null),n&&(t.parentNode=null,Ze(t,n),i===x&&su(t))};let je=class extends ae{constructor(t,e,n,i){super(t,e,n),this[k]=re(i)}get isConnected(){return go(this)}get parentElement(){return fo(this)}get previousSibling(){return Xe(this)}get nextSibling(){return ce(this)}get previousElementSibling(){return po(this)}get nextElementSibling(){return Ln(this)}before(...t){mo(this,t)}after(...t){So(this,t)}replaceWith(...t){Hn(this,t)}remove(){Co(this[X],this,this[m])}get data(){return this[k]}set data(t){this[k]=re(t),Ze(this,this.parentNode)}get nodeValue(){return this.data}set nodeValue(t){this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}get length(){return this.data.length}substringData(t,e){return this.data.substr(t,e)}appendData(t){this.data+=t}insertData(t,e){const{data:n}=this;this.data=n.slice(0,t)+e+n.slice(t)}deleteData(t,e){const{data:n}=this;this.data=n.slice(0,t)+n.slice(t+e)}replaceData(t,e,n){const{data:i}=this;this.data=i.slice(0,t)+n+i.slice(t+e)}toJSON(){const t=[];return oo(this,t),t}},Wn=class tc extends je{constructor(t,e=""){super(t,"#cdatasection",Mt,e)}cloneNode(){const{ownerDocument:t,[k]:e}=this;return new tc(t,e)}toString(){return`<![CDATA[${this[k]}]]>`}},Yn=class ec extends je{constructor(t,e=""){super(t,"#comment",Ht,e)}cloneNode(){const{ownerDocument:t,[k]:e}=this;return new ec(t,e)}toString(){return`<!--${this[k]}-->`}};function bo(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function pu(s){if(Object.prototype.hasOwnProperty.call(s,"__esModule"))return s;var t=s.default;if(typeof t=="function"){var e=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(s).forEach(function(n){var i=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return s[n]}})}),e}var Un,yo;function mu(){return yo||(yo=1,Un={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Un}var Su=mu();const D=bo(Su);var R;(function(s){s.Attribute="attribute",s.Pseudo="pseudo",s.PseudoElement="pseudo-element",s.Tag="tag",s.Universal="universal",s.Adjacent="adjacent",s.Child="child",s.Descendant="descendant",s.Parent="parent",s.Sibling="sibling",s.ColumnCombinator="column-combinator"})(R||(R={}));var P;(function(s){s.Any="any",s.Element="element",s.End="end",s.Equals="equals",s.Exists="exists",s.Hyphen="hyphen",s.Not="not",s.Start="start"})(P||(P={}));const Eo=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Cu=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,bu=new Map([[126,P.Element],[94,P.Start],[36,P.End],[42,P.Any],[33,P.Not],[124,P.Hyphen]]),yu=new Set(["has","not","matches","is","where","host","host-context"]);function Eu(s){switch(s.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 Iu=new Set(["contains","icontains"]);function wu(s,t,e){const n=parseInt(t,16)-65536;return n!==n||e?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function qe(s){return s.replace(Cu,wu)}function _n(s){return s===39||s===34}function Io(s){return s===32||s===9||s===10||s===12||s===13}function wo(s){const t=[],e=Ro(t,`${s}`,0);if(e<s.length)throw new Error(`Unmatched selector: ${s.slice(e)}`);return t}function Ro(s,t,e){let n=[];function i(C){const b=t.slice(e+C).match(Eo);if(!b)throw new Error(`Expected name, found ${t.slice(e)}`);const[B]=b;return e+=C+B.length,qe(B)}function r(C){for(e+=C;e<t.length&&Io(t.charCodeAt(e));)e++}function o(){e+=1;const C=e;let b=1;for(;b>0&&e<t.length;e++)t.charCodeAt(e)===40&&!A(e)?b++:t.charCodeAt(e)===41&&!A(e)&&b--;if(b)throw new Error("Parenthesis not matched");return qe(t.slice(C,e-1))}function A(C){let b=0;for(;t.charCodeAt(--C)===92;)b++;return(b&1)===1}function c(){if(n.length>0&&Eu(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function a(C){if(n.length>0&&n[n.length-1].type===R.Descendant){n[n.length-1].type=C;return}c(),n.push({type:C})}function u(C,b){n.push({type:R.Attribute,name:C,action:b,value:i(1),namespace:null,ignoreCase:"quirks"})}function g(){if(n.length&&n[n.length-1].type===R.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");s.push(n)}if(r(0),t.length===e)return e;t:for(;e<t.length;){const C=t.charCodeAt(e);switch(C){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==R.Descendant)&&(c(),n.push({type:R.Descendant})),r(1);break}case 62:{a(R.Child),r(1);break}case 60:{a(R.Parent),r(1);break}case 126:{a(R.Sibling),r(1);break}case 43:{a(R.Adjacent),r(1);break}case 46:{u("class",P.Element);break}case 35:{u("id",P.Equals);break}case 91:{r(1);let b,B=null;t.charCodeAt(e)===124?b=i(1):t.startsWith("*|",e)?(B="*",b=i(2)):(b=i(0),t.charCodeAt(e)===124&&t.charCodeAt(e+1)!==61&&(B=b,b=i(1))),r(0);let it=P.Exists;const Qt=bu.get(t.charCodeAt(e));if(Qt){if(it=Qt,t.charCodeAt(e+1)!==61)throw new Error("Expected `=`");r(2)}else t.charCodeAt(e)===61&&(it=P.Equals,r(1));let Y="",Nt=null;if(it!=="exists"){if(_n(t.charCodeAt(e))){const rt=t.charCodeAt(e);let Z=e+1;for(;Z<t.length&&(t.charCodeAt(Z)!==rt||A(Z));)Z+=1;if(t.charCodeAt(Z)!==rt)throw new Error("Attribute value didn't end");Y=qe(t.slice(e+1,Z)),e=Z+1}else{const rt=e;for(;e<t.length&&(!Io(t.charCodeAt(e))&&t.charCodeAt(e)!==93||A(e));)e+=1;Y=qe(t.slice(rt,e))}r(0);const O=t.charCodeAt(e)|32;O===115?(Nt=!1,r(1)):O===105&&(Nt=!0,r(1))}if(t.charCodeAt(e)!==93)throw new Error("Attribute selector didn't terminate");e+=1;const It={type:R.Attribute,name:b,action:it,value:Y,namespace:B,ignoreCase:Nt};n.push(It);break}case 58:{if(t.charCodeAt(e+1)===58){n.push({type:R.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(e)===40?o():null});continue}const b=i(1).toLowerCase();let B=null;if(t.charCodeAt(e)===40)if(yu.has(b)){if(_n(t.charCodeAt(e+1)))throw new Error(`Pseudo-selector ${b} cannot be quoted`);if(B=[],e=Ro(B,t,e+1),t.charCodeAt(e)!==41)throw new Error(`Missing closing parenthesis in :${b} (${t})`);e+=1}else{if(B=o(),Iu.has(b)){const it=B.charCodeAt(0);it===B.charCodeAt(B.length-1)&&_n(it)&&(B=B.slice(1,-1))}B=qe(B)}n.push({type:R.Pseudo,name:b,data:B});break}case 44:{g(),n=[],r(1);break}default:{if(t.startsWith("/*",e)){const it=t.indexOf("*/",e+2);if(it<0)throw new Error("Comment was not terminated");e=it+2,n.length===0&&r(0);break}let b=null,B;if(C===42)e+=1,B="*";else if(C===124){if(B="",t.charCodeAt(e+1)===124){a(R.ColumnCombinator),r(2);break}}else if(Eo.test(t.slice(e)))B=i(0);else break t;t.charCodeAt(e)===124&&t.charCodeAt(e+1)!==124&&(b=B,t.charCodeAt(e+1)===42?(B="*",e+=2):B=i(1)),n.push(B==="*"?{type:R.Universal,namespace:b}:{type:R.Tag,name:B,namespace:b})}}}return g(),e}const Bo=new Map([[R.Universal,50],[R.Tag,30],[R.Attribute,1],[R.Pseudo,0]]);function Jn(s){return!Bo.has(s.type)}const Ru=new Map([[P.Exists,10],[P.Equals,8],[P.Not,7],[P.Start,6],[P.End,6],[P.Any,5]]);function Bu(s){const t=s.map(To);for(let e=1;e<s.length;e++){const n=t[e];if(!(n<0))for(let i=e-1;i>=0&&n<t[i];i--){const r=s[i+1];s[i+1]=s[i],s[i]=r,t[i+1]=t[i],t[i]=n}}}function To(s){var t,e;let n=(t=Bo.get(s.type))!==null&&t!==void 0?t:-1;return s.type===R.Attribute?(n=(e=Ru.get(s.action))!==null&&e!==void 0?e:4,s.action===P.Equals&&s.name==="id"&&(n=9),s.ignoreCase&&(n>>=1)):s.type===R.Pseudo&&(s.data?s.name==="has"||s.name==="contains"?n=0:Array.isArray(s.data)?(n=Math.min(...s.data.map(i=>Math.min(...i.map(To)))),n<0&&(n=0)):n=2:n=3),n}const Tu=/[-[\]{}()*+?.,\\^$|#\s]/g;function Do(s){return s.replace(Tu,"\\$&")}const Du=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 le(s,t){return typeof s.ignoreCase=="boolean"?s.ignoreCase:s.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&Du.has(s.name)}const xu={equals(s,t,e){const{adapter:n}=e,{name:i}=t;let{value:r}=t;return le(t,e)?(r=r.toLowerCase(),o=>{const A=n.getAttributeValue(o,i);return A!=null&&A.length===r.length&&A.toLowerCase()===r&&s(o)}):o=>n.getAttributeValue(o,i)===r&&s(o)},hyphen(s,t,e){const{adapter:n}=e,{name:i}=t;let{value:r}=t;const o=r.length;return le(t,e)?(r=r.toLowerCase(),function(c){const a=n.getAttributeValue(c,i);return a!=null&&(a.length===o||a.charAt(o)==="-")&&a.substr(0,o).toLowerCase()===r&&s(c)}):function(c){const a=n.getAttributeValue(c,i);return a!=null&&(a.length===o||a.charAt(o)==="-")&&a.substr(0,o)===r&&s(c)}},element(s,t,e){const{adapter:n}=e,{name:i,value:r}=t;if(/\s/.test(r))return D.falseFunc;const o=new RegExp(`(?:^|\\s)${Do(r)}(?:$|\\s)`,le(t,e)?"i":"");return function(c){const a=n.getAttributeValue(c,i);return a!=null&&a.length>=r.length&&o.test(a)&&s(c)}},exists(s,{name:t},{adapter:e}){return n=>e.hasAttrib(n,t)&&s(n)},start(s,t,e){const{adapter:n}=e,{name:i}=t;let{value:r}=t;const o=r.length;return o===0?D.falseFunc:le(t,e)?(r=r.toLowerCase(),A=>{const c=n.getAttributeValue(A,i);return c!=null&&c.length>=o&&c.substr(0,o).toLowerCase()===r&&s(A)}):A=>{var c;return!!(!((c=n.getAttributeValue(A,i))===null||c===void 0)&&c.startsWith(r))&&s(A)}},end(s,t,e){const{adapter:n}=e,{name:i}=t;let{value:r}=t;const o=-r.length;return o===0?D.falseFunc:le(t,e)?(r=r.toLowerCase(),A=>{var c;return((c=n.getAttributeValue(A,i))===null||c===void 0?void 0:c.substr(o).toLowerCase())===r&&s(A)}):A=>{var c;return!!(!((c=n.getAttributeValue(A,i))===null||c===void 0)&&c.endsWith(r))&&s(A)}},any(s,t,e){const{adapter:n}=e,{name:i,value:r}=t;if(r==="")return D.falseFunc;if(le(t,e)){const o=new RegExp(Do(r),"i");return function(c){const a=n.getAttributeValue(c,i);return a!=null&&a.length>=r.length&&o.test(a)&&s(c)}}return o=>{var A;return!!(!((A=n.getAttributeValue(o,i))===null||A===void 0)&&A.includes(r))&&s(o)}},not(s,t,e){const{adapter:n}=e,{name:i}=t;let{value:r}=t;return r===""?o=>!!n.getAttributeValue(o,i)&&s(o):le(t,e)?(r=r.toLowerCase(),o=>{const A=n.getAttributeValue(o,i);return(A==null||A.length!==r.length||A.toLowerCase()!==r)&&s(o)}):o=>n.getAttributeValue(o,i)!==r&&s(o)}},Nu=new Set([9,10,12,13,32]),xo=48,vu=57;function Fu(s){if(s=s.trim().toLowerCase(),s==="even")return[2,0];if(s==="odd")return[2,1];let t=0,e=0,n=r(),i=o();if(t<s.length&&s.charAt(t)==="n"&&(t++,e=n*(i??1),A(),t<s.length?(n=r(),A(),i=o()):n=i=0),i===null||t<s.length)throw new Error(`n-th rule couldn't be parsed ('${s}')`);return[e,n*i];function r(){return s.charAt(t)==="-"?(t++,-1):(s.charAt(t)==="+"&&t++,1)}function o(){const c=t;let a=0;for(;t<s.length&&s.charCodeAt(t)>=xo&&s.charCodeAt(t)<=vu;)a=a*10+(s.charCodeAt(t)-xo),t++;return t===c?null:a}function A(){for(;t<s.length&&Nu.has(s.charCodeAt(t));)t++}}function Mu(s){const t=s[0],e=s[1]-1;if(e<0&&t<=0)return D.falseFunc;if(t===-1)return r=>r<=e;if(t===0)return r=>r===e;if(t===1)return e<0?D.trueFunc:r=>r>=e;const n=Math.abs(t),i=(e%n+n)%n;return t>1?r=>r>=e&&r%n===i:r=>r<=e&&r%n===i}function Ms(s){return Mu(Fu(s))}function ks(s,t){return e=>{const n=t.getParent(e);return n!=null&&t.isTag(n)&&s(e)}}const Pn={contains(s,t,{adapter:e}){return function(i){return s(i)&&e.getText(i).includes(t)}},icontains(s,t,{adapter:e}){const n=t.toLowerCase();return function(r){return s(r)&&e.getText(r).toLowerCase().includes(n)}},"nth-child"(s,t,{adapter:e,equals:n}){const i=Ms(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?ks(s,e):function(o){const A=e.getSiblings(o);let c=0;for(let a=0;a<A.length&&!n(o,A[a]);a++)e.isTag(A[a])&&c++;return i(c)&&s(o)}},"nth-last-child"(s,t,{adapter:e,equals:n}){const i=Ms(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?ks(s,e):function(o){const A=e.getSiblings(o);let c=0;for(let a=A.length-1;a>=0&&!n(o,A[a]);a--)e.isTag(A[a])&&c++;return i(c)&&s(o)}},"nth-of-type"(s,t,{adapter:e,equals:n}){const i=Ms(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?ks(s,e):function(o){const A=e.getSiblings(o);let c=0;for(let a=0;a<A.length;a++){const u=A[a];if(n(o,u))break;e.isTag(u)&&e.getName(u)===e.getName(o)&&c++}return i(c)&&s(o)}},"nth-last-of-type"(s,t,{adapter:e,equals:n}){const i=Ms(t);return i===D.falseFunc?D.falseFunc:i===D.trueFunc?ks(s,e):function(o){const A=e.getSiblings(o);let c=0;for(let a=A.length-1;a>=0;a--){const u=A[a];if(n(o,u))break;e.isTag(u)&&e.getName(u)===e.getName(o)&&c++}return i(c)&&s(o)}},root(s,t,{adapter:e}){return n=>{const i=e.getParent(n);return(i==null||!e.isTag(i))&&s(n)}},scope(s,t,e,n){const{equals:i}=e;return!n||n.length===0?Pn.root(s,t,e):n.length===1?r=>i(n[0],r)&&s(r):r=>n.includes(r)&&s(r)},hover:Zn("isHovered"),visited:Zn("isVisited"),active:Zn("isActive")};function Zn(s){return function(e,n,{adapter:i}){const r=i[s];return typeof r!="function"?D.falseFunc:function(A){return r(A)&&e(A)}}}const No={empty(s,{adapter:t}){return!t.getChildren(s).some(e=>t.isTag(e)||t.getText(e)!=="")},"first-child"(s,{adapter:t,equals:e}){if(t.prevElementSibling)return t.prevElementSibling(s)==null;const n=t.getSiblings(s).find(i=>t.isTag(i));return n!=null&&e(s,n)},"last-child"(s,{adapter:t,equals:e}){const n=t.getSiblings(s);for(let i=n.length-1;i>=0;i--){if(e(s,n[i]))return!0;if(t.isTag(n[i]))break}return!1},"first-of-type"(s,{adapter:t,equals:e}){const n=t.getSiblings(s),i=t.getName(s);for(let r=0;r<n.length;r++){const o=n[r];if(e(s,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"last-of-type"(s,{adapter:t,equals:e}){const n=t.getSiblings(s),i=t.getName(s);for(let r=n.length-1;r>=0;r--){const o=n[r];if(e(s,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"only-of-type"(s,{adapter:t,equals:e}){const n=t.getName(s);return t.getSiblings(s).every(i=>e(s,i)||!t.isTag(i)||t.getName(i)!==n)},"only-child"(s,{adapter:t,equals:e}){return t.getSiblings(s).every(n=>e(s,n)||!t.isTag(n))}};function vo(s,t,e,n){if(e===null){if(s.length>n)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(s.length===n)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const ku={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
4
+ :is(button, input, select, textarea, optgroup, option)[disabled],
5
+ optgroup[disabled] > option,
6
+ fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
7
+ )`,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])"},Fo={};function Mo(s,t){return s===D.falseFunc?D.falseFunc:e=>t.isTag(e)&&s(e)}function Ou(s,t){const e=t.getSiblings(s);if(e.length<=1)return[];const n=e.indexOf(s);return n<0||n===e.length-1?[]:e.slice(n+1).filter(t.isTag)}function Vn(s){return{xmlMode:!!s.xmlMode,lowerCaseAttributeNames:!!s.lowerCaseAttributeNames,lowerCaseTags:!!s.lowerCaseTags,quirksMode:!!s.quirksMode,cacheResults:!!s.cacheResults,pseudos:s.pseudos,adapter:s.adapter,equals:s.equals}}const Xn=(s,t,e,n,i)=>{const r=i(t,Vn(e),n);return r===D.trueFunc?s:r===D.falseFunc?D.falseFunc:o=>r(o)&&s(o)},jn={is:Xn,matches:Xn,where:Xn,not(s,t,e,n,i){const r=i(t,Vn(e),n);return r===D.falseFunc?s:r===D.trueFunc?D.falseFunc:o=>!r(o)&&s(o)},has(s,t,e,n,i){const{adapter:r}=e,o=Vn(e);o.relativeSelector=!0;const A=t.some(u=>u.some(Jn))?[Fo]:void 0,c=i(t,o,A);if(c===D.falseFunc)return D.falseFunc;const a=Mo(c,r);if(A&&c!==D.trueFunc){const{shouldTestNextSiblings:u=!1}=c;return g=>{if(!s(g))return!1;A[0]=g;const C=r.getChildren(g),b=u?[...C,...Ou(g,r)]:C;return r.existsOne(a,b)}}return u=>s(u)&&r.existsOne(a,r.getChildren(u))}};function Qu(s,t,e,n,i){var r;const{name:o,data:A}=t;if(Array.isArray(A)){if(!(o in jn))throw new Error(`Unknown pseudo-class :${o}(${A})`);return jn[o](s,A,e,n,i)}const c=(r=e.pseudos)===null||r===void 0?void 0:r[o],a=typeof c=="string"?c:ku[o];if(typeof a=="string"){if(A!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const u=wo(a);return jn.is(s,u,e,n,i)}if(typeof c=="function")return vo(c,o,A,1),u=>c(u,A)&&s(u);if(o in Pn)return Pn[o](s,A,e,n);if(o in No){const u=No[o];return vo(u,o,A,2),g=>u(g,e,A)&&s(g)}throw new Error(`Unknown pseudo-class :${o}`)}function qn(s,t){const e=t.getParent(s);return e&&t.isTag(e)?e:null}function Gu(s,t,e,n,i){const{adapter:r,equals:o}=e;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(!e.xmlMode||e.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),xu[t.action](s,t,e)}case R.Pseudo:return Qu(s,t,e,n,i);case R.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:A}=t;return(!e.xmlMode||e.lowerCaseTags)&&(A=A.toLowerCase()),function(a){return r.getName(a)===A&&s(a)}}case R.Descendant:{if(e.cacheResults===!1||typeof WeakSet>"u")return function(a){let u=a;for(;u=qn(u,r);)if(s(u))return!0;return!1};const A=new WeakSet;return function(a){let u=a;for(;u=qn(u,r);)if(!A.has(u)){if(r.isTag(u)&&s(u))return!0;A.add(u)}return!1}}case"_flexibleDescendant":return function(c){let a=c;do if(s(a))return!0;while(a=qn(a,r));return!1};case R.Parent:return function(c){return r.getChildren(c).some(a=>r.isTag(a)&&s(a))};case R.Child:return function(c){const a=r.getParent(c);return a!=null&&r.isTag(a)&&s(a)};case R.Sibling:return function(c){const a=r.getSiblings(c);for(let u=0;u<a.length;u++){const g=a[u];if(o(c,g))break;if(r.isTag(g)&&s(g))return!0}return!1};case R.Adjacent:return r.prevElementSibling?function(c){const a=r.prevElementSibling(c);return a!=null&&s(a)}:function(c){const a=r.getSiblings(c);let u;for(let g=0;g<a.length;g++){const C=a[g];if(o(c,C))break;r.isTag(C)&&(u=C)}return!!u&&s(u)};case R.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return s}}}function ko(s,t,e){const n=Lu(s,t,e);return Mo(n,t.adapter)}function Lu(s,t,e){const n=typeof s=="string"?wo(s):s;return Qo(n,t,e)}function Oo(s){return s.type===R.Pseudo&&(s.name==="scope"||Array.isArray(s.data)&&s.data.some(t=>t.some(Oo)))}const Ku={type:R.Descendant},Hu={type:"_flexibleDescendant"},Wu={type:R.Pseudo,name:"scope",data:null};function Yu(s,{adapter:t},e){const n=!!e?.every(i=>{const r=t.isTag(i)&&t.getParent(i);return i===Fo||r&&t.isTag(r)});for(const i of s){if(!(i.length>0&&Jn(i[0])&&i[0].type!==R.Descendant))if(n&&!i.some(Oo))i.unshift(Ku);else continue;i.unshift(Wu)}}function Qo(s,t,e){var n;s.forEach(Bu),e=(n=t.context)!==null&&n!==void 0?n:e;const i=Array.isArray(e),r=e&&(Array.isArray(e)?e:[e]);if(t.relativeSelector!==!1)Yu(s,t,r);else if(s.some(c=>c.length>0&&Jn(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const A=s.map(c=>{if(c.length>=2){const[a,u]=c;a.type!==R.Pseudo||a.name!=="scope"||(i&&u.type===R.Descendant?c[1]=Hu:(u.type===R.Adjacent||u.type===R.Sibling)&&(o=!0))}return Uu(c,t,r)}).reduce(_u,D.falseFunc);return A.shouldTestNextSiblings=o,A}function Uu(s,t,e){var n;return s.reduce((i,r)=>i===D.falseFunc?D.falseFunc:Gu(i,r,t,e,Qo),(n=t.rootFunc)!==null&&n!==void 0?n:D.trueFunc)}function _u(s,t){return t===D.falseFunc||s===D.trueFunc?s:s===D.falseFunc||t===D.trueFunc?t:function(n){return s(n)||t(n)}}const Go=(s,t)=>s===t,Ju={adapter:vn,equals:Go};function Lo(s){var t,e,n,i;const r=s??Ju;return(t=r.adapter)!==null&&t!==void 0||(r.adapter=vn),(e=r.equals)!==null&&e!==void 0||(r.equals=(i=(n=r.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:Go),r}function Pu(s){return function(e,n,i){const r=Lo(n);return s(e,r,i)}}const Zu=Pu(ko);function Vu(s,t,e){const n=Lo(e);return(typeof t=="function"?t:ko(t,n))(s)}const{isArray:Xu}=Array,Os=({nodeType:s})=>s===x,Ko=(s,t)=>t.some(e=>Os(e)&&(s(e)||Ko(s,Be(e)))),ju=(s,t)=>t==="class"?s.classList.value:s.getAttribute(t),Be=({childNodes:s})=>s,qu=s=>{const{localName:t}=s;return Vt(s)?t.toLowerCase():t},zu=({parentNode:s})=>s,$u=s=>{const{parentNode:t}=s;return t?Be(t):s},zn=s=>Xu(s)?s.map(zn).join(""):Os(s)?zn(Be(s)):s.nodeType===nt?s.data:"",th=(s,t)=>s.hasAttribute(t),eh=s=>{let{length:t}=s;for(;t--;){const e=s[t];if(t&&-1<s.lastIndexOf(e,t-1)){s.splice(t,1);continue}for(let{parentNode:n}=e;n;n=n.parentNode)if(s.includes(n)){s.splice(t,1);break}}return s},Ho=(s,t)=>{const e=[];for(const n of t)Os(n)&&(s(n)&&e.push(n),e.push(...Ho(s,Be(n))));return e},Wo=(s,t)=>{for(let e of t)if(s(e)||(e=Wo(s,Be(e))))return e;return null},Yo={isTag:Os,existsOne:Ko,getAttributeValue:ju,getChildren:Be,getName:qu,getParent:zu,getSiblings:$u,getText:zn,hasAttrib:th,removeSubsets:eh,findAll:Ho,findOne:Wo},$n=(s,t)=>Zu(t,{context:t.includes(":scope")?s:void 0,xmlMode:!Vt(s),adapter:Yo}),sh=(s,t)=>Vu(s,t,{strict:!0,context:t.includes(":scope")?s:void 0,xmlMode:!Vt(s),adapter:Yo});let ze=class sc extends je{constructor(t,e=""){super(t,"#text",nt,e)}get wholeText(){const t=[];let{previousSibling:e,nextSibling:n}=this;for(;e&&e.nodeType===nt;){t.unshift(e[k]);e=e.previousSibling}for(t.push(this[k]);n&&n.nodeType===nt;){t.push(n[k]);n=n.nextSibling}return t.join("")}cloneNode(){const{ownerDocument:t,[k]:e}=this;return new sc(t,e)}toString(){return Gn(this[k])}};const nh=s=>s instanceof ae,ti=(s,t,e)=>{const{ownerDocument:n}=s;for(const i of e)s.insertBefore(nh(i)?i:new ze(n,i),t)};class Uo extends ae{constructor(t,e,n){super(t,e,n),this[st]=null,this[m]=this[I]={[m]:null,[X]:this,[gt]:this,nodeType:Zt,ownerDocument:this.ownerDocument,parentNode:null}}get childNodes(){const t=new kt;let{firstChild:e}=this;for(;e;)t.push(e),e=ce(e);return t}get children(){const t=new kt;let{firstElementChild:e}=this;for(;e;)t.push(e),e=Ln(e);return t}get firstChild(){let{[m]:t,[I]:e}=this;for(;t.nodeType===z;)t=t[m];return t===e?null:t}get firstElementChild(){let{firstChild:t}=this;for(;t;){if(t.nodeType===x)return t;t=ce(t)}return null}get lastChild(){const t=this[I][X];switch(t.nodeType){case Zt:return t[gt];case z:return null}return t===this?null:t}get lastElementChild(){let{lastChild:t}=this;for(;t;){if(t.nodeType===x)return t;t=Xe(t)}return null}get childElementCount(){return this.children.length}prepend(...t){ti(this,this.firstChild,t)}append(...t){ti(this,this[I],t)}replaceChildren(...t){let{[m]:e,[I]:n}=this;for(;e!==n&&e.nodeType===z;)e=e[m];for(;e!==n;){const i=ft(e)[m];e.remove(),e=i}t.length&&ti(this,n,t)}getElementsByClassName(t){const e=new kt;let{[m]:n,[I]:i}=this;for(;n!==i;)n.nodeType===x&&n.hasAttribute("class")&&n.classList.has(t)&&e.push(n),n=n[m];return e}getElementsByTagName(t){const e=new kt;let{[m]:n,[I]:i}=this;for(;n!==i;)n.nodeType===x&&(n.localName===t||Fn(n)===t)&&e.push(n),n=n[m];return e}querySelector(t){const e=$n(this,t);let{[m]:n,[I]:i}=this;for(;n!==i;){if(n.nodeType===x&&e(n))return n;n=n.nodeType===x&&n.localName==="template"?n[I]:n[m]}return null}querySelectorAll(t){const e=$n(this,t),n=new kt;let{[m]:i,[I]:r}=this;for(;i!==r;)i.nodeType===x&&e(i)&&n.push(i),i=i.nodeType===x&&i.localName==="template"?i[I]:i[m];return n}appendChild(t){return this.insertBefore(t,this[I])}contains(t){let e=t;for(;e&&e!==this;)e=e.parentNode;return e===this}insertBefore(t,e=null){if(t===e)return t;if(t===this)throw new Error("unable to append a node to itself");const n=e||this[I];switch(t.nodeType){case x:t.remove(),t.parentNode=this,jr(n[X],t,n),Ze(t,null),Mn(t);break;case Wt:{let{[st]:i,firstChild:r,lastChild:o}=t;if(r){qr(n[X],r,o,n),Dt(t,t[I]),i&&i.replaceChildren();do r.parentNode=this,Ze(r,null),r.nodeType===x&&Mn(r);while(r!==o&&(r=ce(r)))}break}case nt:case Ht:case Mt:t.remove();default:t.parentNode=this,Ds(n[X],t,n),Ze(t,null);break}return t}normalize(){let{[m]:t,[I]:e}=this;for(;t!==e;){const{[m]:n,[X]:i,nodeType:r}=t;r===nt&&(t[k]?i&&i.nodeType===nt&&(i.textContent+=t.textContent,t.remove()):t.remove()),t=n}}removeChild(t){if(t.parentNode!==this)throw new Error("node is not a child");return t.remove(),t}replaceChild(t,e){const n=ft(e)[m];return e.remove(),this.insertBefore(t,n),e}}class ei extends Uo{getElementById(t){let{[m]:e,[I]:n}=this;for(;e!==n;){if(e.nodeType===x&&e.id===t)return e;e=e[m]}return null}cloneNode(t){const{ownerDocument:e,constructor:n}=this,i=new n(e);if(t){const{[I]:r}=i;for(const o of this.childNodes)i.insertBefore(o.cloneNode(t),r)}return i}toString(){const{childNodes:t,localName:e}=this;return`<${e}>${t.join("")}</${e}>`}toJSON(){const t=[];return ou(this,t),t}}let si=class extends ei{constructor(t){super(t,"#document-fragment",Wt)}},Qs=class nc extends ae{constructor(t,e,n="",i=""){super(t,"#document-type",we),this.name=e,this.publicId=n,this.systemId=i}cloneNode(){const{ownerDocument:t,name:e,publicId:n,systemId:i}=this;return new nc(t,e,n,i)}toString(){const{name:t,publicId:e,systemId:n}=this,i=0<e.length,r=[t];return i&&r.push("PUBLIC",`"${e}"`),n.length&&(i||r.push("SYSTEM"),r.push(`"${n}"`)),`<!DOCTYPE ${r.join(" ")}>`}toJSON(){const t=[];return Ao(this,t),t}};const _o=s=>s.childNodes.join(""),Jo=(s,t)=>{const{ownerDocument:e}=s,{constructor:n}=e,i=new n;i[wt]=e[wt];const{childNodes:r}=no(i,Vt(s),t);s.replaceChildren(...r.map(Po,e))};function Po(s){switch(s.ownerDocument=this,s.nodeType){case x:case Wt:s.childNodes.forEach(Po,this);break}return s}const Gs=s=>s.replace(/(([A-Z0-9])([A-Z0-9][a-z]))|(([a-z0-9]+)([A-Z]))/g,"$2$5-$3$6").toLowerCase(),Ls=new WeakMap,ni=s=>`data-${Gs(s)}`,ih=s=>s.slice(5).replace(/-([a-z])/g,(t,e)=>e.toUpperCase()),rh={get(s,t){if(t in s)return Ls.get(s).getAttribute(ni(t))},set(s,t,e){return s[t]=e,Ls.get(s).setAttribute(ni(t),e),!0},deleteProperty(s,t){return t in s&&Ls.get(s).removeAttribute(ni(t)),delete s[t]}};class Zo{constructor(t){for(const{name:e,value:n}of t.attributes)/^data-/.test(e)&&(this[ih(e)]=n);return Ls.set(this,t),new Proxy(this,rh)}}ht(Zo.prototype,null);const{add:oh}=Set.prototype,Vo=(s,t)=>{for(const e of t)e&&oh.call(s,e)},$e=({[wr]:s,value:t})=>{const e=s.getAttributeNode("class");e?e.value=t:On(s,new Ve(s.ownerDocument,"class",t))};class Ah extends Set{constructor(t){super(),this[wr]=t;const e=t.getAttributeNode("class");e&&Vo(this,e.value.split(/\s+/))}get length(){return this.size}get value(){return[...this].join(" ")}add(...t){Vo(this,t),$e(this)}contains(t){return this.has(t)}remove(...t){for(const e of t)this.delete(e);$e(this)}toggle(t,e){if(this.has(t)){if(e)return!0;this.delete(t),$e(this)}else if(e||arguments.length===1)return super.add(t),$e(this),!0;return!1}replace(t,e){return this.has(t)?(this.delete(t),super.add(e),$e(this),!0):!1}supports(){return!0}}const Ks=new WeakMap,ii=s=>[...s.keys()].filter(t=>t!==st),Hs=s=>{const t=Ks.get(s).getAttributeNode("style");if((!t||t[Cs]||s.get(st)!==t)&&(s.clear(),t)){s.set(st,t);for(const e of t[k].split(/\s*;\s*/)){let[n,...i]=e.split(":");if(i.length>0){n=n.trim();const r=i.join(":").trim();n&&r&&s.set(n,r)}}}return t},Ws={get(s,t){return t in ah?s[t]:(Hs(s),t==="length"?ii(s).length:/^\d+$/.test(t)?ii(s)[t]:s.get(Gs(t)))},set(s,t,e){if(t==="cssText")s[t]=e;else{let n=Hs(s);if(e==null?s.delete(Gs(t)):s.set(Gs(t),e),!n){const i=Ks.get(s);n=i.ownerDocument.createAttribute("style"),i.setAttributeNode(n),s.set(st,n)}n[Cs]=!1,n[k]=s.toString()}return!0}};let Xo=class extends Map{constructor(t){return super(),Ks.set(this,t),new Proxy(this,Ws)}get cssText(){return this.toString()}set cssText(t){Ks.get(this).setAttribute("style",t)}getPropertyValue(t){const e=this[st];return Ws.get(e,t)}setProperty(t,e){const n=this[st];Ws.set(n,t,e)}removeProperty(t){const e=this[st];Ws.set(e,t,null)}[Symbol.iterator](){const t=this[st];Hs(t);const e=ii(t),{length:n}=e;let i=0;return{next(){const r=i===n;return{done:r,value:r?null:e[i++]}}}}get[st](){return this}toString(){const t=this[st];Hs(t);const e=[];return t.forEach(ch,e),e.join(";")}};const{prototype:ah}=Xo;function ch(s,t){t!==st&&this.push(`${t}:${s}`)}const jo=3,qo=2,zo=1,$o=0;function lh(s){return s.currentTarget}class ue{static get BUBBLING_PHASE(){return jo}static get AT_TARGET(){return qo}static get CAPTURING_PHASE(){return zo}static get NONE(){return $o}constructor(t,e={}){this.type=t,this.bubbles=!!e.bubbles,this.cancelBubble=!1,this._stopImmediatePropagationFlag=!1,this.cancelable=!!e.cancelable,this.eventPhase=this.NONE,this.timeStamp=Date.now(),this.defaultPrevented=!1,this.originalTarget=null,this.returnValue=null,this.srcElement=null,this.target=null,this._path=[]}get BUBBLING_PHASE(){return jo}get AT_TARGET(){return qo}get CAPTURING_PHASE(){return zo}get NONE(){return $o}preventDefault(){this.defaultPrevented=!0}composedPath(){return this._path.map(lh)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this._stopImmediatePropagationFlag=!0}}class tA extends Array{constructor(t){super(),this.ownerElement=t}getNamedItem(t){return this.ownerElement.getAttributeNode(t)}setNamedItem(t){this.ownerElement.setAttributeNode(t),this.unshift(t)}removeNamedItem(t){const e=this.getNamedItem(t);this.ownerElement.removeAttribute(t),this.splice(this.indexOf(e),1)}item(t){return t<this.length?this[t]:null}getNamedItemNS(t,e){return this.getNamedItem(e)}setNamedItemNS(t,e){return this.setNamedItem(e)}removeNamedItemNS(t,e){return this.removeNamedItem(e)}}let ri=class extends ei{constructor(t){super(t.ownerDocument,"#shadow-root",Wt),this.host=t}get innerHTML(){return _o(this)}set innerHTML(t){Jo(this,t)}};const uh={get(s,t){return t in s?s[t]:s.find(({name:e})=>e===t)}},eA=(s,t,e)=>{if("ownerSVGElement"in t){const n=s.createElementNS(Ts,e);return n.ownerSVGElement=t.ownerSVGElement,n}return s.createElement(e)},hh=({localName:s,ownerDocument:t})=>t[Ce].voidElements.test(s);let ts=class extends Uo{constructor(t,e){super(t,e,x),this[Se]=null,this[yn]=null,this[In]=null}get isConnected(){return go(this)}get parentElement(){return fo(this)}get previousSibling(){return Xe(this)}get nextSibling(){return ce(this)}get namespaceURI(){return"http://www.w3.org/1999/xhtml"}get previousElementSibling(){return po(this)}get nextElementSibling(){return Ln(this)}before(...t){mo(this,t)}after(...t){So(this,t)}replaceWith(...t){Hn(this,t)}remove(){Co(this[X],this,this[I][m])}get id(){return p.get(this,"id")}set id(t){p.set(this,"id",t)}get className(){return this.classList.value}set className(t){const{classList:e}=this;e.clear(),e.add(...re(t).split(/\s+/))}get nodeName(){return Fn(this)}get tagName(){return Fn(this)}get classList(){return this[Se]||(this[Se]=new Ah(this))}get dataset(){return this[yn]||(this[yn]=new Zo(this))}getBoundingClientRect(){return{x:0,y:0,bottom:0,height:0,left:0,right:0,top:0,width:0}}get nonce(){return p.get(this,"nonce")}set nonce(t){p.set(this,"nonce",t)}get style(){return this[In]||(this[In]=new Xo(this))}get tabIndex(){return jt.get(this,"tabindex")||-1}set tabIndex(t){jt.set(this,"tabindex",t)}get slot(){return p.get(this,"slot")}set slot(t){p.set(this,"slot",t)}get innerText(){const t=[];let{[m]:e,[I]:n}=this;for(;e!==n;)e.nodeType===nt?t.push(e.textContent.replace(/\s+/g," ")):t.length&&e[m]!=n&&Wl.has(e.tagName)&&t.push(`
8
+ `),e=e[m];return t.join("")}get textContent(){const t=[];let{[m]:e,[I]:n}=this;for(;e!==n;){const i=e.nodeType;(i===nt||i===Mt)&&t.push(e.textContent),e=e[m]}return t.join("")}set textContent(t){this.replaceChildren(),t!=null&&t!==""&&this.appendChild(new ze(this.ownerDocument,t))}get innerHTML(){return _o(this)}set innerHTML(t){Jo(this,t)}get outerHTML(){return this.toString()}set outerHTML(t){const e=this.ownerDocument.createElement("");e.innerHTML=t,this.replaceWith(...e.childNodes)}get attributes(){const t=new tA(this);let e=this[m];for(;e.nodeType===z;)t.push(e),e=e[m];return new Proxy(t,uh)}focus(){this.dispatchEvent(new ue("focus"))}getAttribute(t){if(t==="class")return this.className;const e=this.getAttributeNode(t);return e&&(Vt(this)?e.value:Gn(e.value))}getAttributeNode(t){let e=this[m];for(;e.nodeType===z;){if(e.name===t)return e;e=e[m]}return null}getAttributeNames(){const t=new kt;let e=this[m];for(;e.nodeType===z;)t.push(e.name),e=e[m];return t}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributes(){return this[m].nodeType===z}removeAttribute(t){t==="class"&&this[Se]&&this[Se].clear();let e=this[m];for(;e.nodeType===z;){if(e.name===t){uo(this,e);return}e=e[m]}}removeAttributeNode(t){let e=this[m];for(;e.nodeType===z;){if(e===t){uo(this,e);return}e=e[m]}}setAttribute(t,e){if(t==="class")this.className=e;else{const n=this.getAttributeNode(t);n?n.value=e:On(this,new Ve(this.ownerDocument,t,e))}}setAttributeNode(t){const{name:e}=t,n=this.getAttributeNode(e);if(n!==t){n&&this.removeAttributeNode(n);const{ownerElement:i}=t;i&&i.removeAttributeNode(t),On(this,t)}return n}toggleAttribute(t,e){return this.hasAttribute(t)?e?!0:(this.removeAttribute(t),!1):e||arguments.length===1?(this.setAttribute(t,""),!0):!1}get shadowRoot(){if(Xt.has(this)){const{mode:t,shadowRoot:e}=Xt.get(this);if(t==="open")return e}return null}attachShadow(t){if(Xt.has(this))throw new Error("operation not supported");const e=new ri(this);return Xt.set(this,{mode:t.mode,shadowRoot:e}),e}matches(t){return sh(this,t)}closest(t){let e=this;const n=$n(e,t);for(;e&&!n(e);)e=e.parentElement;return e}insertAdjacentElement(t,e){const{parentElement:n}=this;switch(t){case"beforebegin":if(n){n.insertBefore(e,this);break}return null;case"afterbegin":this.insertBefore(e,this.firstChild);break;case"beforeend":this.insertBefore(e,null);break;case"afterend":if(n){n.insertBefore(e,this.nextSibling);break}return null}return e}insertAdjacentHTML(t,e){this.insertAdjacentElement(t,$r(this.ownerDocument,e))}insertAdjacentText(t,e){const n=this.ownerDocument.createTextNode(e);this.insertAdjacentElement(t,n)}cloneNode(t=!1){const{ownerDocument:e,localName:n}=this,i=u=>{u.parentNode=o,Dt(A,u),A=u},r=eA(e,this,n);let o=r,A=r,{[m]:c,[I]:a}=this;for(;c!==a&&(t||c.nodeType===z);){switch(c.nodeType){case Zt:Dt(A,o[I]),A=o[I],o=o.parentNode;break;case x:{const u=eA(e,c,c.localName);i(u),o=u;break}case z:{const u=c.cloneNode(t);u.ownerElement=o,i(u);break}case nt:case Ht:case Mt:i(c.cloneNode(t));break}c=c[m]}return Dt(A,r[I]),r}toString(){const t=[],{[I]:e}=this;let n={[m]:this},i=!1;do switch(n=n[m],n.nodeType){case z:{const r=" "+n;switch(r){case" id":case" class":case" style":break;default:t.push(r)}break}case Zt:{const r=n[gt];i?("ownerSVGElement"in r?t.push(" />"):hh(r)?t.push(Vt(r)?">":" />"):t.push(`></${r.localName}>`),i=!1):t.push(`</${r.localName}>`);break}case x:i&&t.push(">"),n.toString!==this.toString?(t.push(n.toString()),n=n[I],i=!1):(t.push(`<${n.localName}`),i=!0);break;case nt:case Ht:case Mt:t.push((i?">":"")+n),i=!1;break}while(n!==e);return t.join("")}toJSON(){const t=[];return ao(this,t),t}getAttributeNS(t,e){return this.getAttribute(e)}getElementsByTagNameNS(t,e){return this.getElementsByTagName(e)}hasAttributeNS(t,e){return this.hasAttribute(e)}removeAttributeNS(t,e){this.removeAttribute(e)}setAttributeNS(t,e,n){this.setAttribute(e,n)}setAttributeNodeNS(t){return this.setAttributeNode(t)}};const oi=new WeakMap,gh={get(s,t){return s[t]},set(s,t,e){return s[t]=e,!0}};let es=class extends ts{constructor(t,e,n=null){super(t,e),this.ownerSVGElement=n}get className(){return oi.has(this)||oi.set(this,new Proxy({baseVal:"",animVal:""},gh)),oi.get(this)}set className(t){const{classList:e}=this;e.clear(),e.add(...re(t).split(/\s+/))}get namespaceURI(){return"http://www.w3.org/2000/svg"}getAttribute(t){return t==="class"?[...this.classList].join(" "):super.getAttribute(t)}setAttribute(t,e){if(t==="class")this.className=e;else if(t==="style"){const{className:n}=this;n.baseVal=n.animVal=e}super.setAttribute(t,e)}};const St=()=>{throw new TypeError("Illegal constructor")};function Ai(){St()}ht(Ai,Ve),Ai.prototype=Ve.prototype;function ai(){St()}ht(ai,Wn),ai.prototype=Wn.prototype;function ci(){St()}ht(ci,je),ci.prototype=je.prototype;function li(){St()}ht(li,Yn),li.prototype=Yn.prototype;function ui(){St()}ht(ui,si),ui.prototype=si.prototype;function hi(){St()}ht(hi,Qs),hi.prototype=Qs.prototype;function gi(){St()}ht(gi,ts),gi.prototype=ts.prototype;function di(){St()}ht(di,ae),di.prototype=ae.prototype;function fi(){St()}ht(fi,ri),fi.prototype=ri.prototype;function pi(){St()}ht(pi,ze),pi.prototype=ze.prototype;function mi(){St()}ht(mi,es),mi.prototype=es.prototype;const dh={Attr:Ai,CDATASection:ai,CharacterData:ci,Comment:li,DocumentFragment:ui,DocumentType:hi,Element:gi,Node:di,ShadowRoot:fi,Text:pi,SVGElement:mi},ss=new WeakMap,h={get(s,t){return ss.has(s)&&ss.get(s)[t]||null},set(s,t,e){ss.has(s)||ss.set(s,{});const n=ss.get(s),i=t.slice(2);n[t]&&s.removeEventListener(i,n[t],!1),(n[t]=e)&&s.addEventListener(i,e,!1)}};let S=class extends ts{static get observedAttributes(){return[]}constructor(t=null,e=""){super(t,e);const n=!t;let i;if(n){const{constructor:r}=this;if(!Re.has(r))throw new Error("unable to initialize this Custom Element");({ownerDocument:t,localName:e,options:i}=Re.get(r))}if(t[_e]){const{element:r,values:o}=t[_e];t[_e]=null;for(const[A,c]of o)r[A]=c;return r}n&&(this.ownerDocument=this[I].ownerDocument=t,this.localName=e,oe.set(this,{connected:!1}),i.is&&this.setAttribute("is",i.is))}blur(){this.dispatchEvent(new ue("blur"))}click(){const t=new ue("click",{bubbles:!0,cancelable:!0});t.button=0,this.dispatchEvent(t)}get accessKeyLabel(){const{accessKey:t}=this;return t&&`Alt+Shift+${t}`}get isContentEditable(){return this.hasAttribute("contenteditable")}get contentEditable(){return N.get(this,"contenteditable")}set contentEditable(t){N.set(this,"contenteditable",t)}get draggable(){return N.get(this,"draggable")}set draggable(t){N.set(this,"draggable",t)}get hidden(){return N.get(this,"hidden")}set hidden(t){N.set(this,"hidden",t)}get spellcheck(){return N.get(this,"spellcheck")}set spellcheck(t){N.set(this,"spellcheck",t)}get accessKey(){return p.get(this,"accesskey")}set accessKey(t){p.set(this,"accesskey",t)}get dir(){return p.get(this,"dir")}set dir(t){p.set(this,"dir",t)}get lang(){return p.get(this,"lang")}set lang(t){p.set(this,"lang",t)}get title(){return p.get(this,"title")}set title(t){p.set(this,"title",t)}get onabort(){return h.get(this,"onabort")}set onabort(t){h.set(this,"onabort",t)}get onblur(){return h.get(this,"onblur")}set onblur(t){h.set(this,"onblur",t)}get oncancel(){return h.get(this,"oncancel")}set oncancel(t){h.set(this,"oncancel",t)}get oncanplay(){return h.get(this,"oncanplay")}set oncanplay(t){h.set(this,"oncanplay",t)}get oncanplaythrough(){return h.get(this,"oncanplaythrough")}set oncanplaythrough(t){h.set(this,"oncanplaythrough",t)}get onchange(){return h.get(this,"onchange")}set onchange(t){h.set(this,"onchange",t)}get onclick(){return h.get(this,"onclick")}set onclick(t){h.set(this,"onclick",t)}get onclose(){return h.get(this,"onclose")}set onclose(t){h.set(this,"onclose",t)}get oncontextmenu(){return h.get(this,"oncontextmenu")}set oncontextmenu(t){h.set(this,"oncontextmenu",t)}get oncuechange(){return h.get(this,"oncuechange")}set oncuechange(t){h.set(this,"oncuechange",t)}get ondblclick(){return h.get(this,"ondblclick")}set ondblclick(t){h.set(this,"ondblclick",t)}get ondrag(){return h.get(this,"ondrag")}set ondrag(t){h.set(this,"ondrag",t)}get ondragend(){return h.get(this,"ondragend")}set ondragend(t){h.set(this,"ondragend",t)}get ondragenter(){return h.get(this,"ondragenter")}set ondragenter(t){h.set(this,"ondragenter",t)}get ondragleave(){return h.get(this,"ondragleave")}set ondragleave(t){h.set(this,"ondragleave",t)}get ondragover(){return h.get(this,"ondragover")}set ondragover(t){h.set(this,"ondragover",t)}get ondragstart(){return h.get(this,"ondragstart")}set ondragstart(t){h.set(this,"ondragstart",t)}get ondrop(){return h.get(this,"ondrop")}set ondrop(t){h.set(this,"ondrop",t)}get ondurationchange(){return h.get(this,"ondurationchange")}set ondurationchange(t){h.set(this,"ondurationchange",t)}get onemptied(){return h.get(this,"onemptied")}set onemptied(t){h.set(this,"onemptied",t)}get onended(){return h.get(this,"onended")}set onended(t){h.set(this,"onended",t)}get onerror(){return h.get(this,"onerror")}set onerror(t){h.set(this,"onerror",t)}get onfocus(){return h.get(this,"onfocus")}set onfocus(t){h.set(this,"onfocus",t)}get oninput(){return h.get(this,"oninput")}set oninput(t){h.set(this,"oninput",t)}get oninvalid(){return h.get(this,"oninvalid")}set oninvalid(t){h.set(this,"oninvalid",t)}get onkeydown(){return h.get(this,"onkeydown")}set onkeydown(t){h.set(this,"onkeydown",t)}get onkeypress(){return h.get(this,"onkeypress")}set onkeypress(t){h.set(this,"onkeypress",t)}get onkeyup(){return h.get(this,"onkeyup")}set onkeyup(t){h.set(this,"onkeyup",t)}get onload(){return h.get(this,"onload")}set onload(t){h.set(this,"onload",t)}get onloadeddata(){return h.get(this,"onloadeddata")}set onloadeddata(t){h.set(this,"onloadeddata",t)}get onloadedmetadata(){return h.get(this,"onloadedmetadata")}set onloadedmetadata(t){h.set(this,"onloadedmetadata",t)}get onloadstart(){return h.get(this,"onloadstart")}set onloadstart(t){h.set(this,"onloadstart",t)}get onmousedown(){return h.get(this,"onmousedown")}set onmousedown(t){h.set(this,"onmousedown",t)}get onmouseenter(){return h.get(this,"onmouseenter")}set onmouseenter(t){h.set(this,"onmouseenter",t)}get onmouseleave(){return h.get(this,"onmouseleave")}set onmouseleave(t){h.set(this,"onmouseleave",t)}get onmousemove(){return h.get(this,"onmousemove")}set onmousemove(t){h.set(this,"onmousemove",t)}get onmouseout(){return h.get(this,"onmouseout")}set onmouseout(t){h.set(this,"onmouseout",t)}get onmouseover(){return h.get(this,"onmouseover")}set onmouseover(t){h.set(this,"onmouseover",t)}get onmouseup(){return h.get(this,"onmouseup")}set onmouseup(t){h.set(this,"onmouseup",t)}get onmousewheel(){return h.get(this,"onmousewheel")}set onmousewheel(t){h.set(this,"onmousewheel",t)}get onpause(){return h.get(this,"onpause")}set onpause(t){h.set(this,"onpause",t)}get onplay(){return h.get(this,"onplay")}set onplay(t){h.set(this,"onplay",t)}get onplaying(){return h.get(this,"onplaying")}set onplaying(t){h.set(this,"onplaying",t)}get onprogress(){return h.get(this,"onprogress")}set onprogress(t){h.set(this,"onprogress",t)}get onratechange(){return h.get(this,"onratechange")}set onratechange(t){h.set(this,"onratechange",t)}get onreset(){return h.get(this,"onreset")}set onreset(t){h.set(this,"onreset",t)}get onresize(){return h.get(this,"onresize")}set onresize(t){h.set(this,"onresize",t)}get onscroll(){return h.get(this,"onscroll")}set onscroll(t){h.set(this,"onscroll",t)}get onseeked(){return h.get(this,"onseeked")}set onseeked(t){h.set(this,"onseeked",t)}get onseeking(){return h.get(this,"onseeking")}set onseeking(t){h.set(this,"onseeking",t)}get onselect(){return h.get(this,"onselect")}set onselect(t){h.set(this,"onselect",t)}get onshow(){return h.get(this,"onshow")}set onshow(t){h.set(this,"onshow",t)}get onstalled(){return h.get(this,"onstalled")}set onstalled(t){h.set(this,"onstalled",t)}get onsubmit(){return h.get(this,"onsubmit")}set onsubmit(t){h.set(this,"onsubmit",t)}get onsuspend(){return h.get(this,"onsuspend")}set onsuspend(t){h.set(this,"onsuspend",t)}get ontimeupdate(){return h.get(this,"ontimeupdate")}set ontimeupdate(t){h.set(this,"ontimeupdate",t)}get ontoggle(){return h.get(this,"ontoggle")}set ontoggle(t){h.set(this,"ontoggle",t)}get onvolumechange(){return h.get(this,"onvolumechange")}set onvolumechange(t){h.set(this,"onvolumechange",t)}get onwaiting(){return h.get(this,"onwaiting")}set onwaiting(t){h.set(this,"onwaiting",t)}get onauxclick(){return h.get(this,"onauxclick")}set onauxclick(t){h.set(this,"onauxclick",t)}get ongotpointercapture(){return h.get(this,"ongotpointercapture")}set ongotpointercapture(t){h.set(this,"ongotpointercapture",t)}get onlostpointercapture(){return h.get(this,"onlostpointercapture")}set onlostpointercapture(t){h.set(this,"onlostpointercapture",t)}get onpointercancel(){return h.get(this,"onpointercancel")}set onpointercancel(t){h.set(this,"onpointercancel",t)}get onpointerdown(){return h.get(this,"onpointerdown")}set onpointerdown(t){h.set(this,"onpointerdown",t)}get onpointerenter(){return h.get(this,"onpointerenter")}set onpointerenter(t){h.set(this,"onpointerenter",t)}get onpointerleave(){return h.get(this,"onpointerleave")}set onpointerleave(t){h.set(this,"onpointerleave",t)}get onpointermove(){return h.get(this,"onpointermove")}set onpointermove(t){h.set(this,"onpointermove",t)}get onpointerout(){return h.get(this,"onpointerout")}set onpointerout(t){h.set(this,"onpointerout",t)}get onpointerover(){return h.get(this,"onpointerover")}set onpointerover(t){h.set(this,"onpointerover",t)}get onpointerup(){return h.get(this,"onpointerup")}set onpointerup(t){h.set(this,"onpointerup",t)}};const sA="template";class nA extends S{constructor(t){super(t,sA);const e=this.ownerDocument.createDocumentFragment();(this[bs]=e)[st]=this}get content(){if(this.hasChildNodes()&&!this[bs].hasChildNodes())for(const t of this.childNodes)this[bs].appendChild(t.cloneNode(!0));return this[bs]}}J(sA,nA);class fh extends S{constructor(t,e="html"){super(t,e)}}const{toString:ph}=S.prototype;class Ys extends S{get innerHTML(){return this.textContent}set innerHTML(t){this.textContent=t}toString(){return ph.call(this.cloneNode()).replace("><",()=>`>${this.textContent}<`)}}const iA="script";class rA extends Ys{constructor(t,e=iA){super(t,e)}get type(){return p.get(this,"type")}set type(t){p.set(this,"type",t)}get src(){return p.get(this,"src")}set src(t){p.set(this,"src",t)}get defer(){return N.get(this,"defer")}set defer(t){N.set(this,"defer",t)}get crossOrigin(){return p.get(this,"crossorigin")}set crossOrigin(t){p.set(this,"crossorigin",t)}get nomodule(){return N.get(this,"nomodule")}set nomodule(t){N.set(this,"nomodule",t)}get referrerPolicy(){return p.get(this,"referrerpolicy")}set referrerPolicy(t){p.set(this,"referrerpolicy",t)}get nonce(){return p.get(this,"nonce")}set nonce(t){p.set(this,"nonce",t)}get async(){return N.get(this,"async")}set async(t){N.set(this,"async",t)}get text(){return this.textContent}set text(t){this.textContent=t}}J(iA,rA);class mh extends S{constructor(t,e="frame"){super(t,e)}}const oA="iframe";class AA extends S{constructor(t,e=oA){super(t,e)}get src(){return p.get(this,"src")}set src(t){p.set(this,"src",t)}get srcdoc(){return p.get(this,"srcdoc")}set srcdoc(t){p.set(this,"srcdoc",t)}get name(){return p.get(this,"name")}set name(t){p.set(this,"name",t)}get allow(){return p.get(this,"allow")}set allow(t){p.set(this,"allow",t)}get allowFullscreen(){return N.get(this,"allowfullscreen")}set allowFullscreen(t){N.set(this,"allowfullscreen",t)}get referrerPolicy(){return p.get(this,"referrerpolicy")}set referrerPolicy(t){p.set(this,"referrerpolicy",t)}get loading(){return p.get(this,"loading")}set loading(t){p.set(this,"loading",t)}}J(oA,AA);class Sh extends S{constructor(t,e="object"){super(t,e)}}class Ch extends S{constructor(t,e="head"){super(t,e)}}class bh extends S{constructor(t,e="body"){super(t,e)}}var L={},Si={},Ci={},bi={},yi={},aA;function cA(){if(aA)return yi;aA=1;var s={};return s.StyleSheet=function(){this.parentStyleSheet=null},yi.StyleSheet=s.StyleSheet,yi}var Ei={},Ii={},lA;function Ct(){if(lA)return Ii;lA=1;var s={};return s.CSSRule=function(){this.parentRule=null,this.parentStyleSheet=null},s.CSSRule.UNKNOWN_RULE=0,s.CSSRule.STYLE_RULE=1,s.CSSRule.CHARSET_RULE=2,s.CSSRule.IMPORT_RULE=3,s.CSSRule.MEDIA_RULE=4,s.CSSRule.FONT_FACE_RULE=5,s.CSSRule.PAGE_RULE=6,s.CSSRule.KEYFRAMES_RULE=7,s.CSSRule.KEYFRAME_RULE=8,s.CSSRule.MARGIN_RULE=9,s.CSSRule.NAMESPACE_RULE=10,s.CSSRule.COUNTER_STYLE_RULE=11,s.CSSRule.SUPPORTS_RULE=12,s.CSSRule.DOCUMENT_RULE=13,s.CSSRule.FONT_FEATURE_VALUES_RULE=14,s.CSSRule.VIEWPORT_RULE=15,s.CSSRule.REGION_STYLE_RULE=16,s.CSSRule.prototype={constructor:s.CSSRule},Ii.CSSRule=s.CSSRule,Ii}var uA;function Us(){if(uA)return Ei;uA=1;var s={CSSStyleDeclaration:De().CSSStyleDeclaration,CSSRule:Ct().CSSRule};return s.CSSStyleRule=function(){s.CSSRule.call(this),this.selectorText="",this.style=new s.CSSStyleDeclaration,this.style.parentRule=this},s.CSSStyleRule.prototype=new s.CSSRule,s.CSSStyleRule.prototype.constructor=s.CSSStyleRule,s.CSSStyleRule.prototype.type=1,Object.defineProperty(s.CSSStyleRule.prototype,"cssText",{get:function(){var t;return this.selectorText?t=this.selectorText+" {"+this.style.cssText+"}":t="",t},set:function(t){var e=s.CSSStyleRule.parse(t);this.style=e.style,this.selectorText=e.selectorText}}),s.CSSStyleRule.parse=function(t){for(var e=0,n="selector",i,r=e,o="",A={selector:!0,value:!0},c=new s.CSSStyleRule,a,u="",g;g=t.charAt(e);e++)switch(g){case" ":case" ":case"\r":case`
9
+ `:case"\f":if(A[n])switch(t.charAt(e-1)){case" ":case" ":case"\r":case`
10
+ `:case"\f":break;default:o+=" ";break}break;case'"':if(r=e+1,i=t.indexOf('"',r)+1,!i)throw'" is missing';o+=t.slice(e,i),e=i-1;break;case"'":if(r=e+1,i=t.indexOf("'",r)+1,!i)throw"' is missing";o+=t.slice(e,i),e=i-1;break;case"/":if(t.charAt(e+1)==="*"){if(e+=2,i=t.indexOf("*/",e),i===-1)throw new SyntaxError("Missing */");e=i+1}else o+=g;break;case"{":n==="selector"&&(c.selectorText=o.trim(),o="",n="name");break;case":":n==="name"?(a=o.trim(),o="",n="value"):o+=g;break;case"!":n==="value"&&t.indexOf("!important",e)===e?(u="important",e+=9):o+=g;break;case";":n==="value"?(c.style.setProperty(a,o.trim(),u),u="",o="",n="name"):o+=g;break;case"}":if(n==="value")c.style.setProperty(a,o.trim(),u),u="",o="";else{if(n==="name")break;o+=g}n="selector";break;default:o+=g;break}return c},Ei.CSSStyleRule=s.CSSStyleRule,Ei}var hA;function _s(){if(hA)return bi;hA=1;var s={StyleSheet:cA().StyleSheet,CSSStyleRule:Us().CSSStyleRule};return s.CSSStyleSheet=function(){s.StyleSheet.call(this),this.cssRules=[]},s.CSSStyleSheet.prototype=new s.StyleSheet,s.CSSStyleSheet.prototype.constructor=s.CSSStyleSheet,s.CSSStyleSheet.prototype.insertRule=function(t,e){if(e<0||e>this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");var n=s.parse(t).cssRules[0];return n.parentStyleSheet=this,this.cssRules.splice(e,0,n),e},s.CSSStyleSheet.prototype.deleteRule=function(t){if(t<0||t>=this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");this.cssRules.splice(t,1)},s.CSSStyleSheet.prototype.toString=function(){for(var t="",e=this.cssRules,n=0;n<e.length;n++)t+=e[n].cssText+`
11
+ `;return t},bi.CSSStyleSheet=s.CSSStyleSheet,s.parse=Ui().parse,bi}var wi={},Ri={},gA;function Bi(){if(gA)return Ri;gA=1;var s={};return s.MediaList=function(){this.length=0},s.MediaList.prototype={constructor:s.MediaList,get mediaText(){return Array.prototype.join.call(this,", ")},set mediaText(t){for(var e=t.split(","),n=this.length=e.length,i=0;i<n;i++)this[i]=e[i].trim()},appendMedium:function(t){Array.prototype.indexOf.call(this,t)===-1&&(this[this.length]=t,this.length++)},deleteMedium:function(t){var e=Array.prototype.indexOf.call(this,t);e!==-1&&Array.prototype.splice.call(this,e,1)}},Ri.MediaList=s.MediaList,Ri}var dA;function fA(){if(dA)return wi;dA=1;var s={CSSRule:Ct().CSSRule,CSSStyleSheet:_s().CSSStyleSheet,MediaList:Bi().MediaList};return s.CSSImportRule=function(){s.CSSRule.call(this),this.href="",this.media=new s.MediaList,this.styleSheet=new s.CSSStyleSheet},s.CSSImportRule.prototype=new s.CSSRule,s.CSSImportRule.prototype.constructor=s.CSSImportRule,s.CSSImportRule.prototype.type=3,Object.defineProperty(s.CSSImportRule.prototype,"cssText",{get:function(){var t=this.media.mediaText;return"@import url("+this.href+")"+(t?" "+t:"")+";"},set:function(t){for(var e=0,n="",i="",r,o;o=t.charAt(e);e++)switch(o){case" ":case" ":case"\r":case`
12
+ `:case"\f":n==="after-import"?n="url":i+=o;break;case"@":!n&&t.indexOf("@import",e)===e&&(n="after-import",e+=6,i="");break;case"u":if(n==="url"&&t.indexOf("url(",e)===e){if(r=t.indexOf(")",e+1),r===-1)throw e+': ")" not found';e+=4;var A=t.slice(e,r);A[0]===A[A.length-1]&&(A[0]==='"'||A[0]==="'")&&(A=A.slice(1,-1)),this.href=A,e=r,n="media"}break;case'"':if(n==="url"){if(r=t.indexOf('"',e+1),!r)throw e+`: '"' not found`;this.href=t.slice(e+1,r),e=r,n="media"}break;case"'":if(n==="url"){if(r=t.indexOf("'",e+1),!r)throw e+`: "'" not found`;this.href=t.slice(e+1,r),e=r,n="media"}break;case";":n==="media"&&i&&(this.media.mediaText=i.trim());break;default:n==="media"&&(i+=o);break}}}),wi.CSSImportRule=s.CSSImportRule,wi}var Ti={},pA;function Te(){if(pA)return Ti;pA=1;var s={CSSRule:Ct().CSSRule};return s.CSSGroupingRule=function(){s.CSSRule.call(this),this.cssRules=[]},s.CSSGroupingRule.prototype=new s.CSSRule,s.CSSGroupingRule.prototype.constructor=s.CSSGroupingRule,s.CSSGroupingRule.prototype.insertRule=function(e,n){if(n<0||n>this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");var i=s.parse(e).cssRules[0];return i.parentRule=this,this.cssRules.splice(n,0,i),n},s.CSSGroupingRule.prototype.deleteRule=function(e){if(e<0||e>=this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");this.cssRules.splice(e,1)[0].parentRule=null},Ti.CSSGroupingRule=s.CSSGroupingRule,Ti}var Di={},xi={},mA;function ns(){if(mA)return xi;mA=1;var s={CSSRule:Ct().CSSRule,CSSGroupingRule:Te().CSSGroupingRule};return s.CSSConditionRule=function(){s.CSSGroupingRule.call(this),this.cssRules=[]},s.CSSConditionRule.prototype=new s.CSSGroupingRule,s.CSSConditionRule.prototype.constructor=s.CSSConditionRule,s.CSSConditionRule.prototype.conditionText="",s.CSSConditionRule.prototype.cssText="",xi.CSSConditionRule=s.CSSConditionRule,xi}var SA;function Ni(){if(SA)return Di;SA=1;var s={CSSRule:Ct().CSSRule,CSSGroupingRule:Te().CSSGroupingRule,CSSConditionRule:ns().CSSConditionRule,MediaList:Bi().MediaList};return s.CSSMediaRule=function(){s.CSSConditionRule.call(this),this.media=new s.MediaList},s.CSSMediaRule.prototype=new s.CSSConditionRule,s.CSSMediaRule.prototype.constructor=s.CSSMediaRule,s.CSSMediaRule.prototype.type=4,Object.defineProperties(s.CSSMediaRule.prototype,{conditionText:{get:function(){return this.media.mediaText},set:function(t){this.media.mediaText=t},configurable:!0,enumerable:!0},cssText:{get:function(){for(var t=[],e=0,n=this.cssRules.length;e<n;e++)t.push(this.cssRules[e].cssText);return"@media "+this.media.mediaText+" {"+t.join("")+"}"},configurable:!0,enumerable:!0}}),Di.CSSMediaRule=s.CSSMediaRule,Di}var vi={},CA;function Fi(){if(CA)return vi;CA=1;var s={CSSRule:Ct().CSSRule,CSSGroupingRule:Te().CSSGroupingRule,CSSConditionRule:ns().CSSConditionRule};return s.CSSSupportsRule=function(){s.CSSConditionRule.call(this)},s.CSSSupportsRule.prototype=new s.CSSConditionRule,s.CSSSupportsRule.prototype.constructor=s.CSSSupportsRule,s.CSSSupportsRule.prototype.type=12,Object.defineProperty(s.CSSSupportsRule.prototype,"cssText",{get:function(){for(var t=[],e=0,n=this.cssRules.length;e<n;e++)t.push(this.cssRules[e].cssText);return"@supports "+this.conditionText+" {"+t.join("")+"}"}}),vi.CSSSupportsRule=s.CSSSupportsRule,vi}var Mi={},bA;function yA(){if(bA)return Mi;bA=1;var s={CSSStyleDeclaration:De().CSSStyleDeclaration,CSSRule:Ct().CSSRule};return s.CSSFontFaceRule=function(){s.CSSRule.call(this),this.style=new s.CSSStyleDeclaration,this.style.parentRule=this},s.CSSFontFaceRule.prototype=new s.CSSRule,s.CSSFontFaceRule.prototype.constructor=s.CSSFontFaceRule,s.CSSFontFaceRule.prototype.type=5,Object.defineProperty(s.CSSFontFaceRule.prototype,"cssText",{get:function(){return"@font-face {"+this.style.cssText+"}"}}),Mi.CSSFontFaceRule=s.CSSFontFaceRule,Mi}var ki={},EA;function IA(){if(EA)return ki;EA=1;var s={CSSRule:Ct().CSSRule};return s.CSSHostRule=function(){s.CSSRule.call(this),this.cssRules=[]},s.CSSHostRule.prototype=new s.CSSRule,s.CSSHostRule.prototype.constructor=s.CSSHostRule,s.CSSHostRule.prototype.type=1001,Object.defineProperty(s.CSSHostRule.prototype,"cssText",{get:function(){for(var t=[],e=0,n=this.cssRules.length;e<n;e++)t.push(this.cssRules[e].cssText);return"@host {"+t.join("")+"}"}}),ki.CSSHostRule=s.CSSHostRule,ki}var Oi={},wA;function Qi(){if(wA)return Oi;wA=1;var s={CSSRule:Ct().CSSRule,CSSStyleDeclaration:De().CSSStyleDeclaration};return s.CSSKeyframeRule=function(){s.CSSRule.call(this),this.keyText="",this.style=new s.CSSStyleDeclaration,this.style.parentRule=this},s.CSSKeyframeRule.prototype=new s.CSSRule,s.CSSKeyframeRule.prototype.constructor=s.CSSKeyframeRule,s.CSSKeyframeRule.prototype.type=8,Object.defineProperty(s.CSSKeyframeRule.prototype,"cssText",{get:function(){return this.keyText+" {"+this.style.cssText+"} "}}),Oi.CSSKeyframeRule=s.CSSKeyframeRule,Oi}var Gi={},RA;function Li(){if(RA)return Gi;RA=1;var s={CSSRule:Ct().CSSRule};return s.CSSKeyframesRule=function(){s.CSSRule.call(this),this.name="",this.cssRules=[]},s.CSSKeyframesRule.prototype=new s.CSSRule,s.CSSKeyframesRule.prototype.constructor=s.CSSKeyframesRule,s.CSSKeyframesRule.prototype.type=7,Object.defineProperty(s.CSSKeyframesRule.prototype,"cssText",{get:function(){for(var t=[],e=0,n=this.cssRules.length;e<n;e++)t.push(" "+this.cssRules[e].cssText);return"@"+(this._vendorPrefix||"")+"keyframes "+this.name+` {
13
+ `+t.join(`
14
+ `)+`
15
+ }`}}),Gi.CSSKeyframesRule=s.CSSKeyframesRule,Gi}var Ki={},Hi={},BA;function TA(){if(BA)return Hi;BA=1;var s={};return s.CSSValue=function(){},s.CSSValue.prototype={constructor:s.CSSValue,set cssText(t){var e=this._getConstructorName();throw new Error('DOMException: property "cssText" of "'+e+'" is readonly and can not be replaced with "'+t+'"!')},get cssText(){var t=this._getConstructorName();throw new Error('getter "cssText" of "'+t+'" is not implemented!')},_getConstructorName:function(){var t=this.constructor.toString(),e=t.match(/function\s([^\(]+)/),n=e[1];return n}},Hi.CSSValue=s.CSSValue,Hi}var DA;function xA(){if(DA)return Ki;DA=1;var s={CSSValue:TA().CSSValue};return s.CSSValueExpression=function(e,n){this._token=e,this._idx=n},s.CSSValueExpression.prototype=new s.CSSValue,s.CSSValueExpression.prototype.constructor=s.CSSValueExpression,s.CSSValueExpression.prototype.parse=function(){for(var t=this._token,e=this._idx,n="",i="",r="",o,A=[];;++e){if(n=t.charAt(e),n===""){r="css expression error: unfinished expression!";break}switch(n){case"(":A.push(n),i+=n;break;case")":A.pop(n),i+=n;break;case"/":(o=this._parseJSComment(t,e))?o.error?r="css expression error: unfinished comment in expression!":e=o.idx:(o=this._parseJSRexExp(t,e))?(e=o.idx,i+=o.text):i+=n;break;case"'":case'"':o=this._parseJSString(t,e,n),o?(e=o.idx,i+=o.text):i+=n;break;default:i+=n;break}if(r||A.length===0)break}var c;return r?c={error:r}:c={idx:e,expression:i},c},s.CSSValueExpression.prototype._parseJSComment=function(t,e){var n=t.charAt(e+1),i;if(n==="/"||n==="*"){var r=e,o,A;if(n==="/"?A=`
16
+ `:n==="*"&&(A="*/"),o=t.indexOf(A,r+1+1),o!==-1)return o=o+A.length-1,i=t.substring(e,o+1),{idx:o,text:i};var c="css expression error: unfinished comment in expression!";return{error:c}}else return!1},s.CSSValueExpression.prototype._parseJSString=function(t,e,n){var i=this._findMatchedIdx(t,e,n),r;return i===-1?!1:(r=t.substring(e,i+n.length),{idx:i,text:r})},s.CSSValueExpression.prototype._parseJSRexExp=function(t,e){var n=t.substring(0,e).replace(/\s+$/,""),i=[/^$/,/\($/,/\[$/,/\!$/,/\+$/,/\-$/,/\*$/,/\/\s+/,/\%$/,/\=$/,/\>$/,/<$/,/\&$/,/\|$/,/\^$/,/\~$/,/\?$/,/\,$/,/delete$/,/in$/,/instanceof$/,/new$/,/typeof$/,/void$/],r=i.some(function(A){return A.test(n)});if(r){var o="/";return this._parseJSString(t,e,o)}else return!1},s.CSSValueExpression.prototype._findMatchedIdx=function(t,e,n){for(var i=e,r,o=-1;;)if(r=t.indexOf(n,i+1),r===-1){r=o;break}else{var A=t.substring(e+1,r),c=A.match(/\\+$/);if(!c||c[0]%2===0)break;i=r}var a=t.indexOf(`
17
+ `,e+1);return a<r&&(r=o),r},Ki.CSSValueExpression=s.CSSValueExpression,Ki}var Wi={},Yi={},NA;function vA(){if(NA)return Yi;NA=1;var s={};return s.MatcherList=function(){this.length=0},s.MatcherList.prototype={constructor:s.MatcherList,get matcherText(){return Array.prototype.join.call(this,", ")},set matcherText(t){for(var e=t.split(","),n=this.length=e.length,i=0;i<n;i++)this[i]=e[i].trim()},appendMatcher:function(t){Array.prototype.indexOf.call(this,t)===-1&&(this[this.length]=t,this.length++)},deleteMatcher:function(t){var e=Array.prototype.indexOf.call(this,t);e!==-1&&Array.prototype.splice.call(this,e,1)}},Yi.MatcherList=s.MatcherList,Yi}var FA;function MA(){if(FA)return Wi;FA=1;var s={CSSRule:Ct().CSSRule,MatcherList:vA().MatcherList};return s.CSSDocumentRule=function(){s.CSSRule.call(this),this.matcher=new s.MatcherList,this.cssRules=[]},s.CSSDocumentRule.prototype=new s.CSSRule,s.CSSDocumentRule.prototype.constructor=s.CSSDocumentRule,s.CSSDocumentRule.prototype.type=10,Object.defineProperty(s.CSSDocumentRule.prototype,"cssText",{get:function(){for(var t=[],e=0,n=this.cssRules.length;e<n;e++)t.push(this.cssRules[e].cssText);return"@-moz-document "+this.matcher.matcherText+" {"+t.join("")+"}"}}),Wi.CSSDocumentRule=s.CSSDocumentRule,Wi}var kA;function Ui(){if(kA)return Ci;kA=1;var s={};return s.parse=function(e){for(var n=0,i="before-selector",r,o="",A=0,c={selector:!0,value:!0,"value-parenthesis":!0,atRule:!0,"importRule-begin":!0,importRule:!0,atBlock:!0,conditionBlock:!0,"documentRule-begin":!0},a=new s.CSSStyleSheet,u=a,g,C=[],b=!1,B,it,Qt="",Y,Nt,It,O,rt,Z,zt,Ne,tn=/@(-(?:\w+-)+)?keyframes/g,de=function(ls){var en=e.substring(0,n).split(`
18
+ `),sn=en.length,nn=en.pop().length+1,fe=new Error(ls+" (line "+sn+", char "+nn+")");throw fe.line=sn,fe.char=nn,fe.styleSheet=a,fe},v;v=e.charAt(n);n++)switch(v){case" ":case" ":case"\r":case`
19
+ `:case"\f":c[i]&&(o+=v);break;case'"':r=n+1;do r=e.indexOf('"',r)+1,r||de('Unmatched "');while(e[r-2]==="\\");switch(o+=e.slice(n,r),n=r-1,i){case"before-value":i="value";break;case"importRule-begin":i="importRule";break}break;case"'":r=n+1;do r=e.indexOf("'",r)+1,r||de("Unmatched '");while(e[r-2]==="\\");switch(o+=e.slice(n,r),n=r-1,i){case"before-value":i="value";break;case"importRule-begin":i="importRule";break}break;case"/":e.charAt(n+1)==="*"?(n+=2,r=e.indexOf("*/",n),r===-1?de("Missing */"):n=r+1):o+=v,i==="importRule-begin"&&(o+=" ",i="importRule");break;case"@":if(e.indexOf("@-moz-document",n)===n){i="documentRule-begin",zt=new s.CSSDocumentRule,zt.__starts=n,n+=13,o="";break}else if(e.indexOf("@media",n)===n){i="atBlock",Nt=new s.CSSMediaRule,Nt.__starts=n,n+=5,o="";break}else if(e.indexOf("@supports",n)===n){i="conditionBlock",It=new s.CSSSupportsRule,It.__starts=n,n+=8,o="";break}else if(e.indexOf("@host",n)===n){i="hostRule-begin",n+=4,Ne=new s.CSSHostRule,Ne.__starts=n,o="";break}else if(e.indexOf("@import",n)===n){i="importRule-begin",n+=6,o+="@import";break}else if(e.indexOf("@font-face",n)===n){i="fontFaceRule-begin",n+=9,rt=new s.CSSFontFaceRule,rt.__starts=n,o="";break}else{tn.lastIndex=n;var $t=tn.exec(e);if($t&&$t.index===n){i="keyframesRule-begin",Z=new s.CSSKeyframesRule,Z.__starts=n,Z._vendorPrefix=$t[1],n+=$t[0].length-1,o="";break}else i==="selector"&&(i="atRule")}o+=v;break;case"{":i==="selector"||i==="atRule"?(Y.selectorText=o.trim(),Y.style.__starts=n,o="",i="before-name"):i==="atBlock"?(Nt.media.mediaText=o.trim(),g&&C.push(g),u=g=Nt,Nt.parentStyleSheet=a,o="",i="before-selector"):i==="conditionBlock"?(It.conditionText=o.trim(),g&&C.push(g),u=g=It,It.parentStyleSheet=a,o="",i="before-selector"):i==="hostRule-begin"?(g&&C.push(g),u=g=Ne,Ne.parentStyleSheet=a,o="",i="before-selector"):i==="fontFaceRule-begin"?(g&&(rt.parentRule=g),rt.parentStyleSheet=a,Y=rt,o="",i="before-name"):i==="keyframesRule-begin"?(Z.name=o.trim(),g&&(C.push(g),Z.parentRule=g),Z.parentStyleSheet=a,u=g=Z,o="",i="keyframeRule-begin"):i==="keyframeRule-begin"?(Y=new s.CSSKeyframeRule,Y.keyText=o.trim(),Y.__starts=n,o="",i="before-name"):i==="documentRule-begin"&&(zt.matcher.matcherText=o.trim(),g&&(C.push(g),zt.parentRule=g),u=g=zt,zt.parentStyleSheet=a,o="",i="before-selector");break;case":":i==="name"?(it=o.trim(),o="",i="before-value"):o+=v;break;case"(":if(i==="value")if(o.trim()==="expression"){var te=new s.CSSValueExpression(e,n).parse();te.error?de(te.error):(o+=te.expression,n=te.idx)}else i="value-parenthesis",A=1,o+=v;else i==="value-parenthesis"&&A++,o+=v;break;case")":i==="value-parenthesis"&&(A--,A===0&&(i="value")),o+=v;break;case"!":i==="value"&&e.indexOf("!important",n)===n?(Qt="important",n+=9):o+=v;break;case";":switch(i){case"value":Y.style.setProperty(it,o.trim(),Qt),Qt="",o="",i="before-name";break;case"atRule":o="",i="before-selector";break;case"importRule":O=new s.CSSImportRule,O.parentStyleSheet=O.styleSheet.parentStyleSheet=a,O.cssText=o+v,a.cssRules.push(O),o="",i="before-selector";break;default:o+=v;break}break;case"}":switch(i){case"value":Y.style.setProperty(it,o.trim(),Qt),Qt="";case"before-name":case"name":Y.__ends=n+1,g&&(Y.parentRule=g),Y.parentStyleSheet=a,u.cssRules.push(Y),o="",u.constructor===s.CSSKeyframesRule?i="keyframeRule-begin":i="before-selector";break;case"keyframeRule-begin":case"before-selector":case"selector":for(g||de("Unexpected }"),b=C.length>0;C.length>0;){if(g=C.pop(),g.constructor.name==="CSSMediaRule"||g.constructor.name==="CSSSupportsRule"){B=u,u=g,u.cssRules.push(B);break}C.length===0&&(b=!1)}b||(u.__ends=n+1,a.cssRules.push(u),u=a,g=null),o="",i="before-selector";break}break;default:switch(i){case"before-selector":i="selector",Y=new s.CSSStyleRule,Y.__starts=n;break;case"before-name":i="name";break;case"before-value":i="value";break;case"importRule-begin":i="importRule";break}o+=v;break}return a},Ci.parse=s.parse,s.CSSStyleSheet=_s().CSSStyleSheet,s.CSSStyleRule=Us().CSSStyleRule,s.CSSImportRule=fA().CSSImportRule,s.CSSGroupingRule=Te().CSSGroupingRule,s.CSSMediaRule=Ni().CSSMediaRule,s.CSSConditionRule=ns().CSSConditionRule,s.CSSSupportsRule=Fi().CSSSupportsRule,s.CSSFontFaceRule=yA().CSSFontFaceRule,s.CSSHostRule=IA().CSSHostRule,s.CSSStyleDeclaration=De().CSSStyleDeclaration,s.CSSKeyframeRule=Qi().CSSKeyframeRule,s.CSSKeyframesRule=Li().CSSKeyframesRule,s.CSSValueExpression=xA().CSSValueExpression,s.CSSDocumentRule=MA().CSSDocumentRule,Ci}var OA;function De(){if(OA)return Si;OA=1;var s={};return s.CSSStyleDeclaration=function(){this.length=0,this.parentRule=null,this._importants={}},s.CSSStyleDeclaration.prototype={constructor:s.CSSStyleDeclaration,getPropertyValue:function(t){return this[t]||""},setProperty:function(t,e,n){if(this[t]){var i=Array.prototype.indexOf.call(this,t);i<0&&(this[this.length]=t,this.length++)}else this[this.length]=t,this.length++;this[t]=e+"",this._importants[t]=n},removeProperty:function(t){if(!(t in this))return"";var e=Array.prototype.indexOf.call(this,t);if(e<0)return"";var n=this[t];return this[t]="",Array.prototype.splice.call(this,e,1),n},getPropertyCSSValue:function(){},getPropertyPriority:function(t){return this._importants[t]||""},getPropertyShorthand:function(){},isPropertyImplicit:function(){},get cssText(){for(var t=[],e=0,n=this.length;e<n;++e){var i=this[e],r=this.getPropertyValue(i),o=this.getPropertyPriority(i);o&&(o=" !"+o),t[e]=i+": "+r+o+";"}return t.join(" ")},set cssText(t){var e,n;for(e=this.length;e--;)n=this[e],this[n]="";Array.prototype.splice.call(this,0,this.length),this._importants={};var i=s.parse("#bogus{"+t+"}").cssRules[0].style,r=i.length;for(e=0;e<r;++e)n=i[e],this.setProperty(i[e],i.getPropertyValue(n),i.getPropertyPriority(n))}},Si.CSSStyleDeclaration=s.CSSStyleDeclaration,s.parse=Ui().parse,Si}var _i={},QA;function yh(){if(QA)return _i;QA=1;var s={CSSStyleSheet:_s().CSSStyleSheet,CSSRule:Ct().CSSRule,CSSStyleRule:Us().CSSStyleRule,CSSGroupingRule:Te().CSSGroupingRule,CSSConditionRule:ns().CSSConditionRule,CSSMediaRule:Ni().CSSMediaRule,CSSSupportsRule:Fi().CSSSupportsRule,CSSStyleDeclaration:De().CSSStyleDeclaration,CSSKeyframeRule:Qi().CSSKeyframeRule,CSSKeyframesRule:Li().CSSKeyframesRule};return s.clone=function t(e){var n=new s.CSSStyleSheet,i=e.cssRules;if(!i)return n;for(var r=0,o=i.length;r<o;r++){var A=i[r],c=n.cssRules[r]=new A.constructor,a=A.style;if(a){for(var u=c.style=new s.CSSStyleDeclaration,g=0,C=a.length;g<C;g++){var b=u[g]=a[g];u[b]=a[b],u._importants[b]=a.getPropertyPriority(b)}u.length=a.length}A.hasOwnProperty("keyText")&&(c.keyText=A.keyText),A.hasOwnProperty("selectorText")&&(c.selectorText=A.selectorText),A.hasOwnProperty("mediaText")&&(c.mediaText=A.mediaText),A.hasOwnProperty("conditionText")&&(c.conditionText=A.conditionText),A.hasOwnProperty("cssRules")&&(c.cssRules=t(A).cssRules)}return n},_i.clone=s.clone,_i}var GA;function Eh(){return GA||(GA=1,L.CSSStyleDeclaration=De().CSSStyleDeclaration,L.CSSRule=Ct().CSSRule,L.CSSGroupingRule=Te().CSSGroupingRule,L.CSSConditionRule=ns().CSSConditionRule,L.CSSStyleRule=Us().CSSStyleRule,L.MediaList=Bi().MediaList,L.CSSMediaRule=Ni().CSSMediaRule,L.CSSSupportsRule=Fi().CSSSupportsRule,L.CSSImportRule=fA().CSSImportRule,L.CSSFontFaceRule=yA().CSSFontFaceRule,L.CSSHostRule=IA().CSSHostRule,L.StyleSheet=cA().StyleSheet,L.CSSStyleSheet=_s().CSSStyleSheet,L.CSSKeyframesRule=Li().CSSKeyframesRule,L.CSSKeyframeRule=Qi().CSSKeyframeRule,L.MatcherList=vA().MatcherList,L.CSSDocumentRule=MA().CSSDocumentRule,L.CSSValue=TA().CSSValue,L.CSSValueExpression=xA().CSSValueExpression,L.parse=Ui().parse,L.clone=yh().clone),L}var Ih=Eh();const LA="style";class KA extends Ys{constructor(t,e=LA){super(t,e),this[be]=null}get sheet(){const t=this[be];return t!==null?t:this[be]=Ih.parse(this.textContent)}get innerHTML(){return super.innerHTML||""}set innerHTML(t){super.textContent=t,this[be]=null}get innerText(){return super.innerText||""}set innerText(t){super.textContent=t,this[be]=null}get textContent(){return super.textContent||""}set textContent(t){super.textContent=t,this[be]=null}}J(LA,KA);class HA extends S{constructor(t,e="time"){super(t,e)}get dateTime(){return p.get(this,"datetime")}set dateTime(t){p.set(this,"datetime",t)}}J("time",HA);let wh=class extends S{constructor(t,e="fieldset"){super(t,e)}};class Rh extends S{constructor(t,e="embed"){super(t,e)}}class Bh extends S{constructor(t,e="hr"){super(t,e)}}class Th extends S{constructor(t,e="progress"){super(t,e)}}class Dh extends S{constructor(t,e="p"){super(t,e)}}class xh extends S{constructor(t,e="table"){super(t,e)}}class Nh extends S{constructor(t,e="frameset"){super(t,e)}}class vh extends S{constructor(t,e="li"){super(t,e)}}class Fh extends S{constructor(t,e="base"){super(t,e)}}class Mh extends S{constructor(t,e="datalist"){super(t,e)}}const WA="input";let YA=class extends S{constructor(t,e=WA){super(t,e)}get autofocus(){return N.get(this,"autofocus")||-1}set autofocus(t){N.set(this,"autofocus",t)}get disabled(){return N.get(this,"disabled")}set disabled(t){N.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(t){this.setAttribute("placeholder",t)}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}get value(){return p.get(this,"value")}set value(t){p.set(this,"value",t)}};J(WA,YA);class kh extends S{constructor(t,e="param"){super(t,e)}}class Oh extends S{constructor(t,e="media"){super(t,e)}}class Qh extends S{constructor(t,e="audio"){super(t,e)}}const UA="h1";class _A extends S{constructor(t,e=UA){super(t,e)}}J([UA,"h2","h3","h4","h5","h6"],_A);class Gh extends S{constructor(t,e="dir"){super(t,e)}}class Lh extends S{constructor(t,e="quote"){super(t,e)}}var Js={exports:{}};const Kh=pu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ji,JA;function Hh(){if(JA)return Ji;JA=1;class s{constructor(e,n){this.width=e,this.height=n}getContext(){return null}toDataURL(){return""}}return Ji={createCanvas:(t,e)=>new s(t,e)},Ji}var PA;function Wh(){if(PA)return Js.exports;PA=1;try{Js.exports=Kh}catch{Js.exports=Hh()}return Js.exports}var Yh=Wh();const Uh=bo(Yh),{createCanvas:_h}=Uh,ZA="canvas";class VA extends S{constructor(t,e=ZA){super(t,e),this[Rt]=_h(300,150)}get width(){return this[Rt].width}set width(t){jt.set(this,"width",t),this[Rt].width=t}get height(){return this[Rt].height}set height(t){jt.set(this,"height",t),this[Rt].height=t}getContext(t){return this[Rt].getContext(t)}toDataURL(...t){return this[Rt].toDataURL(...t)}}J(ZA,VA);class Jh extends S{constructor(t,e="legend"){super(t,e)}}const XA="option";class jA extends S{constructor(t,e=XA){super(t,e)}get value(){return p.get(this,"value")}set value(t){p.set(this,"value",t)}get selected(){return N.get(this,"selected")}set selected(t){const e=this.parentElement?.querySelector("option[selected]");e&&e!==this&&(e.selected=!1),N.set(this,"selected",t)}}J(XA,jA);class Ph extends S{constructor(t,e="span"){super(t,e)}}class Zh extends S{constructor(t,e="meter"){super(t,e)}}class Vh extends S{constructor(t,e="video"){super(t,e)}}class Xh extends S{constructor(t,e="td"){super(t,e)}}const qA="title";class zA extends Ys{constructor(t,e=qA){super(t,e)}}J(qA,zA);class jh extends S{constructor(t,e="output"){super(t,e)}}class qh extends S{constructor(t,e="tr"){super(t,e)}}class zh extends S{constructor(t,e="data"){super(t,e)}}class $h extends S{constructor(t,e="menu"){super(t,e)}}const $A="select";let ta=class extends S{constructor(t,e=$A){super(t,e)}get options(){let t=new kt,{firstElementChild:e}=this;for(;e;)e.tagName==="OPTGROUP"?t.push(...e.children):t.push(e),e=e.nextElementSibling;return t}get disabled(){return N.get(this,"disabled")}set disabled(t){N.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get value(){return this.querySelector("option[selected]")?.value}};J($A,ta);class tg extends S{constructor(t,e="br"){super(t,e)}}const ea="button";let sa=class extends S{constructor(t,e=ea){super(t,e)}get disabled(){return N.get(this,"disabled")}set disabled(t){N.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}};J(ea,sa);class eg extends S{constructor(t,e="map"){super(t,e)}}class sg extends S{constructor(t,e="optgroup"){super(t,e)}}class ng extends S{constructor(t,e="dl"){super(t,e)}}const na="textarea";let ia=class extends Ys{constructor(t,e=na){super(t,e)}get disabled(){return N.get(this,"disabled")}set disabled(t){N.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(t){this.setAttribute("placeholder",t)}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}get value(){return this.textContent}set value(t){this.textContent=t}};J(na,ia);class ig extends S{constructor(t,e="font"){super(t,e)}}class rg extends S{constructor(t,e="div"){super(t,e)}}const ra="link";class oa extends S{constructor(t,e=ra){super(t,e)}get disabled(){return N.get(this,"disabled")}set disabled(t){N.set(this,"disabled",t)}get href(){return p.get(this,"href").trim()}set href(t){p.set(this,"href",t)}get hreflang(){return p.get(this,"hreflang")}set hreflang(t){p.set(this,"hreflang",t)}get media(){return p.get(this,"media")}set media(t){p.set(this,"media",t)}get rel(){return p.get(this,"rel")}set rel(t){p.set(this,"rel",t)}get type(){return p.get(this,"type")}set type(t){p.set(this,"type",t)}}J(ra,oa);const Aa="slot";class aa extends S{constructor(t,e=Aa){super(t,e)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}assign(){}assignedNodes(t){const e=!!this.name,n=this.getRootNode().host?.childNodes??[];let i;if(e?i=[...n].filter(r=>r.slot===this.name):i=[...n].filter(r=>!r.slot),t?.flatten){const r=[];for(let o of i)o.localName==="slot"?r.push(...o.assignedNodes({flatten:!0})):r.push(o);i=r}return i.length?i:[...this.childNodes]}assignedElements(t){const e=this.assignedNodes(t).filter(n=>n.nodeType===1);return e.length?e:[...this.children]}}J(Aa,aa);class og extends S{constructor(t,e="form"){super(t,e)}}const ca="img";class Pi extends S{constructor(t,e=ca){super(t,e)}get alt(){return p.get(this,"alt")}set alt(t){p.set(this,"alt",t)}get sizes(){return p.get(this,"sizes")}set sizes(t){p.set(this,"sizes",t)}get src(){return p.get(this,"src")}set src(t){p.set(this,"src",t)}get srcset(){return p.get(this,"srcset")}set srcset(t){p.set(this,"srcset",t)}get title(){return p.get(this,"title")}set title(t){p.set(this,"title",t)}get width(){return jt.get(this,"width")}set width(t){jt.set(this,"width",t)}get height(){return jt.get(this,"height")}set height(t){jt.set(this,"height",t)}}J(ca,Pi);class Ag extends S{constructor(t,e="pre"){super(t,e)}}class ag extends S{constructor(t,e="ul"){super(t,e)}}const la="meta";class ua extends S{constructor(t,e=la){super(t,e)}get name(){return p.get(this,"name")}set name(t){p.set(this,"name",t)}get httpEquiv(){return p.get(this,"http-equiv")}set httpEquiv(t){p.set(this,"http-equiv",t)}get content(){return p.get(this,"content")}set content(t){p.set(this,"content",t)}get charset(){return p.get(this,"charset")}set charset(t){p.set(this,"charset",t)}get media(){return p.get(this,"media")}set media(t){p.set(this,"media",t)}}J(la,ua);class cg extends S{constructor(t,e="picture"){super(t,e)}}class lg extends S{constructor(t,e="area"){super(t,e)}}class ug extends S{constructor(t,e="ol"){super(t,e)}}class hg extends S{constructor(t,e="caption"){super(t,e)}}const ha="a";class ga extends S{constructor(t,e=ha){super(t,e)}get href(){return encodeURI(decodeURI(p.get(this,"href"))).trim()}set href(t){p.set(this,"href",decodeURI(t))}get download(){return encodeURI(decodeURI(p.get(this,"download")))}set download(t){p.set(this,"download",decodeURI(t))}get target(){return p.get(this,"target")}set target(t){p.set(this,"target",t)}get type(){return p.get(this,"type")}set type(t){p.set(this,"type",t)}get rel(){return p.get(this,"rel")}set rel(t){p.set(this,"rel",t)}}J(ha,ga);class gg extends S{constructor(t,e="label"){super(t,e)}}class dg extends S{constructor(t,e="unknown"){super(t,e)}}class fg extends S{constructor(t,e="mod"){super(t,e)}}class pg extends S{constructor(t,e="details"){super(t,e)}}const da="source";class fa extends S{constructor(t,e=da){super(t,e)}get src(){return p.get(this,"src")}set src(t){p.set(this,"src",t)}get srcset(){return p.get(this,"srcset")}set srcset(t){p.set(this,"srcset",t)}get sizes(){return p.get(this,"sizes")}set sizes(t){p.set(this,"sizes",t)}get type(){return p.get(this,"type")}set type(t){p.set(this,"type",t)}}J(da,fa);class mg extends S{constructor(t,e="track"){super(t,e)}}class Sg extends S{constructor(t,e="marquee"){super(t,e)}}const Cg={HTMLElement:S,HTMLTemplateElement:nA,HTMLHtmlElement:fh,HTMLScriptElement:rA,HTMLFrameElement:mh,HTMLIFrameElement:AA,HTMLObjectElement:Sh,HTMLHeadElement:Ch,HTMLBodyElement:bh,HTMLStyleElement:KA,HTMLTimeElement:HA,HTMLFieldSetElement:wh,HTMLEmbedElement:Rh,HTMLHRElement:Bh,HTMLProgressElement:Th,HTMLParagraphElement:Dh,HTMLTableElement:xh,HTMLFrameSetElement:Nh,HTMLLIElement:vh,HTMLBaseElement:Fh,HTMLDataListElement:Mh,HTMLInputElement:YA,HTMLParamElement:kh,HTMLMediaElement:Oh,HTMLAudioElement:Qh,HTMLHeadingElement:_A,HTMLDirectoryElement:Gh,HTMLQuoteElement:Lh,HTMLCanvasElement:VA,HTMLLegendElement:Jh,HTMLOptionElement:jA,HTMLSpanElement:Ph,HTMLMeterElement:Zh,HTMLVideoElement:Vh,HTMLTableCellElement:Xh,HTMLTitleElement:zA,HTMLOutputElement:jh,HTMLTableRowElement:qh,HTMLDataElement:zh,HTMLMenuElement:$h,HTMLSelectElement:ta,HTMLBRElement:tg,HTMLButtonElement:sa,HTMLMapElement:eg,HTMLOptGroupElement:sg,HTMLDListElement:ng,HTMLTextAreaElement:ia,HTMLFontElement:ig,HTMLDivElement:rg,HTMLLinkElement:oa,HTMLSlotElement:aa,HTMLFormElement:og,HTMLImageElement:Pi,HTMLPreElement:Ag,HTMLUListElement:ag,HTMLMetaElement:ua,HTMLPictureElement:cg,HTMLAreaElement:lg,HTMLOListElement:ug,HTMLTableCaptionElement:hg,HTMLAnchorElement:ga,HTMLLabelElement:gg,HTMLUnknownElement:dg,HTMLModElement:fg,HTMLDetailsElement:pg,HTMLSourceElement:fa,HTMLTrackElement:mg,HTMLMarqueeElement:Sg},Ps={test:()=>!0},bg={"text/html":{docType:"<!DOCTYPE html>",ignoreCase:!0,voidElements:/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i},"image/svg+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ps},"text/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ps},"application/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ps},"application/xhtml+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ps}};let pa=class extends ue{constructor(t,e={}){super(t,e),this.detail=e.detail}};class yg extends ue{constructor(t,e={}){super(t,e),this.inputType=e.inputType,this.data=e.data,this.dataTransfer=e.dataTransfer,this.isComposing=e.isComposing||!1,this.ranges=e.ranges}}const Eg=s=>class extends Pi{constructor(e,n){switch(super(s),arguments.length){case 1:this.height=e,this.width=e;break;case 2:this.height=n,this.width=e;break}}},ma=({[gt]:s,[I]:t},e=null)=>{zr(s[X],t[m]);do{const n=ft(s),i=n===t?n:n[m];e?e.insertBefore(s,e[I]):s.remove(),s=i}while(s!==t)};class Zi{constructor(){this[gt]=null,this[I]=null,this.commonAncestorContainer=null}insertNode(t){this[I].parentNode.insertBefore(t,this[gt])}selectNode(t){this[gt]=t,this[I]=ft(t)}selectNodeContents(t){this.selectNode(t),this.commonAncestorContainer=t}surroundContents(t){t.replaceChildren(this.extractContents())}setStartBefore(t){this[gt]=t}setStartAfter(t){this[gt]=t.nextSibling}setEndBefore(t){this[I]=ft(t.previousSibling)}setEndAfter(t){this[I]=ft(t)}cloneContents(){let{[gt]:t,[I]:e}=this;const n=t.ownerDocument.createDocumentFragment();for(;t!==e;)n.insertBefore(t.cloneNode(!0),n[I]),t=ft(t),t!==e&&(t=t[m]);return n}deleteContents(){ma(this)}extractContents(){const t=this[gt].ownerDocument.createDocumentFragment();return ma(this,t),t}createContextualFragment(t){const{commonAncestorContainer:e}=this,n="ownerSVGElement"in e,i=n?e.ownerDocument:e;let r=$r(i,t);if(n){const o=[...r.childNodes];r=i.createDocumentFragment(),Object.setPrototypeOf(r,es.prototype),r.ownerSVGElement=i;for(const A of o)Object.setPrototypeOf(A,es.prototype),A.ownerSVGElement=i,r.appendChild(A)}else this.selectNode(r);return r}cloneRange(){const t=new Zi;return t[gt]=this[gt],t[I]=this[I],t}}const Ig=({nodeType:s},t)=>{switch(s){case x:return t&Ul;case nt:return t&_l;case Ht:return t&Pl;case Mt:return t&Jl}return 0};class wg{constructor(t,e=Yl){this.root=t,this.currentNode=t,this.whatToShow=e;let{[m]:n,[I]:i}=t;if(t.nodeType===ie){const{documentElement:o}=t;n=o,i=o[I]}const r=[];for(;n&&n!==i;)Ig(n,e)&&r.push(n),n=n[m];this[st]={i:0,nodes:r}}nextNode(){const t=this[st];return this.currentNode=t.i<t.nodes.length?t.nodes[t.i++]:null,this.currentNode}}const Sa=(s,t,e)=>{let{[m]:n,[I]:i}=t;return s.call({ownerDocument:t,[m]:n,[I]:i},e)},Ca=ql({},dh,Cg,{CustomEvent:pa,Event:ue,EventTarget:Qn,InputEvent:yg,NamedNodeMap:tA,NodeList:kt}),Zs=new WeakMap;let he=class extends ei{constructor(t){super(null,"#document",ie),this[wt]={active:!1,registry:null},this[Jt]={active:!1,class:null},this[Ce]=bg[t],this[ne]=null,this[En]=null,this[ys]=null,this[Rt]=null,this[_e]=null}get defaultView(){return Zs.has(this)||Zs.set(this,new Proxy(globalThis,{set:(t,e,n)=>{switch(e){case"addEventListener":case"removeEventListener":case"dispatchEvent":this[Ue][e]=n;break;default:t[e]=n;break}return!0},get:(t,e)=>{switch(e){case"addEventListener":case"removeEventListener":case"dispatchEvent":if(!this[Ue]){const n=this[Ue]=new Qn;n.dispatchEvent=n.dispatchEvent.bind(n),n.addEventListener=n.addEventListener.bind(n),n.removeEventListener=n.removeEventListener.bind(n)}return this[Ue][e];case"document":return this;case"navigator":return{userAgent:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"};case"window":return Zs.get(this);case"customElements":return this[wt].registry||(this[wt]=new nu(this)),this[wt];case"performance":return t.performance;case"DOMParser":return this[En];case"Image":return this[Rt]||(this[Rt]=Eg(this)),this[Rt];case"MutationObserver":return this[Jt].class||(this[Jt]=new Au(this)),this[Jt].class}return this[ys]&&this[ys][e]||Ca[e]||t[e]}})),Zs.get(this)}get doctype(){const t=this[ne];if(t)return t;const{firstChild:e}=this;return e&&e.nodeType===we?this[ne]=e:null}set doctype(t){if(/^([a-z:]+)(\s+system|\s+public(\s+"([^"]+)")?)?(\s+"([^"]+)")?/i.test(t)){const{$1:e,$4:n,$6:i}=RegExp;this[ne]=new Qs(this,e,n,i),Ds(this,this[ne],this[m])}}get documentElement(){return this.firstElementChild}get isConnected(){return!0}_getParent(){return this[Ue]}createAttribute(t){return new Ve(this,t)}createCDATASection(t){return new Wn(this,t)}createComment(t){return new Yn(this,t)}createDocumentFragment(){return new si(this)}createDocumentType(t,e,n){return new Qs(this,t,e,n)}createElement(t){return new ts(this,t)}createRange(){const t=new Zi;return t.commonAncestorContainer=this,t}createTextNode(t){return new ze(this,t)}createTreeWalker(t,e=-1){return new wg(t,e)}createNodeIterator(t,e=-1){return this.createTreeWalker(t,e)}createEvent(t){const e=zl(t==="Event"?new ue(""):new pa(""));return e.initEvent=e.initCustomEvent=(n,i=!1,r=!1,o)=>{e.bubbles=!!i,$l(e,{type:{value:n},canBubble:{value:i},cancelable:{value:r},detail:{value:o}})},e}cloneNode(t=!1){const{constructor:e,[wt]:n,[ne]:i}=this,r=new e;if(r[wt]=n,t){const o=r[I],{childNodes:A}=this;for(let{length:c}=A,a=0;a<c;a++)r.insertBefore(A[a].cloneNode(!0),o);i&&(r[ne]=A[0])}return r}importNode(t){const e=1<arguments.length&&!!arguments[1],n=t.cloneNode(e),{[wt]:i}=this,{active:r}=i,o=A=>{const{ownerDocument:c,nodeType:a}=A;A.ownerDocument=this,r&&c!==this&&a===x&&i.upgrade(A)};if(o(n),e)switch(n.nodeType){case x:case Wt:{let{[m]:A,[I]:c}=n;for(;A!==c;)A.nodeType===x&&o(A),A=A[m];break}}return n}toString(){return this.childNodes.join("")}querySelector(t){return Sa(super.querySelector,this,t)}querySelectorAll(t){return Sa(super.querySelectorAll,this,t)}getElementsByTagNameNS(t,e){return this.getElementsByTagName(e)}createAttributeNS(t,e){return this.createAttribute(e)}createElementNS(t,e,n){return t===Ts?new es(this,e,null):this.createElement(e,n)}};ht(Ca.Document=function(){St()},he).prototype=he.prototype;const Rg=(s,t,e,n)=>{if(!t&&vs.has(e)){const o=vs.get(e);return new o(s,e)}const{[wt]:{active:i,registry:r}}=s;if(i){const o=t?n.is:e;if(r.has(o)){const{Class:A}=r.get(o),c=new A(s,e);return oe.set(c,{connected:!1}),c}}return new S(s,e)};class Bg extends he{constructor(){super("text/html")}get all(){const t=new kt;let{[m]:e,[I]:n}=this;for(;e!==n;)e.nodeType===x&&t.push(e),e=e[m];return t}get head(){const{documentElement:t}=this;let{firstElementChild:e}=t;return(!e||e.tagName!=="HEAD")&&(e=this.createElement("head"),t.prepend(e)),e}get body(){const{head:t}=this;let{nextElementSibling:e}=t;return(!e||e.tagName!=="BODY")&&(e=this.createElement("body"),t.after(e)),e}get title(){const{head:t}=this;return t.getElementsByTagName("title").at(0)?.textContent||""}set title(t){const{head:e}=this;let n=e.getElementsByTagName("title").at(0);n?n.textContent=t:e.insertBefore(this.createElement("title"),e.firstChild).textContent=t}createElement(t,e){const n=!!(e&&e.is),i=Rg(this,n,t,e);return n&&i.setAttribute("is",e.is),i}}class Tg extends he{constructor(){super("image/svg+xml")}toString(){return this[Ce].docType+super.toString()}}class Dg extends he{constructor(){super("text/xml")}toString(){return this[Ce].docType+super.toString()}}class Vi{parseFromString(t,e,n=null){let i=!1,r;return e==="text/html"?(i=!0,r=new Bg):e==="image/svg+xml"?r=new Tg:r=new Dg,r[En]=Vi,n&&(r[ys]=n),i&&t==="..."&&(t="<!doctype html><html><head></head><body></body></html>"),t?no(r,i,t):r}}const xg=(s,t=null)=>new Vi().parseFromString(s,"text/html",t).defaultView;function Ng(){St()}ht(Ng,he).prototype=he.prototype;function ba(s,t,e=""){const n=new WeakMap,i={get(r,o){const A=Reflect.get(r,o);if(A===null||typeof A!="object")return A;const c=n.get(A);if(c)return c;const a=e?`${e}.${o}`:o,u=ba(A,t,a);return n.set(A,u),u},set(r,o,A){const c=Reflect.get(r,o);if(c!==A){Reflect.set(r,o,A);const a=e?`${e}.${o}`:o;t(a,c,A)}return!0}};return new Proxy(s,i)}function ya(s){const t={};for(const[e,n]of Object.entries(s)){const i=typeof n=="object"&&n!==null;t[e]=i?ya(n):n}return t}const Vs=typeof window<"u"&&typeof window.document<"u";let Ea=class extends Error{};const xe=class xe{constructor(t,e,n){se(this,$s);se(this,zs,Symbol("objectId"));se(this,Ot,[]);se(this,as);se(this,cs);se(this,qt);if(!t)throw new Ea("name cannot be empty");if(et(xe,ge).has(t))throw new Ea(`WrecState with name "${t}" already exists`);if(Ge(this,as,t),Ge(this,cs,e),Ge(this,qt,ba({},za(this,$s,ic).bind(this))),e&&Vs){const i=sessionStorage.getItem("wrec-state-"+t),r=i?JSON.parse(i):void 0;r&&(n=r)}if(n)for(const[i,r]of Object.entries(n))this.addProperty(i,r);et(xe,ge).set(t,this)}static get(t){return et(this,ge).get(t)}addListener(t,e={}){const n=et(this,Ot).find(i=>i.listenerRef.deref()===t);if(n){const{propertyMap:i}=n;for(const[r,o]of Object.entries(e))i[r]=o}else et(this,Ot).push({listenerRef:new WeakRef(t),propertyMap:e})}addProperty(t,e){Object.defineProperty(this,t,{enumerable:!0,get(){return et(this,qt)[t]},set(n){et(this,qt)[t]=n}}),et(this,qt)[t]=e}get id(){return et(this,zs)}log(){console.log("WrecState:",et(this,as));for(const[t,e]of Object.entries(et(this,qt)))console.log(` ${t} = ${JSON.stringify(e)}`)}removeListener(t){Ge(this,Ot,et(this,Ot).filter(e=>e.listenerRef.deref()!==t))}};ge=new WeakMap,zs=new WeakMap,Ot=new WeakMap,as=new WeakMap,cs=new WeakMap,qt=new WeakMap,$s=new WeakSet,ic=function(t,e,n){const i=new Set;for(const r of et(this,Ot)){const o=r.listenerRef.deref();if(!o)i.add(r);else if(Vs&&o instanceof HTMLElement&&!o.isConnected)i.add(r);else{const{propertyMap:A}=r,c=Object.keys(A);(c.length===0||c.includes(t))&&o.changed(t,A[t],n,e,this)}}Ge(this,Ot,et(this,Ot).filter(r=>!i.has(r)))},se(xe,ge,new Map),Vs&&window.addEventListener("beforeunload",()=>{for(const[t,e]of et(xe,ge).entries())if(et(e,cs)){const n=ya(e);sessionStorage.setItem("wrec-state-"+t,JSON.stringify(n))}});let Xs=xe;Vs&&process.env.NODE_ENV==="development"&&(window.WrecState=Xs);function Ia(s,t){let e=s;for(const n of t.split("."))e=e[n];return e}function vg(s,t,e){const n=t.split("."),i=n.length-1;let r=s;n.forEach((o,A)=>{A===i?r[o]=e:r=r[o]})}const Fg=new Set(["class","disabled","hidden","id","tabindex","title"]);if(typeof window<"u"){const s=new Set(["onblur","onchange","onclick","onfocus","oninput","onkeydown","onreset","onsubmit"]);Ir.addHook("uponSanitizeAttribute",(t,e)=>{const{attrName:n}=e,i=n.toLowerCase();s.has(i)&&(e.forceKeepAttr=!0)})}class is extends Error{}const Mg=/([a-zA-Z-]+)\s*:\s*([^;}]+)/g,wa="a-zA-Z_$",kg=wa+"0-9",rs=`[${wa}][${kg}]*`,Og=/<!--\s*(.*?)\s*-->/,Qg=/<(\w+)(?:\s[^>]*)?>((?:[^<]|<(?!\w))*?)<\/\1>/g,Xi=new RegExp(`^this\\.${rs}$`),ji=new RegExp(`this\\.${rs}(\\.${rs})*`,"g"),js=new RegExp(`this\\.${rs}(\\.${rs})*`),Gg=5;function Lg(s){return s instanceof HTMLButtonElement||s instanceof HTMLFieldSetElement||s instanceof HTMLInputElement||s instanceof HTMLSelectElement||s instanceof HTMLTextAreaElement||s instanceof xt}function Kg(s,t,e){const n=document.createElement(s);if(t)for(const[i,r]of Object.entries(t))n.setAttribute(i,r);return e&&(n.innerHTML=e),n}const Hg=s=>s===String?"":s===Number?0:s===Boolean?!1:s===Array?[]:s===Object?{}:void 0;function qs(s){const t=[];let e=s.firstElementChild;for(;e;)t.push(e),e.shadowRoot&&t.push(...qs(e.shadowRoot)),e.firstElementChild&&t.push(...qs(e)),e=e.nextElementSibling;return t}const os=s=>s.substring(Gg).split(".")[0];function Ra(s,t){let e=s[0];return t.forEach((n,i)=>{e+=n+s[i+1]}),e}function qi(s){const t=typeof s;return t==="string"||t==="number"||t==="boolean"}function As(s){return s.localName==="textarea"}function zi(s){const{localName:t}=s;return t==="input"||t==="select"}const Wg=s=>s.replace(/<!--[\s\S]*?-->/g,"");function Ba(s,t,e,n){return s.slice(0,t)+n+s.slice(t+e)}function Yg(s){let t=s.trim(),e=null;/^\s*<tr[\s>]/i.test(t)?(t=`<table><tbody>${t}</tbody></table>`,e="tbody"):/^\s*<(td|th)[\s>]/i.test(t)?(t=`<table><tbody><tr>${t}</tr></tbody></table>`,e="tr"):/^\s*<option[\s>]/i.test(t)?(t=`<select>${t}</select>`,e="select"):/^\s*<col[\s>]/i.test(t)&&(t=`<table><colgroup>${t}</colgroup></table>`,e="colgroup");const n=Ir.sanitize(t,{ADD_TAGS:["#comment"],ALLOW_UNKNOWN_PROTOCOLS:!0,RETURN_DOM_FRAGMENT:!0});if(e){const i=n.querySelector(e);if(i)return i.childNodes}return n.childNodes}function $i(s){const t=Number(s);if(isNaN(t))throw new is(`can't convert "${s}" to a number`);return t}function Ta(s,t,e){const[n,i]=t.split(":");if(qi(e))if(typeof e=="boolean"){e?s.setAttribute(n,n):s.removeAttribute(n);const r=xt.getPropName(n);s[r]=e}else{const r=s.getAttribute(t),o=String(e);r!==o&&(s.setAttribute(n,o),n==="value"&&zi(s)&&(s.value=o))}else{const r=xt.getPropName(t);s[r]=e}}function tr(s,t,e){const[n,i]=t.split(":");s instanceof CSSStyleRule?s.style.setProperty(n,e):(Ta(s,n,e),n==="value"&&zi(s)&&(s.value=e))}async function Ug(s){const t=new Set;for(const n of qs(s.content)){const{localName:i}=n;i.includes("-")&&t.add(i)}function e(n){return new Promise((i,r)=>{setTimeout(()=>{const o=`custom element <${n}> not defined`;r(new Error(o))},1e3)})}return Promise.all([...t].map(async n=>Promise.race([customElements.whenDefined(n),e(n)])))}class xt extends HTMLElement{static attrToPropMap=new Map;static propToAttrMap=new Map;static context={};static css="";static elementName="";static formAssociated=!1;static html="";static properties;static propToComputedMap;static propToExprsMap;static template=null;#a=!1;#t=this.constructor;#n=new Map;#c={};#i;#l={};#u=null;#h=new Map;static define(t){if(this.elementName=t,customElements.get(t))throw new is(`custom element ${t} is already defined`);customElements.define(t,this)}constructor(){super(),this.attachShadow({mode:"open"});const t=this.#t;t.attrToPropMap||(t.attrToPropMap=new Map),t.properties||(t.properties={}),t.propToAttrMap||(t.propToExprsMap=new Map),t.propToComputedMap||(t.propToComputedMap=new Map),t.propToExprsMap||(t.propToExprsMap=new Map)}attributeChangedCallback(t,e,n){t==="disabled"&&this.#f();const i=xt.getPropName(t);if(this.#r(i)){const r=this.#E(i,String(n));this[i]=r;const o=this.#c[i];o&&this.setFormValue(o,String(r)),this.propertyChangedCallback(i,e,n)}}batchSet(t){this.#a=!0;const e=this.#t.propToExprsMap,n=new Set;for(const[A,c]of Object.entries(t)){this[A]=c;const a=e.get(A)??[];for(const u of a)n.add(u)}const i=this.#t.propToComputedMap,r=new Set,o={};for(const A of Object.keys(t)){const c=i.get(A)||[];for(const[a,u]of c)r.add(a),o[a]=u}for(const A of r){const c=o[A];this[A]=this.#s(c);const a=e.get(A)??[];for(const u of a)n.add(u)}for(;;){let A=!1;for(const c of r){const a=o[c],u=this.#s(a),g=this[c];JSON.stringify(u)!==JSON.stringify(g)&&(this[c]=u,A=!0)}if(!A)break}this.#p([...n]),this.#a=!1}async#R(){const t=this.#t;let{template:e}=t;e||(e=t.template=document.createElement("template"),e.innerHTML=t.buildHTML()),await Ug(e),this.shadowRoot.replaceChildren(e.content.cloneNode(!0))}static buildHTML(){let t=`<style>
20
+ :host([hidden]) { display: none; }`;this.css&&(t+=this.css),t+=`</style>
21
+ `;let e=this.html.trim();if(!e)throw new is("static property html must be set");return e.startsWith("<")||(e=`<span><!--${e}--></span>`),t+e}changed(t,e,n){this[e]=n}connectedCallback(){this.#O(),this.#T(),this.#R().then(()=>{this.hasAttribute("disabled")&&this.#f(),this.#w(this.shadowRoot),this.#m(this.shadowRoot),this.#B()})}#B(){const t=this.#t,{properties:e}=t;for(const[n,{computed:i}]of Object.entries(e))i&&(this[n]=this.#s(i))}#T(){const t=this.#t,{observedAttributes:e,properties:n}=t;for(const[i,r]of Object.entries(n))r.computed||this.#d(i,r,e);for(const[i,r]of Object.entries(n))r.computed&&this.#d(i,r,e)}#d(t,e,n){if(t==="class"||t==="style")throw new is(`"${t}" is a reserved property`);const i=xt.getAttrName(t),r=this.hasAttribute(i);e.required&&!r&&this.#e(this,i,"is a required attribute");let o=e.value;this.hasOwnProperty(t)&&(o=this[t],delete this[t]);const{type:A}=e,c=A===Boolean?o||r:n.includes(i)&&r?this.#y(t,i):o||Hg(A),a="#"+t;this[a]=c,e.computed&&this.#v(t,e),Object.defineProperty(this,t,{enumerable:!0,get(){return this[a]},set(u){A===Number&&typeof u=="string"&&(u=$i(u));const g=this[a];if(u===g)return;this.#G(t,A,u),this[a]=u;const{state:C,stateProp:b}=this.#t.properties[t];b&&vg(C,b,u),this.#F(t,A,u,i),this.#a||(this.#M(t),this.#b(t)),this.#k(t,u);const B=this.#c[t];B&&this.setFormValue(B,String(u)),this.propertyChangedCallback(t,g,u),e.dispatch&&this.dispatch("change",{tagName:this.localName,property:t,oldValue:g,value:u})}})}#f(){const t=this.hasAttribute("disabled"),e=qs(this.shadowRoot);for(const n of e)Lg(n)&&(n.disabled=t)}disconnectedCallback(){this.#n.clear(),this.#l.clear(),this.#h.clear()}dispatch(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}displayIfSet(t,e="block"){return`display: ${t?e:"none"}`}#D(t){const e=t instanceof xt;for(const n of t.getAttributeNames()){const i=t.getAttribute(n),r=this.#C(t,i);if(r){const o=this[r];o===void 0&&this.#A(t,n,r),t[r]=o;let[A,c]=n.split(":");A==="value"&&(c?(t["on"+c]===void 0&&this.#e(t,n,"refers to an unsupported event name"),t.setAttribute(A,this[r])):c="change"),e&&t.#h.set(xt.getPropName(A),r)}this.#o(i,t,n)}}#p(t){for(const e of t){const n=this.#s(e),i=this.#n.get(e)??[];for(const r of i)if(r instanceof HTMLElement)this.#I(r,n);else if(!(r instanceof CSSStyleRule)){const{element:o,attrName:A}=r;o instanceof CSSStyleRule?o.style.setProperty(A,n):tr(o,A,n)}}}#s(t){const{context:e}=this.#t;return new Function("context",`const {${Object.keys(e).join(",")}} = context; return ${t};`).call(this,e)}#x(t){const{localName:e}=t;if(e==="style"){const{sheet:n}=t,i=n?.cssRules??[],r=Array.from(i);for(const o of r)if(o.constructor===CSSStyleRule){const A=Array.from(o.style);for(const c of A)if(c.startsWith("--")){const a=o.style.getPropertyValue(c);this.#o(a,o,c)}}}else{let n="";if(As(t)){this.#o(t.textContent,t);const i=t.textContent?.match(Og);i&&(n=i[1])}else{const i=Array.from(t.childNodes).find(r=>r.nodeType===Node.COMMENT_NODE);i&&(n=i.textContent?.trim()??"")}if(n){const i=this.#C(t,n);i&&As(t)?t.textContent=this[i]:this.#o(n,t)}}}formAssociatedCallback(){let t=this.getAttribute("form-assoc");if(!t){const o=this.getAttribute("name");if(o)if(this.#r("value"))t=`value:${o}`;else return;else return}const e={},n=t.split(",");for(const o of n){const[A,c]=o.split(":");e[A.trim()]=c.trim()}this.#c=e,this.#i=new FormData,this.#u=this.attachInternals(),this.#u.setFormValue(this.#i);const i=Object.keys(this.#t.properties),r=this.#l;for(const o of i)r[o]=this[o]}formResetCallback(){const t=this.#l;for(const e of Object.keys(t)){let n=t[e];Xi.test(n)&&(n=this.#s(n)),this[e]=n}}static getAttrName(t){let e=this.propToAttrMap.get(t);return e||(e=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),this.propToAttrMap.set(t,e)),e}static getPropName(t){let e=this.attrToPropMap.get(t);return e||(e=t.replace(/-([a-z])/g,(n,i)=>i.toUpperCase()),this.attrToPropMap.set(t,e)),e}#N(t,e,n){if(n.length!==1)return;const[i]=n;if(!Xi.test(i))return;const r=zi(t)||As(t);let[o,A]=(e??"").split(":");if(!(r&&o==="value"||As(t)))return;A?t["on"+A]===void 0&&this.#e(t,e,"refers to an unsupported event name"):A="change";const a=os(i);t.addEventListener(A,u=>{const{target:g}=u;if(!g)return;const C=g.value,{type:b}=this.#t.properties[a];this[a]=b===Number?$i(C):C,this.#b(a)})}#r(t){return!!this.#t.properties[t]}#m(t){const e=Array.from(t.querySelectorAll("*"));for(const n of e)this.#D(n),n.firstElementChild||this.#x(n)}#S(){if(this.#t.formAssociated||this.closest("form")===null)return;const t=this.#t.name;this.#e(this,void 0,`inside form, class ${t} requires "static formAssociated = true;"`)}static get observedAttributes(){const t=Object.keys(this.properties||{}).map(e=>xt.getAttrName(e));return t.includes("disabled")||t.push("disabled"),t}propertyChangedCallback(t,e,n){}#C(t,e){if(!e||!Xi.test(e))return;const n=os(e);return this[n]===void 0&&this.#A(t,"",n),n}#b(t){const e=this.#t.propToExprsMap.get(t)||[];this.#p(e)}#v(t,e){const{computed:n,uses:i}=e,r=this.#t.propToComputedMap;function o(c,a){let u=r.get(c);u||(u=[],r.set(c,u)),u.push([t,a])}const A=n.match(ji)||[];for(const c of A){const a=os(c);this[a]===void 0&&this.#A(null,t,a),typeof this[a]!="function"&&o(a,n)}if(i)for(const c of i.split(","))o(c.trim(),n)}#o(t,e,n=void 0){if(!t)return;const i=this.#g(e,n,t);if(!i){const c=t.replaceAll("this..","this.");n?tr(e,n,c):"textContent"in e&&(e.textContent=c);return}const r=this.#t;i.forEach(c=>{const a=os(c);if(typeof this[a]=="function")return;const u=r.propToExprsMap;let g=u.get(a);g||(g=[],u.set(a,g)),g.includes(t)||g.push(t)});for(const[c,a]of this.#n.entries())for(const u of a){const g=u instanceof HTMLElement||u instanceof CSSStyleRule?u:u.element;g instanceof CSSStyleRule||g.isConnected||this.#n.set(c,a.filter(C=>C!==u))}let o=this.#n.get(t);o||(o=[],this.#n.set(t,o)),o.push(n?{element:e,attrName:n}:e),e instanceof HTMLElement&&this.#N(e,n,i);const A=this.#s(t);n?tr(e,n,A):this.#I(e,A)}setAttributeSafe(t,e){this.hasAttribute(t)||this.setAttribute(t,e)}setFormValue(t,e){!this.#i||!qi(e)||(this.#i.set(t,e),this.#u?.setFormValue(this.#i))}static ssr(t={}){function e(a){return new Function("return "+a).call(t)}let n="";for(const[a,u]of Object.entries(t)){const g=this.getAttrName(a);n+=` ${g}="${u}"`}const i=this.buildHTML(),{document:r}=xg(i),o=r.querySelectorAll("*");for(const a of o){for(const u of a.attributes){const{value:g}=u;js.test(g)&&(u.value=e(g))}for(const u of a.childNodes)if(u.nodeType===8){const g=u.textContent??"";if(js.test(g)){const C=r.createTextNode(e(g));a.replaceChild(C,u)}}}const A=[...r.children].map(a=>a.outerHTML).join(`
22
+ `),{elementName:c}=this;return`
23
+ <${c}${n}>
24
+ <template shadowroot="open">
25
+ ${A}
26
+ </template>
27
+ </${c}>
28
+ `}#e(t,e,n){const i=t instanceof HTMLElement?t.localName:"CSS rule";throw new is(`component ${this.#t.elementName}`+(t?`, element "${i}"`:"")+(e?`, attribute "${e}"`:"")+` ${n}`)}#A(t,e,n){this.#e(t,e,`refers to missing property "${n}"`)}#y(t,e){return this.#E(t,this.getAttribute(e))}#E(t,e){if(e?.match(ji))return e;const n=this.#t,{type:i}=n.properties[t];if(i||this.#e(null,t,"does not specify its type"),i===String)return e;if(i===Number)return $i(e);if(i===Boolean)return e==="true"?!0:e==="false"||e==="null"?!1:(e&&e!==t&&this.#e(null,t,"is a Boolean attribute, so its value must match attribute name or be missing"),e===t)}#F(t,e,n,i){if(qi(n)){const r=e===Boolean?this.hasAttribute(i):this.#y(t,i);n!==r&&Ta(this,i||t,n)}}#M(t){const n=this.#t.propToComputedMap.get(t)||[];for(const[i,r]of n)this[i]=this.#s(r)}#I(t,e){if(e===void 0)return;const n=t instanceof HTMLElement;Array.isArray(e)&&(e=e.join(""));const i=typeof e;i!=="string"&&i!=="number"&&this.#e(t,void 0," computed content is not a string or number");const r=String(e);if(t instanceof HTMLElement&&As(t))t.value=r;else if(n&&i==="string"&&r.trim().startsWith("<")){const o=Yg(r);t.replaceChildren(...o),this.#w(t),this.#m(t)}else n&&(t.textContent=r)}#k(t,e){const n=this.#h.get(t);if(!n)return;const i=this.getRootNode();if(!(i instanceof ShadowRoot))return;const{host:r}=i;if(!r)return;const o=r;o[n]=e}useState(t,e){if(!e){e={};for(const n of Object.keys(t))e[n]=n}this.#Q(t,e);for(const[n,i]of Object.entries(e))if(this.#r(i)){const r=Ia(t,n);r!==void 0&&(this[i]=r);const o=this.#t.properties[i];o.state=t,o.stateProp=n}t.addListener(this,e)}#O(){const t=new Set(Object.keys(this.#t.properties));for(const e of this.getAttributeNames())if(!Fg.has(e)&&!e.startsWith("on")){if(e==="form-assoc"){this.#S();continue}if(!t.has(xt.getPropName(e))){if(e==="name"){this.#S();continue}this.#e(null,e,"is not a supported attribute")}}}#g(t,e,n){const i=n.match(ji);if(i)return i.forEach(r=>{const o=os(r);this[o]===void 0&&this.#A(t,e,o)}),i}#Q(t,e){for(const[n,i]of Object.entries(e)){let r=Ia(t,n);r===void 0&&this.#e(this,void 0,`invalid state path "${n}"`),r=this[i],this.#r(i)||this.#e(null,i,"refers to missing property in useState map")}}#G(t,e,n){if(n instanceof e)return;let i=typeof n;if(i==="object"){const{constructor:r}=n;i=r.name,r!==e&&this.#e(null,t,`was set to a ${i}, but must be a ${e.name}`)}i!==e.name.toLowerCase()&&this.#e(null,t,`was set to a ${i}, but must be a ${e.name}`)}#w(t){const e=Array.from(t.querySelectorAll("*"));for(const n of e){const i=[];for(const r of Array.from(n.attributes)){const o=r.name;if(o.startsWith("on")){let A=o.slice(2);A=A[0].toLowerCase()+A.slice(1).toLowerCase();const c=r.value;this.#g(n,o,c);let a;typeof this[c]=="function"?a=u=>this[c](u):(this.#g(n,o,c),a=()=>this.#s(c)),n.addEventListener(A,a),i.push(o)}}for(const r of i)n.removeAttribute(r)}}}function _g(s,...t){let e=Ra(s,t);for(;;){const n=Mg.exec(e);if(!n)break;const i=n[2];if(js.test(i)){const r=n[1];if(!r.startsWith("--")){const o=`--${r}: ${i};
29
+ ${r}: var(--${r})`;e=Ba(e,n.index,n[0].length,o)}}}return e}function Jg(s,...t){let e=Ra(s,t);for(;;){const n=Qg.exec(e);if(!n||n[1]==="style")break;const i=Wg(n[2]);if(js.test(i)){const r=`<!-- ${i.trim()} -->`,o=n.index+n[0].indexOf(">")+1;e=Ba(e,o,i.length,r)}}return e}F.Wrec=xt,F.WrecState=Xs,F.createElement=Kg,F.css=_g,F.html=Jg,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));