very-happy-dom 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ [Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.3.4...HEAD)
2
+
3
+ ## 🐛 Bug Fixes
4
+
5
+ - **parser**: accept the attribute names a framework uses ([8f88d51](https://github.com/stacksjs/very-happy-dom/commit/8f88d51)) _(by glennmichael123 <gtorregosa@gmail.com>)_
6
+
7
+ ## Contributors
8
+
9
+ - _glennmichael123 <gtorregosa@gmail.com>_
10
+
1
11
  [Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.3.3...HEAD)
2
12
 
3
13
  ## 🐛 Bug Fixes
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{e}from"./chunk-qh4s27j9.js";class r extends e{constructor(t){super(t);this.tagName=t,this.nodeName=t,this.namespaceURI="http://www.w3.org/2000/svg"}}
2
+ import{e}from"./chunk-4rkv71j2.js";class r extends e{constructor(t){super(t);this.tagName=t,this.nodeName=t,this.namespaceURI="http://www.w3.org/2000/svg"}}
3
3
  export{r};
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import{n,Ce,F,E,Ve,Me,k,et,Oe,tt,G,l,o,t,i,c,a,Wi,d}from"./chunk-d5edpdkj.js";import{Qe,mi,p}from"./chunk-2m1ksnrw.js";import{I,y,pi,fi,w,_}from"./chunk-w2g7xbfh.js";import{Ui}from"./chunk-a5gtqx99.js";class Z{x;y;width;height;constructor(r=0,s=0,u=0,h=0){this.x=r,this.y=s,this.width=u,this.height=h}get top(){return Math.min(this.y,this.y+this.height)}get right(){return Math.max(this.x,this.x+this.width)}get bottom(){return Math.max(this.y,this.y+this.height)}get left(){return Math.min(this.x,this.x+this.width)}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(r){return new Z(r?.x??0,r?.y??0,r?.width??0,r?.height??0)}}class H extends Z{constructor(r=0,s=0,u=0,h=0){super(r,s,u,h);Object.defineProperties(this,{x:{value:r,writable:!0,enumerable:!0,configurable:!0},y:{value:s,writable:!0,enumerable:!0,configurable:!0},width:{value:u,writable:!0,enumerable:!0,configurable:!0},height:{value:h,writable:!0,enumerable:!0,configurable:!0}})}static fromRect(r){return new H(r?.x??0,r?.y??0,r?.width??0,r?.height??0)}}class ee{x;y;z;w;constructor(r=0,s=0,u=0,h=1){this.x=r,this.y=s,this.z=u,this.w=h}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(r){return new ee(r?.x??0,r?.y??0,r?.z??0,r?.w??1)}}class we extends ee{constructor(r=0,s=0,u=0,h=1){super(r,s,u,h);Object.defineProperties(this,{x:{value:r,writable:!0,enumerable:!0,configurable:!0},y:{value:s,writable:!0,enumerable:!0,configurable:!0},z:{value:u,writable:!0,enumerable:!0,configurable:!0},w:{value:h,writable:!0,enumerable:!0,configurable:!0}})}static fromPoint(r){return new we(r?.x??0,r?.y??0,r?.z??0,r?.w??1)}}class _e{a;b;c;d;e;f;m11;m12;m13;m14;m21;m22;m23;m24;m31;m32;m33;m34;m41;m42;m43;m44;is2D=!0;isIdentity;constructor(r){if(Array.isArray(r)&&r.length===6)this.a=r[0],this.m11=r[0],this.b=r[1],this.m12=r[1],this.c=r[2],this.m21=r[2],this.d=r[3],this.m22=r[3],this.e=r[4],this.m41=r[4],this.f=r[5],this.m42=r[5],this.m13=0,this.m14=0,this.m23=0,this.m24=0,this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m43=0,this.m44=1,this.isIdentity=this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.e===0&&this.f===0;else if(Array.isArray(r)&&r.length===16)this.m11=r[0],this.m12=r[1],this.m13=r[2],this.m14=r[3],this.m21=r[4],this.m22=r[5],this.m23=r[6],this.m24=r[7],this.m31=r[8],this.m32=r[9],this.m33=r[10],this.m34=r[11],this.m41=r[12],this.m42=r[13],this.m43=r[14],this.m44=r[15],this.a=this.m11,this.b=this.m12,this.c=this.m21,this.d=this.m22,this.e=this.m41,this.f=this.m42,this.is2D=!1,this.isIdentity=this.m11===1&&this.m12===0&&this.m13===0&&this.m14===0&&this.m21===0&&this.m22===1&&this.m23===0&&this.m24===0&&this.m31===0&&this.m32===0&&this.m33===1&&this.m34===0&&this.m41===0&&this.m42===0&&this.m43===0&&this.m44===1;else this.a=1,this.m11=1,this.b=0,this.m12=0,this.c=0,this.m21=0,this.d=1,this.m22=1,this.e=0,this.m41=0,this.f=0,this.m42=0,this.m13=0,this.m14=0,this.m23=0,this.m24=0,this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m43=0,this.m44=1,this.isIdentity=!0}toJSON(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}toString(){return`matrix(${this.a}, ${this.b}, ${this.c}, ${this.d}, ${this.e}, ${this.f})`}}class $e extends _e{constructor(r){super(r);for(let s of["a","b","c","d","e","f","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44"])Object.defineProperty(this,s,{value:this[s],writable:!0,enumerable:!0,configurable:!0})}}class qe{_items;constructor(r=[]){return this._items=r,new Proxy(this,{get(s,u,h){if(typeof u==="string"){let m=Number(u);if(Number.isInteger(m)&&m>=0)return s._items[m]}return Reflect.get(s,u,h)}})}get length(){return this._items.length}item(r){return this._items[r]??null}forEach(r,s){this._items.forEach((u,h)=>r.call(s,u,h,this))}entries(){return this._items.entries()}keys(){return this._items.keys()}values(){return this._items.values()}[Symbol.iterator](){return this._items[Symbol.iterator]()}}class ze{_items;constructor(r=[]){return this._items=r,new Proxy(this,{get(s,u,h){if(typeof u==="string"){let m=Number(u);if(Number.isInteger(m)&&m>=0)return s._items[m]}return Reflect.get(s,u,h)}})}get length(){return this._items.length}item(r){return this._items[r]??null}namedItem(r){return this._items.find((s)=>s.id===r||s.getAttribute?.("name")===r)??null}[Symbol.iterator](){return this._items[Symbol.iterator]()}}class Ke{name;value;namespaceURI;prefix;localName;specified=!0;ownerElement=null;constructor(r,s="",u=null){this.name=r,this.value=s,this.namespaceURI=u,this.prefix=r.includes(":")?r.split(":")[0]:null,this.localName=r.includes(":")?r.split(":")[1]:r}}class je{_attrs=[];constructor(){return new Proxy(this,{get(r,s,u){if(typeof s==="string"){let h=Number(s);if(Number.isInteger(h)&&h>=0)return r._attrs[h]}return Reflect.get(r,s,u)}})}get length(){return this._attrs.length}item(r){return this._attrs[r]??null}getNamedItem(r){return this._attrs.find((s)=>s.name===r)??null}setNamedItem(r){let s=this.getNamedItem(r.name);if(s)this._attrs[this._attrs.indexOf(s)]=r;else this._attrs.push(r);return s}removeNamedItem(r){let s=this._attrs.findIndex((u)=>u.name===r);if(s===-1)throw Error(`Attr not found: ${r}`);return this._attrs.splice(s,1)[0]}getNamedItemNS(r,s){return this.getNamedItem(s)}setNamedItemNS(r){return this.setNamedItem(r)}removeNamedItemNS(r,s){return this.removeNamedItem(s)}[Symbol.iterator](){return this._attrs[Symbol.iterator]()}}class Ye{serializeToString(r){if(!r)return"";if(r.outerHTML!==void 0)return r.outerHTML;if(r.nodeType===3)return r.nodeValue??"";if(r.nodeType===8)return`<!--${r.nodeValue??""}-->`;if(r.nodeType===9)return r.documentElement?this.serializeToString(r.documentElement):"";if(r.nodeType===11)return r.childNodes?.map((s)=>this.serializeToString(s)).join("")??"";return r.toString?.()??""}}class Xe{badInput=!1;customError=!1;patternMismatch=!1;rangeOverflow=!1;rangeUnderflow=!1;stepMismatch=!1;tooLong=!1;tooShort=!1;typeMismatch=!1;valid=!0;valueMissing=!1}class Se{width;height;availWidth;availHeight;colorDepth=24;pixelDepth=24;orientation;constructor(r=1024,s=768){this.width=r,this.height=s,this.availWidth=r,this.availHeight=s,this.orientation={type:"landscape-primary",angle:0}}}class Te{matches;media;onchange=null;_listeners=new Set;constructor(r,s){this.media=r,this.matches=s}addListener(r){if(r)this._listeners.add(r)}removeListener(r){this._listeners.delete(r)}addEventListener(r,s){if(s)this._listeners.add(s)}removeEventListener(r,s){this._listeners.delete(s)}dispatchEvent(){return!0}}class Je{nodeType=10;name;publicId;systemId;constructor(r="html",s="",u=""){this.name=r,this.publicId=s,this.systemId=u}}var eo=["prefers-color-scheme","prefers-reduced-motion","forced-colors","orientation","min-width","max-width","width","min-height","max-height","height"];function z(r,s){let u=Number.parseFloat(r);if(!Number.isFinite(u))return Number.NaN;return s==="em"||s==="rem"?u*16:u}function U(r,s){let u=/^\(\s*([\w-]+)\s*(?::\s*([^)]+?)\s*)?\)$/.exec(r.trim());if(!u)return!1;let[,h,m]=u,b=(m??"").trim().toLowerCase();switch(h.toLowerCase()){case"prefers-color-scheme":return s.colorScheme===b;case"prefers-reduced-motion":return b===""?s.reducedMotion==="reduce":s.reducedMotion===b;case"forced-colors":return b===""?s.forcedColors==="active":s.forcedColors===b;case"orientation":return(s.height>=s.width?"portrait":"landscape")===b;case"min-width":case"max-width":case"width":case"min-height":case"max-height":case"height":{let g=/^(\d+(?:\.\d+)?)\s*(px|em|rem)?$/.exec(b);if(!g)return!1;let v=z(g[1],g[2]),f=h.endsWith("width")?s.width:s.height;if(h.startsWith("min-"))return f>=v;if(h.startsWith("max-"))return f<=v;return f===v}default:return!1}}function B(r,s){let u=r.trim().toLowerCase();if(u==="")return!1;let h=/^not\s+/.test(u),b=u.replace(/^not\s+/,"").replace(/^only\s+/,"").split(/\s+and\s+/).map((v)=>v.trim()).filter(Boolean);if(b.length===0)return!1;let g=b.every((v)=>{if(!v.startsWith("(")){if(v==="all")return!0;return v===s.type}return U(v,s)});return h?!g:g}function xe(r,s){let u=String(r??"").trim();if(u==="")return!1;return u.split(",").some((h)=>B(h,s))}function q(r){let s=r.replace(/"[^"]*"|'[^']*'/g,'""'),u=0,h=0,m=0,b=s.match(/::[\w-]+/g);m+=b?b.length:0;let g=s.replace(/::[\w-]+/g," "),v=g.match(/#[\w-]+/g);u+=v?v.length:0;let f=g.match(/\.[\w-]+/g);h+=f?f.length:0;let A=g.match(/\[[^\]]*\]/g);h+=A?A.length:0;let x=g.match(/:[\w-]+/g);h+=x?x.length:0;let T=g.replace(/#[\w-]+/g," ").replace(/\.[\w-]+/g," ").replace(/\[[^\]]*\]/g," ").replace(/:[\w-]+(\([^)]*\))?/g," ").replace(/[>+~,()]/g," ").split(/\s+/).filter((L)=>/^[a-z][\w-]*$/i.test(L));return m+=T.length,u*1e6+h*1000+m}function j(r){return r.length===0||r.startsWith("@")}function W(r,s){let u=-1;for(let h of s.split(",")){let m=h.trim();if(!m)continue;let b=!1;try{b=r.matches(m)}catch{b=!1}if(b)u=Math.max(u,q(m))}return u}function K(r,s,u){let h=r.get(s);if(!h||u.specificity>=h.specificity)r.set(s,u)}function ci(r,s,u){let h={normal:new Map,important:new Map},m=0,b=(g)=>{for(let v=0;v<g.length;v++){let f=g[v];if(f?.conditionText!==void 0&&f.cssRules){if(u&&xe(f.conditionText,u))b(f.cssRules);continue}let A=f?.selectorText?.trim();if(!A||j(A)||!f.style)continue;m++;let x=W(r,A);if(x<0)continue;for(let T of f.style){let L=f.style.getPropertyValue(T);if(!L)continue;let P=f.style.getPropertyPriority(T)==="important"?h.important:h.normal;K(P,T,{value:L,specificity:x,order:m})}}};for(let g of s)if(g?.cssRules)b(g.cssRules);return h}function di(r,s,u){let h=s.getPropertyValue(r);if(h!==""&&s.getPropertyPriority(r)==="important")return h;let b=u.important.get(r);if(b)return b.value;if(h)return h;let g=u.normal.get(r);if(g)return g.value;return null}class hi extends _{mode;delegatesFocus;host;constructor(r,s){super();this.host=r,this.mode=s.mode,this.delegatesFocus=s.delegatesFocus||!1,this.parentNode=r,this.ownerDocument=r.ownerDocument,this.nodeName="#shadow-root"}get innerHTML(){return this.childNodes.map((r)=>this._serializeNode(r,void 0)).join("")}set innerHTML(r){while(this.childNodes.length>0)this.removeChild(this.childNodes[0]);if(!r)return;let s=p(r,this.ownerDocument);for(let u of s)this.appendChild(u)}_getEventParent(){return this.host}_serializeNode(r,s){if(r.nodeType===i){let u=r.nodeValue||"";if(s==="SCRIPT"||s==="STYLE")return u;return Qe(u)}if(r.nodeType===c)return`<!--${r.nodeValue||""}-->`;if(r.nodeType===t){let u=r,h=u.tagName.toLowerCase(),m=`<${h}`;for(let[g,v]of u.attributes)m+=` ${g}="${mi(v)}"`;if(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(h))return`${m}>`;m+=">";for(let g of u.childNodes)m+=this._serializeNode(g,u.tagName);return m+=`</${h}>`,m}return""}}var X=new Set(["DIV","P","H1","H2","H3","H4","H5","H6","UL","OL","LI","TABLE","TR","BLOCKQUOTE","PRE","HR","SECTION","ARTICLE","NAV","HEADER","FOOTER","MAIN","ASIDE","DETAILS","SUMMARY","FORM","FIELDSET","ADDRESS","DL","DT","DD","FIGURE","FIGCAPTION"]);class e extends d{nodeType=t;nodeKind="element";nodeName;tagName;namespaceURI="http://www.w3.org/1999/xhtml";_shadowRoot=null;_customValidity="";_internalStyles=null;_stylePriorities=null;_styleProxy=null;_datasetProxy=null;_valueState=null;_valueDirty=!1;_checkedState=null;_checkedDirty=!1;_selectedState=null;_selectedDirty=!1;_capturedPointerIds=null;get children(){let r=this.childNodes,s=[];for(let u=0;u<r.length;u++)if(r[u].nodeType===t)s.push(r[u]);return s}constructor(r){super();this.tagName=r.toUpperCase(),this.nodeName=this.tagName}get shadowRoot(){return this._shadowRoot?.mode==="open"?this._shadowRoot:null}_getInternalShadowRoot(){return this._shadowRoot}getAttribute(r){return this.attributes.get(r.toLowerCase())??null}getAttributeNS(r,s){return this.getAttribute(s)}setAttribute(r,s){let u=r.toLowerCase(),h=`${s}`,m=this.attributes.get(u)??null;if(this.attributes.set(u,h),u==="id"){let b=this.ownerDocument;if(b&&b._idIndex){if(m!==null)b._idIndex.delete(m);b._idIndex.set(h,this)}}if(u==="style")this._setStylesFromAttribute(h);if(Ce(this,u,m,h),u==="slot"||u==="name"&&this.tagName==="SLOT")F(this);l._queueMutationRecord({type:"attributes",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:u,attributeNamespace:null,oldValue:m})}setAttributeNS(r,s,u){this.setAttribute(s,u)}removeAttribute(r){let s=r.toLowerCase(),u=this.attributes.get(s)??null;if(u===null)return;if(this.attributes.delete(s),s==="id"){let h=this.ownerDocument;if(h&&h._idIndex)h._idIndex.delete(u)}if(s==="style")this._internalStyles=null,this._stylePriorities=null;if(Ce(this,s,u,null),s==="slot"||s==="name"&&this.tagName==="SLOT")F(this);l._queueMutationRecord({type:"attributes",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:s,attributeNamespace:null,oldValue:u})}removeAttributeNS(r,s){this.removeAttribute(s)}hasAttribute(r){return this.attributes.has(r.toLowerCase())}hasAttributeNS(r,s){return this.hasAttribute(s)}toggleAttribute(r,s){let u=r.toLowerCase();if(s!==void 0){if(s)return this.setAttribute(u,""),!0;return this.removeAttribute(u),!1}if(this.hasAttribute(u))return this.removeAttribute(u),!1;return this.setAttribute(u,""),!0}getAttributeNames(){return Array.from(this.attributes.keys())}get innerText(){let r=this.ownerDocument?.defaultView,u=(this.ownerDocument?.styleSheets?.length??0)+(this.ownerDocument?._adoptedStyleSheets?.length??0)>0&&typeof r?.getComputedStyle==="function"?(N)=>r.getComputedStyle(N):(N)=>N.style,h=[],m=!1,b=!0,g=!1,v=(N)=>{if(m&&!b)h.push(" ");m=!1,h.push(N),b=!1},f=()=>{if(m=!1,h.length===0||h[h.length-1].endsWith(`
2
+ import{n,Ce,F,E,Ve,Me,k,et,Oe,tt,G,l,o,t,i,c,a,Wi,d}from"./chunk-d5edpdkj.js";import{Qe,mi,p}from"./chunk-axyyzc2e.js";import{I,y,pi,fi,w,_}from"./chunk-w2g7xbfh.js";import{Ui}from"./chunk-a5gtqx99.js";class Z{x;y;width;height;constructor(r=0,s=0,u=0,h=0){this.x=r,this.y=s,this.width=u,this.height=h}get top(){return Math.min(this.y,this.y+this.height)}get right(){return Math.max(this.x,this.x+this.width)}get bottom(){return Math.max(this.y,this.y+this.height)}get left(){return Math.min(this.x,this.x+this.width)}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(r){return new Z(r?.x??0,r?.y??0,r?.width??0,r?.height??0)}}class H extends Z{constructor(r=0,s=0,u=0,h=0){super(r,s,u,h);Object.defineProperties(this,{x:{value:r,writable:!0,enumerable:!0,configurable:!0},y:{value:s,writable:!0,enumerable:!0,configurable:!0},width:{value:u,writable:!0,enumerable:!0,configurable:!0},height:{value:h,writable:!0,enumerable:!0,configurable:!0}})}static fromRect(r){return new H(r?.x??0,r?.y??0,r?.width??0,r?.height??0)}}class ee{x;y;z;w;constructor(r=0,s=0,u=0,h=1){this.x=r,this.y=s,this.z=u,this.w=h}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(r){return new ee(r?.x??0,r?.y??0,r?.z??0,r?.w??1)}}class we extends ee{constructor(r=0,s=0,u=0,h=1){super(r,s,u,h);Object.defineProperties(this,{x:{value:r,writable:!0,enumerable:!0,configurable:!0},y:{value:s,writable:!0,enumerable:!0,configurable:!0},z:{value:u,writable:!0,enumerable:!0,configurable:!0},w:{value:h,writable:!0,enumerable:!0,configurable:!0}})}static fromPoint(r){return new we(r?.x??0,r?.y??0,r?.z??0,r?.w??1)}}class _e{a;b;c;d;e;f;m11;m12;m13;m14;m21;m22;m23;m24;m31;m32;m33;m34;m41;m42;m43;m44;is2D=!0;isIdentity;constructor(r){if(Array.isArray(r)&&r.length===6)this.a=r[0],this.m11=r[0],this.b=r[1],this.m12=r[1],this.c=r[2],this.m21=r[2],this.d=r[3],this.m22=r[3],this.e=r[4],this.m41=r[4],this.f=r[5],this.m42=r[5],this.m13=0,this.m14=0,this.m23=0,this.m24=0,this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m43=0,this.m44=1,this.isIdentity=this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.e===0&&this.f===0;else if(Array.isArray(r)&&r.length===16)this.m11=r[0],this.m12=r[1],this.m13=r[2],this.m14=r[3],this.m21=r[4],this.m22=r[5],this.m23=r[6],this.m24=r[7],this.m31=r[8],this.m32=r[9],this.m33=r[10],this.m34=r[11],this.m41=r[12],this.m42=r[13],this.m43=r[14],this.m44=r[15],this.a=this.m11,this.b=this.m12,this.c=this.m21,this.d=this.m22,this.e=this.m41,this.f=this.m42,this.is2D=!1,this.isIdentity=this.m11===1&&this.m12===0&&this.m13===0&&this.m14===0&&this.m21===0&&this.m22===1&&this.m23===0&&this.m24===0&&this.m31===0&&this.m32===0&&this.m33===1&&this.m34===0&&this.m41===0&&this.m42===0&&this.m43===0&&this.m44===1;else this.a=1,this.m11=1,this.b=0,this.m12=0,this.c=0,this.m21=0,this.d=1,this.m22=1,this.e=0,this.m41=0,this.f=0,this.m42=0,this.m13=0,this.m14=0,this.m23=0,this.m24=0,this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m43=0,this.m44=1,this.isIdentity=!0}toJSON(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}toString(){return`matrix(${this.a}, ${this.b}, ${this.c}, ${this.d}, ${this.e}, ${this.f})`}}class $e extends _e{constructor(r){super(r);for(let s of["a","b","c","d","e","f","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44"])Object.defineProperty(this,s,{value:this[s],writable:!0,enumerable:!0,configurable:!0})}}class qe{_items;constructor(r=[]){return this._items=r,new Proxy(this,{get(s,u,h){if(typeof u==="string"){let m=Number(u);if(Number.isInteger(m)&&m>=0)return s._items[m]}return Reflect.get(s,u,h)}})}get length(){return this._items.length}item(r){return this._items[r]??null}forEach(r,s){this._items.forEach((u,h)=>r.call(s,u,h,this))}entries(){return this._items.entries()}keys(){return this._items.keys()}values(){return this._items.values()}[Symbol.iterator](){return this._items[Symbol.iterator]()}}class ze{_items;constructor(r=[]){return this._items=r,new Proxy(this,{get(s,u,h){if(typeof u==="string"){let m=Number(u);if(Number.isInteger(m)&&m>=0)return s._items[m]}return Reflect.get(s,u,h)}})}get length(){return this._items.length}item(r){return this._items[r]??null}namedItem(r){return this._items.find((s)=>s.id===r||s.getAttribute?.("name")===r)??null}[Symbol.iterator](){return this._items[Symbol.iterator]()}}class Ke{name;value;namespaceURI;prefix;localName;specified=!0;ownerElement=null;constructor(r,s="",u=null){this.name=r,this.value=s,this.namespaceURI=u,this.prefix=r.includes(":")?r.split(":")[0]:null,this.localName=r.includes(":")?r.split(":")[1]:r}}class je{_attrs=[];constructor(){return new Proxy(this,{get(r,s,u){if(typeof s==="string"){let h=Number(s);if(Number.isInteger(h)&&h>=0)return r._attrs[h]}return Reflect.get(r,s,u)}})}get length(){return this._attrs.length}item(r){return this._attrs[r]??null}getNamedItem(r){return this._attrs.find((s)=>s.name===r)??null}setNamedItem(r){let s=this.getNamedItem(r.name);if(s)this._attrs[this._attrs.indexOf(s)]=r;else this._attrs.push(r);return s}removeNamedItem(r){let s=this._attrs.findIndex((u)=>u.name===r);if(s===-1)throw Error(`Attr not found: ${r}`);return this._attrs.splice(s,1)[0]}getNamedItemNS(r,s){return this.getNamedItem(s)}setNamedItemNS(r){return this.setNamedItem(r)}removeNamedItemNS(r,s){return this.removeNamedItem(s)}[Symbol.iterator](){return this._attrs[Symbol.iterator]()}}class Ye{serializeToString(r){if(!r)return"";if(r.outerHTML!==void 0)return r.outerHTML;if(r.nodeType===3)return r.nodeValue??"";if(r.nodeType===8)return`<!--${r.nodeValue??""}-->`;if(r.nodeType===9)return r.documentElement?this.serializeToString(r.documentElement):"";if(r.nodeType===11)return r.childNodes?.map((s)=>this.serializeToString(s)).join("")??"";return r.toString?.()??""}}class Xe{badInput=!1;customError=!1;patternMismatch=!1;rangeOverflow=!1;rangeUnderflow=!1;stepMismatch=!1;tooLong=!1;tooShort=!1;typeMismatch=!1;valid=!0;valueMissing=!1}class Se{width;height;availWidth;availHeight;colorDepth=24;pixelDepth=24;orientation;constructor(r=1024,s=768){this.width=r,this.height=s,this.availWidth=r,this.availHeight=s,this.orientation={type:"landscape-primary",angle:0}}}class Te{matches;media;onchange=null;_listeners=new Set;constructor(r,s){this.media=r,this.matches=s}addListener(r){if(r)this._listeners.add(r)}removeListener(r){this._listeners.delete(r)}addEventListener(r,s){if(s)this._listeners.add(s)}removeEventListener(r,s){this._listeners.delete(s)}dispatchEvent(){return!0}}class Je{nodeType=10;name;publicId;systemId;constructor(r="html",s="",u=""){this.name=r,this.publicId=s,this.systemId=u}}var eo=["prefers-color-scheme","prefers-reduced-motion","forced-colors","orientation","min-width","max-width","width","min-height","max-height","height"];function z(r,s){let u=Number.parseFloat(r);if(!Number.isFinite(u))return Number.NaN;return s==="em"||s==="rem"?u*16:u}function U(r,s){let u=/^\(\s*([\w-]+)\s*(?::\s*([^)]+?)\s*)?\)$/.exec(r.trim());if(!u)return!1;let[,h,m]=u,b=(m??"").trim().toLowerCase();switch(h.toLowerCase()){case"prefers-color-scheme":return s.colorScheme===b;case"prefers-reduced-motion":return b===""?s.reducedMotion==="reduce":s.reducedMotion===b;case"forced-colors":return b===""?s.forcedColors==="active":s.forcedColors===b;case"orientation":return(s.height>=s.width?"portrait":"landscape")===b;case"min-width":case"max-width":case"width":case"min-height":case"max-height":case"height":{let g=/^(\d+(?:\.\d+)?)\s*(px|em|rem)?$/.exec(b);if(!g)return!1;let v=z(g[1],g[2]),f=h.endsWith("width")?s.width:s.height;if(h.startsWith("min-"))return f>=v;if(h.startsWith("max-"))return f<=v;return f===v}default:return!1}}function B(r,s){let u=r.trim().toLowerCase();if(u==="")return!1;let h=/^not\s+/.test(u),b=u.replace(/^not\s+/,"").replace(/^only\s+/,"").split(/\s+and\s+/).map((v)=>v.trim()).filter(Boolean);if(b.length===0)return!1;let g=b.every((v)=>{if(!v.startsWith("(")){if(v==="all")return!0;return v===s.type}return U(v,s)});return h?!g:g}function xe(r,s){let u=String(r??"").trim();if(u==="")return!1;return u.split(",").some((h)=>B(h,s))}function q(r){let s=r.replace(/"[^"]*"|'[^']*'/g,'""'),u=0,h=0,m=0,b=s.match(/::[\w-]+/g);m+=b?b.length:0;let g=s.replace(/::[\w-]+/g," "),v=g.match(/#[\w-]+/g);u+=v?v.length:0;let f=g.match(/\.[\w-]+/g);h+=f?f.length:0;let A=g.match(/\[[^\]]*\]/g);h+=A?A.length:0;let x=g.match(/:[\w-]+/g);h+=x?x.length:0;let T=g.replace(/#[\w-]+/g," ").replace(/\.[\w-]+/g," ").replace(/\[[^\]]*\]/g," ").replace(/:[\w-]+(\([^)]*\))?/g," ").replace(/[>+~,()]/g," ").split(/\s+/).filter((L)=>/^[a-z][\w-]*$/i.test(L));return m+=T.length,u*1e6+h*1000+m}function j(r){return r.length===0||r.startsWith("@")}function W(r,s){let u=-1;for(let h of s.split(",")){let m=h.trim();if(!m)continue;let b=!1;try{b=r.matches(m)}catch{b=!1}if(b)u=Math.max(u,q(m))}return u}function K(r,s,u){let h=r.get(s);if(!h||u.specificity>=h.specificity)r.set(s,u)}function ci(r,s,u){let h={normal:new Map,important:new Map},m=0,b=(g)=>{for(let v=0;v<g.length;v++){let f=g[v];if(f?.conditionText!==void 0&&f.cssRules){if(u&&xe(f.conditionText,u))b(f.cssRules);continue}let A=f?.selectorText?.trim();if(!A||j(A)||!f.style)continue;m++;let x=W(r,A);if(x<0)continue;for(let T of f.style){let L=f.style.getPropertyValue(T);if(!L)continue;let P=f.style.getPropertyPriority(T)==="important"?h.important:h.normal;K(P,T,{value:L,specificity:x,order:m})}}};for(let g of s)if(g?.cssRules)b(g.cssRules);return h}function di(r,s,u){let h=s.getPropertyValue(r);if(h!==""&&s.getPropertyPriority(r)==="important")return h;let b=u.important.get(r);if(b)return b.value;if(h)return h;let g=u.normal.get(r);if(g)return g.value;return null}class hi extends _{mode;delegatesFocus;host;constructor(r,s){super();this.host=r,this.mode=s.mode,this.delegatesFocus=s.delegatesFocus||!1,this.parentNode=r,this.ownerDocument=r.ownerDocument,this.nodeName="#shadow-root"}get innerHTML(){return this.childNodes.map((r)=>this._serializeNode(r,void 0)).join("")}set innerHTML(r){while(this.childNodes.length>0)this.removeChild(this.childNodes[0]);if(!r)return;let s=p(r,this.ownerDocument);for(let u of s)this.appendChild(u)}_getEventParent(){return this.host}_serializeNode(r,s){if(r.nodeType===i){let u=r.nodeValue||"";if(s==="SCRIPT"||s==="STYLE")return u;return Qe(u)}if(r.nodeType===c)return`<!--${r.nodeValue||""}-->`;if(r.nodeType===t){let u=r,h=u.tagName.toLowerCase(),m=`<${h}`;for(let[g,v]of u.attributes)m+=` ${g}="${mi(v)}"`;if(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(h))return`${m}>`;m+=">";for(let g of u.childNodes)m+=this._serializeNode(g,u.tagName);return m+=`</${h}>`,m}return""}}var X=new Set(["DIV","P","H1","H2","H3","H4","H5","H6","UL","OL","LI","TABLE","TR","BLOCKQUOTE","PRE","HR","SECTION","ARTICLE","NAV","HEADER","FOOTER","MAIN","ASIDE","DETAILS","SUMMARY","FORM","FIELDSET","ADDRESS","DL","DT","DD","FIGURE","FIGCAPTION"]);class e extends d{nodeType=t;nodeKind="element";nodeName;tagName;namespaceURI="http://www.w3.org/1999/xhtml";_shadowRoot=null;_customValidity="";_internalStyles=null;_stylePriorities=null;_styleProxy=null;_datasetProxy=null;_valueState=null;_valueDirty=!1;_checkedState=null;_checkedDirty=!1;_selectedState=null;_selectedDirty=!1;_capturedPointerIds=null;get children(){let r=this.childNodes,s=[];for(let u=0;u<r.length;u++)if(r[u].nodeType===t)s.push(r[u]);return s}constructor(r){super();this.tagName=r.toUpperCase(),this.nodeName=this.tagName}get shadowRoot(){return this._shadowRoot?.mode==="open"?this._shadowRoot:null}_getInternalShadowRoot(){return this._shadowRoot}getAttribute(r){return this.attributes.get(r.toLowerCase())??null}getAttributeNS(r,s){return this.getAttribute(s)}setAttribute(r,s){let u=r.toLowerCase(),h=`${s}`,m=this.attributes.get(u)??null;if(this.attributes.set(u,h),u==="id"){let b=this.ownerDocument;if(b&&b._idIndex){if(m!==null)b._idIndex.delete(m);b._idIndex.set(h,this)}}if(u==="style")this._setStylesFromAttribute(h);if(Ce(this,u,m,h),u==="slot"||u==="name"&&this.tagName==="SLOT")F(this);l._queueMutationRecord({type:"attributes",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:u,attributeNamespace:null,oldValue:m})}setAttributeNS(r,s,u){this.setAttribute(s,u)}removeAttribute(r){let s=r.toLowerCase(),u=this.attributes.get(s)??null;if(u===null)return;if(this.attributes.delete(s),s==="id"){let h=this.ownerDocument;if(h&&h._idIndex)h._idIndex.delete(u)}if(s==="style")this._internalStyles=null,this._stylePriorities=null;if(Ce(this,s,u,null),s==="slot"||s==="name"&&this.tagName==="SLOT")F(this);l._queueMutationRecord({type:"attributes",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:s,attributeNamespace:null,oldValue:u})}removeAttributeNS(r,s){this.removeAttribute(s)}hasAttribute(r){return this.attributes.has(r.toLowerCase())}hasAttributeNS(r,s){return this.hasAttribute(s)}toggleAttribute(r,s){let u=r.toLowerCase();if(s!==void 0){if(s)return this.setAttribute(u,""),!0;return this.removeAttribute(u),!1}if(this.hasAttribute(u))return this.removeAttribute(u),!1;return this.setAttribute(u,""),!0}getAttributeNames(){return Array.from(this.attributes.keys())}get innerText(){let r=this.ownerDocument?.defaultView,u=(this.ownerDocument?.styleSheets?.length??0)+(this.ownerDocument?._adoptedStyleSheets?.length??0)>0&&typeof r?.getComputedStyle==="function"?(N)=>r.getComputedStyle(N):(N)=>N.style,h=[],m=!1,b=!0,g=!1,v=(N)=>{if(m&&!b)h.push(" ");m=!1,h.push(N),b=!1},f=()=>{if(m=!1,h.length===0||h[h.length-1].endsWith(`
3
3
  `))return;h.push(`
4
4
  `),b=!0},A=(N)=>{if(N==="")return;if(N===" "){m=!0;return}if(N.startsWith(" "))m=!0;let S=N.slice(N.startsWith(" ")?1:0,N.endsWith(" ")?-1:void 0);if(S!=="")v(S);if(N.endsWith(" "))m=!0},x=(N,S)=>{if(!N)return;if(S==="pre"||S==="pre-wrap"||S==="break-spaces"){g=!0,v(N);return}if(S==="pre-line"){N.replace(/[^\S\n]+/g," ").split(`
5
5
  `).forEach((V,M)=>{if(M>0)f();A(V)});return}A(N.replace(/\s+/g," "))},T=(N,S)=>{if(N.nodeType===t){let C=N,V=C.tagName;if(V==="BR"){f();return}if(V==="SCRIPT"||V==="STYLE")return;let M=u(C);if(Ui(C,M))return;let D=M?.getPropertyValue?.("white-space")||(V==="PRE"?"pre":S),O=X.has(V);if(O)f();for(let R of C.childNodes)T(R,D);if(O)f()}else if(N.nodeType===i)x(N.nodeValue||"",S)},L=u(this)?.getPropertyValue?.("white-space");for(let N of this.childNodes)T(N,L||(this.tagName==="PRE"?"pre":"normal"));let P=h.join("");return g?P.replace(/^\n+|\n+$/g,""):P.replace(/\n{3,}/g,`
6
6
 
7
- `).trim()}set innerText(r){while(this.childNodes.length>0)this.removeChild(this.childNodes[0]);if(r){let s=new o(r);this.appendChild(s)}}replaceChildren(...r){while(this.childNodes.length>0)this.removeChild(this.childNodes[0]);for(let s of r)if(typeof s==="string")this.appendChild(new o(s));else this.appendChild(s)}appendChild(r){return k(this,r)}removeChild(r){return Oe(this,r)}insertBefore(r,s){return et(this,r,s)}replaceChild(r,s){return tt(this,r,s)}cloneNode(r=!1){let s=this.namespaceURI==="http://www.w3.org/2000/svg"?new(import.meta.require("./chunk-qp0vmpvq.js")).VirtualSVGElement(this.tagName):new e(this.tagName);s.namespaceURI=this.namespaceURI,s.nodeName=this.nodeName,s.tagName=this.tagName;for(let[u,h]of this.attributes)s.setAttribute(u,h);if(r){for(let u of this.childNodes){let h=u.cloneNode?.(!0);if(h)s.appendChild(h)}if(this._shadowRoot){let u=s.attachShadow({mode:this._shadowRoot.mode});for(let h of this._shadowRoot.childNodes){let m=h.cloneNode?.(!0);if(m)u.appendChild(m)}}}return s}closest(r){let s=this;while(s){if(s.matches(r))return s;s=s.parentElement}return null}get parentElement(){if(Wi(this.parentNode))return this.parentNode;return null}get firstChild(){return this.childNodes.length>0?this.childNodes[0]:null}get lastChild(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}get nextSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=r.indexOf(this);if(s===-1||s>=r.length-1)return null;return r[s+1]}get previousSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=r.indexOf(this);if(s<=0)return null;return r[s-1]}get nextElementSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=!1;for(let u=0;u<r.length;u++){if(r[u]===this){s=!0;continue}if(s&&r[u].nodeType===t)return r[u]}return null}get previousElementSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=null;for(let u=0;u<r.length;u++){if(r[u]===this)return s;if(r[u].nodeType===t)s=r[u]}return null}get textContent(){return G(this)}set textContent(r){for(let s of this.childNodes)s.parentNode=null;if(this.childNodes.length=0,r){let s=new o(r);s.parentNode=this,s.ownerDocument=this.ownerDocument,this.childNodes.push(s)}l._queueMutationRecord({type:"childList",target:this,addedNodes:r?[this.childNodes[0]]:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null}),F(this)}_setStylesFromAttribute(r){let s=this._internalStyles??(this._internalStyles=new Map),u=this._stylePriorities??(this._stylePriorities=new Map);s.clear(),u.clear();for(let h of r.split(";")){let m=h.trim();if(!m)continue;let b=m.indexOf(":");if(b===-1)continue;let g=m.slice(0,b).trim().toLowerCase(),v=m.slice(b+1).trim();if(!g)continue;let f="";if(/!important$/i.test(v))v=v.replace(/!important$/i,"").trim(),f="important";if(s.set(g,v),f)u.set(g,f)}}get innerHTML(){return this.childNodes.map((r)=>this._serializeNode(r,this.tagName)).join("")}set innerHTML(r){if(this.childNodes.length>0){let s=this.ownerDocument;if(s?._idIndex&&s._idIndex.size>0)for(let u of this.childNodes)Me(u);for(let u of this.childNodes)u.parentNode=null;this.childNodes.length=0}if(r){let s=p(r,this.ownerDocument);if(this.tagName==="HTML"&&s.length>0)for(let u of s){if(u.nodeType===t){let h=u;if(h.tagName==="HTML"){for(let m of[...h.childNodes])this.appendChild(m);continue}}this.appendChild(u)}else for(let u of s)this.appendChild(u)}F(this)}get outerHTML(){return this._serializeNode(this)}set outerHTML(r){let s=this.parentNode;if(!s)throw new DOMException("This element has no parent node.","NoModificationAllowedError");let u=p(r,this.ownerDocument),h=s.childNodes.indexOf(this);Oe(s,this);for(let m=0;m<u.length;m++){let b=u[m];s.childNodes.splice(h+m,0,b),b.parentNode=s;let g=this.ownerDocument;if(g)E(b,g)}}get className(){return this.getAttribute("class")||""}set className(r){this.setAttribute("class",r)}get slot(){return this.getAttribute("slot")||""}set slot(r){this.setAttribute("slot",r)}get classList(){let r=this,s=()=>r.getAttribute("class")?.split(/\s+/).filter(Boolean)||[];return{add(...u){let h=s();for(let m of u)if(!h.includes(m))h.push(m);r.setAttribute("class",h.join(" "))},remove(...u){let m=s().filter((b)=>!u.includes(b));if(m.length>0)r.setAttribute("class",m.join(" "));else r.removeAttribute("class")},toggle(u,h){let m=s(),b=m.indexOf(u);if(h===void 0?b===-1:h){if(b===-1)m.push(u),r.setAttribute("class",m.join(" "));return!0}if(b!==-1)if(m.splice(b,1),m.length>0)r.setAttribute("class",m.join(" "));else r.removeAttribute("class");return!1},contains(u){return s().includes(u)},replace(u,h){let m=s(),b=m.indexOf(u);if(b!==-1)return m[b]=h,r.setAttribute("class",m.join(" ")),!0;return!1},get length(){return s().length},item(u){return s()[u]??null},get value(){return r.getAttribute("class")||""},toString(){return r.getAttribute("class")||""},forEach(u){let h=s();for(let m=0;m<h.length;m++)u(h[m],m,this)},*[Symbol.iterator](){yield*s()},*entries(){let u=s();for(let h=0;h<u.length;h++)yield[h,u[h]]},*keys(){let u=s();for(let h=0;h<u.length;h++)yield h},*values(){yield*s()}}}_serializeNode(r,s){if(r.nodeType===i){let u=r.nodeValue||"";if(s==="SCRIPT"||s==="STYLE")return u;return Qe(u)}if(r.nodeType===c)return`<!--${r.nodeValue}-->`;if(r.nodeType===t){let u=r,h=u.tagName.toLowerCase(),m=`<${h}`;for(let[g,v]of u.attributes)m+=` ${g}="${mi(v)}"`;if(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(h))return m+=">",m;m+=">";for(let g of u.childNodes)m+=this._serializeNode(g,u.tagName);return m+=`</${h}>`,m}return""}get style(){if(this._styleProxy)return this._styleProxy;let r=this;return this._styleProxy=new Proxy({getPropertyValue(s){return r._internalStyles?.get(s)||""},getPropertyPriority(s){return r._stylePriorities?.get(s)||""},setProperty(s,u,h=""){let m=`${u}`,b=m.trim();if(b==="NaN"||b.includes("NaN"))return;if((r._internalStyles??(r._internalStyles=new Map)).set(s,m),h)(r._stylePriorities??(r._stylePriorities=new Map)).set(s,h);else r._stylePriorities?.delete(s);r._updateStyleAttribute()},removeProperty(s){let u=r._internalStyles?.get(s)||"";return r._internalStyles?.delete(s),r._stylePriorities?.delete(s),r._updateStyleAttribute(),u},item(s){if(!r._internalStyles)return"";return Array.from(r._internalStyles.keys())[s]||""},get length(){return r._internalStyles?.size??0},get cssText(){if(!r._internalStyles)return"";return Array.from(r._internalStyles.entries()).map(([s,u])=>{let h=r._stylePriorities?.get(s);return h?`${s}: ${u} !${h}`:`${s}: ${u}`}).join("; ")},set cssText(s){if(r._internalStyles=null,r._stylePriorities=null,s)r._setStylesFromAttribute(s);r._updateStyleAttribute()}},{get(s,u){if(u==="getPropertyValue"||u==="getPropertyPriority"||u==="setProperty"||u==="removeProperty"||u==="item"||u==="length"||u==="cssText"){let m=s[u];return typeof m==="function"?m.bind(s):m}let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r._internalStyles?.get(h)},set(s,u,h){if(u==="cssText")return s.cssText=h,!0;let m=u.replace(/[A-Z]/g,(g)=>`-${g.toLowerCase()}`);return(r._internalStyles??(r._internalStyles=new Map)).set(m,`${h}`),r._stylePriorities?.delete(m),r._updateStyleAttribute(),!0}}),this._styleProxy}_updateStyleAttribute(){if(!this._internalStyles||this._internalStyles.size===0){if(this.attributes.has("style"))this.removeAttribute("style");return}let r="";for(let[s,u]of this._internalStyles){if(r)r+="; ";let h=this._stylePriorities?.get(s);r+=h?`${s}: ${u} !${h}`:`${s}: ${u}`}if(r){let s=this.attributes.get("style")??null;this.attributes.set("style",r),l._queueMutationRecord({type:"attributes",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:"style",attributeNamespace:null,oldValue:s})}else this.removeAttribute("style")}get dataset(){if(this._datasetProxy)return this._datasetProxy;let r=this;return this._datasetProxy=new Proxy({},{get(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r.getAttribute(`data-${h}`)||""},set(s,u,h){let m=u.replace(/[A-Z]/g,(b)=>`-${b.toLowerCase()}`);return r.setAttribute(`data-${m}`,h),!0},deleteProperty(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r.removeAttribute(`data-${h}`),!0},has(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r.hasAttribute(`data-${h}`)},ownKeys(s){let u=[];for(let[h]of r.attributes)if(h.startsWith("data-")){let m=h.slice(5).replace(/-([a-z])/g,(b,g)=>g.toUpperCase());u.push(m)}return u},getOwnPropertyDescriptor(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);if(r.hasAttribute(`data-${h}`))return{configurable:!0,enumerable:!0,writable:!0,value:r.getAttribute(`data-${h}`)};return}}),this._datasetProxy}_isInputElement(){return this.tagName==="INPUT"}_isTextareaElement(){return this.tagName==="TEXTAREA"}_isSelectElement(){return this.tagName==="SELECT"}_isOptionElement(){return this.tagName==="OPTION"}_getInputType(){return this._isInputElement()?(this.getAttribute("type")||"text").toLowerCase():""}_getOptionValue(){let r=this.getAttribute("value");return r!==null?r:this.textContent}_getSelectOptions(){return this._isSelectElement()?this.querySelectorAll("option"):[]}_getSelectedOptionsInternal(){let r=this._getSelectOptions();if(r.length===0)return[];let s=r.filter((u)=>u.selected);if(this.hasAttribute("multiple"))return s;return s.length>0?[s[0]]:[r[0]]}_getOwningSelect(){let r=this.parentNode;while(r){if(r.tagName==="SELECT")return r;r=r.parentNode}return null}_isButtonElement(){return this.tagName==="BUTTON"}_isFormElement(){return this.tagName==="FORM"}_isFieldsetElement(){return this.tagName==="FIELDSET"}_isLegendElement(){return this.tagName==="LEGEND"}_isLabelElement(){return this.tagName==="LABEL"}_isLabelableElement(){if(this._isInputElement())return this._getInputType()!=="hidden";return this._isButtonElement()||this._isSelectElement()||this._isTextareaElement()||this.tagName==="METER"||this.tagName==="OUTPUT"||this.tagName==="PROGRESS"}_isListedFormAssociatedElement(){return["BUTTON","FIELDSET","INPUT","OBJECT","OUTPUT","SELECT","TEXTAREA"].includes(this.tagName)}_collectDescendantElements(r=this){let s=[],u=(h)=>{for(let m of h.childNodes)if(m.nodeType===t){let b=m;s.push(b),u(b)}};return u(r),s}_isWithinFirstLegendOfFieldset(r){let s=r.children.find((u)=>u.tagName==="LEGEND");if(!s)return!1;return s===this||Ve(s,this)}_isActuallyDisabled(){if(this.hasAttribute("disabled"))return!0;if(this._isOptionElement()){let s=this.parentElement;if(s?.tagName==="OPTGROUP"&&s.disabled)return!0}if(!["BUTTON","INPUT","OPTION","OPTGROUP","SELECT","TEXTAREA"].includes(this.tagName))return!1;let r=this.parentNode;while(r){if(r.tagName==="FIELDSET"&&r.hasAttribute("disabled")){if(!this._isWithinFirstLegendOfFieldset(r))return!0}r=r.parentNode}return!1}_resetFormControlState(){if(this._isInputElement()||this._isTextareaElement())this._valueDirty=!1,this._valueState=null;if(this._isInputElement())this._checkedDirty=!1,this._checkedState=null;if(this._isOptionElement())this._selectedDirty=!1,this._selectedState=null;if(this._isSelectElement())for(let r of this._getSelectOptions())r._selectedDirty=!1,r._selectedState=null}_syncRadioGroupSelection(){if(!this._isInputElement()||this._getInputType()!=="radio"||!this.checked)return;let r=this.getAttribute("name");if(!r)return;let u=(this.form??this.ownerDocument?.documentElement??this.parentNode)?.querySelectorAll?.("input")??[];for(let h of u){if(h===this)continue;if((h.getAttribute("type")||"text").toLowerCase()!=="radio"||h.getAttribute("name")!==r)continue;if(this.form?h.form!==this.form:h.form!==null)continue;h._checkedDirty=!0,h._checkedState=!1}}get form(){if(this._isOptionElement())return this._getOwningSelect()?.form??null;return["BUTTON","FIELDSET","INPUT","OBJECT","OUTPUT","SELECT","TEXTAREA"].includes(this.tagName)?this.closest("form"):null}get elements(){if(this._isFormElement())return this._collectDescendantElements().filter((r)=>r._isListedFormAssociatedElement()&&r.form===this);if(this._isFieldsetElement())return this._collectDescendantElements().filter((r)=>r._isListedFormAssociatedElement());return[]}get labels(){if(!this._isLabelableElement())return[];let r=[],s=this.parentNode;while(s){if(s.tagName==="LABEL")r.push(s);s=s.parentNode}let u=this.id;if(u&&this.ownerDocument){for(let h of this.ownerDocument.querySelectorAll("label"))if(h.getAttribute("for")===u&&!r.includes(h))r.push(h)}return r}get type(){if(this._isInputElement())return this._getInputType();if(this._isButtonElement())return(this.getAttribute("type")||"submit").toLowerCase();return this.getAttribute("type")||""}set type(r){this.setAttribute("type",r)}get name(){return this.getAttribute("name")||""}set name(r){this.setAttribute("name",r)}get id(){return this.getAttribute("id")||""}set id(r){this.setAttribute("id",r)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(r){this.setAttribute("for",r)}get hidden(){return this.hasAttribute("hidden")}set hidden(r){if(r)this.setAttribute("hidden","");else this.removeAttribute("hidden")}get title(){return this.getAttribute("title")||""}set title(r){this.setAttribute("title",r)}get lang(){return this.getAttribute("lang")||""}set lang(r){this.setAttribute("lang",r)}get dir(){return this.getAttribute("dir")||""}set dir(r){this.setAttribute("dir",r)}get contentEditable(){let r=this.getAttribute("contenteditable");if(r===null)return"inherit";if(r===""||r==="true")return"true";if(r==="false")return"false";return"inherit"}set contentEditable(r){if(r==="inherit")this.removeAttribute("contenteditable");else this.setAttribute("contenteditable",r)}get draggable(){return this.getAttribute("draggable")==="true"}set draggable(r){this.setAttribute("draggable",String(r))}get spellcheck(){return this.getAttribute("spellcheck")!=="false"}set spellcheck(r){this.setAttribute("spellcheck",String(r))}get translate(){return this.getAttribute("translate")!=="no"}set translate(r){this.setAttribute("translate",r?"yes":"no")}get accessKey(){return this.getAttribute("accesskey")||""}set accessKey(r){this.setAttribute("accesskey",r)}get autocapitalize(){return this.getAttribute("autocapitalize")||""}set autocapitalize(r){this.setAttribute("autocapitalize",r)}get isContentEditable(){let r=this.contentEditable;if(r==="true")return!0;if(r==="false")return!1;if(this.parentElement)return this.parentElement.isContentEditable;return!1}get required(){return this.hasAttribute("required")}set required(r){if(r)this.setAttribute("required","");else this.removeAttribute("required")}get readOnly(){return this.hasAttribute("readonly")}set readOnly(r){if(r)this.setAttribute("readonly","");else this.removeAttribute("readonly")}get autofocus(){return this.hasAttribute("autofocus")}set autofocus(r){if(r)this.setAttribute("autofocus","");else this.removeAttribute("autofocus")}get multiple(){return this.hasAttribute("multiple")}set multiple(r){if(r)this.setAttribute("multiple","");else this.removeAttribute("multiple")}get noValidate(){return this.hasAttribute("novalidate")}set noValidate(r){if(r)this.setAttribute("novalidate","");else this.removeAttribute("novalidate")}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(r){this.setAttribute("placeholder",r)}get src(){return this.getAttribute("src")||""}set src(r){this.setAttribute("src",r)}get href(){return this.getAttribute("href")||""}set href(r){this.setAttribute("href",r)}get rel(){return this.getAttribute("rel")||""}set rel(r){this.setAttribute("rel",r)}get target(){return this.getAttribute("target")||""}set target(r){this.setAttribute("target",r)}get role(){return this.getAttribute("role")||""}set role(r){this.setAttribute("role",r)}get outerText(){return this.innerText}set outerText(r){if(!this.parentNode)throw new DOMException("This element has no parent node.","NoModificationAllowedError");let s=new o(r);this.parentNode.replaceChild(s,this)}get minLength(){let r=this.getAttribute("minlength");return r!==null?Number.parseInt(r,10):-1}set minLength(r){this.setAttribute("minlength",String(r))}get maxLength(){let r=this.getAttribute("maxlength");return r!==null?Number.parseInt(r,10):-1}set maxLength(r){this.setAttribute("maxlength",String(r))}get size(){let r=this.getAttribute("size");return r!==null?Number.parseInt(r,10):20}set size(r){this.setAttribute("size",String(r))}get rows(){let r=this.getAttribute("rows");return r!==null?Number.parseInt(r,10):2}set rows(r){this.setAttribute("rows",String(r))}get cols(){let r=this.getAttribute("cols");return r!==null?Number.parseInt(r,10):20}set cols(r){this.setAttribute("cols",String(r))}get download(){return this.getAttribute("download")||""}set download(r){this.setAttribute("download",r)}getAttributeNode(r){let s=r.toLowerCase(),u=this.attributes.get(s);if(u===void 0)return null;return{name:s,value:u,specified:!0,ownerElement:this}}setAttributeNode(r){let s=this.getAttributeNode(r.name);return this.setAttribute(r.name,r.value),s}removeAttributeNode(r){let s=this.getAttributeNode(r.name);if(!s)throw new DOMException("The attribute is not found.","NotFoundError");return this.removeAttribute(r.name),s}hasAttributes(){return this.attributes.size>0}get willValidate(){if(!this._isListedFormAssociatedElement()||this.disabled)return!1;if(this._isFieldsetElement()||this.tagName==="OUTPUT")return!1;if(this._isInputElement())return!["button","hidden","image","reset","submit"].includes(this._getInputType());if(this._isButtonElement())return!1;return this._isSelectElement()||this._isTextareaElement()}get value(){if(this._isOptionElement())return this._getOptionValue();if(this._isTextareaElement())return this._valueDirty?this._valueState??"":G(this);if(this._isInputElement()){if(this._valueDirty)return this._valueState??"";let r=this.getAttribute("value");if(r!==null)return r;let s=this._getInputType();return s==="checkbox"||s==="radio"?"on":""}if(this._isSelectElement())return this._getSelectedOptionsInternal()[0]?.value??"";return this.getAttribute("value")||""}set value(r){let s=`${r}`;if(this._isTextareaElement()||this._isInputElement()){this._valueDirty=!0,this._valueState=s;return}if(this._isSelectElement()){let u=!1;for(let h of this._getSelectOptions()){let m=!u&&h.value===s;if(h.selected=m,m)u=!0}if(!u)this.selectedIndex=-1;return}this.setAttribute("value",s)}get defaultValue(){if(this._isTextareaElement())return G(this);return this.getAttribute("value")||""}set defaultValue(r){let s=`${r}`;if(this._isTextareaElement()){if(this.textContent=s,!this._valueDirty)this._valueState=null;return}if(this.setAttribute("value",s),!this._valueDirty)this._valueState=null}get checked(){if(!this._isInputElement())return!1;let r=this._getInputType();if(r!=="checkbox"&&r!=="radio")return!1;return this._checkedDirty?Boolean(this._checkedState):this.hasAttribute("checked")}set checked(r){if(!this._isInputElement())return;let s=this._getInputType();if(s!=="checkbox"&&s!=="radio")return;let u=Boolean(r);if(this._checkedDirty=!0,this._checkedState=u,s==="radio"&&u)this._syncRadioGroupSelection()}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(r){if(r)this.setAttribute("checked","");else this.removeAttribute("checked")}get selected(){if(!this._isOptionElement())return!1;return this._selectedDirty?Boolean(this._selectedState):this.hasAttribute("selected")}set selected(r){if(!this._isOptionElement())return;let s=Boolean(r),u=this._getOwningSelect();if(s&&u&&!u.hasAttribute("multiple"))for(let h of u._getSelectOptions()){if(h===this)continue;h._selectedDirty=!0,h._selectedState=!1}this._selectedDirty=!0,this._selectedState=s}get defaultSelected(){return this.hasAttribute("selected")}set defaultSelected(r){if(r)this.setAttribute("selected","");else this.removeAttribute("selected")}get options(){return this._getSelectOptions()}get selectedOptions(){if(this._isSelectElement())return this._getSelectedOptionsInternal();return this._isOptionElement()&&this.selected?[this]:[]}get selectedIndex(){if(!this._isSelectElement())return-1;let r=this._getSelectOptions(),s=this._getSelectedOptionsInternal()[0];return s?r.indexOf(s):-1}set selectedIndex(r){if(!this._isSelectElement())return;let s=this._getSelectOptions();for(let u=0;u<s.length;u++)s[u].selected=r>=0&&u===r}get validity(){let r=this.value,s=this.type||"text",u=this.hasAttribute("required"),h=this.getAttribute("pattern"),m=this.getAttribute("minlength"),b=this.getAttribute("maxlength"),g=this.getAttribute("min"),v=this.getAttribute("max"),f={valid:!0,valueMissing:!1,typeMismatch:!1,patternMismatch:!1,tooLong:!1,tooShort:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,badInput:!1,customError:!1};if(!this.willValidate)return f;if(u&&(s==="checkbox"||s==="radio"?!this.checked:!r))f.valueMissing=!0,f.valid=!1;if(h&&r){if(!new RegExp(h).test(r))f.patternMismatch=!0,f.valid=!1}if(m&&r.length<Number.parseInt(m,10))f.tooShort=!0,f.valid=!1;if(b&&r.length>Number.parseInt(b,10))f.tooLong=!0,f.valid=!1;if(s==="number"||s==="range"){let A=Number.parseFloat(r);if(!Number.isNaN(A)){if(g&&A<Number.parseFloat(g))f.rangeUnderflow=!0,f.valid=!1;if(v&&A>Number.parseFloat(v))f.rangeOverflow=!0,f.valid=!1}}if(s==="email"&&r){if(!/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(r))f.typeMismatch=!0,f.valid=!1}if(s==="url"&&r)try{new URL(r)}catch{f.typeMismatch=!0,f.valid=!1}if(this._customValidity)f.customError=!0,f.valid=!1;return f}get validationMessage(){if(this._customValidity)return this._customValidity;let r=this.validity;if(r.valueMissing)return"Please fill out this field.";if(r.typeMismatch){let s=this.getAttribute("type");if(s==="email")return"Please enter an email address.";if(s==="url")return"Please enter a URL.";return"Please match the requested format."}if(r.patternMismatch)return"Please match the requested format.";if(r.tooShort)return`Please lengthen this text to ${this.getAttribute("minlength")} characters or more.`;if(r.tooLong)return`Please shorten this text to ${this.getAttribute("maxlength")} characters or less.`;if(r.rangeUnderflow)return`Value must be greater than or equal to ${this.getAttribute("min")}.`;if(r.rangeOverflow)return`Value must be less than or equal to ${this.getAttribute("max")}.`;return""}setCustomValidity(r){this._customValidity=r}checkValidity(){if(this._isFormElement()||this._isFieldsetElement())return this.elements.every((r)=>r.checkValidity());return this.validity.valid}reportValidity(){if(this._isFormElement()||this._isFieldsetElement())return this.elements.every((s)=>s.reportValidity());let r=this.checkValidity();if(!r){let s=new n("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(s)}return r}querySelector(r){return I(this,r)}querySelectorAll(r){return y(this,r)}matches(r){if(pi(r)){let s=this;while(s.parentNode&&s.parentNode.nodeType!==a)s=s.parentNode;if(s.parentNode&&s.parentNode.nodeType===a)s=s.parentNode;return fi(this,r,s)}else return w(this,r,this)}webkitMatchesSelector(r){return this.matches(r)}get action(){if(!this._isFormElement())return"";return this.getAttribute("action")||""}set action(r){if(this._isFormElement())this.setAttribute("action",r)}get method(){if(!this._isFormElement())return"";return(this.getAttribute("method")||"get").toLowerCase()}set method(r){if(this._isFormElement())this.setAttribute("method",r)}get enctype(){if(!this._isFormElement())return"";return this.getAttribute("enctype")||"application/x-www-form-urlencoded"}set enctype(r){if(this._isFormElement())this.setAttribute("enctype",r)}get encoding(){return this.enctype}set encoding(r){this.enctype=r}addEventListener(r,s,u={}){super.addEventListener(r,s,u)}removeEventListener(r,s,u={}){super.removeEventListener(r,s,u)}dispatchEvent(r){return super.dispatchEvent(r)}focus(){let r=this.ownerDocument;if(r){let s=r.activeElement;if(s&&s!==this&&s!==r.body)s.dispatchEvent(new n("blur",{bubbles:!1})),s.dispatchEvent(new n("focusout",{bubbles:!0}));r._setFocusedElement(this)}this.dispatchEvent(new n("focus",{bubbles:!1})),this.dispatchEvent(new n("focusin",{bubbles:!0}))}blur(){let r=this.ownerDocument;if(r&&r.activeElement===this)r._setFocusedElement(null);this.dispatchEvent(new n("blur",{bubbles:!1})),this.dispatchEvent(new n("focusout",{bubbles:!0}))}scrollIntoView(r){this._scrollTop=0,this._scrollLeft=0;let s=new n("scroll",{bubbles:!1});this.dispatchEvent(s)}scrollTo(r,s){if(typeof r==="object"&&r!==null){if(typeof r.left==="number")this._scrollLeft=r.left;if(typeof r.top==="number")this._scrollTop=r.top}else{if(typeof r==="number")this._scrollLeft=r;if(typeof s==="number")this._scrollTop=s}let u=new n("scroll",{bubbles:!1});this.dispatchEvent(u)}scrollBy(r,s){if(typeof r==="object"&&r!==null){if(typeof r.left==="number")this._scrollLeft+=r.left;if(typeof r.top==="number")this._scrollTop+=r.top}else{if(typeof r==="number")this._scrollLeft+=r;if(typeof s==="number")this._scrollTop+=s}let u=new n("scroll",{bubbles:!1});this.dispatchEvent(u)}_isMediaElement(){return this.tagName==="AUDIO"||this.tagName==="VIDEO"}_mediaPaused=!0;_mediaEnded=!1;_mediaCurrentTime=0;_mediaDuration=Number.NaN;_mediaVolume=1;_mediaMuted=!1;_mediaPlaybackRate=1;_mediaReadyState=0;_mediaNetworkState=0;get paused(){if(!this._isMediaElement())return!0;return this._mediaPaused}get ended(){if(!this._isMediaElement())return!1;return this._mediaEnded}get currentTime(){if(!this._isMediaElement())return 0;return this._mediaCurrentTime}set currentTime(r){if(!this._isMediaElement())return;this._mediaCurrentTime=r,this.dispatchEvent(new n("timeupdate",{bubbles:!1}))}get duration(){if(!this._isMediaElement())return 0;return this._mediaDuration}get volume(){if(!this._isMediaElement())return 1;return this._mediaVolume}set volume(r){if(!this._isMediaElement())return;this._mediaVolume=Math.max(0,Math.min(1,r)),this.dispatchEvent(new n("volumechange",{bubbles:!1}))}get muted(){if(!this._isMediaElement())return!1;return this._mediaMuted}set muted(r){if(!this._isMediaElement())return;this._mediaMuted=Boolean(r),this.dispatchEvent(new n("volumechange",{bubbles:!1}))}get playbackRate(){if(!this._isMediaElement())return 1;return this._mediaPlaybackRate}set playbackRate(r){if(!this._isMediaElement())return;this._mediaPlaybackRate=r,this.dispatchEvent(new n("ratechange",{bubbles:!1}))}get readyState(){if(!this._isMediaElement())return 0;return this._mediaReadyState}get networkState(){if(!this._isMediaElement())return 0;return this._mediaNetworkState}play(){if(!this._isMediaElement())return Promise.reject(new DOMException("Not a media element","InvalidStateError"));let r=this._mediaPaused;if(this._mediaPaused=!1,this._mediaEnded=!1,r)queueMicrotask(()=>{this.dispatchEvent(new n("play",{bubbles:!1})),this.dispatchEvent(new n("playing",{bubbles:!1}))});return Promise.resolve()}pause(){if(!this._isMediaElement())return;if(this._mediaPaused)return;this._mediaPaused=!0,queueMicrotask(()=>{this.dispatchEvent(new n("pause",{bubbles:!1}))})}load(){if(!this._isMediaElement())return;this._mediaCurrentTime=0,this._mediaEnded=!1,this._mediaPaused=!0,queueMicrotask(()=>{this.dispatchEvent(new n("loadstart",{bubbles:!1})),this.dispatchEvent(new n("loadedmetadata",{bubbles:!1}))})}canPlayType(r){if(!this._isMediaElement())return"";return"maybe"}addTextTrack(r,s,u){return{kind:r,label:s??"",language:u??"",mode:"disabled"}}decode(){return Promise.resolve()}animate(r,s){let u={play:()=>{},pause:()=>{},cancel:()=>{},finish:()=>{if(u.onfinish)try{u.onfinish(new n("finish"))}catch{}},reverse:()=>{},finished:Promise.resolve({currentTime:0}),playState:"finished",currentTime:0,onfinish:null,oncancel:null};return u}getClientRects(){return[]}_validateInsertAdjacentPosition(r){let s=r.toLowerCase();if(s!=="beforebegin"&&s!=="afterbegin"&&s!=="beforeend"&&s!=="afterend")throw new DOMException(`Failed to execute 'insertAdjacentHTML' on 'Element': The value provided ('${r}') is not one of 'beforeBegin', 'afterBegin', 'beforeEnd', or 'afterEnd'.`,"SyntaxError");return s}insertAdjacentHTML(r,s){let u=this._validateInsertAdjacentPosition(r),h=p(s,this.ownerDocument);switch(u){case"beforebegin":if(this.parentNode)for(let m of h)this.parentNode.insertBefore(m,this);break;case"afterbegin":for(let m=h.length-1;m>=0;m--)this.insertBefore(h[m],this.firstChild);break;case"beforeend":for(let m of h)this.appendChild(m);break;case"afterend":if(this.parentNode){let m=this.nextSibling;for(let b of h)this.parentNode.insertBefore(b,m)}break}}insertAdjacentElement(r,s){switch(this._validateInsertAdjacentPosition(r)){case"beforebegin":if(this.parentNode)return this.parentNode.insertBefore(s,this),s;return null;case"afterbegin":return this.insertBefore(s,this.firstChild),s;case"beforeend":return this.appendChild(s),s;case"afterend":if(this.parentNode)return this.parentNode.insertBefore(s,this.nextSibling),s;return null;default:return null}}insertAdjacentText(r,s){let u=this._validateInsertAdjacentPosition(r),h=new o(s);switch(u){case"beforebegin":if(this.parentNode)this.parentNode.insertBefore(h,this);break;case"afterbegin":this.insertBefore(h,this.firstChild);break;case"beforeend":this.appendChild(h);break;case"afterend":if(this.parentNode)this.parentNode.insertBefore(h,this.nextSibling);break}}click(){if(this.disabled)return;let r=new n("click",{bubbles:!0,cancelable:!0});if(!this.dispatchEvent(r))return;if(this._isInputElement()){let u=this._getInputType();if(u==="checkbox")this.checked=!this.checked;else if(u==="radio")this.checked=!0;else if((u==="submit"||u==="image")&&this.form)this.form.requestSubmit(this);else if(u==="reset"&&this.form)this.form.reset()}if(this._isButtonElement()&&this.form){if(this.type==="reset")this.form.reset();else if(this.type==="submit")this.form.requestSubmit(this)}if(this.tagName==="A"&&this.href){let u=this.ownerDocument?.defaultView;if(!u)return;let h=this.href;try{h=new URL(h,u.location.href).href}catch{}if(this.target==="_blank"){let b=this.rel.toLowerCase().split(/\s+/).filter((g)=>g==="noopener"||g==="noreferrer").join(",");u.open(h,"_blank",b)}else u.location.href=h}}submit(){if(!this._isFormElement())return;let r=new n("submit",{bubbles:!0,cancelable:!0});r.submitter=null,this.dispatchEvent(r)}requestSubmit(r){if(!this._isFormElement())return;if(r&&r.form!==this)throw Error("The specified element is not owned by this form element");if(!this.reportValidity())return;let s=new n("submit",{bubbles:!0,cancelable:!0});s.submitter=r??null,this.dispatchEvent(s)}reset(){if(!this._isFormElement())return;let r=new n("reset",{bubbles:!0,cancelable:!0});if(!this.dispatchEvent(r))return;for(let u of this.elements)u._resetFormControlState()}get tabIndex(){let r=this.getAttribute("tabindex");if(r!==null)return Number.parseInt(r,10);if(this.tagName==="A"||this.tagName==="BUTTON"||this.tagName==="INPUT"||this.tagName==="TEXTAREA"||this.tagName==="SELECT")return 0;return-1}set tabIndex(r){this.setAttribute("tabindex",String(r))}get disabled(){if(!["BUTTON","FIELDSET","INPUT","OPTION","OPTGROUP","SELECT","TEXTAREA"].includes(this.tagName))return this.hasAttribute("disabled");return this._isActuallyDisabled()}set disabled(r){if(r)this.setAttribute("disabled","");else this.removeAttribute("disabled")}get clientLeft(){return 0}get clientTop(){return 0}get clientWidth(){return this._resolveInlineSize("width")}get clientHeight(){return this._resolveInlineSize("height")}get offsetWidth(){return this._resolveInlineSize("width")}get offsetHeight(){return this._resolveInlineSize("height")}get offsetTop(){return 0}get offsetLeft(){return 0}_resolveInlineSize(r,s){let u=this._cascadedStyleValue(r,s);if(u){let m=this._parseCssSize(u,r);if(m!==null)return m}let h=this.attributes.get(r);if(h!==void 0&&h!==""){let m=this._parseCssSize(h,r);if(m!==null)return m}return 0}_cascadedStyleValue(r,s){let u=this._internalStyles?.get(r)??"",h=s===void 0?this._buildCascade():s;if(!h)return u;return di(r,this.style,h)??u}_buildCascade(){let r=this.ownerDocument;if(!r)return null;let s=r._adoptedStyleSheets??[],u=r.styleSheets??[];if(u.length===0&&s.length===0)return null;return ci(this,[...u,...s],r.defaultView?._mediaContext?.())}_parseCssSize(r,s){let u=r.trim();if(u===""||u==="auto")return null;if(u.endsWith("%")){let m=Number.parseFloat(u);if(!Number.isFinite(m))return null;let b=this.parentElement;if(!b)return null;let g=b._resolveInlineSize(s);if(g===0)return null;return m/100*g}let h=/^(-?\d*\.?\d+)(px)?$/i.exec(u);if(h){let m=Number.parseFloat(h[1]);return Number.isFinite(m)?m:null}return null}get offsetParent(){return this.parentElement}get scrollWidth(){return 0}get scrollHeight(){return 0}_scrollTop=0;_scrollLeft=0;get scrollTop(){return this._scrollTop}set scrollTop(r){this._scrollTop=r}get scrollLeft(){return this._scrollLeft}set scrollLeft(r){this._scrollLeft=r}getBoundingClientRect(){let r=this._buildCascade(),s=this._resolveInlineSize("width",r),u=this._resolveInlineSize("height",r);return new H(0,0,s,u)}setPointerCapture(r){this._capturedPointerIds??=new Set,this._capturedPointerIds.add(r)}releasePointerCapture(r){this._capturedPointerIds?.delete(r)}hasPointerCapture(r){return this._capturedPointerIds?.has(r)??!1}isVisible(){let r=this;while(r){if(r.style.getPropertyValue("display")==="none")return!1;let u=r.style.getPropertyValue("visibility");if(u==="hidden"||u==="collapse")return!1;if(r.style.getPropertyValue("opacity")==="0")return!1;r=r.parentElement}return!0}attachShadow(r){if(this._shadowRoot)throw Error("Shadow root already exists");return this._shadowRoot=new hi(this,r),this._shadowRoot}_setOwnerDocument(r,s){E(r,s)}_rootNode(r){let s=r;while(s.parentNode)s=s.parentNode;return s}_containsNode(r,s){return r!==s&&Ve(r,s)}_documentOrder(r){let s=[],u=(h)=>{s.push(h);let m=h.childNodes??h.children??[];for(let b of m)u(b)};return u(r),s}}
7
+ `).trim()}set innerText(r){while(this.childNodes.length>0)this.removeChild(this.childNodes[0]);if(r){let s=new o(r);this.appendChild(s)}}replaceChildren(...r){while(this.childNodes.length>0)this.removeChild(this.childNodes[0]);for(let s of r)if(typeof s==="string")this.appendChild(new o(s));else this.appendChild(s)}appendChild(r){return k(this,r)}removeChild(r){return Oe(this,r)}insertBefore(r,s){return et(this,r,s)}replaceChild(r,s){return tt(this,r,s)}cloneNode(r=!1){let s=this.namespaceURI==="http://www.w3.org/2000/svg"?new(import.meta.require("./chunk-a6pxryjh.js")).VirtualSVGElement(this.tagName):new e(this.tagName);s.namespaceURI=this.namespaceURI,s.nodeName=this.nodeName,s.tagName=this.tagName;for(let[u,h]of this.attributes)s.setAttribute(u,h);if(r){for(let u of this.childNodes){let h=u.cloneNode?.(!0);if(h)s.appendChild(h)}if(this._shadowRoot){let u=s.attachShadow({mode:this._shadowRoot.mode});for(let h of this._shadowRoot.childNodes){let m=h.cloneNode?.(!0);if(m)u.appendChild(m)}}}return s}closest(r){let s=this;while(s){if(s.matches(r))return s;s=s.parentElement}return null}get parentElement(){if(Wi(this.parentNode))return this.parentNode;return null}get firstChild(){return this.childNodes.length>0?this.childNodes[0]:null}get lastChild(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}get nextSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=r.indexOf(this);if(s===-1||s>=r.length-1)return null;return r[s+1]}get previousSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=r.indexOf(this);if(s<=0)return null;return r[s-1]}get nextElementSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=!1;for(let u=0;u<r.length;u++){if(r[u]===this){s=!0;continue}if(s&&r[u].nodeType===t)return r[u]}return null}get previousElementSibling(){if(!this.parentNode)return null;let r=this.parentNode.childNodes,s=null;for(let u=0;u<r.length;u++){if(r[u]===this)return s;if(r[u].nodeType===t)s=r[u]}return null}get textContent(){return G(this)}set textContent(r){for(let s of this.childNodes)s.parentNode=null;if(this.childNodes.length=0,r){let s=new o(r);s.parentNode=this,s.ownerDocument=this.ownerDocument,this.childNodes.push(s)}l._queueMutationRecord({type:"childList",target:this,addedNodes:r?[this.childNodes[0]]:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null}),F(this)}_setStylesFromAttribute(r){let s=this._internalStyles??(this._internalStyles=new Map),u=this._stylePriorities??(this._stylePriorities=new Map);s.clear(),u.clear();for(let h of r.split(";")){let m=h.trim();if(!m)continue;let b=m.indexOf(":");if(b===-1)continue;let g=m.slice(0,b).trim().toLowerCase(),v=m.slice(b+1).trim();if(!g)continue;let f="";if(/!important$/i.test(v))v=v.replace(/!important$/i,"").trim(),f="important";if(s.set(g,v),f)u.set(g,f)}}get innerHTML(){return this.childNodes.map((r)=>this._serializeNode(r,this.tagName)).join("")}set innerHTML(r){if(this.childNodes.length>0){let s=this.ownerDocument;if(s?._idIndex&&s._idIndex.size>0)for(let u of this.childNodes)Me(u);for(let u of this.childNodes)u.parentNode=null;this.childNodes.length=0}if(r){let s=p(r,this.ownerDocument);if(this.tagName==="HTML"&&s.length>0)for(let u of s){if(u.nodeType===t){let h=u;if(h.tagName==="HTML"){for(let m of[...h.childNodes])this.appendChild(m);continue}}this.appendChild(u)}else for(let u of s)this.appendChild(u)}F(this)}get outerHTML(){return this._serializeNode(this)}set outerHTML(r){let s=this.parentNode;if(!s)throw new DOMException("This element has no parent node.","NoModificationAllowedError");let u=p(r,this.ownerDocument),h=s.childNodes.indexOf(this);Oe(s,this);for(let m=0;m<u.length;m++){let b=u[m];s.childNodes.splice(h+m,0,b),b.parentNode=s;let g=this.ownerDocument;if(g)E(b,g)}}get className(){return this.getAttribute("class")||""}set className(r){this.setAttribute("class",r)}get slot(){return this.getAttribute("slot")||""}set slot(r){this.setAttribute("slot",r)}get classList(){let r=this,s=()=>r.getAttribute("class")?.split(/\s+/).filter(Boolean)||[];return{add(...u){let h=s();for(let m of u)if(!h.includes(m))h.push(m);r.setAttribute("class",h.join(" "))},remove(...u){let m=s().filter((b)=>!u.includes(b));if(m.length>0)r.setAttribute("class",m.join(" "));else r.removeAttribute("class")},toggle(u,h){let m=s(),b=m.indexOf(u);if(h===void 0?b===-1:h){if(b===-1)m.push(u),r.setAttribute("class",m.join(" "));return!0}if(b!==-1)if(m.splice(b,1),m.length>0)r.setAttribute("class",m.join(" "));else r.removeAttribute("class");return!1},contains(u){return s().includes(u)},replace(u,h){let m=s(),b=m.indexOf(u);if(b!==-1)return m[b]=h,r.setAttribute("class",m.join(" ")),!0;return!1},get length(){return s().length},item(u){return s()[u]??null},get value(){return r.getAttribute("class")||""},toString(){return r.getAttribute("class")||""},forEach(u){let h=s();for(let m=0;m<h.length;m++)u(h[m],m,this)},*[Symbol.iterator](){yield*s()},*entries(){let u=s();for(let h=0;h<u.length;h++)yield[h,u[h]]},*keys(){let u=s();for(let h=0;h<u.length;h++)yield h},*values(){yield*s()}}}_serializeNode(r,s){if(r.nodeType===i){let u=r.nodeValue||"";if(s==="SCRIPT"||s==="STYLE")return u;return Qe(u)}if(r.nodeType===c)return`<!--${r.nodeValue}-->`;if(r.nodeType===t){let u=r,h=u.tagName.toLowerCase(),m=`<${h}`;for(let[g,v]of u.attributes)m+=` ${g}="${mi(v)}"`;if(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(h))return m+=">",m;m+=">";for(let g of u.childNodes)m+=this._serializeNode(g,u.tagName);return m+=`</${h}>`,m}return""}get style(){if(this._styleProxy)return this._styleProxy;let r=this;return this._styleProxy=new Proxy({getPropertyValue(s){return r._internalStyles?.get(s)||""},getPropertyPriority(s){return r._stylePriorities?.get(s)||""},setProperty(s,u,h=""){let m=`${u}`,b=m.trim();if(b==="NaN"||b.includes("NaN"))return;if((r._internalStyles??(r._internalStyles=new Map)).set(s,m),h)(r._stylePriorities??(r._stylePriorities=new Map)).set(s,h);else r._stylePriorities?.delete(s);r._updateStyleAttribute()},removeProperty(s){let u=r._internalStyles?.get(s)||"";return r._internalStyles?.delete(s),r._stylePriorities?.delete(s),r._updateStyleAttribute(),u},item(s){if(!r._internalStyles)return"";return Array.from(r._internalStyles.keys())[s]||""},get length(){return r._internalStyles?.size??0},get cssText(){if(!r._internalStyles)return"";return Array.from(r._internalStyles.entries()).map(([s,u])=>{let h=r._stylePriorities?.get(s);return h?`${s}: ${u} !${h}`:`${s}: ${u}`}).join("; ")},set cssText(s){if(r._internalStyles=null,r._stylePriorities=null,s)r._setStylesFromAttribute(s);r._updateStyleAttribute()}},{get(s,u){if(u==="getPropertyValue"||u==="getPropertyPriority"||u==="setProperty"||u==="removeProperty"||u==="item"||u==="length"||u==="cssText"){let m=s[u];return typeof m==="function"?m.bind(s):m}let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r._internalStyles?.get(h)},set(s,u,h){if(u==="cssText")return s.cssText=h,!0;let m=u.replace(/[A-Z]/g,(g)=>`-${g.toLowerCase()}`);return(r._internalStyles??(r._internalStyles=new Map)).set(m,`${h}`),r._stylePriorities?.delete(m),r._updateStyleAttribute(),!0}}),this._styleProxy}_updateStyleAttribute(){if(!this._internalStyles||this._internalStyles.size===0){if(this.attributes.has("style"))this.removeAttribute("style");return}let r="";for(let[s,u]of this._internalStyles){if(r)r+="; ";let h=this._stylePriorities?.get(s);r+=h?`${s}: ${u} !${h}`:`${s}: ${u}`}if(r){let s=this.attributes.get("style")??null;this.attributes.set("style",r),l._queueMutationRecord({type:"attributes",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:"style",attributeNamespace:null,oldValue:s})}else this.removeAttribute("style")}get dataset(){if(this._datasetProxy)return this._datasetProxy;let r=this;return this._datasetProxy=new Proxy({},{get(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r.getAttribute(`data-${h}`)||""},set(s,u,h){let m=u.replace(/[A-Z]/g,(b)=>`-${b.toLowerCase()}`);return r.setAttribute(`data-${m}`,h),!0},deleteProperty(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r.removeAttribute(`data-${h}`),!0},has(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);return r.hasAttribute(`data-${h}`)},ownKeys(s){let u=[];for(let[h]of r.attributes)if(h.startsWith("data-")){let m=h.slice(5).replace(/-([a-z])/g,(b,g)=>g.toUpperCase());u.push(m)}return u},getOwnPropertyDescriptor(s,u){let h=u.replace(/[A-Z]/g,(m)=>`-${m.toLowerCase()}`);if(r.hasAttribute(`data-${h}`))return{configurable:!0,enumerable:!0,writable:!0,value:r.getAttribute(`data-${h}`)};return}}),this._datasetProxy}_isInputElement(){return this.tagName==="INPUT"}_isTextareaElement(){return this.tagName==="TEXTAREA"}_isSelectElement(){return this.tagName==="SELECT"}_isOptionElement(){return this.tagName==="OPTION"}_getInputType(){return this._isInputElement()?(this.getAttribute("type")||"text").toLowerCase():""}_getOptionValue(){let r=this.getAttribute("value");return r!==null?r:this.textContent}_getSelectOptions(){return this._isSelectElement()?this.querySelectorAll("option"):[]}_getSelectedOptionsInternal(){let r=this._getSelectOptions();if(r.length===0)return[];let s=r.filter((u)=>u.selected);if(this.hasAttribute("multiple"))return s;return s.length>0?[s[0]]:[r[0]]}_getOwningSelect(){let r=this.parentNode;while(r){if(r.tagName==="SELECT")return r;r=r.parentNode}return null}_isButtonElement(){return this.tagName==="BUTTON"}_isFormElement(){return this.tagName==="FORM"}_isFieldsetElement(){return this.tagName==="FIELDSET"}_isLegendElement(){return this.tagName==="LEGEND"}_isLabelElement(){return this.tagName==="LABEL"}_isLabelableElement(){if(this._isInputElement())return this._getInputType()!=="hidden";return this._isButtonElement()||this._isSelectElement()||this._isTextareaElement()||this.tagName==="METER"||this.tagName==="OUTPUT"||this.tagName==="PROGRESS"}_isListedFormAssociatedElement(){return["BUTTON","FIELDSET","INPUT","OBJECT","OUTPUT","SELECT","TEXTAREA"].includes(this.tagName)}_collectDescendantElements(r=this){let s=[],u=(h)=>{for(let m of h.childNodes)if(m.nodeType===t){let b=m;s.push(b),u(b)}};return u(r),s}_isWithinFirstLegendOfFieldset(r){let s=r.children.find((u)=>u.tagName==="LEGEND");if(!s)return!1;return s===this||Ve(s,this)}_isActuallyDisabled(){if(this.hasAttribute("disabled"))return!0;if(this._isOptionElement()){let s=this.parentElement;if(s?.tagName==="OPTGROUP"&&s.disabled)return!0}if(!["BUTTON","INPUT","OPTION","OPTGROUP","SELECT","TEXTAREA"].includes(this.tagName))return!1;let r=this.parentNode;while(r){if(r.tagName==="FIELDSET"&&r.hasAttribute("disabled")){if(!this._isWithinFirstLegendOfFieldset(r))return!0}r=r.parentNode}return!1}_resetFormControlState(){if(this._isInputElement()||this._isTextareaElement())this._valueDirty=!1,this._valueState=null;if(this._isInputElement())this._checkedDirty=!1,this._checkedState=null;if(this._isOptionElement())this._selectedDirty=!1,this._selectedState=null;if(this._isSelectElement())for(let r of this._getSelectOptions())r._selectedDirty=!1,r._selectedState=null}_syncRadioGroupSelection(){if(!this._isInputElement()||this._getInputType()!=="radio"||!this.checked)return;let r=this.getAttribute("name");if(!r)return;let u=(this.form??this.ownerDocument?.documentElement??this.parentNode)?.querySelectorAll?.("input")??[];for(let h of u){if(h===this)continue;if((h.getAttribute("type")||"text").toLowerCase()!=="radio"||h.getAttribute("name")!==r)continue;if(this.form?h.form!==this.form:h.form!==null)continue;h._checkedDirty=!0,h._checkedState=!1}}get form(){if(this._isOptionElement())return this._getOwningSelect()?.form??null;return["BUTTON","FIELDSET","INPUT","OBJECT","OUTPUT","SELECT","TEXTAREA"].includes(this.tagName)?this.closest("form"):null}get elements(){if(this._isFormElement())return this._collectDescendantElements().filter((r)=>r._isListedFormAssociatedElement()&&r.form===this);if(this._isFieldsetElement())return this._collectDescendantElements().filter((r)=>r._isListedFormAssociatedElement());return[]}get labels(){if(!this._isLabelableElement())return[];let r=[],s=this.parentNode;while(s){if(s.tagName==="LABEL")r.push(s);s=s.parentNode}let u=this.id;if(u&&this.ownerDocument){for(let h of this.ownerDocument.querySelectorAll("label"))if(h.getAttribute("for")===u&&!r.includes(h))r.push(h)}return r}get type(){if(this._isInputElement())return this._getInputType();if(this._isButtonElement())return(this.getAttribute("type")||"submit").toLowerCase();return this.getAttribute("type")||""}set type(r){this.setAttribute("type",r)}get name(){return this.getAttribute("name")||""}set name(r){this.setAttribute("name",r)}get id(){return this.getAttribute("id")||""}set id(r){this.setAttribute("id",r)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(r){this.setAttribute("for",r)}get hidden(){return this.hasAttribute("hidden")}set hidden(r){if(r)this.setAttribute("hidden","");else this.removeAttribute("hidden")}get title(){return this.getAttribute("title")||""}set title(r){this.setAttribute("title",r)}get lang(){return this.getAttribute("lang")||""}set lang(r){this.setAttribute("lang",r)}get dir(){return this.getAttribute("dir")||""}set dir(r){this.setAttribute("dir",r)}get contentEditable(){let r=this.getAttribute("contenteditable");if(r===null)return"inherit";if(r===""||r==="true")return"true";if(r==="false")return"false";return"inherit"}set contentEditable(r){if(r==="inherit")this.removeAttribute("contenteditable");else this.setAttribute("contenteditable",r)}get draggable(){return this.getAttribute("draggable")==="true"}set draggable(r){this.setAttribute("draggable",String(r))}get spellcheck(){return this.getAttribute("spellcheck")!=="false"}set spellcheck(r){this.setAttribute("spellcheck",String(r))}get translate(){return this.getAttribute("translate")!=="no"}set translate(r){this.setAttribute("translate",r?"yes":"no")}get accessKey(){return this.getAttribute("accesskey")||""}set accessKey(r){this.setAttribute("accesskey",r)}get autocapitalize(){return this.getAttribute("autocapitalize")||""}set autocapitalize(r){this.setAttribute("autocapitalize",r)}get isContentEditable(){let r=this.contentEditable;if(r==="true")return!0;if(r==="false")return!1;if(this.parentElement)return this.parentElement.isContentEditable;return!1}get required(){return this.hasAttribute("required")}set required(r){if(r)this.setAttribute("required","");else this.removeAttribute("required")}get readOnly(){return this.hasAttribute("readonly")}set readOnly(r){if(r)this.setAttribute("readonly","");else this.removeAttribute("readonly")}get autofocus(){return this.hasAttribute("autofocus")}set autofocus(r){if(r)this.setAttribute("autofocus","");else this.removeAttribute("autofocus")}get multiple(){return this.hasAttribute("multiple")}set multiple(r){if(r)this.setAttribute("multiple","");else this.removeAttribute("multiple")}get noValidate(){return this.hasAttribute("novalidate")}set noValidate(r){if(r)this.setAttribute("novalidate","");else this.removeAttribute("novalidate")}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(r){this.setAttribute("placeholder",r)}get src(){return this.getAttribute("src")||""}set src(r){this.setAttribute("src",r)}get href(){return this.getAttribute("href")||""}set href(r){this.setAttribute("href",r)}get rel(){return this.getAttribute("rel")||""}set rel(r){this.setAttribute("rel",r)}get target(){return this.getAttribute("target")||""}set target(r){this.setAttribute("target",r)}get role(){return this.getAttribute("role")||""}set role(r){this.setAttribute("role",r)}get outerText(){return this.innerText}set outerText(r){if(!this.parentNode)throw new DOMException("This element has no parent node.","NoModificationAllowedError");let s=new o(r);this.parentNode.replaceChild(s,this)}get minLength(){let r=this.getAttribute("minlength");return r!==null?Number.parseInt(r,10):-1}set minLength(r){this.setAttribute("minlength",String(r))}get maxLength(){let r=this.getAttribute("maxlength");return r!==null?Number.parseInt(r,10):-1}set maxLength(r){this.setAttribute("maxlength",String(r))}get size(){let r=this.getAttribute("size");return r!==null?Number.parseInt(r,10):20}set size(r){this.setAttribute("size",String(r))}get rows(){let r=this.getAttribute("rows");return r!==null?Number.parseInt(r,10):2}set rows(r){this.setAttribute("rows",String(r))}get cols(){let r=this.getAttribute("cols");return r!==null?Number.parseInt(r,10):20}set cols(r){this.setAttribute("cols",String(r))}get download(){return this.getAttribute("download")||""}set download(r){this.setAttribute("download",r)}getAttributeNode(r){let s=r.toLowerCase(),u=this.attributes.get(s);if(u===void 0)return null;return{name:s,value:u,specified:!0,ownerElement:this}}setAttributeNode(r){let s=this.getAttributeNode(r.name);return this.setAttribute(r.name,r.value),s}removeAttributeNode(r){let s=this.getAttributeNode(r.name);if(!s)throw new DOMException("The attribute is not found.","NotFoundError");return this.removeAttribute(r.name),s}hasAttributes(){return this.attributes.size>0}get willValidate(){if(!this._isListedFormAssociatedElement()||this.disabled)return!1;if(this._isFieldsetElement()||this.tagName==="OUTPUT")return!1;if(this._isInputElement())return!["button","hidden","image","reset","submit"].includes(this._getInputType());if(this._isButtonElement())return!1;return this._isSelectElement()||this._isTextareaElement()}get value(){if(this._isOptionElement())return this._getOptionValue();if(this._isTextareaElement())return this._valueDirty?this._valueState??"":G(this);if(this._isInputElement()){if(this._valueDirty)return this._valueState??"";let r=this.getAttribute("value");if(r!==null)return r;let s=this._getInputType();return s==="checkbox"||s==="radio"?"on":""}if(this._isSelectElement())return this._getSelectedOptionsInternal()[0]?.value??"";return this.getAttribute("value")||""}set value(r){let s=`${r}`;if(this._isTextareaElement()||this._isInputElement()){this._valueDirty=!0,this._valueState=s;return}if(this._isSelectElement()){let u=!1;for(let h of this._getSelectOptions()){let m=!u&&h.value===s;if(h.selected=m,m)u=!0}if(!u)this.selectedIndex=-1;return}this.setAttribute("value",s)}get defaultValue(){if(this._isTextareaElement())return G(this);return this.getAttribute("value")||""}set defaultValue(r){let s=`${r}`;if(this._isTextareaElement()){if(this.textContent=s,!this._valueDirty)this._valueState=null;return}if(this.setAttribute("value",s),!this._valueDirty)this._valueState=null}get checked(){if(!this._isInputElement())return!1;let r=this._getInputType();if(r!=="checkbox"&&r!=="radio")return!1;return this._checkedDirty?Boolean(this._checkedState):this.hasAttribute("checked")}set checked(r){if(!this._isInputElement())return;let s=this._getInputType();if(s!=="checkbox"&&s!=="radio")return;let u=Boolean(r);if(this._checkedDirty=!0,this._checkedState=u,s==="radio"&&u)this._syncRadioGroupSelection()}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(r){if(r)this.setAttribute("checked","");else this.removeAttribute("checked")}get selected(){if(!this._isOptionElement())return!1;return this._selectedDirty?Boolean(this._selectedState):this.hasAttribute("selected")}set selected(r){if(!this._isOptionElement())return;let s=Boolean(r),u=this._getOwningSelect();if(s&&u&&!u.hasAttribute("multiple"))for(let h of u._getSelectOptions()){if(h===this)continue;h._selectedDirty=!0,h._selectedState=!1}this._selectedDirty=!0,this._selectedState=s}get defaultSelected(){return this.hasAttribute("selected")}set defaultSelected(r){if(r)this.setAttribute("selected","");else this.removeAttribute("selected")}get options(){return this._getSelectOptions()}get selectedOptions(){if(this._isSelectElement())return this._getSelectedOptionsInternal();return this._isOptionElement()&&this.selected?[this]:[]}get selectedIndex(){if(!this._isSelectElement())return-1;let r=this._getSelectOptions(),s=this._getSelectedOptionsInternal()[0];return s?r.indexOf(s):-1}set selectedIndex(r){if(!this._isSelectElement())return;let s=this._getSelectOptions();for(let u=0;u<s.length;u++)s[u].selected=r>=0&&u===r}get validity(){let r=this.value,s=this.type||"text",u=this.hasAttribute("required"),h=this.getAttribute("pattern"),m=this.getAttribute("minlength"),b=this.getAttribute("maxlength"),g=this.getAttribute("min"),v=this.getAttribute("max"),f={valid:!0,valueMissing:!1,typeMismatch:!1,patternMismatch:!1,tooLong:!1,tooShort:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,badInput:!1,customError:!1};if(!this.willValidate)return f;if(u&&(s==="checkbox"||s==="radio"?!this.checked:!r))f.valueMissing=!0,f.valid=!1;if(h&&r){if(!new RegExp(h).test(r))f.patternMismatch=!0,f.valid=!1}if(m&&r.length<Number.parseInt(m,10))f.tooShort=!0,f.valid=!1;if(b&&r.length>Number.parseInt(b,10))f.tooLong=!0,f.valid=!1;if(s==="number"||s==="range"){let A=Number.parseFloat(r);if(!Number.isNaN(A)){if(g&&A<Number.parseFloat(g))f.rangeUnderflow=!0,f.valid=!1;if(v&&A>Number.parseFloat(v))f.rangeOverflow=!0,f.valid=!1}}if(s==="email"&&r){if(!/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(r))f.typeMismatch=!0,f.valid=!1}if(s==="url"&&r)try{new URL(r)}catch{f.typeMismatch=!0,f.valid=!1}if(this._customValidity)f.customError=!0,f.valid=!1;return f}get validationMessage(){if(this._customValidity)return this._customValidity;let r=this.validity;if(r.valueMissing)return"Please fill out this field.";if(r.typeMismatch){let s=this.getAttribute("type");if(s==="email")return"Please enter an email address.";if(s==="url")return"Please enter a URL.";return"Please match the requested format."}if(r.patternMismatch)return"Please match the requested format.";if(r.tooShort)return`Please lengthen this text to ${this.getAttribute("minlength")} characters or more.`;if(r.tooLong)return`Please shorten this text to ${this.getAttribute("maxlength")} characters or less.`;if(r.rangeUnderflow)return`Value must be greater than or equal to ${this.getAttribute("min")}.`;if(r.rangeOverflow)return`Value must be less than or equal to ${this.getAttribute("max")}.`;return""}setCustomValidity(r){this._customValidity=r}checkValidity(){if(this._isFormElement()||this._isFieldsetElement())return this.elements.every((r)=>r.checkValidity());return this.validity.valid}reportValidity(){if(this._isFormElement()||this._isFieldsetElement())return this.elements.every((s)=>s.reportValidity());let r=this.checkValidity();if(!r){let s=new n("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(s)}return r}querySelector(r){return I(this,r)}querySelectorAll(r){return y(this,r)}matches(r){if(pi(r)){let s=this;while(s.parentNode&&s.parentNode.nodeType!==a)s=s.parentNode;if(s.parentNode&&s.parentNode.nodeType===a)s=s.parentNode;return fi(this,r,s)}else return w(this,r,this)}webkitMatchesSelector(r){return this.matches(r)}get action(){if(!this._isFormElement())return"";return this.getAttribute("action")||""}set action(r){if(this._isFormElement())this.setAttribute("action",r)}get method(){if(!this._isFormElement())return"";return(this.getAttribute("method")||"get").toLowerCase()}set method(r){if(this._isFormElement())this.setAttribute("method",r)}get enctype(){if(!this._isFormElement())return"";return this.getAttribute("enctype")||"application/x-www-form-urlencoded"}set enctype(r){if(this._isFormElement())this.setAttribute("enctype",r)}get encoding(){return this.enctype}set encoding(r){this.enctype=r}addEventListener(r,s,u={}){super.addEventListener(r,s,u)}removeEventListener(r,s,u={}){super.removeEventListener(r,s,u)}dispatchEvent(r){return super.dispatchEvent(r)}focus(){let r=this.ownerDocument;if(r){let s=r.activeElement;if(s&&s!==this&&s!==r.body)s.dispatchEvent(new n("blur",{bubbles:!1})),s.dispatchEvent(new n("focusout",{bubbles:!0}));r._setFocusedElement(this)}this.dispatchEvent(new n("focus",{bubbles:!1})),this.dispatchEvent(new n("focusin",{bubbles:!0}))}blur(){let r=this.ownerDocument;if(r&&r.activeElement===this)r._setFocusedElement(null);this.dispatchEvent(new n("blur",{bubbles:!1})),this.dispatchEvent(new n("focusout",{bubbles:!0}))}scrollIntoView(r){this._scrollTop=0,this._scrollLeft=0;let s=new n("scroll",{bubbles:!1});this.dispatchEvent(s)}scrollTo(r,s){if(typeof r==="object"&&r!==null){if(typeof r.left==="number")this._scrollLeft=r.left;if(typeof r.top==="number")this._scrollTop=r.top}else{if(typeof r==="number")this._scrollLeft=r;if(typeof s==="number")this._scrollTop=s}let u=new n("scroll",{bubbles:!1});this.dispatchEvent(u)}scrollBy(r,s){if(typeof r==="object"&&r!==null){if(typeof r.left==="number")this._scrollLeft+=r.left;if(typeof r.top==="number")this._scrollTop+=r.top}else{if(typeof r==="number")this._scrollLeft+=r;if(typeof s==="number")this._scrollTop+=s}let u=new n("scroll",{bubbles:!1});this.dispatchEvent(u)}_isMediaElement(){return this.tagName==="AUDIO"||this.tagName==="VIDEO"}_mediaPaused=!0;_mediaEnded=!1;_mediaCurrentTime=0;_mediaDuration=Number.NaN;_mediaVolume=1;_mediaMuted=!1;_mediaPlaybackRate=1;_mediaReadyState=0;_mediaNetworkState=0;get paused(){if(!this._isMediaElement())return!0;return this._mediaPaused}get ended(){if(!this._isMediaElement())return!1;return this._mediaEnded}get currentTime(){if(!this._isMediaElement())return 0;return this._mediaCurrentTime}set currentTime(r){if(!this._isMediaElement())return;this._mediaCurrentTime=r,this.dispatchEvent(new n("timeupdate",{bubbles:!1}))}get duration(){if(!this._isMediaElement())return 0;return this._mediaDuration}get volume(){if(!this._isMediaElement())return 1;return this._mediaVolume}set volume(r){if(!this._isMediaElement())return;this._mediaVolume=Math.max(0,Math.min(1,r)),this.dispatchEvent(new n("volumechange",{bubbles:!1}))}get muted(){if(!this._isMediaElement())return!1;return this._mediaMuted}set muted(r){if(!this._isMediaElement())return;this._mediaMuted=Boolean(r),this.dispatchEvent(new n("volumechange",{bubbles:!1}))}get playbackRate(){if(!this._isMediaElement())return 1;return this._mediaPlaybackRate}set playbackRate(r){if(!this._isMediaElement())return;this._mediaPlaybackRate=r,this.dispatchEvent(new n("ratechange",{bubbles:!1}))}get readyState(){if(!this._isMediaElement())return 0;return this._mediaReadyState}get networkState(){if(!this._isMediaElement())return 0;return this._mediaNetworkState}play(){if(!this._isMediaElement())return Promise.reject(new DOMException("Not a media element","InvalidStateError"));let r=this._mediaPaused;if(this._mediaPaused=!1,this._mediaEnded=!1,r)queueMicrotask(()=>{this.dispatchEvent(new n("play",{bubbles:!1})),this.dispatchEvent(new n("playing",{bubbles:!1}))});return Promise.resolve()}pause(){if(!this._isMediaElement())return;if(this._mediaPaused)return;this._mediaPaused=!0,queueMicrotask(()=>{this.dispatchEvent(new n("pause",{bubbles:!1}))})}load(){if(!this._isMediaElement())return;this._mediaCurrentTime=0,this._mediaEnded=!1,this._mediaPaused=!0,queueMicrotask(()=>{this.dispatchEvent(new n("loadstart",{bubbles:!1})),this.dispatchEvent(new n("loadedmetadata",{bubbles:!1}))})}canPlayType(r){if(!this._isMediaElement())return"";return"maybe"}addTextTrack(r,s,u){return{kind:r,label:s??"",language:u??"",mode:"disabled"}}decode(){return Promise.resolve()}animate(r,s){let u={play:()=>{},pause:()=>{},cancel:()=>{},finish:()=>{if(u.onfinish)try{u.onfinish(new n("finish"))}catch{}},reverse:()=>{},finished:Promise.resolve({currentTime:0}),playState:"finished",currentTime:0,onfinish:null,oncancel:null};return u}getClientRects(){return[]}_validateInsertAdjacentPosition(r){let s=r.toLowerCase();if(s!=="beforebegin"&&s!=="afterbegin"&&s!=="beforeend"&&s!=="afterend")throw new DOMException(`Failed to execute 'insertAdjacentHTML' on 'Element': The value provided ('${r}') is not one of 'beforeBegin', 'afterBegin', 'beforeEnd', or 'afterEnd'.`,"SyntaxError");return s}insertAdjacentHTML(r,s){let u=this._validateInsertAdjacentPosition(r),h=p(s,this.ownerDocument);switch(u){case"beforebegin":if(this.parentNode)for(let m of h)this.parentNode.insertBefore(m,this);break;case"afterbegin":for(let m=h.length-1;m>=0;m--)this.insertBefore(h[m],this.firstChild);break;case"beforeend":for(let m of h)this.appendChild(m);break;case"afterend":if(this.parentNode){let m=this.nextSibling;for(let b of h)this.parentNode.insertBefore(b,m)}break}}insertAdjacentElement(r,s){switch(this._validateInsertAdjacentPosition(r)){case"beforebegin":if(this.parentNode)return this.parentNode.insertBefore(s,this),s;return null;case"afterbegin":return this.insertBefore(s,this.firstChild),s;case"beforeend":return this.appendChild(s),s;case"afterend":if(this.parentNode)return this.parentNode.insertBefore(s,this.nextSibling),s;return null;default:return null}}insertAdjacentText(r,s){let u=this._validateInsertAdjacentPosition(r),h=new o(s);switch(u){case"beforebegin":if(this.parentNode)this.parentNode.insertBefore(h,this);break;case"afterbegin":this.insertBefore(h,this.firstChild);break;case"beforeend":this.appendChild(h);break;case"afterend":if(this.parentNode)this.parentNode.insertBefore(h,this.nextSibling);break}}click(){if(this.disabled)return;let r=new n("click",{bubbles:!0,cancelable:!0});if(!this.dispatchEvent(r))return;if(this._isInputElement()){let u=this._getInputType();if(u==="checkbox")this.checked=!this.checked;else if(u==="radio")this.checked=!0;else if((u==="submit"||u==="image")&&this.form)this.form.requestSubmit(this);else if(u==="reset"&&this.form)this.form.reset()}if(this._isButtonElement()&&this.form){if(this.type==="reset")this.form.reset();else if(this.type==="submit")this.form.requestSubmit(this)}if(this.tagName==="A"&&this.href){let u=this.ownerDocument?.defaultView;if(!u)return;let h=this.href;try{h=new URL(h,u.location.href).href}catch{}if(this.target==="_blank"){let b=this.rel.toLowerCase().split(/\s+/).filter((g)=>g==="noopener"||g==="noreferrer").join(",");u.open(h,"_blank",b)}else u.location.href=h}}submit(){if(!this._isFormElement())return;let r=new n("submit",{bubbles:!0,cancelable:!0});r.submitter=null,this.dispatchEvent(r)}requestSubmit(r){if(!this._isFormElement())return;if(r&&r.form!==this)throw Error("The specified element is not owned by this form element");if(!this.reportValidity())return;let s=new n("submit",{bubbles:!0,cancelable:!0});s.submitter=r??null,this.dispatchEvent(s)}reset(){if(!this._isFormElement())return;let r=new n("reset",{bubbles:!0,cancelable:!0});if(!this.dispatchEvent(r))return;for(let u of this.elements)u._resetFormControlState()}get tabIndex(){let r=this.getAttribute("tabindex");if(r!==null)return Number.parseInt(r,10);if(this.tagName==="A"||this.tagName==="BUTTON"||this.tagName==="INPUT"||this.tagName==="TEXTAREA"||this.tagName==="SELECT")return 0;return-1}set tabIndex(r){this.setAttribute("tabindex",String(r))}get disabled(){if(!["BUTTON","FIELDSET","INPUT","OPTION","OPTGROUP","SELECT","TEXTAREA"].includes(this.tagName))return this.hasAttribute("disabled");return this._isActuallyDisabled()}set disabled(r){if(r)this.setAttribute("disabled","");else this.removeAttribute("disabled")}get clientLeft(){return 0}get clientTop(){return 0}get clientWidth(){return this._resolveInlineSize("width")}get clientHeight(){return this._resolveInlineSize("height")}get offsetWidth(){return this._resolveInlineSize("width")}get offsetHeight(){return this._resolveInlineSize("height")}get offsetTop(){return 0}get offsetLeft(){return 0}_resolveInlineSize(r,s){let u=this._cascadedStyleValue(r,s);if(u){let m=this._parseCssSize(u,r);if(m!==null)return m}let h=this.attributes.get(r);if(h!==void 0&&h!==""){let m=this._parseCssSize(h,r);if(m!==null)return m}return 0}_cascadedStyleValue(r,s){let u=this._internalStyles?.get(r)??"",h=s===void 0?this._buildCascade():s;if(!h)return u;return di(r,this.style,h)??u}_buildCascade(){let r=this.ownerDocument;if(!r)return null;let s=r._adoptedStyleSheets??[],u=r.styleSheets??[];if(u.length===0&&s.length===0)return null;return ci(this,[...u,...s],r.defaultView?._mediaContext?.())}_parseCssSize(r,s){let u=r.trim();if(u===""||u==="auto")return null;if(u.endsWith("%")){let m=Number.parseFloat(u);if(!Number.isFinite(m))return null;let b=this.parentElement;if(!b)return null;let g=b._resolveInlineSize(s);if(g===0)return null;return m/100*g}let h=/^(-?\d*\.?\d+)(px)?$/i.exec(u);if(h){let m=Number.parseFloat(h[1]);return Number.isFinite(m)?m:null}return null}get offsetParent(){return this.parentElement}get scrollWidth(){return 0}get scrollHeight(){return 0}_scrollTop=0;_scrollLeft=0;get scrollTop(){return this._scrollTop}set scrollTop(r){this._scrollTop=r}get scrollLeft(){return this._scrollLeft}set scrollLeft(r){this._scrollLeft=r}getBoundingClientRect(){let r=this._buildCascade(),s=this._resolveInlineSize("width",r),u=this._resolveInlineSize("height",r);return new H(0,0,s,u)}setPointerCapture(r){this._capturedPointerIds??=new Set,this._capturedPointerIds.add(r)}releasePointerCapture(r){this._capturedPointerIds?.delete(r)}hasPointerCapture(r){return this._capturedPointerIds?.has(r)??!1}isVisible(){let r=this;while(r){if(r.style.getPropertyValue("display")==="none")return!1;let u=r.style.getPropertyValue("visibility");if(u==="hidden"||u==="collapse")return!1;if(r.style.getPropertyValue("opacity")==="0")return!1;r=r.parentElement}return!0}attachShadow(r){if(this._shadowRoot)throw Error("Shadow root already exists");return this._shadowRoot=new hi(this,r),this._shadowRoot}_setOwnerDocument(r,s){E(r,s)}_rootNode(r){let s=r;while(s.parentNode)s=s.parentNode;return s}_containsNode(r,s){return r!==s&&Ve(r,s)}_documentOrder(r){let s=[],u=(h)=>{s.push(h);let m=h.childNodes??h.children??[];for(let b of m)u(b)};return u(r),s}}
8
8
  export{Z,H,ee,we,_e,$e,qe,ze,Ke,je,Ye,Xe,Se,Te,Je,eo,xe,ci,di,hi,e};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{b}from"./chunk-px4nrdxa.js";var l=new Set(["constructor","prototype","__proto__","globalThis","global","self","window","parent","top","frames"]),c=new Set(["navigator","localStorage","sessionStorage","location","history","innerWidth","innerHeight","outerWidth","outerHeight","devicePixelRatio","scrollX","scrollY","pageXOffset","pageYOffset","matchMedia","getComputedStyle","getSelection","customElements","indexedDB","addEventListener","removeEventListener","dispatchEvent","postMessage","alert","confirm","prompt","scrollTo","scroll","scrollBy","requestAnimationFrame","cancelAnimationFrame","requestIdleCallback","cancelIdleCallback","BroadcastChannel","MessageChannel","MessagePort","EventSource","PerformanceObserver","MutationObserver","IntersectionObserver","ResizeObserver","CustomElementRegistry","HTMLElement","Event","CustomEvent","MouseEvent","KeyboardEvent","FocusEvent","InputEvent","SubmitEvent","PointerEvent","TouchEvent","WheelEvent","DragEvent","ClipboardEvent","AnimationEvent","TransitionEvent","ProgressEvent","MessageEvent","CloseEvent","StorageEvent","PopStateEvent","HashChangeEvent","ErrorEvent","MediaQueryListEvent","CompositionEvent","Document","Element","Node","Text","Comment","DocumentFragment","HTMLTemplateElement","SVGElement","NodeFilter","NodeIterator","TreeWalker","Range","Selection","DOMParser","XMLSerializer","XMLHttpRequest","WebSocket","File","FileReader","FileList","HTMLCanvasElement","CanvasRenderingContext2D","Image","Audio","IDBFactory","IDBDatabase","IDBObjectStore","IDBTransaction","IDBRequest","IDBOpenDBRequest","Notification","DataTransfer","FormData"]),i=null,s=new Map;function f(e){try{return Reflect.construct(String,[],e),!0}catch{return!1}}function u(e,t){if(typeof e.value==="function"&&f(e.value))return e;if(typeof e.value==="function")return{...e,value:e.value.bind(t)};if(typeof e.get==="function"||typeof e.set==="function"){let o={configurable:e.configurable,enumerable:e.enumerable};if(e.get)o.get=e.get.bind(t);if(e.set)o.set=e.set.bind(t);return o}return e}function a(e,t){if(!s.has(e))s.set(e,Object.getOwnPropertyDescriptor(globalThis,e));Object.defineProperty(globalThis,e,{...t,configurable:!0})}class Le{static register(e={}){if(i)throw Error("GlobalRegistrator: already registered. Call unregister() first.");let t=new b(e);i=t;for(let n of Object.getOwnPropertyNames(t)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(t,n);if(!r)continue;a(n,u(r,t))}let o=Object.getPrototypeOf(t);for(let n of Object.getOwnPropertyNames(o)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(o,n);if(!r)continue;a(n,u(r,t))}a("window",{value:t,writable:!0}),a("document",{value:t.document,writable:!0})}static unregister(){if(!i)return;for(let[e,t]of s)try{if(t)Object.defineProperty(globalThis,e,t);else delete globalThis[e]}catch{}s.clear(),i=null}}
2
+ import{b}from"./chunk-7e10724v.js";var l=new Set(["constructor","prototype","__proto__","globalThis","global","self","window","parent","top","frames"]),c=new Set(["navigator","localStorage","sessionStorage","location","history","innerWidth","innerHeight","outerWidth","outerHeight","devicePixelRatio","scrollX","scrollY","pageXOffset","pageYOffset","matchMedia","getComputedStyle","getSelection","customElements","indexedDB","addEventListener","removeEventListener","dispatchEvent","postMessage","alert","confirm","prompt","scrollTo","scroll","scrollBy","requestAnimationFrame","cancelAnimationFrame","requestIdleCallback","cancelIdleCallback","BroadcastChannel","MessageChannel","MessagePort","EventSource","PerformanceObserver","MutationObserver","IntersectionObserver","ResizeObserver","CustomElementRegistry","HTMLElement","Event","CustomEvent","MouseEvent","KeyboardEvent","FocusEvent","InputEvent","SubmitEvent","PointerEvent","TouchEvent","WheelEvent","DragEvent","ClipboardEvent","AnimationEvent","TransitionEvent","ProgressEvent","MessageEvent","CloseEvent","StorageEvent","PopStateEvent","HashChangeEvent","ErrorEvent","MediaQueryListEvent","CompositionEvent","Document","Element","Node","Text","Comment","DocumentFragment","HTMLTemplateElement","SVGElement","NodeFilter","NodeIterator","TreeWalker","Range","Selection","DOMParser","XMLSerializer","XMLHttpRequest","WebSocket","File","FileReader","FileList","HTMLCanvasElement","CanvasRenderingContext2D","Image","Audio","IDBFactory","IDBDatabase","IDBObjectStore","IDBTransaction","IDBRequest","IDBOpenDBRequest","Notification","DataTransfer","FormData"]),i=null,s=new Map;function f(e){try{return Reflect.construct(String,[],e),!0}catch{return!1}}function u(e,t){if(typeof e.value==="function"&&f(e.value))return e;if(typeof e.value==="function")return{...e,value:e.value.bind(t)};if(typeof e.get==="function"||typeof e.set==="function"){let o={configurable:e.configurable,enumerable:e.enumerable};if(e.get)o.get=e.get.bind(t);if(e.set)o.set=e.set.bind(t);return o}return e}function a(e,t){if(!s.has(e))s.set(e,Object.getOwnPropertyDescriptor(globalThis,e));Object.defineProperty(globalThis,e,{...t,configurable:!0})}class Le{static register(e={}){if(i)throw Error("GlobalRegistrator: already registered. Call unregister() first.");let t=new b(e);i=t;for(let n of Object.getOwnPropertyNames(t)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(t,n);if(!r)continue;a(n,u(r,t))}let o=Object.getPrototypeOf(t);for(let n of Object.getOwnPropertyNames(o)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(o,n);if(!r)continue;a(n,u(r,t))}a("window",{value:t,writable:!0}),a("document",{value:t.document,writable:!0})}static unregister(){if(!i)return;for(let[e,t]of s)try{if(t)Object.defineProperty(globalThis,e,t);else delete globalThis[e]}catch{}s.clear(),i=null}}
3
3
  export{Le};
@@ -1,11 +1,11 @@
1
1
  // @bun
2
- import{f,n,Ne,Ce,gi,Qi,E,k,l,o,t,i,c,a,V,te,Re,d}from"./chunk-d5edpdkj.js";import{I,y,_}from"./chunk-w2g7xbfh.js";import{x,p}from"./chunk-2m1ksnrw.js";import{Z,H,ee,we,_e,$e,qe,ze,Ke,je,Ye,Xe,Se,Te,Je,xe,ci,di,e}from"./chunk-qh4s27j9.js";import{r}from"./chunk-cqrdjb12.js";class rt{_marks=new Map;_measures=new Map;_startTime=Date.now();now(){return Date.now()-this._startTime}mark(s){this._marks.set(s,this.now())}measure(s,S,T){let C=T?this._marks.get(T):this.now(),D=S?this._marks.get(S):0;if(C!==void 0&&D!==void 0)this._measures.set(s,{start:D,duration:C-D})}clearMarks(s){if(s)this._marks.delete(s);else this._marks.clear()}clearMeasures(s){if(s)this._measures.delete(s);else this._measures.clear()}getEntriesByName(s){let S=[];if(this._marks.has(s))S.push({name:s,entryType:"mark",startTime:this._marks.get(s)});if(this._measures.has(s)){let T=this._measures.get(s);S.push({name:s,entryType:"measure",startTime:T.start,duration:T.duration})}return S}}class it{_coords=null;_setPosition(s){this._coords=s}_position(){return{coords:{latitude:this._coords?.latitude??37.7749,longitude:this._coords?.longitude??-122.4194,accuracy:this._coords?.accuracy??10,altitude:null,altitudeAccuracy:null,heading:null,speed:null},timestamp:Date.now()}}getCurrentPosition(s,S,T){setTimeout(()=>{s(this._position())},0)}watchPosition(s,S,T){return setInterval(()=>{s(this._position())},1000)}clearWatch(s){clearInterval(s)}}class ot{static permission="default";title;body;icon;tag;onclick=null;onclose=null;onerror=null;onshow=null;constructor(s,S){this.title=s,this.body=S?.body,this.icon=S?.icon,this.tag=S?.tag,setTimeout(()=>{if(this.onshow)this.onshow({})},0)}static requestPermission(){return Promise.resolve("granted")}close(){if(this.onclose)this.onclose({})}}class qi{_groups=[];_timers=new Map;log(...s){console.log(...this._prefix(),...s)}warn(...s){console.warn(...this._prefix(),...s)}error(...s){console.error(...this._prefix(),...s)}info(...s){console.info(...this._prefix(),...s)}debug(...s){console.debug(...this._prefix(),...s)}table(s){console.table(s)}group(s){if(s)this._groups.push(s),console.log(...this._prefix(),`\u25BC ${s}`)}groupCollapsed(s){this.group(s)}groupEnd(){this._groups.pop()}time(s){this._timers.set(s,Date.now())}timeEnd(s){let S=this._timers.get(s);if(S){let T=Date.now()-S;console.log(...this._prefix(),`${s}: ${T}ms`),this._timers.delete(s)}}timeLog(s,...S){let T=this._timers.get(s);if(T){let C=Date.now()-T;console.log(...this._prefix(),`${s}: ${C}ms`,...S)}}clear(){console.clear()}count(s="default"){console.log(...this._prefix(),s)}assert(s,...S){if(!s)console.error(...this._prefix(),"Assertion failed:",...S)}trace(...s){console.trace(...this._prefix(),...s)}_prefix(){return this._groups.map(()=>" ")}}class st{_data=new Map;dropEffect="none";effectAllowed="uninitialized";files=[];items=[];types=[];setData(s,S){if(this._data.set(s,S),!this.types.includes(s))this.types.push(s)}getData(s){return this._data.get(s)||""}clearData(s){if(s){this._data.delete(s);let S=this.types.indexOf(s);if(S!==-1)this.types.splice(S,1)}else this._data.clear(),this.types=[]}setDragImage(s,S,T){}}class W{_properties=new Map;get length(){return this._properties.size}getPropertyValue(s){return this._properties.get(s)?.value??""}setProperty(s,S,T){this._properties.set(s,{value:S,priority:T??""})}removeProperty(s){let S=this.getPropertyValue(s);return this._properties.delete(s),S}getPropertyPriority(s){return this._properties.get(s)?.priority??""}get cssText(){return Array.from(this._properties.entries()).map(([s,{value:S,priority:T}])=>`${s}: ${S}${T?" !important":""}`).join("; ")}set cssText(s){this._properties.clear();for(let S of s.split(";")){let[T,...C]=S.split(":");if(T&&C.length){let D=C.join(":").trim(),w=D.endsWith("!important");this.setProperty(T.trim(),w?D.replace(/\s*!important\s*$/,"").trim():D,w?"important":"")}}}item(s){return Array.from(this._properties.keys())[s]??""}[Symbol.iterator](){return this._properties.keys()}}class ie{_media=[];get mediaText(){return this._media.join(", ")}set mediaText(s){this._media=s?s.split(",").map((S)=>S.trim()):[]}get length(){return this._media.length}item(s){return this._media[s]??null}appendMedium(s){if(!this._media.includes(s))this._media.push(s)}deleteMedium(s){this._media=this._media.filter((S)=>S!==s)}toString(){return this.mediaText}}class h{static STYLE_RULE=1;static CHARSET_RULE=2;static IMPORT_RULE=3;static MEDIA_RULE=4;static FONT_FACE_RULE=5;static PAGE_RULE=6;static KEYFRAMES_RULE=7;static KEYFRAME_RULE=8;static NAMESPACE_RULE=10;static COUNTER_STYLE_RULE=11;static SUPPORTS_RULE=12;static FONT_FEATURE_VALUES_RULE=14;static CONTAINER_RULE=17;type;cssText="";parentRule=null;parentStyleSheet=null;constructor(s){this.type=s}}function as(s,S){for(let T of s.split(";")){let C=T.indexOf(":");if(C===-1)continue;let D=T.slice(0,C).trim(),w=T.slice(C+1).trim();if(!D||!w)continue;let G=/!\s*important$/i.test(w),P=G?w.replace(/\s*!\s*important$/i,"").trim():w;if(P)S.style.setProperty(D,P,G?"important":"")}}function ts(s,S){let T=[];for(let C of ls(s)){let D=C.trim();if(!D)continue;let w=D.indexOf("{");if(w===-1)continue;let G=D.slice(0,w).trim(),P=D.slice(w+1,D.lastIndexOf("}")).trim(),F=/^@media\b(.*)$/is.exec(G);if(F){let B=new Ae,Q=F[1].trim();B.conditionText=Q,B.media.mediaText=Q,B.parentStyleSheet=S;let re=B.cssRules;for(let J of ts(P,S))J.parentRule=B,re.push(J);T.push(B);continue}let U=new z;U.selectorText=G,U.parentStyleSheet=S,as(P,U),T.push(U)}return T}class oe extends h{cssRules=[];insertRule(s,S=0){let T=new z;return T.cssText=s,T.parentRule=this,T.parentStyleSheet=this.parentStyleSheet,this.cssRules.splice(S,0,T),S}deleteRule(s){this.cssRules.splice(s,1)}}class q extends oe{conditionText=""}class z extends h{selectorText="";style=new W;constructor(){super(h.STYLE_RULE)}}class Ae extends q{media=new ie;constructor(){super(h.MEDIA_RULE)}}class De extends h{keyText="";style=new W;constructor(){super(h.KEYFRAME_RULE)}}class at extends h{name="";cssRules=[];constructor(){super(h.KEYFRAMES_RULE)}appendRule(s){let S=new De;S.cssText=s,S.parentRule=this,S.parentStyleSheet=this.parentStyleSheet,this.cssRules.push(S)}deleteRule(s){let S=this.cssRules.findIndex((T)=>T.keyText===s);if(S!==-1)this.cssRules.splice(S,1)}findRule(s){return this.cssRules.find((S)=>S.keyText===s)??null}}class lt extends h{style=new W;constructor(){super(h.FONT_FACE_RULE)}}class ut extends q{constructor(){super(h.SUPPORTS_RULE)}}class ct extends q{containerName="";containerQuery="";constructor(){super(h.CONTAINER_RULE)}}class dt extends oe{start="";end="";constructor(){super(h.STYLE_RULE)}}class se{cssRules=[];disabled=!1;href=null;media=new ie;ownerNode=null;ownerRule=null;parentStyleSheet=null;title=null;type="text/css";insertRule(s,S=0){let T=new z;return T.cssText=s,T.parentStyleSheet=this,this.cssRules.splice(S,0,T),S}deleteRule(s){this.cssRules.splice(s,1)}replace(s){return this.replaceSync(s),Promise.resolve(this)}replaceSync(s){let S=this.cssRules;S.length=0;for(let T of ts(s,this))S.push(T)}}function ls(s){let S=[],T=0,C=0;for(let D=0;D<s.length;D++){let w=s[D];if(w==="{")T++;else if(w==="}"){if(T--,T===0)S.push(s.slice(C,D+1)),C=D+1}}return S}var We=/^[\w-]+$/,es=/^\w+\(.+\)$/,ht={escape(s){return s.replace(/([^\w-])/g,"\\$1")},supports(s,S){if(S===void 0){let C=s.trim();if(!C)return!1;if(C.startsWith("not ")){let D=C.slice(4).trim().replace(/^\(|\)$/g,""),w=D.indexOf(":");if(w===-1)return!1;return!ht.supports(D.slice(0,w).trim(),D.slice(w+1).trim())}return!0}if(!s||!S)return!1;if(!We.test(s))return!1;let T=S.trim();if(!T)return!1;if(We.test(T))return!0;if(es.test(T))return!0;if(/^-?\d+(?:\.\d+)?(?:[a-z%]+)?$/i.test(T))return!0;if(/^#[0-9a-f]{3,8}$/i.test(T))return!0;return T.split(/\s+/).every((C)=>We.test(C)||es.test(C)||/^-?\d+(?:\.\d+)?(?:[a-z%]+)?$/i.test(C)||/^#[0-9a-f]{3,8}$/i.test(C))}};class Pe{get size(){return 0}has(s){return!1}get(s){return}getAll(s){return[]}forEach(s){}entries(){return[][Symbol.iterator]()}keys(){return[][Symbol.iterator]()}values(){return[][Symbol.iterator]()}}class mt extends Pe{set(s,...S){}append(s,...S){}delete(s){}clear(){}}class ae{fillStyle="#000000";strokeStyle="#000000";globalAlpha=1;globalCompositeOperation="source-over";lineWidth=1;lineCap="butt";lineJoin="miter";miterLimit=10;lineDashOffset=0;shadowOffsetX=0;shadowOffsetY=0;shadowBlur=0;shadowColor="rgba(0, 0, 0, 0)";font="10px sans-serif";textAlign="start";textBaseline="alphabetic";canvas;savedStates=[];currentPath=[];transformMatrix=[1,0,0,1,0,0];constructor(s){this.canvas=s}save(){this.savedStates.push({fillStyle:this.fillStyle,strokeStyle:this.strokeStyle,globalAlpha:this.globalAlpha,globalCompositeOperation:this.globalCompositeOperation,lineWidth:this.lineWidth,lineCap:this.lineCap,lineJoin:this.lineJoin,miterLimit:this.miterLimit,lineDashOffset:this.lineDashOffset,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,font:this.font,textAlign:this.textAlign,textBaseline:this.textBaseline,transformMatrix:[...this.transformMatrix]})}restore(){let s=this.savedStates.pop();if(s)Object.assign(this,s)}scale(s,S){this.transformMatrix[0]*=s,this.transformMatrix[3]*=S}rotate(s){let S=Math.cos(s),T=Math.sin(s),[C,D,w,G,P,F]=this.transformMatrix;this.transformMatrix[0]=C*S+w*T,this.transformMatrix[1]=D*S+G*T,this.transformMatrix[2]=w*S-C*T,this.transformMatrix[3]=G*S-D*T}translate(s,S){this.transformMatrix[4]+=s,this.transformMatrix[5]+=S}transform(s,S,T,C,D,w){let[G,P,F,U,B,Q]=this.transformMatrix;this.transformMatrix[0]=G*s+F*S,this.transformMatrix[1]=P*s+U*S,this.transformMatrix[2]=G*T+F*C,this.transformMatrix[3]=P*T+U*C,this.transformMatrix[4]=G*D+F*w+B,this.transformMatrix[5]=P*D+U*w+Q}setTransform(s,S,T,C,D,w){this.transformMatrix=[s,S,T,C,D,w]}resetTransform(){this.transformMatrix=[1,0,0,1,0,0]}beginPath(){this.currentPath=[]}closePath(){this.currentPath.push({type:"closePath",args:[]})}moveTo(s,S){this.currentPath.push({type:"moveTo",args:[s,S]})}lineTo(s,S){this.currentPath.push({type:"lineTo",args:[s,S]})}arc(s,S,T,C,D,w=!1){this.currentPath.push({type:"arc",args:[s,S,T,C,D,w]})}arcTo(s,S,T,C,D){this.currentPath.push({type:"arcTo",args:[s,S,T,C,D]})}quadraticCurveTo(s,S,T,C){this.currentPath.push({type:"quadraticCurveTo",args:[s,S,T,C]})}bezierCurveTo(s,S,T,C,D,w){this.currentPath.push({type:"bezierCurveTo",args:[s,S,T,C,D,w]})}rect(s,S,T,C){this.currentPath.push({type:"rect",args:[s,S,T,C]})}ellipse(s,S,T,C,D,w,G,P=!1){this.currentPath.push({type:"ellipse",args:[s,S,T,C,D,w,G,P]})}fill(){}stroke(){}clip(){}fillRect(s,S,T,C){}strokeRect(s,S,T,C){}clearRect(s,S,T,C){}fillText(s,S,T,C){}strokeText(s,S,T,C){}measureText(s){let S=s.length*8;return{width:S,actualBoundingBoxLeft:0,actualBoundingBoxRight:S,fontBoundingBoxAscent:10,fontBoundingBoxDescent:2,actualBoundingBoxAscent:10,actualBoundingBoxDescent:2,emHeightAscent:10,emHeightDescent:2,hangingBaseline:8,alphabeticBaseline:0,ideographicBaseline:-2}}drawImage(s,...S){}createImageData(s,S){if(typeof s==="number"&&typeof S==="number"){let T=new Uint8ClampedArray(s*S*4);return{width:s,height:S,data:T}}else{let T=s;return this.createImageData(T.width,T.height)}}getImageData(s,S,T,C){let D=new Uint8ClampedArray(T*C*4);return{width:T,height:C,data:D}}putImageData(...s){}createLinearGradient(s,S,T,C){let D=new Map;return{addColorStop(w,G){D.set(w,G)}}}createRadialGradient(s,S,T,C,D,w){let G=new Map;return{addColorStop(P,F){G.set(P,F)}}}createPattern(s,S){return{setTransform(T){}}}_lineDash=[];setLineDash(s){this._lineDash=[...s]}getLineDash(){return[...this._lineDash]}isPointInPath(s,S){return!1}isPointInStroke(s,S){return!1}}class Ie{types;_data;constructor(s){this._data=new Map(Object.entries(s)),this.types=Array.from(this._data.keys())}async getType(s){let S=this._data.get(s);if(S===void 0)throw new DOMException(`Type "${s}" not available on ClipboardItem`,"NotFoundError");let T=await S;if(T instanceof Blob)return T;return new Blob([T],{type:s})}static supports(s){return typeof s==="string"&&s.length>0}}class Ei{_text="";async writeText(s){this._text=s}async readText(){return this._text}async write(s){for(let S of s)for(let T of S.types){let C=await S.getType(T);if(T==="text/plain")this._text=await C.text()}}async read(){let s=new Blob([this._text],{type:"text/plain"});return[new Ie({"text/plain":s})]}}function us(){if(typeof process<"u"&&process.platform)switch(process.platform){case"darwin":return"MacIntel";case"win32":return"Win32";case"linux":return"Linux x86_64";default:return process.platform}return"Linux x86_64"}class vi{_granted=null;query(s){return Promise.resolve(new _i(s.name,this._stateFor(s.name)))}_stateFor(s){if(this._granted===null)return"granted";return this._granted.has(s)?"granted":"prompt"}_grant(s){this._granted=new Set([...this._granted??[],...s])}_clearGrants(){this._granted=new Set}}class wi{async estimate(){return{usage:0,quota:1073741824}}async persist(){return!0}async persisted(){return!0}async getDirectory(){throw new DOMException("OPFS not supported","NotSupportedError")}}class _i{name;state;onchange=null;constructor(s,S){this.name=s,this.state=S}}class pt{clipboard=new Ei;geolocation=new it;permissions=new vi;storage=new wi;userAgent="Mozilla/5.0 (X11; Linux x64) AppleWebKit/537.36 (KHTML, like Gecko) VeryHappyDOM/1.0.0";language=typeof process<"u"&&process.env?.LANG?process.env.LANG.split(".")[0].replace("_","-"):"en-US";languages=["en-US","en"];platform=us();cookieEnabled=!0;onLine=!0;hardwareConcurrency=typeof navigator<"u"&&"hardwareConcurrency"in navigator?navigator.hardwareConcurrency:4;maxTouchPoints=0;vendor="";doNotTrack=null;sendBeacon(s,S){try{return globalThis.fetch(s,{method:"POST",body:S??void 0,keepalive:!0}).catch(()=>{}),!0}catch{return!1}}}class ft extends Blob{name;lastModified;constructor(s,S,T){super(s,T);this.name=S,this.lastModified=T?.lastModified||Date.now()}}class u{static EMPTY=0;static LOADING=1;static DONE=2;readyState=u.EMPTY;result=null;error=null;onload=null;onerror=null;onloadstart=null;onloadend=null;onprogress=null;onabort=null;_eventListeners=new Map;readAsText(s,S="UTF-8"){this.readyState=u.LOADING,this._trigger("loadstart"),s.text().then((T)=>{this.result=T,this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((T)=>{this.error=T,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}readAsDataURL(s){this.readyState=u.LOADING,this._trigger("loadstart"),s.arrayBuffer().then((S)=>{let T=Buffer.from(S).toString("base64");this.result=`data:${s.type};base64,${T}`,this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((S)=>{this.error=S,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}readAsArrayBuffer(s){this.readyState=u.LOADING,this._trigger("loadstart"),s.arrayBuffer().then((S)=>{this.result=S,this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((S)=>{this.error=S,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}readAsBinaryString(s){this.readyState=u.LOADING,this._trigger("loadstart"),s.arrayBuffer().then((S)=>{this.result=String.fromCharCode(...new Uint8Array(S)),this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((S)=>{this.error=S,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}abort(){this.readyState=u.DONE,this._trigger("abort"),this._trigger("loadend")}addEventListener(s,S){if(!this._eventListeners.has(s))this._eventListeners.set(s,new Set);this._eventListeners.get(s).add(S)}removeEventListener(s,S){let T=this._eventListeners.get(s);if(T)T.delete(S)}_trigger(s){let S={type:s,lengthComputable:!1,loaded:0,total:0},T=this._eventListeners.get(s);if(T)for(let D of T)D(S);let C=this[`on${s}`];if(C)C.call(this,S)}}class gt{_files=[];constructor(s=[]){this._files=s}get length(){return this._files.length}item(s){return this._files[s]||null}[Symbol.iterator](){return this._files[Symbol.iterator]()}}class v extends n{detail;view;which;constructor(s,S={}){super(s,S);this.detail=S.detail??0,this.view=S.view??null,this.which=S.which??0}}class M extends v{clientX;clientY;screenX;screenY;pageX;pageY;offsetX;offsetY;movementX;movementY;button;buttons;ctrlKey;shiftKey;altKey;metaKey;relatedTarget;constructor(s,S={}){super(s,S);this.clientX=S.clientX??0,this.clientY=S.clientY??0,this.screenX=S.screenX??0,this.screenY=S.screenY??0,this.pageX=S.pageX??0,this.pageY=S.pageY??0,this.offsetX=S.offsetX??0,this.offsetY=S.offsetY??0,this.movementX=S.movementX??0,this.movementY=S.movementY??0,this.button=S.button??0,this.buttons=S.buttons??0,this.ctrlKey=S.ctrlKey??!1,this.shiftKey=S.shiftKey??!1,this.altKey=S.altKey??!1,this.metaKey=S.metaKey??!1,this.relatedTarget=S.relatedTarget??null}}class le extends v{key;code;location;repeat;ctrlKey;shiftKey;altKey;metaKey;isComposing;charCode;keyCode;constructor(s,S={}){super(s,S);this.key=S.key??"",this.code=S.code??"",this.location=S.location??0,this.repeat=S.repeat??!1,this.ctrlKey=S.ctrlKey??!1,this.shiftKey=S.shiftKey??!1,this.altKey=S.altKey??!1,this.metaKey=S.metaKey??!1,this.isComposing=S.isComposing??!1,this.charCode=S.charCode??0,this.keyCode=S.keyCode??0}}class ue extends v{relatedTarget;constructor(s,S={}){super(s,S);this.relatedTarget=S.relatedTarget??null}}class bt extends v{data;inputType;isComposing;dataTransfer;constructor(s,S={}){super(s,S);this.data=S.data??null,this.inputType=S.inputType??"",this.isComposing=S.isComposing??!1,this.dataTransfer=S.dataTransfer??null}}class yt extends M{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(s,S={}){super(s,S);this.deltaX=S.deltaX??0,this.deltaY=S.deltaY??0,this.deltaZ=S.deltaZ??0,this.deltaMode=S.deltaMode??0}}class Et extends M{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;pointerType;isPrimary;constructor(s,S={}){super(s,S);this.pointerId=S.pointerId??0,this.width=S.width??1,this.height=S.height??1,this.pressure=S.pressure??0,this.tangentialPressure=S.tangentialPressure??0,this.tiltX=S.tiltX??0,this.tiltY=S.tiltY??0,this.twist=S.twist??0,this.pointerType=S.pointerType??"",this.isPrimary=S.isPrimary??!1}}class vt extends v{touches;targetTouches;changedTouches;ctrlKey;shiftKey;altKey;metaKey;constructor(s,S={}){super(s,S);this.touches=S.touches??[],this.targetTouches=S.targetTouches??[],this.changedTouches=S.changedTouches??[],this.ctrlKey=S.ctrlKey??!1,this.shiftKey=S.shiftKey??!1,this.altKey=S.altKey??!1,this.metaKey=S.metaKey??!1}}class wt extends n{animationName;elapsedTime;pseudoElement;constructor(s,S={}){super(s,S);this.animationName=S.animationName??"",this.elapsedTime=S.elapsedTime??0,this.pseudoElement=S.pseudoElement??""}}class _t extends n{propertyName;elapsedTime;pseudoElement;constructor(s,S={}){super(s,S);this.propertyName=S.propertyName??"",this.elapsedTime=S.elapsedTime??0,this.pseudoElement=S.pseudoElement??""}}class St extends n{clipboardData;constructor(s,S={}){super(s,S);this.clipboardData=S.clipboardData??null}}class Tt extends M{dataTransfer;constructor(s,S={}){super(s,S);this.dataTransfer=S.dataTransfer??null}}class ce extends n{message;filename;lineno;colno;error;constructor(s,S={}){super(s,S);this.message=S.message??"",this.filename=S.filename??"",this.lineno=S.lineno??0,this.colno=S.colno??0,this.error=S.error??null}}class xt extends n{oldURL;newURL;constructor(s,S={}){super(s,S);this.oldURL=S.oldURL??"",this.newURL=S.newURL??""}}class Nt extends n{state;constructor(s,S={}){super(s,S);this.state=S.state??null}}class Ct extends n{lengthComputable;loaded;total;constructor(s,S={}){super(s,S);this.lengthComputable=S.lengthComputable??!1,this.loaded=S.loaded??0,this.total=S.total??0}}class O extends n{data;origin;lastEventId;source;ports;constructor(s,S={}){super(s,S);this.data=S.data??null,this.origin=S.origin??"",this.lastEventId=S.lastEventId??"",this.source=S.source??null,this.ports=S.ports??[]}}class Vt extends n{code;reason;wasClean;constructor(s,S={}){super(s,S);this.code=S.code??0,this.reason=S.reason??"",this.wasClean=S.wasClean??!1}}class Mt extends n{key;oldValue;newValue;url;storageArea;constructor(s,S={}){super(s,S);this.key=S.key??null,this.oldValue=S.oldValue??null,this.newValue=S.newValue??null,this.url=S.url??"",this.storageArea=S.storageArea??null}}class Ot extends n{submitter;constructor(s,S={}){super(s,S);this.submitter=S.submitter??null}}class Rt extends n{matches;media;constructor(s,S={}){super(s,S);this.matches=S.matches??!1,this.media=S.media??""}}class Lt extends v{data;constructor(s,S={}){super(s,S);this.data=S.data??""}}class At{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(s){this.identifier=s.identifier,this.target=s.target,this.clientX=s.clientX??0,this.clientY=s.clientY??0,this.screenX=s.screenX??0,this.screenY=s.screenY??0,this.pageX=s.pageX??0,this.pageY=s.pageY??0,this.radiusX=s.radiusX??0,this.radiusY=s.radiusY??0,this.rotationAngle=s.rotationAngle??0,this.force=s.force??0}}var Ve=new Map;class Dt extends f{name;_closed=!1;onmessage=null;onmessageerror=null;constructor(s){super();this.name=String(s);let S=Ve.get(this.name);if(!S)S=new Set,Ve.set(this.name,S);S.add(this)}postMessage(s){if(this._closed)throw Error("InvalidStateError: BroadcastChannel is closed");let S=Ve.get(this.name);if(!S)return;queueMicrotask(()=>{for(let T of S){if(T===this||T._closed)continue;let C=new O("message",{data:s,origin:""});try{T.onmessage?.(C)}catch{}T.dispatchEvent(C)}})}close(){if(this._closed)return;this._closed=!0;let s=Ve.get(this.name);if(s){if(s.delete(this),s.size===0)Ve.delete(this.name)}}}class de extends f{_onmessage=null;onmessageerror=null;get onmessage(){return this._onmessage}set onmessage(s){if(this._onmessage=s,s)this.start()}_peer=null;_started=!1;_queue=[];_closed=!1;postMessage(s){if(this._closed||!this._peer)return;let S=new O("message",{data:s,origin:""}),T=this._peer;queueMicrotask(()=>{if(T._closed)return;if(T._started)T._deliver(S);else T._queue.push(S)})}start(){if(this._started)return;this._started=!0;let s=this._queue;this._queue=[];for(let S of s)this._deliver(S)}close(){this._closed=!0}_deliver(s){try{this._onmessage?.(s)}catch{}this.dispatchEvent(s)}addEventListener(s,S,T){if(super.addEventListener(s,S,T),s==="message")this.start()}}class Pt{port1;port2;constructor(){this.port1=new de,this.port2=new de,this.port1._peer=this.port2,this.port2._peer=this.port1}}class R extends f{static CONNECTING=0;static OPEN=1;static CLOSED=2;CONNECTING=0;OPEN=1;CLOSED=2;url;withCredentials;readyState=R.CONNECTING;onopen=null;onmessage=null;onerror=null;_abort;_reconnectTimeout=3000;_lastEventId="";_closed=!1;constructor(s,S={}){super();this.url=typeof s==="string"?s:s.href,this.withCredentials=S.withCredentials===!0,this._abort=new AbortController,this._connect()}close(){this._closed=!0,this.readyState=R.CLOSED,this._abort.abort()}async _connect(){while(!this._closed){try{let s=await globalThis.fetch(this.url,{signal:this._abort.signal,headers:{Accept:"text/event-stream",...this._lastEventId?{"Last-Event-ID":this._lastEventId}:{}},credentials:this.withCredentials?"include":"same-origin"});if(!s.ok||!s.body){this._fireError();return}this.readyState=R.OPEN;let S=new n("open");try{this.onopen?.(S)}catch{}this.dispatchEvent(S),await this._pump(s.body)}catch{if(this._closed)return;this._fireError()}if(this._closed)return;await new Promise((s)=>setTimeout(s,this._reconnectTimeout)),this.readyState=R.CONNECTING}}async _pump(s){let S=s.getReader(),T=new TextDecoder,C="";try{while(!this._closed){let{value:D,done:w}=await S.read();if(w)return;C+=T.decode(D,{stream:!0});let G;while((G=C.indexOf(`
2
+ import{f,n,Ne,Ce,gi,Qi,E,k,l,o,t,i,c,a,V,te,Re,d}from"./chunk-d5edpdkj.js";import{I,y,_}from"./chunk-w2g7xbfh.js";import{x,p}from"./chunk-axyyzc2e.js";import{Z,H,ee,we,_e,$e,qe,ze,Ke,je,Ye,Xe,Se,Te,Je,xe,ci,di,e}from"./chunk-4rkv71j2.js";import{r}from"./chunk-14m9hw4k.js";class rt{_marks=new Map;_measures=new Map;_startTime=Date.now();now(){return Date.now()-this._startTime}mark(s){this._marks.set(s,this.now())}measure(s,S,T){let C=T?this._marks.get(T):this.now(),D=S?this._marks.get(S):0;if(C!==void 0&&D!==void 0)this._measures.set(s,{start:D,duration:C-D})}clearMarks(s){if(s)this._marks.delete(s);else this._marks.clear()}clearMeasures(s){if(s)this._measures.delete(s);else this._measures.clear()}getEntriesByName(s){let S=[];if(this._marks.has(s))S.push({name:s,entryType:"mark",startTime:this._marks.get(s)});if(this._measures.has(s)){let T=this._measures.get(s);S.push({name:s,entryType:"measure",startTime:T.start,duration:T.duration})}return S}}class it{_coords=null;_setPosition(s){this._coords=s}_position(){return{coords:{latitude:this._coords?.latitude??37.7749,longitude:this._coords?.longitude??-122.4194,accuracy:this._coords?.accuracy??10,altitude:null,altitudeAccuracy:null,heading:null,speed:null},timestamp:Date.now()}}getCurrentPosition(s,S,T){setTimeout(()=>{s(this._position())},0)}watchPosition(s,S,T){return setInterval(()=>{s(this._position())},1000)}clearWatch(s){clearInterval(s)}}class ot{static permission="default";title;body;icon;tag;onclick=null;onclose=null;onerror=null;onshow=null;constructor(s,S){this.title=s,this.body=S?.body,this.icon=S?.icon,this.tag=S?.tag,setTimeout(()=>{if(this.onshow)this.onshow({})},0)}static requestPermission(){return Promise.resolve("granted")}close(){if(this.onclose)this.onclose({})}}class qi{_groups=[];_timers=new Map;log(...s){console.log(...this._prefix(),...s)}warn(...s){console.warn(...this._prefix(),...s)}error(...s){console.error(...this._prefix(),...s)}info(...s){console.info(...this._prefix(),...s)}debug(...s){console.debug(...this._prefix(),...s)}table(s){console.table(s)}group(s){if(s)this._groups.push(s),console.log(...this._prefix(),`\u25BC ${s}`)}groupCollapsed(s){this.group(s)}groupEnd(){this._groups.pop()}time(s){this._timers.set(s,Date.now())}timeEnd(s){let S=this._timers.get(s);if(S){let T=Date.now()-S;console.log(...this._prefix(),`${s}: ${T}ms`),this._timers.delete(s)}}timeLog(s,...S){let T=this._timers.get(s);if(T){let C=Date.now()-T;console.log(...this._prefix(),`${s}: ${C}ms`,...S)}}clear(){console.clear()}count(s="default"){console.log(...this._prefix(),s)}assert(s,...S){if(!s)console.error(...this._prefix(),"Assertion failed:",...S)}trace(...s){console.trace(...this._prefix(),...s)}_prefix(){return this._groups.map(()=>" ")}}class st{_data=new Map;dropEffect="none";effectAllowed="uninitialized";files=[];items=[];types=[];setData(s,S){if(this._data.set(s,S),!this.types.includes(s))this.types.push(s)}getData(s){return this._data.get(s)||""}clearData(s){if(s){this._data.delete(s);let S=this.types.indexOf(s);if(S!==-1)this.types.splice(S,1)}else this._data.clear(),this.types=[]}setDragImage(s,S,T){}}class W{_properties=new Map;get length(){return this._properties.size}getPropertyValue(s){return this._properties.get(s)?.value??""}setProperty(s,S,T){this._properties.set(s,{value:S,priority:T??""})}removeProperty(s){let S=this.getPropertyValue(s);return this._properties.delete(s),S}getPropertyPriority(s){return this._properties.get(s)?.priority??""}get cssText(){return Array.from(this._properties.entries()).map(([s,{value:S,priority:T}])=>`${s}: ${S}${T?" !important":""}`).join("; ")}set cssText(s){this._properties.clear();for(let S of s.split(";")){let[T,...C]=S.split(":");if(T&&C.length){let D=C.join(":").trim(),w=D.endsWith("!important");this.setProperty(T.trim(),w?D.replace(/\s*!important\s*$/,"").trim():D,w?"important":"")}}}item(s){return Array.from(this._properties.keys())[s]??""}[Symbol.iterator](){return this._properties.keys()}}class ie{_media=[];get mediaText(){return this._media.join(", ")}set mediaText(s){this._media=s?s.split(",").map((S)=>S.trim()):[]}get length(){return this._media.length}item(s){return this._media[s]??null}appendMedium(s){if(!this._media.includes(s))this._media.push(s)}deleteMedium(s){this._media=this._media.filter((S)=>S!==s)}toString(){return this.mediaText}}class h{static STYLE_RULE=1;static CHARSET_RULE=2;static IMPORT_RULE=3;static MEDIA_RULE=4;static FONT_FACE_RULE=5;static PAGE_RULE=6;static KEYFRAMES_RULE=7;static KEYFRAME_RULE=8;static NAMESPACE_RULE=10;static COUNTER_STYLE_RULE=11;static SUPPORTS_RULE=12;static FONT_FEATURE_VALUES_RULE=14;static CONTAINER_RULE=17;type;cssText="";parentRule=null;parentStyleSheet=null;constructor(s){this.type=s}}function as(s,S){for(let T of s.split(";")){let C=T.indexOf(":");if(C===-1)continue;let D=T.slice(0,C).trim(),w=T.slice(C+1).trim();if(!D||!w)continue;let G=/!\s*important$/i.test(w),P=G?w.replace(/\s*!\s*important$/i,"").trim():w;if(P)S.style.setProperty(D,P,G?"important":"")}}function ts(s,S){let T=[];for(let C of ls(s)){let D=C.trim();if(!D)continue;let w=D.indexOf("{");if(w===-1)continue;let G=D.slice(0,w).trim(),P=D.slice(w+1,D.lastIndexOf("}")).trim(),F=/^@media\b(.*)$/is.exec(G);if(F){let B=new Ae,Q=F[1].trim();B.conditionText=Q,B.media.mediaText=Q,B.parentStyleSheet=S;let re=B.cssRules;for(let J of ts(P,S))J.parentRule=B,re.push(J);T.push(B);continue}let U=new z;U.selectorText=G,U.parentStyleSheet=S,as(P,U),T.push(U)}return T}class oe extends h{cssRules=[];insertRule(s,S=0){let T=new z;return T.cssText=s,T.parentRule=this,T.parentStyleSheet=this.parentStyleSheet,this.cssRules.splice(S,0,T),S}deleteRule(s){this.cssRules.splice(s,1)}}class q extends oe{conditionText=""}class z extends h{selectorText="";style=new W;constructor(){super(h.STYLE_RULE)}}class Ae extends q{media=new ie;constructor(){super(h.MEDIA_RULE)}}class De extends h{keyText="";style=new W;constructor(){super(h.KEYFRAME_RULE)}}class at extends h{name="";cssRules=[];constructor(){super(h.KEYFRAMES_RULE)}appendRule(s){let S=new De;S.cssText=s,S.parentRule=this,S.parentStyleSheet=this.parentStyleSheet,this.cssRules.push(S)}deleteRule(s){let S=this.cssRules.findIndex((T)=>T.keyText===s);if(S!==-1)this.cssRules.splice(S,1)}findRule(s){return this.cssRules.find((S)=>S.keyText===s)??null}}class lt extends h{style=new W;constructor(){super(h.FONT_FACE_RULE)}}class ut extends q{constructor(){super(h.SUPPORTS_RULE)}}class ct extends q{containerName="";containerQuery="";constructor(){super(h.CONTAINER_RULE)}}class dt extends oe{start="";end="";constructor(){super(h.STYLE_RULE)}}class se{cssRules=[];disabled=!1;href=null;media=new ie;ownerNode=null;ownerRule=null;parentStyleSheet=null;title=null;type="text/css";insertRule(s,S=0){let T=new z;return T.cssText=s,T.parentStyleSheet=this,this.cssRules.splice(S,0,T),S}deleteRule(s){this.cssRules.splice(s,1)}replace(s){return this.replaceSync(s),Promise.resolve(this)}replaceSync(s){let S=this.cssRules;S.length=0;for(let T of ts(s,this))S.push(T)}}function ls(s){let S=[],T=0,C=0;for(let D=0;D<s.length;D++){let w=s[D];if(w==="{")T++;else if(w==="}"){if(T--,T===0)S.push(s.slice(C,D+1)),C=D+1}}return S}var We=/^[\w-]+$/,es=/^\w+\(.+\)$/,ht={escape(s){return s.replace(/([^\w-])/g,"\\$1")},supports(s,S){if(S===void 0){let C=s.trim();if(!C)return!1;if(C.startsWith("not ")){let D=C.slice(4).trim().replace(/^\(|\)$/g,""),w=D.indexOf(":");if(w===-1)return!1;return!ht.supports(D.slice(0,w).trim(),D.slice(w+1).trim())}return!0}if(!s||!S)return!1;if(!We.test(s))return!1;let T=S.trim();if(!T)return!1;if(We.test(T))return!0;if(es.test(T))return!0;if(/^-?\d+(?:\.\d+)?(?:[a-z%]+)?$/i.test(T))return!0;if(/^#[0-9a-f]{3,8}$/i.test(T))return!0;return T.split(/\s+/).every((C)=>We.test(C)||es.test(C)||/^-?\d+(?:\.\d+)?(?:[a-z%]+)?$/i.test(C)||/^#[0-9a-f]{3,8}$/i.test(C))}};class Pe{get size(){return 0}has(s){return!1}get(s){return}getAll(s){return[]}forEach(s){}entries(){return[][Symbol.iterator]()}keys(){return[][Symbol.iterator]()}values(){return[][Symbol.iterator]()}}class mt extends Pe{set(s,...S){}append(s,...S){}delete(s){}clear(){}}class ae{fillStyle="#000000";strokeStyle="#000000";globalAlpha=1;globalCompositeOperation="source-over";lineWidth=1;lineCap="butt";lineJoin="miter";miterLimit=10;lineDashOffset=0;shadowOffsetX=0;shadowOffsetY=0;shadowBlur=0;shadowColor="rgba(0, 0, 0, 0)";font="10px sans-serif";textAlign="start";textBaseline="alphabetic";canvas;savedStates=[];currentPath=[];transformMatrix=[1,0,0,1,0,0];constructor(s){this.canvas=s}save(){this.savedStates.push({fillStyle:this.fillStyle,strokeStyle:this.strokeStyle,globalAlpha:this.globalAlpha,globalCompositeOperation:this.globalCompositeOperation,lineWidth:this.lineWidth,lineCap:this.lineCap,lineJoin:this.lineJoin,miterLimit:this.miterLimit,lineDashOffset:this.lineDashOffset,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,font:this.font,textAlign:this.textAlign,textBaseline:this.textBaseline,transformMatrix:[...this.transformMatrix]})}restore(){let s=this.savedStates.pop();if(s)Object.assign(this,s)}scale(s,S){this.transformMatrix[0]*=s,this.transformMatrix[3]*=S}rotate(s){let S=Math.cos(s),T=Math.sin(s),[C,D,w,G,P,F]=this.transformMatrix;this.transformMatrix[0]=C*S+w*T,this.transformMatrix[1]=D*S+G*T,this.transformMatrix[2]=w*S-C*T,this.transformMatrix[3]=G*S-D*T}translate(s,S){this.transformMatrix[4]+=s,this.transformMatrix[5]+=S}transform(s,S,T,C,D,w){let[G,P,F,U,B,Q]=this.transformMatrix;this.transformMatrix[0]=G*s+F*S,this.transformMatrix[1]=P*s+U*S,this.transformMatrix[2]=G*T+F*C,this.transformMatrix[3]=P*T+U*C,this.transformMatrix[4]=G*D+F*w+B,this.transformMatrix[5]=P*D+U*w+Q}setTransform(s,S,T,C,D,w){this.transformMatrix=[s,S,T,C,D,w]}resetTransform(){this.transformMatrix=[1,0,0,1,0,0]}beginPath(){this.currentPath=[]}closePath(){this.currentPath.push({type:"closePath",args:[]})}moveTo(s,S){this.currentPath.push({type:"moveTo",args:[s,S]})}lineTo(s,S){this.currentPath.push({type:"lineTo",args:[s,S]})}arc(s,S,T,C,D,w=!1){this.currentPath.push({type:"arc",args:[s,S,T,C,D,w]})}arcTo(s,S,T,C,D){this.currentPath.push({type:"arcTo",args:[s,S,T,C,D]})}quadraticCurveTo(s,S,T,C){this.currentPath.push({type:"quadraticCurveTo",args:[s,S,T,C]})}bezierCurveTo(s,S,T,C,D,w){this.currentPath.push({type:"bezierCurveTo",args:[s,S,T,C,D,w]})}rect(s,S,T,C){this.currentPath.push({type:"rect",args:[s,S,T,C]})}ellipse(s,S,T,C,D,w,G,P=!1){this.currentPath.push({type:"ellipse",args:[s,S,T,C,D,w,G,P]})}fill(){}stroke(){}clip(){}fillRect(s,S,T,C){}strokeRect(s,S,T,C){}clearRect(s,S,T,C){}fillText(s,S,T,C){}strokeText(s,S,T,C){}measureText(s){let S=s.length*8;return{width:S,actualBoundingBoxLeft:0,actualBoundingBoxRight:S,fontBoundingBoxAscent:10,fontBoundingBoxDescent:2,actualBoundingBoxAscent:10,actualBoundingBoxDescent:2,emHeightAscent:10,emHeightDescent:2,hangingBaseline:8,alphabeticBaseline:0,ideographicBaseline:-2}}drawImage(s,...S){}createImageData(s,S){if(typeof s==="number"&&typeof S==="number"){let T=new Uint8ClampedArray(s*S*4);return{width:s,height:S,data:T}}else{let T=s;return this.createImageData(T.width,T.height)}}getImageData(s,S,T,C){let D=new Uint8ClampedArray(T*C*4);return{width:T,height:C,data:D}}putImageData(...s){}createLinearGradient(s,S,T,C){let D=new Map;return{addColorStop(w,G){D.set(w,G)}}}createRadialGradient(s,S,T,C,D,w){let G=new Map;return{addColorStop(P,F){G.set(P,F)}}}createPattern(s,S){return{setTransform(T){}}}_lineDash=[];setLineDash(s){this._lineDash=[...s]}getLineDash(){return[...this._lineDash]}isPointInPath(s,S){return!1}isPointInStroke(s,S){return!1}}class Ie{types;_data;constructor(s){this._data=new Map(Object.entries(s)),this.types=Array.from(this._data.keys())}async getType(s){let S=this._data.get(s);if(S===void 0)throw new DOMException(`Type "${s}" not available on ClipboardItem`,"NotFoundError");let T=await S;if(T instanceof Blob)return T;return new Blob([T],{type:s})}static supports(s){return typeof s==="string"&&s.length>0}}class Ei{_text="";async writeText(s){this._text=s}async readText(){return this._text}async write(s){for(let S of s)for(let T of S.types){let C=await S.getType(T);if(T==="text/plain")this._text=await C.text()}}async read(){let s=new Blob([this._text],{type:"text/plain"});return[new Ie({"text/plain":s})]}}function us(){if(typeof process<"u"&&process.platform)switch(process.platform){case"darwin":return"MacIntel";case"win32":return"Win32";case"linux":return"Linux x86_64";default:return process.platform}return"Linux x86_64"}class vi{_granted=null;query(s){return Promise.resolve(new _i(s.name,this._stateFor(s.name)))}_stateFor(s){if(this._granted===null)return"granted";return this._granted.has(s)?"granted":"prompt"}_grant(s){this._granted=new Set([...this._granted??[],...s])}_clearGrants(){this._granted=new Set}}class wi{async estimate(){return{usage:0,quota:1073741824}}async persist(){return!0}async persisted(){return!0}async getDirectory(){throw new DOMException("OPFS not supported","NotSupportedError")}}class _i{name;state;onchange=null;constructor(s,S){this.name=s,this.state=S}}class pt{clipboard=new Ei;geolocation=new it;permissions=new vi;storage=new wi;userAgent="Mozilla/5.0 (X11; Linux x64) AppleWebKit/537.36 (KHTML, like Gecko) VeryHappyDOM/1.0.0";language=typeof process<"u"&&process.env?.LANG?process.env.LANG.split(".")[0].replace("_","-"):"en-US";languages=["en-US","en"];platform=us();cookieEnabled=!0;onLine=!0;hardwareConcurrency=typeof navigator<"u"&&"hardwareConcurrency"in navigator?navigator.hardwareConcurrency:4;maxTouchPoints=0;vendor="";doNotTrack=null;sendBeacon(s,S){try{return globalThis.fetch(s,{method:"POST",body:S??void 0,keepalive:!0}).catch(()=>{}),!0}catch{return!1}}}class ft extends Blob{name;lastModified;constructor(s,S,T){super(s,T);this.name=S,this.lastModified=T?.lastModified||Date.now()}}class u{static EMPTY=0;static LOADING=1;static DONE=2;readyState=u.EMPTY;result=null;error=null;onload=null;onerror=null;onloadstart=null;onloadend=null;onprogress=null;onabort=null;_eventListeners=new Map;readAsText(s,S="UTF-8"){this.readyState=u.LOADING,this._trigger("loadstart"),s.text().then((T)=>{this.result=T,this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((T)=>{this.error=T,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}readAsDataURL(s){this.readyState=u.LOADING,this._trigger("loadstart"),s.arrayBuffer().then((S)=>{let T=Buffer.from(S).toString("base64");this.result=`data:${s.type};base64,${T}`,this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((S)=>{this.error=S,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}readAsArrayBuffer(s){this.readyState=u.LOADING,this._trigger("loadstart"),s.arrayBuffer().then((S)=>{this.result=S,this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((S)=>{this.error=S,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}readAsBinaryString(s){this.readyState=u.LOADING,this._trigger("loadstart"),s.arrayBuffer().then((S)=>{this.result=String.fromCharCode(...new Uint8Array(S)),this.readyState=u.DONE,this._trigger("load"),this._trigger("loadend")}).catch((S)=>{this.error=S,this.readyState=u.DONE,this._trigger("error"),this._trigger("loadend")})}abort(){this.readyState=u.DONE,this._trigger("abort"),this._trigger("loadend")}addEventListener(s,S){if(!this._eventListeners.has(s))this._eventListeners.set(s,new Set);this._eventListeners.get(s).add(S)}removeEventListener(s,S){let T=this._eventListeners.get(s);if(T)T.delete(S)}_trigger(s){let S={type:s,lengthComputable:!1,loaded:0,total:0},T=this._eventListeners.get(s);if(T)for(let D of T)D(S);let C=this[`on${s}`];if(C)C.call(this,S)}}class gt{_files=[];constructor(s=[]){this._files=s}get length(){return this._files.length}item(s){return this._files[s]||null}[Symbol.iterator](){return this._files[Symbol.iterator]()}}class v extends n{detail;view;which;constructor(s,S={}){super(s,S);this.detail=S.detail??0,this.view=S.view??null,this.which=S.which??0}}class M extends v{clientX;clientY;screenX;screenY;pageX;pageY;offsetX;offsetY;movementX;movementY;button;buttons;ctrlKey;shiftKey;altKey;metaKey;relatedTarget;constructor(s,S={}){super(s,S);this.clientX=S.clientX??0,this.clientY=S.clientY??0,this.screenX=S.screenX??0,this.screenY=S.screenY??0,this.pageX=S.pageX??0,this.pageY=S.pageY??0,this.offsetX=S.offsetX??0,this.offsetY=S.offsetY??0,this.movementX=S.movementX??0,this.movementY=S.movementY??0,this.button=S.button??0,this.buttons=S.buttons??0,this.ctrlKey=S.ctrlKey??!1,this.shiftKey=S.shiftKey??!1,this.altKey=S.altKey??!1,this.metaKey=S.metaKey??!1,this.relatedTarget=S.relatedTarget??null}}class le extends v{key;code;location;repeat;ctrlKey;shiftKey;altKey;metaKey;isComposing;charCode;keyCode;constructor(s,S={}){super(s,S);this.key=S.key??"",this.code=S.code??"",this.location=S.location??0,this.repeat=S.repeat??!1,this.ctrlKey=S.ctrlKey??!1,this.shiftKey=S.shiftKey??!1,this.altKey=S.altKey??!1,this.metaKey=S.metaKey??!1,this.isComposing=S.isComposing??!1,this.charCode=S.charCode??0,this.keyCode=S.keyCode??0}}class ue extends v{relatedTarget;constructor(s,S={}){super(s,S);this.relatedTarget=S.relatedTarget??null}}class bt extends v{data;inputType;isComposing;dataTransfer;constructor(s,S={}){super(s,S);this.data=S.data??null,this.inputType=S.inputType??"",this.isComposing=S.isComposing??!1,this.dataTransfer=S.dataTransfer??null}}class yt extends M{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(s,S={}){super(s,S);this.deltaX=S.deltaX??0,this.deltaY=S.deltaY??0,this.deltaZ=S.deltaZ??0,this.deltaMode=S.deltaMode??0}}class Et extends M{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;pointerType;isPrimary;constructor(s,S={}){super(s,S);this.pointerId=S.pointerId??0,this.width=S.width??1,this.height=S.height??1,this.pressure=S.pressure??0,this.tangentialPressure=S.tangentialPressure??0,this.tiltX=S.tiltX??0,this.tiltY=S.tiltY??0,this.twist=S.twist??0,this.pointerType=S.pointerType??"",this.isPrimary=S.isPrimary??!1}}class vt extends v{touches;targetTouches;changedTouches;ctrlKey;shiftKey;altKey;metaKey;constructor(s,S={}){super(s,S);this.touches=S.touches??[],this.targetTouches=S.targetTouches??[],this.changedTouches=S.changedTouches??[],this.ctrlKey=S.ctrlKey??!1,this.shiftKey=S.shiftKey??!1,this.altKey=S.altKey??!1,this.metaKey=S.metaKey??!1}}class wt extends n{animationName;elapsedTime;pseudoElement;constructor(s,S={}){super(s,S);this.animationName=S.animationName??"",this.elapsedTime=S.elapsedTime??0,this.pseudoElement=S.pseudoElement??""}}class _t extends n{propertyName;elapsedTime;pseudoElement;constructor(s,S={}){super(s,S);this.propertyName=S.propertyName??"",this.elapsedTime=S.elapsedTime??0,this.pseudoElement=S.pseudoElement??""}}class St extends n{clipboardData;constructor(s,S={}){super(s,S);this.clipboardData=S.clipboardData??null}}class Tt extends M{dataTransfer;constructor(s,S={}){super(s,S);this.dataTransfer=S.dataTransfer??null}}class ce extends n{message;filename;lineno;colno;error;constructor(s,S={}){super(s,S);this.message=S.message??"",this.filename=S.filename??"",this.lineno=S.lineno??0,this.colno=S.colno??0,this.error=S.error??null}}class xt extends n{oldURL;newURL;constructor(s,S={}){super(s,S);this.oldURL=S.oldURL??"",this.newURL=S.newURL??""}}class Nt extends n{state;constructor(s,S={}){super(s,S);this.state=S.state??null}}class Ct extends n{lengthComputable;loaded;total;constructor(s,S={}){super(s,S);this.lengthComputable=S.lengthComputable??!1,this.loaded=S.loaded??0,this.total=S.total??0}}class O extends n{data;origin;lastEventId;source;ports;constructor(s,S={}){super(s,S);this.data=S.data??null,this.origin=S.origin??"",this.lastEventId=S.lastEventId??"",this.source=S.source??null,this.ports=S.ports??[]}}class Vt extends n{code;reason;wasClean;constructor(s,S={}){super(s,S);this.code=S.code??0,this.reason=S.reason??"",this.wasClean=S.wasClean??!1}}class Mt extends n{key;oldValue;newValue;url;storageArea;constructor(s,S={}){super(s,S);this.key=S.key??null,this.oldValue=S.oldValue??null,this.newValue=S.newValue??null,this.url=S.url??"",this.storageArea=S.storageArea??null}}class Ot extends n{submitter;constructor(s,S={}){super(s,S);this.submitter=S.submitter??null}}class Rt extends n{matches;media;constructor(s,S={}){super(s,S);this.matches=S.matches??!1,this.media=S.media??""}}class Lt extends v{data;constructor(s,S={}){super(s,S);this.data=S.data??""}}class At{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(s){this.identifier=s.identifier,this.target=s.target,this.clientX=s.clientX??0,this.clientY=s.clientY??0,this.screenX=s.screenX??0,this.screenY=s.screenY??0,this.pageX=s.pageX??0,this.pageY=s.pageY??0,this.radiusX=s.radiusX??0,this.radiusY=s.radiusY??0,this.rotationAngle=s.rotationAngle??0,this.force=s.force??0}}var Ve=new Map;class Dt extends f{name;_closed=!1;onmessage=null;onmessageerror=null;constructor(s){super();this.name=String(s);let S=Ve.get(this.name);if(!S)S=new Set,Ve.set(this.name,S);S.add(this)}postMessage(s){if(this._closed)throw Error("InvalidStateError: BroadcastChannel is closed");let S=Ve.get(this.name);if(!S)return;queueMicrotask(()=>{for(let T of S){if(T===this||T._closed)continue;let C=new O("message",{data:s,origin:""});try{T.onmessage?.(C)}catch{}T.dispatchEvent(C)}})}close(){if(this._closed)return;this._closed=!0;let s=Ve.get(this.name);if(s){if(s.delete(this),s.size===0)Ve.delete(this.name)}}}class de extends f{_onmessage=null;onmessageerror=null;get onmessage(){return this._onmessage}set onmessage(s){if(this._onmessage=s,s)this.start()}_peer=null;_started=!1;_queue=[];_closed=!1;postMessage(s){if(this._closed||!this._peer)return;let S=new O("message",{data:s,origin:""}),T=this._peer;queueMicrotask(()=>{if(T._closed)return;if(T._started)T._deliver(S);else T._queue.push(S)})}start(){if(this._started)return;this._started=!0;let s=this._queue;this._queue=[];for(let S of s)this._deliver(S)}close(){this._closed=!0}_deliver(s){try{this._onmessage?.(s)}catch{}this.dispatchEvent(s)}addEventListener(s,S,T){if(super.addEventListener(s,S,T),s==="message")this.start()}}class Pt{port1;port2;constructor(){this.port1=new de,this.port2=new de,this.port1._peer=this.port2,this.port2._peer=this.port1}}class R extends f{static CONNECTING=0;static OPEN=1;static CLOSED=2;CONNECTING=0;OPEN=1;CLOSED=2;url;withCredentials;readyState=R.CONNECTING;onopen=null;onmessage=null;onerror=null;_abort;_reconnectTimeout=3000;_lastEventId="";_closed=!1;constructor(s,S={}){super();this.url=typeof s==="string"?s:s.href,this.withCredentials=S.withCredentials===!0,this._abort=new AbortController,this._connect()}close(){this._closed=!0,this.readyState=R.CLOSED,this._abort.abort()}async _connect(){while(!this._closed){try{let s=await globalThis.fetch(this.url,{signal:this._abort.signal,headers:{Accept:"text/event-stream",...this._lastEventId?{"Last-Event-ID":this._lastEventId}:{}},credentials:this.withCredentials?"include":"same-origin"});if(!s.ok||!s.body){this._fireError();return}this.readyState=R.OPEN;let S=new n("open");try{this.onopen?.(S)}catch{}this.dispatchEvent(S),await this._pump(s.body)}catch{if(this._closed)return;this._fireError()}if(this._closed)return;await new Promise((s)=>setTimeout(s,this._reconnectTimeout)),this.readyState=R.CONNECTING}}async _pump(s){let S=s.getReader(),T=new TextDecoder,C="";try{while(!this._closed){let{value:D,done:w}=await S.read();if(w)return;C+=T.decode(D,{stream:!0});let G;while((G=C.indexOf(`
3
3
 
4
4
  `))>=0||(G=C.indexOf(`\r
5
5
  \r
6
6
  `))>=0){let P=C[G+1]===`
7
7
  `?4:2,F=C.slice(0,G);C=C.slice(G+P),this._dispatchFrame(F)}}}finally{S.releaseLock()}}_dispatchFrame(s){let S="message",T=[],C;for(let w of s.split(/\r?\n/)){if(!w||w.startsWith(":"))continue;let G=w.indexOf(":"),P=G===-1?w:w.slice(0,G),F=G===-1?"":w.slice(G+1);if(F.startsWith(" "))F=F.slice(1);switch(P){case"event":S=F;break;case"data":T.push(F);break;case"id":C=F;break;case"retry":{let U=Number(F);if(Number.isFinite(U))this._reconnectTimeout=U;break}}}if(C!==void 0)this._lastEventId=C;if(T.length===0)return;let D=new O(S,{data:T.join(`
8
8
  `),lastEventId:this._lastEventId,origin:new URL(this.url,"http://localhost").origin});if(S==="message")try{this.onmessage?.(D)}catch{}this.dispatchEvent(D)}_fireError(){this.readyState=R.CLOSED;let s=new ce("error");try{this.onerror?.(s)}catch{}this.dispatchEvent(s)}}var Qe=globalThis.FormData;function zi(s,S){let T=new Qe;if(!s||typeof s!=="object")return T;let C=s;if(C.tagName!=="FORM")return T;let D=C.elements?Array.from(C.elements):C.querySelectorAll?Array.from(C.querySelectorAll("input,select,textarea,button")):[];for(let w of D){let G=w,P=G.name;if(!P||G.disabled)continue;let F=(G.tagName??"").toUpperCase(),U=(G.type??"").toLowerCase();if(F==="BUTTON"||U==="button"||U==="reset"){if(G!==S)continue}if(U==="submit"&&G!==S)continue;if((U==="checkbox"||U==="radio")&&!G.checked)continue;if(U==="file"){let B=G.files;if(!B||B.length===0)T.append(P,new File([],"",{type:"application/octet-stream"}));else for(let Q of B)T.append(P,Q);continue}if(F==="SELECT"){let B=G.multiple&&G.options?G.options.filter((Q)=>Q.selected).map((Q)=>Q.value):[G.value??""];for(let Q of B)T.append(P,Q);continue}T.append(P,G.value??"")}return T}var Si=new Proxy(Qe,{construct(s,S){let[T,C]=S;if(T===void 0)return new Qe;return zi(T,C)}});class Ze extends Array{contains(s){return this.includes(s)}item(s){return this[s]??null}}class he extends f{result=void 0;error=null;source=null;transaction=null;readyState="pending";onsuccess=null;onerror=null;_resolve(s){this.result=s,this.readyState="done",queueMicrotask(()=>{let S=new n("success");try{this.onsuccess?.(S)}catch{}this.dispatchEvent(S),this._notifyTransaction()})}_reject(s){this.error=s,this.readyState="done",queueMicrotask(()=>{let S=new n("error");try{this.onerror?.(S)}catch{}this.dispatchEvent(S),this._notifyTransaction()})}_notifyTransaction(){this.transaction?._settled?.()}}class me extends he{onupgradeneeded=null;onblocked=null}class ke{name;keyPath;autoIncrement;indexNames=[];transaction=null;_data=new Map;_autoKey=1;constructor(s,S={}){this.name=s,this.keyPath=S.keyPath??null,this.autoIncrement=S.autoIncrement===!0}add(s,S){return this._put(s,S,!0)}put(s,S){return this._put(s,S,!1)}get(s){let S=this._request();return S._resolve(this._data.get(String(s))),S}getAll(){let s=this._request();return s._resolve(Array.from(this._data.values())),s}delete(s){let S=this._request();return this._beforeWrite(),this._data.delete(String(s)),S._resolve(void 0),S}clear(){let s=this._request();return this._beforeWrite(),this._data.clear(),s._resolve(void 0),s}count(){let s=this._request();return s._resolve(this._data.size),s}createIndex(){throw Error("IDBObjectStore.createIndex not supported in the stub")}_put(s,S,T){let C=this._request(),D;if(S!==void 0)D=String(S);else if(this.keyPath&&typeof s==="object"&&s!==null){let w=Array.isArray(this.keyPath)?this.keyPath[0]:this.keyPath;D=String(s[w])}else if(this.autoIncrement)D=String(this._autoKey++);else return C._reject(new DOMException("No key specified","DataError")),C;if(T&&this._data.has(D))return C._reject(new DOMException("Key already exists","ConstraintError")),C;return this._beforeWrite(),this._data.set(D,s),C._resolve(D),C}_request(){let s=new he;return s.source=this,s.transaction=this.transaction,this.transaction?._pending(1),s}_beforeWrite(){this.transaction?._noteWrite(this)}_snapshot(){return{data:new Map(this._data),autoKey:this._autoKey}}_restore(s){this._data=new Map(s.data),this._autoKey=s.autoKey}}class Be extends f{mode;objectStoreNames;db;error=null;oncomplete=null;onabort=null;onerror=null;_snapshots=new Map;_outstanding=0;_settledOnce=!1;_done=!1;_didAbort=!1;constructor(s,S,T){super();this.db=s,this.objectStoreNames=new Ze(...S),this.mode=T,queueMicrotask(()=>{this._settledOnce=!0,this._maybeComplete()})}objectStore(s){let S=this.db._getStore(s);if(!S)throw new DOMException(`No object store named "${s}"`,"NotFoundError");return S.transaction=this,S}abort(){if(this._done)return;this._done=!0,this._didAbort=!0;for(let[S,T]of this._snapshots)S._restore(T);this._snapshots.clear();let s=new n("abort");try{this.onabort?.(s)}catch{}this.dispatchEvent(s)}_noteWrite(s){if(this.mode==="readonly"||this._done||this._snapshots.has(s))return;this._snapshots.set(s,s._snapshot())}_pending(s){this._outstanding+=s}_settled(){this._outstanding--,queueMicrotask(()=>this._maybeComplete())}_maybeComplete(){if(this._done||!this._settledOnce||this._outstanding>0)return;this._done=!0,this._snapshots.clear();let s=new n("complete");try{this.oncomplete?.(s)}catch{}this.dispatchEvent(s)}get aborted(){return this._didAbort}}class He extends f{name;version;objectStoreNames=new Ze;_stores=new Map;onabort=null;onclose=null;onerror=null;onversionchange=null;constructor(s,S){super();this.name=s,this.version=S}createObjectStore(s,S){let T=new ke(s,S);return this._stores.set(s,T),this.objectStoreNames.push(s),T}deleteObjectStore(s){this._stores.delete(s);let S=this.objectStoreNames.indexOf(s);if(S>=0)this.objectStoreNames.splice(S,1)}transaction(s,S="readonly"){let T=Array.isArray(s)?s:[s];return new Be(this,T,S)}close(){}_getStore(s){return this._stores.get(s)}}class Fe{_dbs=new Map;open(s,S=1){let T=new me,C=this._dbs.get(s),D=!C||C.version<S,w=C??new He(s,S);if(this._dbs.set(s,w),D)queueMicrotask(()=>{let G=new n("upgradeneeded"),P=G;P.oldVersion=C?.version??0,P.newVersion=S,T.result=w;try{T.onupgradeneeded?.(G),T.dispatchEvent(G)}catch(F){T._reject(F instanceof DOMException?F:new DOMException(String(F?.message??F),"AbortError"));return}T._resolve(w)});else T._resolve(w);return T}deleteDatabase(s){let S=new me;return this._dbs.delete(s),S._resolve(void 0),S}databases(){return Promise.resolve(Array.from(this._dbs.values()).map((s)=>({name:s.name,version:s.version})))}cmp(s,S){let T=String(s),C=String(S);return T<C?-1:T>C?1:0}}function Ti(){return new Fe}var cs=Object.freeze(["mark","measure","resource","navigation","paint","longtask","element","event"]);class It{static supportedEntryTypes=cs;_callback;_types=new Set;_records=[];constructor(s){this._callback=s}observe(s={}){if(s.entryTypes)for(let S of s.entryTypes)this._types.add(S);else if(s.type)this._types.add(s.type)}disconnect(){this._types.clear(),this._records=[]}takeRecords(){let s=this._records;return this._records=[],s}_push(s){if(!this._types.has(s.entryType))return;this._records.push(s);let S={getEntries:()=>this._records.slice(),getEntriesByType:(T)=>this._records.filter((C)=>C.entryType===T),getEntriesByName:(T,C)=>this._records.filter((D)=>D.name===T&&(!C||D.entryType===C))};try{this._callback(S,this)}catch{}}}class pe extends n{detail;constructor(s,S={}){super(s,S);this.detail=S.detail}}class g{static UNSENT=0;static OPENED=1;static HEADERS_RECEIVED=2;static LOADING=3;static DONE=4;readyState=g.UNSENT;response=null;responseText="";responseType="";responseURL="";responseXML=null;status=0;statusText="";timeout=0;upload=new ns;withCredentials=!1;onreadystatechange=null;onload=null;onerror=null;onabort=null;onloadstart=null;onloadend=null;onprogress=null;ontimeout=null;_method="";_url="";_requestHeaders=new Map;_responseHeaders=new Map;_aborted=!1;_eventListeners=new Map;constructor(){}open(s,S,T=!0,C,D){this._method=s.toUpperCase(),this._url=S,this.readyState=g.OPENED,this._triggerEvent("readystatechange")}send(s){if(this.readyState!==g.OPENED)throw Error("InvalidStateError: Object state must be OPENED");this._triggerEvent("loadstart",!0);let S={};for(let[w,G]of this._requestHeaders)S[w]=G;let T={method:this._method,headers:S,body:s,credentials:this.withCredentials?"include":"same-origin"},C=new AbortController,D=null;if(this.timeout>0)D=setTimeout(()=>{C.abort(),this._triggerEvent("timeout",!0)},this.timeout);fetch(this._url,{...T,signal:C.signal}).then(async(w)=>{if(D)clearTimeout(D);if(this._aborted)return;if(this.status=w.status,this.statusText=w.statusText,this.responseURL=w.url,w.headers.forEach((G,P)=>{this._responseHeaders.set(P.toLowerCase(),G)}),this.readyState=g.HEADERS_RECEIVED,this._triggerEvent("readystatechange"),this.readyState=g.LOADING,this._triggerEvent("readystatechange"),this.responseType===""||this.responseType==="text")this.responseText=await w.text(),this.response=this.responseText;else if(this.responseType==="json")this.response=await w.json(),this.responseText=JSON.stringify(this.response);else if(this.responseType==="arraybuffer")this.response=await w.arrayBuffer();else if(this.responseType==="blob")this.response=await w.blob();this.readyState=g.DONE,this._triggerEvent("readystatechange"),this._triggerEvent("load",!0),this._triggerEvent("loadend",!0)}).catch(()=>{if(D)clearTimeout(D);if(this._aborted){this._triggerEvent("abort",!0),this._triggerEvent("loadend",!0);return}this.readyState=g.DONE,this._triggerEvent("readystatechange"),this._triggerEvent("error",!0),this._triggerEvent("loadend",!0)})}abort(){if(this._aborted=!0,this.readyState!==g.UNSENT&&this.readyState!==g.DONE)this.readyState=g.UNSENT,this._triggerEvent("abort",!0),this._triggerEvent("loadend",!0)}setRequestHeader(s,S){if(this.readyState!==g.OPENED)throw Error("InvalidStateError: Object state must be OPENED");this._requestHeaders.set(s.toLowerCase(),S)}getResponseHeader(s){return this._responseHeaders.get(s.toLowerCase())||null}getAllResponseHeaders(){let s=[];for(let[S,T]of this._responseHeaders)s.push(`${S}: ${T}`);return s.join(`\r
9
- `)}overrideMimeType(s){}addEventListener(s,S){if(!this._eventListeners.has(s))this._eventListeners.set(s,new Set);this._eventListeners.get(s).add(S)}removeEventListener(s,S){let T=this._eventListeners.get(s);if(T)T.delete(S)}dispatchEvent(s){let S=this._eventListeners.get(s.type);if(S)for(let C of S)C(s);let T=this[`on${s.type}`];if(T)T.call(this,s);return!0}_triggerEvent(s,S=!1){let T=S?{type:s,lengthComputable:!1,loaded:0,total:0}:{type:s};this.dispatchEvent(T)}}class ns{onprogress=null;onload=null;onerror=null;addEventListener(s,S){}removeEventListener(s,S){}dispatchEvent(s){return!0}}class kt{static CONNECTING=0;static OPEN=1;static CLOSING=2;static CLOSED=3;readyState=0;url;protocol="";extensions="";binaryType="blob";bufferedAmount=0;onopen=null;onmessage=null;onerror=null;onclose=null;_ws=null;_eventListeners=new Map;constructor(s,S){this.url=s;try{this._ws=new WebSocket(s,S),this._ws.addEventListener("open",(T)=>{if(this.readyState=1,this._ws)this.protocol=this._ws.protocol||"",this.extensions=this._ws.extensions||"";this.dispatchEvent({type:"open"})}),this._ws.addEventListener("message",(T)=>{let C={type:"message",data:T.data,origin:this.url,lastEventId:"",source:null,ports:[]};this.dispatchEvent(C)}),this._ws.addEventListener("error",(T)=>{this.dispatchEvent({type:"error"})}),this._ws.addEventListener("close",(T)=>{this.readyState=3;let C={type:"close",code:T.code||1000,reason:T.reason||"",wasClean:T.wasClean!==!1};this.dispatchEvent(C)})}catch{setTimeout(()=>{this.readyState=3,this.dispatchEvent({type:"error"})},0)}}send(s){if(this.readyState!==1)throw Error(`WebSocket is not open: readyState ${this.readyState}`);if(this._ws)if(s instanceof Blob)s.arrayBuffer().then((S)=>{this._ws?.send(S)});else this._ws.send(s)}close(s,S){if(this.readyState===2||this.readyState===3)return;if(this.readyState=2,this._ws)this._ws.close(s,S)}addEventListener(s,S){if(!this._eventListeners.has(s))this._eventListeners.set(s,new Set);this._eventListeners.get(s).add(S)}removeEventListener(s,S){let T=this._eventListeners.get(s);if(T)T.delete(S)}dispatchEvent(s){let S=this._eventListeners.get(s.type);if(S)for(let C of S)C(s);let T=this[`on${s.type}`];if(T)T.call(this,s);return!0}}var xi;((C)=>{C.none="None";C.lax="Lax";C.strict="Strict"})(xi||={});function ds(s,S,T){if(T)return s===S;return s===S||s.endsWith(`.${S}`)}function ps(s,S){if(s===S)return!0;if(!s.startsWith(S))return!1;if(S.endsWith("/"))return!0;return s[S.length]==="/"}class L{_cookies=[];addCookies(s){for(let S of s){let T=(S.domain||new URL(S.originURL).hostname).replace(/^\./,"").toLowerCase(),C=S.path||"/";if(this._cookies=this._cookies.filter((D)=>!(D.key===S.key&&(D.domain||new URL(D.originURL).hostname).toLowerCase()===T&&(D.path||"/")===C)),S.expires&&S.expires<=new Date)continue;this._cookies.push({...S,value:S.value||"",domain:T,hostOnly:S.hostOnly??!S.domain,path:C,expires:S.expires,httpOnly:S.httpOnly||!1,secure:S.secure||!1,sameSite:S.sameSite||"Lax"})}}getCookies(s,S=!1){let T=new URL(s),C=T.hostname.toLowerCase(),D=T.pathname,w=T.protocol==="https:",G=new Date;return this._cookies.filter((P)=>{if(P.expires&&P.expires<G)return!1;if(P.httpOnly&&!S)return!1;if(P.secure&&!w)return!1;let F=(P.domain||new URL(P.originURL).hostname).toLowerCase();if(!ds(C,F,P.hostOnly===!0))return!1;let U=P.path||"/";if(!ps(D,U))return!1;return!0}).sort((P,F)=>(F.path?.length||0)-(P.path?.length||0))}getAllCookies(){return[...this._cookies]}clearCookies(){this._cookies=[]}}var A=1,K=2,Bt=3,Ge=4294967295,Ni=1,Ci=4,Vi=128,Mi=256,Oi=1024,Ri={FILTER_ACCEPT:A,FILTER_REJECT:K,FILTER_SKIP:Bt,SHOW_ALL:Ge,SHOW_ELEMENT:Ni,SHOW_TEXT:Ci,SHOW_COMMENT:Vi,SHOW_DOCUMENT:Mi,SHOW_DOCUMENT_FRAGMENT:Oi};function ms(s){switch(s.nodeType){case t:return Ni;case i:return Ci;case c:return Vi;case a:return Mi;case V:return Oi;default:return 0}}function hs(s){if(!s)return null;if(typeof s==="function")return s;return typeof s.acceptNode==="function"?s.acceptNode.bind(s):null}function Me(s,S,T){if(!(S===Ge||(S&ms(s))!==0))return Bt;let D=A,w=hs(T);if(!w)return D;let G=w(s);return G===A||G===K||G===Bt?G:D}function gs(s){let S=[],T=(C)=>{S.push(C);for(let D of C.childNodes)T(D)};return T(s),S}function Le(s,S,T){let C=[],D=(w)=>{let G=Me(w,S,T);if(G===A)C.push(w);if(G!==K)for(let P of w.childNodes)D(P)};return D(s),C}function et(s,S,T){let C=Me(s,S,T);if(C===A)return s;if(C===K)return null;for(let D of s.childNodes){let w=et(D,S,T);if(w)return w}return null}function tt(s,S,T){let C=Me(s,S,T);if(C!==K)for(let D=s.childNodes.length-1;D>=0;D--){let w=tt(s.childNodes[D],S,T);if(w)return w}return C===A?s:null}function rs(s,S){let T=s;while(T){if(T===S)return!0;T=T.parentNode}return!1}function fs(s){if(s.nodeType===i||s.nodeType===c)return s.nodeValue?.length||0;return s.childNodes.length}function ne(s){if(!s.parentNode)return 0;return s.parentNode.childNodes.indexOf(s)}function Ee(s,S,T,C){if(s===T)return S===C?0:S<C?-1:1;if(typeof s.contains==="function"&&s.contains(T)){let P=T;while(P.parentNode!==s&&P.parentNode)P=P.parentNode;return S<=ne(P)?-1:1}if(typeof T.contains==="function"&&T.contains(s)){let P=s;while(P.parentNode!==T&&P.parentNode)P=P.parentNode;return ne(P)<C?-1:1}let G=s.compareDocumentPosition?.(T);if((G&te)===te)return-1;if((G&Re)===Re)return-1;return 1}function bs(s,S){let T=new Set,C=s;while(C)T.add(C),C=C.parentNode;C=S;while(C){if(T.has(C))return C;C=C.parentNode}return s}function nt(s,S,T){if(!s.parentNode&&s!==S){let{_lastTraversalParent:D,_lastTraversalNextSibling:w}=s;if(D&&rs(D,S)){if(w&&w.parentNode===D)return w;return nt(D,S,!0)}}if(!T&&s.childNodes.length>0)return s.childNodes[0];let C=s;while(C&&C!==S){let D=C.parentNode;if(!D)return null;let w=D.childNodes,G=w.indexOf(C);if(G>=0&&G+1<w.length)return w[G+1];C=D}return null}class fe{root;whatToShow;filter;currentNode;constructor(s,S=Ge,T=null){this.root=s,this.whatToShow=S,this.filter=T,this.currentNode=s}parentNode(){let s=this.currentNode.parentNode;while(s&&rs(s,this.root)){if(Me(s,this.whatToShow,this.filter)===A)return this.currentNode=s,s;s=s.parentNode}return null}firstChild(){for(let s of this.currentNode.childNodes){let S=et(s,this.whatToShow,this.filter);if(S)return this.currentNode=S,S}return null}lastChild(){for(let s=this.currentNode.childNodes.length-1;s>=0;s--){let S=tt(this.currentNode.childNodes[s],this.whatToShow,this.filter);if(S)return this.currentNode=S,S}return null}previousSibling(){if(!this.currentNode.parentNode)return null;let s=this.currentNode.parentNode.childNodes,S=s.indexOf(this.currentNode);for(let T=S-1;T>=0;T--){let C=tt(s[T],this.whatToShow,this.filter);if(C)return this.currentNode=C,C}return null}nextSibling(){if(!this.currentNode.parentNode)return null;let s=this.currentNode.parentNode.childNodes,S=s.indexOf(this.currentNode);for(let T=S+1;T<s.length;T++){let C=et(s[T],this.whatToShow,this.filter);if(C)return this.currentNode=C,C}return null}previousNode(){let s=gs(this.root),S=new Set(Le(this.root,this.whatToShow,this.filter)),T=s.indexOf(this.currentNode);for(let C=T-1;C>=0;C--)if(S.has(s[C]))return this.currentNode=s[C],s[C];return null}nextNode(){let s=nt(this.currentNode,this.root,!1);while(s){let S=Me(s,this.whatToShow,this.filter);if(S===A)return this.currentNode=s,s;s=nt(s,this.root,S===K)}return null}}class ge{root;whatToShow;filter;_cursor=-1;constructor(s,S=Ge,T=null){this.root=s,this.whatToShow=S,this.filter=T}get referenceNode(){let s=Le(this.root,this.whatToShow,this.filter);return this._cursor>=0?s[Math.min(this._cursor,s.length-1)]??this.root:this.root}get pointerBeforeReferenceNode(){return this._cursor<0}nextNode(){let s=Le(this.root,this.whatToShow,this.filter);if(this._cursor+1>=s.length)return null;return this._cursor++,s[this._cursor]??null}previousNode(){let s=Le(this.root,this.whatToShow,this.filter);if(this._cursor<0||this._cursor>=s.length)return null;let S=s[this._cursor]??null;return this._cursor--,S}detach(){}}class m{static START_TO_START=0;static START_TO_END=1;static END_TO_END=2;static END_TO_START=3;START_TO_START=m.START_TO_START;START_TO_END=m.START_TO_END;END_TO_END=m.END_TO_END;END_TO_START=m.END_TO_START;startContainer;startOffset;endContainer;endOffset;_document;constructor(s){this._document=s;let S=s.body||s.documentElement||s;this.startContainer=S,this.startOffset=0,this.endContainer=S,this.endOffset=0}get collapsed(){return this.startContainer===this.endContainer&&this.startOffset===this.endOffset}get commonAncestorContainer(){return bs(this.startContainer,this.endContainer)}setStart(s,S){if(this.startContainer=s,this.startOffset=S,Ee(this.startContainer,this.startOffset,this.endContainer,this.endOffset)>0)this.endContainer=s,this.endOffset=S}setEnd(s,S){if(this.endContainer=s,this.endOffset=S,Ee(this.startContainer,this.startOffset,this.endContainer,this.endOffset)>0)this.startContainer=s,this.startOffset=S}setStartBefore(s){if(!s.parentNode)return;this.setStart(s.parentNode,ne(s))}setStartAfter(s){if(!s.parentNode)return;this.setStart(s.parentNode,ne(s)+1)}setEndBefore(s){if(!s.parentNode)return;this.setEnd(s.parentNode,ne(s))}setEndAfter(s){if(!s.parentNode)return;this.setEnd(s.parentNode,ne(s)+1)}selectNode(s){if(!s.parentNode)return;let S=ne(s);this.startContainer=s.parentNode,this.startOffset=S,this.endContainer=s.parentNode,this.endOffset=S+1}selectNodeContents(s){this.startContainer=s,this.startOffset=0,this.endContainer=s,this.endOffset=fs(s)}collapse(s=!1){if(s)this.endContainer=this.startContainer,this.endOffset=this.startOffset;else this.startContainer=this.endContainer,this.startOffset=this.endOffset}cloneRange(){let s=new m(this._document);return s.startContainer=this.startContainer,s.startOffset=this.startOffset,s.endContainer=this.endContainer,s.endOffset=this.endOffset,s}compareBoundaryPoints(s,S){if(s===m.START_TO_START)return Ee(this.startContainer,this.startOffset,S.startContainer,S.startOffset);if(s===m.START_TO_END)return Ee(this.startContainer,this.startOffset,S.endContainer,S.endOffset);if(s===m.END_TO_END)return Ee(this.endContainer,this.endOffset,S.endContainer,S.endOffset);return Ee(this.endContainer,this.endOffset,S.startContainer,S.startOffset)}_removeContents(){if(this.collapsed)return;if(this.startContainer===this.endContainer){if(this.startContainer.nodeType===i||this.startContainer.nodeType===c){let S=this.startContainer.nodeValue||"";this.startContainer.nodeValue=`${S.slice(0,this.startOffset)}${S.slice(this.endOffset)}`,this.collapse(!0);return}let s=this.startContainer.childNodes.slice(this.startOffset,this.endOffset);for(let S of s)this.startContainer.removeChild(S);this.setEnd(this.startContainer,this.startOffset);return}this.collapse(!0)}cloneContents(){let s=this._document.createDocumentFragment();if(this.collapsed)return s;if(this.startContainer===this.endContainer){if(this.startContainer.nodeType===i||this.startContainer.nodeType===c){let T=(this.startContainer.nodeValue||"").slice(this.startOffset,this.endOffset);if(T)s.appendChild(this._document.createTextNode(T));return s}for(let T of this.startContainer.childNodes.slice(this.startOffset,this.endOffset))s.appendChild(T.cloneNode(!0));return s}let S=this.toString();if(S)s.appendChild(this._document.createTextNode(S));return s}deleteContents(){this._removeContents()}extractContents(){let s=this.cloneContents();return this._removeContents(),s}surroundContents(s){if(this.collapsed){this.insertNode(s),this.selectNode(s);return}if(this.startContainer!==this.endContainer&&(this.startContainer.nodeType!==i||this.endContainer.nodeType!==i))throw Error("Failed to execute surroundContents on Range: unsupported partially selected non-Text nodes");let S=this.extractContents();while(s.childNodes.length>0)s.removeChild(s.childNodes[0]);this.insertNode(s);while(S.childNodes.length>0)s.appendChild(S.childNodes[0]);this.selectNode(s)}insertNode(s){if(this.startContainer.nodeType===i&&this.startContainer.parentNode){let C=this.startContainer.nodeValue||"",D=C.slice(0,this.startOffset),w=C.slice(this.startOffset);this.startContainer.nodeValue=D;let G=this._document.createTextNode(w),P=this.startContainer.parentNode,F=this.startContainer.parentNode.childNodes,U=F.indexOf(this.startContainer),B=F[U+1]??null;P.insertBefore(s,B),P.insertBefore(G,B),this.setStart(P,ne(s)),this.setEnd(P,ne(s)+1);return}let S=this.startContainer,T=this.startContainer.childNodes[this.startOffset]??null;S.insertBefore(s,T),this.setStart(S,this.startOffset),this.setEnd(S,this.startOffset+1)}toString(){if(this.collapsed)return"";if(this.startContainer===this.endContainer){if(this.startContainer.nodeType===i||this.startContainer.nodeType===c)return(this.startContainer.nodeValue||"").slice(this.startOffset,this.endOffset);return this.startContainer.childNodes.slice(this.startOffset,this.endOffset).map((s)=>s.textContent).join("")}return this.cloneContents().textContent||""}createContextualFragment(s){let S=this.startContainer.ownerDocument??this.startContainer,T=S.createDocumentFragment();if(s){let{parseHTML:C}=import.meta.require("./chunk-afnhxy8c.js"),D=C(s,S);for(let w of D)T.appendChild(w)}return T}getBoundingClientRect(){return{x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0}}getClientRects(){return[]}detach(){}}class be{_document;_range=null;constructor(s){this._document=s}get anchorNode(){return this._range?.startContainer??null}get anchorOffset(){return this._range?.startOffset??0}get focusNode(){return this._range?.endContainer??null}get focusOffset(){return this._range?.endOffset??0}get isCollapsed(){return this._range?.collapsed??!0}get rangeCount(){return this._range?1:0}get type(){if(!this._range)return"None";return this._range.collapsed?"Caret":"Range"}addRange(s){this._range=s}getRangeAt(s){if(s!==0||!this._range)throw Error("Failed to execute getRangeAt on Selection: index is out of range");return this._range}removeRange(s){if(this._range===s)this._range=null}removeAllRanges(){this._range=null}empty(){this.removeAllRanges()}collapse(s,S=0){if(s===null){this.removeAllRanges();return}let T=this._document.createRange();T.setStart(s,S),T.collapse(!0),this._range=T}setPosition(s,S=0){this.collapse(s,S)}selectAllChildren(s){let S=this._document.createRange();S.selectNodeContents(s),this._range=S}containsNode(s,S=!1){if(!this._range)return!1;try{let T=this._range.compareBoundaryPoints(m.START_TO_START,(()=>{let D=this._document.createRange();return D.selectNode(s),D})()),C=this._range.compareBoundaryPoints(m.END_TO_END,(()=>{let D=this._document.createRange();return D.selectNode(s),D})());if(S)return T<=0||C>=0;return T<=0&&C>=0}catch{return!1}}deleteFromDocument(){this._range?.deleteContents()}toString(){return this._range?.toString()??""}}var Li;((B)=>{B[B.ANY_TYPE=0]="ANY_TYPE";B[B.NUMBER_TYPE=1]="NUMBER_TYPE";B[B.STRING_TYPE=2]="STRING_TYPE";B[B.BOOLEAN_TYPE=3]="BOOLEAN_TYPE";B[B.UNORDERED_NODE_ITERATOR_TYPE=4]="UNORDERED_NODE_ITERATOR_TYPE";B[B.ORDERED_NODE_ITERATOR_TYPE=5]="ORDERED_NODE_ITERATOR_TYPE";B[B.UNORDERED_NODE_SNAPSHOT_TYPE=6]="UNORDERED_NODE_SNAPSHOT_TYPE";B[B.ORDERED_NODE_SNAPSHOT_TYPE=7]="ORDERED_NODE_SNAPSHOT_TYPE";B[B.ANY_UNORDERED_NODE_TYPE=8]="ANY_UNORDERED_NODE_TYPE";B[B.FIRST_ORDERED_NODE_TYPE=9]="FIRST_ORDERED_NODE_TYPE"})(Li||={});class Ht{resultType;numberValue;stringValue;booleanValue;singleNodeValue;snapshotLength;_nodes=[];_iteratorIndex=0;constructor(s,S=[],T=0,C="",D=!1){this.resultType=s,this._nodes=S,this.numberValue=T,this.stringValue=C,this.booleanValue=D,this.singleNodeValue=S.length>0?S[0]:null,this.snapshotLength=S.length}iterateNext(){if(this._iteratorIndex<this._nodes.length)return this._nodes[this._iteratorIndex++];return null}snapshotItem(s){return this._nodes[s]||null}}class Ft{evaluate(s,S,T=null,C=0,D=null){let w=this._evaluateExpression(s,S),G=C;if(C===0)G=7;return new Ht(G,w)}_evaluateExpression(s,S){let T=s.trim();if(T===".")return[S];if(T==="..")return S.parentNode?[S.parentNode]:[];if(T.startsWith("//")){let C=T.substring(2);return this._findDescendants(S,C)}if(T.startsWith("/")){let C=T.substring(1);return this._findChildren(S,C)}if(T.startsWith("@")){let C=T.substring(1);if(S.nodeType===t){let D=S.getAttribute(C);if(D!==null)return[new o(D)]}return[]}return this._findDescendants(S,T)}_findChildren(s,S){let T=[],C=S.split("/").filter((G)=>G.trim());if(C.length===0)return T;let[D,...w]=C;for(let G of s.children||[])if(this._matchesExpression(G,D))if(w.length===0)T.push(G);else T.push(...this._findChildren(G,w.join("/")));return T}_findDescendants(s,S){let T=[],C=S.split("/").filter((P)=>P.trim());if(C.length===0)return T;let[D,...w]=C,G=(P)=>{if(this._matchesExpression(P,D))if(w.length===0)T.push(P);else T.push(...this._findChildren(P,w.join("/")));for(let F of P.children||[])G(F)};return G(s),T}_matchesExpression(s,S){if(S==="*")return s.nodeType===t;if(S==="text()")return s.nodeType===i;if(S==="node()")return!0;let T=S.match(/^(\w+)\[(.+)\]$/);if(T){let[,C,D]=T;if(s.nodeType!==t)return!1;let w=s;if(C!=="*"&&w.tagName!==C.toUpperCase())return!1;return this._evaluatePredicate(w,D)}if(s.nodeType===t)return s.tagName===S.toUpperCase();return!1}_evaluatePredicate(s,S){let T=S.match(/^@(\w+)=['"](.+)['"]$/);if(T){let[,D,w]=T;return s.getAttribute(D)===w}if(S.startsWith("@")){let D=S.substring(1);return s.getAttribute(D)!==null}let C=S.match(/^(\d+)$/);if(C){let D=Number.parseInt(C[1]),w=s.parentNode;if(w)return w.children.filter((P)=>P.nodeType===t).indexOf(s)===D-1}return!1}_parseTagName(s){let S=s.match(/^(\w+)/);return S?S[1]:s}}class j extends e{content;constructor(){super("template");this.content=new _,Object.defineProperty(this,"childNodes",{configurable:!0,enumerable:!0,get:()=>this.content.childNodes,set:(s)=>{this.content.childNodes=s}})}appendChild(s){return this.content.appendChild(s)}removeChild(s){return this.content.removeChild(s)}insertBefore(s,S){return this.content.insertBefore(s,S)}replaceChild(s,S){return this.content.replaceChild(s,S)}cloneNode(s=!1){let S=new j;S.namespaceURI=this.namespaceURI,S.nodeName=this.nodeName,S.tagName=this.tagName,S.ownerDocument=this.ownerDocument,S.content.ownerDocument=this.content.ownerDocument||this.ownerDocument;for(let[T,C]of this.attributes)S.setAttribute(T,C);if(s)for(let T of this.content.childNodes){let C=T.cloneNode?.(!0);if(C)S.appendChild(C)}return S}}class Gt extends e{constructor(){super("a")}}class Ut extends e{constructor(){super("area")}}class Wt extends e{constructor(){super("audio")}}class $t extends e{constructor(){super("base")}}class qt extends e{constructor(){super("body")}}class zt extends e{constructor(){super("br")}}class Kt extends e{constructor(){super("button")}}class jt extends e{constructor(){super("data")}}class Yt extends e{constructor(){super("datalist")}}class Xt extends e{constructor(){super("details")}}class Jt extends e{constructor(){super("dialog")}}class Qt extends e{constructor(){super("div")}}class Zt extends e{constructor(){super("dl")}}class en extends e{constructor(){super("embed")}}class tn extends e{constructor(){super("fieldset")}}class nn extends e{constructor(){super("form")}}class rn extends e{constructor(){super("head")}}class on extends e{constructor(){super("h1")}}class sn extends e{constructor(){super("hr")}}class an extends e{constructor(){super("html")}}class ln extends e{constructor(){super("iframe")}}class un extends e{constructor(){super("img")}}class cn extends e{constructor(){super("input")}}class dn extends e{constructor(){super("label")}}class hn extends e{constructor(){super("legend")}}class mn extends e{constructor(){super("li")}}class pn extends e{constructor(){super("link")}}class fn extends e{constructor(){super("map")}}class gn extends e{constructor(){super("video")}}class bn extends e{constructor(){super("menu")}}class yn extends e{constructor(){super("meta")}}class En extends e{constructor(){super("meter")}}class vn extends e{constructor(){super("ins")}}class wn extends e{constructor(){super("object")}}class _n extends e{constructor(){super("ol")}}class Sn extends e{constructor(){super("optgroup")}}class Tn extends e{constructor(){super("option")}}class xn extends e{constructor(){super("output")}}class Nn extends e{constructor(){super("p")}}class Cn extends e{constructor(){super("param")}}class Vn extends e{constructor(){super("picture")}}class Mn extends e{constructor(){super("pre")}}class On extends e{constructor(){super("progress")}}class Rn extends e{constructor(){super("blockquote")}}class Ln extends e{constructor(){super("script")}}class An extends e{constructor(){super("select")}}class Y extends e{constructor(){super("slot")}cloneNode(s=!1){let S=new Y;S.namespaceURI=this.namespaceURI,S.nodeName=this.nodeName,S.tagName=this.tagName,S.ownerDocument=this.ownerDocument;for(let[T,C]of this.attributes)S.setAttribute(T,C);if(s)for(let T of this.childNodes){let C=T.cloneNode?.(!0);if(C)S.appendChild(C)}return S}assignedNodes(s={}){return gi(this,s)}assignedElements(s={}){return Qi(this,s)}}class Dn extends e{constructor(){super("source")}}class Pn extends e{constructor(){super("span")}}class In extends e{constructor(){super("style")}}class kn extends e{constructor(){super("caption")}}class Bn extends e{constructor(){super("td")}}class Hn extends e{constructor(){super("col")}}class Fn extends e{constructor(){super("table")}}class Gn extends e{constructor(){super("tr")}}class Un extends e{constructor(){super("tbody")}}class Wn extends e{constructor(){super("textarea")}}class $n extends e{constructor(){super("time")}}class qn extends e{constructor(){super("title")}}class zn extends e{constructor(){super("track")}}class Kn extends e{constructor(){super("ul")}}class jn extends e{constructor(){super("unknown")}}class Yn extends e{constructor(){super("video")}}class Xn extends e{constructor(s,S){super("img");if(s!==void 0)this.setAttribute("width",String(s));if(S!==void 0)this.setAttribute("height",String(S))}}class Jn extends e{constructor(s){super("audio");if(s!==void 0)this.setAttribute("src",s)}}var ys=300,Es=150;function ss(s,S){if(s===null)return S;let T=Number.parseInt(s,10);return Number.isNaN(T)||T<0?S:T}class X extends e{context2d=null;constructor(){super("canvas")}get width(){return ss(this.getAttribute("width"),ys)}set width(s){this.setAttribute("width",String(s))}get height(){return ss(this.getAttribute("height"),Es)}set height(s){this.setAttribute("height",String(s))}cloneNode(s=!1){let S=new X;S.namespaceURI=this.namespaceURI,S.nodeName=this.nodeName,S.tagName=this.tagName,S.ownerDocument=this.ownerDocument;for(let[T,C]of this.attributes)S.setAttribute(T,C);if(s)for(let T of this.childNodes){let C=T.cloneNode?.(!0);if(C)S.appendChild(C)}return S}getContext(s){if(s==="2d"){if(!this.context2d)this.context2d=new ae(this);return this.context2d}return null}toDataURL(s,S){return`data:${s||"image/png"};base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==`}toBlob(s,S,T){setTimeout(()=>{let C=new Blob(["fake canvas data"],{type:S||"image/png"});s(C)},0)}async toBlobAsync(s,S){return new Promise((T)=>{this.toBlob((C)=>{if(C)T(C)},s,S)})}}var ve=Symbol("very-happy-dom.custom-element-owner-document");function Oe(s,S,...T){let C=s,D=Object.prototype.hasOwnProperty.call(C,ve),w=C[ve];C[ve]=S;try{return new s(...T)}finally{if(D)C[ve]=w;else delete C[ve]}}function os(s){return s[ve]??null}class N extends d{nodeType=a;nodeKind="document";nodeName="#document";defaultView=null;_idIndex=new Map;get parentWindow(){return this.defaultView}documentElement=null;location;history;get head(){return this._documentElementChild("HEAD")}set head(s){this._replaceDocumentElementChild("HEAD",s)}get body(){return this._documentElementChild("BODY")}set body(s){this._replaceDocumentElementChild("BODY",s)}_documentElementChild(s){let S=this.documentElement?.childNodes;if(!S)return null;for(let T of S)if(T.nodeType===t&&T.tagName===s)return T;return null}_replaceDocumentElementChild(s,S){let T=this._documentElementChild(s);if(T===S)return;if(!this.documentElement)return;if(T&&S)this.documentElement.replaceChild(S,T);else if(T)this.documentElement.removeChild(T);else if(S)this.documentElement.appendChild(S)}_fallbackTitle="";get title(){return this.head?.querySelector("title")?.textContent??this._fallbackTitle}set title(s){if(this._fallbackTitle=s,!this.head)return;let S=this.head.querySelector("title");if(!S){if(S=this.createElement("title"),!S)return;this.head.appendChild(S)}S.textContent=s}readyState="complete";compatMode="CSS1Compat";contentType="text/html";characterSet="UTF-8";doctype=null;hidden=!1;visibilityState="visible";dir="";referrer="";designMode="off";get charset(){return this.characterSet}get inputEncoding(){return this.characterSet}get URL(){return this.location.href}get documentURI(){return this.URL}get baseURI(){let S=(this.head?.querySelector("base[href]")||this.querySelector("base[href]"))?.getAttribute("href");return S?this._resolveAgainstDocumentURL(S):this._getDocumentURLForResolution()}get domain(){if(this._locationState.hostname)return this._locationState.hostname;try{return new URL(this._getDocumentURLForResolution()).hostname}catch{return""}}get lastModified(){return new Date().toLocaleString()}_focusedElement=null;get activeElement(){return this._focusedElement||this.body}get scrollingElement(){return this.documentElement}get forms(){return this.querySelectorAll("form")}get images(){return this.querySelectorAll("img")}get links(){return this.querySelectorAll("a[href], area[href]")}get scripts(){return this.querySelectorAll("script")}get anchors(){return this.querySelectorAll("a[name]")}get embeds(){return this.querySelectorAll("embed")}get plugins(){return this.embeds}currentScript=null;_adoptedStyleSheets=[];_parsedStyleSheets=new WeakMap;get styleSheets(){let s=[];for(let S of this.querySelectorAll("style")){let T=S.textContent??"",C=this._parsedStyleSheets.get(S);if(C&&C.text===T){s.push(C.sheet);continue}let D=new se;D.replaceSync(T),this._parsedStyleSheets.set(S,{text:T,sheet:D}),s.push(D)}return s}get adoptedStyleSheets(){return this._adoptedStyleSheets}set adoptedStyleSheets(s){this._adoptedStyleSheets=s}implementation={createHTMLDocument:(s)=>{let S=new N;if(s!==void 0)S.title=s;return S},hasFeature:()=>!0};_historyStack=[];_historyIndex=-1;_xpathEvaluator=new Ft;_cookieContainer=new L;_setCookieContainer(s){this._cookieContainer=s}_getCookieContainer(){return this._cookieContainer}_selection=null;_locationState={href:"",protocol:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:"",origin:""};constructor(){super();this.documentElement=new e("html"),this.documentElement.appendChild(new e("head")),this.documentElement.appendChild(new e("body")),this.appendChild(this.documentElement),this.location=this._createLocation();let s=this;this.history={get length(){return s._historyStack.length},get state(){return s._historyStack[s._historyIndex]?.state||null},pushState(S,T,C){let D=C?s._resolveLocationString(C):s.location.href;if(s._historyStack=s._historyStack.slice(0,s._historyIndex+1),s._historyStack.push({state:S,title:T,url:D}),s._historyIndex++,C)s._updateLocation(D,{triggerHashchange:!1})},replaceState(S,T,C){let D=C?s._resolveLocationString(C):s.location.href;if(s._historyIndex>=0)s._historyStack[s._historyIndex]={state:S,title:T,url:D};if(C)s._updateLocation(D,{triggerHashchange:!1})},back(){if(s._historyIndex>0){s._historyIndex--;let S=s._historyStack[s._historyIndex];if(S.url)s._updateLocation(S.url,{triggerPopstate:!0,popState:S.state})}},forward(){if(s._historyIndex<s._historyStack.length-1){s._historyIndex++;let S=s._historyStack[s._historyIndex];if(S.url)s._updateLocation(S.url,{triggerPopstate:!0,popState:S.state})}},go(S){let T=s._historyIndex+S;if(T>=0&&T<s._historyStack.length){s._historyIndex=T;let C=s._historyStack[s._historyIndex];if(C.url)s._updateLocation(C.url,{triggerPopstate:!0,popState:C.state})}}}}_createLocation(){let s={},S=(T)=>{let C=new URL(this._getDocumentURLForResolution(),"http://localhost/");T(C),this._updateLocation(C.href)};return Object.defineProperties(s,{href:{enumerable:!0,get:()=>this._locationState.href,set:(T)=>{this._updateLocation(`${T}`)}},protocol:{enumerable:!0,get:()=>this._locationState.protocol,set:(T)=>S((C)=>{C.protocol=T.endsWith(":")?T:`${T}:`})},host:{enumerable:!0,get:()=>this._locationState.host,set:(T)=>S((C)=>{C.host=T})},hostname:{enumerable:!0,get:()=>this._locationState.hostname,set:(T)=>S((C)=>{C.hostname=T})},port:{enumerable:!0,get:()=>this._locationState.port,set:(T)=>S((C)=>{C.port=T})},pathname:{enumerable:!0,get:()=>this._locationState.pathname,set:(T)=>S((C)=>{C.pathname=T.startsWith("/")?T:`/${T}`})},search:{enumerable:!0,get:()=>this._locationState.search,set:(T)=>S((C)=>{C.search=T?T.startsWith("?")?T:`?${T}`:""})},hash:{enumerable:!0,get:()=>this._locationState.hash,set:(T)=>S((C)=>{C.hash=T?T.startsWith("#")?T:`#${T}`:""})},origin:{enumerable:!0,get:()=>this._locationState.origin}}),s.assign=(T)=>{this._updateLocation(T)},s.replace=(T)=>{this._updateLocation(T)},s.reload=()=>{},s.toString=()=>this._locationState.href,s}_getDocumentURLForResolution(){return this.location.href||this.defaultView?.location?.href||"http://localhost/"}_resolveAgainstDocumentURL(s){try{return new URL(s,this._getDocumentURLForResolution()).href}catch{return s}}_resolveLocationString(s){try{return new URL(s,this._getDocumentURLForResolution()).href}catch{return s}}_updateLocation(s,S={}){let{triggerHashchange:T=!0,triggerPopstate:C=!1,popState:D=null}=S,w=this._locationState.href,G=this._locationState.hash;try{let P=this.location.href||this.defaultView?.location?.href||"",F;if(P&&!P.startsWith("about:"))F=new URL(s,P);else F=new URL(s);this._locationState.href=F.href,this._locationState.protocol=F.protocol,this._locationState.host=F.host,this._locationState.hostname=F.hostname,this._locationState.port=F.port,this._locationState.pathname=F.pathname,this._locationState.search=F.search,this._locationState.hash=F.hash,this._locationState.origin=F.origin}catch{this._locationState.href=s,this._locationState.protocol="",this._locationState.host="",this._locationState.hostname="",this._locationState.port="",this._locationState.pathname="",this._locationState.search="",this._locationState.hash="",this._locationState.origin=""}if(T&&w&&G!==this._locationState.hash)this._dispatchWindowEvent("hashchange",{oldURL:w,newURL:this._locationState.href});if(C)this._dispatchWindowEvent("popstate",{state:D})}_dispatchWindowEvent(s,S){if(!this.defaultView)return;let T=new n(s);for(let[C,D]of Object.entries(S))T[C]=D;this.defaultView.dispatchEvent(T)}_getCookieOrigin(){let s=this._getDocumentURLForResolution();if(!s||s==="about:blank"||s.startsWith("about:"))return"http://localhost/";try{let S=new URL(s,"http://localhost/");if(S.protocol!=="http:"&&S.protocol!=="https:")return"http://localhost/";return S.href}catch{return"http://localhost/"}}_getDefaultCookiePath(){let s="/";try{s=new URL(this._getDocumentURLForResolution(),"http://localhost/").pathname||"/"}catch{s=this.location.pathname||"/"}if(!s.startsWith("/"))return"/";if(s==="/")return"/";let S=s.lastIndexOf("/");if(S<=0)return"/";return s.slice(0,S+1)}get textContent(){return this.documentElement?.textContent||""}set textContent(s){if(this.documentElement)this.documentElement.textContent=s}appendChild(s){return k(this,s)}_setOwnerDocumentRecursive(s,S){E(s,S)}createElement(s){if(s.toLowerCase()==="canvas"){let C=new X;return C.ownerDocument=this,C}if(s.toLowerCase()==="template"){let C=new j;return C.ownerDocument=this,C.content.ownerDocument=this,C}if(s.toLowerCase()==="slot"){let C=new Y;return C.ownerDocument=this,C}let S=this.defaultView?.customElements?.get?.(s.toLowerCase()),T=S?Oe(S,this,s):new e(s);return T.ownerDocument=this,T}createElementNS(s,S){let T;if(s==="http://www.w3.org/2000/svg")T=new r(S);else T=new e(S),T.namespaceURI=s;return T.ownerDocument=this,T}createTextNode(s){let S=new o(s);return S.ownerDocument=this,S}createComment(s){let S=new x(s);return S.ownerDocument=this,S}createDocumentFragment(){let s=new _;return s.ownerDocument=this,s}_setFocusedElement(s){this._focusedElement=s}createEvent(s){switch(s.toLowerCase()){case"customevent":case"customevents":return new pe("");case"mouseevent":case"mouseevents":return new M("");case"keyboardevent":return new le("");case"focusevent":return new ue("");case"uievent":case"uievents":return new v("");default:return new n("")}}createAttribute(s){return{name:s.toLowerCase(),value:"",specified:!0}}importNode(s,S=!1){if(typeof s.cloneNode!=="function")throw Error("Failed to execute 'importNode': parameter 1 is not of type 'Node'.");let T=s.cloneNode(S);return this._setOwnerDocumentRecursive(T,this),T}adoptNode(s){if(s.parentNode)s.parentNode.removeChild(s);return this._setOwnerDocumentRecursive(s,this),s}hasFocus(){return this._focusedElement!==null}execCommand(s,S,T){return!1}queryCommandEnabled(s){return!1}queryCommandSupported(s){return!1}createTreeWalker(s,S=4294967295,T=null){return new fe(s,S,T)}createNodeIterator(s,S=4294967295,T=null){return new ge(s,S,T)}createRange(){return new m(this)}getSelection(){if(!this._selection)this._selection=new be(this);return this._selection}querySelector(s){return I(this,s)}querySelectorAll(s){return y(this,s)}getElementById(s){return this._idIndex.get(s)??null}getElementsByTagName(s){return this.querySelectorAll(s)}getElementsByName(s){return this.querySelectorAll(`[name="${s}"]`)}getElementsByClassName(s){let S=s.trim().split(/\s+/).filter(Boolean);if(S.length===0)return[];return this.querySelectorAll(S.map((T)=>`.${T}`).join(""))}parseHTML(s){let S=p(s,this);if(this.body){this.body.childNodes=[];for(let T of S)this.body.appendChild(T)}}write(s){let S=p(s,this);for(let T of S)if(T.nodeType===t){let C=T;if(C.tagName==="HTML"){this.childNodes=[],this.documentElement=C,this.appendChild(C);return}}if(this.body)for(let T of S)this.body.appendChild(T)}open(){if(this.body)this.body.childNodes=[];return this}close(){}writeln(s){this.write(`${s}
9
+ `)}overrideMimeType(s){}addEventListener(s,S){if(!this._eventListeners.has(s))this._eventListeners.set(s,new Set);this._eventListeners.get(s).add(S)}removeEventListener(s,S){let T=this._eventListeners.get(s);if(T)T.delete(S)}dispatchEvent(s){let S=this._eventListeners.get(s.type);if(S)for(let C of S)C(s);let T=this[`on${s.type}`];if(T)T.call(this,s);return!0}_triggerEvent(s,S=!1){let T=S?{type:s,lengthComputable:!1,loaded:0,total:0}:{type:s};this.dispatchEvent(T)}}class ns{onprogress=null;onload=null;onerror=null;addEventListener(s,S){}removeEventListener(s,S){}dispatchEvent(s){return!0}}class kt{static CONNECTING=0;static OPEN=1;static CLOSING=2;static CLOSED=3;readyState=0;url;protocol="";extensions="";binaryType="blob";bufferedAmount=0;onopen=null;onmessage=null;onerror=null;onclose=null;_ws=null;_eventListeners=new Map;constructor(s,S){this.url=s;try{this._ws=new WebSocket(s,S),this._ws.addEventListener("open",(T)=>{if(this.readyState=1,this._ws)this.protocol=this._ws.protocol||"",this.extensions=this._ws.extensions||"";this.dispatchEvent({type:"open"})}),this._ws.addEventListener("message",(T)=>{let C={type:"message",data:T.data,origin:this.url,lastEventId:"",source:null,ports:[]};this.dispatchEvent(C)}),this._ws.addEventListener("error",(T)=>{this.dispatchEvent({type:"error"})}),this._ws.addEventListener("close",(T)=>{this.readyState=3;let C={type:"close",code:T.code||1000,reason:T.reason||"",wasClean:T.wasClean!==!1};this.dispatchEvent(C)})}catch{setTimeout(()=>{this.readyState=3,this.dispatchEvent({type:"error"})},0)}}send(s){if(this.readyState!==1)throw Error(`WebSocket is not open: readyState ${this.readyState}`);if(this._ws)if(s instanceof Blob)s.arrayBuffer().then((S)=>{this._ws?.send(S)});else this._ws.send(s)}close(s,S){if(this.readyState===2||this.readyState===3)return;if(this.readyState=2,this._ws)this._ws.close(s,S)}addEventListener(s,S){if(!this._eventListeners.has(s))this._eventListeners.set(s,new Set);this._eventListeners.get(s).add(S)}removeEventListener(s,S){let T=this._eventListeners.get(s);if(T)T.delete(S)}dispatchEvent(s){let S=this._eventListeners.get(s.type);if(S)for(let C of S)C(s);let T=this[`on${s.type}`];if(T)T.call(this,s);return!0}}var xi;((C)=>{C.none="None";C.lax="Lax";C.strict="Strict"})(xi||={});function ds(s,S,T){if(T)return s===S;return s===S||s.endsWith(`.${S}`)}function ps(s,S){if(s===S)return!0;if(!s.startsWith(S))return!1;if(S.endsWith("/"))return!0;return s[S.length]==="/"}class L{_cookies=[];addCookies(s){for(let S of s){let T=(S.domain||new URL(S.originURL).hostname).replace(/^\./,"").toLowerCase(),C=S.path||"/";if(this._cookies=this._cookies.filter((D)=>!(D.key===S.key&&(D.domain||new URL(D.originURL).hostname).toLowerCase()===T&&(D.path||"/")===C)),S.expires&&S.expires<=new Date)continue;this._cookies.push({...S,value:S.value||"",domain:T,hostOnly:S.hostOnly??!S.domain,path:C,expires:S.expires,httpOnly:S.httpOnly||!1,secure:S.secure||!1,sameSite:S.sameSite||"Lax"})}}getCookies(s,S=!1){let T=new URL(s),C=T.hostname.toLowerCase(),D=T.pathname,w=T.protocol==="https:",G=new Date;return this._cookies.filter((P)=>{if(P.expires&&P.expires<G)return!1;if(P.httpOnly&&!S)return!1;if(P.secure&&!w)return!1;let F=(P.domain||new URL(P.originURL).hostname).toLowerCase();if(!ds(C,F,P.hostOnly===!0))return!1;let U=P.path||"/";if(!ps(D,U))return!1;return!0}).sort((P,F)=>(F.path?.length||0)-(P.path?.length||0))}getAllCookies(){return[...this._cookies]}clearCookies(){this._cookies=[]}}var A=1,K=2,Bt=3,Ge=4294967295,Ni=1,Ci=4,Vi=128,Mi=256,Oi=1024,Ri={FILTER_ACCEPT:A,FILTER_REJECT:K,FILTER_SKIP:Bt,SHOW_ALL:Ge,SHOW_ELEMENT:Ni,SHOW_TEXT:Ci,SHOW_COMMENT:Vi,SHOW_DOCUMENT:Mi,SHOW_DOCUMENT_FRAGMENT:Oi};function ms(s){switch(s.nodeType){case t:return Ni;case i:return Ci;case c:return Vi;case a:return Mi;case V:return Oi;default:return 0}}function hs(s){if(!s)return null;if(typeof s==="function")return s;return typeof s.acceptNode==="function"?s.acceptNode.bind(s):null}function Me(s,S,T){if(!(S===Ge||(S&ms(s))!==0))return Bt;let D=A,w=hs(T);if(!w)return D;let G=w(s);return G===A||G===K||G===Bt?G:D}function gs(s){let S=[],T=(C)=>{S.push(C);for(let D of C.childNodes)T(D)};return T(s),S}function Le(s,S,T){let C=[],D=(w)=>{let G=Me(w,S,T);if(G===A)C.push(w);if(G!==K)for(let P of w.childNodes)D(P)};return D(s),C}function et(s,S,T){let C=Me(s,S,T);if(C===A)return s;if(C===K)return null;for(let D of s.childNodes){let w=et(D,S,T);if(w)return w}return null}function tt(s,S,T){let C=Me(s,S,T);if(C!==K)for(let D=s.childNodes.length-1;D>=0;D--){let w=tt(s.childNodes[D],S,T);if(w)return w}return C===A?s:null}function rs(s,S){let T=s;while(T){if(T===S)return!0;T=T.parentNode}return!1}function fs(s){if(s.nodeType===i||s.nodeType===c)return s.nodeValue?.length||0;return s.childNodes.length}function ne(s){if(!s.parentNode)return 0;return s.parentNode.childNodes.indexOf(s)}function Ee(s,S,T,C){if(s===T)return S===C?0:S<C?-1:1;if(typeof s.contains==="function"&&s.contains(T)){let P=T;while(P.parentNode!==s&&P.parentNode)P=P.parentNode;return S<=ne(P)?-1:1}if(typeof T.contains==="function"&&T.contains(s)){let P=s;while(P.parentNode!==T&&P.parentNode)P=P.parentNode;return ne(P)<C?-1:1}let G=s.compareDocumentPosition?.(T);if((G&te)===te)return-1;if((G&Re)===Re)return-1;return 1}function bs(s,S){let T=new Set,C=s;while(C)T.add(C),C=C.parentNode;C=S;while(C){if(T.has(C))return C;C=C.parentNode}return s}function nt(s,S,T){if(!s.parentNode&&s!==S){let{_lastTraversalParent:D,_lastTraversalNextSibling:w}=s;if(D&&rs(D,S)){if(w&&w.parentNode===D)return w;return nt(D,S,!0)}}if(!T&&s.childNodes.length>0)return s.childNodes[0];let C=s;while(C&&C!==S){let D=C.parentNode;if(!D)return null;let w=D.childNodes,G=w.indexOf(C);if(G>=0&&G+1<w.length)return w[G+1];C=D}return null}class fe{root;whatToShow;filter;currentNode;constructor(s,S=Ge,T=null){this.root=s,this.whatToShow=S,this.filter=T,this.currentNode=s}parentNode(){let s=this.currentNode.parentNode;while(s&&rs(s,this.root)){if(Me(s,this.whatToShow,this.filter)===A)return this.currentNode=s,s;s=s.parentNode}return null}firstChild(){for(let s of this.currentNode.childNodes){let S=et(s,this.whatToShow,this.filter);if(S)return this.currentNode=S,S}return null}lastChild(){for(let s=this.currentNode.childNodes.length-1;s>=0;s--){let S=tt(this.currentNode.childNodes[s],this.whatToShow,this.filter);if(S)return this.currentNode=S,S}return null}previousSibling(){if(!this.currentNode.parentNode)return null;let s=this.currentNode.parentNode.childNodes,S=s.indexOf(this.currentNode);for(let T=S-1;T>=0;T--){let C=tt(s[T],this.whatToShow,this.filter);if(C)return this.currentNode=C,C}return null}nextSibling(){if(!this.currentNode.parentNode)return null;let s=this.currentNode.parentNode.childNodes,S=s.indexOf(this.currentNode);for(let T=S+1;T<s.length;T++){let C=et(s[T],this.whatToShow,this.filter);if(C)return this.currentNode=C,C}return null}previousNode(){let s=gs(this.root),S=new Set(Le(this.root,this.whatToShow,this.filter)),T=s.indexOf(this.currentNode);for(let C=T-1;C>=0;C--)if(S.has(s[C]))return this.currentNode=s[C],s[C];return null}nextNode(){let s=nt(this.currentNode,this.root,!1);while(s){let S=Me(s,this.whatToShow,this.filter);if(S===A)return this.currentNode=s,s;s=nt(s,this.root,S===K)}return null}}class ge{root;whatToShow;filter;_cursor=-1;constructor(s,S=Ge,T=null){this.root=s,this.whatToShow=S,this.filter=T}get referenceNode(){let s=Le(this.root,this.whatToShow,this.filter);return this._cursor>=0?s[Math.min(this._cursor,s.length-1)]??this.root:this.root}get pointerBeforeReferenceNode(){return this._cursor<0}nextNode(){let s=Le(this.root,this.whatToShow,this.filter);if(this._cursor+1>=s.length)return null;return this._cursor++,s[this._cursor]??null}previousNode(){let s=Le(this.root,this.whatToShow,this.filter);if(this._cursor<0||this._cursor>=s.length)return null;let S=s[this._cursor]??null;return this._cursor--,S}detach(){}}class m{static START_TO_START=0;static START_TO_END=1;static END_TO_END=2;static END_TO_START=3;START_TO_START=m.START_TO_START;START_TO_END=m.START_TO_END;END_TO_END=m.END_TO_END;END_TO_START=m.END_TO_START;startContainer;startOffset;endContainer;endOffset;_document;constructor(s){this._document=s;let S=s.body||s.documentElement||s;this.startContainer=S,this.startOffset=0,this.endContainer=S,this.endOffset=0}get collapsed(){return this.startContainer===this.endContainer&&this.startOffset===this.endOffset}get commonAncestorContainer(){return bs(this.startContainer,this.endContainer)}setStart(s,S){if(this.startContainer=s,this.startOffset=S,Ee(this.startContainer,this.startOffset,this.endContainer,this.endOffset)>0)this.endContainer=s,this.endOffset=S}setEnd(s,S){if(this.endContainer=s,this.endOffset=S,Ee(this.startContainer,this.startOffset,this.endContainer,this.endOffset)>0)this.startContainer=s,this.startOffset=S}setStartBefore(s){if(!s.parentNode)return;this.setStart(s.parentNode,ne(s))}setStartAfter(s){if(!s.parentNode)return;this.setStart(s.parentNode,ne(s)+1)}setEndBefore(s){if(!s.parentNode)return;this.setEnd(s.parentNode,ne(s))}setEndAfter(s){if(!s.parentNode)return;this.setEnd(s.parentNode,ne(s)+1)}selectNode(s){if(!s.parentNode)return;let S=ne(s);this.startContainer=s.parentNode,this.startOffset=S,this.endContainer=s.parentNode,this.endOffset=S+1}selectNodeContents(s){this.startContainer=s,this.startOffset=0,this.endContainer=s,this.endOffset=fs(s)}collapse(s=!1){if(s)this.endContainer=this.startContainer,this.endOffset=this.startOffset;else this.startContainer=this.endContainer,this.startOffset=this.endOffset}cloneRange(){let s=new m(this._document);return s.startContainer=this.startContainer,s.startOffset=this.startOffset,s.endContainer=this.endContainer,s.endOffset=this.endOffset,s}compareBoundaryPoints(s,S){if(s===m.START_TO_START)return Ee(this.startContainer,this.startOffset,S.startContainer,S.startOffset);if(s===m.START_TO_END)return Ee(this.startContainer,this.startOffset,S.endContainer,S.endOffset);if(s===m.END_TO_END)return Ee(this.endContainer,this.endOffset,S.endContainer,S.endOffset);return Ee(this.endContainer,this.endOffset,S.startContainer,S.startOffset)}_removeContents(){if(this.collapsed)return;if(this.startContainer===this.endContainer){if(this.startContainer.nodeType===i||this.startContainer.nodeType===c){let S=this.startContainer.nodeValue||"";this.startContainer.nodeValue=`${S.slice(0,this.startOffset)}${S.slice(this.endOffset)}`,this.collapse(!0);return}let s=this.startContainer.childNodes.slice(this.startOffset,this.endOffset);for(let S of s)this.startContainer.removeChild(S);this.setEnd(this.startContainer,this.startOffset);return}this.collapse(!0)}cloneContents(){let s=this._document.createDocumentFragment();if(this.collapsed)return s;if(this.startContainer===this.endContainer){if(this.startContainer.nodeType===i||this.startContainer.nodeType===c){let T=(this.startContainer.nodeValue||"").slice(this.startOffset,this.endOffset);if(T)s.appendChild(this._document.createTextNode(T));return s}for(let T of this.startContainer.childNodes.slice(this.startOffset,this.endOffset))s.appendChild(T.cloneNode(!0));return s}let S=this.toString();if(S)s.appendChild(this._document.createTextNode(S));return s}deleteContents(){this._removeContents()}extractContents(){let s=this.cloneContents();return this._removeContents(),s}surroundContents(s){if(this.collapsed){this.insertNode(s),this.selectNode(s);return}if(this.startContainer!==this.endContainer&&(this.startContainer.nodeType!==i||this.endContainer.nodeType!==i))throw Error("Failed to execute surroundContents on Range: unsupported partially selected non-Text nodes");let S=this.extractContents();while(s.childNodes.length>0)s.removeChild(s.childNodes[0]);this.insertNode(s);while(S.childNodes.length>0)s.appendChild(S.childNodes[0]);this.selectNode(s)}insertNode(s){if(this.startContainer.nodeType===i&&this.startContainer.parentNode){let C=this.startContainer.nodeValue||"",D=C.slice(0,this.startOffset),w=C.slice(this.startOffset);this.startContainer.nodeValue=D;let G=this._document.createTextNode(w),P=this.startContainer.parentNode,F=this.startContainer.parentNode.childNodes,U=F.indexOf(this.startContainer),B=F[U+1]??null;P.insertBefore(s,B),P.insertBefore(G,B),this.setStart(P,ne(s)),this.setEnd(P,ne(s)+1);return}let S=this.startContainer,T=this.startContainer.childNodes[this.startOffset]??null;S.insertBefore(s,T),this.setStart(S,this.startOffset),this.setEnd(S,this.startOffset+1)}toString(){if(this.collapsed)return"";if(this.startContainer===this.endContainer){if(this.startContainer.nodeType===i||this.startContainer.nodeType===c)return(this.startContainer.nodeValue||"").slice(this.startOffset,this.endOffset);return this.startContainer.childNodes.slice(this.startOffset,this.endOffset).map((s)=>s.textContent).join("")}return this.cloneContents().textContent||""}createContextualFragment(s){let S=this.startContainer.ownerDocument??this.startContainer,T=S.createDocumentFragment();if(s){let{parseHTML:C}=import.meta.require("./chunk-cv38mg46.js"),D=C(s,S);for(let w of D)T.appendChild(w)}return T}getBoundingClientRect(){return{x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0}}getClientRects(){return[]}detach(){}}class be{_document;_range=null;constructor(s){this._document=s}get anchorNode(){return this._range?.startContainer??null}get anchorOffset(){return this._range?.startOffset??0}get focusNode(){return this._range?.endContainer??null}get focusOffset(){return this._range?.endOffset??0}get isCollapsed(){return this._range?.collapsed??!0}get rangeCount(){return this._range?1:0}get type(){if(!this._range)return"None";return this._range.collapsed?"Caret":"Range"}addRange(s){this._range=s}getRangeAt(s){if(s!==0||!this._range)throw Error("Failed to execute getRangeAt on Selection: index is out of range");return this._range}removeRange(s){if(this._range===s)this._range=null}removeAllRanges(){this._range=null}empty(){this.removeAllRanges()}collapse(s,S=0){if(s===null){this.removeAllRanges();return}let T=this._document.createRange();T.setStart(s,S),T.collapse(!0),this._range=T}setPosition(s,S=0){this.collapse(s,S)}selectAllChildren(s){let S=this._document.createRange();S.selectNodeContents(s),this._range=S}containsNode(s,S=!1){if(!this._range)return!1;try{let T=this._range.compareBoundaryPoints(m.START_TO_START,(()=>{let D=this._document.createRange();return D.selectNode(s),D})()),C=this._range.compareBoundaryPoints(m.END_TO_END,(()=>{let D=this._document.createRange();return D.selectNode(s),D})());if(S)return T<=0||C>=0;return T<=0&&C>=0}catch{return!1}}deleteFromDocument(){this._range?.deleteContents()}toString(){return this._range?.toString()??""}}var Li;((B)=>{B[B.ANY_TYPE=0]="ANY_TYPE";B[B.NUMBER_TYPE=1]="NUMBER_TYPE";B[B.STRING_TYPE=2]="STRING_TYPE";B[B.BOOLEAN_TYPE=3]="BOOLEAN_TYPE";B[B.UNORDERED_NODE_ITERATOR_TYPE=4]="UNORDERED_NODE_ITERATOR_TYPE";B[B.ORDERED_NODE_ITERATOR_TYPE=5]="ORDERED_NODE_ITERATOR_TYPE";B[B.UNORDERED_NODE_SNAPSHOT_TYPE=6]="UNORDERED_NODE_SNAPSHOT_TYPE";B[B.ORDERED_NODE_SNAPSHOT_TYPE=7]="ORDERED_NODE_SNAPSHOT_TYPE";B[B.ANY_UNORDERED_NODE_TYPE=8]="ANY_UNORDERED_NODE_TYPE";B[B.FIRST_ORDERED_NODE_TYPE=9]="FIRST_ORDERED_NODE_TYPE"})(Li||={});class Ht{resultType;numberValue;stringValue;booleanValue;singleNodeValue;snapshotLength;_nodes=[];_iteratorIndex=0;constructor(s,S=[],T=0,C="",D=!1){this.resultType=s,this._nodes=S,this.numberValue=T,this.stringValue=C,this.booleanValue=D,this.singleNodeValue=S.length>0?S[0]:null,this.snapshotLength=S.length}iterateNext(){if(this._iteratorIndex<this._nodes.length)return this._nodes[this._iteratorIndex++];return null}snapshotItem(s){return this._nodes[s]||null}}class Ft{evaluate(s,S,T=null,C=0,D=null){let w=this._evaluateExpression(s,S),G=C;if(C===0)G=7;return new Ht(G,w)}_evaluateExpression(s,S){let T=s.trim();if(T===".")return[S];if(T==="..")return S.parentNode?[S.parentNode]:[];if(T.startsWith("//")){let C=T.substring(2);return this._findDescendants(S,C)}if(T.startsWith("/")){let C=T.substring(1);return this._findChildren(S,C)}if(T.startsWith("@")){let C=T.substring(1);if(S.nodeType===t){let D=S.getAttribute(C);if(D!==null)return[new o(D)]}return[]}return this._findDescendants(S,T)}_findChildren(s,S){let T=[],C=S.split("/").filter((G)=>G.trim());if(C.length===0)return T;let[D,...w]=C;for(let G of s.children||[])if(this._matchesExpression(G,D))if(w.length===0)T.push(G);else T.push(...this._findChildren(G,w.join("/")));return T}_findDescendants(s,S){let T=[],C=S.split("/").filter((P)=>P.trim());if(C.length===0)return T;let[D,...w]=C,G=(P)=>{if(this._matchesExpression(P,D))if(w.length===0)T.push(P);else T.push(...this._findChildren(P,w.join("/")));for(let F of P.children||[])G(F)};return G(s),T}_matchesExpression(s,S){if(S==="*")return s.nodeType===t;if(S==="text()")return s.nodeType===i;if(S==="node()")return!0;let T=S.match(/^(\w+)\[(.+)\]$/);if(T){let[,C,D]=T;if(s.nodeType!==t)return!1;let w=s;if(C!=="*"&&w.tagName!==C.toUpperCase())return!1;return this._evaluatePredicate(w,D)}if(s.nodeType===t)return s.tagName===S.toUpperCase();return!1}_evaluatePredicate(s,S){let T=S.match(/^@(\w+)=['"](.+)['"]$/);if(T){let[,D,w]=T;return s.getAttribute(D)===w}if(S.startsWith("@")){let D=S.substring(1);return s.getAttribute(D)!==null}let C=S.match(/^(\d+)$/);if(C){let D=Number.parseInt(C[1]),w=s.parentNode;if(w)return w.children.filter((P)=>P.nodeType===t).indexOf(s)===D-1}return!1}_parseTagName(s){let S=s.match(/^(\w+)/);return S?S[1]:s}}class j extends e{content;constructor(){super("template");this.content=new _,Object.defineProperty(this,"childNodes",{configurable:!0,enumerable:!0,get:()=>this.content.childNodes,set:(s)=>{this.content.childNodes=s}})}appendChild(s){return this.content.appendChild(s)}removeChild(s){return this.content.removeChild(s)}insertBefore(s,S){return this.content.insertBefore(s,S)}replaceChild(s,S){return this.content.replaceChild(s,S)}cloneNode(s=!1){let S=new j;S.namespaceURI=this.namespaceURI,S.nodeName=this.nodeName,S.tagName=this.tagName,S.ownerDocument=this.ownerDocument,S.content.ownerDocument=this.content.ownerDocument||this.ownerDocument;for(let[T,C]of this.attributes)S.setAttribute(T,C);if(s)for(let T of this.content.childNodes){let C=T.cloneNode?.(!0);if(C)S.appendChild(C)}return S}}class Gt extends e{constructor(){super("a")}}class Ut extends e{constructor(){super("area")}}class Wt extends e{constructor(){super("audio")}}class $t extends e{constructor(){super("base")}}class qt extends e{constructor(){super("body")}}class zt extends e{constructor(){super("br")}}class Kt extends e{constructor(){super("button")}}class jt extends e{constructor(){super("data")}}class Yt extends e{constructor(){super("datalist")}}class Xt extends e{constructor(){super("details")}}class Jt extends e{constructor(){super("dialog")}}class Qt extends e{constructor(){super("div")}}class Zt extends e{constructor(){super("dl")}}class en extends e{constructor(){super("embed")}}class tn extends e{constructor(){super("fieldset")}}class nn extends e{constructor(){super("form")}}class rn extends e{constructor(){super("head")}}class on extends e{constructor(){super("h1")}}class sn extends e{constructor(){super("hr")}}class an extends e{constructor(){super("html")}}class ln extends e{constructor(){super("iframe")}}class un extends e{constructor(){super("img")}}class cn extends e{constructor(){super("input")}}class dn extends e{constructor(){super("label")}}class hn extends e{constructor(){super("legend")}}class mn extends e{constructor(){super("li")}}class pn extends e{constructor(){super("link")}}class fn extends e{constructor(){super("map")}}class gn extends e{constructor(){super("video")}}class bn extends e{constructor(){super("menu")}}class yn extends e{constructor(){super("meta")}}class En extends e{constructor(){super("meter")}}class vn extends e{constructor(){super("ins")}}class wn extends e{constructor(){super("object")}}class _n extends e{constructor(){super("ol")}}class Sn extends e{constructor(){super("optgroup")}}class Tn extends e{constructor(){super("option")}}class xn extends e{constructor(){super("output")}}class Nn extends e{constructor(){super("p")}}class Cn extends e{constructor(){super("param")}}class Vn extends e{constructor(){super("picture")}}class Mn extends e{constructor(){super("pre")}}class On extends e{constructor(){super("progress")}}class Rn extends e{constructor(){super("blockquote")}}class Ln extends e{constructor(){super("script")}}class An extends e{constructor(){super("select")}}class Y extends e{constructor(){super("slot")}cloneNode(s=!1){let S=new Y;S.namespaceURI=this.namespaceURI,S.nodeName=this.nodeName,S.tagName=this.tagName,S.ownerDocument=this.ownerDocument;for(let[T,C]of this.attributes)S.setAttribute(T,C);if(s)for(let T of this.childNodes){let C=T.cloneNode?.(!0);if(C)S.appendChild(C)}return S}assignedNodes(s={}){return gi(this,s)}assignedElements(s={}){return Qi(this,s)}}class Dn extends e{constructor(){super("source")}}class Pn extends e{constructor(){super("span")}}class In extends e{constructor(){super("style")}}class kn extends e{constructor(){super("caption")}}class Bn extends e{constructor(){super("td")}}class Hn extends e{constructor(){super("col")}}class Fn extends e{constructor(){super("table")}}class Gn extends e{constructor(){super("tr")}}class Un extends e{constructor(){super("tbody")}}class Wn extends e{constructor(){super("textarea")}}class $n extends e{constructor(){super("time")}}class qn extends e{constructor(){super("title")}}class zn extends e{constructor(){super("track")}}class Kn extends e{constructor(){super("ul")}}class jn extends e{constructor(){super("unknown")}}class Yn extends e{constructor(){super("video")}}class Xn extends e{constructor(s,S){super("img");if(s!==void 0)this.setAttribute("width",String(s));if(S!==void 0)this.setAttribute("height",String(S))}}class Jn extends e{constructor(s){super("audio");if(s!==void 0)this.setAttribute("src",s)}}var ys=300,Es=150;function ss(s,S){if(s===null)return S;let T=Number.parseInt(s,10);return Number.isNaN(T)||T<0?S:T}class X extends e{context2d=null;constructor(){super("canvas")}get width(){return ss(this.getAttribute("width"),ys)}set width(s){this.setAttribute("width",String(s))}get height(){return ss(this.getAttribute("height"),Es)}set height(s){this.setAttribute("height",String(s))}cloneNode(s=!1){let S=new X;S.namespaceURI=this.namespaceURI,S.nodeName=this.nodeName,S.tagName=this.tagName,S.ownerDocument=this.ownerDocument;for(let[T,C]of this.attributes)S.setAttribute(T,C);if(s)for(let T of this.childNodes){let C=T.cloneNode?.(!0);if(C)S.appendChild(C)}return S}getContext(s){if(s==="2d"){if(!this.context2d)this.context2d=new ae(this);return this.context2d}return null}toDataURL(s,S){return`data:${s||"image/png"};base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==`}toBlob(s,S,T){setTimeout(()=>{let C=new Blob(["fake canvas data"],{type:S||"image/png"});s(C)},0)}async toBlobAsync(s,S){return new Promise((T)=>{this.toBlob((C)=>{if(C)T(C)},s,S)})}}var ve=Symbol("very-happy-dom.custom-element-owner-document");function Oe(s,S,...T){let C=s,D=Object.prototype.hasOwnProperty.call(C,ve),w=C[ve];C[ve]=S;try{return new s(...T)}finally{if(D)C[ve]=w;else delete C[ve]}}function os(s){return s[ve]??null}class N extends d{nodeType=a;nodeKind="document";nodeName="#document";defaultView=null;_idIndex=new Map;get parentWindow(){return this.defaultView}documentElement=null;location;history;get head(){return this._documentElementChild("HEAD")}set head(s){this._replaceDocumentElementChild("HEAD",s)}get body(){return this._documentElementChild("BODY")}set body(s){this._replaceDocumentElementChild("BODY",s)}_documentElementChild(s){let S=this.documentElement?.childNodes;if(!S)return null;for(let T of S)if(T.nodeType===t&&T.tagName===s)return T;return null}_replaceDocumentElementChild(s,S){let T=this._documentElementChild(s);if(T===S)return;if(!this.documentElement)return;if(T&&S)this.documentElement.replaceChild(S,T);else if(T)this.documentElement.removeChild(T);else if(S)this.documentElement.appendChild(S)}_fallbackTitle="";get title(){return this.head?.querySelector("title")?.textContent??this._fallbackTitle}set title(s){if(this._fallbackTitle=s,!this.head)return;let S=this.head.querySelector("title");if(!S){if(S=this.createElement("title"),!S)return;this.head.appendChild(S)}S.textContent=s}readyState="complete";compatMode="CSS1Compat";contentType="text/html";characterSet="UTF-8";doctype=null;hidden=!1;visibilityState="visible";dir="";referrer="";designMode="off";get charset(){return this.characterSet}get inputEncoding(){return this.characterSet}get URL(){return this.location.href}get documentURI(){return this.URL}get baseURI(){let S=(this.head?.querySelector("base[href]")||this.querySelector("base[href]"))?.getAttribute("href");return S?this._resolveAgainstDocumentURL(S):this._getDocumentURLForResolution()}get domain(){if(this._locationState.hostname)return this._locationState.hostname;try{return new URL(this._getDocumentURLForResolution()).hostname}catch{return""}}get lastModified(){return new Date().toLocaleString()}_focusedElement=null;get activeElement(){return this._focusedElement||this.body}get scrollingElement(){return this.documentElement}get forms(){return this.querySelectorAll("form")}get images(){return this.querySelectorAll("img")}get links(){return this.querySelectorAll("a[href], area[href]")}get scripts(){return this.querySelectorAll("script")}get anchors(){return this.querySelectorAll("a[name]")}get embeds(){return this.querySelectorAll("embed")}get plugins(){return this.embeds}currentScript=null;_adoptedStyleSheets=[];_parsedStyleSheets=new WeakMap;get styleSheets(){let s=[];for(let S of this.querySelectorAll("style")){let T=S.textContent??"",C=this._parsedStyleSheets.get(S);if(C&&C.text===T){s.push(C.sheet);continue}let D=new se;D.replaceSync(T),this._parsedStyleSheets.set(S,{text:T,sheet:D}),s.push(D)}return s}get adoptedStyleSheets(){return this._adoptedStyleSheets}set adoptedStyleSheets(s){this._adoptedStyleSheets=s}implementation={createHTMLDocument:(s)=>{let S=new N;if(s!==void 0)S.title=s;return S},hasFeature:()=>!0};_historyStack=[];_historyIndex=-1;_xpathEvaluator=new Ft;_cookieContainer=new L;_setCookieContainer(s){this._cookieContainer=s}_getCookieContainer(){return this._cookieContainer}_selection=null;_locationState={href:"",protocol:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:"",origin:""};constructor(){super();this.documentElement=new e("html"),this.documentElement.appendChild(new e("head")),this.documentElement.appendChild(new e("body")),this.appendChild(this.documentElement),this.location=this._createLocation();let s=this;this.history={get length(){return s._historyStack.length},get state(){return s._historyStack[s._historyIndex]?.state||null},pushState(S,T,C){let D=C?s._resolveLocationString(C):s.location.href;if(s._historyStack=s._historyStack.slice(0,s._historyIndex+1),s._historyStack.push({state:S,title:T,url:D}),s._historyIndex++,C)s._updateLocation(D,{triggerHashchange:!1})},replaceState(S,T,C){let D=C?s._resolveLocationString(C):s.location.href;if(s._historyIndex>=0)s._historyStack[s._historyIndex]={state:S,title:T,url:D};if(C)s._updateLocation(D,{triggerHashchange:!1})},back(){if(s._historyIndex>0){s._historyIndex--;let S=s._historyStack[s._historyIndex];if(S.url)s._updateLocation(S.url,{triggerPopstate:!0,popState:S.state})}},forward(){if(s._historyIndex<s._historyStack.length-1){s._historyIndex++;let S=s._historyStack[s._historyIndex];if(S.url)s._updateLocation(S.url,{triggerPopstate:!0,popState:S.state})}},go(S){let T=s._historyIndex+S;if(T>=0&&T<s._historyStack.length){s._historyIndex=T;let C=s._historyStack[s._historyIndex];if(C.url)s._updateLocation(C.url,{triggerPopstate:!0,popState:C.state})}}}}_createLocation(){let s={},S=(T)=>{let C=new URL(this._getDocumentURLForResolution(),"http://localhost/");T(C),this._updateLocation(C.href)};return Object.defineProperties(s,{href:{enumerable:!0,get:()=>this._locationState.href,set:(T)=>{this._updateLocation(`${T}`)}},protocol:{enumerable:!0,get:()=>this._locationState.protocol,set:(T)=>S((C)=>{C.protocol=T.endsWith(":")?T:`${T}:`})},host:{enumerable:!0,get:()=>this._locationState.host,set:(T)=>S((C)=>{C.host=T})},hostname:{enumerable:!0,get:()=>this._locationState.hostname,set:(T)=>S((C)=>{C.hostname=T})},port:{enumerable:!0,get:()=>this._locationState.port,set:(T)=>S((C)=>{C.port=T})},pathname:{enumerable:!0,get:()=>this._locationState.pathname,set:(T)=>S((C)=>{C.pathname=T.startsWith("/")?T:`/${T}`})},search:{enumerable:!0,get:()=>this._locationState.search,set:(T)=>S((C)=>{C.search=T?T.startsWith("?")?T:`?${T}`:""})},hash:{enumerable:!0,get:()=>this._locationState.hash,set:(T)=>S((C)=>{C.hash=T?T.startsWith("#")?T:`#${T}`:""})},origin:{enumerable:!0,get:()=>this._locationState.origin}}),s.assign=(T)=>{this._updateLocation(T)},s.replace=(T)=>{this._updateLocation(T)},s.reload=()=>{},s.toString=()=>this._locationState.href,s}_getDocumentURLForResolution(){return this.location.href||this.defaultView?.location?.href||"http://localhost/"}_resolveAgainstDocumentURL(s){try{return new URL(s,this._getDocumentURLForResolution()).href}catch{return s}}_resolveLocationString(s){try{return new URL(s,this._getDocumentURLForResolution()).href}catch{return s}}_updateLocation(s,S={}){let{triggerHashchange:T=!0,triggerPopstate:C=!1,popState:D=null}=S,w=this._locationState.href,G=this._locationState.hash;try{let P=this.location.href||this.defaultView?.location?.href||"",F;if(P&&!P.startsWith("about:"))F=new URL(s,P);else F=new URL(s);this._locationState.href=F.href,this._locationState.protocol=F.protocol,this._locationState.host=F.host,this._locationState.hostname=F.hostname,this._locationState.port=F.port,this._locationState.pathname=F.pathname,this._locationState.search=F.search,this._locationState.hash=F.hash,this._locationState.origin=F.origin}catch{this._locationState.href=s,this._locationState.protocol="",this._locationState.host="",this._locationState.hostname="",this._locationState.port="",this._locationState.pathname="",this._locationState.search="",this._locationState.hash="",this._locationState.origin=""}if(T&&w&&G!==this._locationState.hash)this._dispatchWindowEvent("hashchange",{oldURL:w,newURL:this._locationState.href});if(C)this._dispatchWindowEvent("popstate",{state:D})}_dispatchWindowEvent(s,S){if(!this.defaultView)return;let T=new n(s);for(let[C,D]of Object.entries(S))T[C]=D;this.defaultView.dispatchEvent(T)}_getCookieOrigin(){let s=this._getDocumentURLForResolution();if(!s||s==="about:blank"||s.startsWith("about:"))return"http://localhost/";try{let S=new URL(s,"http://localhost/");if(S.protocol!=="http:"&&S.protocol!=="https:")return"http://localhost/";return S.href}catch{return"http://localhost/"}}_getDefaultCookiePath(){let s="/";try{s=new URL(this._getDocumentURLForResolution(),"http://localhost/").pathname||"/"}catch{s=this.location.pathname||"/"}if(!s.startsWith("/"))return"/";if(s==="/")return"/";let S=s.lastIndexOf("/");if(S<=0)return"/";return s.slice(0,S+1)}get textContent(){return this.documentElement?.textContent||""}set textContent(s){if(this.documentElement)this.documentElement.textContent=s}appendChild(s){return k(this,s)}_setOwnerDocumentRecursive(s,S){E(s,S)}createElement(s){if(s.toLowerCase()==="canvas"){let C=new X;return C.ownerDocument=this,C}if(s.toLowerCase()==="template"){let C=new j;return C.ownerDocument=this,C.content.ownerDocument=this,C}if(s.toLowerCase()==="slot"){let C=new Y;return C.ownerDocument=this,C}let S=this.defaultView?.customElements?.get?.(s.toLowerCase()),T=S?Oe(S,this,s):new e(s);return T.ownerDocument=this,T}createElementNS(s,S){let T;if(s==="http://www.w3.org/2000/svg")T=new r(S);else T=new e(S),T.namespaceURI=s;return T.ownerDocument=this,T}createTextNode(s){let S=new o(s);return S.ownerDocument=this,S}createComment(s){let S=new x(s);return S.ownerDocument=this,S}createDocumentFragment(){let s=new _;return s.ownerDocument=this,s}_setFocusedElement(s){this._focusedElement=s}createEvent(s){switch(s.toLowerCase()){case"customevent":case"customevents":return new pe("");case"mouseevent":case"mouseevents":return new M("");case"keyboardevent":return new le("");case"focusevent":return new ue("");case"uievent":case"uievents":return new v("");default:return new n("")}}createAttribute(s){return{name:s.toLowerCase(),value:"",specified:!0}}importNode(s,S=!1){if(typeof s.cloneNode!=="function")throw Error("Failed to execute 'importNode': parameter 1 is not of type 'Node'.");let T=s.cloneNode(S);return this._setOwnerDocumentRecursive(T,this),T}adoptNode(s){if(s.parentNode)s.parentNode.removeChild(s);return this._setOwnerDocumentRecursive(s,this),s}hasFocus(){return this._focusedElement!==null}execCommand(s,S,T){return!1}queryCommandEnabled(s){return!1}queryCommandSupported(s){return!1}createTreeWalker(s,S=4294967295,T=null){return new fe(s,S,T)}createNodeIterator(s,S=4294967295,T=null){return new ge(s,S,T)}createRange(){return new m(this)}getSelection(){if(!this._selection)this._selection=new be(this);return this._selection}querySelector(s){return I(this,s)}querySelectorAll(s){return y(this,s)}getElementById(s){return this._idIndex.get(s)??null}getElementsByTagName(s){return this.querySelectorAll(s)}getElementsByName(s){return this.querySelectorAll(`[name="${s}"]`)}getElementsByClassName(s){let S=s.trim().split(/\s+/).filter(Boolean);if(S.length===0)return[];return this.querySelectorAll(S.map((T)=>`.${T}`).join(""))}parseHTML(s){let S=p(s,this);if(this.body){this.body.childNodes=[];for(let T of S)this.body.appendChild(T)}}write(s){let S=p(s,this);for(let T of S)if(T.nodeType===t){let C=T;if(C.tagName==="HTML"){this.childNodes=[],this.documentElement=C,this.appendChild(C);return}}if(this.body)for(let T of S)this.body.appendChild(T)}open(){if(this.body)this.body.childNodes=[];return this}close(){}writeln(s){this.write(`${s}
10
10
  `)}getComputedStyle(s,S){let T={ADDRESS:"block",ARTICLE:"block",ASIDE:"block",BLOCKQUOTE:"block",BODY:"block",DETAILS:"block",DIALOG:"block",DIV:"block",DL:"block",DT:"block",FIELDSET:"block",FIGCAPTION:"block",FIGURE:"block",FOOTER:"block",FORM:"block",H1:"block",H2:"block",H3:"block",H4:"block",H5:"block",H6:"block",HEADER:"block",HR:"block",HTML:"block",LEGEND:"block",MAIN:"block",NAV:"block",OL:"block",P:"block",PRE:"block",SECTION:"block",UL:"block",LI:"list-item",TABLE:"table",CAPTION:"table-caption",THEAD:"table-header-group",TBODY:"table-row-group",TFOOT:"table-footer-group",TR:"table-row",TH:"table-cell",TD:"table-cell",COLGROUP:"table-column-group",COL:"table-column",BUTTON:"inline-block",INPUT:"inline-block",SELECT:"inline-block",TEXTAREA:"inline-block",A:"inline",ABBR:"inline",B:"inline",CITE:"inline",CODE:"inline",DFN:"inline",EM:"inline",I:"inline",KBD:"inline",LABEL:"inline",MARK:"inline",Q:"inline",S:"inline",SAMP:"inline",SMALL:"inline",SPAN:"inline",STRONG:"inline",SUB:"inline",SUP:"inline",TIME:"inline",U:"inline",VAR:"inline",IMG:"inline",BR:"inline",SCRIPT:"none",STYLE:"none",HEAD:"none",TITLE:"none",META:"none",LINK:"none"},C=(F,U)=>{switch(F){case"display":return T[U]||"inline";case"visibility":return"visible";case"opacity":return"1";case"position":return"static";case"float":return"none";case"clear":return"none";case"overflow":case"overflow-x":case"overflow-y":return"visible";case"box-sizing":return"content-box";case"z-index":return"auto";case"flex-direction":return"row";case"flex-wrap":return"nowrap";case"justify-content":return"normal";case"align-items":return"normal";case"align-content":return"normal";case"text-align":return"start";case"text-transform":return"none";case"text-decoration":case"text-decoration-line":return"none";case"font-size":return"16px";case"font-family":return"serif";case"font-weight":return"400";case"font-style":return"normal";case"line-height":return"normal";case"color":return"rgb(0, 0, 0)";case"background-color":return"rgba(0, 0, 0, 0)";case"border-width":case"border-top-width":case"border-right-width":case"border-bottom-width":case"border-left-width":return"0px";case"border-style":case"border-top-style":case"border-right-style":case"border-bottom-style":case"border-left-style":return"none";case"margin":case"margin-top":case"margin-right":case"margin-bottom":case"margin-left":case"padding":case"padding-top":case"padding-right":case"padding-bottom":case"padding-left":return"0px";case"width":case"height":case"min-width":case"min-height":return"auto";case"max-width":case"max-height":return"none";case"cursor":return"auto";case"pointer-events":return"auto";default:return""}},D=s,w=null,G=()=>{if(!w)w=ci(D,[...this.styleSheets,...this._adoptedStyleSheets],this.defaultView?._mediaContext?.());return w},P=(F)=>{let U=di(F,D.style,G());if(U!==null)return U;return C(F,D.tagName)};return new Proxy({getPropertyValue(F){return P(F)},getPropertyPriority(F){if(D.style.getPropertyPriority(F)==="important")return"important";return G().important.has(F)?"important":""}},{get(F,U){if(U==="getPropertyValue")return F.getPropertyValue;if(U==="getPropertyPriority")return F.getPropertyPriority;if(typeof U!=="string")return;let B=U.replace(/[A-Z]/g,(Q)=>`-${Q.toLowerCase()}`);return P(B)}})}addEventListener(s,S,T={}){super.addEventListener(s,S,T)}removeEventListener(s,S,T={}){super.removeEventListener(s,S,T)}dispatchEvent(s){return super.dispatchEvent(s)}evaluate(s,S=this,T=null,C=0,D=null){let w=S===this?this.documentElement||this:S;return this._xpathEvaluator.evaluate(s,w,T,C,D)}createExpression(s,S=null){return{evaluate:(T,C=0)=>{let D=T===this?this.documentElement||this:T;return this._xpathEvaluator.evaluate(s,D,S,C,null)}}}get cookie(){return this._cookieContainer.getCookies(this._getCookieOrigin()).map((s)=>`${s.key}=${s.value||""}`).join("; ")}set cookie(s){let S=s.split(";").map((F)=>F.trim()).filter(Boolean),[T,...C]=S;if(!T)return;let D=T.indexOf("="),w=(D===-1?T:T.slice(0,D)).trim(),G=D===-1?"":T.slice(D+1).trim();if(!w)return;let P={key:w,value:G,originURL:this._getCookieOrigin(),path:this._getDefaultCookiePath(),hostOnly:!0};for(let F of C){let[U,...B]=F.split("="),Q=U.trim().toLowerCase(),re=B.join("=").trim();if(Q==="expires"){let J=new Date(re);if(!Number.isNaN(J.getTime()))P.expires=J}else if(Q==="max-age"){let J=Number.parseInt(re,10);if(!Number.isNaN(J))P.expires=new Date(Date.now()+J*1000)}else if(Q==="path")P.path=re||"/";else if(Q==="domain")P.domain=re.replace(/^\./,""),P.hostOnly=!1;else if(Q==="secure")P.secure=!0;else if(Q==="httponly")P.httpOnly=!0;else if(Q==="samesite"){let J=re.toLowerCase();P.sameSite=J==="strict"?"Strict":J==="none"?"None":"Lax"}}this._cookieContainer.addCookies([P])}getElementsByTagNameNS(s,S){return this.getElementsByTagName(S)}createAttributeNS(s,S){return{name:S.toLowerCase(),value:"",namespaceURI:s,specified:!0}}createProcessingInstruction(s,S){return new x(`?${s} ${S}?`)}elementFromPoint(s,S){return this.body}elementsFromPoint(s,S){return this.body?[this.body]:[]}}function Zi(){return new N}class Qn{root;rootMargin;thresholds;_callback;_observedElements=new Set;_pendingEntries=[];constructor(s,S={}){if(this._callback=s,this.root=S.root||null,this.rootMargin=S.rootMargin||"0px",S.threshold===void 0)this.thresholds=[0];else if(Array.isArray(S.threshold))this.thresholds=S.threshold;else this.thresholds=[S.threshold]}observe(s){if(this._observedElements.has(s))return;this._observedElements.add(s);let S=this._createEntry(s,!0);this._pendingEntries.push(S),setTimeout(()=>{if(this._observedElements.has(s)){let T=this._pendingEntries.indexOf(S);if(T!==-1)this._pendingEntries.splice(T,1);this._callback([S],this)}},0)}unobserve(s){this._observedElements.delete(s)}disconnect(){this._observedElements.clear()}takeRecords(){return this._pendingEntries.splice(0)}_createEntry(s,S){let T=this._getBoundingClientRect(s);return{boundingClientRect:T,intersectionRatio:S?1:0,intersectionRect:S?T:this._createEmptyRect(),isIntersecting:S,rootBounds:this.root?this._getBoundingClientRect(this.root):null,target:s,time:Date.now()}}_getBoundingClientRect(s){return{x:0,y:0,width:100,height:100,top:0,right:100,bottom:100,left:0}}_createEmptyRect(){return{x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0}}}class Zn{_callback;_observedElements=new Set;constructor(s){this._callback=s}observe(s,S){if(this._observedElements.has(s))return;this._observedElements.add(s),setTimeout(()=>{if(this._observedElements.has(s)){let T=this._createEntry(s);this._callback([T],this)}},0)}unobserve(s){this._observedElements.delete(s)}disconnect(){this._observedElements.clear()}_createEntry(s){let S=this._getContentRect(s),T={inlineSize:S.width,blockSize:S.height};return{target:s,contentRect:S,borderBoxSize:[T],contentBoxSize:[T],devicePixelContentBoxSize:[T]}}_getContentRect(s){return{x:0,y:0,width:100,height:100,top:0,right:100,bottom:100,left:0}}}class Ai{_data=new Map;get length(){return this._data.size}key(s){return Array.from(this._data.keys())[s]??null}getItem(s){return this._data.get(s)??null}setItem(s,S){this._data.set(s,String(S))}removeItem(s){this._data.delete(s)}clear(){this._data.clear()}}function ye(){let s=new Ai;return new Proxy(s,{get(S,T){if(T in S||typeof T==="symbol")return S[T];return S.getItem(T)},set(S,T,C){if(T in S)return S[T]=C,!0;return S.setItem(T,C),!0},deleteProperty(S,T){return S.removeItem(T),!0},has(S,T){return T in S||S.getItem(T)!==null}})}class er{_timeouts=new Map;_intervals=new Map;_animationFrames=new Map;_nextId=1;_aborted=!1;setTimeout(s,S=0,...T){if(this._aborted)return-1;let C=this._nextId++,D=globalThis.setTimeout(()=>{if(this._timeouts.delete(C),!this._aborted)s(...T)},S);return this._timeouts.set(C,D),C}clearTimeout(s){let S=this._timeouts.get(s);if(S)globalThis.clearTimeout(S),this._timeouts.delete(s)}setInterval(s,S=0,...T){if(this._aborted)return-1;let C=this._nextId++,D=globalThis.setInterval(()=>{if(!this._aborted)s(...T)},S);return this._intervals.set(C,D),C}clearInterval(s){let S=this._intervals.get(s);if(S)globalThis.clearInterval(S),this._intervals.delete(s)}requestAnimationFrame(s){if(this._aborted)return-1;let S=this._nextId++,T=globalThis.setTimeout(()=>{if(this._animationFrames.delete(S),!this._aborted)s(Date.now())},16);return this._animationFrames.set(S,T),S}cancelAnimationFrame(s){let S=this._animationFrames.get(s);if(S)globalThis.clearTimeout(S),this._animationFrames.delete(s)}hasPendingTimers(){return this._timeouts.size>0||this._animationFrames.size>0}async waitForTimers(){while(this._timeouts.size>0||this._animationFrames.size>0)await new Promise((s)=>globalThis.setTimeout(s,10))}clearAll(){for(let s of this._timeouts.values())globalThis.clearTimeout(s);this._timeouts.clear();for(let s of this._intervals.values())globalThis.clearInterval(s);this._intervals.clear();for(let s of this._animationFrames.values())globalThis.clearTimeout(s);this._animationFrames.clear()}abort(){this._aborted=!0,this.clearAll()}}var vs=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),Ss=new Set(["attributes","childNodes","namespaceURI","nodeKind","nodeName","nodeType","nodeValue","ownerDocument","parentNode","tagName"]);function is(s){return/^[a-z][.0-9_a-z-]*-[.0-9_a-z-]*$/.test(s)&&!vs.has(s)}function _s(s,S){if(!(s instanceof Map)||!(S instanceof Map))return s??S;for(let[T,C]of S){let D=s.get(T)??[];s.set(T,[...D,...C])}return s}function Ts(s,S){let T=s._getInternalShadowRoot?.()??null,C=Oe(S,s.ownerDocument),D=C._getInternalShadowRoot?.()??null,w=s._eventListeners;for(let P of Reflect.ownKeys(C))if(!Ss.has(P))s[P]=C[P];if(s._eventListeners=_s(w,C._eventListeners),T){if(D){for(let P of Reflect.ownKeys(s))if(s[P]===D)s[P]=T}s._shadowRoot=T}let G=s._getInternalShadowRoot?.();if(G){G.host=s,G.parentNode=s;let P=(F)=>{F.ownerDocument=s.ownerDocument;for(let U of F.childNodes??[])P(U)};P(G)}}class tr{_definitions=new Map;_document=null;_whenDefinedPromises=new Map;define(s,S,T){if(!is(s))throw Error(`Failed to execute 'define' on 'CustomElementRegistry': "${s}" is not a valid custom element name`);if(this._definitions.has(s))throw Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${s}" has already been used`);if([...this._definitions.values()].includes(S))throw Error("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used");if(S.__veryHappyCustomElementName=s,this._definitions.set(s,S),this._document)this.upgrade(this._document);let C=this._whenDefinedPromises.get(s);if(C)C.forEach((D)=>D.resolve()),this._whenDefinedPromises.delete(s)}get(s){return this._definitions.get(s)}whenDefined(s){if(!is(s))return Promise.reject(Error(`Failed to execute 'whenDefined' on 'CustomElementRegistry': "${s}" is not a valid custom element name`));if(this._definitions.has(s))return Promise.resolve(this._definitions.get(s));return new Promise((S,T)=>{if(!this._whenDefinedPromises.has(s))this._whenDefinedPromises.set(s,[]);this._whenDefinedPromises.get(s).push({resolve:()=>S(this._definitions.get(s)),reject:T})})}_setDocument(s){this._document=s}upgrade(s){let S=(T)=>{if(T?.tagName){let D=`${T.tagName}`.toLowerCase(),w=this._definitions.get(D);if(w&&!(T instanceof w)){Ts(T,w),Object.setPrototypeOf(T,w.prototype),T.__veryHappyCustomElementName=D;for(let[G,P]of T.attributes??[])Ce(T,G,null,P);if(T.isConnected)Ne(T)}}let C=T?._getInternalShadowRoot?.();if(C)S(C);for(let D of T?.childNodes??[])S(D)};S(s)}}class nr extends e{constructor(s){let S=new.target;super(s||S.__veryHappyCustomElementName||"div");this.ownerDocument=os(S)}static get observedAttributes(){return[]}}class rr extends r{constructor(){super("svg")}}class ir extends r{constructor(){super("g")}}class or extends r{constructor(){super("path")}}class sr extends r{constructor(){super("animate")}}class ar extends r{constructor(){super("circle")}}class lr extends r{constructor(){super("clipPath")}}class ur extends r{constructor(){super("defs")}}class cr extends r{constructor(){super("desc")}}class dr extends r{constructor(){super("ellipse")}}class hr extends r{constructor(){super("filter")}}class mr extends r{constructor(){super("foreignObject")}}class pr extends r{constructor(){super("g")}}class fr extends r{constructor(){super("image")}}class gr extends r{constructor(){super("line")}}class br extends r{constructor(){super("linearGradient")}}class yr extends r{constructor(){super("marker")}}class Er extends r{constructor(){super("mask")}}class vr extends r{constructor(){super("metadata")}}class wr extends r{constructor(){super("path")}}class _r extends r{constructor(){super("pattern")}}class Sr extends r{constructor(){super("polygon")}}class Tr extends r{constructor(){super("polyline")}}class xr extends r{constructor(){super("radialGradient")}}class Nr extends r{constructor(){super("rect")}}class Cr extends r{constructor(){super("script")}}class Vr extends r{constructor(){super("stop")}}class Mr extends r{constructor(){super("style")}}class Or extends r{constructor(){super("switch")}}class Rr extends r{constructor(){super("symbol")}}class Lr extends r{constructor(){super("text")}}class Ar extends r{constructor(){super("textPath")}}class Dr extends r{constructor(){super("title")}}class Pr extends r{constructor(){super("tspan")}}class Ir extends r{constructor(){super("use")}}class kr extends r{constructor(){super("view")}}class Br extends r{constructor(){super("feBlend")}}class Hr extends r{constructor(){super("feColorMatrix")}}class Fr extends r{constructor(){super("feComponentTransfer")}}class Gr extends r{constructor(){super("feComposite")}}class Ur extends r{constructor(){super("feConvolveMatrix")}}class Wr extends r{constructor(){super("feDiffuseLighting")}}class $r extends r{constructor(){super("feDisplacementMap")}}class qr extends r{constructor(){super("feDistantLight")}}class zr extends r{constructor(){super("feFlood")}}class Kr extends r{constructor(){super("feGaussianBlur")}}class jr extends r{constructor(){super("feImage")}}class Yr extends r{constructor(){super("feMerge")}}class Xr extends r{constructor(){super("feMergeNode")}}class Jr extends r{constructor(){super("feMorphology")}}class Qr extends r{constructor(){super("feOffset")}}class Zr extends r{constructor(){super("fePointLight")}}class ei extends r{constructor(){super("feSpecularLighting")}}class ti extends r{constructor(){super("feSpotLight")}}class ni extends r{constructor(){super("feTile")}}class ri extends r{constructor(){super("feTurbulence")}}class ii{static SVG_ANGLETYPE_UNKNOWN=0;static SVG_ANGLETYPE_UNSPECIFIED=1;static SVG_ANGLETYPE_DEG=2;static SVG_ANGLETYPE_RAD=3;static SVG_ANGLETYPE_GRAD=4;unitType=0;value=0;valueInSpecifiedUnits=0;valueAsString="0"}class oi{static SVG_LENGTHTYPE_UNKNOWN=0;static SVG_LENGTHTYPE_NUMBER=1;static SVG_LENGTHTYPE_PERCENTAGE=2;static SVG_LENGTHTYPE_PX=5;unitType=0;value=0;valueInSpecifiedUnits=0;valueAsString="0"}class si{value=0}class ai{x=0;y=0}class li{x=0;y=0;width=0;height=0}class Ue{a=1;b=0;c=0;d=1;e=0;f=0}class ui{static SVG_TRANSFORM_UNKNOWN=0;static SVG_TRANSFORM_MATRIX=1;static SVG_TRANSFORM_TRANSLATE=2;static SVG_TRANSFORM_SCALE=3;static SVG_TRANSFORM_ROTATE=4;static SVG_TRANSFORM_SKEWX=5;static SVG_TRANSFORM_SKEWY=6;type=0;matrix=new Ue;angle=0}class b extends f{document;happyDOM;console;navigator;customElements;HTMLElement=nr;localStorage;sessionStorage;fetch=globalThis.fetch.bind(globalThis);Request=globalThis.Request;Response=globalThis.Response;Headers=globalThis.Headers;FormData=Si;ClipboardItem=Ie;URL=globalThis.URL;URLSearchParams=globalThis.URLSearchParams;AbortController=globalThis.AbortController;AbortSignal=globalThis.AbortSignal;Blob=globalThis.Blob;TextEncoder=globalThis.TextEncoder;TextDecoder=globalThis.TextDecoder;ReadableStream=globalThis.ReadableStream;WritableStream=globalThis.WritableStream;TransformStream=globalThis.TransformStream;CustomEvent=pe;MutationObserver=l;IntersectionObserver=Qn;ResizeObserver=Zn;XMLHttpRequest=g;WebSocket=kt;File=ft;FileReader=u;FileList=gt;HTMLCanvasElement=X;CanvasRenderingContext2D=ae;HTMLAnchorElement=Gt;HTMLAreaElement=Ut;HTMLAudioElement=Wt;HTMLBaseElement=$t;HTMLBodyElement=qt;HTMLBRElement=zt;HTMLButtonElement=Kt;HTMLDataElement=jt;HTMLDataListElement=Yt;HTMLDetailsElement=Xt;HTMLDialogElement=Jt;HTMLDivElement=Qt;HTMLDListElement=Zt;HTMLEmbedElement=en;HTMLFieldSetElement=tn;HTMLFormElement=nn;HTMLHeadElement=rn;HTMLHeadingElement=on;HTMLHRElement=sn;HTMLHtmlElement=an;HTMLIFrameElement=ln;HTMLImageElement=un;HTMLInputElement=cn;HTMLLabelElement=dn;HTMLLegendElement=hn;HTMLLIElement=mn;HTMLLinkElement=pn;HTMLMapElement=fn;HTMLMediaElement=gn;HTMLMenuElement=bn;HTMLMetaElement=yn;HTMLMeterElement=En;HTMLModElement=vn;HTMLObjectElement=wn;HTMLOListElement=_n;HTMLOptGroupElement=Sn;HTMLOptionElement=Tn;HTMLOutputElement=xn;HTMLParagraphElement=Nn;HTMLParamElement=Cn;HTMLPictureElement=Vn;HTMLPreElement=Mn;HTMLProgressElement=On;HTMLQuoteElement=Rn;HTMLScriptElement=Ln;HTMLSelectElement=An;HTMLSlotElement=Y;HTMLSourceElement=Dn;HTMLSpanElement=Pn;HTMLStyleElement=In;HTMLTableCaptionElement=kn;HTMLTableCellElement=Bn;HTMLTableColElement=Hn;HTMLTableElement=Fn;HTMLTableRowElement=Gn;HTMLTableSectionElement=Un;HTMLTextAreaElement=Wn;HTMLTimeElement=$n;HTMLTitleElement=qn;HTMLTrackElement=zn;HTMLUListElement=Kn;HTMLUnknownElement=jn;HTMLVideoElement=Yn;Image=Xn;Audio=Jn;Document=N;Element=e;HTMLTemplateElement=j;Node=d;NodeFilter=Ri;NodeIterator=ge;Range=m;Selection=be;Text=o;TreeWalker=fe;Comment=x;DocumentFragment=_;Event=n;SVGElement=r;SVGSVGElement=rr;SVGGraphicsElement=ir;SVGGeometryElement=or;SVGAnimationElement=sr;SVGCircleElement=ar;SVGClipPathElement=lr;SVGDefsElement=ur;SVGDescElement=cr;SVGEllipseElement=dr;SVGFilterElement=hr;SVGForeignObjectElement=mr;SVGGElement=pr;SVGImageElement=fr;SVGLineElement=gr;SVGLinearGradientElement=br;SVGMarkerElement=yr;SVGMaskElement=Er;SVGMetadataElement=vr;SVGPathElement=wr;SVGPatternElement=_r;SVGPolygonElement=Sr;SVGPolylineElement=Tr;SVGRadialGradientElement=xr;SVGRectElement=Nr;SVGScriptElement=Cr;SVGStopElement=Vr;SVGStyleElement=Mr;SVGSwitchElement=Or;SVGSymbolElement=Rr;SVGTextElement=Lr;SVGTextPathElement=Ar;SVGTitleElement=Dr;SVGTSpanElement=Pr;SVGUseElement=Ir;SVGViewElement=kr;SVGFEBlendElement=Br;SVGFEColorMatrixElement=Hr;SVGFEComponentTransferElement=Fr;SVGFECompositeElement=Gr;SVGFEConvolveMatrixElement=Ur;SVGFEDiffuseLightingElement=Wr;SVGFEDisplacementMapElement=$r;SVGFEDistantLightElement=qr;SVGFEFloodElement=zr;SVGFEGaussianBlurElement=Kr;SVGFEImageElement=jr;SVGFEMergeElement=Yr;SVGFEMergeNodeElement=Xr;SVGFEMorphologyElement=Jr;SVGFEOffsetElement=Qr;SVGFEPointLightElement=Zr;SVGFESpecularLightingElement=ei;SVGFESpotLightElement=ti;SVGFETileElement=ni;SVGFETurbulenceElement=ri;SVGAngle=ii;SVGLength=oi;SVGNumber=si;SVGPoint=ai;SVGRect=li;SVGMatrix=Ue;SVGTransform=ui;CSSStyleSheet=se;CSSStyleDeclaration=W;CSSRule=h;CSSStyleRule=z;CSSMediaRule=Ae;CSSKeyframesRule=at;CSSKeyframeRule=De;CSSFontFaceRule=lt;CSSSupportsRule=ut;CSSContainerRule=ct;CSSConditionRule=q;CSSGroupingRule=oe;CSSScopeRule=dt;CSS=ht;MediaList=ie;StylePropertyMap=mt;StylePropertyMapReadOnly=Pe;DOMRect=H;DOMRectReadOnly=Z;DOMPoint=we;DOMPointReadOnly=ee;DOMMatrix=$e;DOMMatrixReadOnly=_e;NodeList=qe;HTMLCollection=ze;NamedNodeMap=je;Attr=Ke;XMLSerializer=Ye;ValidityState=Xe;Screen=Se;MediaQueryList=Te;DocumentType=Je;HTMLDocument=N;XMLDocument=N;UIEvent=v;MouseEvent=M;KeyboardEvent=le;FocusEvent=ue;InputEvent=bt;WheelEvent=yt;PointerEvent=Et;TouchEvent=vt;Touch=At;AnimationEvent=wt;TransitionEvent=_t;ClipboardEvent=St;DragEvent=Tt;ErrorEvent=ce;HashChangeEvent=xt;PopStateEvent=Nt;ProgressEvent=Ct;MessageEvent=O;CloseEvent=Vt;StorageEvent=Mt;SubmitEvent=Ot;MediaQueryListEvent=Rt;CompositionEvent=Lt;performance=new rt;Notification=ot;DataTransfer=st;crypto=globalThis.crypto;BroadcastChannel=Dt;MessageChannel=Pt;MessagePort=de;EventSource=R;PerformanceObserver=It;indexedDB=Ti();IDBFactory=Fe;IDBDatabase=He;IDBObjectStore=ke;IDBTransaction=Be;IDBRequest=he;IDBOpenDBRequest=me;DOMParser=class{parseFromString(S,T){let C=new N;if(T==="text/html"||T==="application/xhtml+xml"){let D=p(S,C);for(let w of D)if(w.tagName==="HTML"){C.childNodes=[],C.documentElement=w,C.appendChild(w);for(let G of w.children)if(G.tagName==="HEAD")C.head=G;else if(G.tagName==="BODY")C.body=G;return C}if(C.body){C.body.childNodes=[];for(let w of D)C.body.appendChild(w)}}else if(T==="text/xml"||T==="application/xml"||T==="image/svg+xml"){let D=p(S,C);C.childNodes=[];for(let w of D)C.appendChild(w)}return C}};get self(){return this}get window(){return this}get parent(){return this}get top(){return this}get frames(){return this}frameElement=null;opener=null;name="";closed=!1;scrollX=0;scrollY=0;get pageXOffset(){return this.scrollX}get pageYOffset(){return this.scrollY}devicePixelRatio=1;atob(s){return globalThis.atob(s)}btoa(s){return globalThis.btoa(s)}queueMicrotask(s){globalThis.queueMicrotask(s)}structuredClone(s,S){return globalThis.structuredClone(s,S)}_location;_settings;_width;_height;_timerManager;_idleCallbackId=0;constructor(s={}){super();let{url:S="about:blank",width:T=1024,height:C=768,console:D,settings:w={}}=s;if(this._width=T,this._height=C,this._settings={navigator:{userAgent:w.navigator?.userAgent||"Mozilla/5.0 (X11; Linux x64) AppleWebKit/537.36 (KHTML, like Gecko) VeryHappyDOM/1.0.0"},device:{prefersColorScheme:w.device?.prefersColorScheme||"light"}},this.console=D||globalThis.console,this.navigator=new pt,this.navigator.userAgent=this._settings.navigator.userAgent,this.customElements=new tr,this.localStorage=ye(),this.sessionStorage=ye(),this._timerManager=new er,this.document=new N,this.document.defaultView=this,this.customElements._setDocument(this.document),S)try{this.document.location.href=S}catch{}this._location=this._createLocation(S);let{DetachedWindowAPI:G}=import.meta.require("./chunk-k63rmfca.js");this.happyDOM=new G(this)}get location(){return this.document?.location??this._location}set location(s){let S=typeof s==="string"?s:s.href;if(this.document)this.document.location.href=S;else this._location=this._createLocation(S)}get innerWidth(){return this._width}get innerHeight(){return this._height}get outerWidth(){return this._width}get outerHeight(){return this._height}getSelection(){return this.document.getSelection()}_createLocation(s){try{let S=new URL(s);return{href:S.href,origin:S.origin,protocol:S.protocol,host:S.host,hostname:S.hostname,port:S.port,pathname:S.pathname,search:S.search,hash:S.hash,assign:(T)=>{this.location=T},replace:(T)=>{this.location=T},reload:()=>{},toString:()=>S.href}}catch{return{href:s,origin:"",protocol:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:"",assign:(S)=>{this.location=S},replace:(S)=>{this.location=S},reload:()=>{},toString:()=>s}}}get settings(){return this._settings}setTimeout(s,S,...T){return this._timerManager.setTimeout(s,S,...T)}clearTimeout(s){this._timerManager.clearTimeout(s)}setInterval(s,S,...T){return this._timerManager.setInterval(s,S,...T)}clearInterval(s){this._timerManager.clearInterval(s)}requestAnimationFrame(s){return this._timerManager.requestAnimationFrame(s)}cancelAnimationFrame(s){this._timerManager.cancelAnimationFrame(s)}getComputedStyle(s,S){return this.document.getComputedStyle(s)}get screen(){return new Se(this._width,this._height)}get isSecureContext(){return this._location.protocol==="https:"}get origin(){return this._location.origin}_mediaContext(){return{width:this._width,height:this._height,colorScheme:this._settings.device.prefersColorScheme,reducedMotion:this._settings.device.prefersReducedMotion??"no-preference",forcedColors:this._settings.device.forcedColors??"none",type:this._settings.device.mediaType??"screen"}}matchMedia(s){return new Te(s,xe(s,this._mediaContext()))}get history(){return this.document.history}postMessage(s,S){let T=typeof S==="string"?S:S?.targetOrigin??"*";setTimeout(()=>{let C=new n("message");C.data=s,C.origin=T==="*"?this._location.origin:T,C.source=this,C.ports=[],this.dispatchEvent(C)},0)}requestIdleCallback(s,S){let T=++this._idleCallbackId,C=S?.timeout??50;return this._timerManager.setTimeout(()=>{s({didTimeout:!1,timeRemaining:()=>Math.max(0,C)})},0),T}cancelIdleCallback(s){}focus(){}blur(){}print(){}stop(){}open(s="about:blank",S="_blank",T=""){let C=String(s||"about:blank");try{C=new URL(C,this.location.href).href}catch{}let D=new b({url:C,width:this._width,height:this._height,console:this.console,settings:this._settings});D.name=S&&S!=="_blank"?S:"";let w=T.split(/[\s,]+/).map((G)=>G.split("=",1)[0]?.toLowerCase());return D.opener=w.includes("noopener")||w.includes("noreferrer")?null:this,D}close(){this.closed=!0}resizeTo(s,S){}resizeBy(s,S){}moveTo(s,S){}moveBy(s,S){}scrollTo(s,S){if(typeof s==="object"&&s!==null){if(typeof s.left==="number")this.scrollX=s.left;if(typeof s.top==="number")this.scrollY=s.top;return}if(typeof s==="number")this.scrollX=s;if(typeof S==="number")this.scrollY=S}scroll(s,S){this.scrollTo(s,S)}scrollBy(s,S){if(typeof s==="object"&&s!==null){if(typeof s.left==="number")this.scrollX+=s.left;if(typeof s.top==="number")this.scrollY+=s.top;return}if(typeof s==="number")this.scrollX+=s;if(typeof S==="number")this.scrollY+=S}alert(s){}confirm(s){return!1}prompt(s,S){return null}_getTimerManager(){return this._timerManager}}
11
11
  export{rt,it,ot,qi,st,W,ie,h,oe,q,z,Ae,De,at,lt,ut,ct,dt,se,ht,Pe,mt,ae,Ie,Ei,vi,wi,_i,pt,ft,u,gt,v,M,le,ue,bt,yt,Et,vt,wt,_t,St,Tt,ce,xt,Nt,Ct,O,Vt,Mt,Ot,Rt,Lt,At,Dt,de,Pt,R,zi,Si,he,me,ke,Be,He,Fe,Ti,It,pe,g,kt,xi,L,A,K,Bt,Ge,Ni,Ci,Vi,Mi,Oi,Ri,fe,ge,m,be,Li,Ht,Ft,j,Gt,Ut,Wt,$t,qt,zt,Kt,jt,Yt,Xt,Jt,Qt,Zt,en,tn,nn,rn,on,sn,an,ln,un,cn,dn,hn,mn,pn,fn,gn,bn,yn,En,vn,wn,_n,Sn,Tn,xn,Nn,Cn,Vn,Mn,On,Rn,Ln,An,Y,Dn,Pn,In,kn,Bn,Hn,Fn,Gn,Un,Wn,$n,qn,zn,Kn,jn,Yn,Xn,Jn,X,N,Zi,Qn,Zn,Ai,ye,er,tr,nr,rr,ir,or,sr,ar,lr,ur,cr,dr,hr,mr,pr,fr,gr,br,yr,Er,vr,wr,_r,Sr,Tr,xr,Nr,Cr,Vr,Mr,Or,Rr,Lr,Ar,Dr,Pr,Ir,kr,Br,Hr,Fr,Gr,Ur,Wr,$r,qr,zr,Kr,jr,Yr,Xr,Jr,Qr,Zr,ei,ti,ni,ri,ii,oi,si,ai,li,Ue,ui,b};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{e}from"./chunk-qh4s27j9.js";import"./chunk-2m1ksnrw.js";import"./chunk-w2g7xbfh.js";import"./chunk-d5edpdkj.js";export{e as VirtualElement};
2
+ import{e}from"./chunk-4rkv71j2.js";import"./chunk-axyyzc2e.js";import"./chunk-w2g7xbfh.js";import"./chunk-d5edpdkj.js";export{e as VirtualElement};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{r}from"./chunk-14m9hw4k.js";import"./chunk-4rkv71j2.js";import"./chunk-axyyzc2e.js";import"./chunk-w2g7xbfh.js";import"./chunk-d5edpdkj.js";export{r as VirtualSVGElement};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{o,c,d}from"./chunk-d5edpdkj.js";var S={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A"};function A(t){return t.replace(/&(#x?[0-9a-f]+|[a-z]+);/gi,(s,e)=>{if(e.startsWith("#x")||e.startsWith("#X")){let E=Number.parseInt(e.slice(2),16);return Number.isNaN(E)?`&${e};`:String.fromCodePoint(E)}if(e.startsWith("#")){let E=Number.parseInt(e.slice(1),10);return Number.isNaN(E)?`&${e};`:String.fromCodePoint(E)}return S[e]??S[e.toLowerCase()]??`&${e};`})}function Qe(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function mi(t){return Qe(t).replace(/"/g,"&quot;")}class x extends d{nodeType=c;nodeKind="comment";nodeName="#comment";nodeValue;constructor(t){super();this.nodeValue=t}get textContent(){return this.nodeValue||""}set textContent(t){this.nodeValue=t}get data(){return this.nodeValue||""}set data(t){this.nodeValue=t}get length(){return(this.nodeValue||"").length}substringData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");return e.slice(t,t+s)}appendData(t){this.nodeValue=(this.nodeValue||"")+t}insertData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=e.slice(0,t)+s+e.slice(t)}deleteData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=e.slice(0,t)+e.slice(t+s)}replaceData(t,s,e){let E=this.nodeValue||"";if(t<0||t>E.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=E.slice(0,t)+e+E.slice(t+s)}cloneNode(){return new x(this.nodeValue)}}var w="http://www.w3.org/2000/svg",q="http://www.w3.org/1998/Math/MathML",b=null;function R(){if(!b)b={VirtualElement:import.meta.require("./chunk-kgd4m1kz.js").VirtualElement,VirtualSVGElement:import.meta.require("./chunk-qp0vmpvq.js").VirtualSVGElement};return b}function p(t,s){let e=0,E=t.toLowerCase();function i(){return t[e]||""}function f(){return t[e++]||""}function N(){while(/\s/.test(i()))f()}function h(u,n=null){if(s){if(n)return s.createElementNS?.(n,u);return s.createElement(u)}let{VirtualElement:r,VirtualSVGElement:g}=R(),m=n===w?new g(u):new r(u);if(n&&n!==w)m.namespaceURI=n;return m}function B(u){let n=s?.createTextNode?.(u)??new o(u);if(!n.ownerDocument&&s)n.ownerDocument=s;return n}function M(u){let n=s?.createComment?.(u)??new x(u);if(!n.ownerDocument&&s)n.ownerDocument=s;return n}function D(u){if(t.slice(e,e+2)!=="</")return!1;let n=t.indexOf(">",e+2);if(n===-1)return!1;if(t.slice(e+2,n).trim().toLowerCase()!==u.toLowerCase())return!1;return e=n+1,!0}function z(u){let n=`</${u.toLowerCase()}`,r=E.indexOf(n,e);if(r===-1){let m=t.slice(e);return e=t.length,m}let g=t.slice(e,r);return e=r,g}function L(){if(i()!=="<"||t.slice(e,e+2)==="</"||t.slice(e,e+4)==="<!--"||t.slice(e,e+2)==="<!")return null;let u=e+1,n="";while(t[u]&&/[a-z0-9-]/i.test(t[u]))n+=t[u],u++;return n?n.toLowerCase():null}function k(){if(t.slice(e,e+2)!=="</")return null;let u=e+2,n="";while(t[u]&&/[a-z0-9-]/i.test(t[u]))n+=t[u],u++;return n?n.toLowerCase():null}function P(u,n){if(!n)return!1;return{li:["li"],p:["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"],dt:["dt","dd"],dd:["dt","dd"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tr:["tr","tbody","thead","tfoot"],td:["td","th","tr","tbody","thead","tfoot"],th:["td","th","tr","tbody","thead","tfoot"]}[u]?.includes(n)??!1}function I(u,n){if(n.nodeType!==1){u.appendChild(n);return}let r=u.tagName.toLowerCase(),m=n.tagName.toLowerCase();if(r==="table"&&m==="tr"){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TBODY")a=h("tbody",u.namespaceURI),u.appendChild(a);a.appendChild(n);return}if(r==="table"&&(m==="td"||m==="th")){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TBODY")a=h("tbody",u.namespaceURI),u.appendChild(a);let C=a.lastChild;if(!C||C.nodeType!==1||C.tagName!=="TR")C=h("tr",u.namespaceURI),a.appendChild(C);C.appendChild(n);return}if((r==="tbody"||r==="thead"||r==="tfoot")&&(m==="td"||m==="th")){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TR")a=h("tr",u.namespaceURI),u.appendChild(a);a.appendChild(n);return}u.appendChild(n)}function G(u=null){if(i()!=="<")return null;if(f(),t.slice(e,e+3)==="!--"){e+=3;let l=t.indexOf("-->",e);if(l===-1)throw Error("Unclosed comment");let V=t.slice(e,l);return e=l+3,M(V)}if(t.slice(e,e+8).toUpperCase()==="!DOCTYPE"){let l=t.indexOf(">",e);if(l===-1)throw Error("Unclosed DOCTYPE");return e=l+1,null}if(i()==="/"){f();let l=t.indexOf(">",e);if(l===-1)throw Error("Unclosed tag");return e=l+1,null}let n="";while(i()&&/[a-z0-9-]/i.test(i()))n+=f();if(!n)throw Error("Invalid tag name");let r=n.toLowerCase(),g=u===w||u===q?u:r==="svg"?w:r==="math"?q:null,m=h(n,g),a=g===w&&r==="foreignobject"?null:g;while(i()&&i()!==">"&&i()!=="/"){if(N(),i()===">"||i()==="/")break;let l="";while(i()&&/[\w\-:]/.test(i()))l+=f();if(!l)break;N();let V="",F=!1;if(i()==="=")if(F=!0,f(),N(),i()==='"'||i()==="'"){let O=f();while(i()&&i()!==O)V+=f();if(i()===O)f()}else while(i()&&!/[\s>]/.test(i()))V+=f();m.setAttribute(l,F?A(V):"")}let C=i()==="/";if(C)f();if(i()===">")f();if(C||["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(r))return m;let U=new Set(["script","style"]),v=new Set(["textarea","title"]);if(U.has(r)||v.has(r)){let l=z(n);if(l)m.appendChild(B(v.has(r)?A(l):l));return D(n),m}let Y=y(r,a);for(let l of Y)I(m,l);return m}function T(){if(i()!=="<")return!1;let u=t[e+1];if(u===void 0)return!1;if(/[a-z]/i.test(u))return!0;if(u==="/")return/[a-z]/i.test(t[e+2]??"");if(u==="!")return t.slice(e+1,e+4)==="!--"||t.slice(e+1,e+9).toUpperCase()==="!DOCTYPE";return!1}function H(){let u="";while(i()&&!T())u+=f();if(!u)return null;return B(A(u))}function y(u,n=null){let r=[];while(e<t.length){if(u&&D(u))break;if(u&&k())break;if(u&&P(u,L()))break;if(T()){let g=G(n);if(g===null)continue;r.push(g)}else{let g=H();if(g)r.push(g)}}return r}return y()}
2
+ import{o,c,d}from"./chunk-d5edpdkj.js";var S={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A"};function A(t){return t.replace(/&(#x?[0-9a-f]+|[a-z]+);/gi,(s,e)=>{if(e.startsWith("#x")||e.startsWith("#X")){let E=Number.parseInt(e.slice(2),16);return Number.isNaN(E)?`&${e};`:String.fromCodePoint(E)}if(e.startsWith("#")){let E=Number.parseInt(e.slice(1),10);return Number.isNaN(E)?`&${e};`:String.fromCodePoint(E)}return S[e]??S[e.toLowerCase()]??`&${e};`})}function Qe(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function mi(t){return Qe(t).replace(/"/g,"&quot;")}class x extends d{nodeType=c;nodeKind="comment";nodeName="#comment";nodeValue;constructor(t){super();this.nodeValue=t}get textContent(){return this.nodeValue||""}set textContent(t){this.nodeValue=t}get data(){return this.nodeValue||""}set data(t){this.nodeValue=t}get length(){return(this.nodeValue||"").length}substringData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");return e.slice(t,t+s)}appendData(t){this.nodeValue=(this.nodeValue||"")+t}insertData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=e.slice(0,t)+s+e.slice(t)}deleteData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=e.slice(0,t)+e.slice(t+s)}replaceData(t,s,e){let E=this.nodeValue||"";if(t<0||t>E.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=E.slice(0,t)+e+E.slice(t+s)}cloneNode(){return new x(this.nodeValue)}}var w="http://www.w3.org/2000/svg",q="http://www.w3.org/1998/Math/MathML",b=null;function R(){if(!b)b={VirtualElement:import.meta.require("./chunk-8npp472f.js").VirtualElement,VirtualSVGElement:import.meta.require("./chunk-a6pxryjh.js").VirtualSVGElement};return b}function p(t,s){let e=0,E=t.toLowerCase();function i(){return t[e]||""}function g(){return t[e++]||""}function N(){while(/\s/.test(i()))g()}function h(u,n=null){if(s){if(n)return s.createElementNS?.(n,u);return s.createElement(u)}let{VirtualElement:r,VirtualSVGElement:f}=R(),m=n===w?new f(u):new r(u);if(n&&n!==w)m.namespaceURI=n;return m}function B(u){let n=s?.createTextNode?.(u)??new o(u);if(!n.ownerDocument&&s)n.ownerDocument=s;return n}function M(u){let n=s?.createComment?.(u)??new x(u);if(!n.ownerDocument&&s)n.ownerDocument=s;return n}function D(u){if(t.slice(e,e+2)!=="</")return!1;let n=t.indexOf(">",e+2);if(n===-1)return!1;if(t.slice(e+2,n).trim().toLowerCase()!==u.toLowerCase())return!1;return e=n+1,!0}function z(u){let n=`</${u.toLowerCase()}`,r=E.indexOf(n,e);if(r===-1){let m=t.slice(e);return e=t.length,m}let f=t.slice(e,r);return e=r,f}function L(){if(i()!=="<"||t.slice(e,e+2)==="</"||t.slice(e,e+4)==="<!--"||t.slice(e,e+2)==="<!")return null;let u=e+1,n="";while(t[u]&&/[a-z0-9-]/i.test(t[u]))n+=t[u],u++;return n?n.toLowerCase():null}function P(){if(t.slice(e,e+2)!=="</")return null;let u=e+2,n="";while(t[u]&&/[a-z0-9-]/i.test(t[u]))n+=t[u],u++;return n?n.toLowerCase():null}function k(u,n){if(!n)return!1;return{li:["li"],p:["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"],dt:["dt","dd"],dd:["dt","dd"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tr:["tr","tbody","thead","tfoot"],td:["td","th","tr","tbody","thead","tfoot"],th:["td","th","tr","tbody","thead","tfoot"]}[u]?.includes(n)??!1}function I(u,n){if(n.nodeType!==1){u.appendChild(n);return}let r=u.tagName.toLowerCase(),m=n.tagName.toLowerCase();if(r==="table"&&m==="tr"){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TBODY")a=h("tbody",u.namespaceURI),u.appendChild(a);a.appendChild(n);return}if(r==="table"&&(m==="td"||m==="th")){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TBODY")a=h("tbody",u.namespaceURI),u.appendChild(a);let C=a.lastChild;if(!C||C.nodeType!==1||C.tagName!=="TR")C=h("tr",u.namespaceURI),a.appendChild(C);C.appendChild(n);return}if((r==="tbody"||r==="thead"||r==="tfoot")&&(m==="td"||m==="th")){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TR")a=h("tr",u.namespaceURI),u.appendChild(a);a.appendChild(n);return}u.appendChild(n)}function G(u=null){if(i()!=="<")return null;if(g(),t.slice(e,e+3)==="!--"){e+=3;let l=t.indexOf("-->",e);if(l===-1)throw Error("Unclosed comment");let V=t.slice(e,l);return e=l+3,M(V)}if(t.slice(e,e+8).toUpperCase()==="!DOCTYPE"){let l=t.indexOf(">",e);if(l===-1)throw Error("Unclosed DOCTYPE");return e=l+1,null}if(i()==="/"){g();let l=t.indexOf(">",e);if(l===-1)throw Error("Unclosed tag");return e=l+1,null}let n="";while(i()&&/[a-z0-9-]/i.test(i()))n+=g();if(!n)throw Error("Invalid tag name");let r=n.toLowerCase(),f=u===w||u===q?u:r==="svg"?w:r==="math"?q:null,m=h(n,f),a=f===w&&r==="foreignobject"?null:f;while(i()&&i()!==">"&&i()!=="/"){if(N(),i()===">"||i()==="/")break;let l="";while(i()&&!/[\s/>="']/.test(i()))l+=g();if(!l){g();continue}N();let V="",F=!1;if(i()==="=")if(F=!0,g(),N(),i()==='"'||i()==="'"){let O=g();while(i()&&i()!==O)V+=g();if(i()===O)g()}else while(i()&&!/[\s>]/.test(i()))V+=g();m.setAttribute(l,F?A(V):"")}let C=i()==="/";if(C)g();if(i()===">")g();if(C||["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(r))return m;let U=new Set(["script","style"]),v=new Set(["textarea","title"]);if(U.has(r)||v.has(r)){let l=z(n);if(l)m.appendChild(B(v.has(r)?A(l):l));return D(n),m}let Y=y(r,a);for(let l of Y)I(m,l);return m}function T(){if(i()!=="<")return!1;let u=t[e+1];if(u===void 0)return!1;if(/[a-z]/i.test(u))return!0;if(u==="/")return/[a-z]/i.test(t[e+2]??"");if(u==="!")return t.slice(e+1,e+4)==="!--"||t.slice(e+1,e+9).toUpperCase()==="!DOCTYPE";return!1}function H(){let u="";while(i()&&!T())u+=g();if(!u)return null;return B(A(u))}function y(u,n=null){let r=[];while(e<t.length){if(u&&D(u))break;if(u&&P())break;if(u&&k(u,L()))break;if(T()){let f=G(n);if(f===null)continue;r.push(f)}else{let f=H();if(f)r.push(f)}}return r}return y()}
3
3
  export{Qe,mi,x,p};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{p}from"./chunk-axyyzc2e.js";import"./chunk-d5edpdkj.js";export{p as parseHTML};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{n,E}from"./chunk-d5edpdkj.js";import{L,b}from"./chunk-px4nrdxa.js";function m(e,t){let[o,...s]=e.split(";").map((p)=>p.trim()),r=o.indexOf("="),i=r===-1?o:o.slice(0,r),l=r===-1?"":o.slice(r+1),c={key:i,value:l,originURL:t};for(let p of s){let[d,u=""]=p.split("=").map((a)=>a.trim());switch(d.toLowerCase()){case"domain":c.domain=u.replace(/^\./,"").toLowerCase();break;case"path":c.path=u;break;case"expires":{let a=new Date(u);if(!Number.isNaN(a.getTime()))c.expires=a;break}case"max-age":{let a=Number(u);if(Number.isFinite(a))c.expires=new Date(Date.now()+a*1000);break}case"httponly":c.httpOnly=!0;break;case"secure":c.secure=!0;break;case"samesite":{let a=u.toLowerCase();if(a==="strict"||a==="lax"||a==="none")c.sameSite=a.charAt(0).toUpperCase()+a.slice(1);break}}}return c}function k(e){return e.map((t)=>`${t.key}=${t.value??""}`).join("; ")}class ne{_container;constructor(e){this._container=e??new L}_getContainer(){return this._container}setCookie(e,t,o,s){let r=typeof o==="function"?o:s;try{let i=m(e,t);if(this._container.addCookies([i]),r)return r(null,i);return Promise.resolve(i)}catch(i){if(r)return r(i);return Promise.reject(i)}}getCookies(e,t,o){let s=typeof t==="object"&&t!==null?t:{},r=typeof t==="function"?t:o;try{let i=this._container.getCookies(e,s.http===!0);if(r)return r(null,i);return Promise.resolve(i)}catch(i){if(r)return r(i);return Promise.reject(i)}}getCookieString(e,t){try{let o=k(this._container.getCookies(e));if(t)return t(null,o);return Promise.resolve(o)}catch(o){if(t)return t(o);return Promise.reject(o)}}}import{Buffer as f}from"buffer";class nt{_strictSSL;_proxy;_userAgent;constructor(e={}){this._strictSSL=e.strictSSL??!0,this._proxy=e.proxy,this._userAgent=e.userAgent??"Mozilla/5.0 (VeryHappyDOM)"}get userAgent(){return this._userAgent}fetch(e,t={}){return globalThis.fetch(e,{headers:{"User-Agent":this._userAgent,...t.accept?{Accept:t.accept}:{},...t.referrer?{Referer:t.referrer}:{}}}).then((o)=>o.arrayBuffer()).then((o)=>f.from(o))}}var w=["log","info","warn","error","debug","dir","dirxml","trace","table","group","groupCollapsed","groupEnd","time","timeEnd","timeLog","count","countReset","assert","clear"];class re{_listeners=new Map;_sinks=[];on(e,t){let o=this._listeners.get(e);if(!o)o=new Set,this._listeners.set(e,o);return o.add(t),this}off(e,t){return this._listeners.get(e)?.delete(t),this}removeAllListeners(e){if(e)this._listeners.delete(e);else this._listeners.clear();return this}listeners(e){return Array.from(this._listeners.get(e)??[])}emit(e,...t){let o=this._listeners.get(e),s=!1;if(o&&o.size>0){s=!0;for(let r of o)try{r(...t)}catch{}}for(let r of this._sinks){if(e==="jsdomError"&&r.options.omitJSDOMErrors)continue;let i=r.target[e];if(typeof i==="function")i.apply(r.target,t)}return s}sendTo(e,t={}){return this._sinks.push({target:e,options:t}),this}_asConsole(){let e=this,t={};for(let o of w)t[o]=(...s)=>{e.emit(o,...s)};return t}}class U{window;virtualConsole;cookieJar;constructor(e="",t={}){let{url:o="about:blank",referrer:s,contentType:r="text/html",virtualConsole:i=new re,cookieJar:l=new ne,beforeParse:c,pretendToBeVisual:p=!1,runScripts:d}=t;this.virtualConsole=i,this.cookieJar=l;let u={url:o,console:i._asConsole()};this.window=new b(u);let C=this.window;if(C._cookieJar=l,s)this.window.document.referrer=s;if(r)this.window.document.contentType=r;if(this.window.addEventListener("error",(a)=>{let g=a?.error??a;this.virtualConsole.emit("jsdomError",g)}),d==="outside-only"||d==="dangerously"){let a=this.window;a.eval=globalThis.eval.bind(globalThis),a.Function=globalThis.Function}if(c?.(this.window),this.window.document.readyState="loading",e)this._parse(e,r);if(d==="dangerously")this._executeScripts();queueMicrotask(()=>{this.window.document.readyState="interactive",this.window.document.dispatchEvent(new n("DOMContentLoaded",{bubbles:!0,cancelable:!1})),this.window.document.readyState="complete",this.window.dispatchEvent(new n("load"))})}_executeScripts(){let t=this.window.document.querySelectorAll("script");for(let o of t){if(o.getAttribute("src"))continue;let r=o.getAttribute("type");if(r&&r!=="text/javascript"&&r!=="application/javascript"&&r!=="module")continue;let i=o.textContent??"";if(!i.trim())continue;try{Function("window","document",`with (window) { ${i} }`)(this.window,this.window.document)}catch(l){this.virtualConsole.emit("jsdomError",l)}}}serialize(){let e=this.window.document,t=e.documentElement;if(!t)return"";let o=e.doctype===null?"<!DOCTYPE html>":"",s=t.outerHTML??"";return`${o}${s}`}reconfigure(e){if(e.url!==void 0){let t=this.window;t.location=e.url}}nodeLocation(e){return null}toString(){return this.serialize()}static fragment(e=""){let o=new U().window.document.createElement("template");return o.innerHTML=e,o.content}static async fromURL(e,t={}){let o=await globalThis.fetch(e),s=await o.text(),r=o.headers.get("content-type")??t.contentType;return new U(s,{...t,url:e,contentType:r??void 0})}static async fromFile(e,t={}){let s=await Bun.file(e).text(),r=t.url??`file://${e.startsWith("/")?e:`${process.cwd()}/${e}`}`;return new U(s,{...t,url:r})}_parse(e,t){let o=this.window.document,r=new this.window.DOMParser().parseFromString(e,t);if(r.documentElement)o.documentElement=r.documentElement,o.childNodes=r.childNodes,o.head=r.head,o.body=r.body,E(o.documentElement,o);o.contentType=t}}export{ne,nt,re,U};
2
+ import{n,E}from"./chunk-d5edpdkj.js";import{L,b}from"./chunk-7e10724v.js";function m(e,t){let[o,...s]=e.split(";").map((p)=>p.trim()),r=o.indexOf("="),i=r===-1?o:o.slice(0,r),l=r===-1?"":o.slice(r+1),c={key:i,value:l,originURL:t};for(let p of s){let[d,u=""]=p.split("=").map((a)=>a.trim());switch(d.toLowerCase()){case"domain":c.domain=u.replace(/^\./,"").toLowerCase();break;case"path":c.path=u;break;case"expires":{let a=new Date(u);if(!Number.isNaN(a.getTime()))c.expires=a;break}case"max-age":{let a=Number(u);if(Number.isFinite(a))c.expires=new Date(Date.now()+a*1000);break}case"httponly":c.httpOnly=!0;break;case"secure":c.secure=!0;break;case"samesite":{let a=u.toLowerCase();if(a==="strict"||a==="lax"||a==="none")c.sameSite=a.charAt(0).toUpperCase()+a.slice(1);break}}}return c}function k(e){return e.map((t)=>`${t.key}=${t.value??""}`).join("; ")}class ne{_container;constructor(e){this._container=e??new L}_getContainer(){return this._container}setCookie(e,t,o,s){let r=typeof o==="function"?o:s;try{let i=m(e,t);if(this._container.addCookies([i]),r)return r(null,i);return Promise.resolve(i)}catch(i){if(r)return r(i);return Promise.reject(i)}}getCookies(e,t,o){let s=typeof t==="object"&&t!==null?t:{},r=typeof t==="function"?t:o;try{let i=this._container.getCookies(e,s.http===!0);if(r)return r(null,i);return Promise.resolve(i)}catch(i){if(r)return r(i);return Promise.reject(i)}}getCookieString(e,t){try{let o=k(this._container.getCookies(e));if(t)return t(null,o);return Promise.resolve(o)}catch(o){if(t)return t(o);return Promise.reject(o)}}}import{Buffer as f}from"buffer";class nt{_strictSSL;_proxy;_userAgent;constructor(e={}){this._strictSSL=e.strictSSL??!0,this._proxy=e.proxy,this._userAgent=e.userAgent??"Mozilla/5.0 (VeryHappyDOM)"}get userAgent(){return this._userAgent}fetch(e,t={}){return globalThis.fetch(e,{headers:{"User-Agent":this._userAgent,...t.accept?{Accept:t.accept}:{},...t.referrer?{Referer:t.referrer}:{}}}).then((o)=>o.arrayBuffer()).then((o)=>f.from(o))}}var w=["log","info","warn","error","debug","dir","dirxml","trace","table","group","groupCollapsed","groupEnd","time","timeEnd","timeLog","count","countReset","assert","clear"];class re{_listeners=new Map;_sinks=[];on(e,t){let o=this._listeners.get(e);if(!o)o=new Set,this._listeners.set(e,o);return o.add(t),this}off(e,t){return this._listeners.get(e)?.delete(t),this}removeAllListeners(e){if(e)this._listeners.delete(e);else this._listeners.clear();return this}listeners(e){return Array.from(this._listeners.get(e)??[])}emit(e,...t){let o=this._listeners.get(e),s=!1;if(o&&o.size>0){s=!0;for(let r of o)try{r(...t)}catch{}}for(let r of this._sinks){if(e==="jsdomError"&&r.options.omitJSDOMErrors)continue;let i=r.target[e];if(typeof i==="function")i.apply(r.target,t)}return s}sendTo(e,t={}){return this._sinks.push({target:e,options:t}),this}_asConsole(){let e=this,t={};for(let o of w)t[o]=(...s)=>{e.emit(o,...s)};return t}}class U{window;virtualConsole;cookieJar;constructor(e="",t={}){let{url:o="about:blank",referrer:s,contentType:r="text/html",virtualConsole:i=new re,cookieJar:l=new ne,beforeParse:c,pretendToBeVisual:p=!1,runScripts:d}=t;this.virtualConsole=i,this.cookieJar=l;let u={url:o,console:i._asConsole()};this.window=new b(u);let C=this.window;if(C._cookieJar=l,s)this.window.document.referrer=s;if(r)this.window.document.contentType=r;if(this.window.addEventListener("error",(a)=>{let g=a?.error??a;this.virtualConsole.emit("jsdomError",g)}),d==="outside-only"||d==="dangerously"){let a=this.window;a.eval=globalThis.eval.bind(globalThis),a.Function=globalThis.Function}if(c?.(this.window),this.window.document.readyState="loading",e)this._parse(e,r);if(d==="dangerously")this._executeScripts();queueMicrotask(()=>{this.window.document.readyState="interactive",this.window.document.dispatchEvent(new n("DOMContentLoaded",{bubbles:!0,cancelable:!1})),this.window.document.readyState="complete",this.window.dispatchEvent(new n("load"))})}_executeScripts(){let t=this.window.document.querySelectorAll("script");for(let o of t){if(o.getAttribute("src"))continue;let r=o.getAttribute("type");if(r&&r!=="text/javascript"&&r!=="application/javascript"&&r!=="module")continue;let i=o.textContent??"";if(!i.trim())continue;try{Function("window","document",`with (window) { ${i} }`)(this.window,this.window.document)}catch(l){this.virtualConsole.emit("jsdomError",l)}}}serialize(){let e=this.window.document,t=e.documentElement;if(!t)return"";let o=e.doctype===null?"<!DOCTYPE html>":"",s=t.outerHTML??"";return`${o}${s}`}reconfigure(e){if(e.url!==void 0){let t=this.window;t.location=e.url}}nodeLocation(e){return null}toString(){return this.serialize()}static fragment(e=""){let o=new U().window.document.createElement("template");return o.innerHTML=e,o.content}static async fromURL(e,t={}){let o=await globalThis.fetch(e),s=await o.text(),r=o.headers.get("content-type")??t.contentType;return new U(s,{...t,url:e,contentType:r??void 0})}static async fromFile(e,t={}){let s=await Bun.file(e).text(),r=t.url??`file://${e.startsWith("/")?e:`${process.cwd()}/${e}`}`;return new U(s,{...t,url:r})}_parse(e,t){let o=this.window.document,r=new this.window.DOMParser().parseFromString(e,t);if(r.documentElement)o.documentElement=r.documentElement,o.childNodes=r.childNodes,o.head=r.head,o.body=r.body,E(o.documentElement,o);o.contentType=t}}export{ne,nt,re,U};
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{f,n,l,o,d}from"./chunk-d5edpdkj.js";import{x,p}from"./chunk-2m1ksnrw.js";import{rt,it,ot,qi,st,W,ie,h,oe,q,z,Ae,De,at,lt,ut,ct,dt,se,ht,Pe,mt,ae,Ie,Ei,vi,wi,_i,pt,ft,u,gt,v,M,le,ue,bt,yt,Et,vt,wt,_t,St,Tt,ce,xt,Nt,Ct,O,Vt,Mt,Ot,Rt,Lt,At,Dt,de,Pt,R,zi,Si,he,me,ke,Be,He,Fe,Ti,It,pe,g,kt,xi,L,A,K,Bt,Ge,Ni,Ci,Vi,Mi,Oi,Ri,fe,ge,m,be,Li,Ht,Ft,j,Gt,Ut,Wt,$t,qt,zt,Kt,jt,Yt,Xt,Jt,Qt,Zt,en,tn,nn,rn,on,sn,an,ln,un,cn,dn,hn,mn,pn,fn,gn,bn,yn,En,vn,wn,_n,Sn,Tn,xn,Nn,Cn,Vn,Mn,On,Rn,Ln,An,Y,Dn,Pn,In,kn,Bn,Hn,Fn,Gn,Un,Wn,$n,qn,zn,Kn,jn,Yn,Xn,Jn,X,N,Zi,Qn,Zn,Ai,ye,er,tr,nr,rr,ir,or,sr,ar,lr,ur,cr,dr,hr,mr,pr,fr,gr,br,yr,Er,vr,wr,_r,Sr,Tr,xr,Nr,Cr,Vr,Mr,Or,Rr,Lr,Ar,Dr,Pr,Ir,kr,Br,Hr,Fr,Gr,Ur,Wr,$r,qr,zr,Kr,jr,Yr,Xr,Jr,Qr,Zr,ei,ti,ni,ri,ii,oi,si,ai,li,Ue,ui,b}from"./chunk-px4nrdxa.js";import{I,y,w,Xi,Ji}from"./chunk-w2g7xbfh.js";import{Z,H,ee,we,_e,$e,qe,ze,Ke,je,Ye,Xe,Se,Te,Je,eo,xe,hi,e}from"./chunk-qh4s27j9.js";import{r}from"./chunk-cqrdjb12.js";import{bi}from"./chunk-t1v0nj69.js";import{S,$i,yi}from"./chunk-1rvpej1f.js";import{ve}from"./chunk-stw0qehr.js";import{ne,nt,re,U}from"./chunk-xh74szba.js";import{Le}from"./chunk-1tdmzj7n.js";import{B,Ee,Di,Pi,J,C,Ki,Ii,We,Q,s,Bi,Hi,Fi,P}from"./chunk-m0c56871.js";import{Gi}from"./chunk-a5gtqx99.js";var Io=new Map([["control",{flag:"ctrlKey",key:"Control"}],["ctrl",{flag:"ctrlKey",key:"Control"}],["controlormeta",{flag:"ctrlKey",key:"Control"}],["shift",{flag:"shiftKey",key:"Shift"}],["alt",{flag:"altKey",key:"Alt"}],["option",{flag:"altKey",key:"Alt"}],["meta",{flag:"metaKey",key:"Meta"}],["cmd",{flag:"metaKey",key:"Meta"}],["command",{flag:"metaKey",key:"Meta"}]]),Xo=new Map([["enter","Enter"],["tab","Tab"],["escape","Escape"],["esc","Escape"],["backspace","Backspace"],["delete","Delete"],["insert","Insert"],["arrowup","ArrowUp"],["arrowdown","ArrowDown"],["arrowleft","ArrowLeft"],["arrowright","ArrowRight"],["home","Home"],["end","End"],["pageup","PageUp"],["pagedown","PageDown"],["capslock","CapsLock"],["contextmenu","ContextMenu"],["shift","ShiftLeft"],["control","ControlLeft"],["alt","AltLeft"],["meta","MetaLeft"]]),Jo=new Map([[" ","Space"],["-","Minus"],["=","Equal"],["[","BracketLeft"],["]","BracketRight"],[";","Semicolon"],["'","Quote"],["`","Backquote"],["\\","Backslash"],[",","Comma"],[".","Period"],["/","Slash"]]);function vo(t){let i=Xo.get(t.toLowerCase());if(i)return i;let a=/^f([1-9]|1[0-9]|2[0-4])$/i.exec(t);if(a)return`F${a[1]}`;if(t.length===1){if(/[a-z]/i.test(t))return`Key${t.toUpperCase()}`;if(/\d/.test(t))return`Digit${t}`;let c=Jo.get(t);if(c)return c}return""}function _o(t){return Io.get(t.toLowerCase())?.flag??null}function to(t){return Io.get(t.toLowerCase())?.key??null}function Eo(t){if(t==="+")return{held:[],key:"+"};let i=t.split("+"),a=[],c=0;while(c<i.length-1){let E=to(i[c]);if(!E)break;a.push(E),c++}let _=i.slice(c).join("+");return{held:a,key:_===""?"+":_}}function xo(t,i){if(!i||t.length!==1||!/[a-z]/.test(t))return t;return t.toUpperCase()}import{Buffer as Ro}from"buffer";class lo{_enabled=!1;_handlers=new Set;_requestObservers=new Set;_observers=new Set;_originalFetch;constructor(){this._originalFetch=globalThis.fetch}get enabled(){return this._enabled}enable(){if(this._enabled)return;this._enabled=!0;let t=this,i=async function(a,c){let _=typeof a==="string"?a:a instanceof URL?a.href:a.url,E=c?.method||"GET",T={};if(c?.headers)if(c.headers instanceof Headers)c.headers.forEach((Me,Qe)=>{T[Qe]=Me});else if(Array.isArray(c.headers))c.headers.forEach(([Me,Qe])=>{T[Me]=Qe});else Object.assign(T,c.headers);let F=!1,V=!1,D=null,k={},G={url:_,method:E,headers:T,postData:c?.body?String(c.body):null,resourceType:"fetch",continue(Me={}){k=Me},abort(Me="failed"){F=!0},respond(Me){V=!0,D=new Response(Me.body,{status:Me.status,headers:Me.headers}),Object.defineProperty(D,"url",{value:_,configurable:!0})}};t._announceRequest(G);for(let Me of t._handlers)await Me(G);if(F)throw Error("Request aborted");let te=(Me)=>(t._announce(Me,G),Me);if(V&&D)return te(D);let Re=k.url||_,Ce=k.method||E,Oe=k.headers||T,Ve=k.postData!==void 0?k.postData:c?.body;return te(await t._originalFetch(Re,{...c,method:Ce,headers:Oe,body:Ve}))};Object.assign(i,{preconnect:()=>{}}),globalThis.fetch=i}disable(){if(!this._enabled)return;this._enabled=!1,globalThis.fetch=this._originalFetch}addHandler(t){this._handlers.add(t)}removeHandler(t){this._handlers.delete(t)}clear(){this._handlers.clear()}addRequestObserver(t){this._requestObservers.add(t)}removeRequestObserver(t){this._requestObservers.delete(t)}addResponseObserver(t){this._observers.add(t)}removeResponseObserver(t){this._observers.delete(t)}_announce(t,i){for(let a of this._observers)try{a(t,i)}catch{}}_announceRequest(t){for(let i of this._requestObservers)try{i(t)}catch{}}}function Yo(t){let i="";for(let a=0;a<t.length;a++){let c=t[a];if(c==="*"){if(t[a+1]==="*")i+=".*",a++;else i+="[^/]*";continue}if(c==="?"){i+="[^/]";continue}i+=c.replace(/[.+^${}()|[\]\\]/g,"\\$&")}return new RegExp(`^${i}$`)}function co(t,i){if(typeof t==="function")return t(i);if(t instanceof RegExp)return t.test(i);return Yo(t).test(i)}class ro{_routes=[];get size(){return this._routes.length}add(t,i){this._routes.unshift({pattern:t,handler:i})}remove(t,i){if(t===void 0){this._routes=[];return}this._routes=this._routes.filter((a)=>{if(!(typeof t==="string"&&typeof a.pattern==="string"?a.pattern===t:a.pattern===t))return!0;return i!==void 0&&a.handler!==i})}matching(t){return this._routes.filter((i)=>co(i.pattern,t))}}var So="about:blank";class uo{window;document;_page;_parentFrame=null;_childFrames=[];_content="";_history=[So];_historyIndex=0;_navigations=[];_deviceBaseline={};constructor(t,i=null){this._page=t,this._parentFrame=i;let{width:a,height:c}=t.viewport;this.window=new b({url:So,width:a,height:c,console:t.console,settings:t.context?.browser?.settings}),this._deviceBaseline={...this.window._settings?.device??{}},this._forwardConsole(),this._installDialogs(),this.document=this.window.document,this._adoptContextState()}_adoptContextState(){let t=this._page.context;if(!t)return;if(t.cookieContainer)this.document._setCookieContainer?.(t.cookieContainer);this._syncOriginStorage()}_syncOriginStorage(){let i=this._page.context?._storageForOrigin?.(this.window.location.origin);if(i)this.window.localStorage=i}_applyEmulation(){let i=this._page.context?._emulation?.();if(!i)return;let a=this.window.navigator;if(i.permissions!==null)a?.permissions?._clearGrants?.(),a?.permissions?._grant?.(i.permissions);if(a?.geolocation?._setPosition?.(i.geolocation),a)a.onLine=!i.offline;let c=this.window._settings?.device;if(c&&i.media){let _=this._deviceBaseline;c.prefersColorScheme=i.media.colorScheme??_.prefersColorScheme??"light",c.prefersReducedMotion=i.media.reducedMotion??_.prefersReducedMotion??"no-preference",c.forcedColors=i.media.forcedColors??_.forcedColors??"none",c.mediaType=i.media.type??_.mediaType??"screen"}}_runInitScripts(){let t=this._page.context;for(let i of t?._initScriptSources?.()??[])try{this.evaluate(i)}catch{}}get childFrames(){return this._childFrames}get parentFrame(){return this._parentFrame}get page(){return this._page}get content(){return this.document.documentElement?.outerHTML||""}set content(t){this._content=t,this.document.documentElement.innerHTML=t}get url(){return this.window.location.href}set url(t){this.window.happyDOM.setURL(t),this._syncOriginStorage()}setViewport(t){this.window.happyDOM.setViewport(t)}async waitUntilComplete(){await this.window.happyDOM.waitUntilComplete()}async waitForNavigation(){await new Promise((t)=>{this._navigations.push(t)})}_announceNavigation(){let t=this._navigations;this._navigations=[];for(let i of t)i()}async abort(){await this.window.happyDOM.abort(),this._announceNavigation()}evaluate(t,i){return this._evaluateWith(t,[i])}_evaluateWith(t,i){if(typeof t==="function")return Function("window","document","args",`with (window) { return (${t.toString()})(...args) }`)(this.window,this.document,i);let c=Function("window","document","args",`with (window) { return (${t}) }`)(this.window,this.document,i);return typeof c==="function"?c(...i):c}setContent(t){this._commit(this.url,t,!1)}async goto(t,i={}){return await this._navigate(this._resolve(t),{push:!0,referer:i.referer})}async reload(){return await this._navigate(this.url,{push:!1})}async goBack(){return await this.goSteps(-1)}async goForward(){return await this.goSteps(1)}async goSteps(t){let i=this._historyIndex+t;if(t===0||i<0||i>=this._history.length)return null;return this._historyIndex=i,await this._navigate(this._history[i],{push:!1})}_resolve(t){try{return new URL(t,this.url===So?void 0:this.url).href}catch{return t}}_isFetchable(t){return/^https?:/i.test(t)}_installDialogs(){let t=this.window,i=this._page;t.alert=(a)=>{i._requestDialog("alert",String(a??""))},t.confirm=(a)=>i._requestDialog("confirm",String(a??"")).accepted,t.prompt=(a,c)=>{let _=c===void 0?"":String(c),E=i._requestDialog("prompt",String(a??""),_);return E.accepted?E.text??_:null}}_forwardConsole(){let t=this.window,i=t.console;if(!i)return;let a=this._page,c=Object.create(i);for(let _ of["log","info","warn","error","debug","trace"])c[_]=(...E)=>{a._emitConsole(_,...E),i[_]?.(...E)};t.console=c}async _navigate(t,i){if(!this._isFetchable(t))return this._commit(t,"",i.push),null;let a=this._page.context;if(a?._emulation?.().offline){let V=Error(`net::ERR_INTERNET_DISCONNECTED at ${t}`);throw this._page._emitError(V),V}let c;try{c=await fetch(t,{headers:{...a?._extraHTTPHeaders?.()??{},...i.referer?{referer:i.referer}:{}}})}catch(V){throw this._page._emitError(V instanceof Error?V:Error(String(V))),V}let _=c.headers.get("content-type")??"",E=c.url||t;if(!c.url)Object.defineProperty(c,"url",{value:E,configurable:!0});this._page._emitResponse(c);let F=_===""||/\b(?:html|xml)\b/i.test(_)?await c.clone().text():"";return this._commit(E,F,i.push),c}_documentElementAttributes(t){let i=/<html\b([^>]*)>/i.exec(t.replace(/^\s*<!doctype[^>]*>/i,""));if(!i)return[];let a=[];for(let c of i[1].matchAll(/([a-z_:][\w:.-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/gi))a.push([c[1],c[2]??c[3]??c[4]??""]);return a}_asDocumentMarkup(t){let i=t.replace(/^\s*<!doctype[^>]*>/i,"").trim(),a=/^<html\b[^>]*>([\s\S]*)<\/html\s*>$/i.exec(i);if(a)i=a[1];if(/<(?:html|body|head)\b/i.test(i))return i;return`<head></head><body>${i}</body>`}_commit(t,i,a){let c=this.document;if(c.readyState="loading",this.url=t,a)this._history=[...this._history.slice(0,this._historyIndex+1),t],this._historyIndex=this._history.length-1;else this._history[this._historyIndex]=t;c.documentElement.innerHTML=this._asDocumentMarkup(i);for(let[_,E]of this._documentElementAttributes(i))c.documentElement.setAttribute?.(_,E);this._content=i,this._runInitScripts(),c.readyState="interactive",this._page.emit("domcontentloaded",this._page),c.dispatchEvent?.(new this.window.Event("DOMContentLoaded",{bubbles:!0})),c.readyState="complete",this._page.emit("load",this._page),this.window.dispatchEvent?.(new this.window.Event("load")),this._announceNavigation()}}class ho{type;message;defaultValue;_settled=!1;_accepted=!1;_text=null;constructor(t,i,a=""){this.type=t;this.message=i;this.defaultValue=a}async accept(t){this._decide(!0,t??this.defaultValue)}async dismiss(){this._decide(!1,null)}_decide(t,i){if(this._settled)return;this._settled=!0,this._accepted=t,this._text=i}get _wasSettled(){return this._settled}_outcome(){return{accepted:this._accepted,text:this._text}}}function Qo(t,i,a){if(typeof a==="string")return String(t.value??"")===a;if(a.index!==void 0)return i===a.index;if(a.value!==void 0)return String(t.value??"")===a.value;if(a.label!==void 0){let c=t.getAttribute?.("label")??t.textContent??"";return String(c).replace(/\s+/g," ").trim()===a.label}return!1}var Uo=Symbol("very-happy-dom.responseAnnounced");function Oo(t,i){if(typeof t==="function")return t(i)===!0;return co(t,String(i?.url??""))}class fo{mainFrame;console;virtualConsolePrinter=null;_context;_viewport;_frames=[];_eventListeners=new Map;_requestInterceptor=new lo;_heldModifiers=new Set;_explicitInterception=!1;_routingHandler=async(t)=>{await this._runRoutes(t)};_routes=new ro;_routingInstalled=!1;_defaultTimeout=null;constructor(t){this._context=t,this._viewport={width:1024,height:768},this.console=t?.browser?.console??globalThis.console,this.mainFrame=new uo(this),this._frames.push(this.mainFrame),this._requestInterceptor.addRequestObserver((i)=>{this._emitRequest(i)}),this._requestInterceptor.addResponseObserver((i)=>{this._emitResponse(i)})}get context(){return this._context}get viewport(){return this._viewport}get frames(){return this._frames}get content(){return this.mainFrame.content}set content(t){this.mainFrame.content=t}get url(){return this.mainFrame.url}set url(t){this.mainFrame.url=t}async close(){await this.abort(),this._context._removePage(this)}async waitUntilComplete(){await Promise.all(this._frames.map((t)=>t.waitUntilComplete()))}async waitForNavigation(){await this.mainFrame.waitForNavigation()}async abort(){await Promise.all(this._frames.map((t)=>t.abort()))}_evaluateWith(t,i){return this.mainFrame._evaluateWith(t,i)}evaluate(t,i){return this.mainFrame.evaluate(t,i)}setViewport(t){this._viewport={...t};for(let i of this._frames)i.setViewport(this._viewport)}async goto(t,i={}){return await this.mainFrame.goto(t,i)}async goBack(){return await this.mainFrame.goBack()}async goForward(){return await this.mainFrame.goForward()}async goSteps(t){return await this.mainFrame.goSteps(t)}async reload(){return await this.mainFrame.reload()}_applyEmulation(){for(let t of this._frames)t._applyEmulation?.()}_runInitScripts(){for(let t of this._frames)t._runInitScripts?.()}setDefaultTimeout(t){this._defaultTimeout=t}async setContent(t){this.mainFrame.setContent(t)}async emulateMedia(t={}){await this._context?.emulateMedia?.(t)}_defaultTimeoutMs(){return this._defaultTimeout??this._context?._timeout?.()??30000}async waitForSelector(t,i={}){let a=i.state??(i.visible?"visible":"attached"),c=i.timeout??this._defaultTimeoutMs();return Q(()=>{let _=this.mainFrame.document.querySelector(t);if(a==="detached")return _?{done:!1,reason:"the element was still attached"}:{done:!0,value:null};if(a==="hidden"){if(!_)return{done:!0,value:null};return this._isRendered(_)?{done:!1,reason:"the element was still visible"}:{done:!0,value:_}}if(!_)return{done:!1,reason:"no element matched"};if(a==="visible"&&!this._isRendered(_))return{done:!1,reason:"an element matched, but it was hidden"};return{done:!0,value:_}},{timeout:c,describe:(_)=>`Timed out ${c}ms waiting for selector ${JSON.stringify(t)} to be ${a}: ${_}`})}async waitForFunction(t,i={}){let a=i.timeout??this._defaultTimeoutMs();return Q(()=>{let c=this.evaluate(t);return c?{done:!0,value:c}:{done:!1,reason:`it last returned ${JSON.stringify(c)??String(c)}`}},{timeout:a,describe:(c)=>`Timed out ${a}ms waiting for the function to return a truthy value: ${c}`})}async waitForTimeout(t){await new Promise((i)=>setTimeout(i,t))}async waitForEvent(t,i={}){let a=typeof i==="function"?{predicate:i}:i,c=a.timeout??this._defaultTimeoutMs(),_,E,T=new Promise((k,G)=>{_=k,E=G}),F=0,V=(k)=>{F++;try{if(a.predicate&&!a.predicate(k))return}catch(G){E(G instanceof Error?G:Error(String(G)));return}_(k)};this.on(t,V);let D=setTimeout(()=>{let k=F===0?`no ${t} event fired`:`${F} ${t} event(s) fired, none matched`;E(new We(`Timed out ${c}ms waiting for a ${t} event: ${k}. `+"Subscribe before the action that triggers it \u2014 "+"await Promise.all([page.waitForEvent(...), action()]) \u2014 as an event that has already fired is not replayed."))},c);try{return await T}finally{clearTimeout(D),this.off(t,V)}}async waitForResponse(t,i={}){return this.waitForEvent("response",{timeout:i.timeout,predicate:(a)=>Oo(t,a)})}async waitForRequest(t,i={}){if(!this._requestInterceptor.enabled)throw Error("waitForRequest() needs request interception, which nothing has turned on. "+"Call page.route(...) or page.setRequestInterception(true) first \u2014 without it no request event is ever emitted.");return this.waitForEvent("request",{timeout:i.timeout,predicate:(a)=>Oo(t,a)})}async waitForLoadState(t="load",i={}){if(t!=="load"&&t!=="domcontentloaded")throw Error(`waitForLoadState('${String(t)}') is not supported: only 'load' and 'domcontentloaded' can be reported. Nothing tracks in-flight requests, so there is no honest answer for networkidle.`);if((t==="load"?["complete"]:["interactive","complete"]).includes(String(this.mainFrame.document.readyState)))return;await this.waitForEvent(t,{timeout:i.timeout})}async waitForURL(t,i={}){await Q(()=>{let a=this.url;return(typeof t==="function"?t(a)===!0:co(t,a))?{done:!0,value:void 0}:{done:!1,reason:`the URL was ${JSON.stringify(a)}`}},{timeout:i.timeout??this._defaultTimeoutMs(),describe:(a)=>`Timed out waiting for the URL to match ${String(t)}: ${a}`})}_element(t){let i=this.mainFrame.document.querySelector(t);if(!i)throw Error(`Element not found: ${t}`);return i}_isValueField(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"}_readField(t){return this._isValueField(t)?String(t.value??""):String(t.textContent??"")}_writeField(t,i){if(this._isValueField(t))t.value=i;else t.textContent=i}_dispatch(t,i,a,c={}){let _=this.mainFrame.window,E=_[a]??_.Event;t.dispatchEvent?.(new E(i,{bubbles:!0,...c}))}async click(t,i={}){let a=this._element(t);if(i.delay)await this.waitForTimeout(i.delay);a.focus?.(),a.click?.()}async type(t,i,a={}){await this._typeIntoElement(this._element(t),i,a)}async _typeIntoElement(t,i,a={}){let c=a.delay||0;t.focus?.();for(let _ of i)if(this._dispatch(t,"keydown","KeyboardEvent",{key:_}),this._dispatch(t,"beforeinput","InputEvent",{data:_,inputType:"insertText"}),this._writeField(t,this._readField(t)+_),this._dispatch(t,"input","InputEvent",{data:_,inputType:"insertText"}),this._dispatch(t,"keyup","KeyboardEvent",{key:_}),c>0)await this.waitForTimeout(c)}async fill(t,i){await this._fillElement(this._element(t),i)}async _selectOptions(t,i){let a=String(t.tagName??"").toUpperCase();if(a!=="SELECT")throw Error(`selectOption() expects a <select>, not <${a.toLowerCase()||"unknown"}>`);if(i.length>1&&!t.hasAttribute?.("multiple"))throw Error(`selectOption() was given ${i.length} values, but this <select> is not multiple. Add the multiple attribute, or pass one value.`);let c=Array.from(t.querySelectorAll?.("option")??[]);for(let E of c)E.selected=!1;let _=[];for(let E of i){let T=c.find((F,V)=>Qo(F,V,E));if(!T)throw Error(`selectOption() found no <option> matching ${JSON.stringify(E)}`);T.selected=!0,_.push(T)}return t.focus?.(),this._dispatch(t,"input","InputEvent",{inputType:"insertReplacementText"}),this._dispatch(t,"change","Event"),_.map((E)=>String(E.value??""))}async _setInputFiles(t,i){let a=String(t.tagName??"").toUpperCase(),c=String(t.getAttribute?.("type")??"").toLowerCase();if(a!=="INPUT"||c!=="file")throw Error(`setInputFiles() expects an <input type="file">, not <${a.toLowerCase()||"unknown"} type="${c}">`);if(i.length>1&&!t.hasAttribute?.("multiple"))throw Error(`setInputFiles() was given ${i.length} files, but this input is not multiple. Add the multiple attribute, or pass one file.`);let _=this.mainFrame.window,E=[];for(let T of i){if(typeof T==="string"){let F=Bun.file(T),V=new Uint8Array(await F.arrayBuffer());E.push(new _.File([V],T.split("/").pop()??T,{type:F.type||""}));continue}E.push(new _.File([T.buffer],T.name,{type:T.mimeType??""}))}t.files=new _.FileList(E),t.focus?.(),this._dispatch(t,"input","InputEvent",{inputType:"insertReplacementText"}),this._dispatch(t,"change","Event")}async _dblclickElement(t){t.focus?.(),t.click?.(),t.click?.(),this._dispatch(t,"dblclick","MouseEvent",{detail:2})}async _fillElement(t,i){t.focus?.(),this._dispatch(t,"beforeinput","InputEvent",{data:i,inputType:"insertReplacementText"}),this._writeField(t,i),this._dispatch(t,"input","InputEvent",{data:i,inputType:"insertReplacementText"}),this._dispatch(t,"change","Event")}async selectOption(t,i){let a=i===null?[]:Array.isArray(i)?i:[i];return this._selectOptions(this._element(t),a)}async setInputFiles(t,i){let a=i===null?[]:Array.isArray(i)?i:[i];await this._setInputFiles(this._element(t),a)}async press(t,i,a={}){this._element(t).focus?.(),await this.keyboard.press(i,a)}async clear(t){await this._fillElement(this._element(t),"")}async dblclick(t){await this._dblclickElement(this._element(t))}async check(t){let i=this._element(t);if(!C(i))i.focus?.(),i.click?.()}async uncheck(t){let i=this._element(t);if(C(i))i.focus?.(),i.click?.()}async focus(t){this._element(t).focus?.()}async blur(t){this._element(t).blur?.()}async hover(t){await this._hoverElement(this._element(t))}async _hoverElement(t){this._dispatch(t,"mouseover","MouseEvent"),t.dispatchEvent?.(new(this.mainFrame.window.MouseEvent??this.mainFrame.window.Event)("mouseenter",{bubbles:!1}))}get keyboard(){return{press:async(t,i={})=>{let{delay:a=0}=i,{held:c,key:_}=Eo(t);for(let E of c)await this.keyboard.down(E);if(await this.keyboard.down(_),a>0)await this.waitForTimeout(a);await this.keyboard.up(_);for(let E of[...c].reverse())await this.keyboard.up(E)},down:async(t)=>{let i=to(t);if(i)this._heldModifiers.add(i);let a=i??t,c=this._keyboardTarget();if(this._dispatchKey(c,"keydown",a),i)return;this._insertForKey(c,a)},up:async(t)=>{let i=to(t);if(i)this._heldModifiers.delete(i);this._dispatchKey(this._keyboardTarget(),"keyup",i??t)},type:async(t,i={})=>{for(let a of t)await this.keyboard.press(a,i)}}}_keyboardTarget(){let t=this.mainFrame.document;return t.activeElement??t}_modifierState(){let t={ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1};for(let i of this._heldModifiers){let a=_o(i);if(a)t[a]=!0}return t}_dispatchKey(t,i,a){let c=xo(a,this._heldModifiers.has("Shift"));this._dispatch(t,i,"KeyboardEvent",{key:c,code:vo(a),...this._modifierState()})}_insertForKey(t,i){let a=this.mainFrame.document;if(!(t!==a&&(this._isValueField(t)||t.isContentEditable)))return;let _=this._modifierState();if(_.ctrlKey||_.altKey||_.metaKey)return;let E=xo(i,_.shiftKey);if(E.length===1){this._dispatch(t,"beforeinput","InputEvent",{data:E,inputType:"insertText"}),this._writeField(t,this._readField(t)+E),this._dispatch(t,"input","InputEvent",{data:E,inputType:"insertText"});return}if(i==="Backspace"){let T=this._readField(t);if(T.length===0)return;this._dispatch(t,"beforeinput","InputEvent",{inputType:"deleteContentBackward"}),this._writeField(t,T.slice(0,-1)),this._dispatch(t,"input","InputEvent",{inputType:"deleteContentBackward"})}}get mouse(){return{click:async(t,i,a={})=>{let{delay:c=0}=a,_=this.mainFrame.document;if(this._dispatch(_,"mousedown","MouseEvent",{clientX:t,clientY:i}),this._dispatch(_,"mouseup","MouseEvent",{clientX:t,clientY:i}),this._dispatch(_,"click","MouseEvent",{clientX:t,clientY:i}),c>0)await this.waitForTimeout(c)},move:async(t,i)=>{this._dispatch(this.mainFrame.document,"mousemove","MouseEvent",{clientX:t,clientY:i})}}}_testId="data-testid";setTestIdAttribute(t){this._testId=t}_testIdAttribute(){return this._testId}_locatorRoot(){return this.mainFrame.document}locator(t){return new s(this,(i)=>Array.from((i??this._locatorRoot()).querySelectorAll?.(t)??[]),`locator(${JSON.stringify(t)})`)}getByRole(t,i={}){return new s(this,(a)=>Bi(a??this._locatorRoot(),t,i),`getByRole(${JSON.stringify(t)})`)}getByText(t,i={}){return new s(this,(a)=>Hi(a??this._locatorRoot(),t,i),`getByText(${String(t)})`)}getByLabel(t,i={}){return new s(this,(a)=>Fi(a??this._locatorRoot(),t,i),`getByLabel(${String(t)})`)}getByPlaceholder(t,i={}){return new s(this,(a)=>P(a??this._locatorRoot(),"placeholder",t,i),`getByPlaceholder(${String(t)})`)}getByAltText(t,i={}){return new s(this,(a)=>P(a??this._locatorRoot(),"alt",t,i),`getByAltText(${String(t)})`)}getByTitle(t,i={}){return new s(this,(a)=>P(a??this._locatorRoot(),"title",t,i),`getByTitle(${String(t)})`)}getByTestId(t){return new s(this,(i)=>P(i??this._locatorRoot(),this._testId,t,{exact:!0}),`getByTestId(${String(t)})`)}async $eval(t,i,a){return this.locator(t).first().evaluate(i,a)}async $$eval(t,i,a){return this.locator(t).evaluateAll(i,a)}async title(){return this.mainFrame.document.title??""}async textContent(t){return this._element(t).textContent??null}async innerText(t){return String(this._element(t).innerText??"")}async innerHTML(t){return String(this._element(t).innerHTML??"")}async inputValue(t){let i=this._element(t),a=i.tagName;if(a!=="INPUT"&&a!=="TEXTAREA"&&a!=="SELECT")throw Error(`Not a form field: ${t} is <${String(a).toLowerCase()}>`);return String(i.value??"")}async getAttribute(t,i){return this._element(t).getAttribute?.(i)??null}async isVisible(t){let i=this.mainFrame.document.querySelector(t);if(!i)return!1;return this._isRendered(i)}async isHidden(t){return!await this.isVisible(t)}async isChecked(t){return C(this._element(t))}async isEnabled(t){return this._element(t).disabled!==!0}async isDisabled(t){return this._element(t).disabled===!0}async isEditable(t){let i=this._element(t);if(i.isContentEditable===!0)return!0;let a=i.tagName;if(a!=="INPUT"&&a!=="TEXTAREA"&&a!=="SELECT")return!1;return i.disabled!==!0&&i.readOnly!==!0}_isRendered(t){if(t.isConnected===!1)return!1;return Gi(t)}on(t,i){if(!this._eventListeners.has(t))this._eventListeners.set(t,new Set);this._eventListeners.get(t).add(i)}off(t,i){let a=this._eventListeners.get(t);if(a)a.delete(i)}emit(t,i){let a=this._eventListeners.get(t);if(a)for(let c of a)c(i);if(t==="console"&&this.virtualConsolePrinter)this.virtualConsolePrinter(i.type,...i.args)}_requestDialog(t,i,a=""){let c=this._eventListeners.get("dialog");if(!c||c.size===0)return{accepted:!1,text:null};let _=new ho(t,i,a),E=!1;for(let T of c)if(typeof T(_)?.then==="function")E=!0;if(!_._wasSettled&&E)throw Error(`A page.on('dialog') handler for ${t}() did not decide before returning. Dialogs are synchronous, so call dialog.accept() or dialog.dismiss() before the handler awaits anything.`);return _._outcome()}_emitConsole(t,...i){this.emit("console",{type:t,args:i})}_emitRequest(t){this.emit("request",t)}_emitResponse(t){if(t!==null&&typeof t==="object"){if(t[Uo]===!0)return;try{Object.defineProperty(t,Uo,{value:!0,configurable:!0})}catch{}}this.emit("response",t)}_emitError(t){this.emit("error",t)}async dragAndDrop(t,i,a={}){let c=this.mainFrame.document.querySelector(t),_=this.mainFrame.document.querySelector(i);if(!c||!_)throw Error("Source or target element not found");let E=new this.mainFrame.window.Event("dragstart",{bubbles:!0});if(c.dispatchEvent?.(E),a.delay)await this.waitForTimeout(a.delay);let T=new this.mainFrame.window.Event("drop",{bubbles:!0});_.dispatchEvent?.(T);let F=new this.mainFrame.window.Event("dragend",{bubbles:!0});c.dispatchEvent?.(F)}async route(t,i){this._routes.add(t,i),this._syncInterception()}async unroute(t,i){this._routes.remove(t,i),this._syncInterception()}_syncRouting(){this._syncInterception()}_hasRoutes(){let t=this._context?._routeRegistry?.size??0;return this._routes.size>0||t>0}_syncInterception(){if(!this._explicitInterception&&!this._hasRoutes()){this._requestInterceptor.disable(),this._requestInterceptor.removeHandler(this._routingHandler),this._routingInstalled=!1;return}if(!this._routingInstalled)this._routingInstalled=!0,this._requestInterceptor.addHandler(this._routingHandler);this._requestInterceptor.enable()}_matchingRoutes(t){let i=this._context?._routeRegistry?.matching?.(t)??[];return[...this._routes.matching(t),...i]}async _runRoutes(t){let i=this._matchingRoutes(t.url);if(i.length===0)return;let a={url:t.url,method:t.method,headers:{...t.headers},postData:t.postData??null,resourceType:t.resourceType??"fetch"};for(let c of i){let _=!1,E={request:()=>a,fulfill:async(T={})=>{let F=T.json!==void 0,V=F?JSON.stringify(T.json):T.body??"",D=T.contentType??(F?"application/json":void 0);t.respond({status:T.status??200,headers:{...D?{"content-type":D}:{},...T.headers},body:V})},abort:async(T="failed")=>{t.abort(T)},continue:async(T={})=>{t.continue(T)},fetch:async()=>await fetch(a.url,{method:a.method,headers:a.headers,body:a.postData??void 0}),fallback:async()=>{_=!0}};if(await c.handler(E,a),!_)return}}async setRequestInterception(t){this._explicitInterception=t,this._syncInterception()}async screenshot(t={}){let{type:i="png",quality:a=100,fullPage:c=!1,encoding:_="binary",useWebView:E}=t;if(E){let{WebViewCapture:V}=await import("./screenshot/webview.js"),D=typeof E==="object"?E:{},k=this.virtualConsolePrinter,G=D.console??(k?(Re)=>{let Ce=Re;k(Ce?.type??"log",...Ce?.args??[Re])}:void 0),te=new V;try{let Re=this._realPageUrl(),Ce={width:this._viewport.width,height:this._viewport.height,format:i,quality:a,encoding:_==="base64"?"base64":"buffer",...D,console:G};return Re?await te.captureUrl(Re,Ce):await te.captureHtml(this.content,Ce)}finally{te.dispose()}}let T=this.content,F=this._generateSVG(T);if(_==="base64")return Ro.from(F).toString("base64");return Ro.from(F)}_realPageUrl(){let t=this.url;if(!t||t==="about:blank"||t.startsWith("data:"))return null;return/^[a-z][\w+.-]*:/i.test(t)?t:null}async pdf(t={}){let{scale:i=1,displayHeaderFooter:a=!1,printBackground:c=!1,landscape:_=!1,format:E="A4"}=t,T=this.content,F=this._generatePDF(T);return Ro.from(F)}_generateSVG(t){let i=this._viewport.width,a=this._viewport.height;return`<?xml version="1.0" encoding="UTF-8"?>
2
+ import{f,n,l,o,d}from"./chunk-d5edpdkj.js";import{x,p}from"./chunk-axyyzc2e.js";import{rt,it,ot,qi,st,W,ie,h,oe,q,z,Ae,De,at,lt,ut,ct,dt,se,ht,Pe,mt,ae,Ie,Ei,vi,wi,_i,pt,ft,u,gt,v,M,le,ue,bt,yt,Et,vt,wt,_t,St,Tt,ce,xt,Nt,Ct,O,Vt,Mt,Ot,Rt,Lt,At,Dt,de,Pt,R,zi,Si,he,me,ke,Be,He,Fe,Ti,It,pe,g,kt,xi,L,A,K,Bt,Ge,Ni,Ci,Vi,Mi,Oi,Ri,fe,ge,m,be,Li,Ht,Ft,j,Gt,Ut,Wt,$t,qt,zt,Kt,jt,Yt,Xt,Jt,Qt,Zt,en,tn,nn,rn,on,sn,an,ln,un,cn,dn,hn,mn,pn,fn,gn,bn,yn,En,vn,wn,_n,Sn,Tn,xn,Nn,Cn,Vn,Mn,On,Rn,Ln,An,Y,Dn,Pn,In,kn,Bn,Hn,Fn,Gn,Un,Wn,$n,qn,zn,Kn,jn,Yn,Xn,Jn,X,N,Zi,Qn,Zn,Ai,ye,er,tr,nr,rr,ir,or,sr,ar,lr,ur,cr,dr,hr,mr,pr,fr,gr,br,yr,Er,vr,wr,_r,Sr,Tr,xr,Nr,Cr,Vr,Mr,Or,Rr,Lr,Ar,Dr,Pr,Ir,kr,Br,Hr,Fr,Gr,Ur,Wr,$r,qr,zr,Kr,jr,Yr,Xr,Jr,Qr,Zr,ei,ti,ni,ri,ii,oi,si,ai,li,Ue,ui,b}from"./chunk-7e10724v.js";import{I,y,w,Xi,Ji}from"./chunk-w2g7xbfh.js";import{Z,H,ee,we,_e,$e,qe,ze,Ke,je,Ye,Xe,Se,Te,Je,eo,xe,hi,e}from"./chunk-4rkv71j2.js";import{r}from"./chunk-14m9hw4k.js";import{bi}from"./chunk-t1v0nj69.js";import{S,$i,yi}from"./chunk-1rvpej1f.js";import{ve}from"./chunk-stw0qehr.js";import{ne,nt,re,U}from"./chunk-yh7sqskw.js";import{Le}from"./chunk-65zj7vm5.js";import{B,Ee,Di,Pi,J,C,Ki,Ii,We,Q,s,Bi,Hi,Fi,P}from"./chunk-m0c56871.js";import{Gi}from"./chunk-a5gtqx99.js";var Io=new Map([["control",{flag:"ctrlKey",key:"Control"}],["ctrl",{flag:"ctrlKey",key:"Control"}],["controlormeta",{flag:"ctrlKey",key:"Control"}],["shift",{flag:"shiftKey",key:"Shift"}],["alt",{flag:"altKey",key:"Alt"}],["option",{flag:"altKey",key:"Alt"}],["meta",{flag:"metaKey",key:"Meta"}],["cmd",{flag:"metaKey",key:"Meta"}],["command",{flag:"metaKey",key:"Meta"}]]),Xo=new Map([["enter","Enter"],["tab","Tab"],["escape","Escape"],["esc","Escape"],["backspace","Backspace"],["delete","Delete"],["insert","Insert"],["arrowup","ArrowUp"],["arrowdown","ArrowDown"],["arrowleft","ArrowLeft"],["arrowright","ArrowRight"],["home","Home"],["end","End"],["pageup","PageUp"],["pagedown","PageDown"],["capslock","CapsLock"],["contextmenu","ContextMenu"],["shift","ShiftLeft"],["control","ControlLeft"],["alt","AltLeft"],["meta","MetaLeft"]]),Jo=new Map([[" ","Space"],["-","Minus"],["=","Equal"],["[","BracketLeft"],["]","BracketRight"],[";","Semicolon"],["'","Quote"],["`","Backquote"],["\\","Backslash"],[",","Comma"],[".","Period"],["/","Slash"]]);function vo(t){let i=Xo.get(t.toLowerCase());if(i)return i;let a=/^f([1-9]|1[0-9]|2[0-4])$/i.exec(t);if(a)return`F${a[1]}`;if(t.length===1){if(/[a-z]/i.test(t))return`Key${t.toUpperCase()}`;if(/\d/.test(t))return`Digit${t}`;let c=Jo.get(t);if(c)return c}return""}function _o(t){return Io.get(t.toLowerCase())?.flag??null}function to(t){return Io.get(t.toLowerCase())?.key??null}function Eo(t){if(t==="+")return{held:[],key:"+"};let i=t.split("+"),a=[],c=0;while(c<i.length-1){let E=to(i[c]);if(!E)break;a.push(E),c++}let _=i.slice(c).join("+");return{held:a,key:_===""?"+":_}}function xo(t,i){if(!i||t.length!==1||!/[a-z]/.test(t))return t;return t.toUpperCase()}import{Buffer as Ro}from"buffer";class lo{_enabled=!1;_handlers=new Set;_requestObservers=new Set;_observers=new Set;_originalFetch;constructor(){this._originalFetch=globalThis.fetch}get enabled(){return this._enabled}enable(){if(this._enabled)return;this._enabled=!0;let t=this,i=async function(a,c){let _=typeof a==="string"?a:a instanceof URL?a.href:a.url,E=c?.method||"GET",T={};if(c?.headers)if(c.headers instanceof Headers)c.headers.forEach((Me,Qe)=>{T[Qe]=Me});else if(Array.isArray(c.headers))c.headers.forEach(([Me,Qe])=>{T[Me]=Qe});else Object.assign(T,c.headers);let F=!1,V=!1,D=null,k={},G={url:_,method:E,headers:T,postData:c?.body?String(c.body):null,resourceType:"fetch",continue(Me={}){k=Me},abort(Me="failed"){F=!0},respond(Me){V=!0,D=new Response(Me.body,{status:Me.status,headers:Me.headers}),Object.defineProperty(D,"url",{value:_,configurable:!0})}};t._announceRequest(G);for(let Me of t._handlers)await Me(G);if(F)throw Error("Request aborted");let te=(Me)=>(t._announce(Me,G),Me);if(V&&D)return te(D);let Re=k.url||_,Ce=k.method||E,Oe=k.headers||T,Ve=k.postData!==void 0?k.postData:c?.body;return te(await t._originalFetch(Re,{...c,method:Ce,headers:Oe,body:Ve}))};Object.assign(i,{preconnect:()=>{}}),globalThis.fetch=i}disable(){if(!this._enabled)return;this._enabled=!1,globalThis.fetch=this._originalFetch}addHandler(t){this._handlers.add(t)}removeHandler(t){this._handlers.delete(t)}clear(){this._handlers.clear()}addRequestObserver(t){this._requestObservers.add(t)}removeRequestObserver(t){this._requestObservers.delete(t)}addResponseObserver(t){this._observers.add(t)}removeResponseObserver(t){this._observers.delete(t)}_announce(t,i){for(let a of this._observers)try{a(t,i)}catch{}}_announceRequest(t){for(let i of this._requestObservers)try{i(t)}catch{}}}function Yo(t){let i="";for(let a=0;a<t.length;a++){let c=t[a];if(c==="*"){if(t[a+1]==="*")i+=".*",a++;else i+="[^/]*";continue}if(c==="?"){i+="[^/]";continue}i+=c.replace(/[.+^${}()|[\]\\]/g,"\\$&")}return new RegExp(`^${i}$`)}function co(t,i){if(typeof t==="function")return t(i);if(t instanceof RegExp)return t.test(i);return Yo(t).test(i)}class ro{_routes=[];get size(){return this._routes.length}add(t,i){this._routes.unshift({pattern:t,handler:i})}remove(t,i){if(t===void 0){this._routes=[];return}this._routes=this._routes.filter((a)=>{if(!(typeof t==="string"&&typeof a.pattern==="string"?a.pattern===t:a.pattern===t))return!0;return i!==void 0&&a.handler!==i})}matching(t){return this._routes.filter((i)=>co(i.pattern,t))}}var So="about:blank";class uo{window;document;_page;_parentFrame=null;_childFrames=[];_content="";_history=[So];_historyIndex=0;_navigations=[];_deviceBaseline={};constructor(t,i=null){this._page=t,this._parentFrame=i;let{width:a,height:c}=t.viewport;this.window=new b({url:So,width:a,height:c,console:t.console,settings:t.context?.browser?.settings}),this._deviceBaseline={...this.window._settings?.device??{}},this._forwardConsole(),this._installDialogs(),this.document=this.window.document,this._adoptContextState()}_adoptContextState(){let t=this._page.context;if(!t)return;if(t.cookieContainer)this.document._setCookieContainer?.(t.cookieContainer);this._syncOriginStorage()}_syncOriginStorage(){let i=this._page.context?._storageForOrigin?.(this.window.location.origin);if(i)this.window.localStorage=i}_applyEmulation(){let i=this._page.context?._emulation?.();if(!i)return;let a=this.window.navigator;if(i.permissions!==null)a?.permissions?._clearGrants?.(),a?.permissions?._grant?.(i.permissions);if(a?.geolocation?._setPosition?.(i.geolocation),a)a.onLine=!i.offline;let c=this.window._settings?.device;if(c&&i.media){let _=this._deviceBaseline;c.prefersColorScheme=i.media.colorScheme??_.prefersColorScheme??"light",c.prefersReducedMotion=i.media.reducedMotion??_.prefersReducedMotion??"no-preference",c.forcedColors=i.media.forcedColors??_.forcedColors??"none",c.mediaType=i.media.type??_.mediaType??"screen"}}_runInitScripts(){let t=this._page.context;for(let i of t?._initScriptSources?.()??[])try{this.evaluate(i)}catch{}}get childFrames(){return this._childFrames}get parentFrame(){return this._parentFrame}get page(){return this._page}get content(){return this.document.documentElement?.outerHTML||""}set content(t){this._content=t,this.document.documentElement.innerHTML=t}get url(){return this.window.location.href}set url(t){this.window.happyDOM.setURL(t),this._syncOriginStorage()}setViewport(t){this.window.happyDOM.setViewport(t)}async waitUntilComplete(){await this.window.happyDOM.waitUntilComplete()}async waitForNavigation(){await new Promise((t)=>{this._navigations.push(t)})}_announceNavigation(){let t=this._navigations;this._navigations=[];for(let i of t)i()}async abort(){await this.window.happyDOM.abort(),this._announceNavigation()}evaluate(t,i){return this._evaluateWith(t,[i])}_evaluateWith(t,i){if(typeof t==="function")return Function("window","document","args",`with (window) { return (${t.toString()})(...args) }`)(this.window,this.document,i);let c=Function("window","document","args",`with (window) { return (${t}) }`)(this.window,this.document,i);return typeof c==="function"?c(...i):c}setContent(t){this._commit(this.url,t,!1)}async goto(t,i={}){return await this._navigate(this._resolve(t),{push:!0,referer:i.referer})}async reload(){return await this._navigate(this.url,{push:!1})}async goBack(){return await this.goSteps(-1)}async goForward(){return await this.goSteps(1)}async goSteps(t){let i=this._historyIndex+t;if(t===0||i<0||i>=this._history.length)return null;return this._historyIndex=i,await this._navigate(this._history[i],{push:!1})}_resolve(t){try{return new URL(t,this.url===So?void 0:this.url).href}catch{return t}}_isFetchable(t){return/^https?:/i.test(t)}_installDialogs(){let t=this.window,i=this._page;t.alert=(a)=>{i._requestDialog("alert",String(a??""))},t.confirm=(a)=>i._requestDialog("confirm",String(a??"")).accepted,t.prompt=(a,c)=>{let _=c===void 0?"":String(c),E=i._requestDialog("prompt",String(a??""),_);return E.accepted?E.text??_:null}}_forwardConsole(){let t=this.window,i=t.console;if(!i)return;let a=this._page,c=Object.create(i);for(let _ of["log","info","warn","error","debug","trace"])c[_]=(...E)=>{a._emitConsole(_,...E),i[_]?.(...E)};t.console=c}async _navigate(t,i){if(!this._isFetchable(t))return this._commit(t,"",i.push),null;let a=this._page.context;if(a?._emulation?.().offline){let V=Error(`net::ERR_INTERNET_DISCONNECTED at ${t}`);throw this._page._emitError(V),V}let c;try{c=await fetch(t,{headers:{...a?._extraHTTPHeaders?.()??{},...i.referer?{referer:i.referer}:{}}})}catch(V){throw this._page._emitError(V instanceof Error?V:Error(String(V))),V}let _=c.headers.get("content-type")??"",E=c.url||t;if(!c.url)Object.defineProperty(c,"url",{value:E,configurable:!0});this._page._emitResponse(c);let F=_===""||/\b(?:html|xml)\b/i.test(_)?await c.clone().text():"";return this._commit(E,F,i.push),c}_documentElementAttributes(t){let i=/<html\b([^>]*)>/i.exec(t.replace(/^\s*<!doctype[^>]*>/i,""));if(!i)return[];let a=[];for(let c of i[1].matchAll(/([a-z_:][\w:.-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/gi))a.push([c[1],c[2]??c[3]??c[4]??""]);return a}_asDocumentMarkup(t){let i=t.replace(/^\s*<!doctype[^>]*>/i,"").trim(),a=/^<html\b[^>]*>([\s\S]*)<\/html\s*>$/i.exec(i);if(a)i=a[1];if(/<(?:html|body|head)\b/i.test(i))return i;return`<head></head><body>${i}</body>`}_commit(t,i,a){let c=this.document;if(c.readyState="loading",this.url=t,a)this._history=[...this._history.slice(0,this._historyIndex+1),t],this._historyIndex=this._history.length-1;else this._history[this._historyIndex]=t;c.documentElement.innerHTML=this._asDocumentMarkup(i);for(let[_,E]of this._documentElementAttributes(i))c.documentElement.setAttribute?.(_,E);this._content=i,this._runInitScripts(),c.readyState="interactive",this._page.emit("domcontentloaded",this._page),c.dispatchEvent?.(new this.window.Event("DOMContentLoaded",{bubbles:!0})),c.readyState="complete",this._page.emit("load",this._page),this.window.dispatchEvent?.(new this.window.Event("load")),this._announceNavigation()}}class ho{type;message;defaultValue;_settled=!1;_accepted=!1;_text=null;constructor(t,i,a=""){this.type=t;this.message=i;this.defaultValue=a}async accept(t){this._decide(!0,t??this.defaultValue)}async dismiss(){this._decide(!1,null)}_decide(t,i){if(this._settled)return;this._settled=!0,this._accepted=t,this._text=i}get _wasSettled(){return this._settled}_outcome(){return{accepted:this._accepted,text:this._text}}}function Qo(t,i,a){if(typeof a==="string")return String(t.value??"")===a;if(a.index!==void 0)return i===a.index;if(a.value!==void 0)return String(t.value??"")===a.value;if(a.label!==void 0){let c=t.getAttribute?.("label")??t.textContent??"";return String(c).replace(/\s+/g," ").trim()===a.label}return!1}var Uo=Symbol("very-happy-dom.responseAnnounced");function Oo(t,i){if(typeof t==="function")return t(i)===!0;return co(t,String(i?.url??""))}class fo{mainFrame;console;virtualConsolePrinter=null;_context;_viewport;_frames=[];_eventListeners=new Map;_requestInterceptor=new lo;_heldModifiers=new Set;_explicitInterception=!1;_routingHandler=async(t)=>{await this._runRoutes(t)};_routes=new ro;_routingInstalled=!1;_defaultTimeout=null;constructor(t){this._context=t,this._viewport={width:1024,height:768},this.console=t?.browser?.console??globalThis.console,this.mainFrame=new uo(this),this._frames.push(this.mainFrame),this._requestInterceptor.addRequestObserver((i)=>{this._emitRequest(i)}),this._requestInterceptor.addResponseObserver((i)=>{this._emitResponse(i)})}get context(){return this._context}get viewport(){return this._viewport}get frames(){return this._frames}get content(){return this.mainFrame.content}set content(t){this.mainFrame.content=t}get url(){return this.mainFrame.url}set url(t){this.mainFrame.url=t}async close(){await this.abort(),this._context._removePage(this)}async waitUntilComplete(){await Promise.all(this._frames.map((t)=>t.waitUntilComplete()))}async waitForNavigation(){await this.mainFrame.waitForNavigation()}async abort(){await Promise.all(this._frames.map((t)=>t.abort()))}_evaluateWith(t,i){return this.mainFrame._evaluateWith(t,i)}evaluate(t,i){return this.mainFrame.evaluate(t,i)}setViewport(t){this._viewport={...t};for(let i of this._frames)i.setViewport(this._viewport)}async goto(t,i={}){return await this.mainFrame.goto(t,i)}async goBack(){return await this.mainFrame.goBack()}async goForward(){return await this.mainFrame.goForward()}async goSteps(t){return await this.mainFrame.goSteps(t)}async reload(){return await this.mainFrame.reload()}_applyEmulation(){for(let t of this._frames)t._applyEmulation?.()}_runInitScripts(){for(let t of this._frames)t._runInitScripts?.()}setDefaultTimeout(t){this._defaultTimeout=t}async setContent(t){this.mainFrame.setContent(t)}async emulateMedia(t={}){await this._context?.emulateMedia?.(t)}_defaultTimeoutMs(){return this._defaultTimeout??this._context?._timeout?.()??30000}async waitForSelector(t,i={}){let a=i.state??(i.visible?"visible":"attached"),c=i.timeout??this._defaultTimeoutMs();return Q(()=>{let _=this.mainFrame.document.querySelector(t);if(a==="detached")return _?{done:!1,reason:"the element was still attached"}:{done:!0,value:null};if(a==="hidden"){if(!_)return{done:!0,value:null};return this._isRendered(_)?{done:!1,reason:"the element was still visible"}:{done:!0,value:_}}if(!_)return{done:!1,reason:"no element matched"};if(a==="visible"&&!this._isRendered(_))return{done:!1,reason:"an element matched, but it was hidden"};return{done:!0,value:_}},{timeout:c,describe:(_)=>`Timed out ${c}ms waiting for selector ${JSON.stringify(t)} to be ${a}: ${_}`})}async waitForFunction(t,i={}){let a=i.timeout??this._defaultTimeoutMs();return Q(()=>{let c=this.evaluate(t);return c?{done:!0,value:c}:{done:!1,reason:`it last returned ${JSON.stringify(c)??String(c)}`}},{timeout:a,describe:(c)=>`Timed out ${a}ms waiting for the function to return a truthy value: ${c}`})}async waitForTimeout(t){await new Promise((i)=>setTimeout(i,t))}async waitForEvent(t,i={}){let a=typeof i==="function"?{predicate:i}:i,c=a.timeout??this._defaultTimeoutMs(),_,E,T=new Promise((k,G)=>{_=k,E=G}),F=0,V=(k)=>{F++;try{if(a.predicate&&!a.predicate(k))return}catch(G){E(G instanceof Error?G:Error(String(G)));return}_(k)};this.on(t,V);let D=setTimeout(()=>{let k=F===0?`no ${t} event fired`:`${F} ${t} event(s) fired, none matched`;E(new We(`Timed out ${c}ms waiting for a ${t} event: ${k}. `+"Subscribe before the action that triggers it \u2014 "+"await Promise.all([page.waitForEvent(...), action()]) \u2014 as an event that has already fired is not replayed."))},c);try{return await T}finally{clearTimeout(D),this.off(t,V)}}async waitForResponse(t,i={}){return this.waitForEvent("response",{timeout:i.timeout,predicate:(a)=>Oo(t,a)})}async waitForRequest(t,i={}){if(!this._requestInterceptor.enabled)throw Error("waitForRequest() needs request interception, which nothing has turned on. "+"Call page.route(...) or page.setRequestInterception(true) first \u2014 without it no request event is ever emitted.");return this.waitForEvent("request",{timeout:i.timeout,predicate:(a)=>Oo(t,a)})}async waitForLoadState(t="load",i={}){if(t!=="load"&&t!=="domcontentloaded")throw Error(`waitForLoadState('${String(t)}') is not supported: only 'load' and 'domcontentloaded' can be reported. Nothing tracks in-flight requests, so there is no honest answer for networkidle.`);if((t==="load"?["complete"]:["interactive","complete"]).includes(String(this.mainFrame.document.readyState)))return;await this.waitForEvent(t,{timeout:i.timeout})}async waitForURL(t,i={}){await Q(()=>{let a=this.url;return(typeof t==="function"?t(a)===!0:co(t,a))?{done:!0,value:void 0}:{done:!1,reason:`the URL was ${JSON.stringify(a)}`}},{timeout:i.timeout??this._defaultTimeoutMs(),describe:(a)=>`Timed out waiting for the URL to match ${String(t)}: ${a}`})}_element(t){let i=this.mainFrame.document.querySelector(t);if(!i)throw Error(`Element not found: ${t}`);return i}_isValueField(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"}_readField(t){return this._isValueField(t)?String(t.value??""):String(t.textContent??"")}_writeField(t,i){if(this._isValueField(t))t.value=i;else t.textContent=i}_dispatch(t,i,a,c={}){let _=this.mainFrame.window,E=_[a]??_.Event;t.dispatchEvent?.(new E(i,{bubbles:!0,...c}))}async click(t,i={}){let a=this._element(t);if(i.delay)await this.waitForTimeout(i.delay);a.focus?.(),a.click?.()}async type(t,i,a={}){await this._typeIntoElement(this._element(t),i,a)}async _typeIntoElement(t,i,a={}){let c=a.delay||0;t.focus?.();for(let _ of i)if(this._dispatch(t,"keydown","KeyboardEvent",{key:_}),this._dispatch(t,"beforeinput","InputEvent",{data:_,inputType:"insertText"}),this._writeField(t,this._readField(t)+_),this._dispatch(t,"input","InputEvent",{data:_,inputType:"insertText"}),this._dispatch(t,"keyup","KeyboardEvent",{key:_}),c>0)await this.waitForTimeout(c)}async fill(t,i){await this._fillElement(this._element(t),i)}async _selectOptions(t,i){let a=String(t.tagName??"").toUpperCase();if(a!=="SELECT")throw Error(`selectOption() expects a <select>, not <${a.toLowerCase()||"unknown"}>`);if(i.length>1&&!t.hasAttribute?.("multiple"))throw Error(`selectOption() was given ${i.length} values, but this <select> is not multiple. Add the multiple attribute, or pass one value.`);let c=Array.from(t.querySelectorAll?.("option")??[]);for(let E of c)E.selected=!1;let _=[];for(let E of i){let T=c.find((F,V)=>Qo(F,V,E));if(!T)throw Error(`selectOption() found no <option> matching ${JSON.stringify(E)}`);T.selected=!0,_.push(T)}return t.focus?.(),this._dispatch(t,"input","InputEvent",{inputType:"insertReplacementText"}),this._dispatch(t,"change","Event"),_.map((E)=>String(E.value??""))}async _setInputFiles(t,i){let a=String(t.tagName??"").toUpperCase(),c=String(t.getAttribute?.("type")??"").toLowerCase();if(a!=="INPUT"||c!=="file")throw Error(`setInputFiles() expects an <input type="file">, not <${a.toLowerCase()||"unknown"} type="${c}">`);if(i.length>1&&!t.hasAttribute?.("multiple"))throw Error(`setInputFiles() was given ${i.length} files, but this input is not multiple. Add the multiple attribute, or pass one file.`);let _=this.mainFrame.window,E=[];for(let T of i){if(typeof T==="string"){let F=Bun.file(T),V=new Uint8Array(await F.arrayBuffer());E.push(new _.File([V],T.split("/").pop()??T,{type:F.type||""}));continue}E.push(new _.File([T.buffer],T.name,{type:T.mimeType??""}))}t.files=new _.FileList(E),t.focus?.(),this._dispatch(t,"input","InputEvent",{inputType:"insertReplacementText"}),this._dispatch(t,"change","Event")}async _dblclickElement(t){t.focus?.(),t.click?.(),t.click?.(),this._dispatch(t,"dblclick","MouseEvent",{detail:2})}async _fillElement(t,i){t.focus?.(),this._dispatch(t,"beforeinput","InputEvent",{data:i,inputType:"insertReplacementText"}),this._writeField(t,i),this._dispatch(t,"input","InputEvent",{data:i,inputType:"insertReplacementText"}),this._dispatch(t,"change","Event")}async selectOption(t,i){let a=i===null?[]:Array.isArray(i)?i:[i];return this._selectOptions(this._element(t),a)}async setInputFiles(t,i){let a=i===null?[]:Array.isArray(i)?i:[i];await this._setInputFiles(this._element(t),a)}async press(t,i,a={}){this._element(t).focus?.(),await this.keyboard.press(i,a)}async clear(t){await this._fillElement(this._element(t),"")}async dblclick(t){await this._dblclickElement(this._element(t))}async check(t){let i=this._element(t);if(!C(i))i.focus?.(),i.click?.()}async uncheck(t){let i=this._element(t);if(C(i))i.focus?.(),i.click?.()}async focus(t){this._element(t).focus?.()}async blur(t){this._element(t).blur?.()}async hover(t){await this._hoverElement(this._element(t))}async _hoverElement(t){this._dispatch(t,"mouseover","MouseEvent"),t.dispatchEvent?.(new(this.mainFrame.window.MouseEvent??this.mainFrame.window.Event)("mouseenter",{bubbles:!1}))}get keyboard(){return{press:async(t,i={})=>{let{delay:a=0}=i,{held:c,key:_}=Eo(t);for(let E of c)await this.keyboard.down(E);if(await this.keyboard.down(_),a>0)await this.waitForTimeout(a);await this.keyboard.up(_);for(let E of[...c].reverse())await this.keyboard.up(E)},down:async(t)=>{let i=to(t);if(i)this._heldModifiers.add(i);let a=i??t,c=this._keyboardTarget();if(this._dispatchKey(c,"keydown",a),i)return;this._insertForKey(c,a)},up:async(t)=>{let i=to(t);if(i)this._heldModifiers.delete(i);this._dispatchKey(this._keyboardTarget(),"keyup",i??t)},type:async(t,i={})=>{for(let a of t)await this.keyboard.press(a,i)}}}_keyboardTarget(){let t=this.mainFrame.document;return t.activeElement??t}_modifierState(){let t={ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1};for(let i of this._heldModifiers){let a=_o(i);if(a)t[a]=!0}return t}_dispatchKey(t,i,a){let c=xo(a,this._heldModifiers.has("Shift"));this._dispatch(t,i,"KeyboardEvent",{key:c,code:vo(a),...this._modifierState()})}_insertForKey(t,i){let a=this.mainFrame.document;if(!(t!==a&&(this._isValueField(t)||t.isContentEditable)))return;let _=this._modifierState();if(_.ctrlKey||_.altKey||_.metaKey)return;let E=xo(i,_.shiftKey);if(E.length===1){this._dispatch(t,"beforeinput","InputEvent",{data:E,inputType:"insertText"}),this._writeField(t,this._readField(t)+E),this._dispatch(t,"input","InputEvent",{data:E,inputType:"insertText"});return}if(i==="Backspace"){let T=this._readField(t);if(T.length===0)return;this._dispatch(t,"beforeinput","InputEvent",{inputType:"deleteContentBackward"}),this._writeField(t,T.slice(0,-1)),this._dispatch(t,"input","InputEvent",{inputType:"deleteContentBackward"})}}get mouse(){return{click:async(t,i,a={})=>{let{delay:c=0}=a,_=this.mainFrame.document;if(this._dispatch(_,"mousedown","MouseEvent",{clientX:t,clientY:i}),this._dispatch(_,"mouseup","MouseEvent",{clientX:t,clientY:i}),this._dispatch(_,"click","MouseEvent",{clientX:t,clientY:i}),c>0)await this.waitForTimeout(c)},move:async(t,i)=>{this._dispatch(this.mainFrame.document,"mousemove","MouseEvent",{clientX:t,clientY:i})}}}_testId="data-testid";setTestIdAttribute(t){this._testId=t}_testIdAttribute(){return this._testId}_locatorRoot(){return this.mainFrame.document}locator(t){return new s(this,(i)=>Array.from((i??this._locatorRoot()).querySelectorAll?.(t)??[]),`locator(${JSON.stringify(t)})`)}getByRole(t,i={}){return new s(this,(a)=>Bi(a??this._locatorRoot(),t,i),`getByRole(${JSON.stringify(t)})`)}getByText(t,i={}){return new s(this,(a)=>Hi(a??this._locatorRoot(),t,i),`getByText(${String(t)})`)}getByLabel(t,i={}){return new s(this,(a)=>Fi(a??this._locatorRoot(),t,i),`getByLabel(${String(t)})`)}getByPlaceholder(t,i={}){return new s(this,(a)=>P(a??this._locatorRoot(),"placeholder",t,i),`getByPlaceholder(${String(t)})`)}getByAltText(t,i={}){return new s(this,(a)=>P(a??this._locatorRoot(),"alt",t,i),`getByAltText(${String(t)})`)}getByTitle(t,i={}){return new s(this,(a)=>P(a??this._locatorRoot(),"title",t,i),`getByTitle(${String(t)})`)}getByTestId(t){return new s(this,(i)=>P(i??this._locatorRoot(),this._testId,t,{exact:!0}),`getByTestId(${String(t)})`)}async $eval(t,i,a){return this.locator(t).first().evaluate(i,a)}async $$eval(t,i,a){return this.locator(t).evaluateAll(i,a)}async title(){return this.mainFrame.document.title??""}async textContent(t){return this._element(t).textContent??null}async innerText(t){return String(this._element(t).innerText??"")}async innerHTML(t){return String(this._element(t).innerHTML??"")}async inputValue(t){let i=this._element(t),a=i.tagName;if(a!=="INPUT"&&a!=="TEXTAREA"&&a!=="SELECT")throw Error(`Not a form field: ${t} is <${String(a).toLowerCase()}>`);return String(i.value??"")}async getAttribute(t,i){return this._element(t).getAttribute?.(i)??null}async isVisible(t){let i=this.mainFrame.document.querySelector(t);if(!i)return!1;return this._isRendered(i)}async isHidden(t){return!await this.isVisible(t)}async isChecked(t){return C(this._element(t))}async isEnabled(t){return this._element(t).disabled!==!0}async isDisabled(t){return this._element(t).disabled===!0}async isEditable(t){let i=this._element(t);if(i.isContentEditable===!0)return!0;let a=i.tagName;if(a!=="INPUT"&&a!=="TEXTAREA"&&a!=="SELECT")return!1;return i.disabled!==!0&&i.readOnly!==!0}_isRendered(t){if(t.isConnected===!1)return!1;return Gi(t)}on(t,i){if(!this._eventListeners.has(t))this._eventListeners.set(t,new Set);this._eventListeners.get(t).add(i)}off(t,i){let a=this._eventListeners.get(t);if(a)a.delete(i)}emit(t,i){let a=this._eventListeners.get(t);if(a)for(let c of a)c(i);if(t==="console"&&this.virtualConsolePrinter)this.virtualConsolePrinter(i.type,...i.args)}_requestDialog(t,i,a=""){let c=this._eventListeners.get("dialog");if(!c||c.size===0)return{accepted:!1,text:null};let _=new ho(t,i,a),E=!1;for(let T of c)if(typeof T(_)?.then==="function")E=!0;if(!_._wasSettled&&E)throw Error(`A page.on('dialog') handler for ${t}() did not decide before returning. Dialogs are synchronous, so call dialog.accept() or dialog.dismiss() before the handler awaits anything.`);return _._outcome()}_emitConsole(t,...i){this.emit("console",{type:t,args:i})}_emitRequest(t){this.emit("request",t)}_emitResponse(t){if(t!==null&&typeof t==="object"){if(t[Uo]===!0)return;try{Object.defineProperty(t,Uo,{value:!0,configurable:!0})}catch{}}this.emit("response",t)}_emitError(t){this.emit("error",t)}async dragAndDrop(t,i,a={}){let c=this.mainFrame.document.querySelector(t),_=this.mainFrame.document.querySelector(i);if(!c||!_)throw Error("Source or target element not found");let E=new this.mainFrame.window.Event("dragstart",{bubbles:!0});if(c.dispatchEvent?.(E),a.delay)await this.waitForTimeout(a.delay);let T=new this.mainFrame.window.Event("drop",{bubbles:!0});_.dispatchEvent?.(T);let F=new this.mainFrame.window.Event("dragend",{bubbles:!0});c.dispatchEvent?.(F)}async route(t,i){this._routes.add(t,i),this._syncInterception()}async unroute(t,i){this._routes.remove(t,i),this._syncInterception()}_syncRouting(){this._syncInterception()}_hasRoutes(){let t=this._context?._routeRegistry?.size??0;return this._routes.size>0||t>0}_syncInterception(){if(!this._explicitInterception&&!this._hasRoutes()){this._requestInterceptor.disable(),this._requestInterceptor.removeHandler(this._routingHandler),this._routingInstalled=!1;return}if(!this._routingInstalled)this._routingInstalled=!0,this._requestInterceptor.addHandler(this._routingHandler);this._requestInterceptor.enable()}_matchingRoutes(t){let i=this._context?._routeRegistry?.matching?.(t)??[];return[...this._routes.matching(t),...i]}async _runRoutes(t){let i=this._matchingRoutes(t.url);if(i.length===0)return;let a={url:t.url,method:t.method,headers:{...t.headers},postData:t.postData??null,resourceType:t.resourceType??"fetch"};for(let c of i){let _=!1,E={request:()=>a,fulfill:async(T={})=>{let F=T.json!==void 0,V=F?JSON.stringify(T.json):T.body??"",D=T.contentType??(F?"application/json":void 0);t.respond({status:T.status??200,headers:{...D?{"content-type":D}:{},...T.headers},body:V})},abort:async(T="failed")=>{t.abort(T)},continue:async(T={})=>{t.continue(T)},fetch:async()=>await fetch(a.url,{method:a.method,headers:a.headers,body:a.postData??void 0}),fallback:async()=>{_=!0}};if(await c.handler(E,a),!_)return}}async setRequestInterception(t){this._explicitInterception=t,this._syncInterception()}async screenshot(t={}){let{type:i="png",quality:a=100,fullPage:c=!1,encoding:_="binary",useWebView:E}=t;if(E){let{WebViewCapture:V}=await import("./screenshot/webview.js"),D=typeof E==="object"?E:{},k=this.virtualConsolePrinter,G=D.console??(k?(Re)=>{let Ce=Re;k(Ce?.type??"log",...Ce?.args??[Re])}:void 0),te=new V;try{let Re=this._realPageUrl(),Ce={width:this._viewport.width,height:this._viewport.height,format:i,quality:a,encoding:_==="base64"?"base64":"buffer",...D,console:G};return Re?await te.captureUrl(Re,Ce):await te.captureHtml(this.content,Ce)}finally{te.dispose()}}let T=this.content,F=this._generateSVG(T);if(_==="base64")return Ro.from(F).toString("base64");return Ro.from(F)}_realPageUrl(){let t=this.url;if(!t||t==="about:blank"||t.startsWith("data:"))return null;return/^[a-z][\w+.-]*:/i.test(t)?t:null}async pdf(t={}){let{scale:i=1,displayHeaderFooter:a=!1,printBackground:c=!1,landscape:_=!1,format:E="A4"}=t,T=this.content,F=this._generatePDF(T);return Ro.from(F)}_generateSVG(t){let i=this._viewport.width,a=this._viewport.height;return`<?xml version="1.0" encoding="UTF-8"?>
3
3
  <svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${a}">
4
4
  <rect width="100%" height="100%" fill="white"/>
5
5
  <foreignObject width="100%" height="100%">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ne,nt,re,U}from"../chunk-xh74szba.js";import"../chunk-px4nrdxa.js";import"../chunk-cqrdjb12.js";import"../chunk-qh4s27j9.js";import"../chunk-2m1ksnrw.js";import"../chunk-w2g7xbfh.js";import"../chunk-d5edpdkj.js";export{ne as CookieJar,U as JSDOM,nt as ResourceLoader,re as VirtualConsole};
2
+ import{ne,nt,re,U}from"../chunk-yh7sqskw.js";import"../chunk-7e10724v.js";import"../chunk-14m9hw4k.js";import"../chunk-4rkv71j2.js";import"../chunk-axyyzc2e.js";import"../chunk-w2g7xbfh.js";import"../chunk-d5edpdkj.js";export{ne as CookieJar,U as JSDOM,nt as ResourceLoader,re as VirtualConsole};
package/dist/register.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-d5edpdkj.js";import"./chunk-2m1ksnrw.js";import"./chunk-px4nrdxa.js";import"./chunk-w2g7xbfh.js";import"./chunk-qh4s27j9.js";import"./chunk-cqrdjb12.js";import{Le}from"./chunk-1tdmzj7n.js";var e=typeof globalThis.window<"u"&&typeof globalThis.document<"u";if(!e)Le.register({url:process.env.VERY_HAPPY_DOM_URL||process.env.HAPPY_DOM_URL||"http://localhost/"});
2
+ import"./chunk-d5edpdkj.js";import"./chunk-axyyzc2e.js";import"./chunk-7e10724v.js";import"./chunk-w2g7xbfh.js";import"./chunk-4rkv71j2.js";import"./chunk-14m9hw4k.js";import{Le}from"./chunk-65zj7vm5.js";var e=typeof globalThis.window<"u"&&typeof globalThis.document<"u";if(!e)Le.register({url:process.env.VERY_HAPPY_DOM_URL||process.env.HAPPY_DOM_URL||"http://localhost/"});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "very-happy-dom",
3
3
  "type": "module",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "description": "Like a light-weight version of `happy-dom` powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{p}from"./chunk-2m1ksnrw.js";import"./chunk-d5edpdkj.js";export{p as parseHTML};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{r}from"./chunk-cqrdjb12.js";import"./chunk-qh4s27j9.js";import"./chunk-2m1ksnrw.js";import"./chunk-w2g7xbfh.js";import"./chunk-d5edpdkj.js";export{r as VirtualSVGElement};